1762 lines
3.8 MiB
1762 lines
3.8 MiB
var e,t,n=Object.defineProperty,i=(e,t,i)=>(((e,t,i)=>{t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(e,"symbol"!=typeof t?t+"":t,i),i);import{r as a,c as r,b as s,R as l,f as o,e as d,g as c}from"./vendor-c65bce76.js";import{_ as u,a as p,b as A,U as h,B as f,S as m,c as v,I as g,d as y,m as x,e as b,f as w,M as j,P as C,g as S,h as N,F as I,T as F,i as B,j as P,A as k,D as T,k as E,E as D,l as L,R as U,n as _,o as O,C as M,p as R,q as Q,r as H,s as V,t as z,u as q,v as W,W as Y,w as K,x as G,y as $,z as X,G as J,H as Z,J as ee,K as te,L as ne,N as ie,O as ae,Q as re,Y as se,V as le,X as oe,Z as de,$ as ce,a0 as ue,a1 as pe,a2 as Ae,a3 as he,a4 as fe,a5 as me,a6 as ve,a7 as ge,a8 as ye,a9 as xe,aa as be,ab as we,ac as je}from"./ui-2d515953.js";import{C as Ce,h as Se,a as Ne}from"./utils-faf49605.js";import{A as Ie,I as Fe,n as Be,G as Pe,P as ke,m as Te,d as Ee,a as De}from"./editor-e98c3426.js";function Le(e,t){for(var n=0;n<t.length;n++){const i=t[n];if("string"!=typeof i&&!Array.isArray(i))for(const t in i)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(i,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>i[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var Ue={exports:{}},_e={},Oe=a,Me=Symbol.for("react.element"),Re=Symbol.for("react.fragment"),Qe=Object.prototype.hasOwnProperty,He=Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ve={key:!0,ref:!0,__self:!0,__source:!0};function ze(e,t,n){var i,a={},r=null,s=null;for(i in void 0!==n&&(r=""+n),void 0!==t.key&&(r=""+t.key),void 0!==t.ref&&(s=t.ref),t)Qe.call(t,i)&&!Ve.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===a[i]&&(a[i]=t[i]);return{$$typeof:Me,type:e,key:r,ref:s,props:a,_owner:He.current}}_e.Fragment=Re,_e.jsx=ze,_e.jsxs=ze,Ue.exports=_e;var qe,We,Ye=Ue.exports,Ke={},Ge=r;
|
||
/**
|
||
* @remix-run/router v1.23.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/
|
||
function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},$e.apply(this,arguments)}Ke.createRoot=Ge.createRoot,Ke.hydrateRoot=Ge.hydrateRoot,(We=qe||(qe={})).Pop="POP",We.Push="PUSH",We.Replace="REPLACE";const Xe="popstate";function Je(e){return void 0===e&&(e={}),function(e,t,n,i){void 0===i&&(i={});let{window:a=document.defaultView,v5Compat:r=!1}=i,s=a.history,l=qe.Pop,o=null,d=c();null==d&&(d=0,s.replaceState($e({},s.state,{idx:d}),""));function c(){return(s.state||{idx:null}).idx}function u(){l=qe.Pop;let e=c(),t=null==e?null:e-d;d=e,o&&o({action:l,location:f.location,delta:t})}function p(e,t){l=qe.Push;let i=nt(f.location,e,t);n&&n(i,e),d=c()+1;let u=tt(i,d),p=f.createHref(i);try{s.pushState(u,"",p)}catch(A){if(A instanceof DOMException&&"DataCloneError"===A.name)throw A;a.location.assign(p)}r&&o&&o({action:l,location:f.location,delta:1})}function A(e,t){l=qe.Replace;let i=nt(f.location,e,t);n&&n(i,e),d=c();let a=tt(i,d),u=f.createHref(i);s.replaceState(a,"",u),r&&o&&o({action:l,location:f.location,delta:0})}function h(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeof e?e:it(e);return n=n.replace(/ $/,"%20"),Ze(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}let f={get action(){return l},get location(){return e(a,s)},listen(e){if(o)throw new Error("A history only accepts one active listener");return a.addEventListener(Xe,u),o=e,()=>{a.removeEventListener(Xe,u),o=null}},createHref:e=>t(a,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:p,replace:A,go:e=>s.go(e)};return f}((function(e,t){let{pathname:n,search:i,hash:a}=e.location;return nt("",{pathname:n,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:it(t)}),null,e)}function Ze(e,t){if(!1===e||null==e)throw new Error(t)}function et(e,t){if(!e)try{throw new Error(t)}catch(Ou){}}function tt(e,t){return{usr:e.state,key:e.key,idx:t}}function nt(e,t,n,i){return void 0===n&&(n=null),$e({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?at(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function it(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(t+="#"===i.charAt(0)?i:"#"+i),t}function at(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}var rt,st;function lt(e,t,n){return void 0===n&&(n="/"),function(e,t,n,i){let a="string"==typeof t?at(t):t,r=bt(a.pathname||"/",n);if(null==r)return null;let s=ot(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(s);let l=null;for(let o=0;null==l&&o<s.length;++o){let e=xt(r);l=gt(s[o],e,i)}return l}(e,t,n,!1)}function ot(e,t,n,i){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i="");let a=(e,a,r)=>{let s={relativePath:void 0===r?e.path||"":r,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};s.relativePath.startsWith("/")&&(Ze(s.relativePath.startsWith(i),'Absolute route path "'+s.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(i.length));let l=St([i,s.relativePath]),o=n.concat(s);e.children&&e.children.length>0&&(Ze(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),ot(e.children,t,o,l)),(null!=e.path||e.index)&&t.push({path:l,score:vt(l,e.index),routesMeta:o})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let i of dt(e.path))a(e,t,i);else a(e,t)})),t}function dt(e){let t=e.split("/");if(0===t.length)return[];let[n,...i]=t,a=n.endsWith("?"),r=n.replace(/\?$/,"");if(0===i.length)return a?[r,""]:[r];let s=dt(i.join("/")),l=[];return l.push(...s.map((e=>""===e?r:[r,e].join("/")))),a&&l.push(...s),l.map((t=>e.startsWith("/")&&""===t?"/":t))}(st=rt||(rt={})).data="data",st.deferred="deferred",st.redirect="redirect",st.error="error";const ct=/^:[\w-]+$/,ut=3,pt=2,At=1,ht=10,ft=-2,mt=e=>"*"===e;function vt(e,t){let n=e.split("/"),i=n.length;return n.some(mt)&&(i+=ft),t&&(i+=pt),n.filter((e=>!mt(e))).reduce(((e,t)=>e+(ct.test(t)?ut:""===t?At:ht)),i)}function gt(e,t,n){void 0===n&&(n=!1);let{routesMeta:i}=e,a={},r="/",s=[];for(let l=0;l<i.length;++l){let e=i[l],o=l===i.length-1,d="/"===r?t:t.slice(r.length)||"/",c=yt({path:e.relativePath,caseSensitive:e.caseSensitive,end:o},d),u=e.route;if(!c&&o&&n&&!i[i.length-1].route.index&&(c=yt({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},d)),!c)return null;Object.assign(a,c.params),s.push({params:a,pathname:St([r,c.pathname]),pathnameBase:Nt(St([r,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(r=St([r,c.pathnameBase]))}return s}function yt(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);et("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let i=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(i.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(i.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let r=new RegExp(a,t?void 0:"i");return[r,i]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let r=a[0],s=r.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:i.reduce(((e,t,n)=>{let{paramName:i,isOptional:a}=t;if("*"===i){let e=l[n]||"";s=r.slice(0,r.length-e.length).replace(/(.)\/+$/,"$1")}const o=l[n];return e[i]=a&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:r,pathnameBase:s,pattern:e}}function xt(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return et(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function bt(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&"/"!==i?null:e.slice(n)||"/"}function wt(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function jt(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function Ct(e,t,n,i){let a;void 0===i&&(i=!1),"string"==typeof e?a=at(e):(a=$e({},e),Ze(!a.pathname||!a.pathname.includes("?"),wt("?","pathname","search",a)),Ze(!a.pathname||!a.pathname.includes("#"),wt("#","pathname","hash",a)),Ze(!a.search||!a.search.includes("#"),wt("#","search","hash",a)));let r,s=""===e||""===a.pathname,l=s?"/":a.pathname;if(null==l)r=n;else{let e=t.length-1;if(!i&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}r=e>=0?t[e]:"/"}let o=function(e,t){void 0===t&&(t="/");let{pathname:n,search:i="",hash:a=""}="string"==typeof e?at(e):e,r=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:r,search:It(i),hash:Ft(a)}}(a,r),d=l&&"/"!==l&&l.endsWith("/"),c=(s||"."===l)&&n.endsWith("/");return o.pathname.endsWith("/")||!d&&!c||(o.pathname+="/"),o}const St=e=>e.join("/").replace(/\/\/+/g,"/"),Nt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),It=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Ft=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";const Bt=["post","put","patch","delete"];new Set(Bt);const Pt=["get",...Bt];
|
||
/**
|
||
* React Router v6.30.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/
|
||
function kt(){return kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},kt.apply(this,arguments)}new Set(Pt);const Tt=a.createContext(null),Et=a.createContext(null),Dt=a.createContext(null),Lt=a.createContext(null),Ut=a.createContext({outlet:null,matches:[],isDataRoute:!1}),_t=a.createContext(null);function Ot(){return null!=a.useContext(Lt)}function Mt(){return Ot()||Ze(!1),a.useContext(Lt).location}function Rt(e){a.useContext(Dt).static||a.useLayoutEffect(e)}function Qt(){let{isDataRoute:e}=a.useContext(Ut);return e?function(){let{router:e}=function(){let e=a.useContext(Tt);return e||Ze(!1),e}($t.UseNavigateStable),t=Jt(Xt.UseNavigateStable),n=a.useRef(!1);return Rt((()=>{n.current=!0})),a.useCallback((function(i,a){void 0===a&&(a={}),n.current&&("number"==typeof i?e.navigate(i):e.navigate(i,kt({fromRouteId:t},a)))}),[e,t])}():function(){Ot()||Ze(!1);let e=a.useContext(Tt),{basename:t,future:n,navigator:i}=a.useContext(Dt),{matches:r}=a.useContext(Ut),{pathname:s}=Mt(),l=JSON.stringify(jt(r,n.v7_relativeSplatPath)),o=a.useRef(!1);return Rt((()=>{o.current=!0})),a.useCallback((function(n,a){if(void 0===a&&(a={}),!o.current)return;if("number"==typeof n)return void i.go(n);let r=Ct(n,JSON.parse(l),s,"path"===a.relative);null==e&&"/"!==t&&(r.pathname="/"===r.pathname?t:St([t,r.pathname])),(a.replace?i.replace:i.push)(r,a.state,a)}),[t,i,l,s,e])}()}const Ht=a.createContext(null);function Vt(){let{matches:e}=a.useContext(Ut),t=e[e.length-1];return t?t.params:{}}function zt(e,t){let{relative:n}=void 0===t?{}:t,{future:i}=a.useContext(Dt),{matches:r}=a.useContext(Ut),{pathname:s}=Mt(),l=JSON.stringify(jt(r,i.v7_relativeSplatPath));return a.useMemo((()=>Ct(e,JSON.parse(l),s,"path"===n)),[e,l,s,n])}function qt(e,t){return function(e,t,n,i){Ot()||Ze(!1);let{navigator:r}=a.useContext(Dt),{matches:s}=a.useContext(Ut),l=s[s.length-1],o=l?l.params:{};!l||l.pathname;let d=l?l.pathnameBase:"/";l&&l.route;let c,u=Mt();if(t){var p;let e="string"==typeof t?at(t):t;"/"===d||(null==(p=e.pathname)?void 0:p.startsWith(d))||Ze(!1),c=e}else c=u;let A=c.pathname||"/",h=A;if("/"!==d){let e=d.replace(/^\//,"").split("/");h="/"+A.replace(/^\//,"").split("/").slice(e.length).join("/")}let f=lt(e,{pathname:h}),m=function(e,t,n,i){var r;void 0===t&&(t=[]);void 0===n&&(n=null);void 0===i&&(i=null);if(null==e){var s;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(s=i)&&s.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let l=e,o=null==(r=n)?void 0:r.errors;if(null!=o){let e=l.findIndex((e=>e.route.id&&void 0!==(null==o?void 0:o[e.route.id])));e>=0||Ze(!1),l=l.slice(0,Math.min(l.length,e+1))}let d=!1,c=-1;if(n&&i&&i.v7_partialHydration)for(let a=0;a<l.length;a++){let e=l[a];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(c=a),e.route.id){let{loaderData:t,errors:i}=n,a=e.route.loader&&void 0===t[e.route.id]&&(!i||void 0===i[e.route.id]);if(e.route.lazy||a){d=!0,l=c>=0?l.slice(0,c+1):[l[0]];break}}}return l.reduceRight(((e,i,r)=>{let s,u=!1,p=null,A=null;var h;n&&(s=o&&i.route.id?o[i.route.id]:void 0,p=i.route.errorElement||Yt,d&&(c<0&&0===r?(h="route-fallback",!1||Zt[h]||(Zt[h]=!0),u=!0,A=null):c===r&&(u=!0,A=i.route.hydrateFallbackElement||null)));let f=t.concat(l.slice(0,r+1)),m=()=>{let t;return t=s?p:u?A:i.route.Component?a.createElement(i.route.Component,null):i.route.element?i.route.element:e,a.createElement(Gt,{match:i,routeContext:{outlet:e,matches:f,isDataRoute:null!=n},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===r)?a.createElement(Kt,{location:n.location,revalidation:n.revalidation,component:p,error:s,children:m(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):m()}),null)}(f&&f.map((e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:St([d,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:St([d,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n,i);if(t&&m)return a.createElement(Lt.Provider,{value:{location:kt({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:qe.Pop}},m);return m}(e,t)}function Wt(){let e=function(){var e;let t=a.useContext(_t),n=function(){let e=a.useContext(Et);return e||Ze(!1),e}(Xt.UseRouteError),i=Jt(Xt.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[i]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:i},n):null,null)}const Yt=a.createElement(Wt,null);class Kt extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){}render(){return void 0!==this.state.error?a.createElement(Ut.Provider,{value:this.props.routeContext},a.createElement(_t.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Gt(e){let{routeContext:t,match:n,children:i}=e,r=a.useContext(Tt);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),a.createElement(Ut.Provider,{value:t},i)}var $t=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($t||{}),Xt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Xt||{});function Jt(e){let t=function(){let e=a.useContext(Ut);return e||Ze(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||Ze(!1),n.route.id}const Zt={};function en(e){return function(e){let t=a.useContext(Ut).outlet;return t?a.createElement(Ht.Provider,{value:e},t):t}(e.context)}function tn(e){Ze(!1)}function nn(e){let{basename:t="/",children:n=null,location:i,navigationType:r=qe.Pop,navigator:s,static:l=!1,future:o}=e;Ot()&&Ze(!1);let d=t.replace(/^\/*/,"/"),c=a.useMemo((()=>({basename:d,navigator:s,static:l,future:kt({v7_relativeSplatPath:!1},o)})),[d,o,s,l]);"string"==typeof i&&(i=at(i));let{pathname:u="/",search:p="",hash:A="",state:h=null,key:f="default"}=i,m=a.useMemo((()=>{let e=bt(u,d);return null==e?null:{location:{pathname:e,search:p,hash:A,state:h,key:f},navigationType:r}}),[d,u,p,A,h,f,r]);return null==m?null:a.createElement(Dt.Provider,{value:c},a.createElement(Lt.Provider,{children:n,value:m}))}function an(e){let{children:t,location:n}=e;return qt(rn(t),n)}function rn(e,t){void 0===t&&(t=[]);let n=[];return a.Children.forEach(e,((e,i)=>{if(!a.isValidElement(e))return;let r=[...t,i];if(e.type===a.Fragment)return void n.push.apply(n,rn(e.props.children,r));e.type!==tn&&Ze(!1),e.props.index&&e.props.children&&Ze(!1);let s={id:e.props.id||r.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=rn(e.props.children,r)),n.push(s)})),n}
|
||
/**
|
||
* React Router DOM v6.30.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},sn.apply(this,arguments)}function ln(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let i=e[n];return t.concat(Array.isArray(i)?i.map((e=>[n,e])):[[n,i]])}),[]))}new Promise((()=>{}));const on=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(Ou){}const dn=s.startTransition;function cn(e){let{basename:t,children:n,future:i,window:r}=e,s=a.useRef();null==s.current&&(s.current=Je({window:r,v5Compat:!0}));let l=s.current,[o,d]=a.useState({action:l.action,location:l.location}),{v7_startTransition:c}=i||{},u=a.useCallback((e=>{c&&dn?dn((()=>d(e))):d(e)}),[d,c]);return a.useLayoutEffect((()=>l.listen(u)),[l,u]),a.useEffect((()=>{return null==(e=i)||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),void(t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation));var e,t}),[i]),a.createElement(nn,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:l,future:i})}const un="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,pn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,An=a.forwardRef((function(e,t){let n,{onClick:i,relative:r,reloadDocument:s,replace:l,state:o,target:d,to:c,preventScrollReset:u,viewTransition:p}=e,A=function(e,t){if(null==e)return{};var n,i,a={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,on),{basename:h}=a.useContext(Dt),f=!1;if("string"==typeof c&&pn.test(c)&&(n=c,un))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=bt(t.pathname,h);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:f=!0}catch(Ou){}let m=function(e,t){let{relative:n}=void 0===t?{}:t;Ot()||Ze(!1);let{basename:i,navigator:r}=a.useContext(Dt),{hash:s,pathname:l,search:o}=zt(e,{relative:n}),d=l;return"/"!==i&&(d="/"===l?i:St([i,l])),r.createHref({pathname:d,search:o,hash:s})}(c,{relative:r}),v=function(e,t){let{target:n,replace:i,state:r,preventScrollReset:s,relative:l,viewTransition:o}=void 0===t?{}:t,d=Qt(),c=Mt(),u=zt(e,{relative:l});return a.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==i?i:it(c)===it(u);d(e,{replace:n,state:r,preventScrollReset:s,relative:l,viewTransition:o})}}),[c,d,u,i,r,n,e,s,l,o])}(c,{replace:l,state:o,target:d,preventScrollReset:u,relative:r,viewTransition:p});return a.createElement("a",sn({},A,{href:n||m,onClick:f||s?i:function(e){i&&i(e),e.defaultPrevented||v(e)},ref:t,target:d}))}));var hn,fn,mn,vn;function gn(e){let t=a.useRef(ln(e)),n=a.useRef(!1),i=Mt(),r=a.useMemo((()=>function(e,t){let n=ln(e);return t&&t.forEach(((e,i)=>{n.has(i)||t.getAll(i).forEach((e=>{n.append(i,e)}))})),n}(i.search,n.current?null:t.current)),[i.search]),s=Qt(),l=a.useCallback(((e,t)=>{const i=ln("function"==typeof e?e(r):e);n.current=!0,s("?"+i,t)}),[s,r]);return[r,l]}(fn=hn||(hn={})).UseScrollRestoration="useScrollRestoration",fn.UseSubmit="useSubmit",fn.UseSubmitFetcher="useSubmitFetcher",fn.UseFetcher="useFetcher",fn.useViewTransitionState="useViewTransitionState",(vn=mn||(mn={})).UseFetcher="useFetcher",vn.UseFetchers="useFetchers",vn.UseScrollRestoration="useScrollRestoration";var yn={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xn=l.createContext&&l.createContext(yn),bn=globalThis&&globalThis.__assign||function(){return bn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},bn.apply(this,arguments)},wn=globalThis&&globalThis.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]])}return n};function jn(e){return e&&e.map((function(e,t){return l.createElement(e.tag,bn({key:t},e.attr),jn(e.child))}))}function Cn(e){return function(t){return l.createElement(Sn,bn({attr:bn({},e.attr)},t),jn(e.child))}}function Sn(e){var t=function(t){var n,i=e.attr,a=e.size,r=e.title,s=wn(e,["attr","size","title"]),o=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),l.createElement("svg",bn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,s,{className:n,style:bn(bn({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),r&&l.createElement("title",null,r),e.children)};return void 0!==xn?l.createElement(xn.Consumer,null,(function(e){return t(e)})):t(yn)}function Nn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"}}]})(e)}function In(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}},{tag:"line",attr:{x1:"3",y1:"9",x2:"21",y2:"9"}},{tag:"line",attr:{x1:"9",y1:"21",x2:"9",y2:"9"}}]})(e)}function Fn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"3",y1:"12",x2:"21",y2:"12"}},{tag:"line",attr:{x1:"3",y1:"6",x2:"21",y2:"6"}},{tag:"line",attr:{x1:"3",y1:"18",x2:"21",y2:"18"}}]})(e)}function Bn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"}},{tag:"polyline",attr:{points:"17 21 17 13 7 13 7 21"}},{tag:"polyline",attr:{points:"7 3 7 8 15 8"}}]})(e)}function Pn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"3"}},{tag:"path",attr:{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}}]})(e)}function kn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}},{tag:"circle",attr:{cx:"8.5",cy:"7",r:"4"}},{tag:"polyline",attr:{points:"17 11 19 13 23 9"}}]})(e)}function Tn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"}}]})(e)}function En(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}}]})(e)}function Dn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"}}]})(e)}function Ln(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 3H4c-1.11 0-2 .89-2 2v12a2 2 0 002 2h4v2h8v-2h4c1.1 0 2-.9 2-2V5a2 2 0 00-2-2zm0 14H4V5h16v12z"}},{tag:"path",attr:{d:"M6 8.25h8v1.5H6zM16.5 9.75H18v-1.5h-1.5V7H15v4h1.5zM10 12.25h8v1.5h-8zM7.5 15H9v-4H7.5v1.25H6v1.5h1.5z"}}]})(e)}function Un(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"}}]})(e)}function _n(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-8 4c0 .55-.45 1-1 1s-1-.45-1-1V8h2v2zm2-6c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2zm4 6c0 .55-.45 1-1 1s-1-.45-1-1V8h2v2z"}}]})(e)}function On(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1.003 1.003 0 0020 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}function Mn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"}}]})(e)}function Rn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"}}]})(e)}function Qn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"}}]})(e)}function Hn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"}}]})(e)}function Vn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"}}]})(e)}function zn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"}}]})(e)}function qn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 9h4v11H4zM16 13h4v7h-4zM10 4h4v16h-4z"}}]})(e)}function Wn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}}]})(e)}function Yn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}}]})(e)}function Kn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.5 1h-8A2.5 2.5 0 005 3.5v17A2.5 2.5 0 007.5 23h8a2.5 2.5 0 002.5-2.5v-17A2.5 2.5 0 0015.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"}}]})(e)}function Gn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 2v11h3v9l7-12h-4l4-8z"}}]})(e)}function $n(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19.5 12c.93 0 1.78.28 2.5.76V8c0-1.1-.9-2-2-2h-6.29l-1.06-1.06 1.41-1.41-.71-.71-3.53 3.53.71.71 1.41-1.41L13 6.71V9c0 1.1-.9 2-2 2h-.54A5.98 5.98 0 0112 15c0 .34-.04.67-.09 1h3.14c.25-2.25 2.14-4 4.45-4z"}},{tag:"path",attr:{d:"M19.5 13c-1.93 0-3.5 1.57-3.5 3.5s1.57 3.5 3.5 3.5 3.5-1.57 3.5-3.5-1.57-3.5-3.5-3.5zm0 5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM4 9h5c0-1.1-.9-2-2-2H4c-.55 0-1 .45-1 1s.45 1 1 1zM9.83 13.82l-.18-.47.93-.35a4.92 4.92 0 00-2.31-2.43l-.4.89-.46-.21.4-.9C7.26 10.13 6.64 10 6 10c-.53 0-1.04.11-1.52.26l.34.91-.47.18-.35-.93a4.92 4.92 0 00-2.43 2.31l.89.4-.21.46-.9-.4C1.13 13.74 1 14.36 1 15c0 .53.11 1.04.26 1.52l.91-.34.18.47-.93.35a4.92 4.92 0 002.31 2.43l.4-.89.46.21-.4.9c.55.22 1.17.35 1.81.35.53 0 1.04-.11 1.52-.26l-.34-.91.47-.18.35.93a4.92 4.92 0 002.43-2.31l-.89-.4.21-.46.9.4c.22-.55.35-1.17.35-1.81 0-.53-.11-1.04-.26-1.52l-.91.34zm-2.68 3.95c-1.53.63-3.29-.09-3.92-1.62-.63-1.53.09-3.29 1.62-3.92 1.53-.63 3.29.09 3.92 1.62.64 1.53-.09 3.29-1.62 3.92z"}}]})(e)}function Xn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M22 10v12H2V10l7-3v2l5-2v3h8zm-4.8-1.5L18 2h3l.8 6.5h-4.6zM11 18h2v-4h-2v4zm-4 0h2v-4H7v4zm10-4h-2v4h2v-4z"}}]})(e)}function Jn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1.003 1.003 0 0020 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}function Zn(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z"}}]})(e)}function ei(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 5h-2.64l1.14-3.14L17.15 1l-1.46 4H3v2l2 6-2 6v2h18v-2l-2-6 2-6V5zm-5 9h-3v3h-2v-3H8v-2h3V9h2v3h3v2z"}}]})(e)}function ti(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}}]})(e)}function ni(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8.1 13.34l2.83-2.83L3.91 3.5a4.008 4.008 0 000 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2-1.1-6.12.81-1.59 1.59-2.09 3.74-1.38 5.27L3.7 19.87l1.41 1.41L12 14.41l6.88 6.88 1.41-1.41L13.41 13l1.47-1.47z"}}]})(e)}function ii(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"}}]})(e)}function ai(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M22 21V7L12 3 2 7v14h5v-9h10v9h5zm-11-2H9v2h2v-2zm2-3h-2v2h2v-2zm2 3h-2v2h2v-2z"}}]})(e)}function ri(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}}]})(e)}function si(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(e)}function li(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}}]})(e)}function oi(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}function di(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21.6 18.2L13 11.75v-.91a3.496 3.496 0 00-.18-6.75A3.51 3.51 0 008.5 7.5h2c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5c0 .84-.69 1.52-1.53 1.5-.54-.01-.97.45-.97.99v1.76L2.4 18.2c-.77.58-.36 1.8.6 1.8h18c.96 0 1.37-1.22.6-1.8zM6 18l6-4.5 6 4.5H6z"}}]})(e)}function ci(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0zm13.97 21.49c-.63.23-1.29.4-1.97.51.68-.12 1.33-.29 1.97-.51zM12 22z"}},{tag:"path",attr:{d:"M8.55 12zm10.43-1.61zM15.49 9.63c-.18-2.79-1.31-5.51-3.43-7.63a12.188 12.188 0 00-3.55 7.63c1.28.68 2.46 1.56 3.49 2.63 1.03-1.06 2.21-1.94 3.49-2.63zm-6.5 2.65c-.14-.1-.3-.19-.45-.29.15.11.31.19.45.29zm6.42-.25c-.13.09-.27.16-.4.26.13-.1.27-.17.4-.26zM12 15.45C9.85 12.17 6.18 10 2 10c0 5.32 3.36 9.82 8.03 11.49.63.23 1.29.4 1.97.51.68-.12 1.33-.29 1.97-.51C18.64 19.82 22 15.32 22 10c-4.18 0-7.85 2.17-10 5.45z"}}]})(e)}function ui(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21.9 8.89l-1.05-4.37c-.22-.9-1-1.52-1.91-1.52H5.05c-.9 0-1.69.63-1.9 1.52L2.1 8.89c-.24 1.02-.02 2.06.62 2.88.08.11.19.19.28.29V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6.94c.09-.09.2-.18.28-.28.64-.82.87-1.87.62-2.89zm-2.99-3.9l1.05 4.37c.1.42.01.84-.25 1.17-.14.18-.44.47-.94.47-.61 0-1.14-.49-1.21-1.14L16.98 5l1.93-.01zM13 5h1.96l.54 4.52c.05.39-.07.78-.33 1.07-.22.26-.54.41-.95.41-.67 0-1.22-.59-1.22-1.31V5zM8.49 9.52L9.04 5H11v4.69c0 .72-.55 1.31-1.29 1.31-.34 0-.65-.15-.89-.41a1.42 1.42 0 01-.33-1.07zm-4.45-.16L5.05 5h1.97l-.58 4.86c-.08.65-.6 1.14-1.21 1.14-.49 0-.8-.29-.93-.47-.27-.32-.36-.75-.26-1.17zM5 19v-6.03c.08.01.15.03.23.03.87 0 1.66-.36 2.24-.95.6.6 1.4.95 2.31.95.87 0 1.65-.36 2.23-.93.59.57 1.39.93 2.29.93.84 0 1.64-.35 2.24-.95.58.59 1.37.95 2.24.95.08 0 .15-.02.23-.03V19H5z"}}]})(e)}function pi(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 6a2 2 0 002-2c0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01zM18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9z"}}]})(e)}function Ai(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}}]})(e)}function hi(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9.68 13.69L12 11.93l2.31 1.76-.88-2.85L15.75 9h-2.84L12 6.19 11.09 9H8.25l2.31 1.84-.88 2.85zM20 10c0-4.42-3.58-8-8-8s-8 3.58-8 8c0 2.03.76 3.87 2 5.28V23l6-2 6 2v-7.72A7.96 7.96 0 0020 10zm-8-6c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6z"}}]})(e)}function fi(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}}]})(e)}function mi(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 8l-1.41 1.41L17.17 11H9v2h8.17l-1.58 1.58L17 16l4-4-4-4zM5 5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h7v-2H5V5z"}}]})(e)}function vi(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M22 16v-2l-8.5-5V3.5c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5V9L2 14v2l8.5-2.5V19L8 20.5V22l4-1 4 1v-1.5L13.5 19v-5.5L22 16z"}},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}}]})(e)}function gi(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19.93 8.35l-3.6 1.68L14 7.7V6.3l2.33-2.33 3.6 1.68c.38.18.82.01 1-.36.18-.38.01-.82-.36-1l-3.92-1.83a.993.993 0 00-1.13.2L13.78 4.4A.975.975 0 0013 4c-.55 0-1 .45-1 1v1H8.82C8.4 4.84 7.3 4 6 4 4.34 4 3 5.34 3 7c0 1.1.6 2.05 1.48 2.58L7.08 18H6c-1.1 0-2 .9-2 2v1h13v-1c0-1.1-.9-2-2-2h-1.62L8.41 8.77c.17-.24.31-.49.41-.77H12v1c0 .55.45 1 1 1 .32 0 .6-.16.78-.4l1.74 1.74c.3.3.75.38 1.13.2l3.92-1.83c.38-.18.54-.62.36-1a.753.753 0 00-1-.36zM6 8c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm5.11 10H9.17l-2.46-8h.1l4.3 8z"}}]})(e)}function yi(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function xi(e){return!!e&&!!e[sa]}function bi(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===la}(e)||Array.isArray(e)||!!e[ra]||!!(null===(t=e.constructor)||void 0===t?void 0:t[ra])||Ii(e)||Fi(e))}function wi(e,t,n){void 0===n&&(n=!1),0===ji(e)?(n?Object.keys:oa)(e).forEach((function(i){n&&"symbol"==typeof i||t(i,e[i],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function ji(e){var t=e[sa];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ii(e)?2:Fi(e)?3:0}function Ci(e,t){return 2===ji(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Si(e,t,n){var i=ji(e);2===i?e.set(t,n):3===i?e.add(n):e[t]=n}function Ni(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Ii(e){return ta&&e instanceof Map}function Fi(e){return na&&e instanceof Set}function Bi(e){return e.o||e.t}function Pi(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=da(e);delete t[sa];for(var n=oa(t),i=0;i<n.length;i++){var a=n[i],r=t[a];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(t[a]={configurable:!0,writable:!0,enumerable:r.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function ki(e,t){return void 0===t&&(t=!1),Ei(e)||xi(e)||!bi(e)||(ji(e)>1&&(e.set=e.add=e.clear=e.delete=Ti),Object.freeze(e),t&&wi(e,(function(e,t){return ki(t,!0)}),!0)),e}function Ti(){yi(2)}function Ei(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Di(e){var t=ca[e];return t||yi(18,e),t}function Li(){return Zi}function Ui(e,t){t&&(Di("Patches"),e.u=[],e.s=[],e.v=t)}function _i(e){Oi(e),e.p.forEach(Ri),e.p=null}function Oi(e){e===Zi&&(Zi=e.l)}function Mi(e){return Zi={p:[],l:Zi,h:e,m:!0,_:0}}function Ri(e){var t=e[sa];0===t.i||1===t.i?t.j():t.g=!0}function Qi(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.O||Di("ES5").S(t,e,i),i?(n[sa].P&&(_i(t),yi(4)),bi(e)&&(e=Hi(t,e),t.l||zi(t,e)),t.u&&Di("Patches").M(n[sa].t,e,t.u,t.s)):e=Hi(t,n,[]),_i(t),t.u&&t.v(t.u,t.s),e!==aa?e:void 0}function Hi(e,t,n){if(Ei(t))return t;var i=t[sa];if(!i)return wi(t,(function(a,r){return Vi(e,i,t,a,r,n)}),!0),t;if(i.A!==e)return t;if(!i.P)return zi(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var a=4===i.i||5===i.i?i.o=Pi(i.k):i.o,r=a,s=!1;3===i.i&&(r=new Set(a),a.clear(),s=!0),wi(r,(function(t,r){return Vi(e,i,a,t,r,n,s)})),zi(e,a,!1),n&&e.u&&Di("Patches").N(i,n,e.u,e.s)}return i.o}function Vi(e,t,n,i,a,r,s){if(xi(a)){var l=Hi(e,a,r&&t&&3!==t.i&&!Ci(t.R,i)?r.concat(i):void 0);if(Si(n,i,l),!xi(l))return;e.m=!1}else s&&n.add(a);if(bi(a)&&!Ei(a)){if(!e.h.D&&e._<1)return;Hi(e,a),t&&t.A.l||zi(e,a)}}function zi(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&ki(t,n)}function qi(e,t){var n=e[sa];return(n?Bi(n):e)[t]}function Wi(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}function Yi(e){e.P||(e.P=!0,e.l&&Yi(e.l))}function Ki(e){e.o||(e.o=Pi(e.t))}function Gi(e,t,n){var i=Ii(t)?Di("MapSet").F(t,n):Fi(t)?Di("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),i={i:n?1:0,A:t?t.A:Li(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},a=i,r=ua;n&&(a=[i],r=pa);var s=Proxy.revocable(a,r),l=s.revoke,o=s.proxy;return i.k=o,i.j=l,o}(t,n):Di("ES5").J(t,n);return(n?n.A:Li()).p.push(i),i}function $i(e){return xi(e)||yi(22,e),function e(t){if(!bi(t))return t;var n,i=t[sa],a=ji(t);if(i){if(!i.P&&(i.i<4||!Di("ES5").K(i)))return i.t;i.I=!0,n=Xi(t,a),i.I=!1}else n=Xi(t,a);return wi(n,(function(t,a){i&&function(e,t){return 2===ji(e)?e.get(t):e[t]}(i.t,t)===a||Si(n,t,e(a))})),3===a?new Set(n):n}(e)}function Xi(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Pi(e)}var Ji,Zi,ea="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ta="undefined"!=typeof Map,na="undefined"!=typeof Set,ia="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,aa=ea?Symbol.for("immer-nothing"):((Ji={})["immer-nothing"]=!0,Ji),ra=ea?Symbol.for("immer-draftable"):"__$immer_draftable",sa=ea?Symbol.for("immer-state"):"__$immer_state",la=""+Object.prototype.constructor,oa="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,da=Object.getOwnPropertyDescriptors||function(e){var t={};return oa(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},ca={},ua={get:function(e,t){if(t===sa)return e;var n,i,a,r=Bi(e);if(!Ci(r,t))return n=e,(a=Wi(r,t))?"value"in a?a.value:null===(i=a.get)||void 0===i?void 0:i.call(n.k):void 0;var s=r[t];return e.I||!bi(s)?s:s===qi(e.t,t)?(Ki(e),e.o[t]=Gi(e.A.h,s,e)):s},has:function(e,t){return t in Bi(e)},ownKeys:function(e){return Reflect.ownKeys(Bi(e))},set:function(e,t,n){var i=Wi(Bi(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,n),!0;if(!e.P){var a=qi(Bi(e),t),r=null==a?void 0:a[sa];if(r&&r.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Ni(n,a)&&(void 0!==n||Ci(e.t,t)))return!0;Ki(e),Yi(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==qi(e.t,t)||t in e.t?(e.R[t]=!1,Ki(e),Yi(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Bi(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:i.enumerable,value:n[t]}:i},defineProperty:function(){yi(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){yi(12)}},pa={};wi(ua,(function(e,t){pa[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),pa.deleteProperty=function(e,t){return pa.set.call(this,e,t,void 0)},pa.set=function(e,t,n){return ua.set.call(this,e[0],t,n,e[0])};var Aa=function(){function e(e){var t=this;this.O=ia,this.D=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var r=t;return function(e){var t=this;void 0===e&&(e=a);for(var i=arguments.length,s=Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];return r.produce(e,(function(e){var i;return(i=n).call.apply(i,[t,e].concat(s))}))}}var s;if("function"!=typeof n&&yi(6),void 0!==i&&"function"!=typeof i&&yi(7),bi(e)){var l=Mi(t),o=Gi(t,e,void 0),d=!0;try{s=n(o),d=!1}finally{d?_i(l):Oi(l)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(e){return Ui(l,i),Qi(e,l)}),(function(e){throw _i(l),e})):(Ui(l,i),Qi(s,l))}if(!e||"object"!=typeof e){if(void 0===(s=n(e))&&(s=e),s===aa&&(s=void 0),t.D&&ki(s,!0),i){var c=[],u=[];Di("Patches").M(e,s,c,u),i(c,u)}return s}yi(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var i=arguments.length,a=Array(i>1?i-1:0),r=1;r<i;r++)a[r-1]=arguments[r];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(a))}))};var i,a,r=t.produce(e,n,(function(e,t){i=e,a=t}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(e){return[e,i,a]})):[r,i,a]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){bi(e)||yi(8),xi(e)&&(e=$i(e));var t=Mi(this),n=Gi(this,e,void 0);return n[sa].C=!0,Oi(t),n},t.finishDraft=function(e,t){var n=(e&&e[sa]).A;return Ui(n,t),Qi(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!ia&&yi(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var i=t[n];if(0===i.path.length&&"replace"===i.op){e=i.value;break}}n>-1&&(t=t.slice(n+1));var a=Di("Patches").$;return xi(e)?a(e,t):this.produce(e,(function(e){return a(e,t)}))},e}(),ha=new Aa,fa=ha.produce;function ma(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}ha.produceWithPatches.bind(ha),ha.setAutoFreeze.bind(ha),ha.setUseProxies.bind(ha),ha.applyPatches.bind(ha),ha.createDraft.bind(ha),ha.finishDraft.bind(ha);var va="function"==typeof Symbol&&Symbol.observable||"@@observable",ga=function(){return Math.random().toString(36).substring(7).split("").join(".")},ya={INIT:"@@redux/INIT"+ga(),REPLACE:"@@redux/REPLACE"+ga(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ga()}};function xa(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ma(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ma(1));return n(xa)(e,t)}if("function"!=typeof e)throw new Error(ma(2));var a=e,r=t,s=[],l=s,o=!1;function d(){l===s&&(l=s.slice())}function c(){if(o)throw new Error(ma(3));return r}function u(e){if("function"!=typeof e)throw new Error(ma(4));if(o)throw new Error(ma(5));var t=!0;return d(),l.push(e),function(){if(t){if(o)throw new Error(ma(6));t=!1,d();var n=l.indexOf(e);l.splice(n,1),s=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(ma(7));if(void 0===e.type)throw new Error(ma(8));if(o)throw new Error(ma(9));try{o=!0,r=a(r,e)}finally{o=!1}for(var t=s=l,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:ya.INIT}),(i={dispatch:p,subscribe:u,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ma(10));a=e,p({type:ya.REPLACE})}})[va]=function(){var e,t=u;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(ma(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[va]=function(){return this},e},i}function ba(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var a=t[i];"function"==typeof e[a]&&(n[a]=e[a])}var r,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:ya.INIT}))throw new Error(ma(12));if(void 0===n(void 0,{type:ya.PROBE_UNKNOWN_ACTION()}))throw new Error(ma(13))}))}(n)}catch(Ou){r=Ou}return function(e,t){if(void 0===e&&(e={}),r)throw r;for(var i=!1,a={},l=0;l<s.length;l++){var o=s[l],d=n[o],c=e[o],u=d(c,t);if(void 0===u)throw t&&t.type,new Error(ma(14));a[o]=u,i=i||u!==c}return(i=i||s.length!==Object.keys(e).length)?a:e}}function wa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function ja(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),i=function(){throw new Error(ma(15))},a={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},r=t.map((function(e){return e(a)}));return i=wa.apply(void 0,r)(n.dispatch),u(u({},n),{},{dispatch:i})}}}function Ca(e){return function(t){var n=t.dispatch,i=t.getState;return function(t){return function(a){return"function"==typeof a?a(n,i,e):t(a)}}}}var Sa=Ca();Sa.withExtraArgument=Ca;const Na=Sa;var Ia,Fa=globalThis&&globalThis.__extends||(Ia=function(e,t){return(Ia=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ia(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ba=globalThis&&globalThis.__generator||function(e,t){var n,i,a,r,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(r){return function(l){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(a=2&r[0]?i.return:r[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,r[1])).done)return a;switch(i=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(a=s.trys,(a=a.length>0&&a[a.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){s.label=r[1];break}if(6===r[0]&&s.label<a[1]){s.label=a[1],a=r;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(r);break}a[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(Ou){r=[6,Ou],i=0}finally{n=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,l])}}},Pa=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,i=t.length,a=e.length;n<i;n++,a++)e[a]=t[n];return e},ka=Object.defineProperty,Ta=Object.defineProperties,Ea=Object.getOwnPropertyDescriptors,Da=Object.getOwnPropertySymbols,La=Object.prototype.hasOwnProperty,Ua=Object.prototype.propertyIsEnumerable,_a=function(e,t,n){return t in e?ka(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Oa=function(e,t){for(var n in t||(t={}))La.call(t,n)&&_a(e,n,t[n]);if(Da)for(var i=0,a=Da(t);i<a.length;i++){n=a[i];Ua.call(t,n)&&_a(e,n,t[n])}return e},Ma=function(e,t){return Ta(e,Ea(t))},Ra="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?wa:wa.apply(null,arguments)};function Qa(e,t){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Oa(Oa({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}var Ha=function(e){function t(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=e.apply(this,n)||this;return Object.setPrototypeOf(a,t.prototype),a}return Fa(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,Pa([void 0],e[0].concat(this)))):new(t.bind.apply(t,Pa([void 0],e.concat(this))))},t}(Array),Va=function(e){function t(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=e.apply(this,n)||this;return Object.setPrototypeOf(a,t.prototype),a}return Fa(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,Pa([void 0],e[0].concat(this)))):new(t.bind.apply(t,Pa([void 0],e.concat(this))))},t}(Array);function za(e){return bi(e)?fa(e,(function(){})):e}function qa(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t;e.immutableCheck,e.serializableCheck,e.actionCreatorCheck;var i=new Ha;n&&("boolean"==typeof n?i.push(Na):i.push(Na.withExtraArgument(n.extraArgument)));return i}(e)}}function Wa(e){var t,n={},i=[],a={addCase:function(e,t){var i="string"==typeof e?e:e.type;if(!i)throw new Error("`builder.addCase` cannot be called with an empty action type");if(i in n)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return n[i]=t,a},addMatcher:function(e,t){return i.push({matcher:e,reducer:t}),a},addDefaultCase:function(e){return t=e,a}};return e(a),[n,i,t]}function Ya(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,i="function"==typeof e.initialState?e.initialState:za(e.initialState),a=e.reducers||{},r=Object.keys(a),s={},l={},o={};function d(){var t="function"==typeof e.extraReducers?Wa(e.extraReducers):[e.extraReducers],n=t[0],a=void 0===n?{}:n,r=t[1],s=void 0===r?[]:r,o=t[2],d=void 0===o?void 0:o,c=Oa(Oa({},a),l);return function(e,t,n,i){void 0===n&&(n=[]);var a,r="function"==typeof t?Wa(t):[t,n,i],s=r[0],l=r[1],o=r[2];if("function"==typeof e)a=function(){return za(e())};else{var d=za(e);a=function(){return d}}function c(e,t){void 0===e&&(e=a());var n=Pa([s[t.type]],l.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[o]),n.reduce((function(e,n){if(n){var i;if(xi(e))return void 0===(i=n(e,t))?e:i;if(bi(e))return fa(e,(function(e){return n(e,t)}));if(void 0===(i=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return e}),e)}return c.getInitialState=a,c}(i,(function(e){for(var t in c)e.addCase(t,c[t]);for(var n=0,i=s;n<i.length;n++){var a=i[n];e.addMatcher(a.matcher,a.reducer)}d&&e.addDefaultCase(d)}))}return r.forEach((function(e){var n,i,r=a[e],d=t+"/"+e;"reducer"in r?(n=r.reducer,i=r.prepare):n=r,s[e]=n,l[d]=n,o[e]=i?Qa(d,i):Qa(d)})),{name:t,reducer:function(e,t){return n||(n=d()),n(e,t)},actions:o,caseReducers:s,getInitialState:function(){return n||(n=d()),n.getInitialState()}}}var Ka=["name","message","stack","code"],Ga=function(e,t){this.payload=e,this.meta=t},$a=function(e,t){this.payload=e,this.meta=t},Xa=function(e){if("object"==typeof e&&null!==e){for(var t={},n=0,i=Ka;n<i.length;n++){var a=i[n];"string"==typeof e[a]&&(t[a]=e[a])}return t}return{message:String(e)}},Ja=function(){function e(e,t,n){var i=Qa(e+"/fulfilled",(function(e,t,n,i){return{payload:e,meta:Ma(Oa({},i||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),a=Qa(e+"/pending",(function(e,t,n){return{payload:void 0,meta:Ma(Oa({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),r=Qa(e+"/rejected",(function(e,t,i,a,r){return{payload:a,error:(n&&n.serializeError||Xa)(e||"Rejected"),meta:Ma(Oa({},r||{}),{arg:i,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){},e}();return Object.assign((function(e){return function(l,o,d){var c,u=(null==n?void 0:n.idGenerator)?n.idGenerator(e):function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}(),p=new s;function A(e){c=e,p.abort()}var h=function(){return s=this,h=null,f=function(){var s,h,f,m,v,g;return Ba(this,(function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),m=null==(s=null==n?void 0:n.condition)?void 0:s.call(n,e,{getState:o,extra:d}),null===(x=m)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,m];case 1:m=y.sent(),y.label=2;case 2:if(!1===m||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=new Promise((function(e,t){return p.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:c||"Aborted"})}))})),l(a(u,e,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:u,arg:e},{getState:o,extra:d}))),[4,Promise.race([v,Promise.resolve(t(e,{dispatch:l,getState:o,extra:d,requestId:u,signal:p.signal,abort:A,rejectWithValue:function(e,t){return new Ga(e,t)},fulfillWithValue:function(e,t){return new $a(e,t)}})).then((function(t){if(t instanceof Ga)throw t;return t instanceof $a?i(t.payload,u,e,t.meta):i(t,u,e)}))])];case 3:return f=y.sent(),[3,5];case 4:return g=y.sent(),f=g instanceof Ga?r(null,u,e,g.payload,g.meta):r(g,u,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&r.match(f)&&f.meta.condition||l(f),[2,f]}var x}))},new Promise((function(e,t){var n=function(e){try{a(f.next(e))}catch(Ou){t(Ou)}},i=function(e){try{a(f.throw(e))}catch(Ou){t(Ou)}},a=function(t){return t.done?e(t.value):Promise.resolve(t.value).then(n,i)};a((f=f.apply(s,h)).next())}));var s,h,f}();return Object.assign(h,{abort:A,requestId:u,arg:e,unwrap:function(){return h.then(Za)}})}}),{pending:a,rejected:r,fulfilled:i,typePrefix:e})}return e.withTypes=function(){return e},e}();function Za(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var er="listenerMiddleware";Qa(er+"/add"),Qa(er+"/removeAll"),Qa(er+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function e(e,t){var n=s[e];return n?n.enumerable=t:s[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[sa];return ua.get(t,e)},set:function(t){var n=this[sa];ua.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var a=e[t][sa];if(!a.P)switch(a.i){case 5:i(a)&&Yi(a);break;case 4:n(a)&&Yi(a)}}}function n(e){for(var t=e.t,n=e.k,i=oa(n),a=i.length-1;a>=0;a--){var r=i[a];if(r!==sa){var s=t[r];if(void 0===s&&!Ci(t,r))return!0;var l=n[r],o=l&&l[sa];if(o?o.t!==s:!Ni(l,s))return!0}}var d=!!t[sa];return i.length!==oa(t).length+(d?0:1)}function i(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var i=0;i<t.length;i++)if(!t.hasOwnProperty(i))return!0;return!1}var a,r,s={};r={J:function(t,n){var i=Array.isArray(t),a=function(t,n){if(t){for(var i=Array(n.length),a=0;a<n.length;a++)Object.defineProperty(i,""+a,e(a,!0));return i}var r=da(n);delete r[sa];for(var s=oa(r),l=0;l<s.length;l++){var o=s[l];r[o]=e(o,t||!!r[o].enumerable)}return Object.create(Object.getPrototypeOf(n),r)}(i,t),r={i:i?5:4,A:n?n.A:Li(),P:!1,I:!1,R:{},l:n,t:t,k:a,o:null,g:!1,C:!1};return Object.defineProperty(a,sa,{value:r,writable:!0}),a},S:function(e,n,a){a?xi(n)&&n[sa].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[sa];if(n){var a=n.t,r=n.k,s=n.R,l=n.i;if(4===l)wi(r,(function(t){t!==sa&&(void 0!==a[t]||Ci(a,t)?s[t]||e(r[t]):(s[t]=!0,Yi(n)))})),wi(a,(function(e){void 0!==r[e]||Ci(r,e)||(s[e]=!1,Yi(n))}));else if(5===l){if(i(n)&&(Yi(n),s.length=!0),r.length<a.length)for(var o=r.length;o<a.length;o++)s[o]=!1;else for(var d=a.length;d<r.length;d++)s[d]=!0;for(var c=Math.min(r.length,a.length),u=0;u<c;u++)r.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&e(r[u])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):i(e)}},ca[a="ES5"]||(ca[a]=r)}();
|
||
/*!
|
||
* cookie
|
||
* Copyright(c) 2012-2014 Roman Shtylman
|
||
* Copyright(c) 2015 Douglas Christopher Wilson
|
||
* MIT Licensed
|
||
*/
|
||
var tr=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},a=e.split(";"),r=i.decode||ir,s=0;s<a.length;s++){var l=a[s],o=l.indexOf("=");if(!(o<0)){var d=l.substring(0,o).trim();if(null==n[d]){var c=l.substring(o+1,l.length).trim();'"'===c[0]&&(c=c.slice(1,-1)),n[d]=sr(c,r)}}}return n},nr=function(e,t,n){var i=n||{},a=i.encode||ar;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!rr.test(e))throw new TypeError("argument name is invalid");var r=a(t);if(r&&!rr.test(r))throw new TypeError("argument val is invalid");var s=e+"="+r;if(null!=i.maxAge){var l=i.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(l)}if(i.domain){if(!rr.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain="+i.domain}if(i.path){if(!rr.test(i.path))throw new TypeError("option path is invalid");s+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw new TypeError("option expires is invalid");s+="; Expires="+i.expires.toUTCString()}i.httpOnly&&(s+="; HttpOnly");i.secure&&(s+="; Secure");if(i.sameSite){switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},ir=decodeURIComponent,ar=encodeURIComponent,rr=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function sr(e,t){try{return t(e)}catch(Ou){return e}}function lr(e,t){void 0===t&&(t={});var n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return void 0===t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(Ou){}return e}var or=globalThis&&globalThis.__assign||function(){return or=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},or.apply(this,arguments)};const dr=function(){function e(e,t){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(e,t){return"string"==typeof e?tr(e,t):"object"==typeof e&&null!==e?e:{}}(e,t),new Promise((function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie})).catch((function(){}))}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=tr(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,n){return void 0===t&&(t={}),this._updateBrowserValues(n),lr(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var n={};for(var i in this.cookies)n[i]=lr(this.cookies[i],e);return n},e.prototype.set=function(e,t,n){var i;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=or(or({},this.cookies),((i={})[e]=t,i)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=nr(e,t,n)),this._emitChange({name:e,value:t,options:n})},e.prototype.remove=function(e,t){var n=t=or(or({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=or({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=nr(e,"",n)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}();var cr={exports:{}};const ur={},pr=function(e,t,n){if(!t||0===t.length)return e();const i=document.getElementsByTagName("link");return Promise.all(t.map((e=>{if((e=function(e){return"/"+e}(e))in ur)return;ur[e]=!0;const t=e.endsWith(".css"),a=t?'[rel="stylesheet"]':"";if(!!n)for(let n=i.length-1;n>=0;n--){const a=i[n];if(a.href===e&&(!t||"stylesheet"===a.rel))return}else if(document.querySelector(`link[href="${e}"]${a}`))return;const r=document.createElement("link");return r.rel=t?"stylesheet":"modulepreload",t||(r.as="script",r.crossOrigin=""),r.href=e,document.head.appendChild(r),t?new Promise(((t,n)=>{r.addEventListener("load",t),r.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0}))).then((()=>e())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))};var Ar=Uint8Array,hr=Uint16Array,fr=Int32Array,mr=new Ar([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]),vr=new Ar([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]),gr=new Ar([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),yr=function(e,t){for(var n=new hr(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var a=new fr(n[30]);for(i=1;i<30;++i)for(var r=n[i];r<n[i+1];++r)a[r]=r-n[i]<<5|i;return{b:n,r:a}},xr=yr(mr,2),br=xr.b,wr=xr.r;br[28]=258,wr[258]=28;for(var jr=yr(vr,0),Cr=jr.b,Sr=jr.r,Nr=new hr(32768),Ir=0;Ir<32768;++Ir){var Fr=(43690&Ir)>>1|(21845&Ir)<<1;Fr=(61680&(Fr=(52428&Fr)>>2|(13107&Fr)<<2))>>4|(3855&Fr)<<4,Nr[Ir]=((65280&Fr)>>8|(255&Fr)<<8)>>1}var Br=function(e,t,n){for(var i=e.length,a=0,r=new hr(t);a<i;++a)e[a]&&++r[e[a]-1];var s,l=new hr(t);for(a=1;a<t;++a)l[a]=l[a-1]+r[a-1]<<1;if(n){s=new hr(1<<t);var o=15-t;for(a=0;a<i;++a)if(e[a])for(var d=a<<4|e[a],c=t-e[a],u=l[e[a]-1]++<<c,p=u|(1<<c)-1;u<=p;++u)s[Nr[u]>>o]=d}else for(s=new hr(i),a=0;a<i;++a)e[a]&&(s[a]=Nr[l[e[a]-1]++]>>15-e[a]);return s},Pr=new Ar(288);for(Ir=0;Ir<144;++Ir)Pr[Ir]=8;for(Ir=144;Ir<256;++Ir)Pr[Ir]=9;for(Ir=256;Ir<280;++Ir)Pr[Ir]=7;for(Ir=280;Ir<288;++Ir)Pr[Ir]=8;var kr=new Ar(32);for(Ir=0;Ir<32;++Ir)kr[Ir]=5;var Tr=Br(Pr,9,0),Er=Br(Pr,9,1),Dr=Br(kr,5,0),Lr=Br(kr,5,1),Ur=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},_r=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(7&t)&n},Or=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},Mr=function(e){return(e+7)/8|0},Rr=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new Ar(e.subarray(t,n))},Qr=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Hr=function(e,t,n){var i=new Error(t||Qr[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,Hr),!n)throw i;return i},Vr=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8},zr=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8,e[i+2]|=n>>16},qr=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var a=n.length,r=n.slice();if(!a)return{t:Jr,l:0};if(1==a){var s=new Ar(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var l=n[0],o=n[1],d=0,c=1,u=2;for(n[0]={s:-1,f:l.f+o.f,l:l,r:o};c!=a-1;)l=n[n[d].f<n[u].f?d++:u++],o=n[d!=c&&n[d].f<n[u].f?d++:u++],n[c++]={s:-1,f:l.f+o.f,l:l,r:o};var p=r[0].s;for(i=1;i<a;++i)r[i].s>p&&(p=r[i].s);var A=new hr(p+1),h=Wr(n[c-1],A,0);if(h>t){i=0;var f=0,m=h-t,v=1<<m;for(r.sort((function(e,t){return A[t.s]-A[e.s]||e.f-t.f}));i<a;++i){var g=r[i].s;if(!(A[g]>t))break;f+=v-(1<<h-A[g]),A[g]=t}for(f>>=m;f>0;){var y=r[i].s;A[y]<t?f-=1<<t-A[y]++-1:++i}for(;i>=0&&f;--i){var x=r[i].s;A[x]==t&&(--A[x],++f)}h=t}return{t:new Ar(A),l:h}},Wr=function(e,t,n){return-1==e.s?Math.max(Wr(e.l,t,n+1),Wr(e.r,t,n+1)):t[e.s]=n},Yr=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new hr(++t),i=0,a=e[0],r=1,s=function(e){n[i++]=e},l=1;l<=t;++l)if(e[l]==a&&l!=t)++r;else{if(!a&&r>2){for(;r>138;r-=138)s(32754);r>2&&(s(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(s(a),--r;r>6;r-=6)s(8304);r>2&&(s(r-3<<5|8208),r=0)}for(;r--;)s(a);r=1,a=e[l]}return{c:n.subarray(0,i),n:t}},Kr=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},Gr=function(e,t,n){var i=n.length,a=Mr(t+2);e[a]=255&i,e[a+1]=i>>8,e[a+2]=255^e[a],e[a+3]=255^e[a+1];for(var r=0;r<i;++r)e[a+r+4]=n[r];return 8*(a+4+i)},$r=function(e,t,n,i,a,r,s,l,o,d,c){Vr(t,c++,n),++a[256];for(var u=qr(a,15),p=u.t,A=u.l,h=qr(r,15),f=h.t,m=h.l,v=Yr(p),g=v.c,y=v.n,x=Yr(f),b=x.c,w=x.n,j=new hr(19),C=0;C<g.length;++C)++j[31&g[C]];for(C=0;C<b.length;++C)++j[31&b[C]];for(var S=qr(j,7),N=S.t,I=S.l,F=19;F>4&&!N[gr[F-1]];--F);var B,P,k,T,E=d+5<<3,D=Kr(a,Pr)+Kr(r,kr)+s,L=Kr(a,p)+Kr(r,f)+s+14+3*F+Kr(j,N)+2*j[16]+3*j[17]+7*j[18];if(o>=0&&E<=D&&E<=L)return Gr(t,c,e.subarray(o,o+d));if(Vr(t,c,1+(L<D)),c+=2,L<D){B=Br(p,A,0),P=p,k=Br(f,m,0),T=f;var U=Br(N,I,0);Vr(t,c,y-257),Vr(t,c+5,w-1),Vr(t,c+10,F-4),c+=14;for(C=0;C<F;++C)Vr(t,c+3*C,N[gr[C]]);c+=3*F;for(var _=[g,b],O=0;O<2;++O){var M=_[O];for(C=0;C<M.length;++C){var R=31&M[C];Vr(t,c,U[R]),c+=N[R],R>15&&(Vr(t,c,M[C]>>5&127),c+=M[C]>>12)}}}else B=Tr,P=Pr,k=Dr,T=kr;for(C=0;C<l;++C){var Q=i[C];if(Q>255){zr(t,c,B[(R=Q>>18&31)+257]),c+=P[R+257],R>7&&(Vr(t,c,Q>>23&31),c+=mr[R]);var H=31&Q;zr(t,c,k[H]),c+=T[H],H>3&&(zr(t,c,Q>>5&8191),c+=vr[H])}else zr(t,c,B[Q]),c+=P[Q]}return zr(t,c,B[256]),c+P[256]},Xr=new fr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Jr=new Ar(0),Zr=function(){var e=1,t=0;return{p:function(n){for(var i=e,a=t,r=0|n.length,s=0;s!=r;){for(var l=Math.min(s+2655,r);s<l;++s)a+=i+=n[s];i=(65535&i)+15*(i>>16),a=(65535&a)+15*(a>>16)}e=i,t=a},d:function(){return(255&(e%=65521))<<24|(65280&e)<<8|(255&(t%=65521))<<8|t>>8}}},es=function(e,t,n,i,a){if(!a&&(a={l:1},t.dictionary)){var r=t.dictionary.subarray(-32768),s=new Ar(r.length+e.length);s.set(r),s.set(e,r.length),e=s,a.w=r.length}return function(e,t,n,i,a,r){var s=r.z||e.length,l=new Ar(i+s+5*(1+Math.ceil(s/7e3))+a),o=l.subarray(i,l.length-a),d=r.l,c=7&(r.r||0);if(t){c&&(o[0]=r.r>>3);for(var u=Xr[t-1],p=u>>13,A=8191&u,h=(1<<n)-1,f=r.p||new hr(32768),m=r.h||new hr(h+1),v=Math.ceil(n/3),g=2*v,y=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<g)&h},x=new fr(25e3),b=new hr(288),w=new hr(32),j=0,C=0,S=r.i||0,N=0,I=r.w||0,F=0;S+2<s;++S){var B=y(S),P=32767&S,k=m[B];if(f[P]=k,m[B]=P,I<=S){var T=s-S;if((j>7e3||N>24576)&&(T>423||!d)){c=$r(e,o,0,x,b,w,C,N,F,S-F,c),N=j=C=0,F=S;for(var E=0;E<286;++E)b[E]=0;for(E=0;E<30;++E)w[E]=0}var D=2,L=0,U=A,_=P-k&32767;if(T>2&&B==y(S-_))for(var O=Math.min(p,T)-1,M=Math.min(32767,S),R=Math.min(258,T);_<=M&&--U&&P!=k;){if(e[S+D]==e[S+D-_]){for(var Q=0;Q<R&&e[S+Q]==e[S+Q-_];++Q);if(Q>D){if(D=Q,L=_,Q>O)break;var H=Math.min(_,Q-2),V=0;for(E=0;E<H;++E){var z=S-_+E&32767,q=z-f[z]&32767;q>V&&(V=q,k=z)}}}_+=(P=k)-(k=f[P])&32767}if(L){x[N++]=268435456|wr[D]<<18|Sr[L];var W=31&wr[D],Y=31&Sr[L];C+=mr[W]+vr[Y],++b[257+W],++w[Y],I=S+D,++j}else x[N++]=e[S],++b[e[S]]}}for(S=Math.max(S,I);S<s;++S)x[N++]=e[S],++b[e[S]];c=$r(e,o,d,x,b,w,C,N,F,S-F,c),d||(r.r=7&c|o[c/8|0]<<3,c-=7,r.h=m,r.p=f,r.i=S,r.w=I)}else{for(S=r.w||0;S<s+d;S+=65535){var K=S+65535;K>=s&&(o[c/8|0]=d,K=s),c=Gr(o,c+1,e.subarray(S,K))}r.i=s}return Rr(l,0,i+Mr(c)+a)}(e,null==t.level?6:t.level,null==t.mem?a.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,i,a)},ts=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function ns(e,t){t||(t={});var n=Zr();n.p(e);var i=es(e,t,t.dictionary?6:2,4);return function(e,t){var n=t.level,i=0==n?0:n<6?1:9==n?3:2;if(e[0]=120,e[1]=i<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var a=Zr();a.p(t.dictionary),ts(e,2,a.d())}}(i,t),ts(i,i.length-4,n.d()),i}function is(e,t){return function(e,t,n,i){var a=e.length,r=i?i.length:0;if(!a||t.f&&!t.l)return n||new Ar(0);var s=!n,l=s||2!=t.i,o=t.i;s&&(n=new Ar(3*a));var d=function(e){var t=n.length;if(e>t){var i=new Ar(Math.max(2*t,e));i.set(n),n=i}},c=t.f||0,u=t.p||0,p=t.b||0,A=t.l,h=t.d,f=t.m,m=t.n,v=8*a;do{if(!A){c=_r(e,u,1);var g=_r(e,u+1,3);if(u+=3,!g){var y=e[(P=Mr(u)+4)-4]|e[P-3]<<8,x=P+y;if(x>a){o&&Hr(0);break}l&&d(p+y),n.set(e.subarray(P,x),p),t.b=p+=y,t.p=u=8*x,t.f=c;continue}if(1==g)A=Er,h=Lr,f=9,m=5;else if(2==g){var b=_r(e,u,31)+257,w=_r(e,u+10,15)+4,j=b+_r(e,u+5,31)+1;u+=14;for(var C=new Ar(j),S=new Ar(19),N=0;N<w;++N)S[gr[N]]=_r(e,u+3*N,7);u+=3*w;var I=Ur(S),F=(1<<I)-1,B=Br(S,I,1);for(N=0;N<j;){var P,k=B[_r(e,u,F)];if(u+=15&k,(P=k>>4)<16)C[N++]=P;else{var T=0,E=0;for(16==P?(E=3+_r(e,u,3),u+=2,T=C[N-1]):17==P?(E=3+_r(e,u,7),u+=3):18==P&&(E=11+_r(e,u,127),u+=7);E--;)C[N++]=T}}var D=C.subarray(0,b),L=C.subarray(b);f=Ur(D),m=Ur(L),A=Br(D,f,1),h=Br(L,m,1)}else Hr(1);if(u>v){o&&Hr(0);break}}l&&d(p+131072);for(var U=(1<<f)-1,_=(1<<m)-1,O=u;;O=u){var M=(T=A[Or(e,u)&U])>>4;if((u+=15&T)>v){o&&Hr(0);break}if(T||Hr(2),M<256)n[p++]=M;else{if(256==M){O=u,A=null;break}var R=M-254;if(M>264){var Q=mr[N=M-257];R=_r(e,u,(1<<Q)-1)+br[N],u+=Q}var H=h[Or(e,u)&_],V=H>>4;if(H||Hr(3),u+=15&H,L=Cr[V],V>3&&(Q=vr[V],L+=Or(e,u)&(1<<Q)-1,u+=Q),u>v){o&&Hr(0);break}l&&d(p+131072);var z=p+R;if(p<L){var q=r-L,W=Math.min(L,z);for(q+p<0&&Hr(3);p<W;++p)n[p]=i[q+p]}for(;p<z;++p)n[p]=n[p-L]}}t.l=A,t.p=O,t.b=p,t.f=c,A&&(c=1,t.m=f,t.d=h,t.n=m)}while(!c);return p!=n.length&&s?Rr(n,0,p):n.subarray(0,p)}(e.subarray((n=e,i=t&&t.dictionary,(8!=(15&n[0])||n[0]>>4>7||(n[0]<<8|n[1])%31)&&Hr(6,"invalid zlib data"),(n[1]>>5&1)==+!i&&Hr(6,"invalid zlib data: "+(32&n[1]?"need":"unexpected")+" dictionary"),2+(n[1]>>3&4)),-4),{i:2},t&&t.out,t&&t.dictionary);var n,i}var as="undefined"!=typeof TextDecoder&&new TextDecoder;try{as.decode(Jr,{stream:!0})}catch(Ou){}function rs(e,t="utf8"){return new TextDecoder(t).decode(e)}const ss=new TextEncoder;const ls=(()=>{const e=new Uint8Array(4);return!((new Uint32Array(e.buffer)[0]=1)&e[0])})(),os={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class ds{constructor(e=8192,t={}){i(this,"buffer"),i(this,"byteLength"),i(this,"byteOffset"),i(this,"length"),i(this,"offset"),i(this,"lastWrittenByte"),i(this,"littleEndian"),i(this,"_data"),i(this,"_mark"),i(this,"_marks");let n=!1;"number"==typeof e?e=new ArrayBuffer(e):(n=!0,this.lastWrittenByte=e.byteLength);const a=t.offset?t.offset>>>0:0,r=e.byteLength-a;let s=a;(ArrayBuffer.isView(e)||e instanceof ds)&&(e.byteLength!==e.buffer.byteLength&&(s=e.byteOffset+a),e=e.buffer),this.lastWrittenByte=n?r:0,this.buffer=e,this.length=r,this.byteLength=r,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,r),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(void 0===e)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const t=2*(this.offset+e),n=new Uint8Array(t);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=t,this.byteLength=t,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,t){const n=os[t].BYTES_PER_ELEMENT*e,i=this.byteOffset+this.offset,a=this.buffer.slice(i,i+n);if(this.littleEndian===ls&&"uint8"!==t&&"int8"!==t){const e=new Uint8Array(this.buffer.slice(i,i+n));e.reverse();const a=new os[t](e.buffer);return this.offset+=n,a.reverse(),a}const r=new os[t](a);return this.offset+=n,r}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t="";for(let n=0;n<e;n++)t+=this.readChar();return t}readUtf8(e=1){return rs(this.readBytes(e))}decodeText(e=1,t="utf8"){return rs(this.readBytes(e),t)}writeBoolean(e){return this.writeUint8(e?255:0),this}writeInt8(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this}writeUint8(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this}writeByte(e){return this.writeUint8(e)}writeBytes(e){this.ensureAvailable(e.length);for(let t=0;t<e.length;t++)this._data.setUint8(this.offset++,e[t]);return this._updateLastWrittenByte(),this}writeInt16(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(e){return this.writeUint8(e.charCodeAt(0))}writeChars(e){for(let t=0;t<e.length;t++)this.writeUint8(e.charCodeAt(t));return this}writeUtf8(e){return this.writeBytes(function(e){return ss.encode(e)}(e))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}
|
||
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */function cs(e){let t=e.length;for(;--t>=0;)e[t]=0}const us=256,ps=286,As=30,hs=15,fs=new Uint8Array([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]),ms=new Uint8Array([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]),vs=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),gs=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ys=new Array(576);cs(ys);const xs=new Array(60);cs(xs);const bs=new Array(512);cs(bs);const ws=new Array(256);cs(ws);const js=new Array(29);cs(js);const Cs=new Array(As);function Ss(e,t,n,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}let Ns,Is,Fs;function Bs(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}cs(Cs);const Ps=e=>e<256?bs[e]:bs[256+(e>>>7)],ks=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},Ts=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,ks(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},Es=(e,t,n)=>{Ts(e,n[2*t],n[2*t+1])},Ds=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},Ls=(e,t,n)=>{const i=new Array(16);let a,r,s=0;for(a=1;a<=hs;a++)s=s+n[a-1]<<1,i[a]=s;for(r=0;r<=t;r++){let t=e[2*r+1];0!==t&&(e[2*r]=Ds(i[t]++,t))}},Us=e=>{let t;for(t=0;t<ps;t++)e.dyn_ltree[2*t]=0;for(t=0;t<As;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},_s=e=>{e.bi_valid>8?ks(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Os=(e,t,n,i)=>{const a=2*t,r=2*n;return e[a]<e[r]||e[a]===e[r]&&i[t]<=i[n]},Ms=(e,t,n)=>{const i=e.heap[n];let a=n<<1;for(;a<=e.heap_len&&(a<e.heap_len&&Os(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!Os(t,i,e.heap[a],e.depth));)e.heap[n]=e.heap[a],n=a,a<<=1;e.heap[n]=i},Rs=(e,t,n)=>{let i,a,r,s,l=0;if(0!==e.sym_next)do{i=255&e.pending_buf[e.sym_buf+l++],i+=(255&e.pending_buf[e.sym_buf+l++])<<8,a=e.pending_buf[e.sym_buf+l++],0===i?Es(e,a,t):(r=ws[a],Es(e,r+us+1,t),s=fs[r],0!==s&&(a-=js[r],Ts(e,a,s)),i--,r=Ps(i),Es(e,r,n),s=ms[r],0!==s&&(i-=Cs[r],Ts(e,i,s)))}while(l<e.sym_next);Es(e,256,t)},Qs=(e,t)=>{const n=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,r=t.stat_desc.elems;let s,l,o,d=-1;for(e.heap_len=0,e.heap_max=573,s=0;s<r;s++)0!==n[2*s]?(e.heap[++e.heap_len]=d=s,e.depth[s]=0):n[2*s+1]=0;for(;e.heap_len<2;)o=e.heap[++e.heap_len]=d<2?++d:0,n[2*o]=1,e.depth[o]=0,e.opt_len--,a&&(e.static_len-=i[2*o+1]);for(t.max_code=d,s=e.heap_len>>1;s>=1;s--)Ms(e,n,s);o=r;do{s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Ms(e,n,1),l=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=l,n[2*o]=n[2*s]+n[2*l],e.depth[o]=(e.depth[s]>=e.depth[l]?e.depth[s]:e.depth[l])+1,n[2*s+1]=n[2*l+1]=o,e.heap[1]=o++,Ms(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const n=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,r=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,o=t.stat_desc.max_length;let d,c,u,p,A,h,f=0;for(p=0;p<=hs;p++)e.bl_count[p]=0;for(n[2*e.heap[e.heap_max]+1]=0,d=e.heap_max+1;d<573;d++)c=e.heap[d],p=n[2*n[2*c+1]+1]+1,p>o&&(p=o,f++),n[2*c+1]=p,c>i||(e.bl_count[p]++,A=0,c>=l&&(A=s[c-l]),h=n[2*c],e.opt_len+=h*(p+A),r&&(e.static_len+=h*(a[2*c+1]+A)));if(0!==f){do{for(p=o-1;0===e.bl_count[p];)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[o]--,f-=2}while(f>0);for(p=o;0!==p;p--)for(c=e.bl_count[p];0!==c;)u=e.heap[--d],u>i||(n[2*u+1]!==p&&(e.opt_len+=(p-n[2*u+1])*n[2*u],n[2*u+1]=p),c--)}})(e,t),Ls(n,d,e.bl_count)},Hs=(e,t,n)=>{let i,a,r=-1,s=t[1],l=0,o=7,d=4;for(0===s&&(o=138,d=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)a=s,s=t[2*(i+1)+1],++l<o&&a===s||(l<d?e.bl_tree[2*a]+=l:0!==a?(a!==r&&e.bl_tree[2*a]++,e.bl_tree[32]++):l<=10?e.bl_tree[34]++:e.bl_tree[36]++,l=0,r=a,0===s?(o=138,d=3):a===s?(o=6,d=3):(o=7,d=4))},Vs=(e,t,n)=>{let i,a,r=-1,s=t[1],l=0,o=7,d=4;for(0===s&&(o=138,d=3),i=0;i<=n;i++)if(a=s,s=t[2*(i+1)+1],!(++l<o&&a===s)){if(l<d)do{Es(e,a,e.bl_tree)}while(0!==--l);else 0!==a?(a!==r&&(Es(e,a,e.bl_tree),l--),Es(e,16,e.bl_tree),Ts(e,l-3,2)):l<=10?(Es(e,17,e.bl_tree),Ts(e,l-3,3)):(Es(e,18,e.bl_tree),Ts(e,l-11,7));l=0,r=a,0===s?(o=138,d=3):a===s?(o=6,d=3):(o=7,d=4)}};let zs=!1;const qs=(e,t,n,i)=>{Ts(e,0+(i?1:0),3),_s(e),ks(e,n),ks(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};var Ws=e=>{zs||((()=>{let e,t,n,i,a;const r=new Array(16);for(n=0,i=0;i<28;i++)for(js[i]=n,e=0;e<1<<fs[i];e++)ws[n++]=i;for(ws[n-1]=i,a=0,i=0;i<16;i++)for(Cs[i]=a,e=0;e<1<<ms[i];e++)bs[a++]=i;for(a>>=7;i<As;i++)for(Cs[i]=a<<7,e=0;e<1<<ms[i]-7;e++)bs[256+a++]=i;for(t=0;t<=hs;t++)r[t]=0;for(e=0;e<=143;)ys[2*e+1]=8,e++,r[8]++;for(;e<=255;)ys[2*e+1]=9,e++,r[9]++;for(;e<=279;)ys[2*e+1]=7,e++,r[7]++;for(;e<=287;)ys[2*e+1]=8,e++,r[8]++;for(Ls(ys,287,r),e=0;e<As;e++)xs[2*e+1]=5,xs[2*e]=Ds(e,5);Ns=new Ss(ys,fs,257,ps,hs),Is=new Ss(xs,ms,0,As,hs),Fs=new Ss(new Array(0),vs,0,19,7)})(),zs=!0),e.l_desc=new Bs(e.dyn_ltree,Ns),e.d_desc=new Bs(e.dyn_dtree,Is),e.bl_desc=new Bs(e.bl_tree,Fs),e.bi_buf=0,e.bi_valid=0,Us(e)},Ys=(e,t,n,i)=>{let a,r,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<us;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0})(e)),Qs(e,e.l_desc),Qs(e,e.d_desc),s=(e=>{let t;for(Hs(e,e.dyn_ltree,e.l_desc.max_code),Hs(e,e.dyn_dtree,e.d_desc.max_code),Qs(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*gs[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),a=e.opt_len+3+7>>>3,r=e.static_len+3+7>>>3,r<=a&&(a=r)):a=r=n+5,n+4<=a&&-1!==t?qs(e,t,n,i):4===e.strategy||r===a?(Ts(e,2+(i?1:0),3),Rs(e,ys,xs)):(Ts(e,4+(i?1:0),3),((e,t,n,i)=>{let a;for(Ts(e,t-257,5),Ts(e,n-1,5),Ts(e,i-4,4),a=0;a<i;a++)Ts(e,e.bl_tree[2*gs[a]+1],3);Vs(e,e.dyn_ltree,t-1),Vs(e,e.dyn_dtree,n-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),Rs(e,e.dyn_ltree,e.dyn_dtree)),Us(e),i&&_s(e)},Ks={_tr_init:Ws,_tr_stored_block:qs,_tr_flush_block:Ys,_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(ws[n]+us+1)]++,e.dyn_dtree[2*Ps(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{Ts(e,2,3),Es(e,256,ys),(e=>{16===e.bi_valid?(ks(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}};var Gs=(e,t,n,i)=>{let a=65535&e,r=e>>>16&65535,s=0;for(;0!==n;){s=n>2e3?2e3:n,n-=s;do{a=a+t[i++]|0,r=r+a|0}while(--s);a%=65521,r%=65521}return a|r<<16};const $s=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t})());var Xs=(e,t,n,i)=>{const a=$s,r=i+n;e^=-1;for(let s=i;s<r;s++)e=e>>>8^a[255&(e^t[s])];return-1^e},Js={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Zs={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:el,_tr_stored_block:tl,_tr_flush_block:nl,_tr_tally:il,_tr_align:al}=Ks,{Z_NO_FLUSH:rl,Z_PARTIAL_FLUSH:sl,Z_FULL_FLUSH:ll,Z_FINISH:ol,Z_BLOCK:dl,Z_OK:cl,Z_STREAM_END:ul,Z_STREAM_ERROR:pl,Z_DATA_ERROR:Al,Z_BUF_ERROR:hl,Z_DEFAULT_COMPRESSION:fl,Z_FILTERED:ml,Z_HUFFMAN_ONLY:vl,Z_RLE:gl,Z_FIXED:yl,Z_DEFAULT_STRATEGY:xl,Z_UNKNOWN:bl,Z_DEFLATED:wl}=Zs,jl=258,Cl=262,Sl=42,Nl=113,Il=666,Fl=(e,t)=>(e.msg=Js[t],t),Bl=e=>2*e-(e>4?9:0),Pl=e=>{let t=e.length;for(;--t>=0;)e[t]=0},kl=e=>{let t,n,i,a=e.w_size;t=e.hash_size,i=t;do{n=e.head[--i],e.head[i]=n>=a?n-a:0}while(--t);t=a,i=t;do{n=e.prev[--i],e.prev[i]=n>=a?n-a:0}while(--t)};let Tl=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask;const El=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},Dl=(e,t)=>{nl(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,El(e.strm)},Ll=(e,t)=>{e.pending_buf[e.pending++]=t},Ul=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},_l=(e,t,n,i)=>{let a=e.avail_in;return a>i&&(a=i),0===a?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),n),1===e.state.wrap?e.adler=Gs(e.adler,t,a,n):2===e.state.wrap&&(e.adler=Xs(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)},Ol=(e,t)=>{let n,i,a=e.max_chain_length,r=e.strstart,s=e.prev_length,l=e.nice_match;const o=e.strstart>e.w_size-Cl?e.strstart-(e.w_size-Cl):0,d=e.window,c=e.w_mask,u=e.prev,p=e.strstart+jl;let A=d[r+s-1],h=d[r+s];e.prev_length>=e.good_match&&(a>>=2),l>e.lookahead&&(l=e.lookahead);do{if(n=t,d[n+s]===h&&d[n+s-1]===A&&d[n]===d[r]&&d[++n]===d[r+1]){r+=2,n++;do{}while(d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&r<p);if(i=jl-(p-r),r=p-jl,i>s){if(e.match_start=t,s=i,i>=l)break;A=d[r+s-1],h=d[r+s]}}}while((t=u[t&c])>o&&0!==--a);return s<=e.lookahead?s:e.lookahead},Ml=e=>{const t=e.w_size;let n,i,a;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Cl)&&(e.window.set(e.window.subarray(t,t+t-i),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),kl(e),i+=t),0===e.strm.avail_in)break;if(n=_l(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=Tl(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=Tl(e,e.ins_h,e.window[a+3-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<Cl&&0!==e.strm.avail_in)},Rl=(e,t)=>{let n,i,a,r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,s=0,l=e.strm.avail_in;do{if(n=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a)break;if(a=e.strm.avail_out-a,i=e.strstart-e.block_start,n>i+e.strm.avail_in&&(n=i+e.strm.avail_in),n>a&&(n=a),n<r&&(0===n&&t!==ol||t===rl||n!==i+e.strm.avail_in))break;s=t===ol&&n===i+e.strm.avail_in?1:0,tl(e,0,0,s),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,El(e.strm),i&&(i>n&&(i=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,n-=i),n&&(_l(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===s);return l-=e.strm.avail_in,l&&(l>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=l&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-l,e.strm.next_in),e.strstart),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),s?4:t!==rl&&t!==ol&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(_l(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,r=a>e.w_size?e.w_size:a,i=e.strstart-e.block_start,(i>=r||(i||t===ol)&&t!==rl&&0===e.strm.avail_in&&i<=a)&&(n=i>a?a:i,s=t===ol&&0===e.strm.avail_in&&n===i?1:0,tl(e,e.block_start,n,s),e.block_start+=n,El(e.strm)),s?3:1)},Ql=(e,t)=>{let n,i;for(;;){if(e.lookahead<Cl){if(Ml(e),e.lookahead<Cl&&t===rl)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=Tl(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-Cl&&(e.match_length=Ol(e,n)),e.match_length>=3)if(i=il(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=Tl(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Tl(e,e.ins_h,e.window[e.strstart+1]);else i=il(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Dl(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===ol?(Dl(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Dl(e,!1),0===e.strm.avail_out)?1:2},Hl=(e,t)=>{let n,i,a;for(;;){if(e.lookahead<Cl){if(Ml(e),e.lookahead<Cl&&t===rl)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=Tl(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Cl&&(e.match_length=Ol(e,n),e.match_length<=5&&(e.strategy===ml||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-3,i=il(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=Tl(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,i&&(Dl(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(i=il(e,0,e.window[e.strstart-1]),i&&Dl(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=il(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===ol?(Dl(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Dl(e,!1),0===e.strm.avail_out)?1:2};function Vl(e,t,n,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=a}const zl=[new Vl(0,0,0,0,Rl),new Vl(4,4,8,4,Ql),new Vl(4,5,16,8,Ql),new Vl(4,6,32,32,Ql),new Vl(4,4,16,16,Hl),new Vl(8,16,32,32,Hl),new Vl(8,16,128,128,Hl),new Vl(8,32,128,256,Hl),new Vl(32,128,258,1024,Hl),new Vl(32,258,258,4096,Hl)];function ql(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=wl,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Pl(this.dyn_ltree),Pl(this.dyn_dtree),Pl(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Pl(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Pl(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Wl=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Sl&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==Nl&&t.status!==Il?1:0},Yl=e=>{if(Wl(e))return Fl(e,pl);e.total_in=e.total_out=0,e.data_type=bl;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?Sl:Nl,e.adler=2===t.wrap?0:1,t.last_flush=-2,el(t),cl},Kl=e=>{const t=Yl(e);var n;return t===cl&&((n=e.state).window_size=2*n.w_size,Pl(n.head),n.max_lazy_match=zl[n.level].max_lazy,n.good_match=zl[n.level].good_length,n.nice_match=zl[n.level].nice_length,n.max_chain_length=zl[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),t},Gl=(e,t,n,i,a,r)=>{if(!e)return pl;let s=1;if(t===fl&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>9||n!==wl||i<8||i>15||t<0||t>9||r<0||r>yl||8===i&&1!==s)return Fl(e,pl);8===i&&(i=9);const l=new ql;return e.state=l,l.strm=e,l.status=Sl,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new Uint8Array(2*l.w_size),l.head=new Uint16Array(l.hash_size),l.prev=new Uint16Array(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new Uint8Array(l.pending_buf_size),l.sym_buf=l.lit_bufsize,l.sym_end=3*(l.lit_bufsize-1),l.level=t,l.strategy=r,l.method=n,Kl(e)};var $l=(e,t)=>{let n=t.length;if(Wl(e))return pl;const i=e.state,a=i.wrap;if(2===a||1===a&&i.status!==Sl||i.lookahead)return pl;if(1===a&&(e.adler=Gs(e.adler,t,n,0)),i.wrap=0,n>=i.w_size){0===a&&(Pl(i.head),i.strstart=0,i.block_start=0,i.insert=0);let e=new Uint8Array(i.w_size);e.set(t.subarray(n-i.w_size,n),0),t=e,n=i.w_size}const r=e.avail_in,s=e.next_in,l=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Ml(i);i.lookahead>=3;){let e=i.strstart,t=i.lookahead-2;do{i.ins_h=Tl(i,i.ins_h,i.window[e+3-1]),i.prev[e&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=e,e++}while(--t);i.strstart=e,i.lookahead=2,Ml(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,e.next_in=s,e.input=l,e.avail_in=r,i.wrap=a,cl},Xl={deflateInit:(e,t)=>Gl(e,t,wl,15,8,xl),deflateInit2:Gl,deflateReset:Kl,deflateResetKeep:Yl,deflateSetHeader:(e,t)=>Wl(e)||2!==e.state.wrap?pl:(e.state.gzhead=t,cl),deflate:(e,t)=>{if(Wl(e)||t>dl||t<0)return e?Fl(e,pl):pl;const n=e.state;if(!e.output||0!==e.avail_in&&!e.input||n.status===Il&&t!==ol)return Fl(e,0===e.avail_out?hl:pl);const i=n.last_flush;if(n.last_flush=t,0!==n.pending){if(El(e),0===e.avail_out)return n.last_flush=-1,cl}else if(0===e.avail_in&&Bl(t)<=Bl(i)&&t!==ol)return Fl(e,hl);if(n.status===Il&&0!==e.avail_in)return Fl(e,hl);if(n.status===Sl&&0===n.wrap&&(n.status=Nl),n.status===Sl){let t=wl+(n.w_bits-8<<4)<<8,i=-1;if(i=n.strategy>=vl||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=i<<6,0!==n.strstart&&(t|=32),t+=31-t%31,Ul(n,t),0!==n.strstart&&(Ul(n,e.adler>>>16),Ul(n,65535&e.adler)),e.adler=1,n.status=Nl,El(e),0!==n.pending)return n.last_flush=-1,cl}if(57===n.status)if(e.adler=0,Ll(n,31),Ll(n,139),Ll(n,8),n.gzhead)Ll(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Ll(n,255&n.gzhead.time),Ll(n,n.gzhead.time>>8&255),Ll(n,n.gzhead.time>>16&255),Ll(n,n.gzhead.time>>24&255),Ll(n,9===n.level?2:n.strategy>=vl||n.level<2?4:0),Ll(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Ll(n,255&n.gzhead.extra.length),Ll(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Xs(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(Ll(n,0),Ll(n,0),Ll(n,0),Ll(n,0),Ll(n,0),Ll(n,9===n.level?2:n.strategy>=vl||n.level<2?4:0),Ll(n,3),n.status=Nl,El(e),0!==n.pending)return n.last_flush=-1,cl;if(69===n.status){if(n.gzhead.extra){let t=n.pending,i=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+i>n.pending_buf_size;){let a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=Xs(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=a,El(e),0!==n.pending)return n.last_flush=-1,cl;t=0,i-=a}let a=new Uint8Array(n.gzhead.extra);n.pending_buf.set(a.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending+=i,n.gzhead.hcrc&&n.pending>t&&(e.adler=Xs(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let t,i=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Xs(e.adler,n.pending_buf,n.pending-i,i)),El(e),0!==n.pending)return n.last_flush=-1,cl;i=0}t=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Ll(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>i&&(e.adler=Xs(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let t,i=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Xs(e.adler,n.pending_buf,n.pending-i,i)),El(e),0!==n.pending)return n.last_flush=-1,cl;i=0}t=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Ll(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>i&&(e.adler=Xs(e.adler,n.pending_buf,n.pending-i,i))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(El(e),0!==n.pending))return n.last_flush=-1,cl;Ll(n,255&e.adler),Ll(n,e.adler>>8&255),e.adler=0}if(n.status=Nl,El(e),0!==n.pending)return n.last_flush=-1,cl}if(0!==e.avail_in||0!==n.lookahead||t!==rl&&n.status!==Il){let i=0===n.level?Rl(n,t):n.strategy===vl?((e,t)=>{let n;for(;;){if(0===e.lookahead&&(Ml(e),0===e.lookahead)){if(t===rl)return 1;break}if(e.match_length=0,n=il(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Dl(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===ol?(Dl(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Dl(e,!1),0===e.strm.avail_out)?1:2})(n,t):n.strategy===gl?((e,t)=>{let n,i,a,r;const s=e.window;for(;;){if(e.lookahead<=jl){if(Ml(e),e.lookahead<=jl&&t===rl)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(a=e.strstart-1,i=s[a],i===s[++a]&&i===s[++a]&&i===s[++a])){r=e.strstart+jl;do{}while(i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&a<r);e.match_length=jl-(r-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=il(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=il(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Dl(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===ol?(Dl(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Dl(e,!1),0===e.strm.avail_out)?1:2})(n,t):zl[n.level].func(n,t);if(3!==i&&4!==i||(n.status=Il),1===i||3===i)return 0===e.avail_out&&(n.last_flush=-1),cl;if(2===i&&(t===sl?al(n):t!==dl&&(tl(n,0,0,!1),t===ll&&(Pl(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),El(e),0===e.avail_out))return n.last_flush=-1,cl}return t!==ol?cl:n.wrap<=0?ul:(2===n.wrap?(Ll(n,255&e.adler),Ll(n,e.adler>>8&255),Ll(n,e.adler>>16&255),Ll(n,e.adler>>24&255),Ll(n,255&e.total_in),Ll(n,e.total_in>>8&255),Ll(n,e.total_in>>16&255),Ll(n,e.total_in>>24&255)):(Ul(n,e.adler>>>16),Ul(n,65535&e.adler)),El(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?cl:ul)},deflateEnd:e=>{if(Wl(e))return pl;const t=e.state.status;return e.state=null,t===Nl?Fl(e,Al):cl},deflateSetDictionary:$l,deflateInfo:"pako deflate (from Nodeca project)"};const Jl=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Zl=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const t in n)Jl(n,t)&&(e[t]=n[t])}}return e},eo=e=>{let t=0;for(let i=0,a=e.length;i<a;i++)t+=e[i].length;const n=new Uint8Array(t);for(let i=0,a=0,r=e.length;i<r;i++){let t=e[i];n.set(t,a),a+=t.length}return n};let to=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(qfe){to=!1}const no=new Uint8Array(256);for(let Wfe=0;Wfe<256;Wfe++)no[Wfe]=Wfe>=252?6:Wfe>=248?5:Wfe>=240?4:Wfe>=224?3:Wfe>=192?2:1;no[254]=no[254]=1;var io=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,i,a,r,s=e.length,l=0;for(a=0;a<s;a++)n=e.charCodeAt(a),55296==(64512&n)&&a+1<s&&(i=e.charCodeAt(a+1),56320==(64512&i)&&(n=65536+(n-55296<<10)+(i-56320),a++)),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(l),r=0,a=0;r<l;a++)n=e.charCodeAt(a),55296==(64512&n)&&a+1<s&&(i=e.charCodeAt(a+1),56320==(64512&i)&&(n=65536+(n-55296<<10)+(i-56320),a++)),n<128?t[r++]=n:n<2048?(t[r++]=192|n>>>6,t[r++]=128|63&n):n<65536?(t[r++]=224|n>>>12,t[r++]=128|n>>>6&63,t[r++]=128|63&n):(t[r++]=240|n>>>18,t[r++]=128|n>>>12&63,t[r++]=128|n>>>6&63,t[r++]=128|63&n);return t},ao=(e,t)=>{const n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let i,a;const r=new Array(2*n);for(a=0,i=0;i<n;){let t=e[i++];if(t<128){r[a++]=t;continue}let s=no[t];if(s>4)r[a++]=65533,i+=s-1;else{for(t&=2===s?31:3===s?15:7;s>1&&i<n;)t=t<<6|63&e[i++],s--;s>1?r[a++]=65533:t<65536?r[a++]=t:(t-=65536,r[a++]=55296|t>>10&1023,r[a++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&to)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let i=0;i<t;i++)n+=String.fromCharCode(e[i]);return n})(r,a)},ro=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+no[e[n]]>t?n:t};var so=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const lo=Object.prototype.toString,{Z_NO_FLUSH:oo,Z_SYNC_FLUSH:co,Z_FULL_FLUSH:uo,Z_FINISH:po,Z_OK:Ao,Z_STREAM_END:ho,Z_DEFAULT_COMPRESSION:fo,Z_DEFAULT_STRATEGY:mo,Z_DEFLATED:vo}=Zs;function go(e){this.options=Zl({level:fo,method:vo,chunkSize:16384,windowBits:15,memLevel:8,strategy:mo},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new so,this.strm.avail_out=0;let n=Xl.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Ao)throw new Error(Js[n]);if(t.header&&Xl.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?io(t.dictionary):"[object ArrayBuffer]"===lo.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=Xl.deflateSetDictionary(this.strm,e),n!==Ao)throw new Error(Js[n]);this._dict_set=!0}}go.prototype.push=function(e,t){const n=this.strm,i=this.options.chunkSize;let a,r;if(this.ended)return!1;for(r=t===~~t?t:!0===t?po:oo,"string"==typeof e?n.input=io(e):"[object ArrayBuffer]"===lo.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),(r===co||r===uo)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(a=Xl.deflate(n,r),a===ho)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),a=Xl.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Ao;if(0!==n.avail_out){if(r>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},go.prototype.onData=function(e){this.chunks.push(e)},go.prototype.onEnd=function(e){e===Ao&&(this.result=eo(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};const yo=16209;var xo=function(e,t){let n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S;const N=e.state;n=e.next_in,C=e.input,i=n+(e.avail_in-5),a=e.next_out,S=e.output,r=a-(t-e.avail_out),s=a+(e.avail_out-257),l=N.dmax,o=N.wsize,d=N.whave,c=N.wnext,u=N.window,p=N.hold,A=N.bits,h=N.lencode,f=N.distcode,m=(1<<N.lenbits)-1,v=(1<<N.distbits)-1;e:do{A<15&&(p+=C[n++]<<A,A+=8,p+=C[n++]<<A,A+=8),g=h[p&m];t:for(;;){if(y=g>>>24,p>>>=y,A-=y,y=g>>>16&255,0===y)S[a++]=65535&g;else{if(!(16&y)){if(64&y){if(32&y){N.mode=16191;break e}e.msg="invalid literal/length code",N.mode=yo;break e}g=h[(65535&g)+(p&(1<<y)-1)];continue t}for(x=65535&g,y&=15,y&&(A<y&&(p+=C[n++]<<A,A+=8),x+=p&(1<<y)-1,p>>>=y,A-=y),A<15&&(p+=C[n++]<<A,A+=8,p+=C[n++]<<A,A+=8),g=f[p&v];;){if(y=g>>>24,p>>>=y,A-=y,y=g>>>16&255,16&y){if(b=65535&g,y&=15,A<y&&(p+=C[n++]<<A,A+=8,A<y&&(p+=C[n++]<<A,A+=8)),b+=p&(1<<y)-1,b>l){e.msg="invalid distance too far back",N.mode=yo;break e}if(p>>>=y,A-=y,y=a-r,b>y){if(y=b-y,y>d&&N.sane){e.msg="invalid distance too far back",N.mode=yo;break e}if(w=0,j=u,0===c){if(w+=o-y,y<x){x-=y;do{S[a++]=u[w++]}while(--y);w=a-b,j=S}}else if(c<y){if(w+=o+c-y,y-=c,y<x){x-=y;do{S[a++]=u[w++]}while(--y);if(w=0,c<x){y=c,x-=y;do{S[a++]=u[w++]}while(--y);w=a-b,j=S}}}else if(w+=c-y,y<x){x-=y;do{S[a++]=u[w++]}while(--y);w=a-b,j=S}for(;x>2;)S[a++]=j[w++],S[a++]=j[w++],S[a++]=j[w++],x-=3;x&&(S[a++]=j[w++],x>1&&(S[a++]=j[w++]))}else{w=a-b;do{S[a++]=S[w++],S[a++]=S[w++],S[a++]=S[w++],x-=3}while(x>2);x&&(S[a++]=S[w++],x>1&&(S[a++]=S[w++]))}break}if(64&y){e.msg="invalid distance code",N.mode=yo;break e}g=f[(65535&g)+(p&(1<<y)-1)]}}break}}while(n<i&&a<s);x=A>>3,n-=x,A-=x<<3,p&=(1<<A)-1,e.next_in=n,e.next_out=a,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=a<s?s-a+257:257-(a-s),N.hold=p,N.bits=A};const bo=15,wo=new Uint16Array([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,0,0]),jo=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Co=new Uint16Array([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,0,0]),So=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var No=(e,t,n,i,a,r,s,l)=>{const o=l.bits;let d,c,u,p,A,h,f=0,m=0,v=0,g=0,y=0,x=0,b=0,w=0,j=0,C=0,S=null;const N=new Uint16Array(16),I=new Uint16Array(16);let F,B,P,k=null;for(f=0;f<=bo;f++)N[f]=0;for(m=0;m<i;m++)N[t[n+m]]++;for(y=o,g=bo;g>=1&&0===N[g];g--);if(y>g&&(y=g),0===g)return a[r++]=20971520,a[r++]=20971520,l.bits=1,0;for(v=1;v<g&&0===N[v];v++);for(y<v&&(y=v),w=1,f=1;f<=bo;f++)if(w<<=1,w-=N[f],w<0)return-1;if(w>0&&(0===e||1!==g))return-1;for(I[1]=0,f=1;f<bo;f++)I[f+1]=I[f]+N[f];for(m=0;m<i;m++)0!==t[n+m]&&(s[I[t[n+m]]++]=m);if(0===e?(S=k=s,h=20):1===e?(S=wo,k=jo,h=257):(S=Co,k=So,h=0),C=0,m=0,f=v,A=r,x=y,b=0,u=-1,j=1<<y,p=j-1,1===e&&j>852||2===e&&j>592)return 1;for(;;){F=f-b,s[m]+1<h?(B=0,P=s[m]):s[m]>=h?(B=k[s[m]-h],P=S[s[m]-h]):(B=96,P=0),d=1<<f-b,c=1<<x,v=c;do{c-=d,a[A+(C>>b)+c]=F<<24|B<<16|P}while(0!==c);for(d=1<<f-1;C&d;)d>>=1;if(0!==d?(C&=d-1,C+=d):C=0,m++,0===--N[f]){if(f===g)break;f=t[n+s[m]]}if(f>y&&(C&p)!==u){for(0===b&&(b=y),A+=v,x=f-b,w=1<<x;x+b<g&&(w-=N[x+b],!(w<=0));)x++,w<<=1;if(j+=1<<x,1===e&&j>852||2===e&&j>592)return 1;u=C&p,a[u]=y<<24|x<<16|A-r}}return 0!==C&&(a[A+C]=f-b<<24|64<<16),l.bits=y,0};const{Z_FINISH:Io,Z_BLOCK:Fo,Z_TREES:Bo,Z_OK:Po,Z_STREAM_END:ko,Z_NEED_DICT:To,Z_STREAM_ERROR:Eo,Z_DATA_ERROR:Do,Z_MEM_ERROR:Lo,Z_BUF_ERROR:Uo,Z_DEFLATED:_o}=Zs,Oo=16180,Mo=16190,Ro=16191,Qo=16192,Ho=16194,Vo=16199,zo=16200,qo=16206,Wo=16209,Yo=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function Ko(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Go=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<Oo||t.mode>16211?1:0},$o=e=>{if(Go(e))return Eo;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=Oo,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,Po},Xo=e=>{if(Go(e))return Eo;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,$o(e)},Jo=(e,t)=>{let n;if(Go(e))return Eo;const i=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Eo:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,Xo(e))},Zo=(e,t)=>{if(!e)return Eo;const n=new Ko;e.state=n,n.strm=e,n.window=null,n.mode=Oo;const i=Jo(e,t);return i!==Po&&(e.state=null),i};let ed,td,nd=!0;const id=e=>{if(nd){ed=new Int32Array(512),td=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(No(1,e.lens,0,288,ed,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;No(2,e.lens,0,32,td,0,e.work,{bits:5}),nd=!1}e.lencode=ed,e.lenbits=9,e.distcode=td,e.distbits=5},ad=(e,t,n,i)=>{let a;const r=e.state;return null===r.window&&(r.wsize=1<<r.wbits,r.wnext=0,r.whave=0,r.window=new Uint8Array(r.wsize)),i>=r.wsize?(r.window.set(t.subarray(n-r.wsize,n),0),r.wnext=0,r.whave=r.wsize):(a=r.wsize-r.wnext,a>i&&(a=i),r.window.set(t.subarray(n-i,n-i+a),r.wnext),(i-=a)?(r.window.set(t.subarray(n-i,n),0),r.wnext=i,r.whave=r.wsize):(r.wnext+=a,r.wnext===r.wsize&&(r.wnext=0),r.whave<r.wsize&&(r.whave+=a))),0};var rd=(e,t)=>{let n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C=0;const S=new Uint8Array(4);let N,I;const F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Go(e)||!e.output||!e.input&&0!==e.avail_in)return Eo;n=e.state,n.mode===Ro&&(n.mode=Qo),s=e.next_out,a=e.output,o=e.avail_out,r=e.next_in,i=e.input,l=e.avail_in,d=n.hold,c=n.bits,u=l,p=o,j=Po;e:for(;;)switch(n.mode){case Oo:if(0===n.wrap){n.mode=Qo;break}for(;c<16;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}if(2&n.wrap&&35615===d){0===n.wbits&&(n.wbits=15),n.check=0,S[0]=255&d,S[1]=d>>>8&255,n.check=Xs(n.check,S,2,0),d=0,c=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&d)<<8)+(d>>8))%31){e.msg="incorrect header check",n.mode=Wo;break}if((15&d)!==_o){e.msg="unknown compression method",n.mode=Wo;break}if(d>>>=4,c-=4,w=8+(15&d),0===n.wbits&&(n.wbits=w),w>15||w>n.wbits){e.msg="invalid window size",n.mode=Wo;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&d?16189:Ro,d=0,c=0;break;case 16181:for(;c<16;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}if(n.flags=d,(255&n.flags)!==_o){e.msg="unknown compression method",n.mode=Wo;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Wo;break}n.head&&(n.head.text=d>>8&1),512&n.flags&&4&n.wrap&&(S[0]=255&d,S[1]=d>>>8&255,n.check=Xs(n.check,S,2,0)),d=0,c=0,n.mode=16182;case 16182:for(;c<32;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}n.head&&(n.head.time=d),512&n.flags&&4&n.wrap&&(S[0]=255&d,S[1]=d>>>8&255,S[2]=d>>>16&255,S[3]=d>>>24&255,n.check=Xs(n.check,S,4,0)),d=0,c=0,n.mode=16183;case 16183:for(;c<16;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}n.head&&(n.head.xflags=255&d,n.head.os=d>>8),512&n.flags&&4&n.wrap&&(S[0]=255&d,S[1]=d>>>8&255,n.check=Xs(n.check,S,2,0)),d=0,c=0,n.mode=16184;case 16184:if(1024&n.flags){for(;c<16;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}n.length=d,n.head&&(n.head.extra_len=d),512&n.flags&&4&n.wrap&&(S[0]=255&d,S[1]=d>>>8&255,n.check=Xs(n.check,S,2,0)),d=0,c=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&(A=n.length,A>l&&(A=l),A&&(n.head&&(w=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(i.subarray(r,r+A),w)),512&n.flags&&4&n.wrap&&(n.check=Xs(n.check,i,A,r)),l-=A,r+=A,n.length-=A),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===l)break e;A=0;do{w=i[r+A++],n.head&&w&&n.length<65536&&(n.head.name+=String.fromCharCode(w))}while(w&&A<l);if(512&n.flags&&4&n.wrap&&(n.check=Xs(n.check,i,A,r)),l-=A,r+=A,w)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===l)break e;A=0;do{w=i[r+A++],n.head&&w&&n.length<65536&&(n.head.comment+=String.fromCharCode(w))}while(w&&A<l);if(512&n.flags&&4&n.wrap&&(n.check=Xs(n.check,i,A,r)),l-=A,r+=A,w)break e}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;c<16;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}if(4&n.wrap&&d!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Wo;break}d=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Ro;break;case 16189:for(;c<32;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}e.adler=n.check=Yo(d),d=0,c=0,n.mode=Mo;case Mo:if(0===n.havedict)return e.next_out=s,e.avail_out=o,e.next_in=r,e.avail_in=l,n.hold=d,n.bits=c,To;e.adler=n.check=1,n.mode=Ro;case Ro:if(t===Fo||t===Bo)break e;case Qo:if(n.last){d>>>=7&c,c-=7&c,n.mode=qo;break}for(;c<3;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}switch(n.last=1&d,d>>>=1,c-=1,3&d){case 0:n.mode=16193;break;case 1:if(id(n),n.mode=Vo,t===Bo){d>>>=2,c-=2;break e}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=Wo}d>>>=2,c-=2;break;case 16193:for(d>>>=7&c,c-=7&c;c<32;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}if((65535&d)!=(d>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Wo;break}if(n.length=65535&d,d=0,c=0,n.mode=Ho,t===Bo)break e;case Ho:n.mode=16195;case 16195:if(A=n.length,A){if(A>l&&(A=l),A>o&&(A=o),0===A)break e;a.set(i.subarray(r,r+A),s),l-=A,r+=A,o-=A,s+=A,n.length-=A;break}n.mode=Ro;break;case 16196:for(;c<14;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}if(n.nlen=257+(31&d),d>>>=5,c-=5,n.ndist=1+(31&d),d>>>=5,c-=5,n.ncode=4+(15&d),d>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Wo;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;c<3;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}n.lens[F[n.have++]]=7&d,d>>>=3,c-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},j=No(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,j){e.msg="invalid code lengths set",n.mode=Wo;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;C=n.lencode[d&(1<<n.lenbits)-1],m=C>>>24,v=C>>>16&255,g=65535&C,!(m<=c);){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}if(g<16)d>>>=m,c-=m,n.lens[n.have++]=g;else{if(16===g){for(I=m+2;c<I;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}if(d>>>=m,c-=m,0===n.have){e.msg="invalid bit length repeat",n.mode=Wo;break}w=n.lens[n.have-1],A=3+(3&d),d>>>=2,c-=2}else if(17===g){for(I=m+3;c<I;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}d>>>=m,c-=m,w=0,A=3+(7&d),d>>>=3,c-=3}else{for(I=m+7;c<I;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}d>>>=m,c-=m,w=0,A=11+(127&d),d>>>=7,c-=7}if(n.have+A>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Wo;break}for(;A--;)n.lens[n.have++]=w}}if(n.mode===Wo)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Wo;break}if(n.lenbits=9,N={bits:n.lenbits},j=No(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,j){e.msg="invalid literal/lengths set",n.mode=Wo;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},j=No(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,j){e.msg="invalid distances set",n.mode=Wo;break}if(n.mode=Vo,t===Bo)break e;case Vo:n.mode=zo;case zo:if(l>=6&&o>=258){e.next_out=s,e.avail_out=o,e.next_in=r,e.avail_in=l,n.hold=d,n.bits=c,xo(e,p),s=e.next_out,a=e.output,o=e.avail_out,r=e.next_in,i=e.input,l=e.avail_in,d=n.hold,c=n.bits,n.mode===Ro&&(n.back=-1);break}for(n.back=0;C=n.lencode[d&(1<<n.lenbits)-1],m=C>>>24,v=C>>>16&255,g=65535&C,!(m<=c);){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}if(v&&!(240&v)){for(y=m,x=v,b=g;C=n.lencode[b+((d&(1<<y+x)-1)>>y)],m=C>>>24,v=C>>>16&255,g=65535&C,!(y+m<=c);){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}d>>>=y,c-=y,n.back+=y}if(d>>>=m,c-=m,n.back+=m,n.length=g,0===v){n.mode=16205;break}if(32&v){n.back=-1,n.mode=Ro;break}if(64&v){e.msg="invalid literal/length code",n.mode=Wo;break}n.extra=15&v,n.mode=16201;case 16201:if(n.extra){for(I=n.extra;c<I;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}n.length+=d&(1<<n.extra)-1,d>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;C=n.distcode[d&(1<<n.distbits)-1],m=C>>>24,v=C>>>16&255,g=65535&C,!(m<=c);){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}if(!(240&v)){for(y=m,x=v,b=g;C=n.distcode[b+((d&(1<<y+x)-1)>>y)],m=C>>>24,v=C>>>16&255,g=65535&C,!(y+m<=c);){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}d>>>=y,c-=y,n.back+=y}if(d>>>=m,c-=m,n.back+=m,64&v){e.msg="invalid distance code",n.mode=Wo;break}n.offset=g,n.extra=15&v,n.mode=16203;case 16203:if(n.extra){for(I=n.extra;c<I;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}n.offset+=d&(1<<n.extra)-1,d>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Wo;break}n.mode=16204;case 16204:if(0===o)break e;if(A=p-o,n.offset>A){if(A=n.offset-A,A>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Wo;break}A>n.wnext?(A-=n.wnext,h=n.wsize-A):h=n.wnext-A,A>n.length&&(A=n.length),f=n.window}else f=a,h=s-n.offset,A=n.length;A>o&&(A=o),o-=A,n.length-=A;do{a[s++]=f[h++]}while(--A);0===n.length&&(n.mode=zo);break;case 16205:if(0===o)break e;a[s++]=n.length,o--,n.mode=zo;break;case qo:if(n.wrap){for(;c<32;){if(0===l)break e;l--,d|=i[r++]<<c,c+=8}if(p-=o,e.total_out+=p,n.total+=p,4&n.wrap&&p&&(e.adler=n.check=n.flags?Xs(n.check,a,p,s-p):Gs(n.check,a,p,s-p)),p=o,4&n.wrap&&(n.flags?d:Yo(d))!==n.check){e.msg="incorrect data check",n.mode=Wo;break}d=0,c=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;c<32;){if(0===l)break e;l--,d+=i[r++]<<c,c+=8}if(4&n.wrap&&d!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Wo;break}d=0,c=0}n.mode=16208;case 16208:j=ko;break e;case Wo:j=Do;break e;case 16210:return Lo;default:return Eo}return e.next_out=s,e.avail_out=o,e.next_in=r,e.avail_in=l,n.hold=d,n.bits=c,(n.wsize||p!==e.avail_out&&n.mode<Wo&&(n.mode<qo||t!==Io))&&ad(e,e.output,e.next_out,p-e.avail_out),u-=e.avail_in,p-=e.avail_out,e.total_in+=u,e.total_out+=p,n.total+=p,4&n.wrap&&p&&(e.adler=n.check=n.flags?Xs(n.check,a,p,e.next_out-p):Gs(n.check,a,p,e.next_out-p)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Ro?128:0)+(n.mode===Vo||n.mode===Ho?256:0),(0===u&&0===p||t===Io)&&j===Po&&(j=Uo),j},sd={inflateReset:Xo,inflateReset2:Jo,inflateResetKeep:$o,inflateInit:e=>Zo(e,15),inflateInit2:Zo,inflate:rd,inflateEnd:e=>{if(Go(e))return Eo;let t=e.state;return t.window&&(t.window=null),e.state=null,Po},inflateGetHeader:(e,t)=>{if(Go(e))return Eo;const n=e.state;return 2&n.wrap?(n.head=t,t.done=!1,Po):Eo},inflateSetDictionary:(e,t)=>{const n=t.length;let i,a,r;return Go(e)?Eo:(i=e.state,0!==i.wrap&&i.mode!==Mo?Eo:i.mode===Mo&&(a=1,a=Gs(a,t,n,0),a!==i.check)?Do:(r=ad(e,t,n,n),r?(i.mode=16210,Lo):(i.havedict=1,Po)))},inflateInfo:"pako inflate (from Nodeca project)"};var ld=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const od=Object.prototype.toString,{Z_NO_FLUSH:dd,Z_FINISH:cd,Z_OK:ud,Z_STREAM_END:pd,Z_NEED_DICT:Ad,Z_STREAM_ERROR:hd,Z_DATA_ERROR:fd,Z_MEM_ERROR:md}=Zs;function vd(e){this.options=Zl({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new so,this.strm.avail_out=0;let n=sd.inflateInit2(this.strm,t.windowBits);if(n!==ud)throw new Error(Js[n]);if(this.header=new ld,sd.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=io(t.dictionary):"[object ArrayBuffer]"===od.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=sd.inflateSetDictionary(this.strm,t.dictionary),n!==ud)))throw new Error(Js[n])}function gd(e,t){const n=new vd(t);if(n.push(e),n.err)throw n.msg||Js[n.err];return n.result}vd.prototype.push=function(e,t){const n=this.strm,i=this.options.chunkSize,a=this.options.dictionary;let r,s,l;if(this.ended)return!1;for(s=t===~~t?t:!0===t?cd:dd,"[object ArrayBuffer]"===od.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),r=sd.inflate(n,s),r===Ad&&a&&(r=sd.inflateSetDictionary(n,a),r===ud?r=sd.inflate(n,s):r===fd&&(r=Ad));n.avail_in>0&&r===pd&&n.state.wrap>0&&0!==e[n.next_in];)sd.inflateReset(n),r=sd.inflate(n,s);switch(r){case hd:case fd:case Ad:case md:return this.onEnd(r),this.ended=!0,!1}if(l=n.avail_out,n.next_out&&(0===n.avail_out||r===pd))if("string"===this.options.to){let e=ro(n.output,n.next_out),t=n.next_out-e,a=ao(n.output,e);n.next_out=t,n.avail_out=i-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(a)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(r!==ud||0!==l){if(r===pd)return r=sd.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},vd.prototype.onData=function(e){this.chunks.push(e)},vd.prototype.onEnd=function(e){e===ud&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=eo(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var yd={Inflate:vd,inflate:gd,inflateRaw:function(e,t){return(t=t||{}).raw=!0,gd(e,t)},ungzip:gd,constants:Zs};const{Inflate:xd,inflate:bd,inflateRaw:wd,ungzip:jd}=yd;var Cd=xd,Sd=bd;const Nd=[];for(let Wfe=0;Wfe<256;Wfe++){let e=Wfe;for(let t=0;t<8;t++)1&e?e=3988292384^e>>>1:e>>>=1;Nd[Wfe]=e}const Id=4294967295;function Fd(e,t){return(function(e,t,n){let i=e;for(let a=0;a<n;a++)i=Nd[255&(i^t[a])]^i>>>8;return i}(Id,e,t)^Id)>>>0}function Bd(e,t,n){const i=e.readUint32(),a=Fd(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(a!==i)throw new Error(`CRC mismatch for chunk ${n}. Expected ${i}, found ${a}`)}function Pd(e,t,n){for(let i=0;i<n;i++)t[i]=e[i]}function kd(e,t,n,i){let a=0;for(;a<i;a++)t[a]=e[a];for(;a<n;a++)t[a]=e[a]+t[a-i]&255}function Td(e,t,n,i){let a=0;if(0===n.length)for(;a<i;a++)t[a]=e[a];else for(;a<i;a++)t[a]=e[a]+n[a]&255}function Ed(e,t,n,i,a){let r=0;if(0===n.length){for(;r<a;r++)t[r]=e[r];for(;r<i;r++)t[r]=e[r]+(t[r-a]>>1)&255}else{for(;r<a;r++)t[r]=e[r]+(n[r]>>1)&255;for(;r<i;r++)t[r]=e[r]+(t[r-a]+n[r]>>1)&255}}function Dd(e,t,n,i,a){let r=0;if(0===n.length){for(;r<a;r++)t[r]=e[r];for(;r<i;r++)t[r]=e[r]+t[r-a]&255}else{for(;r<a;r++)t[r]=e[r]+n[r]&255;for(;r<i;r++)t[r]=e[r]+Ld(t[r-a],n[r],n[r-a])&255}}function Ld(e,t,n){const i=e+t-n,a=Math.abs(i-e),r=Math.abs(i-t),s=Math.abs(i-n);return a<=r&&a<=s?e:r<=s?t:n}function Ud(e,t,n,i,a,r){switch(e){case 0:Pd(t,n,a);break;case 1:kd(t,n,a,r);break;case 2:Td(t,n,i,a);break;case 3:Ed(t,n,i,a,r);break;case 4:Dd(t,n,i,a,r);break;default:throw new Error(`Unsupported filter: ${e}`)}}const _d=new Uint16Array([255]),Od=255===new Uint8Array(_d.buffer)[0];const Md=new Uint16Array([255]),Rd=255===new Uint8Array(Md.buffer)[0],Qd=new Uint8Array(0);function Hd(e){const{data:t,width:n,height:i,channels:a,depth:r}=e,s=Math.ceil(r/8)*a,l=Math.ceil(r/8*a*n),o=new Uint8Array(i*l);let d,c,u=Qd,p=0;for(let h=0;h<i;h++){switch(d=t.subarray(p+1,p+1+l),c=o.subarray(h*l,(h+1)*l),t[p]){case 0:Pd(d,c,l);break;case 1:kd(d,c,l,s);break;case 2:Td(d,c,u,l);break;case 3:Ed(d,c,u,l,s);break;case 4:Dd(d,c,u,l,s);break;default:throw new Error(`Unsupported filter: ${t[p]}`)}u=c,p+=l+1}if(16===r){const e=new Uint16Array(o.buffer);if(Rd)for(let t=0;t<e.length;t++)e[t]=(255&(A=e[t]))<<8|A>>8&255;return e}return o;var A}const Vd=Uint8Array.of(137,80,78,71,13,10,26,10);function zd(e){if(!function(e){if(e.length<Vd.length)return!1;for(let t=0;t<Vd.length;t++)if(e[t]!==Vd[t])return!1;return!0}(e.readBytes(Vd.length)))throw new Error("wrong PNG signature")}const qd=new TextDecoder("latin1");function Wd(e){if(function(e){if(!Yd.test(e))throw new Error("invalid latin1 text")}(e),0===e.length||e.length>79)throw new Error("keyword length must be between 1 and 79")}const Yd=/^[\u0000-\u00FF]*$/;function Kd(e,t,n){const i=Gd(t);e[i]=function(e,t){return qd.decode(e.readBytes(t))}(t,n-i.length-1)}function Gd(e){for(e.mark();0!==e.readByte(););const t=e.offset;e.reset();const n=qd.decode(e.readBytes(t-e.offset-1));return e.skip(1),Wd(n),n}const $d=-1,Xd=0,Jd=2,Zd=3,ec=4,tc=6,nc=-1,ic=0,ac=-1,rc=0,sc=-1,lc=0,oc=1,dc=0,cc=1,uc=2,pc=0,Ac=1;class hc extends ds{constructor(e,t={}){super(e),i(this,"_checkCrc"),i(this,"_inflator"),i(this,"_png"),i(this,"_apng"),i(this,"_end"),i(this,"_hasPalette"),i(this,"_palette"),i(this,"_hasTransparency"),i(this,"_transparency"),i(this,"_compressionMethod"),i(this,"_filterMethod"),i(this,"_interlaceMethod"),i(this,"_colorType"),i(this,"_isAnimated"),i(this,"_numberOfFrames"),i(this,"_numberOfPlays"),i(this,"_frames"),i(this,"_writingDataChunks");const{checkCrc:n=!1}=t;this._checkCrc=n,this._inflator=new Cd,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=nc,this._filterMethod=ac,this._interlaceMethod=sc,this._colorType=$d,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(zd(this);!this._end;){const e=this.readUint32(),t=this.readChars(4);this.decodeChunk(e,t)}return this.decodeImage(),this._png}decodeApng(){for(zd(this);!this._end;){const e=this.readUint32(),t=this.readChars(4);this.decodeApngChunk(e,t)}return this.decodeApngImage(),this._apng}decodeChunk(e,t){const n=this.offset;switch(t){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case"tEXt":Kd(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e)}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?Bd(this,e+4,t):this.skip(4)}decodeApngChunk(e,t){const n=this.offset;switch("fdAT"!==t&&"IDAT"!==t&&this._writingDataChunks&&this.pushDataToFrame(),t){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,t),this.offset=n+e}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?Bd(this,e+4,t):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=function(e){if(1!==e&&2!==e&&4!==e&&8!==e&&16!==e)throw new Error(`invalid bit depth: ${e}`);return e}(this.readUint8());const t=this.readUint8();let n;switch(this._colorType=t,t){case Xd:n=1;break;case Jd:n=3;break;case Zd:n=1;break;case ec:n=2;break;case tc:n=4;break;default:throw new Error(`Unknown color type: ${t}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==ic)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!=0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const t=e/3;this._hasPalette=!0;const n=[];this._palette=n;for(let i=0;i<t;i++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;const t=e,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let t=e,n=this.offset+this.byteOffset;if(n+=4,t-=4,this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case Xd:case Jd:if(e%2!=0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let t=0;t<e/2;t++)this._transparency[t]=this.readUint16();break;case Zd:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let t=0;for(;t<e;t++){const e=this.readByte();this._palette[t].push(e)}for(;t<this._palette.length;t++)this._palette[t].push(255);break}default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const t=Gd(this),n=this.readUint8();if(n!==ic)throw new Error(`Unsupported iCCP compression method: ${n}`);const i=this.readBytes(e-t.length-2);this._png.iccEmbeddedProfile={name:t,profile:Sd(i)}}decodepHYs(){const e=this.readUint32(),t=this.readUint32(),n=this.readByte();this._png.resolution={x:e,y:t,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){const t={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:8===this._apng.depth?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(e);if(n){if(n.data=Hd({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),0===e||0===n.xOffset&&0===n.yOffset&&n.width===this._png.width&&n.height===this._png.height)t.data=n.data;else{const i=this._apng.frames.at(e-1);this.disposeFrame(n,i,t),this.addFrameDataToCanvas(t,n)}this._apng.frames.push(t)}}return this._apng}disposeFrame(e,t,n){switch(e.disposeOp){case dc:break;case cc:for(let t=0;t<this._png.height;t++)for(let i=0;i<this._png.width;i++){const a=(t*e.width+i)*this._png.channels;for(let e=0;e<this._png.channels;e++)n.data[a+e]=0}break;case uc:n.data.set(t.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,t){const n=1<<this._png.depth,i=(e,n)=>({index:((e+t.yOffset)*this._png.width+t.xOffset+n)*this._png.channels,frameIndex:(e*t.width+n)*this._png.channels});switch(t.blendOp){case pc:for(let n=0;n<t.height;n++)for(let a=0;a<t.width;a++){const{index:r,frameIndex:s}=i(n,a);for(let n=0;n<this._png.channels;n++)e.data[r+n]=t.data[s+n]}break;case Ac:for(let a=0;a<t.height;a++)for(let r=0;r<t.width;r++){const{index:s,frameIndex:l}=i(a,r);for(let i=0;i<this._png.channels;i++){const a=t.data[l+this._png.channels-1]/n,r=i%(this._png.channels-1)==0?1:t.data[l+i],o=Math.floor(a*r+(1-a)*e.data[s+i]);e.data[s+i]+=o}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var e;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?(null==(e=this._frames)?void 0:e.at(0)).data:this._inflator.result;if(this._filterMethod!==rc)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===lc)this._png.data=Hd({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else{if(this._interlaceMethod!==oc)throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._png.data=function(e){const{data:t,width:n,height:i,channels:a,depth:r}=e,s=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(r/8)*a,o=new Uint8Array(i*n*l);let d=0;for(let u=0;u<7;u++){const e=s[u],a=Math.ceil((n-e.x)/e.xStep),r=Math.ceil((i-e.y)/e.yStep);if(a<=0||r<=0)continue;const c=a*l,p=new Uint8Array(c);for(let s=0;s<r;s++){const r=t[d++],u=t.subarray(d,d+c);d+=c;const A=new Uint8Array(c);Ud(r,u,A,p,c,l),p.set(A);for(let t=0;t<a;t++){const a=e.x+t*e.xStep,r=e.y+s*e.yStep;if(!(a>=n||r>=i))for(let e=0;e<l;e++)o[(r*n+a)*l+e]=A[t*l+e]}}}if(16===r){const e=new Uint16Array(o.buffer);if(Od)for(let t=0;t<e.length;t++)e[t]=(255&(c=e[t]))<<8|c>>8&255;return e}return o;var c}({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth})}this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const e=this._inflator.result,t=this._frames.at(-1);t?t.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:dc,blendOp:pc,data:e}),this._inflator=new Cd,this._writingDataChunks=!1}}var fc,mc;(mc=fc||(fc={}))[mc.UNKNOWN=0]="UNKNOWN",mc[mc.METRE=1]="METRE";var vc=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function gc(){vc.console&&"function"==typeof vc.console.log&&vc.console.log.apply(vc.console,arguments)}var yc={log:gc,warn:function(e){vc.console&&("function"==typeof vc.console.warn?vc.console.warn.apply(vc.console,arguments):gc.call(null,arguments))},error:function(e){vc.console&&("function"==typeof vc.console.error?vc.console.error.apply(vc.console,arguments):gc(e))}};function xc(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){jc(i.response,t,n)},i.onerror=function(){yc.error("could not download file")},i.send()}function bc(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(Zre){}return t.status>=200&&t.status<=299}function wc(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(Zre){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var jc=vc.saveAs||("object"!==("undefined"==typeof window?"undefined":p(window))||window!==vc?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var i=vc.URL||vc.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener","string"==typeof e?(a.href=e,a.origin!==location.origin?bc(a.href)?xc(e,t,n):wc(a,a.target="_blank"):wc(a)):(a.href=i.createObjectURL(e),setTimeout((function(){i.revokeObjectURL(a.href)}),4e4),setTimeout((function(){wc(a)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"==typeof e)if(bc(e))xc(e,t,n);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){wc(i)}))}else navigator.msSaveOrOpenBlob((a=e,void 0===(r=n)?r={autoBom:!1}:"object"!==p(r)&&(yc.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob([String.fromCharCode(65279),a],{type:a.type}):a),t);var a,r}:function(e,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return xc(e,t,n);var a="application/octet-stream"===e.type,r=/constructor/i.test(vc.HTMLElement)||vc.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||a&&r)&&"object"===("undefined"==typeof FileReader?"undefined":p(FileReader))){var l=new FileReader;l.onloadend=function(){var e=l.result;e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},l.readAsDataURL(e)}else{var o=vc.URL||vc.webkitURL,d=o.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout((function(){o.revokeObjectURL(d)}),4e4)}});
|
||
/**
|
||
* A class to parse color values
|
||
* @author Stoyan Stefanov <sstoo@gmail.com>
|
||
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
||
* @license Use it if you like it
|
||
*/function Cc(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],i=0;i<n.length;i++){var a=n[i].re,r=n[i].process,s=a.exec(e);s&&(t=r(s),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}}var Sc=vc.atob.bind(vc),Nc=vc.btoa.bind(vc);
|
||
/**
|
||
* @license
|
||
* Joseph Myers does not specify a particular license for his work.
|
||
*
|
||
* Author: Joseph Myers
|
||
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
|
||
*
|
||
* Modified by: Owen Leong
|
||
*/function Ic(e,t){var n=e[0],i=e[1],a=e[2],r=e[3];n=Bc(n,i,a,r,t[0],7,-680876936),r=Bc(r,n,i,a,t[1],12,-389564586),a=Bc(a,r,n,i,t[2],17,606105819),i=Bc(i,a,r,n,t[3],22,-1044525330),n=Bc(n,i,a,r,t[4],7,-176418897),r=Bc(r,n,i,a,t[5],12,1200080426),a=Bc(a,r,n,i,t[6],17,-1473231341),i=Bc(i,a,r,n,t[7],22,-45705983),n=Bc(n,i,a,r,t[8],7,1770035416),r=Bc(r,n,i,a,t[9],12,-1958414417),a=Bc(a,r,n,i,t[10],17,-42063),i=Bc(i,a,r,n,t[11],22,-1990404162),n=Bc(n,i,a,r,t[12],7,1804603682),r=Bc(r,n,i,a,t[13],12,-40341101),a=Bc(a,r,n,i,t[14],17,-1502002290),n=Pc(n,i=Bc(i,a,r,n,t[15],22,1236535329),a,r,t[1],5,-165796510),r=Pc(r,n,i,a,t[6],9,-1069501632),a=Pc(a,r,n,i,t[11],14,643717713),i=Pc(i,a,r,n,t[0],20,-373897302),n=Pc(n,i,a,r,t[5],5,-701558691),r=Pc(r,n,i,a,t[10],9,38016083),a=Pc(a,r,n,i,t[15],14,-660478335),i=Pc(i,a,r,n,t[4],20,-405537848),n=Pc(n,i,a,r,t[9],5,568446438),r=Pc(r,n,i,a,t[14],9,-1019803690),a=Pc(a,r,n,i,t[3],14,-187363961),i=Pc(i,a,r,n,t[8],20,1163531501),n=Pc(n,i,a,r,t[13],5,-1444681467),r=Pc(r,n,i,a,t[2],9,-51403784),a=Pc(a,r,n,i,t[7],14,1735328473),n=kc(n,i=Pc(i,a,r,n,t[12],20,-1926607734),a,r,t[5],4,-378558),r=kc(r,n,i,a,t[8],11,-2022574463),a=kc(a,r,n,i,t[11],16,1839030562),i=kc(i,a,r,n,t[14],23,-35309556),n=kc(n,i,a,r,t[1],4,-1530992060),r=kc(r,n,i,a,t[4],11,1272893353),a=kc(a,r,n,i,t[7],16,-155497632),i=kc(i,a,r,n,t[10],23,-1094730640),n=kc(n,i,a,r,t[13],4,681279174),r=kc(r,n,i,a,t[0],11,-358537222),a=kc(a,r,n,i,t[3],16,-722521979),i=kc(i,a,r,n,t[6],23,76029189),n=kc(n,i,a,r,t[9],4,-640364487),r=kc(r,n,i,a,t[12],11,-421815835),a=kc(a,r,n,i,t[15],16,530742520),n=Tc(n,i=kc(i,a,r,n,t[2],23,-995338651),a,r,t[0],6,-198630844),r=Tc(r,n,i,a,t[7],10,1126891415),a=Tc(a,r,n,i,t[14],15,-1416354905),i=Tc(i,a,r,n,t[5],21,-57434055),n=Tc(n,i,a,r,t[12],6,1700485571),r=Tc(r,n,i,a,t[3],10,-1894986606),a=Tc(a,r,n,i,t[10],15,-1051523),i=Tc(i,a,r,n,t[1],21,-2054922799),n=Tc(n,i,a,r,t[8],6,1873313359),r=Tc(r,n,i,a,t[15],10,-30611744),a=Tc(a,r,n,i,t[6],15,-1560198380),i=Tc(i,a,r,n,t[13],21,1309151649),n=Tc(n,i,a,r,t[4],6,-145523070),r=Tc(r,n,i,a,t[11],10,-1120210379),a=Tc(a,r,n,i,t[2],15,718787259),i=Tc(i,a,r,n,t[9],21,-343485551),e[0]=Rc(n,e[0]),e[1]=Rc(i,e[1]),e[2]=Rc(a,e[2]),e[3]=Rc(r,e[3])}function Fc(e,t,n,i,a,r){return t=Rc(Rc(t,e),Rc(i,r)),Rc(t<<a|t>>>32-a,n)}function Bc(e,t,n,i,a,r,s){return Fc(t&n|~t&i,e,t,a,r,s)}function Pc(e,t,n,i,a,r,s){return Fc(t&i|n&~i,e,t,a,r,s)}function kc(e,t,n,i,a,r,s){return Fc(t^n^i,e,t,a,r,s)}function Tc(e,t,n,i,a,r,s){return Fc(n^(t|~i),e,t,a,r,s)}function Ec(e){var t,n=e.length,i=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Ic(i,Dc(e.substring(t-64,t)));e=e.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(Ic(i,a),t=0;t<16;t++)a[t]=0;return a[14]=8*n,Ic(i,a),i}function Dc(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var Lc="0123456789abcdef".split("");function Uc(e){for(var t="",n=0;n<4;n++)t+=Lc[e>>8*n+4&15]+Lc[e>>8*n&15];return t}function _c(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Oc(e){return Ec(e).map(_c).join("")}var Mc="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t<e.length;t++)e[t]=Uc(e[t]);return e.join("")}(Ec("hello"));function Rc(e,t){if(Mc){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}
|
||
/**
|
||
* @license
|
||
* FPDF is released under a permissive license: there is no usage restriction.
|
||
* You may embed it freely in your application (commercial or not), with or
|
||
* without modifications.
|
||
*
|
||
* Reference: http://www.fpdf.org/en/script/script37.php
|
||
*/function Qc(e,t){var n,i,a,r;if(e!==n){for(var s=(a=e,r=1+(256/e.length|0),new Array(r+1).join(a)),l=[],o=0;o<256;o++)l[o]=o;var d=0;for(o=0;o<256;o++){var c=l[o];d=(d+c+s.charCodeAt(o))%256,l[o]=l[d],l[d]=c}n=e,i=l}else l=i;var u=t.length,p=0,A=0,h="";for(o=0;o<u;o++)A=(A+(c=l[p=(p+1)%256]))%256,l[p]=l[A],l[A]=c,s=l[(l[p]+l[A])%256],h+=String.fromCharCode(t.charCodeAt(o)^s);return h}
|
||
/**
|
||
* @license
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
* Author: Owen Leong (@owenl131)
|
||
* Date: 15 Oct 2020
|
||
* References:
|
||
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
||
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
||
* http://www.fpdf.org/en/script/script37.php
|
||
*/var Hc={print:4,modify:8,copy:16,"annot-forms":32};function Vc(e,t,n,i){this.v=1,this.r=2;var a=192;e.forEach((function(e){if(void 0!==Hc.perm)throw new Error("Invalid permission: "+e);a+=Hc[e]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var r=(t+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(r,s),this.P=-(1+(255^a)),this.encryptionKey=Oc(r+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=Qc(this.encryptionKey,this.padding)}function zc(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,i=0;i<n;i++){var a=e.charCodeAt(i);t+=a<33||35===a||37===a||40===a||41===a||47===a||60===a||62===a||91===a||93===a||123===a||125===a||a>126?"#"+("0"+a.toString(16)).slice(-2):e[i]}return t}function qc(e){if("object"!==p(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,i){if(i=i||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof i)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var a=Math.random().toString(35);return t[e][a]=[n,!!i],a},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),a=[];for(var r in t[n]){var s=t[n][r];try{s[0].apply(e,i)}catch(ese){vc.console&&yc.error("jsPDF PubSub Error",ese.message,ese)}s[1]&&a.push(r)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Wc(e){if(!(this instanceof Wc))return new Wc(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function Yc(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Kc(e,t,n,i,a){if(!(this instanceof Kc))return new Kc(e,t,n,i,a);this.type="axial"===e?2:3,this.coords=t,this.colors=n,Yc.call(this,i,a)}function Gc(e,t,n,i,a){if(!(this instanceof Gc))return new Gc(e,t,n,i,a);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,Yc.call(this,i,a)}function $c(e){var t,n="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],a=arguments[2],r=arguments[3],s=[],l=1,o=16,d="S",c=null;"object"===p(e=e||{})&&(n=e.orientation,i=e.unit||i,a=e.format||a,r=e.compress||e.compressPdf||r,null!==(c=e.encryption||null)&&(c.userPassword=c.userPassword||"",c.ownerPassword=c.ownerPassword||"",c.userPermissions=c.userPermissions||[]),l="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(o=e.floatPrecision),d=e.defaultPathOperation||"S"),s=e.filters||(!0===r?["FlateEncode"]:s),i=i||"mm",n=(""+(n||"P")).toLowerCase();var u=e.putOnlyUsedFonts||!1,A={},h={internal:{},__private__:{}};h.__private__.PubSub=qc;var f="1.3",m=h.__private__.getPdfVersion=function(){return f};h.__private__.setPdfVersion=function(e){f=e};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return v};var g=h.__private__.getPageFormat=function(e){return v[e]};a=a||"a4";var y="compat",x="advanced",b=y;function w(){this.saveGraphicsState(),J(new Te(Ae,0,0,-Ae,0,hn()*Ae).toString()+" cm"),this.setFontSize(this.getFontSize()/Ae),d="n",b=x}function j(){this.restoreGraphicsState(),d="S",b=y}var C=h.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};h.advancedAPI=function(e){var t=b===y;return t&&w.call(this),"function"!=typeof e||(e(this),t&&j.call(this)),this},h.compatAPI=function(e){var t=b===x;return t&&j.call(this),"function"!=typeof e||(e(this),t&&w.call(this)),this},h.isAdvancedAPI=function(){return b===x};var S,N=function(e){if(b!==x)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},I=h.roundToPrecision=h.__private__.roundToPrecision=function(e,n){var i=t||n;if(isNaN(e)||isNaN(i))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(i).replace(/0+$/,"")};S=h.hpf=h.__private__.hpf="number"==typeof o?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,o)}:"smart"===o?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,16)};var F=h.f2=h.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return I(e,2)},B=h.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return I(e,3)},P=h.scale=h.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return b===y?e*Ae:b===x?e:void 0},k=function(e){return P((t=e,b===y?hn()-t:b===x?t:void 0));var t};h.__private__.setPrecision=h.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var T,E="00000000000000000000000000000000",D=h.__private__.getFileId=function(){return E},L=h.__private__.setFileId=function(e){return E=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():E.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==c&&(yt=new Vc(c.userPermissions,c.userPassword,c.ownerPassword,E)),E};h.setFileId=function(e){return L(e),this},h.getFileId=function(){return D()};var U=h.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",i=Math.floor(Math.abs(t/60)),a=Math.abs(t%60),r=[n,Q(i),"'",Q(a),"'"].join("");return["D:",e.getFullYear(),Q(e.getMonth()+1),Q(e.getDate()),Q(e.getHours()),Q(e.getMinutes()),Q(e.getSeconds()),r].join("")},_=h.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,i=parseInt(e.substr(8,2),10),a=parseInt(e.substr(10,2),10),r=parseInt(e.substr(12,2),10),s=parseInt(e.substr(14,2),10);return new Date(t,n,i,a,r,s,0)},O=h.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=U(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return T=t},M=h.__private__.getCreationDate=function(e){var t=T;return"jsDate"===e&&(t=_(T)),t};h.setCreationDate=function(e){return O(e),this},h.getCreationDate=function(e){return M(e)};var R,Q=h.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},H=h.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},V=0,z=[],q=[],W=0,Y=[],K=[],G=!1,$=q;h.__private__.setCustomOutputDestination=function(e){G=!0,$=e};var X=function(e){G||($=e)};h.__private__.resetCustomOutputDestination=function(){G=!1,$=q};var J=h.__private__.out=function(e){return e=e.toString(),W+=e.length+1,$.push(e),$},Z=h.__private__.write=function(e){return J(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},ee=h.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),i=new Uint8Array(n);t--;)i[t]=e.charCodeAt(t);return n},te=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return te};var ne=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(e){return ne=b===x?e/Ae:e,this};var ie,ae=h.__private__.getFontSize=h.getFontSize=function(){return b===y?ne:ne*Ae},re=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(e){return re=e,this},h.__private__.getR2L=h.getR2L=function(){return re};var se,le=h.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))ie=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');ie=e}else ie=parseInt(e,10)};h.__private__.getZoomMode=function(){return ie};var oe,de=h.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');se=e};h.__private__.getPageMode=function(){return se};var ce=h.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');oe=e};h.__private__.getLayoutMode=function(){return oe},h.__private__.setDisplayMode=h.setDisplayMode=function(e,t,n){return le(e),ce(t),de(n),this};var ue={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(e){if(-1===Object.keys(ue).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ue[e]},h.__private__.getDocumentProperties=function(){return ue},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(e){for(var t in ue)ue.hasOwnProperty(t)&&e[t]&&(ue[t]=e[t]);return this},h.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(ue).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ue[e]=t};var pe,Ae,he,fe,me,ve={},ge={},ye=[],xe={},be={},we={},je={},Ce=null,Se=0,Ne=[],Ie=new qc(h),Fe=e.hotfixes||[],Be={},Pe={},ke=[],Te=function e(t,n,i,a,r,s){if(!(this instanceof e))return new e(t,n,i,a,r,s);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(i)&&(i=0),isNaN(a)&&(a=1),isNaN(r)&&(r=0),isNaN(s)&&(s=0),this._matrix=[t,n,i,a,r,s]};Object.defineProperty(Te.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Te.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Te.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Te.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Te.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Te.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Te.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Te.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Te.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Te.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Te.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Te.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Te.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Te.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Te.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Te.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Te.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(S).join(e)},Te.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,n=e.sx*this.shy+e.shy*this.sy,i=e.shx*this.sx+e.sy*this.shx,a=e.shx*this.shy+e.sy*this.sy,r=e.tx*this.sx+e.ty*this.shx+this.tx,s=e.tx*this.shy+e.ty*this.sy+this.ty;return new Te(t,n,i,a,r,s)},Te.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,i=this.sy,a=this.tx,r=this.ty,s=Math.sqrt(e*e+t*t),l=(e/=s)*n+(t/=s)*i;n-=e*l,i-=t*l;var o=Math.sqrt(n*n+i*i);return l/=o,e*(i/=o)<t*(n/=o)&&(e=-e,t=-t,l=-l,s=-s),{scale:new Te(s,0,0,o,0,0),translate:new Te(1,0,0,1,a,r),rotate:new Te(e,t,-t,e,0,0),skew:new Te(1,0,l,1,0,0)}},Te.prototype.toString=function(e){return this.join(" ")},Te.prototype.inversed=function(){var e=this.sx,t=this.shy,n=this.shx,i=this.sy,a=this.tx,r=this.ty,s=1/(e*i-t*n),l=i*s,o=-t*s,d=-n*s,c=e*s;return new Te(l,o,d,c,-l*a-d*r,-o*a-c*r)},Te.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,n=e.x*this.shy+e.y*this.sy+this.ty;return new nn(t,n)},Te.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new nn(e.x+e.w,e.y+e.h));return new an(t.x,t.y,n.x-t.x,n.y-t.y)},Te.prototype.clone=function(){var e=this.sx,t=this.shy,n=this.shx,i=this.sy,a=this.tx,r=this.ty;return new Te(e,t,n,i,a,r)},h.Matrix=Te;var Ee=h.matrixMult=function(e,t){return t.multiply(e)},De=new Te(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=De;var Le=function(e,t){if(!be[e]){var n=(t instanceof Kc?"Sh":"P")+(Object.keys(xe).length+1).toString(10);t.id=n,be[e]=n,xe[n]=t,Ie.publish("addPattern",t)}};h.ShadingPattern=Kc,h.TilingPattern=Gc,h.addShadingPattern=function(e,t){return N("addShadingPattern()"),Le(e,t),this},h.beginTilingPattern=function(e){N("beginTilingPattern()"),sn(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},h.endTilingPattern=function(e,t){N("endTilingPattern()"),t.stream=K[R].join("\n"),Le(e,t),Ie.publish("endTilingPattern",t),ke.pop().restore()};var Ue,_e=h.__private__.newObject=function(){var e=Oe();return Me(e,!0),e},Oe=h.__private__.newObjectDeferred=function(){return V++,z[V]=function(){return W},V},Me=function(e,t){return t="boolean"==typeof t&&t,z[e]=W,t&&J(e+" 0 obj"),e},Re=h.__private__.newAdditionalObject=function(){var e={objId:Oe(),content:""};return Y.push(e),e},Qe=Oe(),He=Oe(),Ve=h.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var n=parseFloat(t[0]);t=[n,n,n,"r"]}for(var i="#",a=0;a<3;a++)i+=("0"+Math.floor(255*parseFloat(t[a])).toString(16)).slice(-2);return i},ze=h.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var n=e.ch1,i=e.ch2,a=e.ch3,r=e.ch4,s="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var l=new Cc(n);if(l.ok)n=l.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var o=parseInt(n.substr(1),16);n=o>>16&255,i=o>>8&255,a=255&o}if(void 0===i||void 0===r&&n===i&&i===a)t="string"==typeof n?n+" "+s[0]:2===e.precision?F(n/255)+" "+s[0]:B(n/255)+" "+s[0];else if(void 0===r||"object"===p(r)){if(r&&!isNaN(r.a)&&0===r.a)return["1.","1.","1.",s[1]].join(" ");t="string"==typeof n?[n,i,a,s[1]].join(" "):2===e.precision?[F(n/255),F(i/255),F(a/255),s[1]].join(" "):[B(n/255),B(i/255),B(a/255),s[1]].join(" ")}else t="string"==typeof n?[n,i,a,r,s[2]].join(" "):2===e.precision?[F(n),F(i),F(a),F(r),s[2]].join(" "):[B(n),B(i),B(a),B(r),s[2]].join(" ");return t},qe=h.__private__.getFilters=function(){return s},We=h.__private__.putStream=function(e){var t=(e=e||{}).data||"",n=e.filters||qe(),i=e.alreadyAppliedFilters||[],a=e.addLength1||!1,r=t.length,s=e.objectId,l=function(e){return e};if(null!==c&&void 0===s)throw new Error("ObjectId must be passed to putStream for file encryption");null!==c&&(l=yt.encryptor(s,0));var o={};!0===n&&(n=["FlateEncode"]);var d=e.additionalKeyValues||[],u=(o=void 0!==$c.API.processDataByFilters?$c.API.processDataByFilters(t,n):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(i)?i.join(" "):i.toString());if(0!==o.data.length&&(d.push({key:"Length",value:o.data.length}),!0===a&&d.push({key:"Length1",value:r})),0!=u.length)if(u.split("/").length-1==1)d.push({key:"Filter",value:u});else{d.push({key:"Filter",value:"["+u+"]"});for(var p=0;p<d.length;p+=1)if("DecodeParms"===d[p].key){for(var A=[],h=0;h<o.reverseChain.split("/").length-1;h+=1)A.push("null");A.push(d[p].value),d[p].value="["+A.join(" ")+"]"}}J("<<");for(var f=0;f<d.length;f++)J("/"+d[f].key+" "+d[f].value);J(">>"),0!==o.data.length&&(J("stream"),J(l(o.data)),J("endstream"))},Ye=h.__private__.putPage=function(e){var t=e.number,n=e.data,i=e.objId,a=e.contentsObjId;Me(i,!0),J("<</Type /Page"),J("/Parent "+e.rootDictionaryObjId+" 0 R"),J("/Resources "+e.resourceDictionaryObjId+" 0 R"),J("/MediaBox ["+parseFloat(S(e.mediaBox.bottomLeftX))+" "+parseFloat(S(e.mediaBox.bottomLeftY))+" "+S(e.mediaBox.topRightX)+" "+S(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&J("/CropBox ["+S(e.cropBox.bottomLeftX)+" "+S(e.cropBox.bottomLeftY)+" "+S(e.cropBox.topRightX)+" "+S(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&J("/BleedBox ["+S(e.bleedBox.bottomLeftX)+" "+S(e.bleedBox.bottomLeftY)+" "+S(e.bleedBox.topRightX)+" "+S(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&J("/TrimBox ["+S(e.trimBox.bottomLeftX)+" "+S(e.trimBox.bottomLeftY)+" "+S(e.trimBox.topRightX)+" "+S(e.trimBox.topRightY)+"]"),null!==e.artBox&&J("/ArtBox ["+S(e.artBox.bottomLeftX)+" "+S(e.artBox.bottomLeftY)+" "+S(e.artBox.topRightX)+" "+S(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&J("/UserUnit "+e.userUnit),Ie.publish("putPage",{objId:i,pageContext:Ne[t],pageNumber:t,page:n}),J("/Contents "+a+" 0 R"),J(">>"),J("endobj");var r=n.join("\n");return b===x&&(r+="\nQ"),Me(a,!0),We({data:r,filters:qe(),objectId:a}),J("endobj"),i},Ke=h.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=Se;e++)Ne[e].objId=Oe(),Ne[e].contentsObjId=Oe();for(e=1;e<=Se;e++)n.push(Ye({number:e,data:K[e],objId:Ne[e].objId,contentsObjId:Ne[e].contentsObjId,mediaBox:Ne[e].mediaBox,cropBox:Ne[e].cropBox,bleedBox:Ne[e].bleedBox,trimBox:Ne[e].trimBox,artBox:Ne[e].artBox,userUnit:Ne[e].userUnit,rootDictionaryObjId:Qe,resourceDictionaryObjId:He}));Me(Qe,!0),J("<</Type /Pages");var i="/Kids [";for(t=0;t<Se;t++)i+=n[t]+" 0 R ";J(i+"]"),J("/Count "+Se),J(">>"),J("endobj"),Ie.publish("postPutPages")},Ge=function(e){Ie.publish("putFont",{font:e,out:J,newObject:_e,putStream:We}),!0!==e.isAlreadyPutted&&(e.objectNumber=_e(),J("<<"),J("/Type /Font"),J("/BaseFont /"+zc(e.postScriptName)),J("/Subtype /Type1"),"string"==typeof e.encoding&&J("/Encoding /"+e.encoding),J("/FirstChar 32"),J("/LastChar 255"),J(">>"),J("endobj"))},$e=function(e){e.objectNumber=_e();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[S(e.x),S(e.y),S(e.x+e.width),S(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var n=e.pages[1].join("\n");We({data:n,additionalKeyValues:t,objectId:e.objectNumber}),J("endobj")},Xe=function(e,t){t||(t=21);var n=_e(),i=function(e,t){var n,i=[],a=1/(t-1);for(n=0;n<1;n+=a)i.push(n);if(i.push(1),0!=e[0].offset){var r={offset:0,color:e[0].color};e.unshift(r)}if(1!=e[e.length-1].offset){var s={offset:1,color:e[e.length-1].color};e.push(s)}for(var l="",o=0,d=0;d<i.length;d++){for(n=i[d];n>e[o+1].offset;)o++;var c=e[o].offset,u=(n-c)/(e[o+1].offset-c),p=e[o].color,A=e[o+1].color;l+=H(Math.round((1-u)*p[0]+u*A[0]).toString(16))+H(Math.round((1-u)*p[1]+u*A[1]).toString(16))+H(Math.round((1-u)*p[2]+u*A[2]).toString(16))}return l.trim()}(e.colors,t),a=[];a.push({key:"FunctionType",value:"0"}),a.push({key:"Domain",value:"[0.0 1.0]"}),a.push({key:"Size",value:"["+t+"]"}),a.push({key:"BitsPerSample",value:"8"}),a.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),a.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),We({data:i,additionalKeyValues:a,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),J("endobj"),e.objectNumber=_e(),J("<< /ShadingType "+e.type),J("/ColorSpace /DeviceRGB");var r="/Coords ["+S(parseFloat(e.coords[0]))+" "+S(parseFloat(e.coords[1]))+" ";2===e.type?r+=S(parseFloat(e.coords[2]))+" "+S(parseFloat(e.coords[3])):r+=S(parseFloat(e.coords[2]))+" "+S(parseFloat(e.coords[3]))+" "+S(parseFloat(e.coords[4]))+" "+S(parseFloat(e.coords[5])),J(r+="]"),e.matrix&&J("/Matrix ["+e.matrix.toString()+"]"),J("/Function "+n+" 0 R"),J("/Extend [true true]"),J(">>"),J("endobj")},Je=function(e,t){var n=Oe(),i=_e();t.push({resourcesOid:n,objectOid:i}),e.objectNumber=i;var a=[];a.push({key:"Type",value:"/Pattern"}),a.push({key:"PatternType",value:"1"}),a.push({key:"PaintType",value:"1"}),a.push({key:"TilingType",value:"1"}),a.push({key:"BBox",value:"["+e.boundingBox.map(S).join(" ")+"]"}),a.push({key:"XStep",value:S(e.xStep)}),a.push({key:"YStep",value:S(e.yStep)}),a.push({key:"Resources",value:n+" 0 R"}),e.matrix&&a.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),We({data:e.stream,additionalKeyValues:a,objectId:e.objectNumber}),J("endobj")},Ze=function(e){for(var t in e.objectNumber=_e(),J("<<"),e)switch(t){case"opacity":J("/ca "+F(e[t]));break;case"stroke-opacity":J("/CA "+F(e[t]))}J(">>"),J("endobj")},et=function(e){Me(e.resourcesOid,!0),J("<<"),J("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var e in J("/Font <<"),ve)ve.hasOwnProperty(e)&&(!1===u||!0===u&&A.hasOwnProperty(e))&&J("/"+e+" "+ve[e].objectNumber+" 0 R");J(">>")}(),function(){if(Object.keys(xe).length>0){for(var e in J("/Shading <<"),xe)xe.hasOwnProperty(e)&&xe[e]instanceof Kc&&xe[e].objectNumber>=0&&J("/"+e+" "+xe[e].objectNumber+" 0 R");Ie.publish("putShadingPatternDict"),J(">>")}}(),function(e){if(Object.keys(xe).length>0){for(var t in J("/Pattern <<"),xe)xe.hasOwnProperty(t)&&xe[t]instanceof h.TilingPattern&&xe[t].objectNumber>=0&&xe[t].objectNumber<e&&J("/"+t+" "+xe[t].objectNumber+" 0 R");Ie.publish("putTilingPatternDict"),J(">>")}}(e.objectOid),function(){if(Object.keys(we).length>0){var e;for(e in J("/ExtGState <<"),we)we.hasOwnProperty(e)&&we[e].objectNumber>=0&&J("/"+e+" "+we[e].objectNumber+" 0 R");Ie.publish("putGStateDict"),J(">>")}}(),function(){for(var e in J("/XObject <<"),Be)Be.hasOwnProperty(e)&&Be[e].objectNumber>=0&&J("/"+e+" "+Be[e].objectNumber+" 0 R");Ie.publish("putXobjectDict"),J(">>")}(),J(">>"),J("endobj")},tt=function(e){ge[e.fontName]=ge[e.fontName]||{},ge[e.fontName][e.fontStyle]=e.id},nt=function(e,t,n,i,a){var r={id:"F"+(Object.keys(ve).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:n,encoding:i,isStandardFont:a||!1,metadata:{}};return Ie.publish("addFont",{font:r,instance:this}),ve[r.id]=r,tt(r),r.id},it=h.__private__.pdfEscape=h.pdfEscape=function(e,t){return function(e,t){var n,i,a,r,s,l,o,d,c;if(a=(t=t||{}).sourceEncoding||"Unicode",s=t.outputEncoding,(t.autoencode||s)&&ve[pe].metadata&&ve[pe].metadata[a]&&ve[pe].metadata[a].encoding&&(r=ve[pe].metadata[a].encoding,!s&&ve[pe].encoding&&(s=ve[pe].encoding),!s&&r.codePages&&(s=r.codePages[0]),"string"==typeof s&&(s=r[s]),s)){for(o=!1,l=[],n=0,i=e.length;n<i;n++)(d=s[e.charCodeAt(n)])?l.push(String.fromCharCode(d)):l.push(e[n]),l[n].charCodeAt(0)>>8&&(o=!0);e=l.join("")}for(n=e.length;void 0===o&&0!==n;)e.charCodeAt(n-1)>>8&&(o=!0),n--;if(!o)return e;for(l=t.noBOM?[]:[254,255],n=0,i=e.length;n<i;n++){if((c=(d=e.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");l.push(c),l.push(d-(c<<8))}return String.fromCharCode.apply(void 0,l)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},at=h.__private__.beginPage=function(e){K[++Se]=[],Ne[Se]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},lt(Se),X(K[R])},rt=function(e,t){var i,r,s;switch(n=t||n,"string"==typeof e&&(i=g(e.toLowerCase()),Array.isArray(i)&&(r=i[0],s=i[1])),Array.isArray(e)&&(r=e[0]*Ae,s=e[1]*Ae),isNaN(r)&&(r=a[0],s=a[1]),(r>14400||s>14400)&&(yc.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),r=Math.min(14400,r),s=Math.min(14400,s)),a=[r,s],n.substr(0,1)){case"l":s>r&&(a=[s,r]);break;case"p":r>s&&(a=[s,r])}at(a),Mt(_t),J(Yt),0!==Zt&&J(Zt+" J"),0!==en&&J(en+" j"),Ie.publish("addPage",{pageNumber:Se})},st=function(e){e>0&&e<=Se&&(K.splice(e,1),Ne.splice(e,1),Se--,R>Se&&(R=Se),this.setPage(R))},lt=function(e){e>0&&e<=Se&&(R=e)},ot=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return K.length-1},dt=function(e,t,n){var i,a=void 0;return n=n||{},e=void 0!==e?e:ve[pe].fontName,t=void 0!==t?t:ve[pe].fontStyle,i=e.toLowerCase(),void 0!==ge[i]&&void 0!==ge[i][t]?a=ge[i][t]:void 0!==ge[e]&&void 0!==ge[e][t]?a=ge[e][t]:!1===n.disableWarning&&yc.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),a||n.noFallback||null==(a=ge.times[t])&&(a=ge.times.normal),a},ct=h.__private__.putInfo=function(){var e=_e(),t=function(e){return e};for(var n in null!==c&&(t=yt.encryptor(e,0)),J("<<"),J("/Producer ("+it(t("jsPDF "+$c.version))+")"),ue)ue.hasOwnProperty(n)&&ue[n]&&J("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+it(t(ue[n]))+")");J("/CreationDate ("+it(t(T))+")"),J(">>"),J("endobj")},ut=h.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Qe;switch(_e(),J("<<"),J("/Type /Catalog"),J("/Pages "+t+" 0 R"),ie||(ie="fullwidth"),ie){case"fullwidth":J("/OpenAction [3 0 R /FitH null]");break;case"fullheight":J("/OpenAction [3 0 R /FitV null]");break;case"fullpage":J("/OpenAction [3 0 R /Fit]");break;case"original":J("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+ie;"%"===n.substr(n.length-1)&&(ie=parseInt(ie)/100),"number"==typeof ie&&J("/OpenAction [3 0 R /XYZ null null "+F(ie)+"]")}switch(oe||(oe="continuous"),oe){case"continuous":J("/PageLayout /OneColumn");break;case"single":J("/PageLayout /SinglePage");break;case"two":case"twoleft":J("/PageLayout /TwoColumnLeft");break;case"tworight":J("/PageLayout /TwoColumnRight")}se&&J("/PageMode /"+se),Ie.publish("putCatalog"),J(">>"),J("endobj")},pt=h.__private__.putTrailer=function(){J("trailer"),J("<<"),J("/Size "+(V+1)),J("/Root "+V+" 0 R"),J("/Info "+(V-1)+" 0 R"),null!==c&&J("/Encrypt "+yt.oid+" 0 R"),J("/ID [ <"+E+"> <"+E+"> ]"),J(">>")},At=h.__private__.putHeader=function(){J("%PDF-"+f),J("%ºß¬à")},ht=h.__private__.putXRef=function(){var e="0000000000";J("xref"),J("0 "+(V+1)),J("0000000000 65535 f ");for(var t=1;t<=V;t++)"function"==typeof z[t]?J((e+z[t]()).slice(-10)+" 00000 n "):void 0!==z[t]?J((e+z[t]).slice(-10)+" 00000 n "):J("0000000000 00000 n ")},ft=h.__private__.buildDocument=function(){var e;V=0,W=0,q=[],z=[],Y=[],Qe=Oe(),He=Oe(),X(q),Ie.publish("buildDocument"),At(),Ke(),function(){Ie.publish("putAdditionalObjects");for(var e=0;e<Y.length;e++){var t=Y[e];Me(t.objId,!0),J(t.content),J("endobj")}Ie.publish("postPutAdditionalObjects")}(),e=[],function(){for(var e in ve)ve.hasOwnProperty(e)&&(!1===u||!0===u&&A.hasOwnProperty(e))&&Ge(ve[e])}(),function(){var e;for(e in we)we.hasOwnProperty(e)&&Ze(we[e])}(),function(){for(var e in Be)Be.hasOwnProperty(e)&&$e(Be[e])}(),function(e){var t;for(t in xe)xe.hasOwnProperty(t)&&(xe[t]instanceof Kc?Xe(xe[t]):xe[t]instanceof Gc&&Je(xe[t],e))}(e),Ie.publish("putResources"),e.forEach(et),et({resourcesOid:He,objectOid:Number.MAX_SAFE_INTEGER}),Ie.publish("postPutResources"),null!==c&&(yt.oid=_e(),J("<<"),J("/Filter /Standard"),J("/V "+yt.v),J("/R "+yt.r),J("/U <"+yt.toHexString(yt.U)+">"),J("/O <"+yt.toHexString(yt.O)+">"),J("/P "+yt.P),J(">>"),J("endobj")),ct(),ut();var t=W;return ht(),pt(),J("startxref"),J(""+t),J("%%EOF"),X(K[R]),q.join("\n")},mt=h.__private__.getBlob=function(e){return new Blob([ee(e)],{type:"application/pdf"})},vt=h.output=h.__private__.output=((Ue=function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return ft();case"save":h.save(t.filename);break;case"arraybuffer":return ee(ft());case"blob":return mt(ft());case"bloburi":case"bloburl":if(void 0!==vc.URL&&"function"==typeof vc.URL.createObjectURL)return vc.URL&&vc.URL.createObjectURL(mt(ft()))||void 0;yc.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",i=ft();try{n=Nc(i)}catch(A){n=Nc(unescape(encodeURIComponent(i)))}return"data:application/pdf;filename="+t.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(vc)){var a="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",r=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(a=t.pdfObjectUrl,r="");var s='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+a+'"'+r+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",l=vc.open();return null!==l&&l.document.write(s),l}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(vc)){var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',d=vc.open();if(null!==d){d.document.write(o);var c=this;d.document.documentElement.querySelector("#pdfViewer").onload=function(){d.document.title=t.filename,d.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(c.output("bloburl"))}}return d}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(vc))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var u='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',p=vc.open();if(null!==p&&(p.document.write(u),p.document.title=t.filename),p||"undefined"==typeof safari)return p;break;case"datauri":case"dataurl":return vc.document.location.href=this.output("datauristring",t);default:return null}}).foo=function(){try{return Ue.apply(this,arguments)}catch(ise){var e=ise.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var t="Error in function "+e.split("\n")[0].split("<")[0]+": "+ise.message;if(!vc.console)throw new Error(t);vc.console.error(t,ise),vc.alert&&alert(t)}},Ue.foo.bar=Ue,Ue.foo),gt=function(e){return!0===Array.isArray(Fe)&&Fe.indexOf(e)>-1};switch(i){case"pt":Ae=1;break;case"mm":Ae=72/25.4;break;case"cm":Ae=72/2.54;break;case"in":Ae=72;break;case"px":Ae=1==gt("px_scaling")?.75:96/72;break;case"pc":case"em":Ae=12;break;case"ex":Ae=6;break;default:if("number"!=typeof i)throw new Error("Invalid unit: "+i);Ae=i}var yt=null;O(),L();var xt=h.__private__.getPageInfo=h.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ne[e].objId,pageNumber:e,pageContext:Ne[e]}},bt=h.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in Ne)if(Ne[t].objId===e)break;return xt(t)},wt=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:Ne[R].objId,pageNumber:R,pageContext:Ne[R]}};h.addPage=function(){return rt.apply(this,arguments),this},h.setPage=function(){return lt.apply(this,arguments),X.call(this,K[R]),this},h.insertPage=function(e){return this.addPage(),this.movePage(R,e),this},h.movePage=function(e,t){var n,i;if(e>t){n=K[e],i=Ne[e];for(var a=e;a>t;a--)K[a]=K[a-1],Ne[a]=Ne[a-1];K[t]=n,Ne[t]=i,this.setPage(t)}else if(e<t){n=K[e],i=Ne[e];for(var r=e;r<t;r++)K[r]=K[r+1],Ne[r]=Ne[r+1];K[t]=n,Ne[t]=i,this.setPage(t)}return this},h.deletePage=function(){return st.apply(this,arguments),this},h.__private__.text=h.text=function(e,t,n,i,a){var r,s,l,o,d,c,u,h,f,m=(i=i||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof n||Array.isArray(n))){var v=n;n=t,t=e,e=v}if(arguments[3]instanceof Te==0?(l=arguments[4],o=arguments[5],"object"===p(u=arguments[3])&&null!==u||("string"==typeof l&&(o=l,l=null),"string"==typeof u&&(o=u,u=null),"number"==typeof u&&(l=u,u=null),i={flags:u,angle:l,align:o})):(N("The transform parameter of text() with a Matrix value"),f=a),isNaN(t)||isNaN(n)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return m;var g,y="",w="number"==typeof i.lineHeightFactor?i.lineHeightFactor:Ut,j=m.internal.scaleFactor;function C(e){return e=e.split("\t").join(Array(i.TabLen||9).join(" ")),it(e,u)}function I(e){for(var t,n=e.concat(),i=[],a=n.length;a--;)"string"==typeof(t=n.shift())?i.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?i.push(t[0]):i.push([t[0],t[1],t[2]]);return i}function F(e,t){var n;if("string"==typeof e)n=t(e)[0];else if(Array.isArray(e)){for(var i,a,r=e.concat(),s=[],l=r.length;l--;)"string"==typeof(i=r.shift())?s.push(t(i)[0]):Array.isArray(i)&&"string"==typeof i[0]&&(a=t(i[0],i[1],i[2]),s.push([a[0],a[1],a[2]]));n=s}return n}var B=!1,k=!0;if("string"==typeof e)B=!0;else if(Array.isArray(e)){var T=e.concat();s=[];for(var E,D=T.length;D--;)("string"!=typeof(E=T.shift())||Array.isArray(E)&&"string"!=typeof E[0])&&(k=!1);B=k}if(!1===B)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var L=ne/m.internal.scaleFactor,U=L*(w-1);switch(i.baseline){case"bottom":n-=U;break;case"top":n+=L-U;break;case"hanging":n+=L-2*U;break;case"middle":n+=L/2-U}if((c=i.maxWidth||0)>0&&("string"==typeof e?e=m.splitTextToSize(e,c):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(m.splitTextToSize(t,c))}),[]))),r={text:e,x:t,y:n,options:i,mutex:{pdfEscape:it,activeFontKey:pe,fonts:ve,activeFontSize:ne}},Ie.publish("preProcessText",r),e=r.text,l=(i=r.options).angle,f instanceof Te==0&&l&&"number"==typeof l){l*=Math.PI/180,0===i.rotationDirection&&(l=-l),b===x&&(l=-l);var _=Math.cos(l),O=Math.sin(l);f=new Te(_,O,-O,_,0,0)}else l&&l instanceof Te&&(f=l);b!==x||f||(f=De),void 0!==(d=i.charSpace||Xt)&&(y+=S(P(d))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(h=i.horizontalScale)&&(y+=S(100*h)+" Tz\n"),i.lang;var M=-1,R=void 0!==i.renderingMode?i.renderingMode:i.stroke,Q=m.internal.getCurrentPageInfo().pageContext;switch(R){case 0:case!1:case"fill":M=0;break;case 1:case!0:case"stroke":M=1;break;case 2:case"fillThenStroke":M=2;break;case 3:case"invisible":M=3;break;case 4:case"fillAndAddForClipping":M=4;break;case 5:case"strokeAndAddPathForClipping":M=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":M=6;break;case 7:case"addToPathForClipping":M=7}var H=void 0!==Q.usedRenderingMode?Q.usedRenderingMode:-1;-1!==M?y+=M+" Tr\n":-1!==H&&(y+="0 Tr\n"),-1!==M&&(Q.usedRenderingMode=M),o=i.align||"left";var V,z=ne*w,q=m.internal.pageSize.getWidth(),W=ve[pe];d=i.charSpace||Xt,c=i.maxWidth||0,u=Object.assign({autoencode:!0,noBOM:!0},i.flags);var Y=[],K=function(e){return m.getStringUnitWidth(e,{font:W,charSpace:d,fontSize:ne,doKerning:!1})*ne/j};if("[object Array]"===Object.prototype.toString.call(e)){var G;s=I(e),"left"!==o&&(V=s.map(K));var $,X=0;if("right"===o){t-=V[0],e=[],D=s.length;for(var Z=0;Z<D;Z++)0===Z?($=Vt(t),G=zt(n)):($=P(X-V[Z]),G=-z),e.push([s[Z],$,G]),X=V[Z]}else if("center"===o){t-=V[0]/2,e=[],D=s.length;for(var ee=0;ee<D;ee++)0===ee?($=Vt(t),G=zt(n)):($=P((X-V[ee])/2),G=-z),e.push([s[ee],$,G]),X=V[ee]}else if("left"===o){e=[],D=s.length;for(var te=0;te<D;te++)e.push(s[te])}else if("justify"===o&&"Identity-H"===W.encoding){e=[],D=s.length,c=0!==c?c:q;for(var ie=0,ae=0;ae<D;ae++)if(G=0===ae?zt(n):-z,$=0===ae?Vt(t):ie,ae<D-1){var se=P((c-V[ae])/(s[ae].split(" ").length-1)),le=s[ae].split(" ");e.push([le[0]+" ",$,G]),ie=0;for(var oe=1;oe<le.length;oe++){var de=(K(le[oe-1]+" "+le[oe])-K(le[oe]))*j+se;oe==le.length-1?e.push([le[oe],de,0]):e.push([le[oe]+" ",de,0]),ie-=de}}else e.push([s[ae],$,G]);e.push(["",ie,0])}else{if("justify"!==o)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(e=[],D=s.length,c=0!==c?c:q,ae=0;ae<D;ae++){G=0===ae?zt(n):-z,$=0===ae?Vt(t):0;var ce=s[ae].split(" ").length-1,ue=ce>0?(c-V[ae])/ce:0;ae<D-1?Y.push(S(P(ue))):Y.push(0),e.push([s[ae],$,G])}}}!0===("boolean"==typeof i.R2L?i.R2L:re)&&(e=F(e,(function(e,t,n){return[e.split("").reverse().join(""),t,n]}))),r={text:e,x:t,y:n,options:i,mutex:{pdfEscape:it,activeFontKey:pe,fonts:ve,activeFontSize:ne}},Ie.publish("postProcessText",r),e=r.text,g=r.mutex.isHex||!1;var Ae=ve[pe].encoding;"WinAnsiEncoding"!==Ae&&"StandardEncoding"!==Ae||(e=F(e,(function(e,t,n){return[C(e),t,n]}))),s=I(e),e=[];for(var he,fe,me,ge=Array.isArray(s[0])?1:0,ye="",xe=function(e,t,n){var a="";return n instanceof Te?(n="number"==typeof i.angle?Ee(n,new Te(1,0,0,1,e,t)):Ee(new Te(1,0,0,1,e,t),n),b===x&&(n=Ee(new Te(1,0,0,-1,0,0),n)),a=n.join(" ")+" Tm\n"):a=S(e)+" "+S(t)+" Td\n",a},be=0;be<s.length;be++){switch(ye="",ge){case 1:me=(g?"<":"(")+s[be][0]+(g?">":")"),he=parseFloat(s[be][1]),fe=parseFloat(s[be][2]);break;case 0:me=(g?"<":"(")+s[be]+(g?">":")"),he=Vt(t),fe=zt(n)}void 0!==Y&&void 0!==Y[be]&&(ye=Y[be]+" Tw\n"),0===be?e.push(ye+xe(he,fe,f)+me):0===ge?e.push(ye+me):1===ge&&e.push(ye+xe(he,fe,f)+me)}e=0===ge?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var we="BT\n/";return we+=pe+" "+ne+" Tf\n",we+=S(ne*w)+" TL\n",we+=Gt+"\n",we+=y,we+=e,J(we+="ET"),A[pe]=!0,m};var jt=h.__private__.clip=h.clip=function(e){return J("evenodd"===e?"W*":"W"),this};h.clipEvenOdd=function(){return jt("evenodd")},h.__private__.discardPath=h.discardPath=function(){return J("n"),this};var Ct=h.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(e){return Ct(e)&&(d=e),this};var St=h.__private__.getStyle=h.getStyle=function(e){var t=d;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},Nt=h.close=function(){return J("h"),this};h.stroke=function(){return J("S"),this},h.fill=function(e){return It("f",e),this},h.fillEvenOdd=function(e){return It("f*",e),this},h.fillStroke=function(e){return It("B",e),this},h.fillStrokeEvenOdd=function(e){return It("B*",e),this};var It=function(e,t){"object"===p(t)?Pt(t,e):J(e)},Ft=function(e){null===e||b===x&&void 0===e||(e=St(e),J(e))};function Bt(e,t,n,i,a){var r=new Gc(t||this.boundingBox,n||this.xStep,i||this.yStep,this.gState,a||this.matrix);r.stream=this.stream;var s=e+"$$"+this.cloneIndex+++"$$";return Le(s,r),r}var Pt=function(e,t){var n=be[e.key],i=xe[n];if(i instanceof Kc)J("q"),J(kt(t)),i.gState&&h.setGState(i.gState),J(e.matrix.toString()+" cm"),J("/"+n+" sh"),J("Q");else if(i instanceof Gc){var a=new Te(1,0,0,-1,0,hn());e.matrix&&(a=a.multiply(e.matrix||De),n=Bt.call(i,e.key,e.boundingBox,e.xStep,e.yStep,a).id),J("q"),J("/Pattern cs"),J("/"+n+" scn"),i.gState&&h.setGState(i.gState),J(t),J("Q")}},kt=function(e){switch(e){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Tt=h.moveTo=function(e,t){return J(S(P(e))+" "+S(k(t))+" m"),this},Et=h.lineTo=function(e,t){return J(S(P(e))+" "+S(k(t))+" l"),this},Dt=h.curveTo=function(e,t,n,i,a,r){return J([S(P(e)),S(k(t)),S(P(n)),S(k(i)),S(P(a)),S(k(r)),"c"].join(" ")),this};h.__private__.line=h.line=function(e,t,n,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||!Ct(a))throw new Error("Invalid arguments passed to jsPDF.line");return b===y?this.lines([[n-e,i-t]],e,t,[1,1],a||"S"):this.lines([[n-e,i-t]],e,t,[1,1]).stroke()},h.__private__.lines=h.lines=function(e,t,n,i,a,r){var s,l,o,d,c,u,p,A,h,f,m,v;if("number"==typeof e&&(v=n,n=t,t=e,e=v),i=i||[1,1],r=r||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(i)||!Ct(a)||"boolean"!=typeof r)throw new Error("Invalid arguments passed to jsPDF.lines");for(Tt(t,n),s=i[0],l=i[1],d=e.length,f=t,m=n,o=0;o<d;o++)2===(c=e[o]).length?(f=c[0]*s+f,m=c[1]*l+m,Et(f,m)):(u=c[0]*s+f,p=c[1]*l+m,A=c[2]*s+f,h=c[3]*l+m,f=c[4]*s+f,m=c[5]*l+m,Dt(u,p,A,h,f,m));return r&&Nt(),Ft(a),this},h.path=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=n.c;switch(n.op){case"m":Tt(i[0],i[1]);break;case"l":Et(i[0],i[1]);break;case"c":Dt.apply(this,i);break;case"h":Nt()}}return this},h.__private__.rect=h.rect=function(e,t,n,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||!Ct(a))throw new Error("Invalid arguments passed to jsPDF.rect");return b===y&&(i=-i),J([S(P(e)),S(k(t)),S(P(n)),S(P(i)),"re"].join(" ")),Ft(a),this},h.__private__.triangle=h.triangle=function(e,t,n,i,a,r,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(a)||isNaN(r)||!Ct(s))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-e,i-t],[a-n,r-i],[e-a,t-r]],e,t,[1,1],s,!0),this},h.__private__.roundedRect=h.roundedRect=function(e,t,n,i,a,r,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(a)||isNaN(r)||!Ct(s))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var l=4/3*(Math.SQRT2-1);return a=Math.min(a,.5*n),r=Math.min(r,.5*i),this.lines([[n-2*a,0],[a*l,0,a,r-r*l,a,r],[0,i-2*r],[0,r*l,-a*l,r,-a,r],[2*a-n,0],[-a*l,0,-a,-r*l,-a,-r],[0,2*r-i],[0,-r*l,a*l,-r,a,-r]],e+a,t,[1,1],s,!0),this},h.__private__.ellipse=h.ellipse=function(e,t,n,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||!Ct(a))throw new Error("Invalid arguments passed to jsPDF.ellipse");var r=4/3*(Math.SQRT2-1)*n,s=4/3*(Math.SQRT2-1)*i;return Tt(e+n,t),Dt(e+n,t-s,e+r,t-i,e,t-i),Dt(e-r,t-i,e-n,t-s,e-n,t),Dt(e-n,t+s,e-r,t+i,e,t+i),Dt(e+r,t+i,e+n,t+s,e+n,t),Ft(a),this},h.__private__.circle=h.circle=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||!Ct(i))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,n,n,i)},h.setFont=function(e,t,n){return n&&(t=C(t,n)),pe=dt(e,t,{disableWarning:!1}),this};var Lt=h.__private__.getFont=h.getFont=function(){return ve[dt.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var e,t,n={};for(e in ge)if(ge.hasOwnProperty(e))for(t in n[e]=[],ge[e])ge[e].hasOwnProperty(t)&&n[e].push(t);return n},h.addFont=function(e,t,n,i,a){var r=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==r.indexOf(arguments[3])?a=arguments[3]:arguments[3]&&-1==r.indexOf(arguments[3])&&(n=C(n,i)),nt.call(this,e,t,n,a=a||"Identity-H")};var Ut,_t=e.lineWidth||.200025,Ot=h.__private__.getLineWidth=h.getLineWidth=function(){return _t},Mt=h.__private__.setLineWidth=h.setLineWidth=function(e){return _t=e,J(S(P(e))+" w"),this};h.__private__.setLineDash=$c.API.setLineDash=$c.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map((function(e){return S(P(e))})).join(" "),t=S(P(t)),J("["+e+"] "+t+" d"),this};var Rt=h.__private__.getLineHeight=h.getLineHeight=function(){return ne*Ut};h.__private__.getLineHeight=h.getLineHeight=function(){return ne*Ut};var Qt=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(Ut=e),this},Ht=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return Ut};Qt(e.lineHeight);var Vt=h.__private__.getHorizontalCoordinate=function(e){return P(e)},zt=h.__private__.getVerticalCoordinate=function(e){return b===x?e:Ne[R].mediaBox.topRightY-Ne[R].mediaBox.bottomLeftY-P(e)},qt=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(e){return S(Vt(e))},Wt=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(e){return S(zt(e))},Yt=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return Ve(Yt)},h.__private__.setStrokeColor=h.setDrawColor=function(e,t,n,i){return Yt=ze({ch1:e,ch2:t,ch3:n,ch4:i,pdfColorType:"draw",precision:2}),J(Yt),this};var Kt=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return Ve(Kt)},h.__private__.setFillColor=h.setFillColor=function(e,t,n,i){return Kt=ze({ch1:e,ch2:t,ch3:n,ch4:i,pdfColorType:"fill",precision:2}),J(Kt),this};var Gt=e.textColor||"0 g",$t=h.__private__.getTextColor=h.getTextColor=function(){return Ve(Gt)};h.__private__.setTextColor=h.setTextColor=function(e,t,n,i){return Gt=ze({ch1:e,ch2:t,ch3:n,ch4:i,pdfColorType:"text",precision:3}),this};var Xt=e.charSpace,Jt=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(Xt||0)};h.__private__.setCharSpace=h.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Xt=e,this};var Zt=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(e){var t=h.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Zt=t,J(t+" J"),this};var en=0;h.__private__.setLineJoin=h.setLineJoin=function(e){var t=h.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return en=t,J(t+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return J(S(P(e))+" M"),this},h.GState=Wc,h.setGState=function(e){(e="string"==typeof e?we[je[e]]:tn(null,e)).equals(Ce)||(J("/"+e.id+" gs"),Ce=e)};var tn=function(e,t){if(!e||!je[e]){var n=!1;for(var i in we)if(we.hasOwnProperty(i)&&we[i].equals(t)){n=!0;break}if(n)t=we[i];else{var a="GS"+(Object.keys(we).length+1).toString(10);we[a]=t,t.id=a}return e&&(je[e]=t.id),Ie.publish("addGState",t),t}};h.addGState=function(e,t){return tn(e,t),this},h.saveGraphicsState=function(){return J("q"),ye.push({key:pe,size:ne,color:Gt}),this},h.restoreGraphicsState=function(){J("Q");var e=ye.pop();return pe=e.key,ne=e.size,Gt=e.color,Ce=null,this},h.setCurrentTransformationMatrix=function(e){return J(e.toString()+" cm"),this},h.comment=function(e){return J("#"+e),this};var nn=function(e,t){var n=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var i=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}});var a="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return a},set:function(e){a=e.toString()}}),this},an=function(e,t,n,i){nn.call(this,e,t),this.type="rect";var a=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return a},set:function(e){isNaN(e)||(a=parseFloat(e))}});var r=i||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}}),this},rn=function(){this.page=Se,this.currentPage=R,this.pages=K.slice(0),this.pagesContext=Ne.slice(0),this.x=he,this.y=fe,this.matrix=me,this.width=on(R),this.height=cn(R),this.outputDestination=$,this.id="",this.objectNumber=-1};rn.prototype.restore=function(){Se=this.page,R=this.currentPage,Ne=this.pagesContext,K=this.pages,he=this.x,fe=this.y,me=this.matrix,dn(R,this.width),un(R,this.height),$=this.outputDestination};var sn=function(e,t,n,i,a){ke.push(new rn),Se=R=0,K=[],he=e,fe=t,me=a,at([n,i])};for(var ln in h.beginFormObject=function(e,t,n,i,a){return sn(e,t,n,i,a),this},h.endFormObject=function(e){return function(e){if(Pe[e])ke.pop().restore();else{var t=new rn,n="Xo"+(Object.keys(Be).length+1).toString(10);t.id=n,Pe[e]=n,Be[n]=t,Ie.publish("addFormObject",t),ke.pop().restore()}}(e),this},h.doFormObject=function(e,t){var n=Be[Pe[e]];return J("q"),J(t.toString()+" cm"),J("/"+n.id+" Do"),J("Q"),this},h.getFormObject=function(e){var t=Be[Pe[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},h.save=function(e,t){return e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(jc(mt(ft()),e),"function"==typeof jc.unload&&vc.setTimeout&&setTimeout(jc.unload,911),this):new Promise((function(t,n){try{var i=jc(mt(ft()),e);"function"==typeof jc.unload&&vc.setTimeout&&setTimeout(jc.unload,911),t(i)}catch(a){n(a.message)}}))},$c.API)$c.API.hasOwnProperty(ln)&&("events"===ln&&$c.API.events.length?function(e,t){var n,i,a;for(a=t.length-1;-1!==a;a--)n=t[a][0],i=t[a][1],e.subscribe.apply(e,[n].concat("function"==typeof i?[i]:i))}(Ie,$c.API.events):h[ln]=$c.API[ln]);function on(e){return Ne[e].mediaBox.topRightX-Ne[e].mediaBox.bottomLeftX}function dn(e,t){Ne[e].mediaBox.topRightX=t+Ne[e].mediaBox.bottomLeftX}function cn(e){return Ne[e].mediaBox.topRightY-Ne[e].mediaBox.bottomLeftY}function un(e,t){Ne[e].mediaBox.topRightY=t+Ne[e].mediaBox.bottomLeftY}var pn=h.getPageWidth=function(e){return on(e=e||R)/Ae},An=h.setPageWidth=function(e,t){dn(e,t*Ae)},hn=h.getPageHeight=function(e){return cn(e=e||R)/Ae},fn=h.setPageHeight=function(e,t){un(e,t*Ae)};return h.internal={pdfEscape:it,getStyle:St,getFont:Lt,getFontSize:ae,getCharSpace:Jt,getTextColor:$t,getLineHeight:Rt,getLineHeightFactor:Ht,getLineWidth:Ot,write:Z,getHorizontalCoordinate:Vt,getVerticalCoordinate:zt,getCoordinateString:qt,getVerticalCoordinateString:Wt,collections:{},newObject:_e,newAdditionalObject:Re,newObjectDeferred:Oe,newObjectDeferredBegin:Me,getFilters:qe,putStream:We,events:Ie,scaleFactor:Ae,pageSize:{getWidth:function(){return pn(R)},setWidth:function(e){An(R,e)},getHeight:function(){return hn(R)},setHeight:function(e){fn(R,e)}},encryptionOptions:c,encryption:yt,getEncryptor:function(e){return null!==c?yt.encryptor(e,0):function(e){return e}},output:vt,getNumberOfPages:ot,pages:K,out:J,f2:F,f3:B,getPageInfo:xt,getPageInfoByObjId:bt,getCurrentPageInfo:wt,getPDFVersion:m,Point:nn,Rectangle:an,Matrix:Te,hasHotfix:gt},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return pn(R)},set:function(e){An(R,e)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return hn(R)},set:function(e){fn(R,e)},enumerable:!0,configurable:!0}),function(e){for(var t=0,n=te.length;t<n;t++){var i=nt.call(this,e[t][0],e[t][1],e[t][2],te[t][3],!0);!1===u&&(A[i]=!0);var a=e[t][0].split("-");tt({id:i,fontName:a[0],fontStyle:a[1]||""})}Ie.publish("addFonts",{fonts:ve,dictionary:ge})}.call(h,te),pe="F1",rt(a,n),Ie.publish("initialized"),h}Vc.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Vc.prototype.toHexString=function(e){return e.split("").map((function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)})).join("")},Vc.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},Vc.prototype.processOwnerPassword=function(e,t){return Qc(Oc(t).substr(0,5),e)},Vc.prototype.encryptor=function(e,t){var n=Oc(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return Qc(n,e)}},Wc.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||p(e)!==p(this))return!1;var i=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;i++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&i--;return 0===i},$c.API={events:[]},$c.version="3.0.3";var Xc=$c.API,Jc=1,Zc=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},eu=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},tu=function(e){return e.toFixed(2)},nu=function(e){return e.toFixed(5)};Xc.__acroform__={};var iu=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},au=function(e){return e*Jc},ru=function(e){var t=new bu,n=Lu.internal.getHeight(e)||0,i=Lu.internal.getWidth(e)||0;return t.BBox=[0,0,Number(tu(i)),Number(tu(n))],t},su=Xc.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},lu=Xc.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},ou=Xc.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},du=Xc.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return ou(e,t-1)},cu=Xc.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return su(e,t-1)},uu=Xc.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return lu(e,t-1)},pu=Xc.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,i=t.internal.getVerticalCoordinate,a=e[0],r=e[1],s=e[2],l=e[3],o={};return o.lowerLeft_X=n(a)||0,o.lowerLeft_Y=i(r+l)||0,o.upperRight_X=n(a+s)||0,o.upperRight_Y=i(r)||0,[Number(tu(o.lowerLeft_X)),Number(tu(o.lowerLeft_Y)),Number(tu(o.upperRight_X)),Number(tu(o.upperRight_Y))]},Au=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,i=hu(e,n),a=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+a+" "+tu(i.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC");var r=ru(e);return r.scope=e.scope,r.stream=t.join("\n"),r}},hu=function(e,t){var n=0===e.fontSize?e.maxFontSize:e.fontSize,i={text:"",fontSize:""},a=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");a=e.multiline?a.map((function(e){return e.split("\n")})):a.map((function(e){return[e]}));var r=n,s=Lu.internal.getHeight(e)||0;s=s<0?-s:s;var l=Lu.internal.getWidth(e)||0;l=l<0?-l:l;var o=function(t,n,i){if(t+1<a.length){var r=n+" "+a[t+1][0];return fu(r,e,i).width<=l-4}return!1};r++;e:for(;r>0;){t="",r--;var d,c,u=fu("3",e,r).height,p=e.multiline?s-r:(s-u)/2,A=p+=2,h=0,f=0,m=0;if(r<=0){t="(...) Tj\n",t+="% Width of Text: "+fu(t,e,r=12).width+", FieldWidth:"+l+"\n";break}for(var v="",g=0,y=0;y<a.length;y++)if(a.hasOwnProperty(y)){var x=!1;if(1!==a[y].length&&m!==a[y].length-1){if((u+2)*(g+2)+2>s)continue e;v+=a[y][m],x=!0,f=y,y--}else{v=" "==(v+=a[y][m]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var b=parseInt(y),w=o(b,v,r),j=y>=a.length-1;if(w&&!j){v+=" ",m=0;continue}if(w||j){if(j)f=b;else if(e.multiline&&(u+2)*(g+2)+2>s)continue e}else{if(!e.multiline)continue e;if((u+2)*(g+2)+2>s)continue e;f=b}}for(var C="",S=h;S<=f;S++){var N=a[S];if(e.multiline){if(S===f){C+=N[m]+" ",m=(m+1)%N.length;continue}if(S===h){C+=N[N.length-1]+" ";continue}}C+=N[0]+" "}switch(C=" "==C.substr(C.length-1)?C.substr(0,C.length-1):C,c=fu(C,e,r).width,e.textAlign){case"right":d=l-c-2;break;case"center":d=(l-c)/2;break;default:d=2}t+=tu(d)+" "+tu(A)+" Td\n",t+="("+Zc(C)+") Tj\n",t+=-tu(d)+" 0 Td\n",A=-(r+2),c=0,h=x?f:f+1,g++,v=""}break}return i.text=t,i.fontSize=r,i},fu=function(e,t,n){var i=t.scope.internal.getFont(t.fontName,t.fontStyle),a=t.scope.getStringUnitWidth(e,{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:a}},mu={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},vu=function(e,t){var n={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===n.type&&e.object===n.object}))&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},gu=Xc.__acroform__.arrayToPdfArray=function(e,t,n){var i=function(e){return e};if(Array.isArray(e)){for(var a="[",r=0;r<e.length;r++)switch(0!==r&&(a+=" "),p(e[r])){case"boolean":case"number":case"object":a+=e[r].toString();break;case"string":"/"!==e[r].substr(0,1)?(void 0!==t&&n&&(i=n.internal.getEncryptor(t)),a+="("+Zc(i(e[r].toString()))+")"):a+=e[r].toString()}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},yu=function(e,t,n){var i=function(e){return e};return void 0!==t&&n&&(i=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+Zc(i(e))+")"},xu=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};xu.prototype.toString=function(){return this.objId+" 0 R"},xu.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},xu.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter((function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)}));for(var n in t)if(!1===Object.getOwnPropertyDescriptor(this,t[n]).configurable){var i=t[n],a=this[i];a&&(Array.isArray(a)?e.push({key:i,value:gu(a,this.objId,this.scope)}):a instanceof xu?(a.scope=this.scope,e.push({key:i,value:a.objId+" 0 R"})):"function"!=typeof a&&e.push({key:i,value:a}))}return e};var bu=function(){xu.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};iu(bu,xu);var wu=function(){xu.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Zc(t(e))+")"}},set:function(t){e=t}})};iu(wu,xu);var ju=function e(){xu.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(t,3))},set:function(e){!0===Boolean(e)?this.F=cu(t,3):this.F=uu(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');n=e}});var i=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==i.length)return i},set:function(e){i=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[0])?0:i[0]},set:function(e){i[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[1])?0:i[1]},set:function(e){i[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[2])?0:i[2]},set:function(e){i[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[3])?0:i[3]},set:function(e){i[3]=e}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var r=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!r||r.length<1){if(this instanceof ku)return;r="FieldObject"+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Zc(t(r))+")"},set:function(e){r=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return r},set:function(e){r=e}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var o=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(e){o=e}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===d?50/Jc:d},set:function(e){d=e}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var u="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof ku||this instanceof Eu))return yu(u,this.objId,this.scope)},set:function(e){e=e.toString(),u=e}});var p=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof Fu==0?yu(p,this.objId,this.scope):p},set:function(e){e=e.toString(),p=this instanceof Fu==0?"("===e.substr(0,1)?eu(e.substr(1,e.length-2)):eu(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Fu==1?eu(p.substr(1,p.length-1)):p},set:function(e){e=e.toString(),p=this instanceof Fu==1?"/"+e:e}});var A=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(A)return A},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(A)return this instanceof Fu==0?yu(A,this.objId,this.scope):A},set:function(e){e=e.toString(),A=this instanceof Fu==0?"("===e.substr(0,1)?eu(e.substr(1,e.length-2)):eu(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Fu==1?eu(A.substr(1,A.length-1)):A},set:function(e){e=e.toString(),A=this instanceof Fu==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var h,f=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return f},set:function(e){e=Boolean(e),f=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(h)return h},set:function(e){h=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,1):this.Ff=uu(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,2):this.Ff=uu(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,3):this.Ff=uu(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');m=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(m){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:m=2;break;case"center":case 1:m=1;break;default:m=0}}})};iu(ju,xu);var Cu=function(){ju.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return gu(t,this.objId,this.scope)},set:function(e){var n,i;i=[],"string"==typeof(n=e)&&(i=function(e,t,n){n||(n=1);for(var i,a=[];i=t.exec(e);)a.push(i[n]);return a}(n,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n=n||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,18):this.Ff=uu(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=cu(this.Ff,19):this.Ff=uu(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=cu(this.Ff,20),t.sort()):this.Ff=uu(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,22):this.Ff=uu(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,23):this.Ff=uu(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,27):this.Ff=uu(this.Ff,27)}}),this.hasAppearanceStream=!1};iu(Cu,ju);var Su=function(){Cu.call(this),this.fontName="helvetica",this.combo=!1};iu(Su,Cu);var Nu=function(){Su.call(this),this.combo=!0};iu(Nu,Su);var Iu=function(){Nu.call(this),this.edit=!0};iu(Iu,Nu);var Fu=function(){ju.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,15):this.Ff=uu(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,16):this.Ff=uu(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,17):this.Ff=uu(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,26):this.Ff=uu(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var n,i=[];for(n in i.push("<<"),t)i.push("/"+n+" ("+Zc(e(t[n]))+")");return i.push(">>"),i.join("\n")}},set:function(e){"object"===p(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};iu(Fu,ju);var Bu=function(){Fu.call(this),this.pushButton=!0};iu(Bu,Fu);var Pu=function(){Fu.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};iu(Pu,Fu);var ku=function(){var e,t;ju.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,n=[];for(t in n.push("<<"),i)n.push("/"+t+" ("+Zc(e(i[t]))+")");return n.push(">>"),n.join("\n")},set:function(e){"object"===p(e)&&(i=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(e){"string"==typeof e&&(i.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Lu.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};iu(ku,ju),Pu.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},Pu.prototype.createOption=function(e){var t=new ku;return t.Parent=this,t.optionName=e,this.Kids.push(t),Uu.call(this.scope,t),t};var Tu=function(){Fu.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Lu.CheckBox.createAppearanceStream()};iu(Tu,Fu);var Eu=function(){ju.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,13):this.Ff=uu(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,21):this.Ff=uu(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,23):this.Ff=uu(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,24):this.Ff=uu(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,25):this.Ff=uu(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,26):this.Ff=uu(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};iu(Eu,ju);var Du=function(){Eu.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(du(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=cu(this.Ff,14):this.Ff=uu(this.Ff,14)}}),this.password=!0};iu(Du,Eu);var Lu={CheckBox:{createAppearanceStream:function(){return{N:{On:Lu.CheckBox.YesNormal},D:{On:Lu.CheckBox.YesPushDown,Off:Lu.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=ru(e);t.scope=e.scope;var n=[],i=e.scope.internal.getFont(e.fontName,e.fontStyle).id,a=e.scope.__private__.encodeColorString(e.color),r=hu(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+tu(Lu.internal.getWidth(e))+" "+tu(Lu.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+i+" "+tu(r.fontSize)+" Tf "+a),n.push("BT"),n.push(r.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join("\n"),t},YesNormal:function(e){var t=ru(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=[],r=Lu.internal.getHeight(e),s=Lu.internal.getWidth(e),l=hu(e,e.caption);return a.push("1 g"),a.push("0 0 "+tu(s)+" "+tu(r)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+tu(s-1)+" "+tu(r-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+n+" "+tu(l.fontSize)+" Tf "+i),a.push(l.text),a.push("ET"),a.push("Q"),t.stream=a.join("\n"),t},OffPushDown:function(e){var t=ru(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+tu(Lu.internal.getWidth(e))+" "+tu(Lu.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Lu.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Lu.RadioButton.Circle.YesNormal,t.D[e]=Lu.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=ru(e);t.scope=e.scope;var n=[],i=Lu.internal.getWidth(e)<=Lu.internal.getHeight(e)?Lu.internal.getWidth(e)/4:Lu.internal.getHeight(e)/4;i=Number((.9*i).toFixed(5));var a=Lu.internal.Bezier_C,r=Number((i*a).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+nu(Lu.internal.getWidth(e)/2)+" "+nu(Lu.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+r+" "+r+" "+i+" 0 "+i+" c"),n.push("-"+r+" "+i+" -"+i+" "+r+" -"+i+" 0 c"),n.push("-"+i+" -"+r+" -"+r+" -"+i+" 0 -"+i+" c"),n.push(r+" -"+i+" "+i+" -"+r+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=ru(e);t.scope=e.scope;var n=[],i=Lu.internal.getWidth(e)<=Lu.internal.getHeight(e)?Lu.internal.getWidth(e)/4:Lu.internal.getHeight(e)/4;i=Number((.9*i).toFixed(5));var a=Number((2*i).toFixed(5)),r=Number((a*Lu.internal.Bezier_C).toFixed(5)),s=Number((i*Lu.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+nu(Lu.internal.getWidth(e)/2)+" "+nu(Lu.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+r+" "+r+" "+a+" 0 "+a+" c"),n.push("-"+r+" "+a+" -"+a+" "+r+" -"+a+" 0 c"),n.push("-"+a+" -"+r+" -"+r+" -"+a+" 0 -"+a+" c"),n.push(r+" -"+a+" "+a+" -"+r+" "+a+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+nu(Lu.internal.getWidth(e)/2)+" "+nu(Lu.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),n.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),n.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),n.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=ru(e);t.scope=e.scope;var n=[],i=Lu.internal.getWidth(e)<=Lu.internal.getHeight(e)?Lu.internal.getWidth(e)/4:Lu.internal.getHeight(e)/4;i=Number((.9*i).toFixed(5));var a=Number((2*i).toFixed(5)),r=Number((a*Lu.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+nu(Lu.internal.getWidth(e)/2)+" "+nu(Lu.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+r+" "+r+" "+a+" 0 "+a+" c"),n.push("-"+r+" "+a+" -"+a+" "+r+" -"+a+" 0 c"),n.push("-"+a+" -"+r+" -"+r+" -"+a+" 0 -"+a+" c"),n.push(r+" -"+a+" "+a+" -"+r+" "+a+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Lu.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Lu.RadioButton.Cross.YesNormal,t.D[e]=Lu.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=ru(e);t.scope=e.scope;var n=[],i=Lu.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+tu(Lu.internal.getWidth(e)-2)+" "+tu(Lu.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(tu(i.x1.x)+" "+tu(i.x1.y)+" m"),n.push(tu(i.x2.x)+" "+tu(i.x2.y)+" l"),n.push(tu(i.x4.x)+" "+tu(i.x4.y)+" m"),n.push(tu(i.x3.x)+" "+tu(i.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=ru(e);t.scope=e.scope;var n=Lu.internal.calculateCross(e),i=[];return i.push("0.749023 g"),i.push("0 0 "+tu(Lu.internal.getWidth(e))+" "+tu(Lu.internal.getHeight(e))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+tu(Lu.internal.getWidth(e)-2)+" "+tu(Lu.internal.getHeight(e)-2)+" re"),i.push("W"),i.push("n"),i.push(tu(n.x1.x)+" "+tu(n.x1.y)+" m"),i.push(tu(n.x2.x)+" "+tu(n.x2.y)+" l"),i.push(tu(n.x4.x)+" "+tu(n.x4.y)+" m"),i.push(tu(n.x3.x)+" "+tu(n.x3.y)+" l"),i.push("s"),i.push("Q"),t.stream=i.join("\n"),t},OffPushDown:function(e){var t=ru(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+tu(Lu.internal.getWidth(e))+" "+tu(Lu.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};Lu.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Lu.internal.getWidth(e),n=Lu.internal.getHeight(e),i=Math.min(t,n);return{x1:{x:(t-i)/2,y:(n-i)/2+i},x2:{x:(t-i)/2+i,y:(n-i)/2},x3:{x:(t-i)/2,y:(n-i)/2},x4:{x:(t-i)/2+i,y:(n-i)/2+i}}}},Lu.internal.getWidth=function(e){var t=0;return"object"===p(e)&&(t=au(e.Rect[2])),t},Lu.internal.getHeight=function(e){var t=0;return"object"===p(e)&&(t=au(e.Rect[3])),t};var Uu=Xc.addField=function(e){if(function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(ju.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(mu)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Jc=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new wu,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){var t;(t=e).internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})),e.internal.events.subscribe("buildDocument",(function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];i.objId=void 0,i.hasAnnotation&&vu(i,e)}}(e)})),e.internal.events.subscribe("putCatalog",(function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)})),e.internal.events.subscribe("postPutPages",(function(t){!function(e,t){var n=!e;for(var i in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(i)){var a=e[i],r=[],s=a.Rect;if(a.Rect&&(a.Rect=pu(a.Rect,t)),t.internal.newObjectDeferredBegin(a.objId,!0),a.DA=Lu.createDefaultAppearanceStream(a),"object"===p(a)&&"function"==typeof a.getKeyValueListForStream&&(r=a.getKeyValueListForStream()),a.Rect=s,a.hasAppearanceStream&&!a.appearanceStreamContent){var l=Au(a);r.push({key:"AP",value:"<</N "+l+">>"}),t.internal.acroformPlugin.xForms.push(l)}if(a.appearanceStreamContent){var o="";for(var d in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(d)){var c=a.appearanceStreamContent[d];if(o+="/"+d+" ",o+="<<",Object.keys(c).length>=1||Array.isArray(c)){for(var i in c)if(c.hasOwnProperty(i)){var u=c[i];"function"==typeof u&&(u=u.call(t,a)),o+="/"+i+" "+u+" ",t.internal.acroformPlugin.xForms.indexOf(u)>=0||t.internal.acroformPlugin.xForms.push(u)}}else"function"==typeof(u=c)&&(u=u.call(t,a)),o+="/"+i+" "+u,t.internal.acroformPlugin.xForms.indexOf(u)>=0||t.internal.acroformPlugin.xForms.push(u);o+=">>"}r.push({key:"AP",value:"<<\n"+o+">>"})}t.internal.putStream({additionalKeyValues:r,objectId:a.objId}),t.internal.out("endobj")}n&&function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=n,a=e[n];t.internal.newObjectDeferredBegin(a.objId,!0),"object"===p(a)&&"function"==typeof a.putStream&&a.putStream(),delete e[i]}}(t.internal.acroformPlugin.xForms,t)}(t,e)})),e.internal.acroformPlugin.isInitialized=!0}}(this,e),!(e instanceof ju))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Xc.AcroFormChoiceField=Cu,Xc.AcroFormListBox=Su,Xc.AcroFormComboBox=Nu,Xc.AcroFormEditBox=Iu,Xc.AcroFormButton=Fu,Xc.AcroFormPushButton=Bu,Xc.AcroFormRadioButton=Pu,Xc.AcroFormCheckBox=Tu,Xc.AcroFormTextField=Eu,Xc.AcroFormPasswordField=Du,Xc.AcroFormAppearance=Lu,Xc.AcroForm={ChoiceField:Cu,ListBox:Su,ComboBox:Nu,EditBox:Iu,Button:Fu,PushButton:Bu,RadioButton:Pu,CheckBox:Tu,TextField:Eu,PasswordField:Du,Appearance:Lu},$c.AcroForm={ChoiceField:Cu,ListBox:Su,ComboBox:Nu,EditBox:Iu,Button:Fu,PushButton:Bu,RadioButton:Pu,CheckBox:Tu,TextField:Eu,PasswordField:Du,Appearance:Lu};var _u,Ou,Mu=$c.AcroForm;function Ru(e){return e.reduce((function(e,t,n){return e[t]=n,e}),{})}!function(e){var t="addImage_";e.__addimage__={};var n="UNKNOWN",i={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=e.__addimage__.getImageFileTypeByImageData=function(e,t){var a,r,s,l,o,d=n;if("RGBA"===(t=t||n)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(j(e))for(o in i)for(s=i[o],a=0;a<s.length;a+=1){for(l=!0,r=0;r<s[a].length;r+=1)if(void 0!==s[a][r]&&s[a][r]!==e[r]){l=!1;break}if(!0===l){d=o;break}}else for(o in i)for(s=i[o],a=0;a<s.length;a+=1){for(l=!0,r=0;r<s[a].length;r+=1)if(void 0!==s[a][r]&&s[a][r]!==e.charCodeAt(r)){l=!1;break}if(!0===l){d=o;break}}return d===n&&t!==n&&(d=t),d},r=function e(t){for(var n=this.internal.write,i=this.internal.putStream,a=(0,this.internal.getFilters)();-1!==a.indexOf("FlateEncode");)a.splice(a.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var r=[];if(r.push({key:"Type",value:"/XObject"}),r.push({key:"Subtype",value:"/Image"}),r.push({key:"Width",value:t.width}),r.push({key:"Height",value:t.height}),t.colorSpace===g.INDEXED?r.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(r.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===g.DEVICE_CMYK&&r.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),r.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&r.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)&&t.transparency.length>0){for(var s="",l=0,o=t.transparency.length;l<o;l++)s+=t.transparency[l]+" "+t.transparency[l]+" ";r.push({key:"Mask",value:"["+s+"]"})}void 0!==t.sMask&&r.push({key:"SMask",value:t.objectId+1+" 0 R"});var d=void 0!==t.filter?["/"+t.filter]:void 0;if(i({data:t.data,additionalKeyValues:r,alreadyAppliedFilters:d,objectId:t.objectId}),n("endobj"),"sMask"in t&&void 0!==t.sMask){var c,u=null!==(c=t.sMaskBitsPerComponent)&&void 0!==c?c:t.bitsPerComponent,p={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:u,data:t.sMask};"filter"in t&&(p.decodeParameters="/Predictor ".concat(t.predictor," /Colors 1 /BitsPerComponent ").concat(u," /Columns ").concat(t.width),p.filter=t.filter),e.call(this,p)}if(t.colorSpace===g.INDEXED){var A=this.internal.newObject();i({data:S(new Uint8Array(t.palette)),objectId:A}),n("endobj")}},s=function(){var e=this.internal.collections[t+"images"];for(var n in e)r.call(this,e[n])},l=function(){var e,n=this.internal.collections[t+"images"],i=this.internal.write;for(var a in n)i("/I"+(e=n[a]).index,e.objectId,"0","R")},o=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",l))},d=function(){var e=this.internal.collections[t+"images"];return o.call(this),e},c=function(){return Object.keys(this.internal.collections[t+"images"]).length},u=function(t){return"function"==typeof e["process"+t.toUpperCase()]},A=function(e){return"object"===p(e)&&1===e.nodeType},h=function(t,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var i=""+t.getAttribute("src");if(0===i.indexOf("data:image/"))return Sc(unescape(i).split("base64,").pop());var a=e.loadFile(i,!0);if(void 0!==a)return a}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var r;switch(n){case"PNG":r="image/png";break;case"WEBP":r="image/webp";break;default:r="image/jpeg"}return Sc(t.toDataURL(r,1).split("base64,").pop())}},f=function(e){var n=this.internal.collections[t+"images"];if(n)for(var i in n)if(e===n[i].alias)return n[i]},m=function(e,t,n){return e||t||(e=-96,t=-96),e<0&&(e=-1*n.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.height*72/t/this.internal.scaleFactor),0===e&&(e=t*n.width/n.height),0===t&&(t=e*n.height/n.width),[e,t]},v=function(e,t,n,i,a,r){var s=m.call(this,n,i,a),l=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,c=d.call(this);if(n=s[0],i=s[1],c[a.index]=a,r){r*=Math.PI/180;var u=Math.cos(r),p=Math.sin(r),A=function(e){return e.toFixed(4)},h=[A(u),A(p),A(-1*p),A(u),0,0,"cm"]}this.internal.write("q"),r?(this.internal.write([1,"0","0",1,l(e),o(t+i),"cm"].join(" ")),this.internal.write(h.join(" ")),this.internal.write([l(n),"0","0",l(i),"0","0","cm"].join(" "))):this.internal.write([l(n),"0","0",l(i),l(e),o(t+i),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+a.index+" Do"),this.internal.write("Q")},g=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},x=e.__addimage__.sHashCode=function(e){var t,n,i=0;if("string"==typeof e)for(n=e.length,t=0;t<n;t++)i=(i<<5)-i+e.charCodeAt(t),i|=0;else if(j(e))for(n=e.byteLength/2,t=0;t<n;t++)i=(i<<5)-i+e[t],i|=0;return i},b=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},w=e.__addimage__.extractImageFromDataUrl=function(e){if(null==e)return null;if(!(e=e.trim()).startsWith("data:"))return null;var t=e.indexOf(",");return t<0?null:e.substring(0,t).trim().endsWith("base64")?e.substring(t+1):null};e.__addimage__.isArrayBuffer=function(e){return e instanceof ArrayBuffer};var j=e.__addimage__.isArrayBufferView=function(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array},C=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),i=0;i<t;i++)n[i]=e.charCodeAt(i);return n},S=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t="",n=j(e)?e:new Uint8Array(e),i=0;i<n.length;i+=8192)t+=String.fromCharCode.apply(null,n.subarray(i,i+8192));return t};e.addImage=function(){var e,t,i,a,r,s,l,d,c;if("number"==typeof arguments[1]?(t=n,i=arguments[1],a=arguments[2],r=arguments[3],s=arguments[4],l=arguments[5],d=arguments[6],c=arguments[7]):(t=arguments[1],i=arguments[2],a=arguments[3],r=arguments[4],s=arguments[5],l=arguments[6],d=arguments[7],c=arguments[8]),"object"===p(e=arguments[0])&&!A(e)&&"imageData"in e){var u=e;e=u.imageData,t=u.format||t||n,i=u.x||i||0,a=u.y||a||0,r=u.w||u.width||r,s=u.h||u.height||s,l=u.alias||l,d=u.compression||d,c=u.rotation||u.angle||c}var h=this.internal.getFilters();if(void 0===d&&-1!==h.indexOf("FlateEncode")&&(d="SLOW"),isNaN(i)||isNaN(a))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var f=N.call(this,e,t,l,d);return v.call(this,i,a,r,s,f,c),this};var N=function(t,i,r,s){var l,o,d,p;if("string"==typeof t&&a(t)===n){t=unescape(t);var m=I(t,!1);(""!==m||void 0!==(m=e.loadFile(t,!0)))&&(t=m)}if(A(t)&&(t=h(t,i)),i=a(t,i),!u(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if((null==(d=r)||0===d.length)&&(r="string"==typeof(p=t)||j(p)?x(p):j(p.data)?x(p.data):null),(l=f.call(this,r))||(t instanceof Uint8Array||"RGBA"===i||(o=t,t=C(t)),l=this["process"+i.toUpperCase()](t,c.call(this),r,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:y.NONE}(s),o)),!l)throw new Error("An unknown error occurred whilst processing the image.");return l},I=e.__addimage__.convertBase64ToBinaryString=function(e,t){t="boolean"!=typeof t||t;var n,i="";if("string"==typeof e){var a;n=null!==(a=w(e))&&void 0!==a?a:e;try{i=Sc(n)}catch(r){if(t)throw b(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+r.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i};e.getImageProperties=function(t){var i,r,s="";if(A(t)&&(t=h(t)),"string"==typeof t&&a(t)===n&&(""===(s=I(t,!1))&&(s=e.loadFile(t)||""),t=s),r=a(t),!u(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(t instanceof Uint8Array||(t=C(t)),!(i=this["process"+r.toUpperCase()](t)))throw new Error("An unknown error occurred whilst processing the image");return i.fileType=r,i}}($c.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
_u=$c.API,Ou=function(e){if(void 0!==e&&""!=e)return!0},$c.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),_u.events.push(["putPage",function(e){for(var t,n,i,a=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(e.objId),l=e.pageContext.annotations,o=!1,d=0;d<l.length&&!o;d++)switch((t=l[d]).type){case"link":(Ou(t.options.url)||Ou(t.options.pageNumber))&&(o=!0);break;case"reference":case"text":case"freetext":o=!0}if(0!=o){this.internal.write("/Annots [");for(var c=0;c<l.length;c++){t=l[c];var u=this.internal.pdfEscape,p=this.internal.getEncryptor(e.objId);switch(t.type){case"reference":this.internal.write(" "+t.object.objId+" 0 R ");break;case"text":var A=this.internal.newAdditionalObject(),h=this.internal.newAdditionalObject(),f=this.internal.getEncryptor(A.objId),m=t.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+a(t.bounds.x)+" "+r(t.bounds.y+t.bounds.h)+" "+a(t.bounds.x+t.bounds.w)+" "+r(t.bounds.y)+"] ")+"/Contents ("+u(f(t.contents))+")",i+=" /Popup "+h.objId+" 0 R",i+=" /P "+s.objId+" 0 R",i+=" /T ("+u(f(m))+") >>",A.content=i;var v=A.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+a(t.bounds.x+30)+" "+r(t.bounds.y+t.bounds.h)+" "+a(t.bounds.x+t.bounds.w+30)+" "+r(t.bounds.y)+"] ")+" /Parent "+v,t.open&&(i+=" /Open true"),i+=" >>",h.content=i,this.internal.write(A.objId,"0 R",h.objId,"0 R");break;case"freetext":n="/Rect ["+a(t.bounds.x)+" "+r(t.bounds.y)+" "+a(t.bounds.x+t.bounds.w)+" "+r(t.bounds.y+t.bounds.h)+"] ";var g=t.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+u(p(t.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+g+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(t.options.name){var y=this.annotations._nameMap[t.options.name];t.options.pageNumber=y.page,t.options.top=y.y}else t.options.top||(t.options.top=0);if(n="/Rect ["+t.finalBounds.x+" "+t.finalBounds.y+" "+t.finalBounds.w+" "+t.finalBounds.h+"] ",i="",t.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+u(p(t.options.url))+") >>";else if(t.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(t.options.pageNumber).objId+" 0 R",t.options.magFactor=t.options.magFactor||"XYZ",t.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+t.options.top+"]";break;case"FitV":t.options.left=t.options.left||0,i+=" /FitV "+t.options.left+"]";break;default:var x=r(t.options.top);t.options.left=t.options.left||0,void 0===t.options.zoom&&(t.options.zoom=0),i+=" /XYZ "+t.options.left+" "+x+" "+t.options.zoom+"]"}""!=i&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),_u.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},_u.link=function(e,t,n,i,a){var r=this.internal.getCurrentPageInfo(),s=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;r.pageContext.annotations.push({finalBounds:{x:s(e),y:l(t),w:s(e+n),h:l(t+i)},options:a,type:"link"})},_u.textWithLink=function(e,t,n,i){var a,r,s=this.getTextWidth(e),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==i.maxWidth){r=i.maxWidth;var o=this.splitTextToSize(e,r).length;a=Math.ceil(l*o)}else r=s,a=l;return this.text(e,t,n,i),n+=.2*l,"center"===i.align&&(t-=s/2),"right"===i.align&&(t-=s),this.link(t,n-l,r,a,i),s},_u.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];e.__arabicParser__={};var r=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},s=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},l=e.__arabicParser__.isArabicEndLetter=function(e){return s(e)&&r(e)&&t[e.charCodeAt(0)].length<=2},o=e.__arabicParser__.isArabicAlfLetter=function(e){return s(e)&&a.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return s(e)&&r(e)&&t[e.charCodeAt(0)].length>=1};var d=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return s(e)&&r(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return s(e)&&r(e)&&t[e.charCodeAt(0)].length>=3};var c=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return s(e)&&r(e)&&4==t[e.charCodeAt(0)].length},u=e.__arabicParser__.resolveLigatures=function(e){var t=0,i=n,a="",r=0;for(t=0;t<e.length;t+=1)void 0!==i[e.charCodeAt(t)]?(r++,"number"==typeof(i=i[e.charCodeAt(t)])&&(a+=String.fromCharCode(i),i=n,r=0),t===e.length-1&&(i=n,a+=e.charAt(t-(r-1)),t-=r-1,r=0)):(i=n,a+=e.charAt(t-r),t-=r,r=0);return a};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==i[e.charCodeAt(0)]};var p=e.__arabicParser__.getCorrectForm=function(e,t,n){return s(e)?!1===r(e)?-1:!d(e)||!s(t)&&!s(n)||!s(n)&&l(t)||l(e)&&!s(t)||l(e)&&o(t)||l(e)&&l(t)?0:c(e)&&s(t)&&!l(t)&&s(n)&&d(n)?3:l(e)||!s(n)?1:2:-1},A=function(e){var n=0,i=0,a=0,r="",l="",o="",d=(e=e||"").split("\\s+"),c=[];for(n=0;n<d.length;n+=1){for(c.push(""),i=0;i<d[n].length;i+=1)r=d[n][i],l=d[n][i-1],o=d[n][i+1],s(r)?(a=p(r,l,o),c[n]+=-1!==a?String.fromCharCode(t[r.charCodeAt(0)][a]):r):c[n]+=r;c[n]=u(c[n])}return c.join(" ")},h=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(t)){var i=0;for(n=[],i=0;i<t.length;i+=1)Array.isArray(t[i])?n.push([A(t[i][0]),t[i][1],t[i][2]]):n.push([A(t[i])]);e=n}else e=A(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",h])}($c.API),$c.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform","javascript"===e.variant?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))),this},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(e){i=e}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(e){a=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var n;if("2d"!==(e=e||"2d"))return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}($c.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,i=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new r,this.internal.__cell__.pages=1},r=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var i=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var a=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return a},set:function(e){a=e}});var r=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var s=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return s},set:function(e){s=e}}),this};r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},r.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return i.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){i.call(this);var n=(t=t||{}).fontSize||this.getFontSize(),a=t.font||this.getFont(),r=t.scaleFactor||this.internal.scaleFactor,s=0,l=0,o=0,d=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}var c=t.maxWidth;c>0?"string"==typeof e?e=this.splitTextToSize(e,c):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(d.splitTextToSize(t,c))}),[])):e=Array.isArray(e)?e:[e];for(var u=0;u<e.length;u++)s<(o=this.getStringUnitWidth(e[u],{font:a})*n)&&(s=o);return 0!==s&&(l=e.length),{w:s/=r,h:Math.max((l*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/r,0)}},e.cellAddPage=function(){i.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new r(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var e;e=arguments[0]instanceof r?arguments[0]:new r(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),i.call(this);var a=this.internal.__cell__.lastCell,s=this.internal.__cell__.padding,l=this.internal.__cell__.margins||t,o=this.internal.__cell__.tableHeaderRow,d=this.internal.__cell__.printHeaders;return void 0!==a.lineNumber&&(a.lineNumber===e.lineNumber?(e.x=(a.x||0)+(a.width||0),e.y=a.y||0):a.y+a.height+e.height+l.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=l.top,d&&o&&(this.printHeaderRow(e.lineNumber,!0),e.y+=o[0].height)):e.y=a.y+a.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===n?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-s,e.y+s,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+s,{align:"center",baseline:"top",maxWidth:e.width-s-s}):this.text(e.text,e.x+s,e.y+s,{align:"left",baseline:"top",maxWidth:e.width-s-s})),this.internal.__cell__.lastCell=e,this};e.table=function(e,n,o,d,c){if(i.call(this),!o)throw new Error("No data for PDF table.");var u,A,h,f,m=[],v=[],g=[],y={},x={},b=[],w=[],j=(c=c||{}).autoSize||!1,C=!1!==c.printHeaders,S=c.css&&void 0!==c.css["font-size"]?16*c.css["font-size"]:c.fontSize||12,N=c.margins||Object.assign({width:this.getPageWidth()},t),I="number"==typeof c.padding?c.padding:3,F=c.headerBackgroundColor||"#c8c8c8",B=c.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=C,this.internal.__cell__.margins=N,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=I,this.internal.__cell__.headerBackgroundColor=F,this.internal.__cell__.headerTextColor=B,this.setFontSize(S),null==d)v=m=Object.keys(o[0]),g=m.map((function(){return"left"}));else if(Array.isArray(d)&&"object"===p(d[0]))for(m=d.map((function(e){return e.name})),v=d.map((function(e){return e.prompt||e.name||""})),g=d.map((function(e){return e.align||"left"})),u=0;u<d.length;u+=1)x[d[u].name]=.7499990551181103*d[u].width;else Array.isArray(d)&&"string"==typeof d[0]&&(v=m=d,g=m.map((function(){return"left"})));if(j||Array.isArray(d)&&"string"==typeof d[0])for(u=0;u<m.length;u+=1){for(y[f=m[u]]=o.map((function(e){return e[f]})),this.setFont(void 0,"bold"),b.push(this.getTextDimensions(v[u],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),A=y[f],this.setFont(void 0,"normal"),h=0;h<A.length;h+=1)b.push(this.getTextDimensions(A[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);x[f]=Math.max.apply(null,b)+I+I,b=[]}if(C){var P={};for(u=0;u<m.length;u+=1)P[m[u]]={},P[m[u]].text=v[u],P[m[u]].align=g[u];var k=l.call(this,P,x);w=m.map((function(t){return new r(e,n,x[t],k,P[t].text,void 0,P[t].align)})),this.setTableHeaderRow(w),this.printHeaderRow(1,!1)}var T=d.reduce((function(e,t){return e[t.name]=t.align,e}),{});for(u=0;u<o.length;u+=1){"rowStart"in c&&c.rowStart instanceof Function&&c.rowStart({row:u,data:o[u]},this);var E=l.call(this,o[u],x);for(h=0;h<m.length;h+=1){var D=o[u][m[h]];"cellStart"in c&&c.cellStart instanceof Function&&c.cellStart({row:u,col:h,data:D},this),s.call(this,new r(e,n,x[m[h]],E,D,u+2,T[m[h]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=n,this};var l=function(e,t){var n=this.internal.__cell__.padding,i=this.internal.__cell__.table_font_size,a=this.internal.scaleFactor;return Object.keys(e).map((function(i){var a=e[i];return this.splitTextToSize(a.hasOwnProperty("text")?a.text:a,t[i]-n-n)}),this).map((function(e){return this.getLineHeightFactor()*e.length*i/a+n+n}),this).reduce((function(e,t){return Math.max(e,t)}),0)};e.setTableHeaderRow=function(e){i.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var a;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var l=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new r(l[0],l[1],l[2],l[3],void 0,-1)}this.setFont(void 0,"bold");for(var o=[],d=0;d<this.internal.__cell__.tableHeaderRow.length;d+=1){a=this.internal.__cell__.tableHeaderRow[d].clone(),t&&(a.y=this.internal.__cell__.margins.top||0,o.push(a)),a.lineNumber=e;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,a),this.setTextColor(c)}o.length>0&&this.setTableHeaderRow(o),this.setFont(void 0,"normal"),n=!1}}($c.API);var Qu={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Hu=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Vu=Ru(Hu),zu=[100,200,300,400,500,600,700,800,900],qu=Ru(zu);function Wu(e){var t,n=e.family.replace(/"|'/g,"").toLowerCase(),i=(t=e.style,Qu[t=t||"normal"]?t:"normal"),a=function(e){return e?"number"==typeof e?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):"bold"===e?700:400:400}(e.weight),r=function(e){return"number"==typeof Vu[e=e||"normal"]?e:"normal"}(e.stretch);return{family:n,style:i,weight:a,stretch:r,src:e.src||[],ref:e.ref||{name:n,style:[r,i,a].join(" ")}}}function Yu(e,t,n,i){var a;for(a=n;a>=0&&a<t.length;a+=i)if(e[t[a]])return e[t[a]];for(a=n;a>=0&&a<t.length;a-=i)if(e[t[a]])return e[t[a]]}var Ku={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Gu={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function $u(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Xu(e){return e.trimLeft()}function Ju(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function Zu(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var ep,tp,np,ip,ap,rp,sp,lp,op=["times"];function dp(e,t,n,i,a){var r=4,s=pp;switch(a){case $c.API.image_compression.FAST:r=1,s=up;break;case $c.API.image_compression.MEDIUM:r=6,s=Ap;break;case $c.API.image_compression.SLOW:r=9,s=hp}e=function(e,t,n,i){for(var a,r=e.length/t,s=new Uint8Array(e.length+r),l=[cp,up,pp,Ap,hp],o=0;o<r;o+=1){var d=o*t,c=e.subarray(d,d+t);if(i)s.set(i(c,n,a),d+o);else{for(var u=l.length,p=[],A=0;A<u;A+=1)p[A]=l[A](c,n,a);var h=mp(p.concat());s.set(p[h],d+o)}a=c}return s}(e,t,Math.ceil(n*i/8),s);var l=ns(e,{level:r});return $c.API.__addimage__.arrayBufferToBinaryString(l)}function cp(e){var t=Array.apply([],e);return t.unshift(0),t}function up(e,t){var n=e.length,i=[];i[0]=1;for(var a=0;a<n;a+=1){var r=e[a-t]||0;i[a+1]=e[a]-r+256&255}return i}function pp(e,t,n){var i=e.length,a=[];a[0]=2;for(var r=0;r<i;r+=1){var s=n&&n[r]||0;a[r+1]=e[r]-s+256&255}return a}function Ap(e,t,n){var i=e.length,a=[];a[0]=3;for(var r=0;r<i;r+=1){var s=e[r-t]||0,l=n&&n[r]||0;a[r+1]=e[r]+256-(s+l>>>1)&255}return a}function hp(e,t,n){var i=e.length,a=[];a[0]=4;for(var r=0;r<i;r+=1){var s=fp(e[r-t]||0,n&&n[r]||0,n&&n[r-t]||0);a[r+1]=e[r]-s+256&255}return a}function fp(e,t,n){if(e===t&&t===n)return e;var i=Math.abs(t-n),a=Math.abs(e-n),r=Math.abs(e+t-n-n);return i<=a&&i<=r?e:a<=r?t:n}function mp(e){var t=e.map((function(e){return e.reduce((function(e,t){return e+Math.abs(t)}),0)}));return t.indexOf(Math.min.apply(null,t))}function vp(e,t,n){var i=t*n,a=Math.floor(i/8),r=16-(i-8*a+n),s=(1<<n)-1;return yp(e,a)>>r&s}function gp(e,t,n,i){var a=n*i,r=Math.floor(a/8),s=16-(a-8*r+i),l=(1<<i)-1,o=(t&l)<<s;!function(e,t,n){if(t+1<e.byteLength)e.setUint16(t,n,!1);else{var i=n>>8&255;e.setUint8(t,i)}}(e,r,yp(e,r)&~(l<<s)&65535|o)}function yp(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function xp(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,i=e[t++]|e[t++]<<8,a=e[t++],r=a>>7,s=1<<1+(7&a);e[t++],e[t++];var l=null,o=null;r&&(l=t,o=s,t+=3*s);var d=!0,c=[],u=0,p=null,A=0,h=null;for(this.width=n,this.height=i;d&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,h=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var f=e[t++];u=e[t++]|e[t++]<<8,p=e[t++],1&f||(p=null),A=f>>2&7,t++;break;case 254:for(;;){if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var m=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,g=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,x=e[t++],b=x>>6&1,w=1<<1+(7&x),j=l,C=o,S=!1;x>>7&&(S=!0,j=t,C=w,t+=3*w);var N=t;for(t++;;){var I;if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}c.push({x:m,y:v,width:g,height:y,has_local_palette:S,palette_offset:j,palette_size:C,data_offset:N,data_length:t-N,transparent_index:p,interlaced:!!b,delay:u,disposal:A});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return h},this.frameInfo=function(e){if(e<0||e>=c.length)throw new Error("Frame index out of range.");return c[e]},this.decodeAndBlitFrameBGRA=function(t,i){var a=this.frameInfo(t),r=a.width*a.height,s=new Uint8Array(r);bp(e,a.data_offset,s,r);var l=a.palette_offset,o=a.transparent_index;null===o&&(o=256);var d=a.width,c=n-d,u=d,p=4*(a.y*n+a.x),A=4*((a.y+a.height)*n+a.x),h=p,f=4*c;!0===a.interlaced&&(f+=4*n*7);for(var m=8,v=0,g=s.length;v<g;++v){var y=s[v];if(0===u&&(u=d,(h+=f)>=A&&(f=4*c+4*n*(m-1),h=p+(d+c)*(m<<1),m>>=1)),y===o)h+=4;else{var x=e[l+3*y],b=e[l+3*y+1],w=e[l+3*y+2];i[h++]=w,i[h++]=b,i[h++]=x,i[h++]=255}--u}},this.decodeAndBlitFrameRGBA=function(t,i){var a=this.frameInfo(t),r=a.width*a.height,s=new Uint8Array(r);bp(e,a.data_offset,s,r);var l=a.palette_offset,o=a.transparent_index;null===o&&(o=256);var d=a.width,c=n-d,u=d,p=4*(a.y*n+a.x),A=4*((a.y+a.height)*n+a.x),h=p,f=4*c;!0===a.interlaced&&(f+=4*n*7);for(var m=8,v=0,g=s.length;v<g;++v){var y=s[v];if(0===u&&(u=d,(h+=f)>=A&&(f=4*c+4*n*(m-1),h=p+(d+c)*(m<<1),m>>=1)),y===o)h+=4;else{var x=e[l+3*y],b=e[l+3*y+1],w=e[l+3*y+2];i[h++]=x,i[h++]=b,i[h++]=w,i[h++]=255}--u}}}function bp(e,t,n,i){for(var a=e[t++],r=1<<a,s=r+1,l=s+1,o=a+1,d=(1<<o)-1,c=0,u=0,p=0,A=e[t++],h=new Int32Array(4096),f=null;;){for(;c<16&&0!==A;)u|=e[t++]<<c,c+=8,1===A?A=e[t++]:--A;if(c<o)break;var m=u&d;if(u>>=o,c-=o,m!==r){if(m===s)break;for(var v=m<l?m:f,g=0,y=v;y>r;)y=h[y]>>8,++g;var x=y;if(p+g+(v!==m?1:0)>i)return void yc.log("Warning, gif stream longer than expected.");n[p++]=x;var b=p+=g;for(v!==m&&(n[p++]=x),y=v;g--;)y=h[y],n[--b]=255&y,y>>=8;null!==f&&l<4096&&(h[l++]=f<<8|x,l>=d+1&&o<12&&(++o,d=d<<1|1)),f=m}else l=s+1,d=(1<<(o=a+1))-1,f=null}return p!==i&&yc.log("Warning, gif stream shorter than expected."),n
|
||
/**
|
||
* @license
|
||
Copyright (c) 2008, Adobe Systems Incorporated
|
||
All rights reserved.
|
||
|
||
Redistribution and use in source and binary forms, with or without
|
||
modification, are permitted provided that the following conditions are
|
||
met:
|
||
|
||
* Redistributions of source code must retain the above copyright notice,
|
||
this list of conditions and the following disclaimer.
|
||
|
||
* Redistributions in binary form must reproduce the above copyright
|
||
notice, this list of conditions and the following disclaimer in the
|
||
documentation and/or other materials provided with the distribution.
|
||
|
||
* Neither the name of Adobe Systems Incorporated nor the names of its
|
||
contributors may be used to endorse or promote products derived from
|
||
this software without specific prior written permission.
|
||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
*/}function wp(e){var t,n,i,a,r,s=Math.floor,l=new Array(64),o=new Array(64),d=new Array(64),c=new Array(64),u=new Array(65535),p=new Array(65535),A=new Array(64),h=new Array(64),f=[],m=0,v=7,g=new Array(64),y=new Array(64),x=new Array(64),b=new Array(256),w=new Array(2048),j=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],C=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],N=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],F=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],B=[0,1,2,3,4,5,6,7,8,9,10,11],P=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],k=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function T(e,t){for(var n=0,i=0,a=new Array,r=1;r<=16;r++){for(var s=1;s<=e[r];s++)a[t[i]]=[],a[t[i]][0]=n,a[t[i]][1]=r,i++,n++;n*=2}return a}function E(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(m|=1<<v),n--,--v<0&&(255==m?(D(255),D(0)):D(m),v=7,m=0)}function D(e){f.push(e)}function L(e){D(e>>8&255),D(255&e)}function U(e,t,n,i,a){for(var r,s=a[0],l=a[240],o=function(e,t){var n,i,a,r,s,l,o,d,c,u,p=0;for(c=0;c<8;++c){n=e[p],i=e[p+1],a=e[p+2],r=e[p+3],s=e[p+4],l=e[p+5],o=e[p+6];var h=n+(d=e[p+7]),f=n-d,m=i+o,v=i-o,g=a+l,y=a-l,x=r+s,b=r-s,w=h+x,j=h-x,C=m+g,S=m-g;e[p]=w+C,e[p+4]=w-C;var N=.707106781*(S+j);e[p+2]=j+N,e[p+6]=j-N;var I=.382683433*((w=b+y)-(S=v+f)),F=.5411961*w+I,B=1.306562965*S+I,P=.707106781*(C=y+v),k=f+P,T=f-P;e[p+5]=T+F,e[p+3]=T-F,e[p+1]=k+B,e[p+7]=k-B,p+=8}for(p=0,c=0;c<8;++c){n=e[p],i=e[p+8],a=e[p+16],r=e[p+24],s=e[p+32],l=e[p+40],o=e[p+48];var E=n+(d=e[p+56]),D=n-d,L=i+o,U=i-o,_=a+l,O=a-l,M=r+s,R=r-s,Q=E+M,H=E-M,V=L+_,z=L-_;e[p]=Q+V,e[p+32]=Q-V;var q=.707106781*(z+H);e[p+16]=H+q,e[p+48]=H-q;var W=.382683433*((Q=R+O)-(z=U+D)),Y=.5411961*Q+W,K=1.306562965*z+W,G=.707106781*(V=O+U),$=D+G,X=D-G;e[p+40]=X+Y,e[p+24]=X-Y,e[p+8]=$+K,e[p+56]=$-K,p++}for(c=0;c<64;++c)u=e[c]*t[c],A[c]=u>0?u+.5|0:u-.5|0;return A}(e,t),d=0;d<64;++d)h[j[d]]=o[d];var c=h[0]-n;n=h[0],0==c?E(i[0]):(E(i[p[r=32767+c]]),E(u[r]));for(var f=63;f>0&&0==h[f];)f--;if(0==f)return E(s),n;for(var m,v=1;v<=f;){for(var g=v;0==h[v]&&v<=f;)++v;var y=v-g;if(y>=16){m=y>>4;for(var x=1;x<=m;++x)E(l);y&=15}r=32767+h[v],E(a[(y<<4)+p[r]]),E(u[r]),v++}return 63!=f&&E(s),n}function _(e){e=Math.min(Math.max(e,1),100),r!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var i=s((t[n]*e+50)/100);i=Math.min(Math.max(i,1),255),l[j[n]]=i}for(var a=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],r=0;r<64;r++){var u=s((a[r]*e+50)/100);u=Math.min(Math.max(u,1),255),o[j[r]]=u}for(var p=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],A=0,h=0;h<8;h++)for(var f=0;f<8;f++)d[A]=1/(l[j[A]]*p[h]*p[f]*8),c[A]=1/(o[j[A]]*p[h]*p[f]*8),A++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),r=e)}this.encode=function(e,r){var s,u;r&&_(r),f=new Array,m=0,v=7,L(65496),L(65504),L(16),D(74),D(70),D(73),D(70),D(0),D(1),D(1),D(0),L(1),L(1),D(0),D(0),function(){L(65499),L(132),D(0);for(var e=0;e<64;e++)D(l[e]);D(1);for(var t=0;t<64;t++)D(o[t])}(),s=e.width,u=e.height,L(65472),L(17),D(8),L(u),L(s),D(3),D(1),D(17),D(0),D(2),D(17),D(1),D(3),D(17),D(1),function(){L(65476),L(418),D(0);for(var e=0;e<16;e++)D(C[e+1]);for(var t=0;t<=11;t++)D(S[t]);D(16);for(var n=0;n<16;n++)D(N[n+1]);for(var i=0;i<=161;i++)D(I[i]);D(1);for(var a=0;a<16;a++)D(F[a+1]);for(var r=0;r<=11;r++)D(B[r]);D(17);for(var s=0;s<16;s++)D(P[s+1]);for(var l=0;l<=161;l++)D(k[l])}(),L(65498),L(12),D(3),D(1),D(0),D(2),D(17),D(3),D(17),D(0),D(63),D(0);var p=0,A=0,h=0;m=0,v=7,this.encode.displayName="_encode_";for(var b,j,T,O,M,R,Q,H,V,z=e.data,q=e.width,W=e.height,Y=4*q,K=0;K<W;){for(b=0;b<Y;){for(M=Y*K+b,Q=-1,H=0,V=0;V<64;V++)R=M+(H=V>>3)*Y+(Q=4*(7&V)),K+H>=W&&(R-=Y*(K+1+H-W)),b+Q>=Y&&(R-=b+Q-Y+4),j=z[R++],T=z[R++],O=z[R++],g[V]=(w[j]+w[T+256|0]+w[O+512|0]>>16)-128,y[V]=(w[j+768|0]+w[T+1024|0]+w[O+1280|0]>>16)-128,x[V]=(w[j+1280|0]+w[T+1536|0]+w[O+1792|0]>>16)-128;p=U(g,d,p,t,i),A=U(y,c,A,n,a),h=U(x,c,h,n,a),b+=32}K+=8}if(v>=0){var G=[];G[1]=v+1,G[0]=(1<<v+1)-1,E(G)}return L(65497),new Uint8Array(f)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)b[t]=e(t)}(),t=T(C,S),n=T(F,B),i=T(N,I),a=T(P,k),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var i=e;i<t;i++)p[32767+i]=n,u[32767+i]=[],u[32767+i][1]=n,u[32767+i][0]=i;for(var a=-(t-1);a<=-e;a++)p[32767+a]=n,u[32767+a]=[],u[32767+a][1]=n,u[32767+a][0]=t-1+a;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)w[e]=19595*e,w[e+256|0]=38470*e,w[e+512|0]=7471*e+32768,w[e+768|0]=-11059*e,w[e+1024|0]=-21709*e,w[e+1280|0]=32768*e+8421375,w[e+1536|0]=-27439*e,w[e+1792|0]=-5329*e}(),_(e)}
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/function jp(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Cp(e){function t(e){if(!e)throw Error("assert :P")}function n(e,t,n){for(var i=0;4>i;i++)if(e[t+i]!=n.charCodeAt(i))return!0;return!1}function i(e,t,n,i,a){for(var r=0;r<a;r++)e[t+r]=n[i+r]}function a(e,t,n,i){for(var a=0;a<i;a++)e[t+a]=n}function r(e){return new Int32Array(e)}function s(e,t){for(var n=[],i=0;i<e;i++)n.push(new t);return n}function l(e,t){var n=[];return function e(n,i,a){for(var r=a[i],s=0;s<r&&(n.push(a.length>i+1?[]:new t),!(a.length<i+1));s++)e(n[s],i+1,a)}(n,0,e),n}var o=function(){var e=this;function o(e,t){for(var n=1<<t-1>>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function d(e,n,i,a,r){t(!(a%i));do{e[n+(a-=i)]=r}while(0<a)}function c(e,n,i,a,s){if(t(2328>=s),512>=s)var l=r(512);else if(null==(l=r(s)))return 0;return function(e,n,i,a,s,l){var c,p,A=n,h=1<<i,f=r(16),m=r(16);for(t(0!=s),t(null!=a),t(null!=e),t(0<i),p=0;p<s;++p){if(15<a[p])return 0;++f[a[p]]}if(f[0]==s)return 0;for(m[1]=0,c=1;15>c;++c){if(f[c]>1<<c)return 0;m[c+1]=m[c]+f[c]}for(p=0;p<s;++p)c=a[p],0<a[p]&&(l[m[c]++]=p);if(1==m[15])return(a=new u).g=0,a.value=l[0],d(e,A,1,h,a),h;var v,g=-1,y=h-1,x=0,b=1,w=1,j=1<<i;for(p=0,c=1,s=2;c<=i;++c,s<<=1){if(b+=w<<=1,0>(w-=f[c]))return 0;for(;0<f[c];--f[c])(a=new u).g=c,a.value=l[p++],d(e,A+x,s,j,a),x=o(x,c)}for(c=i+1,s=2;15>=c;++c,s<<=1){if(b+=w<<=1,0>(w-=f[c]))return 0;for(;0<f[c];--f[c]){if(a=new u,(x&y)!=g){for(A+=j,v=1<<(g=c)-i;15>g&&!(0>=(v-=f[g]));)++g,v<<=1;h+=j=1<<(v=g-i),e[n+(g=x&y)].g=v+i,e[n+g].value=A-n-g}a.g=c-i,a.value=l[p++],d(e,A+(x>>i),s,j,a),x=o(x,c)}}return b!=2*m[15]-1?0:h}(e,n,i,a,s,l)}function u(){this.value=this.g=0}function p(){this.value=this.g=0}function A(){this.G=s(5,u),this.H=r(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(On,p)}function h(e,n,i,a){t(null!=e),t(null!=n),t(2147483648>a),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=n,e.pa=i,e.Jd=n,e.Yc=i+a,e.Zc=4<=a?i+a-4+1:i,N(e)}function f(e,t){for(var n=0;0<t--;)n|=F(e,128)<<t;return n}function m(e,t){var n=f(e,t);return I(e)?-n:n}function v(e,n,i,a){var r,s=0;for(t(null!=e),t(null!=n),t(4294967288>a),e.Sb=a,e.Ra=0,e.u=0,e.h=0,4<a&&(a=4),r=0;r<a;++r)s+=n[i+r]<<8*r;e.Ra=s,e.bb=a,e.oa=n,e.pa=i}function g(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<Qn-8>>>0,++e.bb,e.u-=8;j(e)&&(e.h=1,e.u=0)}function y(e,n){if(t(0<=n),!e.h&&n<=Rn){var i=w(e)&Mn[n];return e.u+=n,g(e),i}return e.h=1,e.u=0}function x(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function b(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function w(e){return e.Ra>>>(e.u&Qn-1)>>>0}function j(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>Qn}function C(e,t){e.u=t,e.h=j(e)}function S(e){e.u>=Hn&&(t(e.u>=Hn),g(e))}function N(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function I(e){return f(e,1)}function F(e,t){var n=e.Ca;0>e.b&&N(e);var i=e.b,a=n*t>>>8,r=(e.I>>>i>a)+0;for(r?(n-=a,e.I-=a+1<<i>>>0):n=a+1,i=n,a=0;256<=i;)a+=8,i>>=8;return i=7^a+Vn[i],e.b-=i,e.Ca=(n<<i)-1,r}function B(e,t,n){e[t+0]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function P(e,t){return e[t+0]|e[t+1]<<8}function k(e,t){return P(e,t)|e[t+2]<<16}function T(e,t){return P(e,t)|P(e,t+2)<<16}function E(e,n){var i=1<<n;return t(null!=e),t(0<n),e.X=r(i),null==e.X?0:(e.Mb=32-n,e.Xa=n,1)}function D(e,n){t(null!=e),t(null!=n),t(e.Xa==n.Xa),i(n.X,0,e.X,0,1<<n.Xa)}function L(){this.X=[],this.Xa=this.Mb=0}function U(e,n,i,a){t(null!=i),t(null!=a);var r=i[0],s=a[0];return 0==r&&(r=(e*s+n/2)/n),0==s&&(s=(n*r+e/2)/e),0>=r||0>=s?0:(i[0]=r,a[0]=s,1)}function _(e,t){return e+(1<<t)-1>>>t}function O(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function M(t,n){e[n]=function(n,i,a,r,s,l,o){var d;for(d=0;d<s;++d){var c=e[t](l[o+d-1],a,r+d);l[o+d]=O(n[i+d],c)}}}function R(){this.ud=this.hd=this.jd=0}function Q(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function H(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function V(e,t){return H(e+(e-t+.5>>1))}function z(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function q(e,t,n,i,a,r,s){for(i=r[s-1],n=0;n<a;++n)r[s+n]=i=O(e[t+n],i)}function W(e,t,n,i,a){var r;for(r=0;r<n;++r){var s=e[t+r],l=s>>8&255,o=16711935&(o=(o=16711935&s)+((l<<16)+l));i[a+r]=(4278255360&s)+o>>>0}}function Y(e,t){t.jd=255&e,t.hd=e>>8&255,t.ud=e>>16&255}function K(e,t,n,i,a,r){var s;for(s=0;s<i;++s){var l=t[n+s],o=l>>>8,d=l,c=255&(c=(c=l>>>16)+((e.jd<<24>>24)*(o<<24>>24)>>>5));d=255&(d=(d+=(e.hd<<24>>24)*(o<<24>>24)>>>5)+((e.ud<<24>>24)*(c<<24>>24)>>>5)),a[r+s]=(4278255360&l)+(c<<16)+d}}function G(t,n,i,a,r){e[n]=function(e,t,n,i,s,l,o,d,c){for(i=o;i<d;++i)for(o=0;o<c;++o)s[l++]=r(n[a(e[t++])])},e[t]=function(t,n,s,l,o,d,c){var u=8>>t.b,p=t.Ea,A=t.K[0],h=t.w;if(8>u)for(t=(1<<t.b)-1,h=(1<<u)-1;n<s;++n){var f,m=0;for(f=0;f<p;++f)f&t||(m=a(l[o++])),d[c++]=r(A[m&h]),m>>=u}else e["VP8LMapColor"+i](l,o,A,h,d,c,n,s,p)}}function $(e,t,n,i,a){for(n=t+n;t<n;){var r=e[t++];i[a++]=r>>16&255,i[a++]=r>>8&255,i[a++]=255&r}}function X(e,t,n,i,a){for(n=t+n;t<n;){var r=e[t++];i[a++]=r>>16&255,i[a++]=r>>8&255,i[a++]=255&r,i[a++]=r>>24&255}}function J(e,t,n,i,a){for(n=t+n;t<n;){var r=(s=e[t++])>>16&240|s>>12&15,s=240&s|s>>28&15;i[a++]=r,i[a++]=s}}function Z(e,t,n,i,a){for(n=t+n;t<n;){var r=(s=e[t++])>>16&248|s>>13&7,s=s>>5&224|s>>3&31;i[a++]=r,i[a++]=s}}function ee(e,t,n,i,a){for(n=t+n;t<n;){var r=e[t++];i[a++]=255&r,i[a++]=r>>8&255,i[a++]=r>>16&255}}function te(e,t,n,a,r,s){if(0==s)for(n=t+n;t<n;)B(a,((s=e[t++])[0]>>24|s[1]>>8&65280|s[2]<<8&16711680|s[3]<<24)>>>0),r+=32;else i(a,r,e,t,n)}function ne(t,n){e[n][0]=e[t+"0"],e[n][1]=e[t+"1"],e[n][2]=e[t+"2"],e[n][3]=e[t+"3"],e[n][4]=e[t+"4"],e[n][5]=e[t+"5"],e[n][6]=e[t+"6"],e[n][7]=e[t+"7"],e[n][8]=e[t+"8"],e[n][9]=e[t+"9"],e[n][10]=e[t+"10"],e[n][11]=e[t+"11"],e[n][12]=e[t+"12"],e[n][13]=e[t+"13"],e[n][14]=e[t+"0"],e[n][15]=e[t+"0"]}function ie(e){return e==Hi||e==Vi||e==zi||e==qi}function ae(){this.eb=[],this.size=this.A=this.fb=0}function re(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function se(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ae,this.f.kb=new re,this.sd=null}function le(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function oe(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function de(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ce(e,t){var n=e.T,a=t.ba.f.RGBA,r=a.eb,s=a.fb+e.ka*a.A,l=ma[t.ba.S],o=e.y,d=e.O,c=e.f,u=e.N,p=e.ea,A=e.W,h=t.cc,f=t.dc,m=t.Mc,v=t.Nc,g=e.ka,y=e.ka+e.T,x=e.U,b=x+1>>1;for(0==g?l(o,d,null,null,c,u,p,A,c,u,p,A,r,s,null,null,x):(l(t.ec,t.fc,o,d,h,f,m,v,c,u,p,A,r,s-a.A,r,s,x),++n);g+2<y;g+=2)h=c,f=u,m=p,v=A,u+=e.Rc,A+=e.Rc,s+=2*a.A,l(o,(d+=2*e.fa)-e.fa,o,d,h,f,m,v,c,u,p,A,r,s-a.A,r,s,x);return d+=e.fa,e.j+y<e.o?(i(t.ec,t.fc,o,d,x),i(t.cc,t.dc,c,u,b),i(t.Mc,t.Nc,p,A,b),n--):1&y||l(o,d,null,null,c,u,p,A,c,u,p,A,r,s+a.A,null,null,x),n}function ue(e,n,i){var a=e.F,r=[e.J];if(null!=a){var s=e.U,l=n.ba.S,o=l==Mi||l==zi;n=n.ba.f.RGBA;var d=[0],c=e.ka;d[0]=e.T,e.Kb&&(0==c?--d[0]:(--c,r[0]-=e.width),e.j+e.ka+e.T==e.o&&(d[0]=e.o-e.j-c));var u=n.eb;c=n.fb+c*n.A,e=Ci(a,r[0],e.width,s,d,u,c+(o?0:3),n.A),t(i==d),e&&ie(l)&&wi(u,c,o,s,d,n.A)}return 0}function pe(e){var t=e.ma,n=t.ba.S,i=11>n,a=n==Ui||n==Oi||n==Mi||n==Ri||12==n||ie(n);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Ln(t.Oa,e,a?11:12))return 0;if(a&&ie(n)&&gn(),e.da)alert("todo:use_scaling");else{if(i){if(t.Ib=de,e.Kb){if(n=e.U+1>>1,t.memory=r(e.U+2*n),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+n,t.Ib=ce,gn()}}else alert("todo:EmitYUV");a&&(t.Jb=ue,i&&mn())}if(i&&!Pa){for(e=0;256>e;++e)ka[e]=89858*(e-128)+Sa>>Ca,Da[e]=-22014*(e-128)+Sa,Ea[e]=-45773*(e-128),Ta[e]=113618*(e-128)+Sa>>Ca;for(e=Na;e<Ia;++e)t=76283*(e-16)+Sa>>Ca,La[e-Na]=qe(t,255),Ua[e-Na]=qe(t+8>>4,15);Pa=1}return 1}function Ae(e){var n=e.ma,i=e.U,a=e.T;return t(!(1&e.ka)),0>=i||0>=a?0:(i=n.Ib(e,n),null!=n.Jb&&n.Jb(e,n,i),n.Dc+=i,1)}function he(e){e.ma.memory=null}function fe(e,t,n,i){return 47!=y(e,8)?0:(t[0]=y(e,14)+1,n[0]=y(e,14)+1,i[0]=y(e,1),0!=y(e,3)?0:!e.h)}function me(e,t){if(4>e)return e+1;var n=e-2>>1;return(2+(1&e)<<n)+y(t,n)+1}function ve(e,t){return 120<t?t-120:1<=(n=((n=Xi[t-1])>>4)*e+(8-(15&n)))?n:1;var n}function ge(e,t,n){var i=w(n),a=e[t+=255&i].g-8;return 0<a&&(C(n,n.u+8),i=w(n),t+=e[t].value,t+=i&(1<<a)-1),C(n,n.u+e[t].g),e[t].value}function ye(e,n,i){return i.g+=e.g,i.value+=e.value<<n>>>0,t(8>=i.g),e.g}function xe(e,n,i){var a=e.xc;return t((n=0==a?0:e.vc[e.md*(i>>a)+(n>>a)])<e.Wb),e.Ya[n]}function be(e,n,a,r){var s=e.ab,l=e.c*n,o=e.C;n=o+n;var d=a,c=r;for(r=e.Ta,a=e.Ua;0<s--;){var u=e.gc[s],p=o,A=n,h=d,f=c,m=(c=r,d=a,u.Ea);switch(t(p<A),t(A<=u.nc),u.hc){case 2:Wn(h,f,(A-p)*m,c,d);break;case 0:var v=p,g=A,y=c,x=d,b=(N=u).Ea;0==v&&(zn(h,f,null,null,1,y,x),q(h,f+1,0,0,b-1,y,x+1),f+=b,x+=b,++v);for(var w=1<<N.b,j=w-1,C=_(b,N.b),S=N.K,N=N.w+(v>>N.b)*C;v<g;){var I=S,F=N,B=1;for(qn(h,f,y,x-b,1,y,x);B<b;){var P=(B&~j)+w;P>b&&(P=b),(0,Xn[I[F++]>>8&15])(h,f+ +B,y,x+B-b,P-B,y,x+B),B=P}f+=b,x+=b,++v&j||(N+=C)}A!=u.nc&&i(c,d-m,c,d+(A-p-1)*m,m);break;case 1:for(m=h,g=f,b=(h=u.Ea)-(x=h&~(y=(f=1<<u.b)-1)),v=_(h,u.b),w=u.K,u=u.w+(p>>u.b)*v;p<A;){for(j=w,C=u,S=new R,N=g+x,I=g+h;g<N;)Y(j[C++],S),Jn(S,m,g,f,c,d),g+=f,d+=f;g<I&&(Y(j[C++],S),Jn(S,m,g,b,c,d),g+=b,d+=b),++p&y||(u+=v)}break;case 3:if(h==c&&f==d&&0<u.b){for(g=c,h=m=d+(A-p)*m-(x=(A-p)*_(u.Ea,u.b)),f=c,y=d,v=[],x=(b=x)-1;0<=x;--x)v[x]=f[y+x];for(x=b-1;0<=x;--x)g[h+x]=v[x];Yn(u,p,A,c,m,c,d)}else Yn(u,p,A,h,f,c,d)}d=r,c=a}c!=a&&i(r,a,d,c,l)}function we(e,n){var i=e.V,a=e.Ba+e.c*e.C,r=n-e.C;if(t(n<=e.l.o),t(16>=r),0<r){var s=e.l,l=e.Ta,o=e.Ua,d=s.width;if(be(e,r,i,a),r=o=[o],t((i=e.C)<(a=n)),t(s.v<s.va),a>s.o&&(a=s.o),i<s.j){var c=s.j-i;i=s.j,r[0]+=c*d}if(i>=a?i=0:(r[0]+=4*s.v,s.ka=i-s.j,s.U=s.va-s.v,s.T=a-i,i=1),i){if(o=o[0],11>(i=e.ca).S){var u=i.f.RGBA,p=(a=i.S,r=s.U,s=s.T,c=u.eb,u.A),A=s;for(u=u.fb+e.Ma*u.A;0<A--;){var h=l,f=o,m=r,v=c,g=u;switch(a){case Li:Zn(h,f,m,v,g);break;case Ui:ei(h,f,m,v,g);break;case Hi:ei(h,f,m,v,g),wi(v,g,0,m,1,0);break;case _i:ii(h,f,m,v,g);break;case Oi:te(h,f,m,v,g,1);break;case Vi:te(h,f,m,v,g,1),wi(v,g,0,m,1,0);break;case Mi:te(h,f,m,v,g,0);break;case zi:te(h,f,m,v,g,0),wi(v,g,1,m,1,0);break;case Ri:ti(h,f,m,v,g);break;case qi:ti(h,f,m,v,g),ji(v,g,m,1,0);break;case Qi:ni(h,f,m,v,g);break;default:t(0)}o+=d,u+=p}e.Ma+=s}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=i.height)}}e.C=n,t(e.C<=e.i)}function je(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var n=e.Ya[t].G,i=e.Ya[t].H;if(0<n[1][i[1]+0].g||0<n[2][i[2]+0].g||0<n[3][i[3]+0].g)return 0}return 1}function Ce(e,n,i,a,r,s){if(0!=e.Z){var l=e.qd,o=e.rd;for(t(null!=fa[e.Z]);n<i;++n)fa[e.Z](l,o,a,r,a,r,s),l=a,o=r,r+=s;e.qd=l,e.rd=o}}function Se(e,n){var i=e.l.ma,a=0==i.Z||1==i.Z?e.l.j:e.C;if(a=e.C<a?a:e.C,t(n<=e.l.o),n>a){var r=e.l.width,s=i.ca,l=i.tb+r*a,o=e.V,d=e.Ba+e.c*a,c=e.gc;t(1==e.ab),t(3==c[0].hc),Gn(c[0],a,n,o,d,s,l),Ce(i,a,n,s,l,r)}e.C=e.Ma=n}function Ne(e,n,i,a,r,s,l){var o=e.$/a,d=e.$%a,c=e.m,u=e.s,p=i+e.$,A=p;r=i+a*r;var h=i+a*s,f=280+u.ua,m=e.Pb?o:16777216,v=0<u.ua?u.Wa:null,g=u.wc,y=p<h?xe(u,d,o):null;t(e.C<s),t(h<=r);var x=!1;e:for(;;){for(;x||p<h;){var b=0;if(o>=m){var N=p-i;t((m=e).Pb),m.wd=m.m,m.xd=N,0<m.s.ua&&D(m.s.Wa,m.s.vb),m=o+Zi}if(d&g||(y=xe(u,d,o)),t(null!=y),y.Qb&&(n[p]=y.qb,x=!0),!x)if(S(c),y.jc){b=c,N=n;var I=p,F=y.pd[w(b)&On-1];t(y.jc),256>F.g?(C(b,b.u+F.g),N[I]=F.value,b=0):(C(b,b.u+F.g-256),t(256<=F.value),b=F.value),0==b&&(x=!0)}else b=ge(y.G[0],y.H[0],c);if(c.h)break;if(x||256>b){if(!x)if(y.nd)n[p]=(y.qb|b<<8)>>>0;else{if(S(c),x=ge(y.G[1],y.H[1],c),S(c),N=ge(y.G[2],y.H[2],c),I=ge(y.G[3],y.H[3],c),c.h)break;n[p]=(I<<24|x<<16|b<<8|N)>>>0}if(x=!1,++p,++d>=a&&(d=0,++o,null!=l&&o<=s&&!(o%16)&&l(e,o),null!=v))for(;A<p;)b=n[A++],v.X[(506832829*b&4294967295)>>>v.Mb]=b}else if(280>b){if(b=me(b-256,c),N=ge(y.G[4],y.H[4],c),S(c),N=ve(a,N=me(N,c)),c.h)break;if(p-i<N||r-p<b)break e;for(I=0;I<b;++I)n[p+I]=n[p+I-N];for(p+=b,d+=b;d>=a;)d-=a,++o,null!=l&&o<=s&&!(o%16)&&l(e,o);if(t(p<=r),d&g&&(y=xe(u,d,o)),null!=v)for(;A<p;)b=n[A++],v.X[(506832829*b&4294967295)>>>v.Mb]=b}else{if(!(b<f))break e;for(x=b-280,t(null!=v);A<p;)b=n[A++],v.X[(506832829*b&4294967295)>>>v.Mb]=b;b=p,t(!(x>>>(N=v).Xa)),n[b]=N.X[x],x=!0}x||t(c.h==j(c))}if(e.Pb&&c.h&&p<r)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&D(e.s.vb,e.s.Wa);else{if(c.h)break e;null!=l&&l(e,o>s?s:o),e.a=0,e.$=p-i}return 1}return e.a=3,0}function Ie(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var n=e.Wa;null!=n&&(n.X=null),e.vb=null,t(null!=e)}function Fe(){var t=new sn;return null==t?null:(t.a=0,t.xb=ha,ne("Predictor","VP8LPredictors"),ne("Predictor","VP8LPredictors_C"),ne("PredictorAdd","VP8LPredictorsAdd"),ne("PredictorAdd","VP8LPredictorsAdd_C"),Wn=W,Jn=K,Zn=$,ei=X,ti=J,ni=Z,ii=ee,e.VP8LMapColor32b=Kn,e.VP8LMapColor8b=$n,t)}function Be(e,n,i,l,o){var d=1,p=[e],h=[n],f=l.m,m=l.s,v=null,g=0;e:for(;;){if(i)for(;d&&y(f,1);){var x=p,b=h,j=l,N=1,I=j.m,F=j.gc[j.ab],B=y(I,2);if(j.Oc&1<<B)d=0;else{switch(j.Oc|=1<<B,F.hc=B,F.Ea=x[0],F.nc=b[0],F.K=[null],++j.ab,t(4>=j.ab),B){case 0:case 1:F.b=y(I,3)+2,N=Be(_(F.Ea,F.b),_(F.nc,F.b),0,j,F.K),F.K=F.K[0];break;case 3:var P,k=y(I,8)+1,T=16<k?0:4<k?1:2<k?2:3;if(x[0]=_(F.Ea,T),F.b=T,P=N=Be(k,1,0,j,F.K)){var D,L=k,U=F,M=1<<(8>>U.b),R=r(M);if(null==R)P=0;else{var Q=U.K[0],H=U.w;for(R[0]=U.K[0][0],D=1;D<1*L;++D)R[D]=O(Q[H+D],R[D-1]);for(;D<4*M;++D)R[D]=0;U.K[0]=null,U.K[0]=R,P=1}}N=P;break;case 2:break;default:t(0)}d=N}}if(p=p[0],h=h[0],d&&y(f,1)&&!(d=1<=(g=y(f,4))&&11>=g)){l.a=3;break e}var V;if(V=d)t:{var z,q,W,Y=l,K=p,G=h,$=g,X=i,J=Y.m,Z=Y.s,ee=[null],te=1,ne=0,ie=Ji[$];n:for(;;){if(X&&y(J,1)){var ae=y(J,3)+2,re=_(K,ae),se=_(G,ae),le=re*se;if(!Be(re,se,0,Y,ee))break n;for(ee=ee[0],Z.xc=ae,z=0;z<le;++z){var oe=ee[z]>>8&65535;ee[z]=oe,oe>=te&&(te=oe+1)}}if(J.h)break n;for(q=0;5>q;++q){var de=Ki[q];!q&&0<$&&(de+=1<<$),ne<de&&(ne=de)}var ce=s(te*ie,u),ue=te,pe=s(ue,A);if(null==pe)var Ae=null;else t(65536>=ue),Ae=pe;var he=r(ne);if(null==Ae||null==he||null==ce){Y.a=1;break n}var fe=ce;for(z=W=0;z<te;++z){var me=Ae[z],ve=me.G,ge=me.H,xe=0,be=1,we=0;for(q=0;5>q;++q){de=Ki[q],ve[q]=fe,ge[q]=W,!q&&0<$&&(de+=1<<$);i:{var je,Ce=de,Se=Y,Fe=he,Pe=fe,ke=W,Te=0,Ee=Se.m,De=y(Ee,1);if(a(Fe,0,0,Ce),De){var Le=y(Ee,1)+1,Ue=y(Ee,1),_e=y(Ee,0==Ue?1:8);Fe[_e]=1,2==Le&&(Fe[_e=y(Ee,8)]=1);var Oe=1}else{var Me=r(19),Re=y(Ee,4)+4;if(19<Re){Se.a=3;var Qe=0;break i}for(je=0;je<Re;++je)Me[$i[je]]=y(Ee,3);var He=void 0,Ve=void 0,ze=Se,qe=Me,We=Ce,Ye=Fe,Ke=0,Ge=ze.m,$e=8,Xe=s(128,u);a:for(;c(Xe,0,7,qe,19);){if(y(Ge,1)){var Je=2+2*y(Ge,3);if((He=2+y(Ge,Je))>We)break a}else He=We;for(Ve=0;Ve<We&&He--;){S(Ge);var Ze=Xe[0+(127&w(Ge))];C(Ge,Ge.u+Ze.g);var et=Ze.value;if(16>et)Ye[Ve++]=et,0!=et&&($e=et);else{var tt=16==et,nt=et-16,it=Yi[nt],at=y(Ge,Wi[nt])+it;if(Ve+at>We)break a;for(var rt=tt?$e:0;0<at--;)Ye[Ve++]=rt}}Ke=1;break a}Ke||(ze.a=3),Oe=Ke}(Oe=Oe&&!Ee.h)&&(Te=c(Pe,ke,8,Fe,Ce)),Oe&&0!=Te?Qe=Te:(Se.a=3,Qe=0)}if(0==Qe)break n;if(be&&1==Gi[q]&&(be=0==fe[W].g),xe+=fe[W].g,W+=Qe,3>=q){var st,lt=he[0];for(st=1;st<de;++st)he[st]>lt&&(lt=he[st]);we+=lt}}if(me.nd=be,me.Qb=0,be&&(me.qb=(ve[3][ge[3]+0].value<<24|ve[1][ge[1]+0].value<<16|ve[2][ge[2]+0].value)>>>0,0==xe&&256>ve[0][ge[0]+0].value&&(me.Qb=1,me.qb+=ve[0][ge[0]+0].value<<8)),me.jc=!me.Qb&&6>we,me.jc){var ot,dt=me;for(ot=0;ot<On;++ot){var ct=ot,ut=dt.pd[ct],pt=dt.G[0][dt.H[0]+ct];256<=pt.value?(ut.g=pt.g+256,ut.value=pt.value):(ut.g=0,ut.value=0,ct>>=ye(pt,8,ut),ct>>=ye(dt.G[1][dt.H[1]+ct],16,ut),ct>>=ye(dt.G[2][dt.H[2]+ct],0,ut),ye(dt.G[3][dt.H[3]+ct],24,ut))}}}Z.vc=ee,Z.Wb=te,Z.Ya=Ae,Z.yc=ce,V=1;break t}V=0}if(!(d=V)){l.a=3;break e}if(0<g){if(m.ua=1<<g,!E(m.Wa,g)){l.a=1,d=0;break e}}else m.ua=0;var At=l,ht=p,ft=h,mt=At.s,vt=mt.xc;if(At.c=ht,At.i=ft,mt.md=_(ht,vt),mt.wc=0==vt?-1:(1<<vt)-1,i){l.xb=Aa;break e}if(null==(v=r(p*h))){l.a=1,d=0;break e}d=(d=Ne(l,v,0,p,h,h,null))&&!f.h;break e}return d?(null!=o?o[0]=v:(t(null==v),t(i)),l.$=0,i||Ie(m)):Ie(m),d}function Pe(e,n){var i=e.c*e.i,a=i+n+16*n;return t(e.c<=n),e.V=r(a),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+i+n,1)}function ke(e,n){var i=e.C,a=n-i,r=e.V,s=e.Ba+e.c*i;for(t(n<=e.l.o);0<a;){var l=16<a?16:a,o=e.l.ma,d=e.l.width,c=d*l,u=o.ca,p=o.tb+d*i,A=e.Ta,h=e.Ua;be(e,l,r,s),Si(A,h,u,p,c),Ce(o,i,i+l,u,p,d),a-=l,r+=l*e.c,i+=l}t(i==n),e.C=e.Ma=n}function Te(){this.ub=this.yd=this.td=this.Rb=0}function Ee(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function De(){this.Fb=this.Bb=this.Cb=0,this.Zb=r(4),this.Lb=r(4)}function Le(){var e;this.Yb=(function e(t,n,i){for(var a=i[n],r=0;r<a&&(t.push(i.length>n+1?[]:0),!(i.length<n+1));r++)e(t[r],n+1,i)}(e=[],0,[3,11]),e)}function Ue(){this.jb=r(3),this.Wc=l([4,8],Le),this.Xc=l([4,17],Le)}function _e(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new r(4),this.od=new r(4)}function Oe(){this.ld=this.La=this.dd=this.tc=0}function Me(){this.Na=this.la=0}function Re(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Qe(){this.ad=r(384),this.Za=0,this.Ob=r(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function He(){this.uc=this.M=this.Nb=0,this.wa=Array(new Oe),this.Y=0,this.ya=Array(new Qe),this.aa=0,this.l=new We}function Ve(){this.y=r(16),this.f=r(8),this.ea=r(8)}function ze(){this.cb=this.a=0,this.sc="",this.m=new x,this.Od=new Te,this.Kc=new Ee,this.ed=new _e,this.Qa=new De,this.Ic=this.$c=this.Aa=0,this.D=new He,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,x),this.ia=0,this.pb=s(4,Re),this.Pa=new Ue,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ve),this.Hd=0,this.rb=Array(new Me),this.sb=0,this.wa=Array(new Oe),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Qe),this.L=this.aa=0,this.gd=l([4,2],Oe),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function qe(e,t){return 0>e?0:e>t?t:e}function We(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ye(){var e=new ze;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,na||(na=Xe)),e}function Ke(e,t,n){return 0==e.a&&(e.a=t,e.sc=n,e.cb=0),0}function Ge(e,t,n){return 3<=n&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function $e(e,n){if(null==e)return 0;if(e.a=0,e.sc="OK",null==n)return Ke(e,2,"null VP8Io passed to VP8GetHeaders()");var i=n.data,r=n.w,s=n.ha;if(4>s)return Ke(e,7,"Truncated header.");var l=i[r+0]|i[r+1]<<8|i[r+2]<<16,o=e.Od;if(o.Rb=!(1&l),o.td=l>>1&7,o.yd=l>>4&1,o.ub=l>>5,3<o.td)return Ke(e,3,"Incorrect keyframe parameters.");if(!o.yd)return Ke(e,4,"Frame not displayable.");r+=3,s-=3;var d=e.Kc;if(o.Rb){if(7>s)return Ke(e,7,"cannot parse picture header");if(!Ge(i,r,s))return Ke(e,3,"Bad code word");d.c=16383&(i[r+4]<<8|i[r+3]),d.Td=i[r+4]>>6,d.i=16383&(i[r+6]<<8|i[r+5]),d.Ud=i[r+6]>>6,r+=7,s-=7,e.za=d.c+15>>4,e.Ub=d.i+15>>4,n.width=d.c,n.height=d.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,a((l=e.Pa).jb,0,255,l.jb.length),t(null!=(l=e.Qa)),l.Cb=0,l.Bb=0,l.Fb=1,a(l.Zb,0,0,l.Zb.length),a(l.Lb,0,0,l.Lb)}if(o.ub>s)return Ke(e,7,"bad partition length");h(l=e.m,i,r,o.ub),r+=o.ub,s-=o.ub,o.Rb&&(d.Ld=I(l),d.Kd=I(l)),d=e.Qa;var c,u=e.Pa;if(t(null!=l),t(null!=d),d.Cb=I(l),d.Cb){if(d.Bb=I(l),I(l)){for(d.Fb=I(l),c=0;4>c;++c)d.Zb[c]=I(l)?m(l,7):0;for(c=0;4>c;++c)d.Lb[c]=I(l)?m(l,6):0}if(d.Bb)for(c=0;3>c;++c)u.jb[c]=I(l)?f(l,8):255}else d.Bb=0;if(l.Ka)return Ke(e,3,"cannot parse segment header");if((d=e.ed).zd=I(l),d.Tb=f(l,6),d.wb=f(l,3),d.Pc=I(l),d.Pc&&I(l)){for(u=0;4>u;++u)I(l)&&(d.vd[u]=m(l,6));for(u=0;4>u;++u)I(l)&&(d.od[u]=m(l,6))}if(e.L=0==d.Tb?0:d.zd?1:2,l.Ka)return Ke(e,3,"cannot parse filter header");var p=s;if(s=c=r,r=c+p,d=p,e.Xb=(1<<f(e.m,2))-1,p<3*(u=e.Xb))i=7;else{for(c+=3*u,d-=3*u,p=0;p<u;++p){var A=i[s+0]|i[s+1]<<8|i[s+2]<<16;A>d&&(A=d),h(e.Jc[+p],i,c,A),c+=A,d-=A,s+=3}h(e.Jc[+u],i,c,d),i=c<r?0:5}if(0!=i)return Ke(e,i,"cannot parse partitions");for(i=f(c=e.m,7),s=I(c)?m(c,4):0,r=I(c)?m(c,4):0,d=I(c)?m(c,4):0,u=I(c)?m(c,4):0,c=I(c)?m(c,4):0,p=e.Qa,A=0;4>A;++A){if(p.Cb){var v=p.Zb[A];p.Fb||(v+=i)}else{if(0<A){e.pb[A]=e.pb[0];continue}v=i}var g=e.pb[A];g.Sc[0]=ea[qe(v+s,127)],g.Sc[1]=ta[qe(v+0,127)],g.Eb[0]=2*ea[qe(v+r,127)],g.Eb[1]=101581*ta[qe(v+d,127)]>>16,8>g.Eb[1]&&(g.Eb[1]=8),g.Qc[0]=ea[qe(v+u,117)],g.Qc[1]=ta[qe(v+c,127)],g.lc=v+c}if(!o.Rb)return Ke(e,4,"Not a key frame.");for(I(l),o=e.Pa,i=0;4>i;++i){for(s=0;8>s;++s)for(r=0;3>r;++r)for(d=0;11>d;++d)u=F(l,oa[i][s][r][d])?f(l,8):sa[i][s][r][d],o.Wc[i][s].Yb[r][d]=u;for(s=0;17>s;++s)o.Xc[i][s]=o.Wc[i][da[s]]}return e.kc=I(l),e.kc&&(e.Bd=f(l,8)),e.cb=1}function Xe(e,t,n,i,a,r,s){var l=t[a].Yb[n];for(n=0;16>a;++a){if(!F(e,l[n+0]))return a;for(;!F(e,l[n+1]);)if(l=t[++a].Yb[0],n=0,16==a)return 16;var o=t[a+1].Yb;if(F(e,l[n+2])){var d=e,c=0;if(F(d,(p=l)[(u=n)+3]))if(F(d,p[u+6])){for(l=0,u=2*(c=F(d,p[u+8]))+(p=F(d,p[u+9+c])),c=0,p=ia[u];p[l];++l)c+=c+F(d,p[l]);c+=3+(8<<u)}else F(d,p[u+7])?(c=7+2*F(d,165),c+=F(d,145)):c=5+F(d,159);else c=F(d,p[u+4])?3+F(d,p[u+5]):2;l=o[2]}else c=1,l=o[1];o=s+aa[a],0>(d=e).b&&N(d);var u,p=d.b,A=(u=d.Ca>>1)-(d.I>>p)>>31;--d.b,d.Ca+=A,d.Ca|=1,d.I-=(u+1&A)<<p,r[o]=((c^A)-A)*i[(0<a)+0]}return 16}function Je(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,a(e.zc,0,0,e.zc.length),e.ja=0}function Ze(e,t,n,i,a){a=e[t+n+32*i]+(a>>3),e[t+n+32*i]=-256&a?0>a?0:255:a}function et(e,t,n,i,a,r){Ze(e,t,0,n,i+a),Ze(e,t,1,n,i+r),Ze(e,t,2,n,i-r),Ze(e,t,3,n,i-a)}function tt(e){return(20091*e>>16)+e}function nt(e,t,n,i){var a,s=0,l=r(16);for(a=0;4>a;++a){var o=e[t+0]+e[t+8],d=e[t+0]-e[t+8],c=(35468*e[t+4]>>16)-tt(e[t+12]),u=tt(e[t+4])+(35468*e[t+12]>>16);l[s+0]=o+u,l[s+1]=d+c,l[s+2]=d-c,l[s+3]=o-u,s+=4,t++}for(a=s=0;4>a;++a)o=(e=l[s+0]+4)+l[s+8],d=e-l[s+8],c=(35468*l[s+4]>>16)-tt(l[s+12]),Ze(n,i,0,0,o+(u=tt(l[s+4])+(35468*l[s+12]>>16))),Ze(n,i,1,0,d+c),Ze(n,i,2,0,d-c),Ze(n,i,3,0,o-u),s++,i+=32}function it(e,t,n,i){var a=e[t+0]+4,r=35468*e[t+4]>>16,s=tt(e[t+4]),l=35468*e[t+1]>>16;et(n,i,0,a+s,e=tt(e[t+1]),l),et(n,i,1,a+r,e,l),et(n,i,2,a-r,e,l),et(n,i,3,a-s,e,l)}function at(e,t,n,i,a){nt(e,t,n,i),a&&nt(e,t+16,n,i+4)}function rt(e,t,n,i){ri(e,t+0,n,i,1),ri(e,t+32,n,i+128,1)}function st(e,t,n,i){var a;for(e=e[t+0]+4,a=0;4>a;++a)for(t=0;4>t;++t)Ze(n,i,t,a,e)}function lt(e,t,n,i){e[t+0]&&oi(e,t+0,n,i),e[t+16]&&oi(e,t+16,n,i+4),e[t+32]&&oi(e,t+32,n,i+128),e[t+48]&&oi(e,t+48,n,i+128+4)}function ot(e,t,n,i){var a,s=r(16);for(a=0;4>a;++a){var l=e[t+0+a]+e[t+12+a],o=e[t+4+a]+e[t+8+a],d=e[t+4+a]-e[t+8+a],c=e[t+0+a]-e[t+12+a];s[0+a]=l+o,s[8+a]=l-o,s[4+a]=c+d,s[12+a]=c-d}for(a=0;4>a;++a)l=(e=s[0+4*a]+3)+s[3+4*a],o=s[1+4*a]+s[2+4*a],d=s[1+4*a]-s[2+4*a],c=e-s[3+4*a],n[i+0]=l+o>>3,n[i+16]=c+d>>3,n[i+32]=l-o>>3,n[i+48]=c-d>>3,i+=64}function dt(e,t,n){var i,a=t-32,r=Ei,s=255-e[a-1];for(i=0;i<n;++i){var l,o=r,d=s+e[t-1];for(l=0;l<n;++l)e[t+l]=o[d+e[a+l]];t+=32}}function ct(e,t){dt(e,t,4)}function ut(e,t){dt(e,t,8)}function pt(e,t){dt(e,t,16)}function At(e,t){var n;for(n=0;16>n;++n)i(e,t+32*n,e,t-32,16)}function ht(e,t){var n;for(n=16;0<n;--n)a(e,t,e[t-1],16),t+=32}function ft(e,t,n){var i;for(i=0;16>i;++i)a(t,n+32*i,e,16)}function mt(e,t){var n,i=16;for(n=0;16>n;++n)i+=e[t-1+32*n]+e[t+n-32];ft(i>>5,e,t)}function vt(e,t){var n,i=8;for(n=0;16>n;++n)i+=e[t-1+32*n];ft(i>>4,e,t)}function gt(e,t){var n,i=8;for(n=0;16>n;++n)i+=e[t+n-32];ft(i>>4,e,t)}function yt(e,t){ft(128,e,t)}function xt(e,t,n){return e+2*t+n+2>>2}function bt(e,t){var n,a=t-32;for(a=new Uint8Array([xt(e[a-1],e[a+0],e[a+1]),xt(e[a+0],e[a+1],e[a+2]),xt(e[a+1],e[a+2],e[a+3]),xt(e[a+2],e[a+3],e[a+4])]),n=0;4>n;++n)i(e,t+32*n,a,0,a.length)}function wt(e,t){var n=e[t-1],i=e[t-1+32],a=e[t-1+64],r=e[t-1+96];B(e,t+0,16843009*xt(e[t-1-32],n,i)),B(e,t+32,16843009*xt(n,i,a)),B(e,t+64,16843009*xt(i,a,r)),B(e,t+96,16843009*xt(a,r,r))}function jt(e,t){var n,i=4;for(n=0;4>n;++n)i+=e[t+n-32]+e[t-1+32*n];for(i>>=3,n=0;4>n;++n)a(e,t+32*n,i,4)}function Ct(e,t){var n=e[t-1+0],i=e[t-1+32],a=e[t-1+64],r=e[t-1-32],s=e[t+0-32],l=e[t+1-32],o=e[t+2-32],d=e[t+3-32];e[t+0+96]=xt(i,a,e[t-1+96]),e[t+1+96]=e[t+0+64]=xt(n,i,a),e[t+2+96]=e[t+1+64]=e[t+0+32]=xt(r,n,i),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=xt(s,r,n),e[t+3+64]=e[t+2+32]=e[t+1+0]=xt(l,s,r),e[t+3+32]=e[t+2+0]=xt(o,l,s),e[t+3+0]=xt(d,o,l)}function St(e,t){var n=e[t+1-32],i=e[t+2-32],a=e[t+3-32],r=e[t+4-32],s=e[t+5-32],l=e[t+6-32],o=e[t+7-32];e[t+0+0]=xt(e[t+0-32],n,i),e[t+1+0]=e[t+0+32]=xt(n,i,a),e[t+2+0]=e[t+1+32]=e[t+0+64]=xt(i,a,r),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=xt(a,r,s),e[t+3+32]=e[t+2+64]=e[t+1+96]=xt(r,s,l),e[t+3+64]=e[t+2+96]=xt(s,l,o),e[t+3+96]=xt(l,o,o)}function Nt(e,t){var n=e[t-1+0],i=e[t-1+32],a=e[t-1+64],r=e[t-1-32],s=e[t+0-32],l=e[t+1-32],o=e[t+2-32],d=e[t+3-32];e[t+0+0]=e[t+1+64]=r+s+1>>1,e[t+1+0]=e[t+2+64]=s+l+1>>1,e[t+2+0]=e[t+3+64]=l+o+1>>1,e[t+3+0]=o+d+1>>1,e[t+0+96]=xt(a,i,n),e[t+0+64]=xt(i,n,r),e[t+0+32]=e[t+1+96]=xt(n,r,s),e[t+1+32]=e[t+2+96]=xt(r,s,l),e[t+2+32]=e[t+3+96]=xt(s,l,o),e[t+3+32]=xt(l,o,d)}function It(e,t){var n=e[t+0-32],i=e[t+1-32],a=e[t+2-32],r=e[t+3-32],s=e[t+4-32],l=e[t+5-32],o=e[t+6-32],d=e[t+7-32];e[t+0+0]=n+i+1>>1,e[t+1+0]=e[t+0+64]=i+a+1>>1,e[t+2+0]=e[t+1+64]=a+r+1>>1,e[t+3+0]=e[t+2+64]=r+s+1>>1,e[t+0+32]=xt(n,i,a),e[t+1+32]=e[t+0+96]=xt(i,a,r),e[t+2+32]=e[t+1+96]=xt(a,r,s),e[t+3+32]=e[t+2+96]=xt(r,s,l),e[t+3+64]=xt(s,l,o),e[t+3+96]=xt(l,o,d)}function Ft(e,t){var n=e[t-1+0],i=e[t-1+32],a=e[t-1+64],r=e[t-1+96];e[t+0+0]=n+i+1>>1,e[t+2+0]=e[t+0+32]=i+a+1>>1,e[t+2+32]=e[t+0+64]=a+r+1>>1,e[t+1+0]=xt(n,i,a),e[t+3+0]=e[t+1+32]=xt(i,a,r),e[t+3+32]=e[t+1+64]=xt(a,r,r),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=r}function Bt(e,t){var n=e[t-1+0],i=e[t-1+32],a=e[t-1+64],r=e[t-1+96],s=e[t-1-32],l=e[t+0-32],o=e[t+1-32],d=e[t+2-32];e[t+0+0]=e[t+2+32]=n+s+1>>1,e[t+0+32]=e[t+2+64]=i+n+1>>1,e[t+0+64]=e[t+2+96]=a+i+1>>1,e[t+0+96]=r+a+1>>1,e[t+3+0]=xt(l,o,d),e[t+2+0]=xt(s,l,o),e[t+1+0]=e[t+3+32]=xt(n,s,l),e[t+1+32]=e[t+3+64]=xt(i,n,s),e[t+1+64]=e[t+3+96]=xt(a,i,n),e[t+1+96]=xt(r,a,i)}function Pt(e,t){var n;for(n=0;8>n;++n)i(e,t+32*n,e,t-32,8)}function kt(e,t){var n;for(n=0;8>n;++n)a(e,t,e[t-1],8),t+=32}function Tt(e,t,n){var i;for(i=0;8>i;++i)a(t,n+32*i,e,8)}function Et(e,t){var n,i=8;for(n=0;8>n;++n)i+=e[t+n-32]+e[t-1+32*n];Tt(i>>4,e,t)}function Dt(e,t){var n,i=4;for(n=0;8>n;++n)i+=e[t+n-32];Tt(i>>3,e,t)}function Lt(e,t){var n,i=4;for(n=0;8>n;++n)i+=e[t-1+32*n];Tt(i>>3,e,t)}function Ut(e,t){Tt(128,e,t)}function _t(e,t,n){var i=e[t-n],a=e[t+0],r=3*(a-i)+ki[1020+e[t-2*n]-e[t+n]],s=Ti[112+(r+4>>3)];e[t-n]=Ei[255+i+Ti[112+(r+3>>3)]],e[t+0]=Ei[255+a-s]}function Ot(e,t,n,i){var a=e[t+0],r=e[t+n];return Di[255+e[t-2*n]-e[t-n]]>i||Di[255+r-a]>i}function Mt(e,t,n,i){return 4*Di[255+e[t-n]-e[t+0]]+Di[255+e[t-2*n]-e[t+n]]<=i}function Rt(e,t,n,i,a){var r=e[t-3*n],s=e[t-2*n],l=e[t-n],o=e[t+0],d=e[t+n],c=e[t+2*n],u=e[t+3*n];return 4*Di[255+l-o]+Di[255+s-d]>i?0:Di[255+e[t-4*n]-r]<=a&&Di[255+r-s]<=a&&Di[255+s-l]<=a&&Di[255+u-c]<=a&&Di[255+c-d]<=a&&Di[255+d-o]<=a}function Qt(e,t,n,i){var a=2*i+1;for(i=0;16>i;++i)Mt(e,t+i,n,a)&&_t(e,t+i,n)}function Ht(e,t,n,i){var a=2*i+1;for(i=0;16>i;++i)Mt(e,t+i*n,1,a)&&_t(e,t+i*n,1)}function Vt(e,t,n,i){var a;for(a=3;0<a;--a)Qt(e,t+=4*n,n,i)}function zt(e,t,n,i){var a;for(a=3;0<a;--a)Ht(e,t+=4,n,i)}function qt(e,t,n,i,a,r,s,l){for(r=2*r+1;0<a--;){if(Rt(e,t,n,r,s))if(Ot(e,t,n,l))_t(e,t,n);else{var o=e,d=t,c=n,u=o[d-2*c],p=o[d-c],A=o[d+0],h=o[d+c],f=o[d+2*c],m=27*(g=ki[1020+3*(A-p)+ki[1020+u-h]])+63>>7,v=18*g+63>>7,g=9*g+63>>7;o[d-3*c]=Ei[255+o[d-3*c]+g],o[d-2*c]=Ei[255+u+v],o[d-c]=Ei[255+p+m],o[d+0]=Ei[255+A-m],o[d+c]=Ei[255+h-v],o[d+2*c]=Ei[255+f-g]}t+=i}}function Wt(e,t,n,i,a,r,s,l){for(r=2*r+1;0<a--;){if(Rt(e,t,n,r,s))if(Ot(e,t,n,l))_t(e,t,n);else{var o=e,d=t,c=n,u=o[d-c],p=o[d+0],A=o[d+c],h=Ti[112+(4+(f=3*(p-u))>>3)],f=Ti[112+(f+3>>3)],m=h+1>>1;o[d-2*c]=Ei[255+o[d-2*c]+m],o[d-c]=Ei[255+u+f],o[d+0]=Ei[255+p-h],o[d+c]=Ei[255+A-m]}t+=i}}function Yt(e,t,n,i,a,r){qt(e,t,n,1,16,i,a,r)}function Kt(e,t,n,i,a,r){qt(e,t,1,n,16,i,a,r)}function Gt(e,t,n,i,a,r){var s;for(s=3;0<s;--s)Wt(e,t+=4*n,n,1,16,i,a,r)}function $t(e,t,n,i,a,r){var s;for(s=3;0<s;--s)Wt(e,t+=4,1,n,16,i,a,r)}function Xt(e,t,n,i,a,r,s,l){qt(e,t,a,1,8,r,s,l),qt(n,i,a,1,8,r,s,l)}function Jt(e,t,n,i,a,r,s,l){qt(e,t,1,a,8,r,s,l),qt(n,i,1,a,8,r,s,l)}function Zt(e,t,n,i,a,r,s,l){Wt(e,t+4*a,a,1,8,r,s,l),Wt(n,i+4*a,a,1,8,r,s,l)}function en(e,t,n,i,a,r,s,l){Wt(e,t+4,1,a,8,r,s,l),Wt(n,i+4,1,a,8,r,s,l)}function tn(){this.ba=new se,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new oe,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function an(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function rn(){this.ua=0,this.Wa=new L,this.vb=new L,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new A,this.yc=new u}function sn(){this.xb=this.a=0,this.l=new We,this.ca=new se,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new b,this.Pb=0,this.wd=new b,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new rn,this.ab=0,this.gc=s(4,an),this.Oc=0}function ln(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new We,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function on(e,t,n,i,a,r,s){for(e=null==e?0:e[t+0],t=0;t<s;++t)a[r+t]=e+n[i+t]&255,e=a[r+t]}function dn(e,t,n,i,a,r,s){var l;if(null==e)on(null,null,n,i,a,r,s);else for(l=0;l<s;++l)a[r+l]=e[t+l]+n[i+l]&255}function cn(e,t,n,i,a,r,s){if(null==e)on(null,null,n,i,a,r,s);else{var l,o=e[t+0],d=o,c=o;for(l=0;l<s;++l)d=c+(o=e[t+l])-d,c=n[i+l]+(-256&d?0>d?0:255:d)&255,d=o,a[r+l]=c}}function un(e,n,a,s){var l=n.width,o=n.o;if(t(null!=e&&null!=n),0>a||0>=s||a+s>o)return null;if(!e.Cc){if(null==e.ga){var d;if(e.ga=new ln,(d=null==e.ga)||(d=n.width*n.o,t(0==e.Gb.length),e.Gb=r(d),e.Uc=0,null==e.Gb?d=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,d=1),d=!d),!d){d=e.ga;var c=e.Fa,u=e.P,p=e.qc,A=e.mb,h=e.nb,f=u+1,m=p-1,g=d.l;if(t(null!=c&&null!=A&&null!=n),fa[0]=null,fa[1]=on,fa[2]=dn,fa[3]=cn,d.ca=A,d.tb=h,d.c=n.width,d.i=n.height,t(0<d.c&&0<d.i),1>=p)n=0;else if(d.$a=3&c[u+0],d.Z=c[u+0]>>2&3,d.Lc=c[u+0]>>4&3,u=c[u+0]>>6&3,0>d.$a||1<d.$a||4<=d.Z||1<d.Lc||u)n=0;else if(g.put=Ae,g.ac=pe,g.bc=he,g.ma=d,g.width=n.width,g.height=n.height,g.Da=n.Da,g.v=n.v,g.va=n.va,g.j=n.j,g.o=n.o,d.$a)e:{t(1==d.$a),n=Fe();t:for(;;){if(null==n){n=0;break e}if(t(null!=d),d.mc=n,n.c=d.c,n.i=d.i,n.l=d.l,n.l.ma=d,n.l.width=d.c,n.l.height=d.i,n.a=0,v(n.m,c,f,m),!Be(d.c,d.i,1,n,null))break t;if(1==n.ab&&3==n.gc[0].hc&&je(n.s)?(d.ic=1,c=n.c*n.i,n.Ta=null,n.Ua=0,n.V=r(c),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(d.ic=0,n=Pe(n,d.c)),!n)break t;n=1;break e}d.mc=null,n=0}else n=m>=d.c*d.i;d=!n}if(d)return null;1!=e.ga.Lc?e.Ga=0:s=o-a}t(null!=e.ga),t(a+s<=o);e:{if(n=(c=e.ga).c,o=c.l.o,0==c.$a){if(f=e.rc,m=e.Vc,g=e.Fa,u=e.P+1+a*n,p=e.mb,A=e.nb+a*n,t(u<=e.P+e.qc),0!=c.Z)for(t(null!=fa[c.Z]),d=0;d<s;++d)fa[c.Z](f,m,g,u,p,A,n),f=p,m=A,A+=n,u+=n;else for(d=0;d<s;++d)i(p,A,g,u,n),f=p,m=A,A+=n,u+=n;e.rc=f,e.Vc=m}else{if(t(null!=c.mc),n=a+s,t(null!=(d=c.mc)),t(n<=d.i),d.C>=n)n=1;else if(c.ic||mn(),c.ic){c=d.V,f=d.Ba,m=d.c;var y=d.i,x=(g=1,u=d.$/m,p=d.$%m,A=d.m,h=d.s,d.$),b=m*y,w=m*n,C=h.wc,N=x<w?xe(h,p,u):null;t(x<=b),t(n<=y),t(je(h));t:for(;;){for(;!A.h&&x<w;){if(p&C||(N=xe(h,p,u)),t(null!=N),S(A),256>(y=ge(N.G[0],N.H[0],A)))c[f+x]=y,++x,++p>=m&&(p=0,++u<=n&&!(u%16)&&Se(d,u));else{if(!(280>y)){g=0;break t}y=me(y-256,A);var I,F=ge(N.G[4],N.H[4],A);if(S(A),!(x>=(F=ve(m,F=me(F,A)))&&b-x>=y)){g=0;break t}for(I=0;I<y;++I)c[f+x+I]=c[f+x+I-F];for(x+=y,p+=y;p>=m;)p-=m,++u<=n&&!(u%16)&&Se(d,u);x<w&&p&C&&(N=xe(h,p,u))}t(A.h==j(A))}Se(d,u>n?n:u);break t}!g||A.h&&x<b?(g=0,d.a=A.h?5:3):d.$=x,n=g}else n=Ne(d,d.V,d.Ba,d.c,d.i,n,ke);if(!n){s=0;break e}}a+s>=o&&(e.Cc=1),s=1}if(!s)return null;if(e.Cc&&(null!=(s=e.ga)&&(s.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+a*l}function pn(e,t,n,i,a,r){for(;0<a--;){var s,l=e,o=t+(n?1:0),d=e,c=t+(n?0:3);for(s=0;s<i;++s){var u=d[c+4*s];255!=u&&(u*=32897,l[o+4*s+0]=l[o+4*s+0]*u>>23,l[o+4*s+1]=l[o+4*s+1]*u>>23,l[o+4*s+2]=l[o+4*s+2]*u>>23)}t+=r}}function An(e,t,n,i,a){for(;0<i--;){var r;for(r=0;r<n;++r){var s=e[t+2*r+0],l=15&(d=e[t+2*r+1]),o=4369*l,d=(240&d|d>>4)*o>>16;e[t+2*r+0]=(240&s|s>>4)*o>>16&240|(15&s|s<<4)*o>>16>>4&15,e[t+2*r+1]=240&d|l}t+=a}}function hn(e,t,n,i,a,r,s,l){var o,d,c=255;for(d=0;d<a;++d){for(o=0;o<i;++o){var u=e[t+o];r[s+4*o]=u,c&=u}t+=n,s+=l}return 255!=c}function fn(e,t,n,i,a){var r;for(r=0;r<a;++r)n[i+r]=e[t+r]>>8}function mn(){wi=pn,ji=An,Ci=hn,Si=fn}function vn(n,i,a){e[n]=function(e,n,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y){var x,b=y-1>>1,w=l[o+0]|d[c+0]<<16,j=u[p+0]|A[h+0]<<16;t(null!=e);var C=3*w+j+131074>>2;for(i(e[n+0],255&C,C>>16,f,m),null!=r&&(C=3*j+w+131074>>2,i(r[s+0],255&C,C>>16,v,g)),x=1;x<=b;++x){var S=l[o+x]|d[c+x]<<16,N=u[p+x]|A[h+x]<<16,I=w+S+j+N+524296,F=I+2*(S+j)>>3;C=F+w>>1,w=(I=I+2*(w+N)>>3)+S>>1,i(e[n+2*x-1],255&C,C>>16,f,m+(2*x-1)*a),i(e[n+2*x-0],255&w,w>>16,f,m+(2*x-0)*a),null!=r&&(C=I+j>>1,w=F+N>>1,i(r[s+2*x-1],255&C,C>>16,v,g+(2*x-1)*a),i(r[s+2*x+0],255&w,w>>16,v,g+(2*x+0)*a)),w=S,j=N}1&y||(C=3*w+j+131074>>2,i(e[n+y-1],255&C,C>>16,f,m+(y-1)*a),null!=r&&(C=3*j+w+131074>>2,i(r[s+y-1],255&C,C>>16,v,g+(y-1)*a)))}}function gn(){ma[Li]=va,ma[Ui]=ya,ma[_i]=ga,ma[Oi]=xa,ma[Mi]=ba,ma[Ri]=wa,ma[Qi]=ja,ma[Hi]=ya,ma[Vi]=xa,ma[zi]=ba,ma[qi]=wa}function yn(e){return e&~Ba?0>e?0:255:e>>Fa}function xn(e,t){return yn((19077*e>>8)+(26149*t>>8)-14234)}function bn(e,t,n){return yn((19077*e>>8)-(6419*t>>8)-(13320*n>>8)+8708)}function wn(e,t){return yn((19077*e>>8)+(33050*t>>8)-17685)}function jn(e,t,n,i,a){i[a+0]=xn(e,n),i[a+1]=bn(e,t,n),i[a+2]=wn(e,t)}function Cn(e,t,n,i,a){i[a+0]=wn(e,t),i[a+1]=bn(e,t,n),i[a+2]=xn(e,n)}function Sn(e,t,n,i,a){var r=bn(e,t,n);t=r<<3&224|wn(e,t)>>3,i[a+0]=248&xn(e,n)|r>>5,i[a+1]=t}function Nn(e,t,n,i,a){var r=240&wn(e,t)|15;i[a+0]=240&xn(e,n)|bn(e,t,n)>>4,i[a+1]=r}function In(e,t,n,i,a){i[a+0]=255,jn(e,t,n,i,a+1)}function Fn(e,t,n,i,a){Cn(e,t,n,i,a),i[a+3]=255}function Bn(e,t,n,i,a){jn(e,t,n,i,a),i[a+3]=255}function qe(e,t){return 0>e?0:e>t?t:e}function Pn(t,n,i){e[t]=function(e,t,a,r,s,l,o,d,c){for(var u=d+(-2&c)*i;d!=u;)n(e[t+0],a[r+0],s[l+0],o,d),n(e[t+1],a[r+0],s[l+0],o,d+i),t+=2,++r,++l,d+=2*i;1&c&&n(e[t+0],a[r+0],s[l+0],o,d)}}function kn(e,t,n){return 0==n?0==e?0==t?6:5:0==t?4:0:n}function Tn(e,t,n,i,a){switch(e>>>30){case 3:ri(t,n,i,a,0);break;case 2:si(t,n,i,a);break;case 1:oi(t,n,i,a)}}function En(e,t){var n,r,s=t.M,l=t.Nb,o=e.oc,d=e.pc+40,c=e.oc,u=e.pc+584,p=e.oc,A=e.pc+600;for(n=0;16>n;++n)o[d+32*n-1]=129;for(n=0;8>n;++n)c[u+32*n-1]=129,p[A+32*n-1]=129;for(0<s?o[d-1-32]=c[u-1-32]=p[A-1-32]=129:(a(o,d-32-1,127,21),a(c,u-32-1,127,9),a(p,A-32-1,127,9)),r=0;r<e.za;++r){var h=t.ya[t.aa+r];if(0<r){for(n=-1;16>n;++n)i(o,d+32*n-4,o,d+32*n+12,4);for(n=-1;8>n;++n)i(c,u+32*n-4,c,u+32*n+4,4),i(p,A+32*n-4,p,A+32*n+4,4)}var f=e.Gd,m=e.Hd+r,v=h.ad,g=h.Hc;if(0<s&&(i(o,d-32,f[m].y,0,16),i(c,u-32,f[m].f,0,8),i(p,A-32,f[m].ea,0,8)),h.Za){var y=o,x=d-32+16;for(0<s&&(r>=e.za-1?a(y,x,f[m].y[15],4):i(y,x,f[m+1].y,0,4)),n=0;4>n;n++)y[x+128+n]=y[x+256+n]=y[x+384+n]=y[x+0+n];for(n=0;16>n;++n,g<<=2)y=o,x=d+_a[n],ua[h.Ob[n]](y,x),Tn(g,v,16*+n,y,x)}else if(y=kn(r,s,h.Ob[0]),ca[y](o,d),0!=g)for(n=0;16>n;++n,g<<=2)Tn(g,v,16*+n,o,d+_a[n]);for(n=h.Gc,y=kn(r,s,h.Dd),pa[y](c,u),pa[y](p,A),g=v,y=c,x=u,255&(h=0|n)&&(170&h?li(g,256,y,x):di(g,256,y,x)),h=p,g=A,255&(n>>=8)&&(170&n?li(v,320,h,g):di(v,320,h,g)),s<e.Ub-1&&(i(f[m].y,0,o,d+480,16),i(f[m].f,0,c,u+224,8),i(f[m].ea,0,p,A+224,8)),n=8*l*e.B,f=e.sa,m=e.ta+16*r+16*l*e.R,v=e.qa,h=e.ra+8*r+n,g=e.Ha,y=e.Ia+8*r+n,n=0;16>n;++n)i(f,m+n*e.R,o,d+32*n,16);for(n=0;8>n;++n)i(v,h+n*e.B,c,u+32*n,8),i(g,y+n*e.B,p,A+32*n,8)}}function Dn(e,i,a,r,s,l,o,d,c){var u=[0],p=[0],A=0,h=null!=c?c.kd:0,f=null!=c?c:new nn;if(null==e||12>a)return 7;f.data=e,f.w=i,f.ha=a,i=[i],a=[a],f.gb=[f.gb];e:{var m=i,g=a,y=f.gb;if(t(null!=e),t(null!=g),t(null!=y),y[0]=0,12<=g[0]&&!n(e,m[0],"RIFF")){if(n(e,m[0]+8,"WEBP")){y=3;break e}var x=T(e,m[0]+4);if(12>x||4294967286<x){y=3;break e}if(h&&x>g[0]-8){y=7;break e}y[0]=x,m[0]+=12,g[0]-=12}y=0}if(0!=y)return y;for(x=0<f.gb[0],a=a[0];;){e:{var w=e;g=i,y=a;var j=u,C=p,S=m=[0];if((F=A=[A])[0]=0,8>y[0])y=7;else{if(!n(w,g[0],"VP8X")){if(10!=T(w,g[0]+4)){y=3;break e}if(18>y[0]){y=7;break e}var N=T(w,g[0]+8),I=1+k(w,g[0]+12);if(2147483648<=I*(w=1+k(w,g[0]+15))){y=3;break e}null!=S&&(S[0]=N),null!=j&&(j[0]=I),null!=C&&(C[0]=w),g[0]+=18,y[0]-=18,F[0]=1}y=0}}if(A=A[0],m=m[0],0!=y)return y;if(g=!!(2&m),!x&&A)return 3;if(null!=l&&(l[0]=!!(16&m)),null!=o&&(o[0]=g),null!=d&&(d[0]=0),o=u[0],m=p[0],A&&g&&null==c){y=0;break}if(4>a){y=7;break}if(x&&A||!x&&!A&&!n(e,i[0],"ALPH")){a=[a],f.na=[f.na],f.P=[f.P],f.Sa=[f.Sa];e:{N=e,y=i,x=a;var F=f.gb;j=f.na,C=f.P,S=f.Sa,I=22,t(null!=N),t(null!=x),w=y[0];var B=x[0];for(t(null!=j),t(null!=S),j[0]=null,C[0]=null,S[0]=0;;){if(y[0]=w,x[0]=B,8>B){y=7;break e}var P=T(N,w+4);if(4294967286<P){y=3;break e}var E=8+P+1&-2;if(I+=E,0<F&&I>F){y=3;break e}if(!n(N,w,"VP8 ")||!n(N,w,"VP8L")){y=0;break e}if(B[0]<E){y=7;break e}n(N,w,"ALPH")||(j[0]=N,C[0]=w+8,S[0]=P),w+=E,B-=E}}if(a=a[0],f.na=f.na[0],f.P=f.P[0],f.Sa=f.Sa[0],0!=y)break}a=[a],f.Ja=[f.Ja],f.xa=[f.xa];e:if(F=e,y=i,x=a,j=f.gb[0],C=f.Ja,S=f.xa,N=y[0],w=!n(F,N,"VP8 "),I=!n(F,N,"VP8L"),t(null!=F),t(null!=x),t(null!=C),t(null!=S),8>x[0])y=7;else{if(w||I){if(F=T(F,N+4),12<=j&&F>j-12){y=3;break e}if(h&&F>x[0]-8){y=7;break e}C[0]=F,y[0]+=8,x[0]-=8,S[0]=I}else S[0]=5<=x[0]&&47==F[N+0]&&!(F[N+4]>>5),C[0]=x[0];y=0}if(a=a[0],f.Ja=f.Ja[0],f.xa=f.xa[0],i=i[0],0!=y)break;if(4294967286<f.Ja)return 3;if(null==d||g||(d[0]=f.xa?2:1),o=[o],m=[m],f.xa){if(5>a){y=7;break}d=o,h=m,g=l,null==e||5>a?e=0:5<=a&&47==e[i+0]&&!(e[i+4]>>5)?(x=[0],F=[0],j=[0],v(C=new b,e,i,a),fe(C,x,F,j)?(null!=d&&(d[0]=x[0]),null!=h&&(h[0]=F[0]),null!=g&&(g[0]=j[0]),e=1):e=0):e=0}else{if(10>a){y=7;break}d=m,null==e||10>a||!Ge(e,i+3,a-3)?e=0:(h=e[i+0]|e[i+1]<<8|e[i+2]<<16,g=16383&(e[i+7]<<8|e[i+6]),e=16383&(e[i+9]<<8|e[i+8]),1&h||3<(h>>1&7)||!(h>>4&1)||h>>5>=f.Ja||!g||!e?e=0:(o&&(o[0]=g),d&&(d[0]=e),e=1))}if(!e)return 3;if(o=o[0],m=m[0],A&&(u[0]!=o||p[0]!=m))return 3;null!=c&&(c[0]=f,c.offset=i-c.w,t(4294967286>i-c.w),t(c.offset==c.ha-a));break}return 0==y||7==y&&A&&null==c?(null!=l&&(l[0]|=null!=f.na&&0<f.na.length),null!=r&&(r[0]=o),null!=s&&(s[0]=m),0):y}function Ln(e,t,n){var i=t.width,a=t.height,r=0,s=0,l=i,o=a;if(t.Da=null!=e&&0<e.Da,t.Da&&(l=e.cd,o=e.bd,r=e.v,s=e.j,11>n||(r&=-2,s&=-2),0>r||0>s||0>=l||0>=o||r+l>i||s+o>a))return 0;if(t.v=r,t.j=s,t.va=r+l,t.o=s+o,t.U=l,t.T=o,t.da=null!=e&&0<e.da,t.da){if(!U(l,o,n=[e.ib],r=[e.hb]))return 0;t.ib=n[0],t.hb=r[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*i/4&&t.hb<3*a/4,t.Kb=0),1}function Un(e){if(null==e)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function _n(e,t,n,i){if(null==i||0>=e||0>=t)return 2;if(null!=n){if(n.Da){var a=n.cd,s=n.bd,l=-2&n.v,o=-2&n.j;if(0>l||0>o||0>=a||0>=s||l+a>e||o+s>t)return 2;e=a,t=s}if(n.da){if(!U(e,t,a=[n.ib],s=[n.hb]))return 2;e=a[0],t=s[0]}}i.width=e,i.height=t;e:{var d=i.width,c=i.height;if(e=i.S,0>=d||0>=c||!(e>=Li&&13>e))e=2;else{if(0>=i.Rd&&null==i.sd){l=s=a=t=0;var u=(o=d*Ra[e])*c;if(11>e||(s=(c+1)/2*(t=(d+1)/2),12==e&&(l=(a=d)*c)),null==(c=r(u+2*s+l))){e=1;break e}i.sd=c,11>e?((d=i.f.RGBA).eb=c,d.fb=0,d.A=o,d.size=u):((d=i.f.kb).y=c,d.O=0,d.fa=o,d.Fd=u,d.f=c,d.N=0+u,d.Ab=t,d.Cd=s,d.ea=c,d.W=0+u+s,d.Db=t,d.Ed=s,12==e&&(d.F=c,d.J=0+u+2*s),d.Tc=l,d.lb=a)}if(t=1,a=i.S,s=i.width,l=i.height,a>=Li&&13>a)if(11>a)e=i.f.RGBA,t&=(o=Math.abs(e.A))*(l-1)+s<=e.size,t&=o>=s*Ra[a],t&=null!=e.eb;else{e=i.f.kb,o=(s+1)/2,u=(l+1)/2,d=Math.abs(e.fa),c=Math.abs(e.Ab);var p=Math.abs(e.Db),A=Math.abs(e.lb),h=A*(l-1)+s;t&=d*(l-1)+s<=e.Fd,t&=c*(u-1)+o<=e.Cd,t=(t&=p*(u-1)+o<=e.Ed)&d>=s&c>=o&p>=o,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==a&&(t&=A>=s,t&=h<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=n&&n.fd&&(e=Un(i)),e}var On=64,Mn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Rn=24,Qn=32,Hn=8,Vn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];M("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,n){return t[n+0]},e.Predictor3=function(e,t,n){return t[n+1]},e.Predictor4=function(e,t,n){return t[n-1]},e.Predictor5=function(e,t,n){return Q(Q(e,t[n+1]),t[n+0])},e.Predictor6=function(e,t,n){return Q(e,t[n-1])},e.Predictor7=function(e,t,n){return Q(e,t[n+0])},e.Predictor8=function(e,t,n){return Q(t[n-1],t[n+0])},e.Predictor9=function(e,t,n){return Q(t[n+0],t[n+1])},e.Predictor10=function(e,t,n){return Q(Q(e,t[n-1]),Q(t[n+0],t[n+1]))},e.Predictor11=function(e,t,n){var i=t[n+0];return 0>=z(i>>24&255,e>>24&255,(t=t[n-1])>>24&255)+z(i>>16&255,e>>16&255,t>>16&255)+z(i>>8&255,e>>8&255,t>>8&255)+z(255&i,255&e,255&t)?i:e},e.Predictor12=function(e,t,n){var i=t[n+0];return(H((e>>24&255)+(i>>24&255)-((t=t[n-1])>>24&255))<<24|H((e>>16&255)+(i>>16&255)-(t>>16&255))<<16|H((e>>8&255)+(i>>8&255)-(t>>8&255))<<8|H((255&e)+(255&i)-(255&t)))>>>0},e.Predictor13=function(e,t,n){var i=t[n-1];return(V((e=Q(e,t[n+0]))>>24&255,i>>24&255)<<24|V(e>>16&255,i>>16&255)<<16|V(e>>8&255,i>>8&255)<<8|V(255&e,255&i))>>>0};var zn=e.PredictorAdd0;e.PredictorAdd1=q,M("Predictor2","PredictorAdd2"),M("Predictor3","PredictorAdd3"),M("Predictor4","PredictorAdd4"),M("Predictor5","PredictorAdd5"),M("Predictor6","PredictorAdd6"),M("Predictor7","PredictorAdd7"),M("Predictor8","PredictorAdd8"),M("Predictor9","PredictorAdd9"),M("Predictor10","PredictorAdd10"),M("Predictor11","PredictorAdd11"),M("Predictor12","PredictorAdd12"),M("Predictor13","PredictorAdd13");var qn=e.PredictorAdd2;G("ColorIndexInverseTransform","MapARGB","32b",(function(e){return e>>8&255}),(function(e){return e})),G("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(e){return e}),(function(e){return e>>8&255}));var Wn,Yn=e.ColorIndexInverseTransform,Kn=e.MapARGB,Gn=e.VP8LColorIndexInverseTransformAlpha,$n=e.MapAlpha,Xn=e.VP8LPredictorsAdd=[];Xn.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var Jn,Zn,ei,ti,ni,ii,ai,ri,si,li,oi,di,ci,ui,pi,Ai,hi,fi,mi,vi,gi,yi,xi,bi,wi,ji,Ci,Si,Ni=r(511),Ii=r(2041),Fi=r(225),Bi=r(767),Pi=0,ki=Ii,Ti=Fi,Ei=Bi,Di=Ni,Li=0,Ui=1,_i=2,Oi=3,Mi=4,Ri=5,Qi=6,Hi=7,Vi=8,zi=9,qi=10,Wi=[2,3,7],Yi=[3,3,11],Ki=[280,256,256,256,40],Gi=[0,1,1,1,0],$i=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Xi=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Ji=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Zi=8,ea=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ta=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],na=null,ia=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],aa=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ra=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],sa=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],la=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],oa=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],da=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ca=[],ua=[],pa=[],Aa=1,ha=2,fa=[],ma=[];vn("UpsampleRgbLinePair",jn,3),vn("UpsampleBgrLinePair",Cn,3),vn("UpsampleRgbaLinePair",Bn,4),vn("UpsampleBgraLinePair",Fn,4),vn("UpsampleArgbLinePair",In,4),vn("UpsampleRgba4444LinePair",Nn,2),vn("UpsampleRgb565LinePair",Sn,2);var va=e.UpsampleRgbLinePair,ga=e.UpsampleBgrLinePair,ya=e.UpsampleRgbaLinePair,xa=e.UpsampleBgraLinePair,ba=e.UpsampleArgbLinePair,wa=e.UpsampleRgba4444LinePair,ja=e.UpsampleRgb565LinePair,Ca=16,Sa=1<<Ca-1,Na=-227,Ia=482,Fa=6,Ba=(256<<Fa)-1,Pa=0,ka=r(256),Ta=r(256),Ea=r(256),Da=r(256),La=r(Ia-Na),Ua=r(Ia-Na);Pn("YuvToRgbRow",jn,3),Pn("YuvToBgrRow",Cn,3),Pn("YuvToRgbaRow",Bn,4),Pn("YuvToBgraRow",Fn,4),Pn("YuvToArgbRow",In,4),Pn("YuvToRgba4444Row",Nn,2),Pn("YuvToRgb565Row",Sn,2);var _a=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Oa=[0,2,8],Ma=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(e,n,l,o,d){var c=Ui,u=new tn,p=new se;u.ba=p,p.S=c,p.width=[p.width],p.height=[p.height];var A=p.width,h=p.height,f=new le;if(null==f||null==e)var m=2;else t(null!=f),m=Dn(e,n,l,f.width,f.height,f.Pd,f.Qd,f.format,null);if(0!=m?A=0:(null!=A&&(A[0]=f.width[0]),null!=h&&(h[0]=f.height[0]),A=1),A){p.width=p.width[0],p.height=p.height[0],null!=o&&(o[0]=p.width),null!=d&&(d[0]=p.height);e:{if(o=new We,(d=new nn).data=e,d.w=n,d.ha=l,d.kd=1,n=[0],t(null!=d),(0==(e=Dn(d.data,d.w,d.ha,null,null,null,n,null,d))||7==e)&&n[0]&&(e=4),0==(n=e)){if(t(null!=u),o.data=d.data,o.w=d.w+d.offset,o.ha=d.ha-d.offset,o.put=Ae,o.ac=pe,o.bc=he,o.ma=u,d.xa){if(null==(e=Fe())){u=1;break e}if(function(e,n){var i=[0],a=[0],r=[0];t:for(;;){if(null==e)return 0;if(null==n)return e.a=2,0;if(e.l=n,e.a=0,v(e.m,n.data,n.w,n.ha),!fe(e.m,i,a,r)){e.a=3;break t}if(e.xb=ha,n.width=i[0],n.height=a[0],!Be(i[0],a[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,o)){if(o=0==(n=_n(o.width,o.height,u.Oa,u.ba))){t:{o=e;n:for(;;){if(null==o){o=0;break t}if(t(null!=o.s.yc),t(null!=o.s.Ya),t(0<o.s.Wb),t(null!=(l=o.l)),t(null!=(d=l.ma)),0!=o.xb){if(o.ca=d.ba,o.tb=d.tb,t(null!=o.ca),!Ln(d.Oa,l,Oi)){o.a=2;break n}if(!Pe(o,l.width))break n;if(l.da)break n;if((l.da||ie(o.ca.S))&&mn(),11>o.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=o.ca.f.kb.F&&mn()),o.Pb&&0<o.s.ua&&null==o.s.vb.X&&!E(o.s.vb,o.s.Wa.Xa)){o.a=1;break n}o.xb=0}if(!Ne(o,o.V,o.Ba,o.c,o.i,l.o,we))break n;d.Dc=o.Ma,o=1;break t}t(0!=o.a),o=0}o=!o}o&&(n=e.a)}else n=e.a}else{if(null==(e=new Ye)){u=1;break e}if(e.Fa=d.na,e.P=d.P,e.qc=d.Sa,$e(e,o)){if(0==(n=_n(o.width,o.height,u.Oa,u.ba))){if(e.Aa=0,l=u.Oa,t(null!=(d=e)),null!=l){if(0<(A=0>(A=l.Md)?0:100<A?255:255*A/100)){for(h=f=0;4>h;++h)12>(m=d.pb[h]).lc&&(m.ia=A*Ma[0>m.lc?0:m.lc]>>3),f|=m.ia;f&&(alert("todo:VP8InitRandom"),d.ia=1)}d.Ga=l.Id,100<d.Ga?d.Ga=100:0>d.Ga&&(d.Ga=0)}(function(e,n){if(null==e)return 0;if(null==n)return Ke(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!$e(e,n))return 0;if(t(e.cb),null==n.ac||n.ac(n)){n.ob&&(e.L=0);var l=Oa[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=n.v-l>>4,e.zb=n.j-l>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=n.o+15+l>>4,e.Hb=n.va+15+l>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var o=e.ed;for(l=0;4>l;++l){var d;if(e.Qa.Cb){var c=e.Qa.Lb[l];e.Qa.Fb||(c+=o.Tb)}else c=o.Tb;for(d=0;1>=d;++d){var u=e.gd[l][d],p=c;if(o.Pc&&(p+=o.vd[0],d&&(p+=o.od[0])),0<(p=0>p?0:63<p?63:p)){var A=p;0<o.wb&&(A=4<o.wb?A>>2:A>>1)>9-o.wb&&(A=9-o.wb),1>A&&(A=1),u.dd=A,u.tc=2*p+A,u.ld=40<=p?2:15<=p?1:0}else u.tc=0;u.La=d}}}l=0}else Ke(e,6,"Frame setup failed"),l=e.a;if(l=0==l){if(l){e.$c=0,0<e.Aa||(e.Ic=1);t:{l=e.Ic,o=4*(A=e.za);var h=32*A,f=A+1,m=0<e.L?A*(0<e.Aa?2:1):0,v=(2==e.Aa?2:1)*A;if((u=o+832+(d=3*(16*l+Oa[e.L])/2*h)+(c=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=u)l=0;else{if(u>e.Vb){if(e.Vb=0,e.Ec=r(u),e.Fc=0,null==e.Ec){l=Ke(e,1,"no memory during frame initialization.");break t}e.Vb=u}u=e.Ec,p=e.Fc,e.Ac=u,e.Bc=p,p+=o,e.Gd=s(h,Ve),e.Hd=0,e.rb=s(f+1,Me),e.sb=1,e.wa=m?s(m,Oe):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=A),t(!0),e.oc=u,e.pc=p,p+=832,e.ya=s(v,Qe),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=A),e.R=16*A,e.B=8*A,A=(h=Oa[e.L])*e.R,h=h/2*e.B,e.sa=u,e.ta=p+A,e.qa=e.sa,e.ra=e.ta+16*l*e.R+h,e.Ha=e.qa,e.Ia=e.ra+8*l*e.B+h,e.$c=0,p+=d,e.mb=c?u:null,e.nb=c?p:null,t(p+c<=e.Fc+e.Vb),Je(e),a(e.Ac,e.Bc,0,o),l=1}}if(l){if(n.ka=0,n.y=e.sa,n.O=e.ta,n.f=e.qa,n.N=e.ra,n.ea=e.Ha,n.Vd=e.Ia,n.fa=e.R,n.Rc=e.B,n.F=null,n.J=0,!Pi){for(l=-255;255>=l;++l)Ni[255+l]=0>l?-l:l;for(l=-1020;1020>=l;++l)Ii[1020+l]=-128>l?-128:127<l?127:l;for(l=-112;112>=l;++l)Fi[112+l]=-16>l?-16:15<l?15:l;for(l=-255;510>=l;++l)Bi[255+l]=0>l?0:255<l?255:l;Pi=1}ai=ot,ri=at,li=rt,oi=st,di=lt,si=it,ci=Yt,ui=Kt,pi=Xt,Ai=Jt,hi=Gt,fi=$t,mi=Zt,vi=en,gi=Qt,yi=Ht,xi=Vt,bi=zt,ua[0]=jt,ua[1]=ct,ua[2]=bt,ua[3]=wt,ua[4]=Ct,ua[5]=Nt,ua[6]=St,ua[7]=It,ua[8]=Bt,ua[9]=Ft,ca[0]=mt,ca[1]=pt,ca[2]=At,ca[3]=ht,ca[4]=vt,ca[5]=gt,ca[6]=yt,pa[0]=Et,pa[1]=ut,pa[2]=Pt,pa[3]=kt,pa[4]=Lt,pa[5]=Dt,pa[6]=Ut,l=1}else l=0}l&&(l=function(e,n){for(e.M=0;e.M<e.Va;++e.M){var s,l=e.Jc[e.M&e.Xb],o=e.m,d=e;for(s=0;s<d.za;++s){var c=o,u=d,p=u.Ac,A=u.Bc+4*s,h=u.zc,f=u.ya[u.aa+s];if(u.Qa.Bb?f.$b=F(c,u.Pa.jb[0])?2+F(c,u.Pa.jb[2]):F(c,u.Pa.jb[1]):f.$b=0,u.kc&&(f.Ad=F(c,u.Bd)),f.Za=!F(c,145)+0,f.Za){var m=f.Ob,v=0;for(u=0;4>u;++u){var g,y=h[0+u];for(g=0;4>g;++g){y=la[p[A+g]][y];for(var x=ra[F(c,y[0])];0<x;)x=ra[2*x+F(c,y[x])];y=-x,p[A+g]=y}i(m,v,p,A,4),v+=4,h[0+u]=y}}else y=F(c,156)?F(c,128)?1:3:F(c,163)?2:0,f.Ob[0]=y,a(p,A,y,4),a(h,0,y,4);f.Dd=F(c,142)?F(c,114)?F(c,183)?1:3:2:0}if(d.m.Ka)return Ke(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(d=l,c=(o=e).rb[o.sb-1],p=o.rb[o.sb+o.ja],s=o.ya[o.aa+o.ja],A=o.kc?s.Ad:0)c.la=p.la=0,s.Za||(c.Na=p.Na=0),s.Hc=0,s.Gc=0,s.ia=0;else{var b,w;if(c=p,p=d,A=o.Pa.Xc,h=o.ya[o.aa+o.ja],f=o.pb[h.$b],u=h.ad,m=0,v=o.rb[o.sb-1],y=g=0,a(u,m,0,384),h.Za)var j=0,C=A[3];else{x=r(16);var S=c.Na+v.Na;if(S=na(p,A[1],S,f.Eb,0,x,0),c.Na=v.Na=(0<S)+0,1<S)ai(x,0,u,m);else{var N=x[0]+3>>3;for(x=0;256>x;x+=16)u[m+x]=N}j=1,C=A[0]}var I=15&c.la,B=15&v.la;for(x=0;4>x;++x){var P=1&B;for(N=w=0;4>N;++N)I=I>>1|(P=(S=na(p,C,S=P+(1&I),f.Sc,j,u,m))>j)<<7,w=w<<2|(3<S?3:1<S?2:0!=u[m+0]),m+=16;I>>=4,B=B>>1|P<<7,g=(g<<8|w)>>>0}for(C=I,j=B>>4,b=0;4>b;b+=2){for(w=0,I=c.la>>4+b,B=v.la>>4+b,x=0;2>x;++x){for(P=1&B,N=0;2>N;++N)S=P+(1&I),I=I>>1|(P=0<(S=na(p,A[2],S,f.Qc,0,u,m)))<<3,w=w<<2|(3<S?3:1<S?2:0!=u[m+0]),m+=16;I>>=2,B=B>>1|P<<5}y|=w<<4*b,C|=I<<4<<b,j|=(240&B)<<b}c.la=C,v.la=j,h.Hc=g,h.Gc=y,h.ia=43690&y?0:f.ia,A=!(g|y)}if(0<o.L&&(o.wa[o.Y+o.ja]=o.gd[s.$b][s.Za],o.wa[o.Y+o.ja].La|=!A),d.Ka)return Ke(e,7,"Premature end-of-file encountered.")}if(Je(e),o=n,d=1,s=(l=e).D,c=0<l.L&&l.M>=l.zb&&l.M<=l.Va,0==l.Aa)t:{if(s.M=l.M,s.uc=c,En(l,s),d=1,s=(w=l.D).Nb,c=(y=Oa[l.L])*l.R,p=y/2*l.B,x=16*s*l.R,N=8*s*l.B,A=l.sa,h=l.ta-c+x,f=l.qa,u=l.ra-p+N,m=l.Ha,v=l.Ia-p+N,B=0==(I=w.M),g=I>=l.Va-1,2==l.Aa&&En(l,w),w.uc)for(P=(S=l).D.M,t(S.D.uc),w=S.yb;w<S.Hb;++w){j=w,C=P;var k=(T=(Q=S).D).Nb;b=Q.R;var T=T.wa[T.Y+j],E=Q.sa,D=Q.ta+16*k*b+16*j,L=T.dd,U=T.tc;if(0!=U)if(t(3<=U),1==Q.L)0<j&&yi(E,D,b,U+4),T.La&&bi(E,D,b,U),0<C&&gi(E,D,b,U+4),T.La&&xi(E,D,b,U);else{var _=Q.B,O=Q.qa,M=Q.ra+8*k*_+8*j,R=Q.Ha,Q=Q.Ia+8*k*_+8*j;k=T.ld,0<j&&(ui(E,D,b,U+4,L,k),Ai(O,M,R,Q,_,U+4,L,k)),T.La&&(fi(E,D,b,U,L,k),vi(O,M,R,Q,_,U,L,k)),0<C&&(ci(E,D,b,U+4,L,k),pi(O,M,R,Q,_,U+4,L,k)),T.La&&(hi(E,D,b,U,L,k),mi(O,M,R,Q,_,U,L,k))}}if(l.ia&&alert("todo:DitherRow"),null!=o.put){if(w=16*I,I=16*(I+1),B?(o.y=l.sa,o.O=l.ta+x,o.f=l.qa,o.N=l.ra+N,o.ea=l.Ha,o.W=l.Ia+N):(w-=y,o.y=A,o.O=h,o.f=f,o.N=u,o.ea=m,o.W=v),g||(I-=y),I>o.o&&(I=o.o),o.F=null,o.J=null,null!=l.Fa&&0<l.Fa.length&&w<I&&(o.J=un(l,o,w,I-w),o.F=l.mb,null==o.F&&0==o.F.length)){d=Ke(l,3,"Could not decode alpha data.");break t}w<o.j&&(y=o.j-w,w=o.j,t(!(1&y)),o.O+=l.R*y,o.N+=l.B*(y>>1),o.W+=l.B*(y>>1),null!=o.F&&(o.J+=o.width*y)),w<I&&(o.O+=o.v,o.N+=o.v>>1,o.W+=o.v>>1,null!=o.F&&(o.J+=o.v),o.ka=w-o.j,o.U=o.va-o.v,o.T=I-w,d=o.put(o))}s+1!=l.Ic||g||(i(l.sa,l.ta-c,A,h+16*l.R,c),i(l.qa,l.ra-p,f,u+8*l.B,p),i(l.Ha,l.Ia-p,m,v+8*l.B,p))}if(!d)return Ke(e,6,"Output aborted.")}return 1}(e,n)),null!=n.bc&&n.bc(n),l&=1}return l?(e.cb=0,l):0})(e,o)||(n=e.a)}}else n=e.a}0==n&&null!=u.Oa&&u.Oa.fd&&(n=Un(u.ba))}u=n}c=0!=u?null:11>c?p.f.RGBA.eb:p.f.kb.y}else c=null;return c};var Ra=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(e,t){for(var n="",i=0;i<4;i++)n+=String.fromCharCode(e[t++]);return n}function c(e,t){return e[t+0]|e[t+1]<<8}function u(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16)>>>0}function p(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new o;var A=[0],h=[0],f=[],m=new o,v=e,g=function(e,t){var n={},i=0,a=!1,r=0,s=0;if(n.frames=[],!
|
||
/** @license
|
||
* Copyright (c) 2017 Dominik Homberger
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
https://webpjs.appspot.com
|
||
WebPRiffParser dominikhlbg@gmail.com
|
||
*/
|
||
function(e,t){for(var n=0;n<4;n++)if(e[t+n]!="RIFF".charCodeAt(n))return!0;return!1}(e,t)){for(p(e,t+=4),t+=8;t<e.length;){var l=d(e,t),o=p(e,t+=4);t+=4;var A=o+(1&o);switch(l){case"VP8 ":case"VP8L":void 0===n.frames[i]&&(n.frames[i]={}),(m=n.frames[i]).src_off=a?s:t-8,m.src_size=r+o+8,i++,a&&(a=!1,r=0,s=0);break;case"VP8X":(m=n.header={}).feature_flags=e[t];var h=t+4;m.canvas_width=1+u(e,h),h+=3,m.canvas_height=1+u(e,h),h+=3;break;case"ALPH":a=!0,r=A+8,s=t-8;break;case"ANIM":(m=n.header).bgcolor=p(e,t),h=t+4,m.loop_count=c(e,h),h+=2;break;case"ANMF":var f,m;(m=n.frames[i]={}).offset_x=2*u(e,t),t+=3,m.offset_y=2*u(e,t),t+=3,m.width=1+u(e,t),t+=3,m.height=1+u(e,t),t+=3,m.duration=u(e,t),t+=3,f=e[t++],m.dispose=1&f,m.blend=f>>1&1}"ANMF"!=l&&(t+=A)}return n}}(v,0);g.response=v,g.rgbaoutput=!0,g.dataurl=!1;var y=g.header?g.header:null,x=g.frames?g.frames:null;if(y){y.loop_counter=y.loop_count,A=[y.canvas_height],h=[y.canvas_width];for(var b=0;b<x.length&&0!=x[b].blend;b++);}var w=x[0],j=m.WebPDecodeRGBA(v,w.src_off,w.src_size,h,A);w.rgba=j,w.imgwidth=h[0],w.imgheight=A[0];for(var C=0;C<h[0]*A[0]*4;C++)f[C]=j[C];return this.width=h,this.height=A,this.data=f,this}!function(e){var t,n,i,a,r,s,l,o,d,c=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new o,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new s,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new s,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new u(this),t=this.internal.f2,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,r=this.internal.getVerticalCoordinate,s=this.internal.Point,l=this.internal.Rectangle,o=this.internal.Matrix,d=new c}]);var u=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var i=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return i},set:function(e){i=Boolean(e)}});var a=0;Object.defineProperty(this,"posX",{get:function(){return a},set:function(e){isNaN(e)||(a=e)}});var r=0;Object.defineProperty(this,"posY",{get:function(){return r},set:function(e){isNaN(e)||(r=e)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(e){var t;"number"==typeof e?t=[e,e,e,e]:((t=new Array(4))[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),d.margin=t}});var s=!1;Object.defineProperty(this,"autoPaging",{get:function(){return s},set:function(e){s=e}});var l=0;Object.defineProperty(this,"lastBreak",{get:function(){return l},set:function(e){l=e}});var o=[];Object.defineProperty(this,"pageBreaks",{get:function(){return o},set:function(e){o=e}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(e){e instanceof c&&(d=e)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(e){d.path=e}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(e){u=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=A(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=A(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var p=null,h=null;Object.defineProperty(this,"fontFaces",{get:function(){return h},set:function(e){p=null,h=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(e))){var n=t[1];t[2];var i=t[3],a=t[4];t[5];var r=t[6],s=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(a)[2];a="px"===s?Math.floor(parseFloat(a)*this.pdf.internal.scaleFactor):"em"===s?Math.floor(parseFloat(a)*this.pdf.getFontSize()):Math.floor(parseFloat(a)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(a);var l=function(e){var t,n,i=[],a=e.trim();if(""===a)return op;if(a in Gu)return[Gu[a]];for(;""!==a;){switch(n=null,t=(a=Xu(a)).charAt(0)){case'"':case"'":n=Ju(a.substring(1),t);break;default:n=Zu(a)}if(null===n)return op;if(i.push(n[0]),""!==(a=Xu(n[1]))&&","!==a.charAt(0))return op;a=a.replace(/^,/,"")}return i}(r);if(this.fontFaces){var o=function(e,t,n){for(var i=(n=n||{}).defaultFontFamily||"times",a=Object.assign({},Ku,n.genericFontFamilies||{}),r=null,s=null,l=0;l<t.length;++l)if(a[(r=Wu(t[l])).family]&&(r.family=a[r.family]),e.hasOwnProperty(r.family)){s=e[r.family];break}if(!(s=s||e[i]))throw new Error("Could not find a font-family for the rule '"+$u(r)+"' and default family '"+i+"'.");if(s=function(e,t){if(t[e])return t[e];var n=Vu[e],i=n<=Vu.normal?-1:1,a=Yu(t,Hu,n,i);if(!a)throw new Error("Could not find a matching font-stretch value for "+e);return a}(r.stretch,s),s=function(e,t){if(t[e])return t[e];for(var n=Qu[e],i=0;i<n.length;++i)if(t[n[i]])return t[n[i]];throw new Error("Could not find a matching font-style for "+e)}(r.style,s),!(s=function(e,t){if(t[e])return t[e];if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var n=qu[e],i=Yu(t,zu,n,e<400?-1:1);if(!i)throw new Error("Could not find a matching font-weight for value "+e);return i}(r.weight,s)))throw new Error("Failed to resolve a font for the rule '"+$u(r)+"'.");return s}(function(e,t){if(null===p){var n=(i=e.getFontList(),a=[],Object.keys(i).forEach((function(e){i[e].forEach((function(t){var n=null;switch(t){case"bold":n={family:e,weight:"bold"};break;case"italic":n={family:e,style:"italic"};break;case"bolditalic":n={family:e,weight:"bold",style:"italic"};break;case"":case"normal":n={family:e}}null!==n&&(n.ref={name:e,style:t},a.push(n))}))})),a);p=function(e){for(var t={},n=0;n<e.length;++n){var i=Wu(e[n]),a=i.family,r=i.stretch,s=i.style,l=i.weight;t[a]=t[a]||{},t[a][r]=t[a][r]||{},t[a][r][s]=t[a][r][s]||{},t[a][r][s][l]=i}return t}(n.concat(t))}var i,a;return p}(this.pdf,this.fontFaces),l.map((function(e){return{family:e,stretch:"normal",weight:i,style:n}})));this.pdf.setFont(o.ref.name,o.ref.style)}else{var d="";("bold"===i||parseInt(i,10)>=700||"bold"===n)&&(d="bold"),"italic"===n&&(d+="italic"),0===d.length&&(d="normal");for(var c="",u={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},A=0;A<l.length;A++){if(void 0!==this.pdf.internal.getFont(l[A],d,{noFallback:!0,disableWarning:!0})){c=l[A];break}if("bolditalic"===d&&void 0!==this.pdf.internal.getFont(l[A],"bold",{noFallback:!0,disableWarning:!0}))c=l[A],d="bold";else if(void 0!==this.pdf.internal.getFont(l[A],"normal",{noFallback:!0,disableWarning:!0})){c=l[A],d="normal";break}}if(""===c)for(var h=0;h<l.length;h++)if(u[l[h]]){c=u[l[h]];break}c=""===c?"Times":c,this.pdf.setFont(c,d)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,O.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,O.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};u.prototype.setLineDash=function(e){this.lineDash=e},u.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},u.prototype.fill=function(){b.call(this,"fill",!1)},u.prototype.stroke=function(){b.call(this,"stroke",!1)},u.prototype.beginPath=function(){this.path=[{type:"begin"}]},u.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw yc.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(e,t)},u.prototype.closePath=function(){var e=new s(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===p(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new s(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(e.x,e.y)},u.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw yc.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},u.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),b.call(this,null,!0)},u.prototype.quadraticCurveTo=function(e,t,n,i){if(isNaN(n)||isNaN(i)||isNaN(e)||isNaN(t))throw yc.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var a=this.ctx.transform.applyToPoint(new s(n,i)),r=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"qct",x1:r.x,y1:r.y,x:a.x,y:a.y}),this.ctx.lastPoint=new s(a.x,a.y)},u.prototype.bezierCurveTo=function(e,t,n,i,a,r){if(isNaN(a)||isNaN(r)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw yc.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var l=this.ctx.transform.applyToPoint(new s(a,r)),o=this.ctx.transform.applyToPoint(new s(e,t)),d=this.ctx.transform.applyToPoint(new s(n,i));this.path.push({type:"bct",x1:o.x,y1:o.y,x2:d.x,y2:d.y,x:l.x,y:l.y}),this.ctx.lastPoint=new s(l.x,l.y)},u.prototype.arc=function(e,t,n,i,a,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(a))throw yc.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(r=Boolean(r),!this.ctx.transform.isIdentity){var l=this.ctx.transform.applyToPoint(new s(e,t));e=l.x,t=l.y;var o=this.ctx.transform.applyToPoint(new s(0,n)),d=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt(Math.pow(o.x-d.x,2)+Math.pow(o.y-d.y,2))}Math.abs(a-i)>=2*Math.PI&&(i=0,a=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:n,startAngle:i,endAngle:a,counterclockwise:r})},u.prototype.arcTo=function(e,t,n,i,a){throw new Error("arcTo not implemented.")},u.prototype.rect=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw yc.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+i),this.lineTo(e,t+i),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},u.prototype.fillRect=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw yc.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var a={};"butt"!==this.lineCap&&(a.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(a.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,n,i),this.fill(),a.hasOwnProperty("lineCap")&&(this.lineCap=a.lineCap),a.hasOwnProperty("lineJoin")&&(this.lineJoin=a.lineJoin)}},u.prototype.strokeRect=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw yc.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");f.call(this)||(this.beginPath(),this.rect(e,t,n,i),this.stroke())},u.prototype.clearRect=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw yc.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,n,i))},u.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var i=new c(this.ctx);this.ctxStack.push(this.ctx),this.ctx=i}},u.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},u.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var A=function(e){var t,n,i,a;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,n=0,i=0,a=0;else{var r=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==r)t=parseInt(r[1]),n=parseInt(r[2]),i=parseInt(r[3]),a=1;else if(null!==(r=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(r[1]),n=parseInt(r[2]),i=parseInt(r[3]),a=parseFloat(r[4]);else{if(a=1,"string"==typeof e&&"#"!==e.charAt(0)){var s=new Cc(e);e=s.ok?s.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,i=e.substring(3,4),i+=i):(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),i=parseInt(i,16)}}return{r:t,g:n,b:i,a:a,style:e}},h=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},f=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};u.prototype.fillText=function(e,t,n,i){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw yc.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(i=isNaN(i)?void 0:i,!h.call(this)){var a=L(this.ctx.transform.rotation),r=this.ctx.transform.scaleX;B.call(this,{text:e,x:t,y:n,scale:r,angle:a,align:this.textAlign,maxWidth:i})}},u.prototype.strokeText=function(e,t,n,i){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw yc.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!f.call(this)){i=isNaN(i)?void 0:i;var a=L(this.ctx.transform.rotation),r=this.ctx.transform.scaleX;B.call(this,{text:e,x:t,y:n,scale:r,renderingMode:"stroke",angle:a,align:this.textAlign,maxWidth:i})}},u.prototype.measureText=function(e){if("string"!=typeof e)throw yc.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,n=this.pdf.internal.scaleFactor,i=t.internal.getFontSize(),a=t.getStringUnitWidth(e)*i/t.internal.scaleFactor;return new function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:a*=Math.round(96*n/72*1e4)/1e4})},u.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw yc.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new o(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},u.prototype.rotate=function(e){if(isNaN(e))throw yc.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new o(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},u.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw yc.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new o(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},u.prototype.transform=function(e,t,n,i,a,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(a)||isNaN(r))throw yc.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new o(e,t,n,i,a,r);this.ctx.transform=this.ctx.transform.multiply(s)},u.prototype.setTransform=function(e,t,n,i,a,r){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,i=isNaN(i)?1:i,a=isNaN(a)?0:a,r=isNaN(r)?0:r,this.ctx.transform=new o(e,t,n,i,a,r)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};u.prototype.drawImage=function(e,t,n,i,a,r,s,d,c){var u=this.pdf.getImageProperties(e),p=1,A=1,h=1,f=1;void 0!==i&&void 0!==d&&(h=d/i,f=c/a,p=u.width/i*d/i,A=u.height/a*c/a),void 0===r&&(r=t,s=n,t=0,n=0),void 0!==i&&void 0===d&&(d=i,c=a),void 0===i&&void 0===d&&(d=u.width,c=u.height);for(var g,b=this.ctx.transform.decompose(),j=L(b.rotate.shx),C=new o,S=(C=(C=(C=C.multiply(b.translate)).multiply(b.skew)).multiply(b.scale)).applyToRectangle(new l(r-t*h,s-n*f,i*p,a*A)),N=v.call(this,S),I=[],F=0;F<N.length;F+=1)-1===I.indexOf(N[F])&&I.push(N[F]);if(x(I),this.autoPaging)for(var B=I[0],P=I[I.length-1],k=B;k<P+1;k++){this.pdf.setPage(k);var T=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],E=1===k?this.posY+this.margin[0]:this.margin[0],D=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],U=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],_=1===k?0:D+(k-2)*U;if(0!==this.ctx.clip_path.length){var O=this.path;g=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(g,this.posX+this.margin[3],-_+E+this.ctx.prevPageLastElemOffset),w.call(this,"fill",!0),this.path=O}var M=JSON.parse(JSON.stringify(S));M=y([M],this.posX+this.margin[3],-_+E+this.ctx.prevPageLastElemOffset)[0];var R=(k>B||k<P)&&m.call(this);R&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],T,U,null).clip().discardPath()),this.pdf.addImage(e,"JPEG",M.x,M.y,M.w,M.h,null,null,j),R&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(e,"JPEG",S.x,S.y,S.w,S.h,null,null,j)};var v=function(e,t,n){var i=[];t=t||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var a=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case"mt":case"lt":i.push(Math.floor((e.y+a)/n)+1);break;case"arc":i.push(Math.floor((e.y+a-e.radius)/n)+1),i.push(Math.floor((e.y+a+e.radius)/n)+1);break;case"qct":var r=U(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);i.push(Math.floor((r.y+a)/n)+1),i.push(Math.floor((r.y+r.h+a)/n)+1);break;case"bct":var s=_(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);i.push(Math.floor((s.y+a)/n)+1),i.push(Math.floor((s.y+s.h+a)/n)+1);break;case"rect":i.push(Math.floor((e.y+a)/n)+1),i.push(Math.floor((e.y+e.h+a)/n)+1)}for(var l=0;l<i.length;l+=1)for(;this.pdf.internal.getNumberOfPages()<i[l];)g.call(this);return i},g=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,i=this.lineCap,a=this.lineWidth,r=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=i,this.lineWidth=a,this.lineJoin=r},y=function(e,t,n){for(var i=0;i<e.length;i++)switch(e[i].type){case"bct":e[i].x2+=t,e[i].y2+=n;case"qct":e[i].x1+=t,e[i].y1+=n;default:e[i].x+=t,e[i].y+=n}return e},x=function(e){return e.sort((function(e,t){return e-t}))},b=function(e,t){for(var n,i,a=this.fillStyle,r=this.strokeStyle,s=this.lineCap,l=this.lineWidth,o=Math.abs(l*this.ctx.transform.scaleX),d=this.lineJoin,c=JSON.parse(JSON.stringify(this.path)),u=JSON.parse(JSON.stringify(this.path)),p=[],A=0;A<u.length;A++)if(void 0!==u[A].x)for(var h=v.call(this,u[A]),f=0;f<h.length;f+=1)-1===p.indexOf(h[f])&&p.push(h[f]);for(var b=0;b<p.length;b++)for(;this.pdf.internal.getNumberOfPages()<p[b];)g.call(this);if(x(p),this.autoPaging)for(var j=p[0],C=p[p.length-1],S=j;S<C+1;S++){this.pdf.setPage(S),this.fillStyle=a,this.strokeStyle=r,this.lineCap=s,this.lineWidth=o,this.lineJoin=d;var N=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],I=1===S?this.posY+this.margin[0]:this.margin[0],F=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],B=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],P=1===S?0:F+(S-2)*B;if(0!==this.ctx.clip_path.length){var k=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(n,this.posX+this.margin[3],-P+I+this.ctx.prevPageLastElemOffset),w.call(this,e,!0),this.path=k}if(i=JSON.parse(JSON.stringify(c)),this.path=y(i,this.posX+this.margin[3],-P+I+this.ctx.prevPageLastElemOffset),!1===t||0===S){var T=(S>j||S<C)&&m.call(this);T&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],N,B,null).clip().discardPath()),w.call(this,e,t),T&&this.pdf.restoreGraphicsState()}this.lineWidth=l}else this.lineWidth=o,w.call(this,e,t),this.lineWidth=l;this.path=c},w=function(e,t){if(("stroke"!==e||t||!f.call(this))&&("stroke"===e||t||!h.call(this))){for(var n,i,a=[],r=this.path,s=0;s<r.length;s++){var l=r[s];switch(l.type){case"begin":a.push({begin:!0});break;case"close":a.push({close:!0});break;case"mt":a.push({start:l,deltas:[],abs:[]});break;case"lt":var o=a.length;if(r[s-1]&&!isNaN(r[s-1].x)&&(n=[l.x-r[s-1].x,l.y-r[s-1].y],o>0))for(;o>=0;o--)if(!0!==a[o-1].close&&!0!==a[o-1].begin){a[o-1].deltas.push(n),a[o-1].abs.push(l);break}break;case"bct":n=[l.x1-r[s-1].x,l.y1-r[s-1].y,l.x2-r[s-1].x,l.y2-r[s-1].y,l.x-r[s-1].x,l.y-r[s-1].y],a[a.length-1].deltas.push(n);break;case"qct":var d=r[s-1].x+2/3*(l.x1-r[s-1].x),c=r[s-1].y+2/3*(l.y1-r[s-1].y),u=l.x+2/3*(l.x1-l.x),p=l.y+2/3*(l.y1-l.y),A=l.x,m=l.y;n=[d-r[s-1].x,c-r[s-1].y,u-r[s-1].x,p-r[s-1].y,A-r[s-1].x,m-r[s-1].y],a[a.length-1].deltas.push(n);break;case"arc":a.push({deltas:[],abs:[],arc:!0}),Array.isArray(a[a.length-1].abs)&&a[a.length-1].abs.push(l)}}i=t?null:"stroke"===e?"stroke":"fill";for(var v=!1,g=0;g<a.length;g++)if(a[g].arc)for(var y=a[g].abs,x=0;x<y.length;x++){var b=y[x];"arc"===b.type?S.call(this,b.x,b.y,b.radius,b.startAngle,b.endAngle,b.counterclockwise,void 0,t,!v):P.call(this,b.x,b.y),v=!0}else if(!0===a[g].close)this.pdf.internal.out("h"),v=!1;else if(!0!==a[g].begin){var w=a[g].start.x,j=a[g].start.y;k.call(this,a[g].deltas,w,j),v=!0}i&&N.call(this,i),t&&I.call(this)}},j=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-n;case"top":return e+t-n;case"hanging":return e+t-2*n;case"middle":return e+t/2-n;default:return e}},C=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};u.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},u.prototype.createPattern=function(){return this.createLinearGradient()},u.prototype.createRadialGradient=function(){return this.createLinearGradient()};var S=function(e,t,n,i,a,r,s,l,o){for(var d=E.call(this,n,i,a,r),c=0;c<d.length;c++){var u=d[c];0===c&&(o?F.call(this,u.x1+e,u.y1+t):P.call(this,u.x1+e,u.y1+t)),T.call(this,e,t,u.x2,u.y2,u.x3,u.y3,u.x4,u.y4)}l?I.call(this):N.call(this,s)},N=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},I=function(){this.pdf.clip(),this.pdf.discardPath()},F=function(e,t){this.pdf.internal.out(n(e)+" "+i(t)+" m")},B=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var n=this.pdf.getTextDimensions(e.text),i=j.call(this,e.y),a=C.call(this,i)-n.h,r=this.ctx.transform.applyToPoint(new s(e.x,i)),d=this.ctx.transform.decompose(),c=new o;c=(c=(c=c.multiply(d.translate)).multiply(d.skew)).multiply(d.scale);for(var u,p,A,h=this.ctx.transform.applyToRectangle(new l(e.x,i,n.w,n.h)),f=c.applyToRectangle(new l(e.x,a,n.w,n.h)),g=v.call(this,f),b=[],S=0;S<g.length;S+=1)-1===b.indexOf(g[S])&&b.push(g[S]);if(x(b),this.autoPaging)for(var N=b[0],I=b[b.length-1],F=N;F<I+1;F++){this.pdf.setPage(F);var B=1===F?this.posY+this.margin[0]:this.margin[0],P=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[2],T=k-this.margin[0],E=this.pdf.internal.pageSize.width-this.margin[1],D=E-this.margin[3],L=1===F?0:P+(F-2)*T;if(0!==this.ctx.clip_path.length){var U=this.path;u=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(u,this.posX+this.margin[3],-1*L+B),w.call(this,"fill",!0),this.path=U}var _=y([JSON.parse(JSON.stringify(f))],this.posX+this.margin[3],-L+B+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(p=this.pdf.internal.getFontSize(),this.pdf.setFontSize(p*e.scale),A=this.lineWidth,this.lineWidth=A*e.scale);var O="text"!==this.autoPaging;if(O||_.y+_.h<=k){if(O||_.y>=B&&_.x<=E){var M=O?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||E-_.x)[0],R=y([JSON.parse(JSON.stringify(h))],this.posX+this.margin[3],-L+B+this.ctx.prevPageLastElemOffset)[0],Q=O&&(F>N||F<I)&&m.call(this);Q&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],D,T,null).clip().discardPath()),this.pdf.text(M,R.x,R.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),Q&&this.pdf.restoreGraphicsState()}}else _.y<k&&(this.ctx.prevPageLastElemOffset+=k-_.y);e.scale>=.01&&(this.pdf.setFontSize(p),this.lineWidth=A)}else e.scale>=.01&&(p=this.pdf.internal.getFontSize(),this.pdf.setFontSize(p*e.scale),A=this.lineWidth,this.lineWidth=A*e.scale),this.pdf.text(e.text,r.x+this.posX,r.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(p),this.lineWidth=A)},P=function(e,t,a,r){a=a||0,r=r||0,this.pdf.internal.out(n(e+a)+" "+i(t+r)+" l")},k=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},T=function(e,n,i,s,l,o,d,c){this.pdf.internal.out([t(a(i+e)),t(r(s+n)),t(a(l+e)),t(r(o+n)),t(a(d+e)),t(r(c+n)),"c"].join(" "))},E=function(e,t,n,i){for(var a=2*Math.PI,r=Math.PI/2;t>n;)t-=a;var s=Math.abs(n-t);s<a&&i&&(s=a-s);for(var l=[],o=i?-1:1,d=t;s>1e-5;){var c=d+o*Math.min(s,r);l.push(D.call(this,e,d,c)),s-=Math.abs(c-d),d=c}return l},D=function(e,t,n){var i=(n-t)/2,a=e*Math.cos(i),r=e*Math.sin(i),s=a,l=-r,o=s*s+l*l,d=o+s*a+l*r,c=4/3*(Math.sqrt(2*o*d)-d)/(s*r-l*a),u=s-c*l,p=l+c*s,A=u,h=-p,f=i+t,m=Math.cos(f),v=Math.sin(f);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:u*m-p*v,y2:u*v+p*m,x3:A*m-h*v,y3:A*v+h*m,x4:e*Math.cos(n),y4:e*Math.sin(n)}},L=function(e){return 180*e/Math.PI},U=function(e,t,n,i,a,r){var s=e+.5*(n-e),o=t+.5*(i-t),d=a+.5*(n-a),c=r+.5*(i-r),u=Math.min(e,a,s,d),p=Math.max(e,a,s,d),A=Math.min(t,r,o,c),h=Math.max(t,r,o,c);return new l(u,A,p-u,h-A)},_=function(e,t,n,i,a,r,s,o){var d,c,u,p,A,h,f,m,v,g,y,x,b,w,j=n-e,C=i-t,S=a-n,N=r-i,I=s-a,F=o-r;for(c=0;c<41;c++)v=(f=(u=e+(d=c/40)*j)+d*((A=n+d*S)-u))+d*(A+d*(a+d*I-A)-f),g=(m=(p=t+d*C)+d*((h=i+d*N)-p))+d*(h+d*(r+d*F-h)-m),0==c?(y=v,x=g,b=v,w=g):(y=Math.min(y,v),x=Math.min(x,g),b=Math.max(b,v),w=Math.max(w,g));return new l(Math.round(y),Math.round(x),Math.round(b-y),Math.round(w-x))},O=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,n=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}($c.API),
|
||
/**
|
||
* @license
|
||
* jsPDF filters PlugIn
|
||
* Copyright (c) 2014 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t=function(e){var t,n,i,a,r,s,l,o,d,c;for(n=[],i=0,a=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;a>i;i+=4)0!==(r=(e.charCodeAt(i)<<24)+(e.charCodeAt(i+1)<<16)+(e.charCodeAt(i+2)<<8)+e.charCodeAt(i+3))?(s=(r=((r=((r=((r=(r-(c=r%85))/85)-(d=r%85))/85)-(o=r%85))/85)-(l=r%85))/85)%85,n.push(s+33,l+33,o+33,d+33,c+33)):n.push(122);return function(e,t){for(var n=t;n>0;n--)e.pop()}(n,t.length),String.fromCharCode.apply(String,n)+"~>"},n=function(e){var t,n,i,a,r,s=String,l="length",o=255,d="charCodeAt",c="slice",u="replace";for(e[c](-2),e=e[c](0,-2)[u](/\s/g,"")[u]("z","!!!!!"),i=[],a=0,r=(e+=t="uuuuu"[c](e[l]%5||5))[l];r>a;a+=5)n=52200625*(e[d](a)-33)+614125*(e[d](a+1)-33)+7225*(e[d](a+2)-33)+85*(e[d](a+3)-33)+(e[d](a+4)-33),i.push(o&n>>24,o&n>>16,o&n>>8,o&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(i,t[l]),s.fromCharCode.apply(s,i)},i=function(e){return e.split("").map((function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)})).join("")+">"},a=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var n="",i=0;i<e.length;i+=2)n+=String.fromCharCode("0x"+(e[i]+e[i+1]));return n},r=function(e){for(var t=new Uint8Array(e.length),n=e.length;n--;)t[n]=e.charCodeAt(n);return(t=ns(t)).reduce((function(e,t){return e+String.fromCharCode(t)}),"")};e.processDataByFilters=function(e,s){var l=0,o=e||"",d=[];for("string"==typeof(s=s||[])&&(s=[s]),l=0;l<s.length;l+=1)switch(s[l]){case"ASCII85Decode":case"/ASCII85Decode":o=n(o),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":o=t(o),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":o=a(o),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":o=i(o),d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":o=r(o),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[l]+'" is not implemented')}return{data:o,reverseChain:d.reverse().join(" ")}}}($c.API),
|
||
/**
|
||
* @license
|
||
* jsPDF fileloading PlugIn
|
||
* Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){e.loadFile=function(e,t,n){return function(e,t,n){t=!1!==t,n="function"==typeof n?n:function(){};var i=void 0;try{i=function(e,t,n){var i=new XMLHttpRequest,a=0,r=function(e){var t=e.length,n=[],i=String.fromCharCode;for(a=0;a<t;a+=1)n.push(i(255&e.charCodeAt(a)));return n.join("")};if(i.open("GET",e,!t),i.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(i.onload=function(){200===i.status?n(r(this.responseText)):n(void 0)}),i.send(null),t&&200===i.status)return r(i.responseText)}(e,t,n)}catch(a){}return i}(e,t,n)},e.loadImageFile=e.loadFile}($c.API),function(e){function t(){return(vc.html2canvas?Promise.resolve(vc.html2canvas):pr((()=>Promise.resolve().then((()=>T9))),void 0)).catch((function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))})).then((function(e){return e.default?e.default:e}))}function n(){return(vc.DOMPurify?Promise.resolve(vc.DOMPurify):pr((()=>import("./purify.es-5860e1d7.js")),[])).catch((function(e){return Promise.reject(new Error("Could not load dompurify: "+e))})).then((function(e){return e.default?e.default:e}))}var i=function(e){var t=p(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},a=function(e,t){var n=document.createElement(e);for(var i in t.className&&(n.className=t.className),t.innerHTML&&t.dompurify&&(n.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)n.style[i]=t.style[i];return n},r=function e(t,n){for(var i=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),a=t.firstChild;a;a=a.nextSibling)!0!==n&&1===a.nodeType&&"SCRIPT"===a.nodeName||i.appendChild(e(a,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(i.width=t.width,i.height=t.height,i.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(i.value=t.value),i.addEventListener("load",(function(){i.scrollTop=t.scrollTop,i.scrollLeft=t.scrollLeft}),!0)),i},s=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),i=e.convert(Promise.resolve(),n);return(i=i.setProgress(1,e,1,[e])).set(t)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(e,t){return e.__proto__=t||s.prototype,e},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(e,t){return this.then((function(){switch(t=t||function(e){switch(i(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e)){case"string":return this.then(n).then((function(t){return this.set({src:a("div",{innerHTML:e,dompurify:t})})}));case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}}))},s.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var e={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=r(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},s.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},s.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=this.opt.jsPDF,n=this.opt.fontFaces,i="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,a=Object.assign({async:!0,allowTaint:!0,scale:i,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete a.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=n,n)for(var r=0;r<n.length;++r){var s=n[r],l=s.src.find((function(e){return"truetype"===e.format}));l&&t.addFont(l.url,s.ref.name,s.ref.style)}return a.windowHeight=a.windowHeight||0,a.windowHeight=0==a.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):a.windowHeight,t.context2d.save(!0),e(this.prop.container,a)})).then((function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e}))},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},s.prototype.output=function(e,t,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},s.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(e,t)}))},s.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}}))},s.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},s.prototype.set=function(e){if("object"!==i(e))return this;var t=Object.keys(e||{}).map((function(t){if(t in s.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}}),this);return this.then((function(){return this.thenList(t)}))},s.prototype.get=function(e,t){return this.then((function(){var n=e in s.template.prop?this.prop[e]:this.opt[e];return t?t(n):n}))},s.prototype.setMargin=function(e){return this.then((function(){switch(i(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e})).then(this.setPageSize)},s.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then((function(){(e=e||$c.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e}))},s.prototype.setProgress=function(e,t,n,i){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=i&&(this.progress.stack=i),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(e,t,n,i){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,i?this.progress.stack.concat(i):null)},s.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,(function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,(function(t){return n.updateProgress(null,e),t})).then(e,t).then((function(e){return n.updateProgress(1),e}))}))},s.prototype.thenCore=function(e,t,n){n=n||Promise.prototype.then;var i=this;e&&(e=e.bind(i)),t&&(t=t.bind(i));var a=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?i:s.convert(Object.assign({},i),Promise.prototype),r=n.call(a,e,t);return s.convert(r,i.__proto__)},s.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},s.prototype.thenList=function(e){var t=this;return e.forEach((function(e){t=t.thenCore(e)})),t},s.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return s.convert(t,this)},s.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},s.prototype.error=function(e){return this.then((function(){throw new Error(e)}))},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,$c.getPageSize=function(e,t,n){if("object"===p(e)){var i=e;e=i.orientation,t=i.unit||t,n=i.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var a,r=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":a=1;break;case"mm":a=72/25.4;break;case"cm":a=72/2.54;break;case"in":a=72;break;case"px":a=.75;break;case"pc":case"em":a=12;break;case"ex":a=6;break;default:throw"Invalid unit: "+t}var l,o=0,d=0;if(s.hasOwnProperty(r))o=s[r][1]/a,d=s[r][0]/a;else try{o=n[1],d=n[0]}catch(c){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e)e="p",d>o&&(l=d,d=o,o=l);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",o>d&&(l=d,d=o,o=l)}return{width:d,height:o,unit:t,k:a,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(Wu):null;var n=new s(t);return t.worker?n:n.from(e).doCallback()}}($c.API),$c.API.addJS=function(e){return np=e,this.internal.events.subscribe("postPutResources",(function(){ep=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(ep+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),tp=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+np+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==ep&&void 0!==tp&&this.internal.out("/Names <</JavaScript "+ep+" 0 R>>")})),this},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t;e.events.push(["postPutResources",function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=e.outline.render().split(/\r\n/),a=0;a<i.length;a++){var r=i[a],s=n.exec(r);if(null!=s){var l=s[1];e.internal.newObjectDeferredBegin(l,!1)}e.internal.write(r)}if(this.outline.createNamedDestinations){var o=this.internal.pages.length,d=[];for(a=0;a<o;a++){var c=e.internal.newObject();d.push(c);var u=e.internal.getPageInfo(a+1);e.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),a=0;a<d.length;a++)e.internal.write("(page_"+(a+1)+")"+d[a]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var i={title:t,options:n,children:[]};return null==e&&(e=this.root),e.children.push(i),i},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<t.children.length;i++){var a=t.children[i];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(t)),i>0&&this.line("/Prev "+this.makeRef(t.children[i-1])),i<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[i+1])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var r=this.count=this.count_r({count:0},a);if(r>0&&this.line("/Count "+r),a.options&&a.options.pageNumber){var s=e.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+s.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var l=0;l<t.children.length;l++)this.renderItems(t.children[l])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}])}($c.API),
|
||
/**
|
||
* @license
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,n,i,a,r,s){var l,o=this.decode.DCT_DECODE,d=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=r||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(l=function(e){for(var n,i=256*e.charCodeAt(4)+e.charCodeAt(5),a=e.length,r={width:0,height:0,numcomponents:1},s=4;s<a;s+=2){if(s+=i,-1!==t.indexOf(e.charCodeAt(s+1))){n=256*e.charCodeAt(s+5)+e.charCodeAt(s+6),r={width:256*e.charCodeAt(s+7)+e.charCodeAt(s+8),height:n,numcomponents:e.charCodeAt(s+9)};break}i=256*e.charCodeAt(s+2)+e.charCodeAt(s+3)}return r}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}d={data:e,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:o,index:n,alias:i}}return d}}($c.API),$c.API.processPNG=function(e,t,n,i){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var a,r=new hc(e,{checkCrc:!0}).decode(),s=r.width,l=r.height,o=r.channels,d=r.palette,c=r.depth;a=d&&1===o?function(e){for(var t=e.width,n=e.height,i=e.data,a=e.palette,r=e.depth,s=!1,l=[],o=[],d=void 0,c=!1,u=0,p=0;p<a.length;p++){var h=A(a[p],4),f=h[0],m=h[1],v=h[2],g=h[3];l.push(f,m,v),null!=g&&(0===g?(u++,o.length<1&&o.push(p)):g<255&&(c=!0))}if(c||u>1){s=!0,o=void 0;var y=t*n;d=new Uint8Array(y);for(var x=new DataView(i.buffer),b=0;b<y;b++){var w=vp(x,b,r),j=A(a[w],4)[3];d[b]=j}}else 0===u&&(o=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:s?8:void 0,colorBytes:i,alphaBytes:d,needSMask:s,palette:l,mask:o}}(r):2===o||4===o?function(e){for(var t=e.data,n=e.width,i=e.height,a=e.channels,r=e.depth,s=2===a?"DeviceGray":"DeviceRGB",l=a-1,o=n*i,d=l,c=o*d,u=1*o,p=Math.ceil(c*r/8),A=Math.ceil(u*r/8),h=new Uint8Array(p),f=new Uint8Array(A),m=new DataView(t.buffer),v=new DataView(h.buffer),g=new DataView(f.buffer),y=!1,x=0;x<o;x++){for(var b=x*a,w=0;w<d;w++)gp(v,vp(m,b+w,r),x*d+w,r);var j=vp(m,b+d,r);j<(1<<r)-1&&(y=!0),gp(g,j,1*x,r)}return{colorSpace:s,colorsPerPixel:l,sMaskBitsPerComponent:y?r:void 0,colorBytes:h,alphaBytes:f,needSMask:y}}(r):function(e){var t=e.data,n=1===e.channels?"DeviceGray":"DeviceRGB";return{colorSpace:n,colorsPerPixel:"DeviceGray"===n?1:3,colorBytes:t instanceof Uint16Array?function(e){for(var t=e.length,n=new Uint8Array(2*t),i=new DataView(n.buffer,n.byteOffset,n.byteLength),a=0;a<t;a++)i.setUint16(2*a,e[a],!1);return n}(t):t,needSMask:!1}}(r);var u,p,h,f=a,m=f.colorSpace,v=f.colorsPerPixel,g=f.sMaskBitsPerComponent,y=f.colorBytes,x=f.alphaBytes,b=f.needSMask,w=f.palette,j=f.mask,C=null;return i!==$c.API.image_compression.NONE?(C=function(e){var t;switch(e){case $c.API.image_compression.FAST:t=11;break;case $c.API.image_compression.MEDIUM:t=13;break;case $c.API.image_compression.SLOW:t=14;break;default:t=12}return t}(i),u=this.decode.FLATE_DECODE,p="/Predictor ".concat(C," /Colors ").concat(v," /BitsPerComponent ").concat(c," /Columns ").concat(s),e=dp(y,Math.ceil(s*v*c/8),v,c,i),b&&(h=dp(x,Math.ceil(s*g/8),1,g,i))):(u=void 0,p=void 0,e=y,b&&(h=x)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:n,data:e,index:t,filter:u,decodeParameters:p,transparency:j,palette:w,sMask:h,predictor:C,width:s,height:l,bitsPerComponent:c,sMaskBitsPerComponent:g,colorSpace:m}}},function(e){e.processGIF89A=function(t,n,i,a){var r=new xp(t),s=r.width,l=r.height,o=[];r.decodeAndBlitFrameRGBA(0,o);var d={data:o,width:s,height:l},c=new wp(100).encode(d,100);return e.processJPEG.call(this,c,n,i,a)},e.processGIF87A=e.processGIF89A}($c.API),jp.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:a,green:i,blue:n,quad:r}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},jp.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(Zre){yc.log("bit decode error:"+Zre)}},jp.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var i=this.bottom_up?e:this.height-1-e,a=0;a<t;a++)for(var r=this.datav.getUint8(this.pos++,!0),s=i*this.width*4+8*a*4,l=0;l<8&&8*a+l<this.width;l++){var o=this.palette[r>>7-l&1];this.data[s+4*l]=o.blue,this.data[s+4*l+1]=o.green,this.data[s+4*l+2]=o.red,this.data[s+4*l+3]=255}0!==n&&(this.pos+=4-n)}},jp.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<e;a++){var r=this.datav.getUint8(this.pos++,!0),s=i*this.width*4+2*a*4,l=r>>4,o=15&r,d=this.palette[l];if(this.data[s]=d.blue,this.data[s+1]=d.green,this.data[s+2]=d.red,this.data[s+3]=255,2*a+1>=this.width)break;d=this.palette[o],this.data[s+4]=d.blue,this.data[s+4+1]=d.green,this.data[s+4+2]=d.red,this.data[s+4+3]=255}0!==t&&(this.pos+=4-t)}},jp.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<this.width;i++){var a=this.datav.getUint8(this.pos++,!0),r=n*this.width*4+4*i;if(a<this.palette.length){var s=this.palette[a];this.data[r]=s.red,this.data[r+1]=s.green,this.data[r+2]=s.blue,this.data[r+3]=255}else this.data[r]=255,this.data[r+1]=255,this.data[r+2]=255,this.data[r+3]=255}0!==e&&(this.pos+=4-e)}},jp.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var r=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(r&t)/t*255|0,l=(r>>5&t)/t*255|0,o=(r>>10&t)/t*255|0,d=r>>15?255:0,c=i*this.width*4+4*a;this.data[c]=o,this.data[c+1]=l,this.data[c+2]=s,this.data[c+3]=d}this.pos+=e}},jp.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var a=this.bottom_up?i:this.height-1-i,r=0;r<this.width;r++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(s&t)/t*255|0,o=(s>>5&n)/n*255|0,d=(s>>11)/t*255|0,c=a*this.width*4+4*r;this.data[c]=d,this.data[c+1]=o,this.data[c+2]=l,this.data[c+3]=255}this.pos+=e}},jp.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=r,this.data[s+1]=a,this.data[s+2]=i,this.data[s+3]=255}this.pos+=this.width%4}},jp.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),l=t*this.width*4+4*n;this.data[l]=r,this.data[l+1]=a,this.data[l+2]=i,this.data[l+3]=s}},jp.prototype.getData=function(){return this.data},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){e.processBMP=function(t,n,i,a){var r=new jp(t,!1),s=r.width,l=r.height,o={data:r.getData(),width:s,height:l},d=new wp(100).encode(o,100);return e.processJPEG.call(this,d,n,i,a)}}($c.API),Cp.prototype.getData=function(){return this.data},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2019 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){e.processWEBP=function(t,n,i,a){var r=new Cp(t),s=r.width,l=r.height,o={data:r.getData(),width:s,height:l},d=new wp(100).encode(o,100);return e.processJPEG.call(this,d,n,i,a)}}($c.API),$c.API.processRGBA=function(e,t,n){for(var i=e.data,a=i.length,r=new Uint8Array(a/4*3),s=new Uint8Array(a/4),l=0,o=0,d=0;d<a;d+=4){var c=i[d],u=i[d+1],p=i[d+2],A=i[d+3];r[l++]=c,r[l++]=u,r[l++]=p,s[o++]=A}var h=this.__addimage__.arrayBufferToBinaryString(r);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:h,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},$c.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},ip=$c.API,ap=ip.getCharWidthsArray=function(e,t){var n,i,a=(t=t||{}).font||this.internal.getFont(),r=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:a.metadata.Unicode.widths,o=l.fof?l.fof:1,d=t.kerning?t.kerning:a.metadata.Unicode.kerning,c=d.fof?d.fof:1,u=!1!==t.doKerning,A=0,h=e.length,f=0,m=l[0]||o,v=[];for(n=0;n<h;n++)i=e.charCodeAt(n),"function"==typeof a.metadata.widthOfString?v.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(i))+s*(1e3/r)||0)/1e3):(A=u&&"object"===p(d[i])&&!isNaN(parseInt(d[i][f],10))?d[i][f]/c:0,v.push((l[i]||m)/o+A)),f=i;return v},rp=ip.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),i=t.font||this.internal.getFont(),a=t.charSpace||this.internal.getCharSpace();return ip.processArabic&&(e=ip.processArabic(e)),"function"==typeof i.metadata.widthOfString?i.metadata.widthOfString(e,n,a)/n:ap.apply(this,arguments).reduce((function(e,t){return e+t}),0)},sp=function(e,t,n,i){for(var a=[],r=0,s=e.length,l=0;r!==s&&l+t[r]<n;)l+=t[r],r++;a.push(e.slice(0,r));var o=r;for(l=0;r!==s;)l+t[r]>i&&(a.push(e.slice(o,r)),l=0,o=r),l+=t[r],r++;return o!==r&&a.push(e.slice(o,r)),a},lp=function(e,t,n){n||(n={});var i,a,r,s,l,o,d,c=[],u=[c],p=n.textIndent||0,A=0,h=0,f=e.split(" "),m=ap.apply(this,[" ",n])[0];if(o=-1===n.lineIndent?f[0].length+2:n.lineIndent||0){var v=Array(o).join(" "),g=[];f.map((function(e){(e=e.split(/\s*\n/)).length>1?g=g.concat(e.map((function(e,t){return(t&&e.length?"\n":"")+e}))):g.push(e[0])})),f=g,o=rp.apply(this,[v,n])}for(r=0,s=f.length;r<s;r++){var y=0;if(i=f[r],o&&"\n"==i[0]&&(i=i.substr(1),y=1),p+A+(h=(a=ap.apply(this,[i,n])).reduce((function(e,t){return e+t}),0))>t||y){if(h>t){for(l=sp.apply(this,[i,a,t-(p+A),t]),c.push(l.shift()),c=[l.pop()];l.length;)u.push([l.shift()]);h=a.slice(i.length-(c[0]?c[0].length:0)).reduce((function(e,t){return e+t}),0)}else c=[i];u.push(c),p=h+o,A=m}else c.push(i),p+=A+h,A=m}return d=o?function(e,t){return(t?v:"")+e.join(" ")}:function(e){return e.join(" ")},u.map(d)},ip.splitTextToSize=function(e,t,n){var i,a=(n=n||{}).fontSize||this.internal.getFontSize(),r=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle),n="Unicode";return t.metadata[n]?{widths:t.metadata[n].widths||{0:1},kerning:t.metadata[n].kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);i=Array.isArray(e)?e:String(e).split(/\r?\n/);var s=1*this.internal.scaleFactor*t/a;r.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/a:0,r.lineIndent=n.lineIndent;var l,o,d=[];for(l=0,o=i.length;l<o;l++)d=d.concat(lp.apply(this,[i[l],s,r]));return d},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",i={},a={},r=0;r<16;r++)i[n[r]]=t[r],a[t[r]]=n[r];var s=function(e){return"0x"+parseInt(e,10).toString(16)},l=e.__fontmetrics__.compress=function(e){var t,n,i,r,o=["{"];for(var d in e){if(t=e[d],isNaN(parseInt(d,10))?n="'"+d+"'":(d=parseInt(d,10),n=(n=s(d).slice(2)).slice(0,-1)+a[n.slice(-1)]),"number"==typeof t)t<0?(i=s(t).slice(3),r="-"):(i=s(t).slice(2),r=""),i=r+i.slice(0,-1)+a[i.slice(-1)];else{if("object"!==p(t))throw new Error("Don't know what to do with value type "+p(t)+".");i=l(t)}o.push(n+i)}return o.push("}"),o.join("")},o=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,n,a,r,s={},l=1,o=s,d=[],c="",u="",p=e.length-1,A=1;A<p;A+=1)"'"==(r=e[A])?t?(a=t.join(""),t=void 0):t=[]:t?t.push(r):"{"==r?(d.push([o,a]),o={},a=void 0):"}"==r?((n=d.pop())[0][n[1]]=o,a=void 0,o=n[0]):"-"==r?l=-1:void 0===a?i.hasOwnProperty(r)?(c+=i[r],a=parseInt(c,16)*l,l=1,c=""):c+=r:i.hasOwnProperty(r)?(u+=i[r],o[a]=parseInt(u,16)*l,l=1,a=void 0,u=""):u+=r;return s},d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:o("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},u={Unicode:{"Courier-Oblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":o("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":o("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:o("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:o("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":o("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":o("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(e){var t=e.font,n=u.Unicode[t.postScriptName];n&&(t.metadata.Unicode={},t.metadata.Unicode.widths=n.widths,t.metadata.Unicode.kerning=n.kerning);var i=c.Unicode[t.postScriptName];i&&(t.metadata.Unicode.encoding=i,t.encoding=i.codePages[0])}])}($c.API),
|
||
/**
|
||
* @license
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t=function(e){for(var t=e.length,n=new Uint8Array(t),i=0;i<t;i++)n[i]=e.charCodeAt(i);return n};e.API.events.push(["addFont",function(n){var i,a,r=void 0,s=n.font,l=n.instance;if(!s.isStandardFont){if(void 0===l)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");if("string"!=typeof(r=!1===l.existsFileInVFS(s.postScriptName)?l.loadFile(s.postScriptName):l.getFileFromVFS(s.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");i=s,a=/^\x00\x01\x00\x00/.test(a=r)?t(a):t(Sc(a)),i.metadata=e.API.TTFFont.open(a),i.metadata.Unicode=i.metadata.Unicode||{encoding:{},kerning:{},widths:[]},i.metadata.glyIdsUsed=[0]}}])}($c),$c.API.addSvgAsImage=function(e,t,n,i,a,r,s,l){if(isNaN(t)||isNaN(n))throw yc.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw yc.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var o=document.createElement("canvas");o.width=i,o.height=a;var d=o.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,o.width,o.height);var c={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},u=this;return(vc.canvg?Promise.resolve(vc.canvg):pr((()=>import("./index.es-7ba97c1a.js")),["assets/index.es-7ba97c1a.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js"])).catch((function(e){return Promise.reject(new Error("Could not load canvg: "+e))})).then((function(e){return e.default?e.default:e})).then((function(t){return t.fromString(d,e,c)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(e){return e.render(c)})).then((function(){u.addImage(o.toDataURL("image/jpeg",1),t,n,i,a,s,l)}))},$c.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var a=0;a<this.internal.pages[i].length;a++)this.internal.pages[i][a]=this.internal.pages[i][a].replace(t,n);return this},$c.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var i,a,r,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(s),o=[],d=0,c=0,u=0;function A(e,t){var n,i=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(i=!0);return i}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var h=l.length;for(u=0;u<h;u+=1)n[l[u]].value=n[l[u]].defaultValue,n[l[u]].explicitSet=!1}if("object"===p(e))for(a in e)if(r=e[a],A(l,a)&&void 0!==r){if("boolean"===n[a].type&&"boolean"==typeof r)n[a].value=r;else if("name"===n[a].type&&A(n[a].valueSet,r))n[a].value=r;else if("integer"===n[a].type&&Number.isInteger(r))n[a].value=r;else if("array"===n[a].type){for(d=0;d<r.length;d+=1)if(i=!0,1===r[d].length&&"number"==typeof r[d][0])o.push(String(r[d]-1));else if(r[d].length>1){for(c=0;c<r[d].length;c+=1)"number"!=typeof r[d][c]&&(i=!1);!0===i&&o.push([r[d][0]-1,r[d][1]-1].join(" "))}n[a].value="["+o.join(" ")+"]"}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var e,t=[];for(e in n)!0===n[e].explicitSet&&("name"===n[e].type?t.push("/"+e+" /"+n[e].value):t.push("/"+e+" "+n[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
|
||
/** ====================================================================
|
||
* @license
|
||
* jsPDF XMP metadata plugin
|
||
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/
|
||
function(e){var t=function(){var e='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(e)),i=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),a=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),r=unescape(encodeURIComponent("</x:xmpmeta>")),s=n.length+i.length+a.length+t.length+r.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+s+" >>"),this.internal.write("stream"),this.internal.write(t+n+i+a+r),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(e,i){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",t)),this}}($c.API),function(e){var t=e.API,n=t.pdfEscape16=function(e,t){for(var n,i=t.metadata.Unicode.widths,a=["","0","00","000","0000"],r=[""],s=0,l=e.length;s<l;++s){if(n=t.metadata.characterToGlyph(e.charCodeAt(s)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(s),-1==i.indexOf(n)&&(i.push(n),i.push([parseInt(t.metadata.widthOfGlyph(n),10)])),"0"==n)return r.join("");n=n.toString(16),r.push(a[4-n.length],n)}return r.join("")},i=function(e){var t,n,i,a,r,s,l;for(r="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",i=[],s=0,l=(n=Object.keys(e).sort((function(e,t){return e-t}))).length;s<l;s++)t=n[s],i.length>=100&&(r+="\n"+i.length+" beginbfchar\n"+i.join("\n")+"\nendbfchar",i=[]),void 0!==e[t]&&null!==e[t]&&"function"==typeof e[t].toString&&(a=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),i.push("<"+t+"><"+a+">"));return i.length&&(r+="\n"+i.length+" beginbfchar\n"+i.join("\n")+"\nendbfchar\n"),r+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var n=t.font,a=t.out,r=t.newObject,s=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"Identity-H"===n.encoding){for(var l=n.metadata.Unicode.widths,o=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),d="",c=0;c<o.length;c++)d+=String.fromCharCode(o[c]);var u=r();s({data:d,addLength1:!0,objectId:u}),a("endobj");var p=r();s({data:i(n.metadata.toUnicode),addLength1:!0,objectId:p}),a("endobj");var A=r();a("<<"),a("/Type /FontDescriptor"),a("/FontName /"+zc(n.fontName)),a("/FontFile2 "+u+" 0 R"),a("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),a("/Flags "+n.metadata.flags),a("/StemV "+n.metadata.stemV),a("/ItalicAngle "+n.metadata.italicAngle),a("/Ascent "+n.metadata.ascender),a("/Descent "+n.metadata.decender),a("/CapHeight "+n.metadata.capHeight),a(">>"),a("endobj");var h=r();a("<<"),a("/Type /Font"),a("/BaseFont /"+zc(n.fontName)),a("/FontDescriptor "+A+" 0 R"),a("/W "+e.API.PDFObject.convert(l)),a("/CIDToGIDMap /Identity"),a("/DW 1000"),a("/Subtype /CIDFontType2"),a("/CIDSystemInfo"),a("<<"),a("/Supplement 0"),a("/Registry (Adobe)"),a("/Ordering ("+n.encoding+")"),a(">>"),a(">>"),a("endobj"),n.objectNumber=r(),a("<<"),a("/Type /Font"),a("/Subtype /Type0"),a("/ToUnicode "+p+" 0 R"),a("/BaseFont /"+zc(n.fontName)),a("/Encoding /"+n.encoding),a("/DescendantFonts ["+h+" 0 R]"),a(">>"),a("endobj"),n.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var n=t.font,a=t.out,r=t.newObject,s=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var l=n.metadata.rawData,o="",d=0;d<l.length;d++)o+=String.fromCharCode(l[d]);var c=r();s({data:o,addLength1:!0,objectId:c}),a("endobj");var u=r();s({data:i(n.metadata.toUnicode),addLength1:!0,objectId:u}),a("endobj");var p=r();a("<<"),a("/Descent "+n.metadata.decender),a("/CapHeight "+n.metadata.capHeight),a("/StemV "+n.metadata.stemV),a("/Type /FontDescriptor"),a("/FontFile2 "+c+" 0 R"),a("/Flags 96"),a("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),a("/FontName /"+zc(n.fontName)),a("/ItalicAngle "+n.metadata.italicAngle),a("/Ascent "+n.metadata.ascender),a(">>"),a("endobj"),n.objectNumber=r();for(var A=0;A<n.metadata.hmtx.widths.length;A++)n.metadata.hmtx.widths[A]=parseInt(n.metadata.hmtx.widths[A]*(1e3/n.metadata.head.unitsPerEm));a("<</Subtype/TrueType/Type/Font/ToUnicode "+u+" 0 R/BaseFont/"+zc(n.fontName)+"/FontDescriptor "+p+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),a("endobj"),n.isAlreadyPutted=!0}}(t)}]);var a=function(e){var t,i=e.text||"",a=e.x,r=e.y,s=e.options||{},l=e.mutex||{},o=l.pdfEscape,d=l.activeFontKey,c=l.fonts,u=d,p="",A=0,h="",f=c[u].encoding;if("Identity-H"!==c[u].encoding)return{text:i,x:a,y:r,options:s,mutex:l};for(h=i,u=d,Array.isArray(i)&&(h=i[0]),A=0;A<h.length;A+=1)c[u].metadata.hasOwnProperty("cmap")&&(t=c[u].metadata.cmap.unicode.codeMap[h[A].charCodeAt(0)]),t||h[A].charCodeAt(0)<256&&c[u].metadata.hasOwnProperty("Unicode")?p+=h[A]:p+="";var m="";return parseInt(u.slice(1))<14||"WinAnsiEncoding"===f?m=o(p,u).split("").map((function(e){return e.charCodeAt(0).toString(16)})).join(""):"Identity-H"===f&&(m=n(p,c[u])),l.isHex=!0,{text:m,x:a,y:r,options:s,mutex:l}};t.events.push(["postProcessText",function(e){var t=e.text||"",n=[],i={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var r=0;for(r=0;r<t.length;r+=1)Array.isArray(t[r])&&3===t[r].length?n.push([a(Object.assign({},i,{text:t[r][0]})).text,t[r][1],t[r][2]]):n.push(a(Object.assign({},i,{text:t[r]})).text);e.text=n}else e.text=a(Object.assign({},i,{text:t})).text}])}($c),
|
||
/**
|
||
* @license
|
||
* jsPDF virtual FileSystem functionality
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,n){return t.call(this),this.internal.vFS[e]=n,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}($c.API),
|
||
/**
|
||
* @license
|
||
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
|
||
* MIT License
|
||
*/
|
||
function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,i,a,r,s,l,o,d=t,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],u=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],p={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},A={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},h=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],f=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,v=0;this.__bidiEngine__={};var g=function(e){var t=e.charCodeAt(),n=t>>8,i=A[n];return void 0!==i?d[256*i+(255&t)]:252===n||253===n?"AL":f.test(n)?"L":8===n?"R":"N"},y=function(e){for(var t,n=0;n<e.length;n++){if("L"===(t=g(e.charAt(n))))return!1;if("R"===t)return!0}return!1},x=function(e,t,s,l){var o,d,c,u,p=t[l];switch(p){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(p="AN");break;case"AL":m=!0,p="R";break;case"WS":case"BN":p="N";break;case"CS":l<1||l+1>=t.length||"EN"!==(o=s[l-1])&&"AN"!==o||"EN"!==(d=t[l+1])&&"AN"!==d?p="N":m&&(d="AN"),p=d===o?d:"N";break;case"ES":p="EN"===(o=l>0?s[l-1]:"B")&&l+1<t.length&&"EN"===t[l+1]?"EN":"N";break;case"ET":if(l>0&&"EN"===s[l-1]){p="EN";break}if(m){p="N";break}for(c=l+1,u=t.length;c<u&&"ET"===t[c];)c++;p=c<u&&"EN"===t[c]?"EN":"N";break;case"NSM":if(a&&!r){for(u=t.length,c=l+1;c<u&&"NSM"===t[c];)c++;if(c<u){var A=e[l],h=A>=1425&&A<=2303||64286===A;if(o=t[c],h&&("R"===o||"AL"===o)){p="R";break}}}p=l<1||"B"===(o=t[l-1])?"N":s[l-1];break;case"B":m=!1,n=!0,p=v;break;case"S":i=!0,p="N"}return p},b=function(e,t,n){var i=e.split("");return n&&w(i,n,{hiLevel:v}),i.reverse(),t&&t.reverse(),i.join("")},w=function(e,t,a){var r,s,l,o,d,A=-1,h=e.length,f=0,y=[],b=v?u:c,w=[];for(m=!1,n=!1,i=!1,s=0;s<h;s++)w[s]=g(e[s]);for(l=0;l<h;l++){if(d=f,y[l]=x(e,w,y,l),r=240&(f=b[d][p[y[l]]]),f&=15,t[l]=o=b[f][5],r>0)if(16===r){for(s=A;s<l;s++)t[s]=1;A=-1}else A=-1;if(b[f][6])-1===A&&(A=l);else if(A>-1){for(s=A;s<l;s++)t[s]=o;A=-1}"B"===w[l]&&(t[l]=0),a.hiLevel|=o}i&&function(e,t,n){for(var i=0;i<n;i++)if("S"===e[i]){t[i]=v;for(var a=i-1;a>=0&&"WS"===e[a];a--)t[a]=v}}(w,t,h)},j=function(e,t,i,a,r){if(!(r.hiLevel<e)){if(1===e&&1===v&&!n)return t.reverse(),void(i&&i.reverse());for(var s,l,o,d,c=t.length,u=0;u<c;){if(a[u]>=e){for(o=u+1;o<c&&a[o]>=e;)o++;for(d=u,l=o-1;d<l;d++,l--)s=t[d],t[d]=t[l],t[l]=s,i&&(s=i[d],i[d]=i[l],i[l]=s);u=o}u++}}},C=function(e,t,n){var i=e.split(""),a={hiLevel:v};return n||(n=[]),w(i,n,a),function(e,t,n){if(0!==n.hiLevel&&o)for(var i,a=0;a<e.length;a++)1===t[a]&&(i=h.indexOf(e[a]))>=0&&(e[a]=h[i+1])}(i,n,a),j(2,i,t,n,a),j(1,i,t,n,a),i.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;void 0===r&&(r=y(e)),void 0===l&&(l=y(e))}(e,t),a||!s||l)if(a&&s&&r^l)v=r?1:0,e=b(e,t,n);else if(!a&&s&&l)v=r?1:0,e=C(e,t,n),e=b(e,t);else if(!a||r||s||l){if(a&&!s&&r^l)e=b(e,t),r?(v=0,e=C(e,t,n)):(v=1,e=C(e,t,n),e=b(e,t));else if(a&&r&&!s&&l)v=1,e=C(e,t,n),e=b(e,t);else if(!a&&!s&&r^l){var i=o;r?(v=1,e=C(e,t,n),v=0,o=!1,e=C(e,t,n),o=i):(v=0,e=C(e,t,n),e=b(e,t),v=1,o=!1,e=C(e,t,n),o=i,e=b(e,t))}}else v=0,e=C(e,t,n);else v=r?1:0,e=C(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(a=e.isInputVisual,s=e.isOutputVisual,r=e.isInputRtl,l=e.isOutputRtl,o=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text;e.x,e.y;var i=e.options||{};e.mutex,i.lang;var a=[];if(i.isInputVisual="boolean"!=typeof i.isInputVisual||i.isInputVisual,n.setOptions(i),"[object Array]"===Object.prototype.toString.call(t)){var r=0;for(a=[],r=0;r<t.length;r+=1)"[object Array]"===Object.prototype.toString.call(t[r])?a.push([n.doBidiReorder(t[r][0]),t[r][1],t[r][2]]):a.push([n.doBidiReorder(t[r])]);e.text=a}else e.text=n.doBidiReorder(t);n.setOptions({isInputVisual:!0})}])}($c),$c.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new Np(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new qp(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new Ip(this.contents),this.head=new Pp(this),this.name=new _p(this),this.cmap=new Tp(this),this.toUnicode={},this.hhea=new Ep(this),this.maxp=new Op(this),this.hmtx=new Mp(this),this.post=new Lp(this),this.os2=new Dp(this),this.loca=new zp(this),this.glyf=new Qp(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,n,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,i,a;for(a=[],t=0,n=(i=this.bbox).length;t<n;t++)e=i[t],a.push(Math.round(e*this.scaleFactor));return a}.call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),32768&(t=i>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(a=this.familyClass)||2===a||3===a||4===a||5===a||7===a,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var i,a,r,s;for(r=0,a=0,s=(e=""+e).length;0<=s?a<s:a>s;a=0<=s?++a:--a)i=e.charCodeAt(a),r+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/t)||0;return r*(t/1e3)},e.prototype.lineHeight=function(e,t){var n;return null==t&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var Sp,Np=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(e){var t,n,i;for(i=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)i.push(this.writeByte(e.charCodeAt(t)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,i,a,r,s,l;return e=this.readByte(),t=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),r=this.readByte(),s=this.readByte(),l=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^a)+65536*(255^r)+256*(255^s)+(255^l)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*i+16777216*a+65536*r+256*s+l},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,i,a;for(a=[],n=0,i=e.length;n<i;n++)t=e[n],a.push(this.writeByte(t));return a},e}(),Ip=function(){var e;function t(e){var t,n,i;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:n>i;n=0<=i?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,i,a,r,s,l,o,d,c,u,p,A,h;for(h in p=Object.keys(t).length,l=Math.log(2),c=16*Math.floor(Math.log(p)/l),r=Math.floor(c/l),d=16*p-c,(i=new Np).writeInt(this.scalarType),i.writeShort(p),i.writeShort(c),i.writeShort(r),i.writeShort(d),a=16*p,o=i.pos+a,s=null,A=[],t)for(u=t[h],i.writeString(h),i.writeInt(e(u)),i.writeInt(o),i.writeInt(u.length),A=A.concat(u),"head"===h&&(s=o),o+=u.length;o%4;)A.push(0),o++;return i.write(A),n=2981146554-e(i.data),i.pos=s+8,i.writeUInt32(n),i.data},e=function(e){var t,n,i,a;for(e=Rp.call(e);e.length%4;)e.push(0);for(i=new Np(e),n=0,t=0,a=e.length;t<a;t=t+=4)n+=i.readUInt32();return 4294967295&n},t}(),Fp={}.hasOwnProperty,Bp=function(e,t){for(var n in t)Fp.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e};Sp=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var Pp=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Bp(e,Sp),e.prototype.tag="head",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},e.prototype.encode=function(e){var t;return(t=new Np).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},e}(),kp=function(){function e(e,t){var n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),c=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=e.readByte();break;case 4:for(p=e.readUInt16(),u=p/2,e.pos+=6,a=function(){var t,n;for(n=[],l=t=0;0<=u?t<u:t>u;l=0<=u?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,h=function(){var t,n;for(n=[],l=t=0;0<=u?t<u:t>u;l=0<=u?++t:--t)n.push(e.readUInt16());return n}(),o=function(){var t,n;for(n=[],l=t=0;0<=u?t<u:t>u;l=0<=u?++t:--t)n.push(e.readUInt16());return n}(),d=function(){var t,n;for(n=[],l=t=0;0<=u?t<u:t>u;l=0<=u?++t:--t)n.push(e.readUInt16());return n}(),i=(this.length-e.pos+this.offset)/2,s=function(){var t,n;for(n=[],l=t=0;0<=i?t<i:t>i;l=0<=i?++t:--t)n.push(e.readUInt16());return n}(),l=m=0,g=a.length;m<g;l=++m)for(f=a[l],n=v=A=h[l];A<=f?v<=f:v>=f;n=A<=f?++v:--v)0===d[l]?r=n+o[l]:0!==(r=s[d[l]/2+(n-A)-(u-l)]||0)&&(r+=o[l]),this.codeMap[n]=65535&r}e.pos=c}return e.encode=function(e,t){var n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B,P,k,T,E,D,L,U,_,O,M,R,Q,H,V,z,q,W,Y;switch(B=new Np,r=Object.keys(e).sort((function(e,t){return e-t})),t){case"macroman":for(h=0,f=function(){var e=[];for(A=0;A<256;++A)e.push(0);return e}(),v={0:0},a={},P=0,D=r.length;P<D;P++)null==v[z=e[i=r[P]]]&&(v[z]=++h),a[i]={old:e[i],new:v[e[i]]},f[i]=v[e[i]];return B.writeUInt16(1),B.writeUInt16(0),B.writeUInt32(12),B.writeUInt16(0),B.writeUInt16(262),B.writeUInt16(0),B.write(f),{charMap:a,subtable:B.data,maxGlyphID:h+1};case"unicode":for(I=[],c=[],g=0,v={},n={},m=o=null,k=0,L=r.length;k<L;k++)null==v[x=e[i=r[k]]]&&(v[x]=++g),n[i]={old:x,new:v[x]},s=v[x]-i,null!=m&&s===o||(m&&c.push(m),I.push(i),o=s),m=i;for(m&&c.push(m),c.push(65535),I.push(65535),S=2*(C=I.length),j=2*Math.pow(Math.log(C)/Math.LN2,2),u=Math.log(j/2)/Math.LN2,w=2*C-j,l=[],b=[],p=[],A=T=0,U=I.length;T<U;A=++T){if(N=I[A],d=c[A],65535===N){l.push(0),b.push(0);break}if(N-(F=n[N].new)>=32768)for(l.push(0),b.push(2*(p.length+C-A)),i=E=N;N<=d?E<=d:E>=d;i=N<=d?++E:--E)p.push(n[i].new);else l.push(F-N),b.push(0)}for(B.writeUInt16(3),B.writeUInt16(1),B.writeUInt32(12),B.writeUInt16(4),B.writeUInt16(16+8*C+2*p.length),B.writeUInt16(0),B.writeUInt16(S),B.writeUInt16(j),B.writeUInt16(u),B.writeUInt16(w),H=0,_=c.length;H<_;H++)i=c[H],B.writeUInt16(i);for(B.writeUInt16(0),V=0,O=I.length;V<O;V++)i=I[V],B.writeUInt16(i);for(q=0,M=l.length;q<M;q++)s=l[q],B.writeUInt16(s);for(W=0,R=b.length;W<R;W++)y=b[W],B.writeUInt16(y);for(Y=0,Q=p.length;Y<Q;Y++)h=p[Y],B.writeUInt16(h);return{charMap:n,subtable:B.data,maxGlyphID:g+1}}},e}(),Tp=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Bp(e,Sp),e.prototype.tag="cmap",e.prototype.parse=function(e){var t,n,i;for(e.pos=this.offset,this.version=e.readUInt16(),i=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)t=new kp(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},e.encode=function(e,t){var n,i;return null==t&&(t="macroman"),n=kp.encode(e,t),(i=new Np).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},e}(),Ep=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Bp(e,Sp),e.prototype.tag="hhea",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},e}(),Dp=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Bp(e,Sp),e.prototype.tag="OS/2",e.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},e}(),Lp=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Bp(e,Sp),e.prototype.tag="post",e.prototype.parse=function(e){var t,n,i;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var a;for(n=e.readUInt16(),this.glyphNameIndex=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],i=[];e.pos<this.offset+this.length;)t=e.readByte(),i.push(this.names.push(e.readString(t)));return i;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=function(){var t,n,i;for(i=[],a=t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:t>n;a=0<=n?++t:--t)i.push(e.readUInt32());return i}.call(this)}},e}(),Up=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},_p=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Bp(e,Sp),e.prototype.tag="name",e.prototype.parse=function(e){var t,n,i,a,r,s,l,o,d,c,u;for(e.pos=this.offset,e.readShort(),t=e.readShort(),s=e.readShort(),n=[],a=0;0<=t?a<t:a>t;a=0<=t?++a:--a)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+s+e.readShort()});for(l={},a=d=0,c=n.length;d<c;a=++d)i=n[a],e.pos=i.offset,o=e.readString(i.length),r=new Up(o,i),null==l[u=i.nameID]&&(l[u]=[]),l[i.nameID].push(r);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(p){this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e}(),Op=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Bp(e,Sp),e.prototype.tag="maxp",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},e}(),Mp=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Bp(e,Sp),e.prototype.tag="hmtx",e.prototype.parse=function(e){var t,n,i,a,r,s,l;for(e.pos=this.offset,this.metrics=[],t=0,s=this.file.hhea.numberOfMetrics;0<=s?t<s:t>s;t=0<=s?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,a;for(a=[],t=n=0;0<=i?n<i:n>i;t=0<=i?++n:--n)a.push(e.readInt16());return a}(),this.widths=function(){var e,t,n,i;for(i=[],e=0,t=(n=this.metrics).length;e<t;e++)a=n[e],i.push(a.advance);return i}.call(this),n=this.widths[this.widths.length-1],l=[],t=r=0;0<=i?r<i:r>i;t=0<=i?++r:--r)l.push(this.widths.push(n));return l},e.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},e}(),Rp=[].slice,Qp=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Bp(e,Sp),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(e){var t,n,i,a,r,s,l,o,d,c;return e in this.cache?this.cache[e]:(a=this.file.loca,t=this.file.contents,n=a.indexOf(e),0===(i=a.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+n,r=(s=new Np(t.read(i))).readShort(),o=s.readShort(),c=s.readShort(),l=s.readShort(),d=s.readShort(),this.cache[e]=-1===r?new Vp(s,o,c,l,d):new Hp(s,r,o,c,l,d),this.cache[e]))},e.prototype.encode=function(e,t,n){var i,a,r,s,l;for(r=[],a=[],s=0,l=t.length;s<l;s++)i=e[t[s]],a.push(r.length),i&&(r=r.concat(i.encode(n)));return a.push(r.length),{table:r,offsets:a}},e}(),Hp=function(){function e(e,t,n,i,a,r){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=i,this.xMax=a,this.yMax=r,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),Vp=function(){function e(e,t,n,i,a){var r,s;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],r=this.raw;s=r.readShort(),this.glyphOffsets.push(r.pos),this.glyphIDs.push(r.readUInt16()),32&s;)r.pos+=1&s?4:2,128&s?r.pos+=8:64&s?r.pos+=4:8&s&&(r.pos+=2)}return e.prototype.encode=function(){var e,t,n;for(t=new Np(Rp.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),zp=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Bp(e,Sp),e.prototype.tag="loca",e.prototype.parse=function(e){var t,n;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,i;for(i=[],n=0,t=this.length;n<t;n+=2)i.push(2*e.readUInt16());return i}.call(this):function(){var t,i;for(i=[],n=0,t=this.length;n<t;n+=4)i.push(e.readUInt32());return i}.call(this)},e.prototype.indexOf=function(e){return this.offsets[e]},e.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},e.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),i=0,a=0,r=0;r<n.length;++r)if(n[r]=i,a<t.length&&t[a]==r){++a,n[r]=i;var s=this.offsets[r],l=this.offsets[r+1]-s;l>0&&(i+=l)}for(var o=new Array(4*n.length),d=0;d<n.length;++d)o[4*d+3]=255&n[d],o[4*d+2]=(65280&n[d])>>8,o[4*d+1]=(16711680&n[d])>>16,o[4*d]=(4278190080&n[d])>>24;return o},e}(),qp=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,i,a;for(t in i=this.font.cmap.tables[0].codeMap,e={},a=this.subset)n=a[t],e[t]=i[n];return e},e.prototype.glyphsFor=function(e){var t,n,i,a,r,s,l;for(i={},r=0,s=e.length;r<s;r++)i[a=e[r]]=this.font.glyf.glyphFor(a);for(a in t=[],i)(null!=(n=i[a])?n.compound:void 0)&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(a in l=this.glyphsFor(t))n=l[a],i[a]=n;return i},e.prototype.encode=function(e,t){var n,i,a,r,s,l,o,d,c,u,p,A,h,f,m;for(i in n=Tp.encode(this.generateCmap(),"unicode"),r=this.glyphsFor(e),p={0:0},m=n.charMap)p[(l=m[i]).old]=l.new;for(A in u=n.maxGlyphID,r)A in p||(p[A]=u++);return d=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(p),c=Object.keys(d).sort((function(e,t){return e-t})),h=function(){var e,t,n;for(n=[],e=0,t=c.length;e<t;e++)s=c[e],n.push(d[s]);return n}(),a=this.font.glyf.encode(r,h,p),o=this.font.loca.encode(a.offsets,h),f={cmap:this.font.cmap.raw(),glyf:a.table,loca:o,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(f["OS/2"]=this.font.os2.raw()),this.font.directory.encode(f)},e}();$c.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(n){var i,a,r,s;if(Array.isArray(n))return"["+function(){var e,a,r;for(r=[],e=0,a=n.length;e<a;e++)i=n[e],r.push(t.convert(i));return r}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(a in r=["<<"],n)s=n[a],r.push("/"+a+" "+t.convert(s));return r.push(">>"),r.join("\n")}return""+n},t}();const Wp=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:Mu,AcroFormAppearance:Lu,AcroFormButton:Fu,AcroFormCheckBox:Tu,AcroFormChoiceField:Cu,AcroFormComboBox:Nu,AcroFormEditBox:Iu,AcroFormListBox:Su,AcroFormPasswordField:Du,AcroFormPushButton:Bu,AcroFormRadioButton:Pu,AcroFormTextField:Eu,GState:Wc,ShadingPattern:Kc,TilingPattern:Gc,default:$c,jsPDF:$c},Symbol.toStringTag,{value:"Module"}));var Yp,Kp,Gp={exports:{}};
|
||
/*!
|
||
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
||
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
||
* Released under MIT License
|
||
*/function $p(){return Yp||(Yp=1,Gp.exports=function(){
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */
|
||
var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};function i(e,t,n,i){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function s(e){try{o(i.next(e))}catch(t){r(t)}}function l(e){try{o(i.throw(e))}catch(t){r(t)}}function o(e){e.done?n(e.value):a(e.value).then(s,l)}o((i=i.apply(e,t||[])).next())}))}function a(e,t){var n,i,a,r,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(e){return function(t){return o([e,t])}}function o(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(a=2&r[0]?i.return:r[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,r[1])).done)return a;switch(i=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){s.label=r[1];break}if(6===r[0]&&s.label<a[1]){s.label=a[1],a=r;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(r);break}a[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(l){r=[6,l],i=0}finally{n=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}}for(var r=function(){function e(e,t,n,i){this.left=e,this.top=t,this.width=n,this.height=i}return e.prototype.add=function(t,n,i,a){return new e(this.left+t,this.top+n,this.width+i,this.height+a)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var i=Array.from(n).find((function(e){return 0!==e.width}));return i?new e(i.left+t.windowBounds.left,i.top+t.windowBounds.top,i.width,i.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),s=function(e,t){return r.fromClientRect(e,t.getBoundingClientRect())},l=function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var i=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),a=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new r(0,0,i,a)},o=function(e){for(var t=[],n=0,i=e.length;n<i;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<i){var r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&a)<<10)+(1023&r)+65536):(t.push(a),n--)}else t.push(a)}return t},d=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var i=[],a=-1,r="";++a<n;){var s=e[a];s<=65535?i.push(s):(s-=65536,i.push(55296+(s>>10),s%1024+56320)),(a+1===n||i.length>16384)&&(r+=String.fromCharCode.apply(String,i),i.length=0)}return r},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),p=0;p<c.length;p++)u[c.charCodeAt(p)]=p;for(var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),f=0;f<A.length;f++)h[A.charCodeAt(f)]=f;for(var m=function(e){var t,n,i,a,r,s=.75*e.length,l=e.length,o=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var d="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(d)?d:new Uint8Array(d);for(t=0;t<l;t+=4)n=h[e.charCodeAt(t)],i=h[e.charCodeAt(t+1)],a=h[e.charCodeAt(t+2)],r=h[e.charCodeAt(t+3)],c[o++]=n<<2|i>>4,c[o++]=(15&i)<<4|a>>2,c[o++]=(3&a)<<6|63&r;return d},v=function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n.push(e[i+1]<<8|e[i]);return n},g=function(e){for(var t=e.length,n=[],i=0;i<t;i+=4)n.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return n},y=5,x=11,b=2,w=65536>>y,j=(1<<y)-1,C=w+(1024>>y)+32,S=65536>>x,N=(1<<x-y)-1,I=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},F=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},B=function(e,t){var n=m(e),i=Array.isArray(n)?g(n):new Uint32Array(n),a=Array.isArray(n)?v(n):new Uint16Array(n),r=24,s=I(a,r/2,i[4]/2),l=2===i[5]?I(a,(r+i[4])/2):F(i,Math.ceil((r+i[4])/4));return new P(i[0],i[1],i[2],i[3],s,l)},P=function(){function e(e,t,n,i,a,r){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=i,this.index=a,this.data=r}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>y])<<b)+(e&j),this.data[t];if(e<=65535)return t=((t=this.index[w+(e-55296>>y)])<<b)+(e&j),this.data[t];if(e<this.highStart)return t=C-S+(e>>x),t=this.index[t],t+=e>>y&N,t=((t=this.index[t])<<b)+(e&j),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T="undefined"==typeof Uint8Array?[]:new Uint8Array(256),E=0;E<k.length;E++)T[k.charCodeAt(E)]=E;var D=50,L=1,U=2,_=3,O=4,M=5,R=7,Q=8,H=9,V=10,z=11,q=12,W=13,Y=14,K=15,G=16,$=17,X=18,J=19,Z=20,ee=21,te=22,ne=23,ie=24,ae=25,re=26,se=27,le=28,oe=29,de=30,ce=31,ue=32,pe=33,Ae=34,he=35,fe=36,me=37,ve=38,ge=39,ye=40,xe=41,be=42,we=43,je=[9001,65288],Ce="!",Se="×",Ne="÷",Ie=B("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),Fe=[de,fe],Be=[L,U,_,M],Pe=[V,Q],ke=[se,re],Te=Be.concat(Pe),Ee=[ve,ge,ye,Ae,he],De=[K,W],Le=function(e,t){void 0===t&&(t="strict");var n=[],i=[],a=[];return e.forEach((function(e,r){var s=Ie.get(e);if(s>D?(a.push(!0),s-=D):a.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return i.push(r),n.push(G);if(s===O||s===z){if(0===r)return i.push(r),n.push(de);var l=n[r-1];return-1===Te.indexOf(l)?(i.push(i[r-1]),n.push(l)):(i.push(r),n.push(de))}return i.push(r),s===ce?n.push("strict"===t?ee:me):s===be||s===oe?n.push(de):s===we?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(me):n.push(de):void n.push(s)})),[i,n,a]},Ue=function(e,t,n,i){var a=i[n];if(Array.isArray(e)?-1!==e.indexOf(a):e===a)for(var r=n;r<=i.length;){if((o=i[++r])===t)return!0;if(o!==V)break}if(a===V)for(r=n;r>0;){var s=i[--r];if(Array.isArray(e)?-1!==e.indexOf(s):e===s)for(var l=n;l<=i.length;){var o;if((o=i[++l])===t)return!0;if(o!==V)break}if(s!==V)break}return!1},_e=function(e,t){for(var n=e;n>=0;){var i=t[n];if(i!==V)return i;n--}return 0},Oe=function(e,t,n,i,a){if(0===n[i])return Se;var r=i-1;if(Array.isArray(a)&&!0===a[r])return Se;var s=r-1,l=r+1,o=t[r],d=s>=0?t[s]:0,c=t[l];if(o===U&&c===_)return Se;if(-1!==Be.indexOf(o))return Ce;if(-1!==Be.indexOf(c))return Se;if(-1!==Pe.indexOf(c))return Se;if(_e(r,t)===Q)return Ne;if(Ie.get(e[r])===z)return Se;if((o===ue||o===pe)&&Ie.get(e[l])===z)return Se;if(o===R||c===R)return Se;if(o===H)return Se;if(-1===[V,W,K].indexOf(o)&&c===H)return Se;if(-1!==[$,X,J,ie,le].indexOf(c))return Se;if(_e(r,t)===te)return Se;if(Ue(ne,te,r,t))return Se;if(Ue([$,X],ee,r,t))return Se;if(Ue(q,q,r,t))return Se;if(o===V)return Ne;if(o===ne||c===ne)return Se;if(c===G||o===G)return Ne;if(-1!==[W,K,ee].indexOf(c)||o===Y)return Se;if(d===fe&&-1!==De.indexOf(o))return Se;if(o===le&&c===fe)return Se;if(c===Z)return Se;if(-1!==Fe.indexOf(c)&&o===ae||-1!==Fe.indexOf(o)&&c===ae)return Se;if(o===se&&-1!==[me,ue,pe].indexOf(c)||-1!==[me,ue,pe].indexOf(o)&&c===re)return Se;if(-1!==Fe.indexOf(o)&&-1!==ke.indexOf(c)||-1!==ke.indexOf(o)&&-1!==Fe.indexOf(c))return Se;if(-1!==[se,re].indexOf(o)&&(c===ae||-1!==[te,K].indexOf(c)&&t[l+1]===ae)||-1!==[te,K].indexOf(o)&&c===ae||o===ae&&-1!==[ae,le,ie].indexOf(c))return Se;if(-1!==[ae,le,ie,$,X].indexOf(c))for(var u=r;u>=0;){if((p=t[u])===ae)return Se;if(-1===[le,ie].indexOf(p))break;u--}if(-1!==[se,re].indexOf(c))for(u=-1!==[$,X].indexOf(o)?s:r;u>=0;){var p;if((p=t[u])===ae)return Se;if(-1===[le,ie].indexOf(p))break;u--}if(ve===o&&-1!==[ve,ge,Ae,he].indexOf(c)||-1!==[ge,Ae].indexOf(o)&&-1!==[ge,ye].indexOf(c)||-1!==[ye,he].indexOf(o)&&c===ye)return Se;if(-1!==Ee.indexOf(o)&&-1!==[Z,re].indexOf(c)||-1!==Ee.indexOf(c)&&o===se)return Se;if(-1!==Fe.indexOf(o)&&-1!==Fe.indexOf(c))return Se;if(o===ie&&-1!==Fe.indexOf(c))return Se;if(-1!==Fe.concat(ae).indexOf(o)&&c===te&&-1===je.indexOf(e[l])||-1!==Fe.concat(ae).indexOf(c)&&o===X)return Se;if(o===xe&&c===xe){for(var A=n[r],h=1;A>0&&t[--A]===xe;)h++;if(h%2!=0)return Se}return o===ue&&c===pe?Se:Ne},Me=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=Le(e,t.lineBreak),i=n[0],a=n[1],r=n[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(a=a.map((function(e){return-1!==[ae,de,be].indexOf(e)?me:e}))),[i,a,"keep-all"===t.wordBreak?r.map((function(t,n){return t&&e[n]>=19968&&e[n]<=40959})):void 0]},Re=function(){function e(e,t,n,i){this.codePoints=e,this.required=t===Ce,this.start=n,this.end=i}return e.prototype.slice=function(){return d.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Qe=function(e,t){var n=o(e),i=Me(n,t),a=i[0],r=i[1],s=i[2],l=n.length,d=0,c=0;return{next:function(){if(c>=l)return{done:!0,value:null};for(var e=Se;c<l&&(e=Oe(n,r,a,++c,s))===Se;);if(e!==Se||c===l){var t=new Re(n,e,d,c);return d=c,{value:t,done:!1}}return{done:!0,value:null}}}},He=1,Ve=2,ze=4,qe=8,We=10,Ye=47,Ke=92,Ge=9,$e=32,Xe=34,Je=61,Ze=35,et=36,tt=37,nt=39,it=40,at=41,rt=95,st=45,lt=33,ot=60,dt=62,ct=64,ut=91,pt=93,At=61,ht=123,ft=63,mt=125,vt=124,gt=126,yt=128,xt=65533,bt=42,wt=43,jt=44,Ct=58,St=59,Nt=46,It=0,Ft=8,Bt=11,Pt=14,kt=31,Tt=127,Et=-1,Dt=48,Lt=97,Ut=101,_t=102,Ot=117,Mt=122,Rt=65,Qt=69,Ht=70,Vt=85,zt=90,qt=function(e){return e>=Dt&&e<=57},Wt=function(e){return e>=55296&&e<=57343},Yt=function(e){return qt(e)||e>=Rt&&e<=Ht||e>=Lt&&e<=_t},Kt=function(e){return e>=Lt&&e<=Mt},Gt=function(e){return e>=Rt&&e<=zt},$t=function(e){return Kt(e)||Gt(e)},Xt=function(e){return e>=yt},Jt=function(e){return e===We||e===Ge||e===$e},Zt=function(e){return $t(e)||Xt(e)||e===rt},en=function(e){return Zt(e)||qt(e)||e===st},tn=function(e){return e>=It&&e<=Ft||e===Bt||e>=Pt&&e<=kt||e===Tt},nn=function(e,t){return e===Ke&&t!==We},an=function(e,t,n){return e===st?Zt(t)||nn(t,n):!!Zt(e)||!(e!==Ke||!nn(e,t))},rn=function(e,t,n){return e===wt||e===st?!!qt(t)||t===Nt&&qt(n):qt(e===Nt?t:e)},sn=function(e){var t=0,n=1;e[t]!==wt&&e[t]!==st||(e[t]===st&&(n=-1),t++);for(var i=[];qt(e[t]);)i.push(e[t++]);var a=i.length?parseInt(d.apply(void 0,i),10):0;e[t]===Nt&&t++;for(var r=[];qt(e[t]);)r.push(e[t++]);var s=r.length,l=s?parseInt(d.apply(void 0,r),10):0;e[t]!==Qt&&e[t]!==Ut||t++;var o=1;e[t]!==wt&&e[t]!==st||(e[t]===st&&(o=-1),t++);for(var c=[];qt(e[t]);)c.push(e[t++]);var u=c.length?parseInt(d.apply(void 0,c),10):0;return n*(a+l*Math.pow(10,-s))*Math.pow(10,o*u)},ln={type:2},on={type:3},dn={type:4},cn={type:13},un={type:8},pn={type:21},An={type:9},hn={type:10},fn={type:11},mn={type:12},vn={type:14},gn={type:23},yn={type:1},xn={type:25},bn={type:24},wn={type:26},jn={type:27},Cn={type:28},Sn={type:29},Nn={type:31},In={type:32},Fn=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(o(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==In;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Xe:return this.consumeStringToken(Xe);case Ze:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(en(t)||nn(n,i)){var a=an(t,n,i)?Ve:He;return{type:5,value:this.consumeName(),flags:a}}break;case et:if(this.peekCodePoint(0)===Je)return this.consumeCodePoint(),cn;break;case nt:return this.consumeStringToken(nt);case it:return ln;case at:return on;case bt:if(this.peekCodePoint(0)===Je)return this.consumeCodePoint(),vn;break;case wt:if(rn(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case jt:return dn;case st:var r=e,s=this.peekCodePoint(0),l=this.peekCodePoint(1);if(rn(r,s,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(an(r,s,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(s===st&&l===dt)return this.consumeCodePoint(),this.consumeCodePoint(),bn;break;case Nt:if(rn(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Ye:if(this.peekCodePoint(0)===bt)for(this.consumeCodePoint();;){var o=this.consumeCodePoint();if(o===bt&&(o=this.consumeCodePoint())===Ye)return this.consumeToken();if(o===Et)return this.consumeToken()}break;case Ct:return wn;case St:return jn;case ot:if(this.peekCodePoint(0)===lt&&this.peekCodePoint(1)===st&&this.peekCodePoint(2)===st)return this.consumeCodePoint(),this.consumeCodePoint(),xn;break;case ct:var c=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(an(c,u,p))return{type:7,value:this.consumeName()};break;case ut:return Cn;case Ke:if(nn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case pt:return Sn;case At:if(this.peekCodePoint(0)===Je)return this.consumeCodePoint(),un;break;case ht:return fn;case mt:return mn;case Ot:case Vt:var A=this.peekCodePoint(0),h=this.peekCodePoint(1);return A!==wt||!Yt(h)&&h!==ft||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case vt:if(this.peekCodePoint(0)===Je)return this.consumeCodePoint(),An;if(this.peekCodePoint(0)===vt)return this.consumeCodePoint(),pn;break;case gt:if(this.peekCodePoint(0)===Je)return this.consumeCodePoint(),hn;break;case Et:return In}return Jt(e)?(this.consumeWhiteSpace(),Nn):qt(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Zt(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:d(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Yt(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===ft&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(d.apply(void 0,e.map((function(e){return e===ft?Dt:e}))),16),end:parseInt(d.apply(void 0,e.map((function(e){return e===ft?Ht:e}))),16)};var i=parseInt(d.apply(void 0,e),16);if(this.peekCodePoint(0)===st&&Yt(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var a=[];Yt(t)&&a.length<6;)a.push(t),t=this.consumeCodePoint();return{type:30,start:i,end:parseInt(d.apply(void 0,a),16)}}return{type:30,start:i,end:i}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&this.peekCodePoint(0)===it?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===it?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Et)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===nt||t===Xe){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Et||this.peekCodePoint(0)===at)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),gn)}for(;;){var i=this.consumeCodePoint();if(i===Et||i===at)return{type:22,value:d.apply(void 0,e)};if(Jt(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Et||this.peekCodePoint(0)===at?(this.consumeCodePoint(),{type:22,value:d.apply(void 0,e)}):(this.consumeBadUrlRemnants(),gn);if(i===Xe||i===nt||i===it||tn(i))return this.consumeBadUrlRemnants(),gn;if(i===Ke){if(!nn(i,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),gn;e.push(this.consumeEscapedCodePoint())}else e.push(i)}},e.prototype.consumeWhiteSpace=function(){for(;Jt(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===at||e===Et)return;nn(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t=5e4,n="";e>0;){var i=Math.min(t,e);n+=d.apply(void 0,this._value.splice(0,i)),e-=i}return this._value.shift(),n},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var i=this._value[n];if(i===Et||void 0===i||i===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(i===We)return this._value.splice(0,n),yn;if(i===Ke){var a=this._value[n+1];a!==Et&&void 0!==a&&(a===We?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):nn(i,a)&&(t+=this.consumeStringSlice(n),t+=d(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=ze,n=this.peekCodePoint(0);for(n!==wt&&n!==st||e.push(this.consumeCodePoint());qt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(n===Nt&&qt(i))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=qe;qt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),i=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((n===Qt||n===Ut)&&((i===wt||i===st)&&qt(a)||qt(i)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=qe;qt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[sn(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],i=this.peekCodePoint(0),a=this.peekCodePoint(1),r=this.peekCodePoint(2);return an(i,a,r)?{type:15,number:t,flags:n,unit:this.consumeName()}:i===tt?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Yt(e)){for(var t=d(e);Yt(this.peekCodePoint(0))&&t.length<6;)t+=d(this.consumeCodePoint());Jt(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||Wt(n)||n>1114111?xt:n}return e===Et?xt:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(en(t))e+=d(t);else{if(!nn(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=d(this.consumeEscapedCodePoint())}}},e}(),Bn=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Fn;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||On(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?In:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Pn=function(e){return 15===e.type},kn=function(e){return 17===e.type},Tn=function(e){return 20===e.type},En=function(e){return 0===e.type},Dn=function(e,t){return Tn(e)&&e.value===t},Ln=function(e){return 31!==e.type},Un=function(e){return 31!==e.type&&4!==e.type},_n=function(e){var t=[],n=[];return e.forEach((function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)})),n.length&&t.push(n),t},On=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},Mn=function(e){return 17===e.type||15===e.type},Rn=function(e){return 16===e.type||Mn(e)},Qn=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Hn={type:17,number:0,flags:ze},Vn={type:16,number:50,flags:ze},zn={type:16,number:100,flags:ze},qn=function(e,t,n){var i=e[0],a=e[1];return[Wn(i,t),Wn(void 0!==a?a:i,n)]},Wn=function(e,t){if(16===e.type)return e.number/100*t;if(Pn(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},Yn="deg",Kn="grad",Gn="rad",$n="turn",Xn={name:"angle",parse:function(e,t){if(15===t.type)switch(t.unit){case Yn:return Math.PI*t.number/180;case Kn:return Math.PI/200*t.number;case Gn:return t.number;case $n:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},Jn=function(e){return 15===e.type&&(e.unit===Yn||e.unit===Kn||e.unit===Gn||e.unit===$n)},Zn=function(e){switch(e.filter(Tn).map((function(e){return e.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Hn,Hn];case"to top":case"bottom":return ei(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Hn,zn];case"to right":case"left":return ei(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[zn,zn];case"to bottom":case"top":return ei(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[zn,Hn];case"to left":case"right":return ei(270)}return 0},ei=function(e){return Math.PI*e/180},ti={name:"color",parse:function(e,t){if(18===t.type){var n=di[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var i=t.value.substring(0,1),a=t.value.substring(1,2),r=t.value.substring(2,3);return ai(parseInt(i+i,16),parseInt(a+a,16),parseInt(r+r,16),1)}if(4===t.value.length){i=t.value.substring(0,1),a=t.value.substring(1,2),r=t.value.substring(2,3);var s=t.value.substring(3,4);return ai(parseInt(i+i,16),parseInt(a+a,16),parseInt(r+r,16),parseInt(s+s,16)/255)}if(6===t.value.length)return i=t.value.substring(0,2),a=t.value.substring(2,4),r=t.value.substring(4,6),ai(parseInt(i,16),parseInt(a,16),parseInt(r,16),1);if(8===t.value.length)return i=t.value.substring(0,2),a=t.value.substring(2,4),r=t.value.substring(4,6),s=t.value.substring(6,8),ai(parseInt(i,16),parseInt(a,16),parseInt(r,16),parseInt(s,16)/255)}if(20===t.type){var l=ui[t.value.toUpperCase()];if(void 0!==l)return l}return ui.TRANSPARENT}},ni=function(e){return!(255&e)},ii=function(e){var t=255&e,n=255&e>>8,i=255&e>>16,a=255&e>>24;return t<255?"rgba("+a+","+i+","+n+","+t/255+")":"rgb("+a+","+i+","+n+")"},ai=function(e,t,n,i){return(e<<24|t<<16|n<<8|Math.round(255*i))>>>0},ri=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},si=function(e,t){var n=t.filter(Un);if(3===n.length){var i=n.map(ri),a=i[0],r=i[1],s=i[2];return ai(a,r,s,1)}if(4===n.length){var l=n.map(ri),o=(a=l[0],r=l[1],s=l[2],l[3]);return ai(a,r,s,o)}return 0};function li(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var oi=function(e,t){var n=t.filter(Un),i=n[0],a=n[1],r=n[2],s=n[3],l=(17===i.type?ei(i.number):Xn.parse(e,i))/(2*Math.PI),o=Rn(a)?a.number/100:0,d=Rn(r)?r.number/100:0,c=void 0!==s&&Rn(s)?Wn(s,1):1;if(0===o)return ai(255*d,255*d,255*d,1);var u=d<=.5?d*(o+1):d+o-d*o,p=2*d-u,A=li(p,u,l+1/3),h=li(p,u,l),f=li(p,u,l-1/3);return ai(255*A,255*h,255*f,c)},di={hsl:oi,hsla:oi,rgb:si,rgba:si},ci=function(e,t){return ti.parse(e,Bn.create(t).parseComponentValue())},ui={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},pi={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Tn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ai={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},hi=function(e,t){var n=ti.parse(e,t[0]),i=t[1];return i&&Rn(i)?{color:n,stop:i}:{color:n,stop:null}},fi=function(e,t){var n=e[0],i=e[e.length-1];null===n.stop&&(n.stop=Hn),null===i.stop&&(i.stop=zn);for(var a=[],r=0,s=0;s<e.length;s++){var l=e[s].stop;if(null!==l){var o=Wn(l,t);o>r?a.push(o):a.push(r),r=o}else a.push(null)}var d=null;for(s=0;s<a.length;s++){var c=a[s];if(null===c)null===d&&(d=s);else if(null!==d){for(var u=s-d,p=(c-a[d-1])/(u+1),A=1;A<=u;A++)a[d+A-1]=p*A;d=null}}return e.map((function(e,n){return{color:e.color,stop:Math.max(Math.min(1,a[n]/t),0)}}))},mi=function(e,t,n){var i=t/2,a=n/2,r=Wn(e[0],t)-i,s=a-Wn(e[1],n);return(Math.atan2(s,r)+2*Math.PI)%(2*Math.PI)},vi=function(e,t,n){var i="number"==typeof e?e:mi(e,t,n),a=Math.abs(t*Math.sin(i))+Math.abs(n*Math.cos(i)),r=t/2,s=n/2,l=a/2,o=Math.sin(i-Math.PI/2)*l,d=Math.cos(i-Math.PI/2)*l;return[a,r-d,r+d,s-o,s+o]},gi=function(e,t){return Math.sqrt(e*e+t*t)},yi=function(e,t,n,i,a){return[[0,0],[0,t],[e,0],[e,t]].reduce((function(e,t){var r=t[0],s=t[1],l=gi(n-r,i-s);return(a?l<e.optimumDistance:l>e.optimumDistance)?{optimumCorner:t,optimumDistance:l}:e}),{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},xi=function(e,t,n,i,a){var r=0,s=0;switch(e.size){case 0:0===e.shape?r=s=Math.min(Math.abs(t),Math.abs(t-i),Math.abs(n),Math.abs(n-a)):1===e.shape&&(r=Math.min(Math.abs(t),Math.abs(t-i)),s=Math.min(Math.abs(n),Math.abs(n-a)));break;case 2:if(0===e.shape)r=s=Math.min(gi(t,n),gi(t,n-a),gi(t-i,n),gi(t-i,n-a));else if(1===e.shape){var l=Math.min(Math.abs(n),Math.abs(n-a))/Math.min(Math.abs(t),Math.abs(t-i)),o=yi(i,a,t,n,!0),d=o[0],c=o[1];s=l*(r=gi(d-t,(c-n)/l))}break;case 1:0===e.shape?r=s=Math.max(Math.abs(t),Math.abs(t-i),Math.abs(n),Math.abs(n-a)):1===e.shape&&(r=Math.max(Math.abs(t),Math.abs(t-i)),s=Math.max(Math.abs(n),Math.abs(n-a)));break;case 3:if(0===e.shape)r=s=Math.max(gi(t,n),gi(t,n-a),gi(t-i,n),gi(t-i,n-a));else if(1===e.shape){l=Math.max(Math.abs(n),Math.abs(n-a))/Math.max(Math.abs(t),Math.abs(t-i));var u=yi(i,a,t,n,!1);d=u[0],c=u[1],s=l*(r=gi(d-t,(c-n)/l))}}return Array.isArray(e.size)&&(r=Wn(e.size[0],i),s=2===e.size.length?Wn(e.size[1],a):r),[r,s]},bi=function(e,t){var n=ei(180),i=[];return _n(t).forEach((function(t,a){if(0===a){var r=t[0];if(20===r.type&&-1!==["top","left","right","bottom"].indexOf(r.value))return void(n=Zn(t));if(Jn(r))return void(n=(Xn.parse(e,r)+ei(270))%ei(360))}var s=hi(e,t);i.push(s)})),{angle:n,stops:i,type:1}},wi="closest-side",ji="farthest-side",Ci="closest-corner",Si="farthest-corner",Ni="circle",Ii="ellipse",Fi="cover",Bi="contain",Pi=function(e,t){var n=0,i=3,a=[],r=[];return _n(t).forEach((function(t,s){var l=!0;if(0===s?l=t.reduce((function(e,t){if(Tn(t))switch(t.value){case"center":return r.push(Vn),!1;case"top":case"left":return r.push(Hn),!1;case"right":case"bottom":return r.push(zn),!1}else if(Rn(t)||Mn(t))return r.push(t),!1;return e}),l):1===s&&(l=t.reduce((function(e,t){if(Tn(t))switch(t.value){case Ni:return n=0,!1;case Ii:return n=1,!1;case Bi:case wi:return i=0,!1;case ji:return i=1,!1;case Ci:return i=2,!1;case Fi:case Si:return i=3,!1}else if(Mn(t)||Rn(t))return Array.isArray(i)||(i=[]),i.push(t),!1;return e}),l)),l){var o=hi(e,t);a.push(o)}})),{size:i,shape:n,stops:a,position:r,type:2}},ki=function(e){return 1===e.type},Ti=function(e){return 2===e.type},Ei={name:"image",parse:function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var i=_i[t.name];if(void 0===i)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return i(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function Di(e){return!(20===e.type&&"none"===e.value||18===e.type&&!_i[e.name])}var Li,Ui,_i={"linear-gradient":function(e,t){var n=ei(180),i=[];return _n(t).forEach((function(t,a){if(0===a){var r=t[0];if(20===r.type&&"to"===r.value)return void(n=Zn(t));if(Jn(r))return void(n=Xn.parse(e,r))}var s=hi(e,t);i.push(s)})),{angle:n,stops:i,type:1}},"-moz-linear-gradient":bi,"-ms-linear-gradient":bi,"-o-linear-gradient":bi,"-webkit-linear-gradient":bi,"radial-gradient":function(e,t){var n=0,i=3,a=[],r=[];return _n(t).forEach((function(t,s){var l=!0;if(0===s){var o=!1;l=t.reduce((function(e,t){if(o)if(Tn(t))switch(t.value){case"center":return r.push(Vn),e;case"top":case"left":return r.push(Hn),e;case"right":case"bottom":return r.push(zn),e}else(Rn(t)||Mn(t))&&r.push(t);else if(Tn(t))switch(t.value){case Ni:return n=0,!1;case Ii:return n=1,!1;case"at":return o=!0,!1;case wi:return i=0,!1;case Fi:case ji:return i=1,!1;case Bi:case Ci:return i=2,!1;case Si:return i=3,!1}else if(Mn(t)||Rn(t))return Array.isArray(i)||(i=[]),i.push(t),!1;return e}),l)}if(l){var d=hi(e,t);a.push(d)}})),{size:i,shape:n,stops:a,position:r,type:2}},"-moz-radial-gradient":Pi,"-ms-radial-gradient":Pi,"-o-radial-gradient":Pi,"-webkit-radial-gradient":Pi,"-webkit-gradient":function(e,t){var n=ei(180),i=[],a=1,r=0,s=3,l=[];return _n(t).forEach((function(t,n){var r=t[0];if(0===n){if(Tn(r)&&"linear"===r.value)return void(a=1);if(Tn(r)&&"radial"===r.value)return void(a=2)}if(18===r.type)if("from"===r.name){var s=ti.parse(e,r.values[0]);i.push({stop:Hn,color:s})}else if("to"===r.name)s=ti.parse(e,r.values[0]),i.push({stop:zn,color:s});else if("color-stop"===r.name){var l=r.values.filter(Un);if(2===l.length){s=ti.parse(e,l[1]);var o=l[0];kn(o)&&i.push({stop:{type:16,number:100*o.number,flags:o.flags},color:s})}}})),1===a?{angle:(n+ei(180))%ei(360),stops:i,type:a}:{size:s,shape:r,stops:i,position:l,type:a}}},Oi={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter((function(e){return Un(e)&&Di(e)})).map((function(t){return Ei.parse(e,t)}))}},Mi={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Tn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ri={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return _n(t).map((function(e){return e.filter(Rn)})).map(Qn)}},Qi={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return _n(t).map((function(e){return e.filter(Tn).map((function(e){return e.value})).join(" ")})).map(Hi)}},Hi=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};(Ui=Li||(Li={})).AUTO="auto",Ui.CONTAIN="contain",Ui.COVER="cover";var Vi,zi,qi={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return _n(t).map((function(e){return e.filter(Wi)}))}},Wi=function(e){return Tn(e)||Rn(e)},Yi=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ki=Yi("top"),Gi=Yi("right"),$i=Yi("bottom"),Xi=Yi("left"),Ji=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Qn(t.filter(Rn))}}},Zi=Ji("top-left"),ea=Ji("top-right"),ta=Ji("bottom-right"),na=Ji("bottom-left"),ia=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},aa=ia("top"),ra=ia("right"),sa=ia("bottom"),la=ia("left"),oa=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Pn(t)?t.number:0}}},da=oa("top"),ca=oa("right"),ua=oa("bottom"),pa=oa("left"),Aa={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ha={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){return"rtl"===t?1:0}},fa={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Tn).reduce((function(e,t){return e|ma(t.value)}),0)}},ma=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},va={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},ga={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};(zi=Vi||(Vi={})).NORMAL="normal",zi.STRICT="strict";var ya,xa,ba={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"strict"===t?Vi.STRICT:Vi.NORMAL}},wa={name:"line-height",initialValue:"normal",prefix:!1,type:4},ja=function(e,t){return Tn(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Rn(e)?Wn(e,t):t},Ca={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:Ei.parse(e,t)}},Sa={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){return"inside"===t?0:1}},Na={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Ia=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Fa=Ia("top"),Ba=Ia("right"),Pa=Ia("bottom"),ka=Ia("left"),Ta={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Tn).map((function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},Ea={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"break-word"===t?"break-word":"normal"}},Da=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},La=Da("top"),Ua=Da("right"),_a=Da("bottom"),Oa=Da("left"),Ma={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Ra={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Qa={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Dn(t[0],"none")?[]:_n(t).map((function(t){for(var n={color:ui.TRANSPARENT,offsetX:Hn,offsetY:Hn,blur:Hn},i=0,a=0;a<t.length;a++){var r=t[a];Mn(r)?(0===i?n.offsetX=r:1===i?n.offsetY=r:n.blur=r,i++):n.color=ti.parse(e,r)}return n}))}},Ha={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Va={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var n=za[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},za={matrix:function(e){var t=e.filter((function(e){return 17===e.type})).map((function(e){return e.number}));return 6===t.length?t:null},matrix3d:function(e){var t=e.filter((function(e){return 17===e.type})).map((function(e){return e.number})),n=t[0],i=t[1];t[2],t[3];var a=t[4],r=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var s=t[12],l=t[13];return t[14],t[15],16===t.length?[n,i,a,r,s,l]:null}},qa={type:16,number:50,flags:ze},Wa=[qa,qa],Ya={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter(Rn);return 2!==n.length?Wa:[n[0],n[1]]}},Ka={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;default:return 0}}};(xa=ya||(ya={})).NORMAL="normal",xa.BREAK_ALL="break-all",xa.KEEP_ALL="keep-all";for(var Ga={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return ya.BREAK_ALL;case"keep-all":return ya.KEEP_ALL;default:return ya.NORMAL}}},$a={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(kn(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Xa={name:"time",parse:function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},Ja={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return kn(t)?t.number:1}},Za={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},er={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Tn).map((function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(e){return 0!==e}))}},tr={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var n=[],i=[];return t.forEach((function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:i.push(n.join(" ")),n.length=0}})),n.length&&i.push(n.join(" ")),i.map((function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"}))}},nr={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ir={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){return kn(t)?t.number:Tn(t)&&"bold"===t.value?700:400}},ar={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Tn).map((function(e){return e.value}))}},rr={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},sr=function(e,t){return 0!==(e&t)},lr={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t}},or={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;for(var i=[],a=t.filter(Ln),r=0;r<a.length;r++){var s=a[r],l=a[r+1];if(20===s.type){var o=l&&kn(l)?l.number:1;i.push({counter:s.value,increment:o})}}return i}},dr={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var n=[],i=t.filter(Ln),a=0;a<i.length;a++){var r=i[a],s=i[a+1];if(Tn(r)&&"none"!==r.value){var l=s&&kn(s)?s.number:0;n.push({counter:r.value,reset:l})}}return n}},cr={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Pn).map((function(t){return Xa.parse(e,t)}))}},ur={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;var i=[],a=t.filter(En);if(a.length%2!=0)return null;for(var r=0;r<a.length;r+=2){var s=a[r].value,l=a[r+1].value;i.push({open:s,close:l})}return i}},pr=function(e,t,n){if(!e)return"";var i=e[Math.min(t,e.length-1)];return i?n?i.open:i.close:""},Ar={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Dn(t[0],"none")?[]:_n(t).map((function(t){for(var n={color:255,offsetX:Hn,offsetY:Hn,blur:Hn,spread:Hn,inset:!1},i=0,a=0;a<t.length;a++){var r=t[a];Dn(r,"inset")?n.inset=!0:Mn(r)?(0===i?n.offsetX=r:1===i?n.offsetY=r:2===i?n.blur=r:n.spread=r,i++):n.color=ti.parse(e,r)}return n}))}},hr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var n=[0,1,2],i=[];return t.filter(Tn).forEach((function(e){switch(e.value){case"stroke":i.push(1);break;case"fill":i.push(0);break;case"markers":i.push(2)}})),n.forEach((function(e){-1===i.indexOf(e)&&i.push(e)})),i}},fr={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},mr={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Pn(t)?t.number:0}},vr=function(){function e(e,t){var n,i;this.animationDuration=xr(e,cr,t.animationDuration),this.backgroundClip=xr(e,pi,t.backgroundClip),this.backgroundColor=xr(e,Ai,t.backgroundColor),this.backgroundImage=xr(e,Oi,t.backgroundImage),this.backgroundOrigin=xr(e,Mi,t.backgroundOrigin),this.backgroundPosition=xr(e,Ri,t.backgroundPosition),this.backgroundRepeat=xr(e,Qi,t.backgroundRepeat),this.backgroundSize=xr(e,qi,t.backgroundSize),this.borderTopColor=xr(e,Ki,t.borderTopColor),this.borderRightColor=xr(e,Gi,t.borderRightColor),this.borderBottomColor=xr(e,$i,t.borderBottomColor),this.borderLeftColor=xr(e,Xi,t.borderLeftColor),this.borderTopLeftRadius=xr(e,Zi,t.borderTopLeftRadius),this.borderTopRightRadius=xr(e,ea,t.borderTopRightRadius),this.borderBottomRightRadius=xr(e,ta,t.borderBottomRightRadius),this.borderBottomLeftRadius=xr(e,na,t.borderBottomLeftRadius),this.borderTopStyle=xr(e,aa,t.borderTopStyle),this.borderRightStyle=xr(e,ra,t.borderRightStyle),this.borderBottomStyle=xr(e,sa,t.borderBottomStyle),this.borderLeftStyle=xr(e,la,t.borderLeftStyle),this.borderTopWidth=xr(e,da,t.borderTopWidth),this.borderRightWidth=xr(e,ca,t.borderRightWidth),this.borderBottomWidth=xr(e,ua,t.borderBottomWidth),this.borderLeftWidth=xr(e,pa,t.borderLeftWidth),this.boxShadow=xr(e,Ar,t.boxShadow),this.color=xr(e,Aa,t.color),this.direction=xr(e,ha,t.direction),this.display=xr(e,fa,t.display),this.float=xr(e,va,t.cssFloat),this.fontFamily=xr(e,tr,t.fontFamily),this.fontSize=xr(e,nr,t.fontSize),this.fontStyle=xr(e,rr,t.fontStyle),this.fontVariant=xr(e,ar,t.fontVariant),this.fontWeight=xr(e,ir,t.fontWeight),this.letterSpacing=xr(e,ga,t.letterSpacing),this.lineBreak=xr(e,ba,t.lineBreak),this.lineHeight=xr(e,wa,t.lineHeight),this.listStyleImage=xr(e,Ca,t.listStyleImage),this.listStylePosition=xr(e,Sa,t.listStylePosition),this.listStyleType=xr(e,Na,t.listStyleType),this.marginTop=xr(e,Fa,t.marginTop),this.marginRight=xr(e,Ba,t.marginRight),this.marginBottom=xr(e,Pa,t.marginBottom),this.marginLeft=xr(e,ka,t.marginLeft),this.opacity=xr(e,Ja,t.opacity);var a=xr(e,Ta,t.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=xr(e,Ea,t.overflowWrap),this.paddingTop=xr(e,La,t.paddingTop),this.paddingRight=xr(e,Ua,t.paddingRight),this.paddingBottom=xr(e,_a,t.paddingBottom),this.paddingLeft=xr(e,Oa,t.paddingLeft),this.paintOrder=xr(e,hr,t.paintOrder),this.position=xr(e,Ra,t.position),this.textAlign=xr(e,Ma,t.textAlign),this.textDecorationColor=xr(e,Za,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=xr(e,er,null!==(i=t.textDecorationLine)&&void 0!==i?i:t.textDecoration),this.textShadow=xr(e,Qa,t.textShadow),this.textTransform=xr(e,Ha,t.textTransform),this.transform=xr(e,Va,t.transform),this.transformOrigin=xr(e,Ya,t.transformOrigin),this.visibility=xr(e,Ka,t.visibility),this.webkitTextStrokeColor=xr(e,fr,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=xr(e,mr,t.webkitTextStrokeWidth),this.wordBreak=xr(e,Ga,t.wordBreak),this.zIndex=xr(e,$a,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return ni(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return sr(this.display,4)||sr(this.display,33554432)||sr(this.display,268435456)||sr(this.display,536870912)||sr(this.display,67108864)||sr(this.display,134217728)},e}(),gr=function(){function e(e,t){this.content=xr(e,lr,t.content),this.quotes=xr(e,ur,t.quotes)}return e}(),yr=function(){function e(e,t){this.counterIncrement=xr(e,or,t.counterIncrement),this.counterReset=xr(e,dr,t.counterReset)}return e}(),xr=function(e,t,n){var i=new Fn,a=null!=n?n.toString():t.initialValue;i.write(a);var r=new Bn(i.read());switch(t.type){case 2:var s=r.parseComponentValue();return t.parse(e,Tn(s)?s.value:t.initialValue);case 0:return t.parse(e,r.parseComponentValue());case 1:return t.parse(e,r.parseComponentValues());case 4:return r.parseComponentValue();case 3:switch(t.format){case"angle":return Xn.parse(e,r.parseComponentValue());case"color":return ti.parse(e,r.parseComponentValue());case"image":return Ei.parse(e,r.parseComponentValue());case"length":var l=r.parseComponentValue();return Mn(l)?l:Hn;case"length-percentage":var o=r.parseComponentValue();return Rn(o)?o:Hn;case"time":return Xa.parse(e,r.parseComponentValue())}}},br="data-html2canvas-debug",wr=function(e){switch(e.getAttribute(br)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},jr=function(e,t){var n=wr(e);return 1===n||t===n},Cr=function(){function e(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,jr(t,3),this.styles=new vr(e,window.getComputedStyle(t,null)),pl(t)&&(this.styles.animationDuration.some((function(e){return e>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=s(this.context,t),jr(t,4)&&(this.flags|=16)}return e}(),Sr="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Nr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ir="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Fr=0;Fr<Nr.length;Fr++)Ir[Nr.charCodeAt(Fr)]=Fr;for(var Br=function(e){var t,n,i,a,r,s=.75*e.length,l=e.length,o=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var d="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(d)?d:new Uint8Array(d);for(t=0;t<l;t+=4)n=Ir[e.charCodeAt(t)],i=Ir[e.charCodeAt(t+1)],a=Ir[e.charCodeAt(t+2)],r=Ir[e.charCodeAt(t+3)],c[o++]=n<<2|i>>4,c[o++]=(15&i)<<4|a>>2,c[o++]=(3&a)<<6|63&r;return d},Pr=function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n.push(e[i+1]<<8|e[i]);return n},kr=function(e){for(var t=e.length,n=[],i=0;i<t;i+=4)n.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return n},Tr=5,Er=11,Dr=2,Lr=65536>>Tr,Ur=(1<<Tr)-1,_r=Lr+(1024>>Tr)+32,Or=65536>>Er,Mr=(1<<Er-Tr)-1,Rr=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},Qr=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},Hr=function(e,t){var n=Br(e),i=Array.isArray(n)?kr(n):new Uint32Array(n),a=Array.isArray(n)?Pr(n):new Uint16Array(n),r=24,s=Rr(a,r/2,i[4]/2),l=2===i[5]?Rr(a,(r+i[4])/2):Qr(i,Math.ceil((r+i[4])/4));return new Vr(i[0],i[1],i[2],i[3],s,l)},Vr=function(){function e(e,t,n,i,a,r){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=i,this.index=a,this.data=r}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>Tr])<<Dr)+(e&Ur),this.data[t];if(e<=65535)return t=((t=this.index[Lr+(e-55296>>Tr)])<<Dr)+(e&Ur),this.data[t];if(e<this.highStart)return t=_r-Or+(e>>Er),t=this.index[t],t+=e>>Tr&Mr,t=((t=this.index[t])<<Dr)+(e&Ur),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),zr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Wr=0;Wr<zr.length;Wr++)qr[zr.charCodeAt(Wr)]=Wr;var Yr,Kr,Gr=1,$r=2,Xr=3,Jr=4,Zr=5,es=7,ts=8,ns=9,is=10,as=11,rs=12,ss=13,ls=14,os=15,ds=function(e){for(var t=[],n=0,i=e.length;n<i;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<i){var r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&a)<<10)+(1023&r)+65536):(t.push(a),n--)}else t.push(a)}return t},cs=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var i=[],a=-1,r="";++a<n;){var s=e[a];s<=65535?i.push(s):(s-=65536,i.push(55296+(s>>10),s%1024+56320)),(a+1===n||i.length>16384)&&(r+=String.fromCharCode.apply(String,i),i.length=0)}return r},us=Hr(Sr),ps="×",As="÷",hs=function(e){return us.get(e)},fs=function(e,t,n){var i=n-2,a=t[i],r=t[n-1],s=t[n];if(r===$r&&s===Xr)return ps;if(r===$r||r===Xr||r===Jr)return As;if(s===$r||s===Xr||s===Jr)return As;if(r===ts&&-1!==[ts,ns,as,rs].indexOf(s))return ps;if(!(r!==as&&r!==ns||s!==ns&&s!==is))return ps;if((r===rs||r===is)&&s===is)return ps;if(s===ss||s===Zr)return ps;if(s===es)return ps;if(r===Gr)return ps;if(r===ss&&s===ls){for(;a===Zr;)a=t[--i];if(a===ls)return ps}if(r===os&&s===os){for(var l=0;a===os;)l++,a=t[--i];if(l%2==0)return ps}return As},ms=function(e){var t=ds(e),n=t.length,i=0,a=0,r=t.map(hs);return{next:function(){if(i>=n)return{done:!0,value:null};for(var e=ps;i<n&&(e=fs(t,r,++i))===ps;);if(e!==ps||i===n){var s=cs.apply(null,t.slice(a,i));return a=i,{value:s,done:!1}}return{done:!0,value:null}}}},vs=function(e){for(var t,n=ms(e),i=[];!(t=n.next()).done;)t.value&&i.push(t.value.slice());return i},gs=function(e){var t=123;if(e.createRange){var n=e.createRange();if(n.getBoundingClientRect){var i=e.createElement("boundtest");i.style.height=t+"px",i.style.display="block",e.body.appendChild(i),n.selectNode(i);var a=n.getBoundingClientRect(),r=Math.round(a.height);if(e.body.removeChild(i),r===t)return!0}}return!1},ys=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var n=e.createRange();t.innerHTML="function"==typeof"".repeat?"👨".repeat(10):"";var i=t.firstChild,a=o(i.data).map((function(e){return d(e)})),r=0,s={},l=a.every((function(e,t){n.setStart(i,r),n.setEnd(i,r+e.length);var a=n.getBoundingClientRect();r+=e.length;var l=a.x>s.x||a.y>s.y;return s=a,0===t||l}));return e.body.removeChild(t),l},xs=function(){return void 0!==(new Image).crossOrigin},bs=function(){return"string"==typeof(new XMLHttpRequest).responseType},ws=function(e){var t=new Image,n=e.createElement("canvas"),i=n.getContext("2d");if(!i)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(t,0,0),n.toDataURL()}catch(a){return!1}return!0},js=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Cs=function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var i=t.getContext("2d");if(!i)return Promise.reject(!1);i.fillStyle="rgb(0, 255, 0)",i.fillRect(0,0,n,n);var a=new Image,r=t.toDataURL();a.src=r;var s=Ss(n,n,0,0,a);return i.fillStyle="red",i.fillRect(0,0,n,n),Ns(s).then((function(t){i.drawImage(t,0,0);var a=i.getImageData(0,0,n,n).data;i.fillStyle="red",i.fillRect(0,0,n,n);var s=e.createElement("div");return s.style.backgroundImage="url("+r+")",s.style.height=n+"px",js(a)?Ns(Ss(n,n,0,0,s)):Promise.reject(!1)})).then((function(e){return i.drawImage(e,0,0),js(i.getImageData(0,0,n,n).data)})).catch((function(){return!1}))},Ss=function(e,t,n,i,a){var r="http://www.w3.org/2000/svg",s=document.createElementNS(r,"svg"),l=document.createElementNS(r,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),l.setAttributeNS(null,"width","100%"),l.setAttributeNS(null,"height","100%"),l.setAttributeNS(null,"x",n.toString()),l.setAttributeNS(null,"y",i.toString()),l.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(l),l.appendChild(a),s},Ns=function(e){return new Promise((function(t,n){var i=new Image;i.onload=function(){return t(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},Is={get SUPPORT_RANGE_BOUNDS(){var e=gs(document);return Object.defineProperty(Is,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Is.SUPPORT_RANGE_BOUNDS&&ys(document);return Object.defineProperty(Is,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=ws(document);return Object.defineProperty(Is,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?Cs(document):Promise.resolve(!1);return Object.defineProperty(Is,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=xs();return Object.defineProperty(Is,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=bs();return Object.defineProperty(Is,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Is,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Is,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Fs=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),Bs=function(e,t,n,i){var a=Ds(t,n),s=[],l=0;return a.forEach((function(t){if(n.textDecorationLine.length||t.trim().length>0)if(Is.SUPPORT_RANGE_BOUNDS){var a=ks(i,l,t.length).getClientRects();if(a.length>1){var o=Ts(t),d=0;o.forEach((function(t){s.push(new Fs(t,r.fromDOMRectList(e,ks(i,d+l,t.length).getClientRects()))),d+=t.length}))}else s.push(new Fs(t,r.fromDOMRectList(e,a)))}else{var c=i.splitText(t.length);s.push(new Fs(t,Ps(e,i))),i=c}else Is.SUPPORT_RANGE_BOUNDS||(i=i.splitText(t.length));l+=t.length})),s},Ps=function(e,t){var n=t.ownerDocument;if(n){var i=n.createElement("html2canvaswrapper");i.appendChild(t.cloneNode(!0));var a=t.parentNode;if(a){a.replaceChild(i,t);var l=s(e,i);return i.firstChild&&a.replaceChild(i.firstChild,i),l}}return r.EMPTY},ks=function(e,t,n){var i=e.ownerDocument;if(!i)throw new Error("Node has no owner document");var a=i.createRange();return a.setStart(e,t),a.setEnd(e,t+n),a},Ts=function(e){if(Is.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map((function(e){return e.segment}))}return vs(e)},Es=function(e,t){if(Is.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map((function(e){return e.segment}))}return Us(e,t)},Ds=function(e,t){return 0!==t.letterSpacing?Ts(e):Es(e,t)},Ls=[32,160,4961,65792,65793,4153,4241],Us=function(e,t){for(var n,i=Qe(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),a=[],r=function(){if(n.value){var e=n.value.slice(),t=o(e),i="";t.forEach((function(e){-1===Ls.indexOf(e)?i+=d(e):(i.length&&a.push(i),a.push(d(e)),i="")})),i.length&&a.push(i)}};!(n=i.next()).done;)r();return a},_s=function(){function e(e,t,n){this.text=Os(t.data,n.textTransform),this.textBounds=Bs(e,this.text,n,t)}return e}(),Os=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(Ms,Rs);case 2:return e.toUpperCase();default:return e}},Ms=/(^|\s|:|-|\(|\))([a-z])/g,Rs=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Qs=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.src=n.currentSrc||n.src,i.intrinsicWidth=n.naturalWidth,i.intrinsicHeight=n.naturalHeight,i.context.cache.addImage(i.src),i}return t(n,e),n}(Cr),Hs=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.canvas=n,i.intrinsicWidth=n.width,i.intrinsicHeight=n.height,i}return t(n,e),n}(Cr),Vs=function(e){function n(t,n){var i=e.call(this,t,n)||this,a=new XMLSerializer,r=s(t,n);return n.setAttribute("width",r.width+"px"),n.setAttribute("height",r.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(n)),i.intrinsicWidth=n.width.baseVal.value,i.intrinsicHeight=n.height.baseVal.value,i.context.cache.addImage(i.svg),i}return t(n,e),n}(Cr),zs=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.value=n.value,i}return t(n,e),n}(Cr),qs=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.start=n.start,i.reversed="boolean"==typeof n.reversed&&!0===n.reversed,i}return t(n,e),n}(Cr),Ws=[{type:15,flags:0,unit:"px",number:3}],Ys=[{type:16,flags:0,number:50}],Ks=function(e){return e.width>e.height?new r(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new r(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},Gs=function(e){var t=e.type===Js?new Array(e.value.length+1).join("•"):e.value;return 0===t.length?e.placeholder||"":t},$s="checkbox",Xs="radio",Js="password",Zs=707406591,el=function(e){function n(t,n){var i=e.call(this,t,n)||this;switch(i.type=n.type.toLowerCase(),i.checked=n.checked,i.value=Gs(n),i.type!==$s&&i.type!==Xs||(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=Ks(i.bounds)),i.type){case $s:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=Ws;break;case Xs:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=Ys}return i}return t(n,e),n}(Cr),tl=function(e){function n(t,n){var i=e.call(this,t,n)||this,a=n.options[n.selectedIndex||0];return i.value=a&&a.text||"",i}return t(n,e),n}(Cr),nl=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.value=n.value,i}return t(n,e),n}(Cr),il=function(e){function n(t,n){var i=e.call(this,t,n)||this;i.src=n.src,i.width=parseInt(n.width,10)||0,i.height=parseInt(n.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){i.tree=ll(t,n.contentWindow.document.documentElement);var a=n.contentWindow.document.documentElement?ci(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):ui.TRANSPARENT,r=n.contentWindow.document.body?ci(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):ui.TRANSPARENT;i.backgroundColor=ni(a)?ni(r)?i.styles.backgroundColor:r:a}}catch(s){}return i}return t(n,e),n}(Cr),al=["OL","UL","MENU"],rl=function(e,t,n,i){for(var a=t.firstChild,r=void 0;a;a=r)if(r=a.nextSibling,cl(a)&&a.data.trim().length>0)n.textNodes.push(new _s(e,a,n.styles));else if(ul(a))if(Fl(a)&&a.assignedNodes)a.assignedNodes().forEach((function(t){return rl(e,t,n,i)}));else{var s=sl(e,a);s.styles.isVisible()&&(ol(a,s,i)?s.flags|=4:dl(s.styles)&&(s.flags|=2),-1!==al.indexOf(a.tagName)&&(s.flags|=8),n.elements.push(s),a.slot,a.shadowRoot?rl(e,a.shadowRoot,s,i):Nl(a)||gl(a)||Il(a)||rl(e,a,s,i))}},sl=function(e,t){return wl(t)?new Qs(e,t):xl(t)?new Hs(e,t):gl(t)?new Vs(e,t):hl(t)?new zs(e,t):fl(t)?new qs(e,t):ml(t)?new el(e,t):Il(t)?new tl(e,t):Nl(t)?new nl(e,t):jl(t)?new il(e,t):new Cr(e,t)},ll=function(e,t){var n=sl(e,t);return n.flags|=4,rl(e,t,n,n),n},ol=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||yl(e)&&n.styles.isTransparent()},dl=function(e){return e.isPositioned()||e.isFloating()},cl=function(e){return e.nodeType===Node.TEXT_NODE},ul=function(e){return e.nodeType===Node.ELEMENT_NODE},pl=function(e){return ul(e)&&void 0!==e.style&&!Al(e)},Al=function(e){return"object"==typeof e.className},hl=function(e){return"LI"===e.tagName},fl=function(e){return"OL"===e.tagName},ml=function(e){return"INPUT"===e.tagName},vl=function(e){return"HTML"===e.tagName},gl=function(e){return"svg"===e.tagName},yl=function(e){return"BODY"===e.tagName},xl=function(e){return"CANVAS"===e.tagName},bl=function(e){return"VIDEO"===e.tagName},wl=function(e){return"IMG"===e.tagName},jl=function(e){return"IFRAME"===e.tagName},Cl=function(e){return"STYLE"===e.tagName},Sl=function(e){return"SCRIPT"===e.tagName},Nl=function(e){return"TEXTAREA"===e.tagName},Il=function(e){return"SELECT"===e.tagName},Fl=function(e){return"SLOT"===e.tagName},Bl=function(e){return e.tagName.indexOf("-")>0},Pl=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,i=e.counterReset,a=!0;null!==n&&n.forEach((function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(a=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)}));var r=[];return a&&i.forEach((function(e){var n=t.counters[e.counter];r.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)})),r},e}(),kl={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Tl={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},El={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Dl={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ll=function(e,t,n,i,a,r){return e<t||e>n?Kl(e,a,r.length>0):i.integers.reduce((function(t,n,a){for(;e>=n;)e-=n,t+=i.values[a];return t}),"")+r},Ul=function(e,t,n,i){var a="";do{n||e--,a=i(e)+a,e/=t}while(e*t>=t);return a},_l=function(e,t,n,i,a){var r=n-t+1;return(e<0?"-":"")+(Ul(Math.abs(e),r,i,(function(e){return d(Math.floor(e%r)+t)}))+a)},Ol=function(e,t,n){void 0===n&&(n=". ");var i=t.length;return Ul(Math.abs(e),i,!1,(function(e){return t[Math.floor(e%i)]}))+n},Ml=1,Rl=2,Ql=4,Hl=8,Vl=function(e,t,n,i,a,r){if(e<-9999||e>9999)return Kl(e,4,a.length>0);var s=Math.abs(e),l=a;if(0===s)return t[0]+l;for(var o=0;s>0&&o<=4;o++){var d=s%10;0===d&&sr(r,Ml)&&""!==l?l=t[d]+l:d>1||1===d&&0===o||1===d&&1===o&&sr(r,Rl)||1===d&&1===o&&sr(r,Ql)&&e>100||1===d&&o>1&&sr(r,Hl)?l=t[d]+(o>0?n[o-1]:"")+l:1===d&&o>0&&(l=n[o-1]+l),s=Math.floor(s/10)}return(e<0?i:"")+l},zl="十百千萬",ql="拾佰仟萬",Wl="マイナス",Yl="마이너스",Kl=function(e,t,n){var i=n?". ":"",a=n?"、":"",r=n?", ":"",s=n?" ":"";switch(t){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var l=_l(e,48,57,!0,i);return l.length<4?"0"+l:l;case 4:return Ol(e,"〇一二三四五六七八九",a);case 6:return Ll(e,1,3999,kl,3,i).toLowerCase();case 7:return Ll(e,1,3999,kl,3,i);case 8:return _l(e,945,969,!1,i);case 9:return _l(e,97,122,!1,i);case 10:return _l(e,65,90,!1,i);case 11:return _l(e,1632,1641,!0,i);case 12:case 49:return Ll(e,1,9999,Tl,3,i);case 35:return Ll(e,1,9999,Tl,3,i).toLowerCase();case 13:return _l(e,2534,2543,!0,i);case 14:case 30:return _l(e,6112,6121,!0,i);case 15:return Ol(e,"子丑寅卯辰巳午未申酉戌亥",a);case 16:return Ol(e,"甲乙丙丁戊己庚辛壬癸",a);case 17:case 48:return Vl(e,"零一二三四五六七八九",zl,"負",a,Rl|Ql|Hl);case 47:return Vl(e,"零壹貳參肆伍陸柒捌玖",ql,"負",a,Ml|Rl|Ql|Hl);case 42:return Vl(e,"零一二三四五六七八九",zl,"负",a,Rl|Ql|Hl);case 41:return Vl(e,"零壹贰叁肆伍陆柒捌玖",ql,"负",a,Ml|Rl|Ql|Hl);case 26:return Vl(e,"〇一二三四五六七八九","十百千万",Wl,a,0);case 25:return Vl(e,"零壱弐参四伍六七八九","拾百千万",Wl,a,Ml|Rl|Ql);case 31:return Vl(e,"영일이삼사오육칠팔구","십백천만",Yl,r,Ml|Rl|Ql);case 33:return Vl(e,"零一二三四五六七八九","十百千萬",Yl,r,0);case 32:return Vl(e,"零壹貳參四五六七八九","拾百千",Yl,r,Ml|Rl|Ql);case 18:return _l(e,2406,2415,!0,i);case 20:return Ll(e,1,19999,Dl,3,i);case 21:return _l(e,2790,2799,!0,i);case 22:return _l(e,2662,2671,!0,i);case 22:return Ll(e,1,10999,El,3,i);case 23:return Ol(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ol(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return _l(e,3302,3311,!0,i);case 28:return Ol(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",a);case 29:return Ol(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",a);case 34:return _l(e,3792,3801,!0,i);case 37:return _l(e,6160,6169,!0,i);case 38:return _l(e,4160,4169,!0,i);case 39:return _l(e,2918,2927,!0,i);case 40:return _l(e,1776,1785,!0,i);case 43:return _l(e,3046,3055,!0,i);case 44:return _l(e,3174,3183,!0,i);case 45:return _l(e,3664,3673,!0,i);case 46:return _l(e,3872,3881,!0,i);default:return _l(e,48,57,!0,i)}},Gl="data-html2canvas-ignore",$l=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new Pl,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,r=Zl(e,t);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var s=e.defaultView.pageXOffset,l=e.defaultView.pageYOffset,o=r.contentWindow,d=o.document,c=no(r).then((function(){return i(n,void 0,void 0,(function(){var e,n;return a(this,(function(i){switch(i.label){case 0:return this.scrolledElements.forEach(lo),o&&(o.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||o.scrollY===t.top&&o.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-t.left,o.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:d.fonts&&d.fonts.ready?[4,d.fonts.ready]:[3,2];case 1:i.sent(),i.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,to(d)]:[3,4];case 3:i.sent(),i.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then((function(){return e(d,n)})).then((function(){return r}))]:[2,r]}}))}))}));return d.open(),d.write(ro(document.doctype)+"<html></html>"),so(this.referenceElement.ownerDocument,s,l),d.replaceChild(d.adoptNode(this.documentElement),d.documentElement),d.close(),c},e.prototype.createElementClone=function(e){if(jr(e,2),xl(e))return this.createCanvasClone(e);if(bl(e))return this.createVideoClone(e);if(Cl(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return wl(t)&&(wl(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Bl(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return ao(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e}),""),i=e.cloneNode(!1);return i.textContent=n,i}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),"SecurityError"!==a.name)throw a}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(o){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var i=e.cloneNode(!1);try{i.width=e.width,i.height=e.height;var a=e.getContext("2d"),r=i.getContext("2d");if(r)if(!this.options.allowTaint&&a)r.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{var s=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(s){var l=s.getContextAttributes();!1===(null==l?void 0:l.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}r.drawImage(e,0,0)}return i}catch(o){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return i},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(a){this.context.logger.info("Unable to clone video as it is tainted",e)}var i=e.ownerDocument.createElement("canvas");return i.width=e.offsetWidth,i.height=e.offsetHeight,i},e.prototype.appendChildNode=function(e,t,n){ul(t)&&(Sl(t)||t.hasAttribute(Gl)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&ul(t)&&Cl(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var i=this,a=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;a;a=a.nextSibling)if(ul(a)&&Fl(a)&&"function"==typeof a.assignedNodes){var r=a.assignedNodes();r.length&&r.forEach((function(e){return i.appendChildNode(t,e,n)}))}else this.appendChildNode(t,a,n)},e.prototype.cloneNode=function(e,t){if(cl(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&ul(e)&&(pl(e)||Al(e))){var i=this.createElementClone(e);i.style.transitionProperty="none";var a=n.getComputedStyle(e),r=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&pl(i)&&(this.clonedReferenceElement=i),yl(i)&&ho(i);var l=this.counters.parse(new yr(this.context,a)),o=this.resolvePseudoContent(e,i,r,Yr.BEFORE);Bl(e)&&(t=!0),bl(e)||this.cloneChildNodes(e,i,t),o&&i.insertBefore(o,i.firstChild);var d=this.resolvePseudoContent(e,i,s,Yr.AFTER);return d&&i.appendChild(d),this.counters.pop(l),(a&&(this.options.copyStyles||Al(e))&&!jl(e)||t)&&ao(a,i),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([i,e.scrollLeft,e.scrollTop]),(Nl(e)||Il(e))&&(Nl(i)||Il(i))&&(i.value=e.value),i}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,i){var a=this;if(n){var r=n.content,s=t.ownerDocument;if(s&&r&&"none"!==r&&"-moz-alt-content"!==r&&"none"!==n.display){this.counters.parse(new yr(this.context,n));var l=new gr(this.context,n),o=s.createElement("html2canvaspseudoelement");ao(n,o),l.content.forEach((function(t){if(0===t.type)o.appendChild(s.createTextNode(t.value));else if(22===t.type){var n=s.createElement("img");n.src=t.value,n.style.opacity="1",o.appendChild(n)}else if(18===t.type){if("attr"===t.name){var i=t.values.filter(Tn);i.length&&o.appendChild(s.createTextNode(e.getAttribute(i[0].value)||""))}else if("counter"===t.name){var r=t.values.filter(Un),d=r[0],c=r[1];if(d&&Tn(d)){var u=a.counters.getCounterValue(d.value),p=c&&Tn(c)?Na.parse(a.context,c.value):3;o.appendChild(s.createTextNode(Kl(u,p,!1)))}}else if("counters"===t.name){var A=t.values.filter(Un),h=(d=A[0],A[1]);if(c=A[2],d&&Tn(d)){var f=a.counters.getCounterValues(d.value),m=c&&Tn(c)?Na.parse(a.context,c.value):3,v=h&&0===h.type?h.value:"",g=f.map((function(e){return Kl(e,m,!1)})).join(v);o.appendChild(s.createTextNode(g))}}}else if(20===t.type)switch(t.value){case"open-quote":o.appendChild(s.createTextNode(pr(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":o.appendChild(s.createTextNode(pr(l.quotes,--a.quoteDepth,!1)));break;default:o.appendChild(s.createTextNode(t.value))}})),o.className=uo+" "+po;var d=i===Yr.BEFORE?" "+uo:" "+po;return Al(t)?t.className.baseValue+=d:t.className+=d,o}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();(Kr=Yr||(Yr={}))[Kr.BEFORE=0]="BEFORE",Kr[Kr.AFTER=1]="AFTER";var Xl,Jl,Zl=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(Gl,"true"),e.body.appendChild(n),n},eo=function(e){return new Promise((function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()}))},to=function(e){return Promise.all([].slice.call(e.images,0).map(eo))},no=function(e){return new Promise((function(t,n){var i=e.contentWindow;if(!i)return n("No window assigned for iframe");var a=i.document;i.onload=e.onload=function(){i.onload=e.onload=null;var n=setInterval((function(){a.body.childNodes.length>0&&"complete"===a.readyState&&(clearInterval(n),t(e))}),50)}}))},io=["all","d","content"],ao=function(e,t){for(var n=e.length-1;n>=0;n--){var i=e.item(n);-1===io.indexOf(i)&&t.style.setProperty(i,e.getPropertyValue(i))}return t},ro=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},so=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},lo=function(e){var t=e[0],n=e[1],i=e[2];t.scrollLeft=n,t.scrollTop=i},oo=":before",co=":after",uo="___html2canvas___pseudoelement_before",po="___html2canvas___pseudoelement_after",Ao='{\n content: "" !important;\n display: none !important;\n}',ho=function(e){fo(e,"."+uo+oo+Ao+"\n ."+po+co+Ao)},fo=function(e,t){var n=e.ownerDocument;if(n){var i=n.createElement("style");i.textContent=t,e.appendChild(i)}},mo=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),vo=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Co(e)||bo(e)?((this._cache[e]=this.loadImage(e)).catch((function(){})),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return i(this,void 0,void 0,(function(){var t,n,i,r,s=this;return a(this,(function(a){switch(a.label){case 0:return t=mo.isSameOrigin(e),n=!wo(e)&&!0===this._options.useCORS&&Is.SUPPORT_CORS_IMAGES&&!t,i=!wo(e)&&!t&&!Co(e)&&"string"==typeof this._options.proxy&&Is.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||wo(e)||Co(e)||i||n?(r=e,i?[4,this.proxy(r)]:[3,2]):[2];case 1:r=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var i=new Image;i.onload=function(){return e(i)},i.onerror=t,(jo(r)||n)&&(i.crossOrigin="anonymous"),i.src=r,!0===i.complete&&setTimeout((function(){return e(i)}),500),s._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+s._options.imageTimeout+"ms) loading image")}),s._options.imageTimeout)}))];case 3:return[2,a.sent()]}}))}))},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var i=e.substring(0,256);return new Promise((function(a,r){var s=Is.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(200===l.status)if("text"===s)a(l.response);else{var e=new FileReader;e.addEventListener("load",(function(){return a(e.result)}),!1),e.addEventListener("error",(function(e){return r(e)}),!1),e.readAsDataURL(l.response)}else r("Failed to proxy resource "+i+" with status code "+l.status)},l.onerror=r;var o=n.indexOf("?")>-1?"&":"?";if(l.open("GET",""+n+o+"url="+encodeURIComponent(e)+"&responseType="+s),"text"!==s&&l instanceof XMLHttpRequest&&(l.responseType=s),t._options.imageTimeout){var d=t._options.imageTimeout;l.timeout=d,l.ontimeout=function(){return r("Timed out ("+d+"ms) proxying "+i)}}l.send()}))},e}(),go=/^data:image\/svg\+xml/i,yo=/^data:image\/.*;base64,/i,xo=/^data:image\/.*/i,bo=function(e){return Is.SUPPORT_SVG_DRAWING||!So(e)},wo=function(e){return xo.test(e)},jo=function(e){return yo.test(e)},Co=function(e){return"blob"===e.substr(0,4)},So=function(e){return"svg"===e.substr(-3).toLowerCase()||go.test(e)},No=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),Io=function(e,t,n){return new No(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Fo=function(){function e(e,t,n,i){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=i}return e.prototype.subdivide=function(t,n){var i=Io(this.start,this.startControl,t),a=Io(this.startControl,this.endControl,t),r=Io(this.endControl,this.end,t),s=Io(i,a,t),l=Io(a,r,t),o=Io(s,l,t);return n?new e(this.start,i,s,o):new e(o,l,r,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Bo=function(e){return 1===e.type},Po=function(){function e(e){var t=e.styles,n=e.bounds,i=qn(t.borderTopLeftRadius,n.width,n.height),a=i[0],r=i[1],s=qn(t.borderTopRightRadius,n.width,n.height),l=s[0],o=s[1],d=qn(t.borderBottomRightRadius,n.width,n.height),c=d[0],u=d[1],p=qn(t.borderBottomLeftRadius,n.width,n.height),A=p[0],h=p[1],f=[];f.push((a+l)/n.width),f.push((A+c)/n.width),f.push((r+h)/n.height),f.push((o+u)/n.height);var m=Math.max.apply(Math,f);m>1&&(a/=m,r/=m,l/=m,o/=m,c/=m,u/=m,A/=m,h/=m);var v=n.width-l,g=n.height-u,y=n.width-c,x=n.height-h,b=t.borderTopWidth,w=t.borderRightWidth,j=t.borderBottomWidth,C=t.borderLeftWidth,S=Wn(t.paddingTop,e.bounds.width),N=Wn(t.paddingRight,e.bounds.width),I=Wn(t.paddingBottom,e.bounds.width),F=Wn(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||r>0?ko(n.left+C/3,n.top+b/3,a-C/3,r-b/3,Xl.TOP_LEFT):new No(n.left+C/3,n.top+b/3),this.topRightBorderDoubleOuterBox=a>0||r>0?ko(n.left+v,n.top+b/3,l-w/3,o-b/3,Xl.TOP_RIGHT):new No(n.left+n.width-w/3,n.top+b/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?ko(n.left+y,n.top+g,c-w/3,u-j/3,Xl.BOTTOM_RIGHT):new No(n.left+n.width-w/3,n.top+n.height-j/3),this.bottomLeftBorderDoubleOuterBox=A>0||h>0?ko(n.left+C/3,n.top+x,A-C/3,h-j/3,Xl.BOTTOM_LEFT):new No(n.left+C/3,n.top+n.height-j/3),this.topLeftBorderDoubleInnerBox=a>0||r>0?ko(n.left+2*C/3,n.top+2*b/3,a-2*C/3,r-2*b/3,Xl.TOP_LEFT):new No(n.left+2*C/3,n.top+2*b/3),this.topRightBorderDoubleInnerBox=a>0||r>0?ko(n.left+v,n.top+2*b/3,l-2*w/3,o-2*b/3,Xl.TOP_RIGHT):new No(n.left+n.width-2*w/3,n.top+2*b/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?ko(n.left+y,n.top+g,c-2*w/3,u-2*j/3,Xl.BOTTOM_RIGHT):new No(n.left+n.width-2*w/3,n.top+n.height-2*j/3),this.bottomLeftBorderDoubleInnerBox=A>0||h>0?ko(n.left+2*C/3,n.top+x,A-2*C/3,h-2*j/3,Xl.BOTTOM_LEFT):new No(n.left+2*C/3,n.top+n.height-2*j/3),this.topLeftBorderStroke=a>0||r>0?ko(n.left+C/2,n.top+b/2,a-C/2,r-b/2,Xl.TOP_LEFT):new No(n.left+C/2,n.top+b/2),this.topRightBorderStroke=a>0||r>0?ko(n.left+v,n.top+b/2,l-w/2,o-b/2,Xl.TOP_RIGHT):new No(n.left+n.width-w/2,n.top+b/2),this.bottomRightBorderStroke=c>0||u>0?ko(n.left+y,n.top+g,c-w/2,u-j/2,Xl.BOTTOM_RIGHT):new No(n.left+n.width-w/2,n.top+n.height-j/2),this.bottomLeftBorderStroke=A>0||h>0?ko(n.left+C/2,n.top+x,A-C/2,h-j/2,Xl.BOTTOM_LEFT):new No(n.left+C/2,n.top+n.height-j/2),this.topLeftBorderBox=a>0||r>0?ko(n.left,n.top,a,r,Xl.TOP_LEFT):new No(n.left,n.top),this.topRightBorderBox=l>0||o>0?ko(n.left+v,n.top,l,o,Xl.TOP_RIGHT):new No(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||u>0?ko(n.left+y,n.top+g,c,u,Xl.BOTTOM_RIGHT):new No(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=A>0||h>0?ko(n.left,n.top+x,A,h,Xl.BOTTOM_LEFT):new No(n.left,n.top+n.height),this.topLeftPaddingBox=a>0||r>0?ko(n.left+C,n.top+b,Math.max(0,a-C),Math.max(0,r-b),Xl.TOP_LEFT):new No(n.left+C,n.top+b),this.topRightPaddingBox=l>0||o>0?ko(n.left+Math.min(v,n.width-w),n.top+b,v>n.width+w?0:Math.max(0,l-w),Math.max(0,o-b),Xl.TOP_RIGHT):new No(n.left+n.width-w,n.top+b),this.bottomRightPaddingBox=c>0||u>0?ko(n.left+Math.min(y,n.width-C),n.top+Math.min(g,n.height-j),Math.max(0,c-w),Math.max(0,u-j),Xl.BOTTOM_RIGHT):new No(n.left+n.width-w,n.top+n.height-j),this.bottomLeftPaddingBox=A>0||h>0?ko(n.left+C,n.top+Math.min(x,n.height-j),Math.max(0,A-C),Math.max(0,h-j),Xl.BOTTOM_LEFT):new No(n.left+C,n.top+n.height-j),this.topLeftContentBox=a>0||r>0?ko(n.left+C+F,n.top+b+S,Math.max(0,a-(C+F)),Math.max(0,r-(b+S)),Xl.TOP_LEFT):new No(n.left+C+F,n.top+b+S),this.topRightContentBox=l>0||o>0?ko(n.left+Math.min(v,n.width+C+F),n.top+b+S,v>n.width+C+F?0:l-C+F,o-(b+S),Xl.TOP_RIGHT):new No(n.left+n.width-(w+N),n.top+b+S),this.bottomRightContentBox=c>0||u>0?ko(n.left+Math.min(y,n.width-(C+F)),n.top+Math.min(g,n.height+b+S),Math.max(0,c-(w+N)),u-(j+I),Xl.BOTTOM_RIGHT):new No(n.left+n.width-(w+N),n.top+n.height-(j+I)),this.bottomLeftContentBox=A>0||h>0?ko(n.left+C+F,n.top+x,Math.max(0,A-(C+F)),h-(j+I),Xl.BOTTOM_LEFT):new No(n.left+C+F,n.top+n.height-(j+I))}return e}();(Jl=Xl||(Xl={}))[Jl.TOP_LEFT=0]="TOP_LEFT",Jl[Jl.TOP_RIGHT=1]="TOP_RIGHT",Jl[Jl.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Jl[Jl.BOTTOM_LEFT=3]="BOTTOM_LEFT";var ko=function(e,t,n,i,a){var r=(Math.sqrt(2)-1)/3*4,s=n*r,l=i*r,o=e+n,d=t+i;switch(a){case Xl.TOP_LEFT:return new Fo(new No(e,d),new No(e,d-l),new No(o-s,t),new No(o,t));case Xl.TOP_RIGHT:return new Fo(new No(e,t),new No(e+s,t),new No(o,d-l),new No(o,d));case Xl.BOTTOM_RIGHT:return new Fo(new No(o,t),new No(o,t+l),new No(e+s,d),new No(e,d));case Xl.BOTTOM_LEFT:default:return new Fo(new No(o,d),new No(o-s,d),new No(e,t+l),new No(e,t))}},To=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Eo=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Do=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Lo=function(){function e(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return e}(),Uo=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),_o=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),Oo=function(e){return 0===e.type},Mo=function(e){return 1===e.type},Ro=function(e){return 2===e.type},Qo=function(e,t){return e.length===t.length&&e.some((function(e,n){return e===t[n]}))},Ho=function(e,t,n,i,a){return e.map((function(e,r){switch(r){case 0:return e.add(t,n);case 1:return e.add(t+i,n);case 2:return e.add(t+i,n+a);case 3:return e.add(t,n+a)}return e}))},Vo=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),zo=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Po(this.container),this.container.styles.opacity<1&&this.effects.push(new _o(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new Lo(n,i,a))}if(0!==this.container.styles.overflowX){var r=To(this.curves),s=Do(this.curves);Qo(r,s)?this.effects.push(new Uo(r,6)):(this.effects.push(new Uo(r,2)),this.effects.push(new Uo(s,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,i=this.effects.slice(0);n;){var a=n.effects.filter((function(e){return!Mo(e)}));if(t||0!==n.container.styles.position||!n.parent){if(i.unshift.apply(i,a),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var r=To(n.curves),s=Do(n.curves);Qo(r,s)||i.unshift(new Uo(s,6))}}else i.unshift.apply(i,a);n=n.parent}return i.filter((function(t){return sr(t.target,e)}))},e}(),qo=function(e,t,n,i){e.container.elements.forEach((function(a){var r=sr(a.flags,4),s=sr(a.flags,2),l=new zo(a,e);sr(a.styles.display,2048)&&i.push(l);var o=sr(a.flags,8)?[]:i;if(r||s){var d=r||a.styles.isPositioned()?n:t,c=new Vo(l);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var u=a.styles.zIndex.order;if(u<0){var p=0;d.negativeZIndex.some((function(e,t){return u>e.element.container.styles.zIndex.order?(p=t,!1):p>0})),d.negativeZIndex.splice(p,0,c)}else if(u>0){var A=0;d.positiveZIndex.some((function(e,t){return u>=e.element.container.styles.zIndex.order?(A=t+1,!1):A>0})),d.positiveZIndex.splice(A,0,c)}else d.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else a.styles.isFloating()?d.nonPositionedFloats.push(c):d.nonPositionedInlineLevel.push(c);qo(l,c,r?c:n,o)}else a.styles.isInlineLevel()?t.inlineLevel.push(l):t.nonInlineLevel.push(l),qo(l,t,n,o);sr(a.flags,8)&&Wo(a,o)}))},Wo=function(e,t){for(var n=e instanceof qs?e.start:1,i=e instanceof qs&&e.reversed,a=0;a<t.length;a++){var r=t[a];r.container instanceof zs&&"number"==typeof r.container.value&&0!==r.container.value&&(n=r.container.value),r.listValue=Kl(n,r.container.styles.listStyleType,!0),n+=i?-1:1}},Yo=function(e){var t=new zo(e,null),n=new Vo(t),i=[];return qo(t,n,n,i),Wo(t.container,i),n},Ko=function(e,t){switch(t){case 0:return Zo(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Zo(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Zo(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return Zo(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Go=function(e,t){switch(t){case 0:return Zo(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Zo(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Zo(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return Zo(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},$o=function(e,t){switch(t){case 0:return Zo(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Zo(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Zo(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return Zo(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},Xo=function(e,t){switch(t){case 0:return Jo(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Jo(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Jo(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Jo(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Jo=function(e,t){var n=[];return Bo(e)?n.push(e.subdivide(.5,!1)):n.push(e),Bo(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Zo=function(e,t,n,i){var a=[];return Bo(e)?a.push(e.subdivide(.5,!1)):a.push(e),Bo(n)?a.push(n.subdivide(.5,!0)):a.push(n),Bo(i)?a.push(i.subdivide(.5,!0).reverse()):a.push(i),Bo(t)?a.push(t.subdivide(.5,!1).reverse()):a.push(t),a},ed=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},td=function(e){var t=e.styles,n=e.bounds,i=Wn(t.paddingLeft,n.width),a=Wn(t.paddingRight,n.width),r=Wn(t.paddingTop,n.width),s=Wn(t.paddingBottom,n.width);return n.add(i+t.borderLeftWidth,r+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+i+a),-(t.borderTopWidth+t.borderBottomWidth+r+s))},nd=function(e,t){return 0===e?t.bounds:2===e?td(t):ed(t)},id=function(e,t){return 0===e?t.bounds:2===e?td(t):ed(t)},ad=function(e,t,n){var i=nd(od(e.styles.backgroundOrigin,t),e),a=id(od(e.styles.backgroundClip,t),e),r=ld(od(e.styles.backgroundSize,t),n,i),s=r[0],l=r[1],o=qn(od(e.styles.backgroundPosition,t),i.width-s,i.height-l);return[dd(od(e.styles.backgroundRepeat,t),o,r,i,a),Math.round(i.left+o[0]),Math.round(i.top+o[1]),s,l]},rd=function(e){return Tn(e)&&e.value===Li.AUTO},sd=function(e){return"number"==typeof e},ld=function(e,t,n){var i=t[0],a=t[1],r=t[2],s=e[0],l=e[1];if(!s)return[0,0];if(Rn(s)&&l&&Rn(l))return[Wn(s,n.width),Wn(l,n.height)];var o=sd(r);if(Tn(s)&&(s.value===Li.CONTAIN||s.value===Li.COVER))return sd(r)?n.width/n.height<r!=(s.value===Li.COVER)?[n.width,n.width/r]:[n.height*r,n.height]:[n.width,n.height];var d=sd(i),c=sd(a),u=d||c;if(rd(s)&&(!l||rd(l)))return d&&c?[i,a]:o||u?u&&o?[d?i:a*r,c?a:i/r]:[d?i:n.width,c?a:n.height]:[n.width,n.height];if(o){var p=0,A=0;return Rn(s)?p=Wn(s,n.width):Rn(l)&&(A=Wn(l,n.height)),rd(s)?p=A*r:l&&!rd(l)||(A=p/r),[p,A]}var h=null,f=null;if(Rn(s)?h=Wn(s,n.width):l&&Rn(l)&&(f=Wn(l,n.height)),null===h||l&&!rd(l)||(f=d&&c?h/i*a:n.height),null!==f&&rd(s)&&(h=d&&c?f/a*i:n.width),null!==h&&null!==f)return[h,f];throw new Error("Unable to calculate background-size for element")},od=function(e,t){var n=e[t];return void 0===n?e[0]:n},dd=function(e,t,n,i,a){var r=t[0],s=t[1],l=n[0],o=n[1];switch(e){case 2:return[new No(Math.round(i.left),Math.round(i.top+s)),new No(Math.round(i.left+i.width),Math.round(i.top+s)),new No(Math.round(i.left+i.width),Math.round(o+i.top+s)),new No(Math.round(i.left),Math.round(o+i.top+s))];case 3:return[new No(Math.round(i.left+r),Math.round(i.top)),new No(Math.round(i.left+r+l),Math.round(i.top)),new No(Math.round(i.left+r+l),Math.round(i.height+i.top)),new No(Math.round(i.left+r),Math.round(i.height+i.top))];case 1:return[new No(Math.round(i.left+r),Math.round(i.top+s)),new No(Math.round(i.left+r+l),Math.round(i.top+s)),new No(Math.round(i.left+r+l),Math.round(i.top+s+o)),new No(Math.round(i.left+r),Math.round(i.top+s+o))];default:return[new No(Math.round(a.left),Math.round(a.top)),new No(Math.round(a.left+a.width),Math.round(a.top)),new No(Math.round(a.left+a.width),Math.round(a.height+a.top)),new No(Math.round(a.left),Math.round(a.height+a.top))]}},cd="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ud="Hidden Text",pd=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),i=this._document.createElement("img"),a=this._document.createElement("span"),r=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",r.appendChild(n),i.src=cd,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=t,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(ud)),n.appendChild(a),n.appendChild(i);var s=i.offsetTop-a.offsetTop+2;n.removeChild(a),n.appendChild(this._document.createTextNode(ud)),n.style.lineHeight="normal",i.style.verticalAlign="super";var l=i.offsetTop-n.offsetTop+2;return r.removeChild(n),{baseline:s,middle:l}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),Ad=function(){function e(e,t){this.context=e,this.options=t}return e}(),hd=1e4,fd=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i._activeEffects=[],i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),n.canvas||(i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px"),i.fontMetrics=new pd(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),i}return t(n,e),n.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach((function(e){return t.applyEffect(e)}))},n.prototype.applyEffect=function(e){this.ctx.save(),Ro(e)&&(this.ctx.globalAlpha=e.opacity),Oo(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Mo(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},n.prototype.renderNode=function(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return sr(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var i=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):Ts(e.text).reduce((function(t,a){return i.ctx.fillText(a,t,e.bounds.top+n),t+i.ctx.measureText(a).width}),e.bounds.left)},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter((function(e){return"normal"===e||"small-caps"===e})).join(""),n=xd(e.fontFamily).join(", "),i=Pn(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,i,n].join(" "),n,i]},n.prototype.renderTextNode=function(e,t){return i(this,void 0,void 0,(function(){var n,i,r,s,l,o,d,c,u=this;return a(this,(function(a){return n=this.createFontStyle(t),i=n[0],r=n[1],s=n[2],this.ctx.font=i,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(r,s),o=l.baseline,d=l.middle,c=t.paintOrder,e.textBounds.forEach((function(e){c.forEach((function(n){switch(n){case 0:u.ctx.fillStyle=ii(t.color),u.renderTextWithLetterSpacing(e,t.letterSpacing,o);var i=t.textShadow;i.length&&e.text.trim().length&&(i.slice(0).reverse().forEach((function(n){u.ctx.shadowColor=ii(n.color),u.ctx.shadowOffsetX=n.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=n.offsetY.number*u.options.scale,u.ctx.shadowBlur=n.blur.number,u.renderTextWithLetterSpacing(e,t.letterSpacing,o)})),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=ii(t.textDecorationColor||t.color),t.textDecorationLine.forEach((function(t){switch(t){case 1:u.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+o),e.bounds.width,1);break;case 2:u.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:u.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+d),e.bounds.width,1)}})));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(u.ctx.strokeStyle=ii(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+o)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter"}}))})),[2]}))}))},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=td(e),a=Do(t);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return i(this,void 0,void 0,(function(){var t,i,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b;return a(this,(function(a){switch(a.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,i=e.curves,s=t.styles,l=0,o=t.textNodes,a.label=1;case 1:return l<o.length?(d=o[l],[4,this.renderTextNode(d,s)]):[3,4];case 2:a.sent(),a.label=3;case 3:return l++,[3,1];case 4:if(!(t instanceof Qs))return[3,8];a.label=5;case 5:return a.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return g=a.sent(),this.renderReplacedElement(t,i,g),[3,8];case 7:return a.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Hs&&this.renderReplacedElement(t,i,t.canvas),!(t instanceof Vs))return[3,12];a.label=9;case 9:return a.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return g=a.sent(),this.renderReplacedElement(t,i,g),[3,12];case 11:return a.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof il&&t.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:c=a.sent(),t.width&&t.height&&this.ctx.drawImage(c,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),a.label=14;case 14:if(t instanceof el&&(u=Math.min(t.bounds.width,t.bounds.height),t.type===$s?t.checked&&(this.ctx.save(),this.path([new No(t.bounds.left+.39363*u,t.bounds.top+.79*u),new No(t.bounds.left+.16*u,t.bounds.top+.5549*u),new No(t.bounds.left+.27347*u,t.bounds.top+.44071*u),new No(t.bounds.left+.39694*u,t.bounds.top+.5649*u),new No(t.bounds.left+.72983*u,t.bounds.top+.23*u),new No(t.bounds.left+.84*u,t.bounds.top+.34085*u),new No(t.bounds.left+.39363*u,t.bounds.top+.79*u)]),this.ctx.fillStyle=ii(Zs),this.ctx.fill(),this.ctx.restore()):t.type===Xs&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+u/2,t.bounds.top+u/2,u/4,0,2*Math.PI,!0),this.ctx.fillStyle=ii(Zs),this.ctx.fill(),this.ctx.restore())),md(t)&&t.value.length){switch(p=this.createFontStyle(s),x=p[0],A=p[1],h=this.fontMetrics.getMetrics(x,A).baseline,this.ctx.font=x,this.ctx.fillStyle=ii(s.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=gd(t.styles.textAlign),b=td(t),f=0,t.styles.textAlign){case 1:f+=b.width/2;break;case 2:f+=b.width}m=b.add(f,0,0,-b.height/2+1),this.ctx.save(),this.path([new No(b.left,b.top),new No(b.left+b.width,b.top),new No(b.left+b.width,b.top+b.height),new No(b.left,b.top+b.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Fs(t.value,m),s.letterSpacing,h),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!sr(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(v=t.styles.listStyleImage).type)return[3,18];g=void 0,y=v.url,a.label=15;case 15:return a.trys.push([15,17,,18]),[4,this.context.cache.match(y)];case 16:return g=a.sent(),this.ctx.drawImage(g,t.bounds.left-(g.width+10),t.bounds.top),[3,18];case 17:return a.sent(),this.context.logger.error("Error loading list-style-image "+y),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(x=this.createFontStyle(s)[0],this.ctx.font=x,this.ctx.fillStyle=ii(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",b=new r(t.bounds.left,t.bounds.top+Wn(t.styles.paddingTop,t.bounds.width),t.bounds.width,ja(s.lineHeight,s.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Fs(e.listValue,b),s.letterSpacing,ja(s.lineHeight,s.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),a.label=20;case 20:return[2]}}))}))},n.prototype.renderStackContent=function(e){return i(this,void 0,void 0,(function(){var t,n,i,r,s,l,o,d,c,u,p,A,h,f,m;return a(this,(function(a){switch(a.label){case 0:return sr(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:a.sent(),t=0,n=e.negativeZIndex,a.label=2;case 2:return t<n.length?(m=n[t],[4,this.renderStack(m)]):[3,5];case 3:a.sent(),a.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:a.sent(),i=0,r=e.nonInlineLevel,a.label=7;case 7:return i<r.length?(m=r[i],[4,this.renderNode(m)]):[3,10];case 8:a.sent(),a.label=9;case 9:return i++,[3,7];case 10:s=0,l=e.nonPositionedFloats,a.label=11;case 11:return s<l.length?(m=l[s],[4,this.renderStack(m)]):[3,14];case 12:a.sent(),a.label=13;case 13:return s++,[3,11];case 14:o=0,d=e.nonPositionedInlineLevel,a.label=15;case 15:return o<d.length?(m=d[o],[4,this.renderStack(m)]):[3,18];case 16:a.sent(),a.label=17;case 17:return o++,[3,15];case 18:c=0,u=e.inlineLevel,a.label=19;case 19:return c<u.length?(m=u[c],[4,this.renderNode(m)]):[3,22];case 20:a.sent(),a.label=21;case 21:return c++,[3,19];case 22:p=0,A=e.zeroOrAutoZIndexOrTransformedOrOpacity,a.label=23;case 23:return p<A.length?(m=A[p],[4,this.renderStack(m)]):[3,26];case 24:a.sent(),a.label=25;case 25:return p++,[3,23];case 26:h=0,f=e.positiveZIndex,a.label=27;case 27:return h<f.length?(m=f[h],[4,this.renderStack(m)]):[3,30];case 28:a.sent(),a.label=29;case 29:return h++,[3,27];case 30:return[2]}}))}))},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach((function(e,n){var i=Bo(e)?e.start:e;0===n?t.ctx.moveTo(i.x,i.y):t.ctx.lineTo(i.x,i.y),Bo(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)}))},n.prototype.renderRepeat=function(e,t,n,i){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},n.prototype.resizeImage=function(e,t,n){var i;if(e.width===t&&e.height===n)return e;var a=(null!==(i=this.canvas.ownerDocument)&&void 0!==i?i:document).createElement("canvas");return a.width=Math.max(1,t),a.height=Math.max(1,n),a.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),a},n.prototype.renderBackgroundImage=function(e){return i(this,void 0,void 0,(function(){var t,n,i,r,s,l;return a(this,(function(o){switch(o.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B,P,k,T,E,D,L;return a(this,(function(a){switch(a.label){case 0:if(0!==n.type)return[3,5];r=void 0,s=n.url,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,i.context.cache.match(s)];case 2:return r=a.sent(),[3,4];case 3:return a.sent(),i.context.logger.error("Error loading background-image "+s),[3,4];case 4:return r&&(l=ad(e,t,[r.width,r.height,r.width/r.height]),x=l[0],N=l[1],I=l[2],j=l[3],C=l[4],g=i.ctx.createPattern(i.resizeImage(r,j,C),"repeat"),i.renderRepeat(x,g,N,I)),[3,6];case 5:ki(n)?(o=ad(e,t,[null,null,null]),x=o[0],N=o[1],I=o[2],j=o[3],C=o[4],d=vi(n.angle,j,C),c=d[0],u=d[1],p=d[2],A=d[3],h=d[4],(f=document.createElement("canvas")).width=j,f.height=C,m=f.getContext("2d"),v=m.createLinearGradient(u,A,p,h),fi(n.stops,c).forEach((function(e){return v.addColorStop(e.stop,ii(e.color))})),m.fillStyle=v,m.fillRect(0,0,j,C),j>0&&C>0&&(g=i.ctx.createPattern(f,"repeat"),i.renderRepeat(x,g,N,I))):Ti(n)&&(y=ad(e,t,[null,null,null]),x=y[0],b=y[1],w=y[2],j=y[3],C=y[4],S=0===n.position.length?[Vn]:n.position,N=Wn(S[0],j),I=Wn(S[S.length-1],C),F=xi(n,N,I,j,C),B=F[0],P=F[1],B>0&&P>0&&(k=i.ctx.createRadialGradient(b+N,w+I,0,b+N,w+I,B),fi(n.stops,2*B).forEach((function(e){return k.addColorStop(e.stop,ii(e.color))})),i.path(x),i.ctx.fillStyle=k,B!==P?(T=e.bounds.left+.5*e.bounds.width,E=e.bounds.top+.5*e.bounds.height,L=1/(D=P/B),i.ctx.save(),i.ctx.translate(T,E),i.ctx.transform(1,0,0,D,0,0),i.ctx.translate(-T,-E),i.ctx.fillRect(b,L*(w-E)+E,j,C*L),i.ctx.restore()):i.ctx.fill())),a.label=6;case 6:return t--,[2]}}))},i=this,r=0,s=e.styles.backgroundImage.slice(0).reverse(),o.label=1;case 1:return r<s.length?(l=s[r],[5,n(l)]):[3,4];case 2:o.sent(),o.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},n.prototype.renderSolidBorder=function(e,t,n){return i(this,void 0,void 0,(function(){return a(this,(function(i){return this.path(Ko(n,t)),this.ctx.fillStyle=ii(e),this.ctx.fill(),[2]}))}))},n.prototype.renderDoubleBorder=function(e,t,n,r){return i(this,void 0,void 0,(function(){var i,s;return a(this,(function(a){switch(a.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,r)]:[3,2];case 1:return a.sent(),[2];case 2:return i=Go(r,n),this.path(i),this.ctx.fillStyle=ii(e),this.ctx.fill(),s=$o(r,n),this.path(s),this.ctx.fill(),[2]}}))}))},n.prototype.renderNodeBackgroundAndBorders=function(e){return i(this,void 0,void 0,(function(){var t,n,i,r,s,l,o,d,c=this;return a(this,(function(a){switch(a.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!ni(t.backgroundColor)||t.backgroundImage.length,i=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],r=vd(od(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(r),this.ctx.clip(),ni(t.backgroundColor)||(this.ctx.fillStyle=ii(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:a.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(t){c.ctx.save();var n=To(e.curves),i=t.inset?0:hd,a=Ho(n,-i+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(c.path(n),c.ctx.clip(),c.mask(a)):(c.mask(n),c.ctx.clip(),c.path(a)),c.ctx.shadowOffsetX=t.offsetX.number+i,c.ctx.shadowOffsetY=t.offsetY.number,c.ctx.shadowColor=ii(t.color),c.ctx.shadowBlur=t.blur.number,c.ctx.fillStyle=t.inset?ii(t.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),a.label=2;case 2:s=0,l=0,o=i,a.label=3;case 3:return l<o.length?0!==(d=o[l]).style&&!ni(d.color)&&d.width>0?2!==d.style?[3,5]:[4,this.renderDashedDottedBorder(d.color,d.width,s,e.curves,2)]:[3,11]:[3,13];case 4:return a.sent(),[3,11];case 5:return 3!==d.style?[3,7]:[4,this.renderDashedDottedBorder(d.color,d.width,s,e.curves,3)];case 6:return a.sent(),[3,11];case 7:return 4!==d.style?[3,9]:[4,this.renderDoubleBorder(d.color,d.width,s,e.curves)];case 8:return a.sent(),[3,11];case 9:return[4,this.renderSolidBorder(d.color,s,e.curves)];case 10:a.sent(),a.label=11;case 11:s++,a.label=12;case 12:return l++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(e,t,n,r,s){return i(this,void 0,void 0,(function(){var i,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b;return a(this,(function(a){return this.ctx.save(),i=Xo(r,n),l=Ko(r,n),2===s&&(this.path(l),this.ctx.clip()),Bo(l[0])?(o=l[0].start.x,d=l[0].start.y):(o=l[0].x,d=l[0].y),Bo(l[1])?(c=l[1].end.x,u=l[1].end.y):(c=l[1].x,u=l[1].y),p=0===n||2===n?Math.abs(o-c):Math.abs(d-u),this.ctx.beginPath(),3===s?this.formatPath(i):this.formatPath(l.slice(0,2)),A=t<3?3*t:2*t,h=t<3?2*t:t,3===s&&(A=t,h=t),f=!0,p<=2*A?f=!1:p<=2*A+h?(A*=m=p/(2*A+h),h*=m):(v=Math.floor((p+h)/(A+h)),g=(p-v*A)/(v-1),h=(y=(p-(v+1)*A)/v)<=0||Math.abs(h-g)<Math.abs(h-y)?g:y),f&&(3===s?this.ctx.setLineDash([0,A+h]):this.ctx.setLineDash([A,h])),3===s?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=ii(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===s&&(Bo(l[0])&&(x=l[3],b=l[0],this.ctx.beginPath(),this.formatPath([new No(x.end.x,x.end.y),new No(b.start.x,b.start.y)]),this.ctx.stroke()),Bo(l[1])&&(x=l[1],b=l[2],this.ctx.beginPath(),this.formatPath([new No(x.end.x,x.end.y),new No(b.start.x,b.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},n.prototype.render=function(e){return i(this,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ii(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=Yo(e),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},n}(Ad),md=function(e){return e instanceof nl||e instanceof tl||e instanceof el&&e.type!==Xs&&e.type!==$s},vd=function(e,t){switch(e){case 0:return To(t);case 2:return Eo(t);default:return Do(t)}},gd=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},yd=["-apple-system","system-ui"],xd=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter((function(e){return-1===yd.indexOf(e)})):e},bd=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=n,i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),i}return t(n,e),n.prototype.render=function(e){return i(this,void 0,void 0,(function(){var t,n;return a(this,(function(i){switch(i.label){case 0:return t=Ss(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,wd(t)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ii(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},n}(Ad),wd=function(e){return new Promise((function(t,n){var i=new Image;i.onload=function(){t(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},jd=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug||this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&console.info},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn||this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error||this.info.apply(this,e))},e.instances={},e}(),Cd=function(){function e(t,n){var i;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new jd({id:this.instanceName,enabled:t.logging}),this.cache=null!==(i=t.cache)&&void 0!==i?i:new vo(this,t)}return e.instanceCount=1,e}(),Sd=function(e,t){return void 0===t&&(t={}),Nd(e,t)};"undefined"!=typeof window&&mo.setContext(window);var Nd=function(e,t){return i(void 0,void 0,void 0,(function(){var i,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B,P,k,T,E,D,L,U,_,O,M,R,Q,H,V,z;return a(this,(function(a){switch(a.label){case 0:if(!e||"object"!=typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(!(i=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(o=i.defaultView))throw new Error("Document is not attached to a Window");return d={allowTaint:null!==(F=t.allowTaint)&&void 0!==F&&F,imageTimeout:null!==(B=t.imageTimeout)&&void 0!==B?B:15e3,proxy:t.proxy,useCORS:null!==(P=t.useCORS)&&void 0!==P&&P},c=n({logging:null===(k=t.logging)||void 0===k||k,cache:t.cache},d),u={windowWidth:null!==(T=t.windowWidth)&&void 0!==T?T:o.innerWidth,windowHeight:null!==(E=t.windowHeight)&&void 0!==E?E:o.innerHeight,scrollX:null!==(D=t.scrollX)&&void 0!==D?D:o.pageXOffset,scrollY:null!==(L=t.scrollY)&&void 0!==L?L:o.pageYOffset},p=new r(u.scrollX,u.scrollY,u.windowWidth,u.windowHeight),A=new Cd(c,p),h=null!==(U=t.foreignObjectRendering)&&void 0!==U&&U,f={allowTaint:null!==(_=t.allowTaint)&&void 0!==_&&_,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:h,copyStyles:h},A.logger.debug("Starting document clone with size "+p.width+"x"+p.height+" scrolled to "+-p.left+","+-p.top),m=new $l(A,e,f),(v=m.clonedReferenceElement)?[4,m.toIFrame(i,p)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=a.sent(),y=yl(v)||vl(v)?l(v.ownerDocument):s(A,v),x=y.width,b=y.height,w=y.left,j=y.top,C=Id(A,v,t.backgroundColor),S={canvas:t.canvas,backgroundColor:C,scale:null!==(M=null!==(O=t.scale)&&void 0!==O?O:o.devicePixelRatio)&&void 0!==M?M:1,x:(null!==(R=t.x)&&void 0!==R?R:0)+w,y:(null!==(Q=t.y)&&void 0!==Q?Q:0)+j,width:null!==(H=t.width)&&void 0!==H?H:Math.ceil(x),height:null!==(V=t.height)&&void 0!==V?V:Math.ceil(b)},h?(A.logger.debug("Document cloned, using foreign object rendering"),[4,new bd(A,S).render(v)]):[3,3];case 2:return N=a.sent(),[3,5];case 3:return A.logger.debug("Document cloned, element located at "+w+","+j+" with size "+x+"x"+b+" using computed rendering"),A.logger.debug("Starting DOM parsing"),I=ll(A,v),C===I.styles.backgroundColor&&(I.styles.backgroundColor=ui.TRANSPARENT),A.logger.debug("Starting renderer for element at "+S.x+","+S.y+" with size "+S.width+"x"+S.height),[4,new fd(A,S).render(I)];case 4:N=a.sent(),a.label=5;case 5:return(null===(z=t.removeContainer)||void 0===z||z)&&($l.destroy(g)||A.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),A.logger.debug("Finished rendering"),[2,N]}}))}))},Id=function(e,t,n){var i=t.ownerDocument,a=i.documentElement?ci(e,getComputedStyle(i.documentElement).backgroundColor):ui.TRANSPARENT,r=i.body?ci(e,getComputedStyle(i.body).backgroundColor):ui.TRANSPARENT,s="string"==typeof n?ci(e,n):null===n?ui.TRANSPARENT:4294967295;return t===i.documentElement?ni(a)?ni(r)?s:r:a:s};return Sd}()),Gp.exports}
|
||
/*!
|
||
* html2pdf.js v0.10.3
|
||
* Copyright (c) 2025 Erik Koopmans
|
||
* Released under the MIT License.
|
||
*/self,Kp=function(e,t){return function(){var n={"./src/plugin/hyperlinks.js":
|
||
/*!**********************************!*\
|
||
!*** ./src/plugin/hyperlinks.js ***!
|
||
\**********************************/function(e,t,n){n.r(t),n(
|
||
/*! core-js/modules/web.dom-collections.for-each.js */
|
||
"./node_modules/core-js/modules/web.dom-collections.for-each.js"),n(
|
||
/*! core-js/modules/es.string.link.js */
|
||
"./node_modules/core-js/modules/es.string.link.js");var i=n(
|
||
/*! ../worker.js */
|
||
"./src/worker.js"),a=n(
|
||
/*! ../utils.js */
|
||
"./src/utils.js"),r=[],s={toContainer:i.default.prototype.toContainer,toPdf:i.default.prototype.toPdf};i.default.prototype.toContainer=function(){return s.toContainer.call(this).then((function(){if(this.opt.enableLinks){var e=this.prop.container,t=e.querySelectorAll("a"),n=(0,a.unitConvert)(e.getBoundingClientRect(),this.prop.pageSize.k);r=[],Array.prototype.forEach.call(t,(function(e){for(var t=e.getClientRects(),i=0;i<t.length;i++){var s=(0,a.unitConvert)(t[i],this.prop.pageSize.k);s.left-=n.left,s.top-=n.top;var l=Math.floor(s.top/this.prop.pageSize.inner.height)+1,o=this.opt.margin[0]+s.top%this.prop.pageSize.inner.height,d=this.opt.margin[1]+s.left;r.push({page:l,top:o,left:d,clientRect:s,link:e})}}),this)}}))},i.default.prototype.toPdf=function(){return s.toPdf.call(this).then((function(){if(this.opt.enableLinks){r.forEach((function(e){this.prop.pdf.setPage(e.page),this.prop.pdf.link(e.left,e.top,e.clientRect.width,e.clientRect.height,{url:e.link.href})}),this);var e=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(e)}}))}},"./src/plugin/jspdf-plugin.js":
|
||
/*!************************************!*\
|
||
!*** ./src/plugin/jspdf-plugin.js ***!
|
||
\************************************/function(e,t,n){n.r(t),n(
|
||
/*! core-js/modules/es.symbol.js */
|
||
"./node_modules/core-js/modules/es.symbol.js"),n(
|
||
/*! core-js/modules/es.symbol.description.js */
|
||
"./node_modules/core-js/modules/es.symbol.description.js"),n(
|
||
/*! core-js/modules/es.object.to-string.js */
|
||
"./node_modules/core-js/modules/es.object.to-string.js"),n(
|
||
/*! core-js/modules/es.symbol.iterator.js */
|
||
"./node_modules/core-js/modules/es.symbol.iterator.js"),n(
|
||
/*! core-js/modules/es.array.iterator.js */
|
||
"./node_modules/core-js/modules/es.array.iterator.js"),n(
|
||
/*! core-js/modules/es.string.iterator.js */
|
||
"./node_modules/core-js/modules/es.string.iterator.js"),n(
|
||
/*! core-js/modules/web.dom-collections.iterator.js */
|
||
"./node_modules/core-js/modules/web.dom-collections.iterator.js");var i=n(
|
||
/*! jspdf */
|
||
"jspdf");function a(e){return(a="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)}i.jsPDF.getPageSize=function(e,t,n){if("object"===a(e)){var i=e;e=i.orientation,t=i.unit||t,n=i.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var r=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":var l=1;break;case"mm":l=72/25.4;break;case"cm":l=72/2.54;break;case"in":l=72;break;case"px":l=.75;break;case"pc":case"em":l=12;break;case"ex":l=6;break;default:throw"Invalid unit: "+t}if(s.hasOwnProperty(r))var o=s[r][1]/l,d=s[r][0]/l;else try{o=n[1],d=n[0]}catch(u){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e){if(e="p",d>o){var c=d;d=o,o=c}}else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",o>d&&(c=d,d=o,o=c)}return{width:d,height:o,unit:t,k:l}},t.default=i.jsPDF},"./src/plugin/pagebreaks.js":
|
||
/*!**********************************!*\
|
||
!*** ./src/plugin/pagebreaks.js ***!
|
||
\**********************************/function(e,t,n){n.r(t),n(
|
||
/*! core-js/modules/es.array.concat.js */
|
||
"./node_modules/core-js/modules/es.array.concat.js"),n(
|
||
/*! core-js/modules/es.array.slice.js */
|
||
"./node_modules/core-js/modules/es.array.slice.js"),n(
|
||
/*! core-js/modules/es.array.join.js */
|
||
"./node_modules/core-js/modules/es.array.join.js"),n(
|
||
/*! core-js/modules/web.dom-collections.for-each.js */
|
||
"./node_modules/core-js/modules/web.dom-collections.for-each.js"),n(
|
||
/*! core-js/modules/es.object.keys.js */
|
||
"./node_modules/core-js/modules/es.object.keys.js");var i=n(
|
||
/*! ../worker.js */
|
||
"./src/worker.js"),a=n(
|
||
/*! ../utils.js */
|
||
"./src/utils.js"),r={toContainer:i.default.prototype.toContainer};i.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},i.default.prototype.toContainer=function(){return r.toContainer.call(this).then((function(){var e=this.prop.container,t=this.prop.pageSize.inner.px.height,n=[].concat(this.opt.pagebreak.mode),i={avoidAll:-1!==n.indexOf("avoid-all"),css:-1!==n.indexOf("css"),legacy:-1!==n.indexOf("legacy")},r={},s=this;["before","after","avoid"].forEach((function(t){var n=i.avoidAll&&"avoid"===t;r[t]=n?[]:[].concat(s.opt.pagebreak[t]||[]),r[t].length>0&&(r[t]=Array.prototype.slice.call(e.querySelectorAll(r[t].join(", "))))}));var l=e.querySelectorAll(".html2pdf__page-break");l=Array.prototype.slice.call(l);var o=e.querySelectorAll("*");Array.prototype.forEach.call(o,(function(e){var n={before:!1,after:i.legacy&&-1!==l.indexOf(e),avoid:i.avoidAll};if(i.css){var s=window.getComputedStyle(e),o=["always","page","left","right"];n={before:n.before||-1!==o.indexOf(s.breakBefore||s.pageBreakBefore),after:n.after||-1!==o.indexOf(s.breakAfter||s.pageBreakAfter),avoid:n.avoid||-1!==["avoid","avoid-page"].indexOf(s.breakInside||s.pageBreakInside)}}Object.keys(n).forEach((function(t){n[t]=n[t]||-1!==r[t].indexOf(e)}));var d=e.getBoundingClientRect();if(n.avoid&&!n.before){var c=Math.floor(d.top/t),u=Math.floor(d.bottom/t),p=Math.abs(d.bottom-d.top)/t;u!==c&&p<=1&&(n.before=!0)}if(n.before){var A=(0,a.createElement)("div",{style:{display:"block",height:t-d.top%t+"px"}});e.parentNode.insertBefore(A,e)}n.after&&(A=(0,a.createElement)("div",{style:{display:"block",height:t-d.bottom%t+"px"}}),e.parentNode.insertBefore(A,e.nextSibling))}))}))}},"./src/utils.js":
|
||
/*!**********************!*\
|
||
!*** ./src/utils.js ***!
|
||
\**********************/function(e,t,n){function i(e){return(i="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)}n.r(t),n.d(t,{objType:function(){return a},createElement:function(){return r},cloneNode:function(){return s},unitConvert:function(){return l},toPx:function(){return o}}),n(
|
||
/*! core-js/modules/es.number.constructor.js */
|
||
"./node_modules/core-js/modules/es.number.constructor.js"),n(
|
||
/*! core-js/modules/es.symbol.js */
|
||
"./node_modules/core-js/modules/es.symbol.js"),n(
|
||
/*! core-js/modules/es.symbol.description.js */
|
||
"./node_modules/core-js/modules/es.symbol.description.js"),n(
|
||
/*! core-js/modules/es.object.to-string.js */
|
||
"./node_modules/core-js/modules/es.object.to-string.js"),n(
|
||
/*! core-js/modules/es.symbol.iterator.js */
|
||
"./node_modules/core-js/modules/es.symbol.iterator.js"),n(
|
||
/*! core-js/modules/es.array.iterator.js */
|
||
"./node_modules/core-js/modules/es.array.iterator.js"),n(
|
||
/*! core-js/modules/es.string.iterator.js */
|
||
"./node_modules/core-js/modules/es.string.iterator.js"),n(
|
||
/*! core-js/modules/web.dom-collections.iterator.js */
|
||
"./node_modules/core-js/modules/web.dom-collections.iterator.js");var a=function(e){var t=i(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},r=function(e,t){var n=document.createElement(e);if(t.className&&(n.className=t.className),t.innerHTML){n.innerHTML=t.innerHTML;for(var i=n.getElementsByTagName("script"),a=i.length;a-- >0;null)i[a].parentNode.removeChild(i[a])}for(var r in t.style)n.style[r]=t.style[r];return n},s=function e(t,n){for(var i=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),a=t.firstChild;a;a=a.nextSibling)!0!==n&&1===a.nodeType&&"SCRIPT"===a.nodeName||i.appendChild(e(a,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(i.width=t.width,i.height=t.height,i.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(i.value=t.value),i.addEventListener("load",(function(){i.scrollTop=t.scrollTop,i.scrollLeft=t.scrollLeft}),!0)),i},l=function(e,t){if("number"===a(e))return 72*e/96/t;var n={};for(var i in e)n[i]=72*e[i]/96/t;return n},o=function(e,t){return Math.floor(e*t/72*96)}},"./src/worker.js":
|
||
/*!***********************!*\
|
||
!*** ./src/worker.js ***!
|
||
\***********************/function(e,t,n){n.r(t),n(
|
||
/*! core-js/modules/es.object.assign.js */
|
||
"./node_modules/core-js/modules/es.object.assign.js"),n(
|
||
/*! core-js/modules/es.array.map.js */
|
||
"./node_modules/core-js/modules/es.array.map.js"),n(
|
||
/*! core-js/modules/es.object.keys.js */
|
||
"./node_modules/core-js/modules/es.object.keys.js"),n(
|
||
/*! core-js/modules/es.array.concat.js */
|
||
"./node_modules/core-js/modules/es.array.concat.js"),n(
|
||
/*! core-js/modules/es.object.to-string.js */
|
||
"./node_modules/core-js/modules/es.object.to-string.js"),n(
|
||
/*! core-js/modules/es.regexp.to-string.js */
|
||
"./node_modules/core-js/modules/es.regexp.to-string.js"),n(
|
||
/*! core-js/modules/es.function.name.js */
|
||
"./node_modules/core-js/modules/es.function.name.js"),n(
|
||
/*! core-js/modules/web.dom-collections.for-each.js */
|
||
"./node_modules/core-js/modules/web.dom-collections.for-each.js");var i=n(
|
||
/*! jspdf */
|
||
"jspdf"),a=n(
|
||
/*! html2canvas */
|
||
"html2canvas"),r=n(
|
||
/*! ./utils.js */
|
||
"./src/utils.js"),s=n(
|
||
/*! es6-promise */
|
||
"./node_modules/es6-promise/dist/es6-promise.js"),l=n.n(s)().Promise,o=function e(t){var n=Object.assign(e.convert(l.resolve()),JSON.parse(JSON.stringify(e.template))),i=e.convert(l.resolve(),n);return i=(i=i.setProgress(1,e,1,[e])).set(t)};(o.prototype=Object.create(l.prototype)).constructor=o,o.convert=function(e,t){return e.__proto__=t||o.prototype,e},o.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},o.prototype.from=function(e,t){return this.then((function(){switch(t=t||function(e){switch((0,r.objType)(e)){case"string":return"string";case"element":return e.nodeName.toLowerCase&&"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e)){case"string":return this.set({src:(0,r.createElement)("div",{innerHTML:e})});case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}}))},o.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var e={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},t={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};e.opacity=0;var n=(0,r.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,r.createElement)("div",{className:"html2pdf__overlay",style:e}),this.prop.container=(0,r.createElement)("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(n),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)}))},o.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then((function(){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,a(this.prop.container,e)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e}))},o.prototype.toPdf=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var e=this.prop.canvas,t=this.opt,n=e.height,a=Math.floor(e.width*this.prop.pageSize.inner.ratio),r=Math.ceil(n/a),s=this.prop.pageSize.inner.height,l=document.createElement("canvas"),o=l.getContext("2d");l.width=e.width,l.height=a,this.prop.pdf=this.prop.pdf||new i.jsPDF(t.jsPDF);for(var d=0;d<r;d++){d===r-1&&n%a!==0&&(l.height=n%a,s=l.height*this.prop.pageSize.inner.width/l.width);var c=l.width,u=l.height;o.fillStyle="white",o.fillRect(0,0,c,u),o.drawImage(e,0,d*a,c,u,0,0,c,u),d&&this.prop.pdf.addPage();var p=l.toDataURL("image/"+t.image.type,t.image.quality);this.prop.pdf.addImage(p,t.image.type,t.margin[1],t.margin[0],this.prop.pageSize.inner.width,s)}}))},o.prototype.output=function(e,t,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},o.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(e,t)}))},o.prototype.outputImg=function(e,t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}}))},o.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},o.prototype.set=function(e){if("object"!==(0,r.objType)(e))return this;var t=Object.keys(e||{}).map((function(t){switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return t in o.template.prop?function(){this.prop[t]=e[t]}:function(){this.opt[t]=e[t]}}}),this);return this.then((function(){return this.thenList(t)}))},o.prototype.get=function(e,t){return this.then((function(){var n=e in o.template.prop?this.prop[e]:this.opt[e];return t?t(n):n}))},o.prototype.setMargin=function(e){return this.then((function(){switch((0,r.objType)(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e})).then(this.setPageSize)},o.prototype.setPageSize=function(e){return this.then((function(){(e=e||i.jsPDF.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:(0,r.toPx)(e.inner.width,e.k),height:(0,r.toPx)(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e}))},o.prototype.setProgress=function(e,t,n,i){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=i&&(this.progress.stack=i),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(e,t,n,i){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,i?this.progress.stack.concat(i):null)},o.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,(function(e,t){return n.updateProgress(null,null,1,[e]),l.prototype.then.call(this,(function(t){return n.updateProgress(null,e),t})).then(e,t).then((function(e){return n.updateProgress(1),e}))}))},o.prototype.thenCore=function(e,t,n){n=n||l.prototype.then;var i=this;e&&(e=e.bind(i)),t&&(t=t.bind(i));var a=-1!==l.toString().indexOf("[native code]")&&"Promise"===l.name?i:o.convert(Object.assign({},i),l.prototype),r=n.call(a,e,t);return o.convert(r,i.__proto__)},o.prototype.thenExternal=function(e,t){return l.prototype.then.call(this,e,t)},o.prototype.thenList=function(e){var t=this;return e.forEach((function(e){t=t.thenCore(e)})),t},o.prototype.catch=function(e){e&&(e=e.bind(this));var t=l.prototype.catch.call(this,e);return o.convert(t,this)},o.prototype.catchExternal=function(e){return l.prototype.catch.call(this,e)},o.prototype.error=function(e){return this.then((function(){throw new Error(e)}))},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,t.default=o},"./node_modules/core-js/internals/a-function.js":
|
||
/*!******************************************************!*\
|
||
!*** ./node_modules/core-js/internals/a-function.js ***!
|
||
\******************************************************/function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"./node_modules/core-js/internals/a-possible-prototype.js":
|
||
/*!****************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/a-possible-prototype.js ***!
|
||
\****************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/is-object */
|
||
"./node_modules/core-js/internals/is-object.js");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"./node_modules/core-js/internals/add-to-unscopables.js":
|
||
/*!**************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/add-to-unscopables.js ***!
|
||
\**************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/well-known-symbol */
|
||
"./node_modules/core-js/internals/well-known-symbol.js"),a=n(
|
||
/*! ../internals/object-create */
|
||
"./node_modules/core-js/internals/object-create.js"),r=n(
|
||
/*! ../internals/object-define-property */
|
||
"./node_modules/core-js/internals/object-define-property.js"),s=i("unscopables"),l=Array.prototype;null==l[s]&&r.f(l,s,{configurable:!0,value:a(null)}),e.exports=function(e){l[s][e]=!0}},"./node_modules/core-js/internals/an-object.js":
|
||
/*!*****************************************************!*\
|
||
!*** ./node_modules/core-js/internals/an-object.js ***!
|
||
\*****************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/is-object */
|
||
"./node_modules/core-js/internals/is-object.js");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"./node_modules/core-js/internals/array-for-each.js":
|
||
/*!**********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/array-for-each.js ***!
|
||
\**********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/array-iteration */
|
||
"./node_modules/core-js/internals/array-iteration.js").forEach,a=n(
|
||
/*! ../internals/array-method-is-strict */
|
||
"./node_modules/core-js/internals/array-method-is-strict.js")("forEach");e.exports=a?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":
|
||
/*!**********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/array-includes.js ***!
|
||
\**********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/to-indexed-object */
|
||
"./node_modules/core-js/internals/to-indexed-object.js"),a=n(
|
||
/*! ../internals/to-length */
|
||
"./node_modules/core-js/internals/to-length.js"),r=n(
|
||
/*! ../internals/to-absolute-index */
|
||
"./node_modules/core-js/internals/to-absolute-index.js"),s=function(e){return function(t,n,s){var l,o=i(t),d=a(o.length),c=r(s,d);if(e&&n!=n){for(;d>c;)if((l=o[c++])!=l)return!0}else for(;d>c;c++)if((e||c in o)&&o[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},"./node_modules/core-js/internals/array-iteration.js":
|
||
/*!***********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/array-iteration.js ***!
|
||
\***********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/function-bind-context */
|
||
"./node_modules/core-js/internals/function-bind-context.js"),a=n(
|
||
/*! ../internals/indexed-object */
|
||
"./node_modules/core-js/internals/indexed-object.js"),r=n(
|
||
/*! ../internals/to-object */
|
||
"./node_modules/core-js/internals/to-object.js"),s=n(
|
||
/*! ../internals/to-length */
|
||
"./node_modules/core-js/internals/to-length.js"),l=n(
|
||
/*! ../internals/array-species-create */
|
||
"./node_modules/core-js/internals/array-species-create.js"),o=[].push,d=function(e){var t=1==e,n=2==e,d=3==e,c=4==e,u=6==e,p=7==e,A=5==e||u;return function(h,f,m,v){for(var g,y,x=r(h),b=a(x),w=i(f,m,3),j=s(b.length),C=0,S=v||l,N=t?S(h,j):n||p?S(h,0):void 0;j>C;C++)if((A||C in b)&&(y=w(g=b[C],C,x),e))if(t)N[C]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return C;case 2:o.call(N,g)}else switch(e){case 4:return!1;case 7:o.call(N,g)}return u?-1:d||c?c:N}};e.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":
|
||
/*!****************************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/array-method-has-species-support.js ***!
|
||
\****************************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js"),a=n(
|
||
/*! ../internals/well-known-symbol */
|
||
"./node_modules/core-js/internals/well-known-symbol.js"),r=n(
|
||
/*! ../internals/engine-v8-version */
|
||
"./node_modules/core-js/internals/engine-v8-version.js"),s=a("species");e.exports=function(e){return r>=51||!i((function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"./node_modules/core-js/internals/array-method-is-strict.js":
|
||
/*!******************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/array-method-is-strict.js ***!
|
||
\******************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js");e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},"./node_modules/core-js/internals/array-species-constructor.js":
|
||
/*!*********************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/array-species-constructor.js ***!
|
||
\*********************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/is-object */
|
||
"./node_modules/core-js/internals/is-object.js"),a=n(
|
||
/*! ../internals/is-array */
|
||
"./node_modules/core-js/internals/is-array.js"),r=n(
|
||
/*! ../internals/well-known-symbol */
|
||
"./node_modules/core-js/internals/well-known-symbol.js")("species");e.exports=function(e){var t;return a(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!a(t.prototype)?i(t)&&null===(t=t[r])&&(t=void 0):t=void 0),void 0===t?Array:t}},"./node_modules/core-js/internals/array-species-create.js":
|
||
/*!****************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/array-species-create.js ***!
|
||
\****************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/array-species-constructor */
|
||
"./node_modules/core-js/internals/array-species-constructor.js");e.exports=function(e,t){return new(i(e))(0===t?0:t)}},"./node_modules/core-js/internals/classof-raw.js":
|
||
/*!*******************************************************!*\
|
||
!*** ./node_modules/core-js/internals/classof-raw.js ***!
|
||
\*******************************************************/function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":
|
||
/*!***************************************************!*\
|
||
!*** ./node_modules/core-js/internals/classof.js ***!
|
||
\***************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/to-string-tag-support */
|
||
"./node_modules/core-js/internals/to-string-tag-support.js"),a=n(
|
||
/*! ../internals/classof-raw */
|
||
"./node_modules/core-js/internals/classof-raw.js"),r=n(
|
||
/*! ../internals/well-known-symbol */
|
||
"./node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),s="Arguments"==a(function(){return arguments}());e.exports=i?a:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),r))?n:s?a(t):"Object"==(i=a(t))&&"function"==typeof t.callee?"Arguments":i}},"./node_modules/core-js/internals/copy-constructor-properties.js":
|
||
/*!***********************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/copy-constructor-properties.js ***!
|
||
\***********************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/has */
|
||
"./node_modules/core-js/internals/has.js"),a=n(
|
||
/*! ../internals/own-keys */
|
||
"./node_modules/core-js/internals/own-keys.js"),r=n(
|
||
/*! ../internals/object-get-own-property-descriptor */
|
||
"./node_modules/core-js/internals/object-get-own-property-descriptor.js"),s=n(
|
||
/*! ../internals/object-define-property */
|
||
"./node_modules/core-js/internals/object-define-property.js");e.exports=function(e,t){for(var n=a(t),l=s.f,o=r.f,d=0;d<n.length;d++){var c=n[d];i(e,c)||l(e,c,o(t,c))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":
|
||
/*!********************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/correct-prototype-getter.js ***!
|
||
\********************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},"./node_modules/core-js/internals/create-html.js":
|
||
/*!*******************************************************!*\
|
||
!*** ./node_modules/core-js/internals/create-html.js ***!
|
||
\*******************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/require-object-coercible */
|
||
"./node_modules/core-js/internals/require-object-coercible.js"),a=n(
|
||
/*! ../internals/to-string */
|
||
"./node_modules/core-js/internals/to-string.js"),r=/"/g;e.exports=function(e,t,n,s){var l=a(i(e)),o="<"+t;return""!==n&&(o+=" "+n+'="'+a(s).replace(r,""")+'"'),o+">"+l+"</"+t+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":
|
||
/*!***********************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/create-iterator-constructor.js ***!
|
||
\***********************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/iterators-core */
|
||
"./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,a=n(
|
||
/*! ../internals/object-create */
|
||
"./node_modules/core-js/internals/object-create.js"),r=n(
|
||
/*! ../internals/create-property-descriptor */
|
||
"./node_modules/core-js/internals/create-property-descriptor.js"),s=n(
|
||
/*! ../internals/set-to-string-tag */
|
||
"./node_modules/core-js/internals/set-to-string-tag.js"),l=n(
|
||
/*! ../internals/iterators */
|
||
"./node_modules/core-js/internals/iterators.js"),o=function(){return this};e.exports=function(e,t,n){var d=t+" Iterator";return e.prototype=a(i,{next:r(1,n)}),s(e,d,!1,!0),l[d]=o,e}},"./node_modules/core-js/internals/create-non-enumerable-property.js":
|
||
/*!**************************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/create-non-enumerable-property.js ***!
|
||
\**************************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/descriptors */
|
||
"./node_modules/core-js/internals/descriptors.js"),a=n(
|
||
/*! ../internals/object-define-property */
|
||
"./node_modules/core-js/internals/object-define-property.js"),r=n(
|
||
/*! ../internals/create-property-descriptor */
|
||
"./node_modules/core-js/internals/create-property-descriptor.js");e.exports=i?function(e,t,n){return a.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"./node_modules/core-js/internals/create-property-descriptor.js":
|
||
/*!**********************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/create-property-descriptor.js ***!
|
||
\**********************************************************************/function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"./node_modules/core-js/internals/create-property.js":
|
||
/*!***********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/create-property.js ***!
|
||
\***********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/to-property-key */
|
||
"./node_modules/core-js/internals/to-property-key.js"),a=n(
|
||
/*! ../internals/object-define-property */
|
||
"./node_modules/core-js/internals/object-define-property.js"),r=n(
|
||
/*! ../internals/create-property-descriptor */
|
||
"./node_modules/core-js/internals/create-property-descriptor.js");e.exports=function(e,t,n){var s=i(t);s in e?a.f(e,s,r(0,n)):e[s]=n}},"./node_modules/core-js/internals/define-iterator.js":
|
||
/*!***********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/define-iterator.js ***!
|
||
\***********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/export */
|
||
"./node_modules/core-js/internals/export.js"),a=n(
|
||
/*! ../internals/create-iterator-constructor */
|
||
"./node_modules/core-js/internals/create-iterator-constructor.js"),r=n(
|
||
/*! ../internals/object-get-prototype-of */
|
||
"./node_modules/core-js/internals/object-get-prototype-of.js"),s=n(
|
||
/*! ../internals/object-set-prototype-of */
|
||
"./node_modules/core-js/internals/object-set-prototype-of.js"),l=n(
|
||
/*! ../internals/set-to-string-tag */
|
||
"./node_modules/core-js/internals/set-to-string-tag.js"),o=n(
|
||
/*! ../internals/create-non-enumerable-property */
|
||
"./node_modules/core-js/internals/create-non-enumerable-property.js"),d=n(
|
||
/*! ../internals/redefine */
|
||
"./node_modules/core-js/internals/redefine.js"),c=n(
|
||
/*! ../internals/well-known-symbol */
|
||
"./node_modules/core-js/internals/well-known-symbol.js"),u=n(
|
||
/*! ../internals/is-pure */
|
||
"./node_modules/core-js/internals/is-pure.js"),p=n(
|
||
/*! ../internals/iterators */
|
||
"./node_modules/core-js/internals/iterators.js"),A=n(
|
||
/*! ../internals/iterators-core */
|
||
"./node_modules/core-js/internals/iterators-core.js"),h=A.IteratorPrototype,f=A.BUGGY_SAFARI_ITERATORS,m=c("iterator"),v="keys",g="values",y="entries",x=function(){return this};e.exports=function(e,t,n,c,A,b,w){a(n,t,c);var j,C,S,N=function(e){if(e===A&&k)return k;if(!f&&e in B)return B[e];switch(e){case v:case g:case y:return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",F=!1,B=e.prototype,P=B[m]||B["@@iterator"]||A&&B[A],k=!f&&P||N(A),T="Array"==t&&B.entries||P;if(T&&(j=r(T.call(new e)),h!==Object.prototype&&j.next&&(u||r(j)===h||(s?s(j,h):"function"!=typeof j[m]&&o(j,m,x)),l(j,I,!0,!0),u&&(p[I]=x))),A==g&&P&&P.name!==g&&(F=!0,k=function(){return P.call(this)}),u&&!w||B[m]===k||o(B,m,k),p[t]=k,A)if(C={values:N(g),keys:b?k:N(v),entries:N(y)},w)for(S in C)(f||F||!(S in B))&&d(B,S,C[S]);else i({target:t,proto:!0,forced:f||F},C);return C}},"./node_modules/core-js/internals/define-well-known-symbol.js":
|
||
/*!********************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/define-well-known-symbol.js ***!
|
||
\********************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/path */
|
||
"./node_modules/core-js/internals/path.js"),a=n(
|
||
/*! ../internals/has */
|
||
"./node_modules/core-js/internals/has.js"),r=n(
|
||
/*! ../internals/well-known-symbol-wrapped */
|
||
"./node_modules/core-js/internals/well-known-symbol-wrapped.js"),s=n(
|
||
/*! ../internals/object-define-property */
|
||
"./node_modules/core-js/internals/object-define-property.js").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});a(t,e)||s(t,e,{value:r.f(e)})}},"./node_modules/core-js/internals/descriptors.js":
|
||
/*!*******************************************************!*\
|
||
!*** ./node_modules/core-js/internals/descriptors.js ***!
|
||
\*******************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"./node_modules/core-js/internals/document-create-element.js":
|
||
/*!*******************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/document-create-element.js ***!
|
||
\*******************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js"),a=n(
|
||
/*! ../internals/is-object */
|
||
"./node_modules/core-js/internals/is-object.js"),r=i.document,s=a(r)&&a(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},"./node_modules/core-js/internals/dom-iterables.js":
|
||
/*!*********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/dom-iterables.js ***!
|
||
\*********************************************************/function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":
|
||
/*!*************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/engine-user-agent.js ***!
|
||
\*************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/get-built-in */
|
||
"./node_modules/core-js/internals/get-built-in.js");e.exports=i("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":
|
||
/*!*************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/engine-v8-version.js ***!
|
||
\*************************************************************/function(e,t,n){var i,a,r=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js"),s=n(
|
||
/*! ../internals/engine-user-agent */
|
||
"./node_modules/core-js/internals/engine-user-agent.js"),l=r.process,o=r.Deno,d=l&&l.versions||o&&o.version,c=d&&d.v8;c?a=(i=c.split("."))[0]<4?1:i[0]+i[1]:s&&(!(i=s.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/))&&(a=i[1]),e.exports=a&&+a},"./node_modules/core-js/internals/enum-bug-keys.js":
|
||
/*!*********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/enum-bug-keys.js ***!
|
||
\*********************************************************/function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":
|
||
/*!**************************************************!*\
|
||
!*** ./node_modules/core-js/internals/export.js ***!
|
||
\**************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js"),a=n(
|
||
/*! ../internals/object-get-own-property-descriptor */
|
||
"./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,r=n(
|
||
/*! ../internals/create-non-enumerable-property */
|
||
"./node_modules/core-js/internals/create-non-enumerable-property.js"),s=n(
|
||
/*! ../internals/redefine */
|
||
"./node_modules/core-js/internals/redefine.js"),l=n(
|
||
/*! ../internals/set-global */
|
||
"./node_modules/core-js/internals/set-global.js"),o=n(
|
||
/*! ../internals/copy-constructor-properties */
|
||
"./node_modules/core-js/internals/copy-constructor-properties.js"),d=n(
|
||
/*! ../internals/is-forced */
|
||
"./node_modules/core-js/internals/is-forced.js");e.exports=function(e,t){var n,c,u,p,A,h=e.target,f=e.global,m=e.stat;if(n=f?i:m?i[h]||l(h,{}):(i[h]||{}).prototype)for(c in t){if(p=t[c],u=e.noTargetGet?(A=a(n,c))&&A.value:n[c],!d(f?c:h+(m?".":"#")+c,e.forced)&&void 0!==u){if(typeof p==typeof u)continue;o(p,u)}(e.sham||u&&u.sham)&&r(p,"sham",!0),s(n,c,p,e)}}},"./node_modules/core-js/internals/fails.js":
|
||
/*!*************************************************!*\
|
||
!*** ./node_modules/core-js/internals/fails.js ***!
|
||
\*************************************************/function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":
|
||
/*!*****************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/function-bind-context.js ***!
|
||
\*****************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/a-function */
|
||
"./node_modules/core-js/internals/a-function.js");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,a){return e.call(t,n,i,a)}}return function(){return e.apply(t,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":
|
||
/*!********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/get-built-in.js ***!
|
||
\********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js");e.exports=function(e,t){return arguments.length<2?"function"==typeof(n=i[e])?n:void 0:i[e]&&i[e][t];var n}},"./node_modules/core-js/internals/global.js":
|
||
/*!**************************************************!*\
|
||
!*** ./node_modules/core-js/internals/global.js ***!
|
||
\**************************************************/function(e){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof d&&d)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":
|
||
/*!***********************************************!*\
|
||
!*** ./node_modules/core-js/internals/has.js ***!
|
||
\***********************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/to-object */
|
||
"./node_modules/core-js/internals/to-object.js"),a={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return a.call(i(e),t)}},"./node_modules/core-js/internals/hidden-keys.js":
|
||
/*!*******************************************************!*\
|
||
!*** ./node_modules/core-js/internals/hidden-keys.js ***!
|
||
\*******************************************************/function(e){e.exports={}},"./node_modules/core-js/internals/html.js":
|
||
/*!************************************************!*\
|
||
!*** ./node_modules/core-js/internals/html.js ***!
|
||
\************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/get-built-in */
|
||
"./node_modules/core-js/internals/get-built-in.js");e.exports=i("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":
|
||
/*!**********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/ie8-dom-define.js ***!
|
||
\**********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/descriptors */
|
||
"./node_modules/core-js/internals/descriptors.js"),a=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js"),r=n(
|
||
/*! ../internals/document-create-element */
|
||
"./node_modules/core-js/internals/document-create-element.js");e.exports=!i&&!a((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/internals/indexed-object.js":
|
||
/*!**********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/indexed-object.js ***!
|
||
\**********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js"),a=n(
|
||
/*! ../internals/classof-raw */
|
||
"./node_modules/core-js/internals/classof-raw.js"),r="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?r.call(e,""):Object(e)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":
|
||
/*!***************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/inherit-if-required.js ***!
|
||
\***************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/is-object */
|
||
"./node_modules/core-js/internals/is-object.js"),a=n(
|
||
/*! ../internals/object-set-prototype-of */
|
||
"./node_modules/core-js/internals/object-set-prototype-of.js");e.exports=function(e,t,n){var r,s;return a&&"function"==typeof(r=t.constructor)&&r!==n&&i(s=r.prototype)&&s!==n.prototype&&a(e,s),e}},"./node_modules/core-js/internals/inspect-source.js":
|
||
/*!**********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/inspect-source.js ***!
|
||
\**********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/shared-store */
|
||
"./node_modules/core-js/internals/shared-store.js"),a=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return a.call(e)}),e.exports=i.inspectSource},"./node_modules/core-js/internals/internal-state.js":
|
||
/*!**********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/internal-state.js ***!
|
||
\**********************************************************/function(e,t,n){var i,a,r,s=n(
|
||
/*! ../internals/native-weak-map */
|
||
"./node_modules/core-js/internals/native-weak-map.js"),l=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js"),o=n(
|
||
/*! ../internals/is-object */
|
||
"./node_modules/core-js/internals/is-object.js"),d=n(
|
||
/*! ../internals/create-non-enumerable-property */
|
||
"./node_modules/core-js/internals/create-non-enumerable-property.js"),c=n(
|
||
/*! ../internals/has */
|
||
"./node_modules/core-js/internals/has.js"),u=n(
|
||
/*! ../internals/shared-store */
|
||
"./node_modules/core-js/internals/shared-store.js"),p=n(
|
||
/*! ../internals/shared-key */
|
||
"./node_modules/core-js/internals/shared-key.js"),A=n(
|
||
/*! ../internals/hidden-keys */
|
||
"./node_modules/core-js/internals/hidden-keys.js"),h="Object already initialized",f=l.WeakMap;if(s||u.state){var m=u.state||(u.state=new f),v=m.get,g=m.has,y=m.set;i=function(e,t){if(g.call(m,e))throw new TypeError(h);return t.facade=e,y.call(m,e,t),t},a=function(e){return v.call(m,e)||{}},r=function(e){return g.call(m,e)}}else{var x=p("state");A[x]=!0,i=function(e,t){if(c(e,x))throw new TypeError(h);return t.facade=e,d(e,x,t),t},a=function(e){return c(e,x)?e[x]:{}},r=function(e){return c(e,x)}}e.exports={set:i,get:a,has:r,enforce:function(e){return r(e)?a(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!o(t)||(n=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"./node_modules/core-js/internals/is-array.js":
|
||
/*!****************************************************!*\
|
||
!*** ./node_modules/core-js/internals/is-array.js ***!
|
||
\****************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/classof-raw */
|
||
"./node_modules/core-js/internals/classof-raw.js");e.exports=Array.isArray||function(e){return"Array"==i(e)}},"./node_modules/core-js/internals/is-forced.js":
|
||
/*!*****************************************************!*\
|
||
!*** ./node_modules/core-js/internals/is-forced.js ***!
|
||
\*****************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js"),a=/#|\.prototype\./,r=function(e,t){var n=l[s(e)];return n==d||n!=o&&("function"==typeof t?i(t):!!t)},s=r.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=r.data={},o=r.NATIVE="N",d=r.POLYFILL="P";e.exports=r},"./node_modules/core-js/internals/is-object.js":
|
||
/*!*****************************************************!*\
|
||
!*** ./node_modules/core-js/internals/is-object.js ***!
|
||
\*****************************************************/function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"./node_modules/core-js/internals/is-pure.js":
|
||
/*!***************************************************!*\
|
||
!*** ./node_modules/core-js/internals/is-pure.js ***!
|
||
\***************************************************/function(e){e.exports=!1},"./node_modules/core-js/internals/is-symbol.js":
|
||
/*!*****************************************************!*\
|
||
!*** ./node_modules/core-js/internals/is-symbol.js ***!
|
||
\*****************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/get-built-in */
|
||
"./node_modules/core-js/internals/get-built-in.js"),a=n(
|
||
/*! ../internals/use-symbol-as-uid */
|
||
"./node_modules/core-js/internals/use-symbol-as-uid.js");e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return"function"==typeof t&&Object(e)instanceof t}},"./node_modules/core-js/internals/iterators-core.js":
|
||
/*!**********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/iterators-core.js ***!
|
||
\**********************************************************/function(e,t,n){var i,a,r,s=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js"),l=n(
|
||
/*! ../internals/object-get-prototype-of */
|
||
"./node_modules/core-js/internals/object-get-prototype-of.js"),o=n(
|
||
/*! ../internals/create-non-enumerable-property */
|
||
"./node_modules/core-js/internals/create-non-enumerable-property.js"),d=n(
|
||
/*! ../internals/has */
|
||
"./node_modules/core-js/internals/has.js"),c=n(
|
||
/*! ../internals/well-known-symbol */
|
||
"./node_modules/core-js/internals/well-known-symbol.js"),u=n(
|
||
/*! ../internals/is-pure */
|
||
"./node_modules/core-js/internals/is-pure.js"),p=c("iterator"),A=!1;[].keys&&("next"in(r=[].keys())?(a=l(l(r)))!==Object.prototype&&(i=a):A=!0);var h=null==i||s((function(){var e={};return i[p].call(e)!==e}));h&&(i={}),u&&!h||d(i,p)||o(i,p,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:A}},"./node_modules/core-js/internals/iterators.js":
|
||
/*!*****************************************************!*\
|
||
!*** ./node_modules/core-js/internals/iterators.js ***!
|
||
\*****************************************************/function(e){e.exports={}},"./node_modules/core-js/internals/native-symbol.js":
|
||
/*!*********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/native-symbol.js ***!
|
||
\*********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/engine-v8-version */
|
||
"./node_modules/core-js/internals/engine-v8-version.js"),a=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js");e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},"./node_modules/core-js/internals/native-weak-map.js":
|
||
/*!***********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/native-weak-map.js ***!
|
||
\***********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js"),a=n(
|
||
/*! ../internals/inspect-source */
|
||
"./node_modules/core-js/internals/inspect-source.js"),r=i.WeakMap;e.exports="function"==typeof r&&/native code/.test(a(r))},"./node_modules/core-js/internals/object-assign.js":
|
||
/*!*********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/object-assign.js ***!
|
||
\*********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/descriptors */
|
||
"./node_modules/core-js/internals/descriptors.js"),a=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js"),r=n(
|
||
/*! ../internals/object-keys */
|
||
"./node_modules/core-js/internals/object-keys.js"),s=n(
|
||
/*! ../internals/object-get-own-property-symbols */
|
||
"./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=n(
|
||
/*! ../internals/object-property-is-enumerable */
|
||
"./node_modules/core-js/internals/object-property-is-enumerable.js"),o=n(
|
||
/*! ../internals/to-object */
|
||
"./node_modules/core-js/internals/to-object.js"),d=n(
|
||
/*! ../internals/indexed-object */
|
||
"./node_modules/core-js/internals/indexed-object.js"),c=Object.assign,u=Object.defineProperty;e.exports=!c||a((function(){if(i&&1!==c({b:1},c(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),a="abcdefghijklmnopqrst";return e[n]=7,a.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||r(c({},t)).join("")!=a}))?function(e,t){for(var n=o(e),a=arguments.length,c=1,u=s.f,p=l.f;a>c;)for(var A,h=d(arguments[c++]),f=u?r(h).concat(u(h)):r(h),m=f.length,v=0;m>v;)A=f[v++],i&&!p.call(h,A)||(n[A]=h[A]);return n}:c},"./node_modules/core-js/internals/object-create.js":
|
||
/*!*********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/object-create.js ***!
|
||
\*********************************************************/function(e,t,n){var i,a=n(
|
||
/*! ../internals/an-object */
|
||
"./node_modules/core-js/internals/an-object.js"),r=n(
|
||
/*! ../internals/object-define-properties */
|
||
"./node_modules/core-js/internals/object-define-properties.js"),s=n(
|
||
/*! ../internals/enum-bug-keys */
|
||
"./node_modules/core-js/internals/enum-bug-keys.js"),l=n(
|
||
/*! ../internals/hidden-keys */
|
||
"./node_modules/core-js/internals/hidden-keys.js"),o=n(
|
||
/*! ../internals/html */
|
||
"./node_modules/core-js/internals/html.js"),d=n(
|
||
/*! ../internals/document-create-element */
|
||
"./node_modules/core-js/internals/document-create-element.js"),c=n(
|
||
/*! ../internals/shared-key */
|
||
"./node_modules/core-js/internals/shared-key.js"),u="prototype",p="script",A=c("IE_PROTO"),h=function(){},f=function(e){return"<"+p+">"+e+"</"+p+">"},m=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}v=document.domain&&i?m(i):function(){var e,t=d("iframe"),n="java"+p+":";if(t.style)return t.style.display="none",o.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F}()||m(i);for(var e=s.length;e--;)delete v[u][s[e]];return v()};l[A]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[u]=a(e),n=new h,h[u]=null,n[A]=e):n=v(),void 0===t?n:r(n,t)}},"./node_modules/core-js/internals/object-define-properties.js":
|
||
/*!********************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/object-define-properties.js ***!
|
||
\********************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/descriptors */
|
||
"./node_modules/core-js/internals/descriptors.js"),a=n(
|
||
/*! ../internals/object-define-property */
|
||
"./node_modules/core-js/internals/object-define-property.js"),r=n(
|
||
/*! ../internals/an-object */
|
||
"./node_modules/core-js/internals/an-object.js"),s=n(
|
||
/*! ../internals/object-keys */
|
||
"./node_modules/core-js/internals/object-keys.js");e.exports=i?Object.defineProperties:function(e,t){r(e);for(var n,i=s(t),l=i.length,o=0;l>o;)a.f(e,n=i[o++],t[n]);return e}},"./node_modules/core-js/internals/object-define-property.js":
|
||
/*!******************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/object-define-property.js ***!
|
||
\******************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/descriptors */
|
||
"./node_modules/core-js/internals/descriptors.js"),a=n(
|
||
/*! ../internals/ie8-dom-define */
|
||
"./node_modules/core-js/internals/ie8-dom-define.js"),r=n(
|
||
/*! ../internals/an-object */
|
||
"./node_modules/core-js/internals/an-object.js"),s=n(
|
||
/*! ../internals/to-property-key */
|
||
"./node_modules/core-js/internals/to-property-key.js"),l=Object.defineProperty;t.f=i?l:function(e,t,n){if(r(e),t=s(t),r(n),a)try{return l(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":
|
||
/*!******************************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/object-get-own-property-descriptor.js ***!
|
||
\******************************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/descriptors */
|
||
"./node_modules/core-js/internals/descriptors.js"),a=n(
|
||
/*! ../internals/object-property-is-enumerable */
|
||
"./node_modules/core-js/internals/object-property-is-enumerable.js"),r=n(
|
||
/*! ../internals/create-property-descriptor */
|
||
"./node_modules/core-js/internals/create-property-descriptor.js"),s=n(
|
||
/*! ../internals/to-indexed-object */
|
||
"./node_modules/core-js/internals/to-indexed-object.js"),l=n(
|
||
/*! ../internals/to-property-key */
|
||
"./node_modules/core-js/internals/to-property-key.js"),o=n(
|
||
/*! ../internals/has */
|
||
"./node_modules/core-js/internals/has.js"),d=n(
|
||
/*! ../internals/ie8-dom-define */
|
||
"./node_modules/core-js/internals/ie8-dom-define.js"),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=s(e),t=l(t),d)try{return c(e,t)}catch(n){}if(o(e,t))return r(!a.f.call(e,t),e[t])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":
|
||
/*!**********************************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/object-get-own-property-names-external.js ***!
|
||
\**********************************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/to-indexed-object */
|
||
"./node_modules/core-js/internals/to-indexed-object.js"),a=n(
|
||
/*! ../internals/object-get-own-property-names */
|
||
"./node_modules/core-js/internals/object-get-own-property-names.js").f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"[object Window]"==r.call(e)?function(e){try{return a(e)}catch(t){return s.slice()}}(e):a(i(e))}},"./node_modules/core-js/internals/object-get-own-property-names.js":
|
||
/*!*************************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/object-get-own-property-names.js ***!
|
||
\*************************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/object-keys-internal */
|
||
"./node_modules/core-js/internals/object-keys-internal.js"),a=n(
|
||
/*! ../internals/enum-bug-keys */
|
||
"./node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":
|
||
/*!***************************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/object-get-own-property-symbols.js ***!
|
||
\***************************************************************************/function(e,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":
|
||
/*!*******************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/object-get-prototype-of.js ***!
|
||
\*******************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/has */
|
||
"./node_modules/core-js/internals/has.js"),a=n(
|
||
/*! ../internals/to-object */
|
||
"./node_modules/core-js/internals/to-object.js"),r=n(
|
||
/*! ../internals/shared-key */
|
||
"./node_modules/core-js/internals/shared-key.js"),s=n(
|
||
/*! ../internals/correct-prototype-getter */
|
||
"./node_modules/core-js/internals/correct-prototype-getter.js"),l=r("IE_PROTO"),o=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=a(e),i(e,l)?e[l]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},"./node_modules/core-js/internals/object-keys-internal.js":
|
||
/*!****************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/object-keys-internal.js ***!
|
||
\****************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/has */
|
||
"./node_modules/core-js/internals/has.js"),a=n(
|
||
/*! ../internals/to-indexed-object */
|
||
"./node_modules/core-js/internals/to-indexed-object.js"),r=n(
|
||
/*! ../internals/array-includes */
|
||
"./node_modules/core-js/internals/array-includes.js").indexOf,s=n(
|
||
/*! ../internals/hidden-keys */
|
||
"./node_modules/core-js/internals/hidden-keys.js");e.exports=function(e,t){var n,l=a(e),o=0,d=[];for(n in l)!i(s,n)&&i(l,n)&&d.push(n);for(;t.length>o;)i(l,n=t[o++])&&(~r(d,n)||d.push(n));return d}},"./node_modules/core-js/internals/object-keys.js":
|
||
/*!*******************************************************!*\
|
||
!*** ./node_modules/core-js/internals/object-keys.js ***!
|
||
\*******************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/object-keys-internal */
|
||
"./node_modules/core-js/internals/object-keys-internal.js"),a=n(
|
||
/*! ../internals/enum-bug-keys */
|
||
"./node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return i(e,a)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":
|
||
/*!*************************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/object-property-is-enumerable.js ***!
|
||
\*************************************************************************/function(e,t){var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!n.call({1:2},1);t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},"./node_modules/core-js/internals/object-set-prototype-of.js":
|
||
/*!*******************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/object-set-prototype-of.js ***!
|
||
\*******************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/an-object */
|
||
"./node_modules/core-js/internals/an-object.js"),a=n(
|
||
/*! ../internals/a-possible-prototype */
|
||
"./node_modules/core-js/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return i(n),a(r),t?e.call(n,r):n.__proto__=r,n}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":
|
||
/*!************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/object-to-string.js ***!
|
||
\************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/to-string-tag-support */
|
||
"./node_modules/core-js/internals/to-string-tag-support.js"),a=n(
|
||
/*! ../internals/classof */
|
||
"./node_modules/core-js/internals/classof.js");e.exports=i?{}.toString:function(){return"[object "+a(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":
|
||
/*!*****************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/ordinary-to-primitive.js ***!
|
||
\*****************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/is-object */
|
||
"./node_modules/core-js/internals/is-object.js");e.exports=function(e,t){var n,a;if("string"===t&&"function"==typeof(n=e.toString)&&!i(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!i(a=n.call(e)))return a;if("string"!==t&&"function"==typeof(n=e.toString)&&!i(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":
|
||
/*!****************************************************!*\
|
||
!*** ./node_modules/core-js/internals/own-keys.js ***!
|
||
\****************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/get-built-in */
|
||
"./node_modules/core-js/internals/get-built-in.js"),a=n(
|
||
/*! ../internals/object-get-own-property-names */
|
||
"./node_modules/core-js/internals/object-get-own-property-names.js"),r=n(
|
||
/*! ../internals/object-get-own-property-symbols */
|
||
"./node_modules/core-js/internals/object-get-own-property-symbols.js"),s=n(
|
||
/*! ../internals/an-object */
|
||
"./node_modules/core-js/internals/an-object.js");e.exports=i("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=r.f;return n?t.concat(n(e)):t}},"./node_modules/core-js/internals/path.js":
|
||
/*!************************************************!*\
|
||
!*** ./node_modules/core-js/internals/path.js ***!
|
||
\************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js");e.exports=i},"./node_modules/core-js/internals/redefine.js":
|
||
/*!****************************************************!*\
|
||
!*** ./node_modules/core-js/internals/redefine.js ***!
|
||
\****************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js"),a=n(
|
||
/*! ../internals/create-non-enumerable-property */
|
||
"./node_modules/core-js/internals/create-non-enumerable-property.js"),r=n(
|
||
/*! ../internals/has */
|
||
"./node_modules/core-js/internals/has.js"),s=n(
|
||
/*! ../internals/set-global */
|
||
"./node_modules/core-js/internals/set-global.js"),l=n(
|
||
/*! ../internals/inspect-source */
|
||
"./node_modules/core-js/internals/inspect-source.js"),o=n(
|
||
/*! ../internals/internal-state */
|
||
"./node_modules/core-js/internals/internal-state.js"),d=o.get,c=o.enforce,u=String(String).split("String");(e.exports=function(e,t,n,l){var o,d=!!l&&!!l.unsafe,p=!!l&&!!l.enumerable,A=!!l&&!!l.noTargetGet;"function"==typeof n&&("string"!=typeof t||r(n,"name")||a(n,"name",t),(o=c(n)).source||(o.source=u.join("string"==typeof t?t:""))),e!==i?(d?!A&&e[t]&&(p=!0):delete e[t],p?e[t]=n:a(e,t,n)):p?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&d(this).source||l(this)}))},"./node_modules/core-js/internals/regexp-flags.js":
|
||
/*!********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/regexp-flags.js ***!
|
||
\********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/an-object */
|
||
"./node_modules/core-js/internals/an-object.js");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"./node_modules/core-js/internals/require-object-coercible.js":
|
||
/*!********************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/require-object-coercible.js ***!
|
||
\********************************************************************/function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"./node_modules/core-js/internals/set-global.js":
|
||
/*!******************************************************!*\
|
||
!*** ./node_modules/core-js/internals/set-global.js ***!
|
||
\******************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js");e.exports=function(e,t){try{Object.defineProperty(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},"./node_modules/core-js/internals/set-to-string-tag.js":
|
||
/*!*************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/set-to-string-tag.js ***!
|
||
\*************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/object-define-property */
|
||
"./node_modules/core-js/internals/object-define-property.js").f,a=n(
|
||
/*! ../internals/has */
|
||
"./node_modules/core-js/internals/has.js"),r=n(
|
||
/*! ../internals/well-known-symbol */
|
||
"./node_modules/core-js/internals/well-known-symbol.js")("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},"./node_modules/core-js/internals/shared-key.js":
|
||
/*!******************************************************!*\
|
||
!*** ./node_modules/core-js/internals/shared-key.js ***!
|
||
\******************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/shared */
|
||
"./node_modules/core-js/internals/shared.js"),a=n(
|
||
/*! ../internals/uid */
|
||
"./node_modules/core-js/internals/uid.js"),r=i("keys");e.exports=function(e){return r[e]||(r[e]=a(e))}},"./node_modules/core-js/internals/shared-store.js":
|
||
/*!********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/shared-store.js ***!
|
||
\********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js"),a=n(
|
||
/*! ../internals/set-global */
|
||
"./node_modules/core-js/internals/set-global.js"),r="__core-js_shared__",s=i[r]||a(r,{});e.exports=s},"./node_modules/core-js/internals/shared.js":
|
||
/*!**************************************************!*\
|
||
!*** ./node_modules/core-js/internals/shared.js ***!
|
||
\**************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/is-pure */
|
||
"./node_modules/core-js/internals/is-pure.js"),a=n(
|
||
/*! ../internals/shared-store */
|
||
"./node_modules/core-js/internals/shared-store.js");(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.16.0",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":
|
||
/*!**************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/string-html-forced.js ***!
|
||
\**************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js");e.exports=function(e){return i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},"./node_modules/core-js/internals/string-multibyte.js":
|
||
/*!************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/string-multibyte.js ***!
|
||
\************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/to-integer */
|
||
"./node_modules/core-js/internals/to-integer.js"),a=n(
|
||
/*! ../internals/to-string */
|
||
"./node_modules/core-js/internals/to-string.js"),r=n(
|
||
/*! ../internals/require-object-coercible */
|
||
"./node_modules/core-js/internals/require-object-coercible.js"),s=function(e){return function(t,n){var s,l,o=a(r(t)),d=i(n),c=o.length;return d<0||d>=c?e?"":void 0:(s=o.charCodeAt(d))<55296||s>56319||d+1===c||(l=o.charCodeAt(d+1))<56320||l>57343?e?o.charAt(d):s:e?o.slice(d,d+2):l-56320+(s-55296<<10)+65536}};e.exports={codeAt:s(!1),charAt:s(!0)}},"./node_modules/core-js/internals/string-trim.js":
|
||
/*!*******************************************************!*\
|
||
!*** ./node_modules/core-js/internals/string-trim.js ***!
|
||
\*******************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/require-object-coercible */
|
||
"./node_modules/core-js/internals/require-object-coercible.js"),a=n(
|
||
/*! ../internals/to-string */
|
||
"./node_modules/core-js/internals/to-string.js"),r="["+n(
|
||
/*! ../internals/whitespaces */
|
||
"./node_modules/core-js/internals/whitespaces.js")+"]",s=RegExp("^"+r+r+"*"),l=RegExp(r+r+"*$"),o=function(e){return function(t){var n=a(i(t));return 1&e&&(n=n.replace(s,"")),2&e&&(n=n.replace(l,"")),n}};e.exports={start:o(1),end:o(2),trim:o(3)}},"./node_modules/core-js/internals/to-absolute-index.js":
|
||
/*!*************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/to-absolute-index.js ***!
|
||
\*************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/to-integer */
|
||
"./node_modules/core-js/internals/to-integer.js"),a=Math.max,r=Math.min;e.exports=function(e,t){var n=i(e);return n<0?a(n+t,0):r(n,t)}},"./node_modules/core-js/internals/to-indexed-object.js":
|
||
/*!*************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/to-indexed-object.js ***!
|
||
\*************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/indexed-object */
|
||
"./node_modules/core-js/internals/indexed-object.js"),a=n(
|
||
/*! ../internals/require-object-coercible */
|
||
"./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return i(a(e))}},"./node_modules/core-js/internals/to-integer.js":
|
||
/*!******************************************************!*\
|
||
!*** ./node_modules/core-js/internals/to-integer.js ***!
|
||
\******************************************************/function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},"./node_modules/core-js/internals/to-length.js":
|
||
/*!*****************************************************!*\
|
||
!*** ./node_modules/core-js/internals/to-length.js ***!
|
||
\*****************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/to-integer */
|
||
"./node_modules/core-js/internals/to-integer.js"),a=Math.min;e.exports=function(e){return e>0?a(i(e),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":
|
||
/*!*****************************************************!*\
|
||
!*** ./node_modules/core-js/internals/to-object.js ***!
|
||
\*****************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/require-object-coercible */
|
||
"./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return Object(i(e))}},"./node_modules/core-js/internals/to-primitive.js":
|
||
/*!********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/to-primitive.js ***!
|
||
\********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/is-object */
|
||
"./node_modules/core-js/internals/is-object.js"),a=n(
|
||
/*! ../internals/is-symbol */
|
||
"./node_modules/core-js/internals/is-symbol.js"),r=n(
|
||
/*! ../internals/ordinary-to-primitive */
|
||
"./node_modules/core-js/internals/ordinary-to-primitive.js"),s=n(
|
||
/*! ../internals/well-known-symbol */
|
||
"./node_modules/core-js/internals/well-known-symbol.js")("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,l=e[s];if(void 0!==l){if(void 0===t&&(t="default"),n=l.call(e,t),!i(n)||a(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),r(e,t)}},"./node_modules/core-js/internals/to-property-key.js":
|
||
/*!***********************************************************!*\
|
||
!*** ./node_modules/core-js/internals/to-property-key.js ***!
|
||
\***********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/to-primitive */
|
||
"./node_modules/core-js/internals/to-primitive.js"),a=n(
|
||
/*! ../internals/is-symbol */
|
||
"./node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var t=i(e,"string");return a(t)?t:String(t)}},"./node_modules/core-js/internals/to-string-tag-support.js":
|
||
/*!*****************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/to-string-tag-support.js ***!
|
||
\*****************************************************************/function(e,t,n){var i={};i[n(
|
||
/*! ../internals/well-known-symbol */
|
||
"./node_modules/core-js/internals/well-known-symbol.js")("toStringTag")]="z",e.exports="[object z]"===String(i)},"./node_modules/core-js/internals/to-string.js":
|
||
/*!*****************************************************!*\
|
||
!*** ./node_modules/core-js/internals/to-string.js ***!
|
||
\*****************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/is-symbol */
|
||
"./node_modules/core-js/internals/is-symbol.js");e.exports=function(e){if(i(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},"./node_modules/core-js/internals/uid.js":
|
||
/*!***********************************************!*\
|
||
!*** ./node_modules/core-js/internals/uid.js ***!
|
||
\***********************************************/function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":
|
||
/*!*************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/use-symbol-as-uid.js ***!
|
||
\*************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/native-symbol */
|
||
"./node_modules/core-js/internals/native-symbol.js");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":
|
||
/*!*********************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/well-known-symbol-wrapped.js ***!
|
||
\*********************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/well-known-symbol */
|
||
"./node_modules/core-js/internals/well-known-symbol.js");t.f=i},"./node_modules/core-js/internals/well-known-symbol.js":
|
||
/*!*************************************************************!*\
|
||
!*** ./node_modules/core-js/internals/well-known-symbol.js ***!
|
||
\*************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js"),a=n(
|
||
/*! ../internals/shared */
|
||
"./node_modules/core-js/internals/shared.js"),r=n(
|
||
/*! ../internals/has */
|
||
"./node_modules/core-js/internals/has.js"),s=n(
|
||
/*! ../internals/uid */
|
||
"./node_modules/core-js/internals/uid.js"),l=n(
|
||
/*! ../internals/native-symbol */
|
||
"./node_modules/core-js/internals/native-symbol.js"),o=n(
|
||
/*! ../internals/use-symbol-as-uid */
|
||
"./node_modules/core-js/internals/use-symbol-as-uid.js"),d=a("wks"),c=i.Symbol,u=o?c:c&&c.withoutSetter||s;e.exports=function(e){return r(d,e)&&(l||"string"==typeof d[e])||(l&&r(c,e)?d[e]=c[e]:d[e]=u("Symbol."+e)),d[e]}},"./node_modules/core-js/internals/whitespaces.js":
|
||
/*!*******************************************************!*\
|
||
!*** ./node_modules/core-js/internals/whitespaces.js ***!
|
||
\*******************************************************/function(e){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"./node_modules/core-js/modules/es.array.concat.js":
|
||
/*!*********************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.array.concat.js ***!
|
||
\*********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/export */
|
||
"./node_modules/core-js/internals/export.js"),a=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js"),r=n(
|
||
/*! ../internals/is-array */
|
||
"./node_modules/core-js/internals/is-array.js"),s=n(
|
||
/*! ../internals/is-object */
|
||
"./node_modules/core-js/internals/is-object.js"),l=n(
|
||
/*! ../internals/to-object */
|
||
"./node_modules/core-js/internals/to-object.js"),o=n(
|
||
/*! ../internals/to-length */
|
||
"./node_modules/core-js/internals/to-length.js"),d=n(
|
||
/*! ../internals/create-property */
|
||
"./node_modules/core-js/internals/create-property.js"),c=n(
|
||
/*! ../internals/array-species-create */
|
||
"./node_modules/core-js/internals/array-species-create.js"),u=n(
|
||
/*! ../internals/array-method-has-species-support */
|
||
"./node_modules/core-js/internals/array-method-has-species-support.js"),p=n(
|
||
/*! ../internals/well-known-symbol */
|
||
"./node_modules/core-js/internals/well-known-symbol.js"),A=n(
|
||
/*! ../internals/engine-v8-version */
|
||
"./node_modules/core-js/internals/engine-v8-version.js"),h=p("isConcatSpreadable"),f=9007199254740991,m="Maximum allowed index exceeded",v=A>=51||!a((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),g=u("concat"),y=function(e){if(!s(e))return!1;var t=e[h];return void 0!==t?!!t:r(e)};i({target:"Array",proto:!0,forced:!v||!g},{concat:function(e){var t,n,i,a,r,s=l(this),u=c(s,0),p=0;for(t=-1,i=arguments.length;t<i;t++)if(y(r=-1===t?s:arguments[t])){if(p+(a=o(r.length))>f)throw TypeError(m);for(n=0;n<a;n++,p++)n in r&&d(u,p,r[n])}else{if(p>=f)throw TypeError(m);d(u,p++,r)}return u.length=p,u}})},"./node_modules/core-js/modules/es.array.iterator.js":
|
||
/*!***********************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.array.iterator.js ***!
|
||
\***********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/to-indexed-object */
|
||
"./node_modules/core-js/internals/to-indexed-object.js"),a=n(
|
||
/*! ../internals/add-to-unscopables */
|
||
"./node_modules/core-js/internals/add-to-unscopables.js"),r=n(
|
||
/*! ../internals/iterators */
|
||
"./node_modules/core-js/internals/iterators.js"),s=n(
|
||
/*! ../internals/internal-state */
|
||
"./node_modules/core-js/internals/internal-state.js"),l=n(
|
||
/*! ../internals/define-iterator */
|
||
"./node_modules/core-js/internals/define-iterator.js"),o="Array Iterator",d=s.set,c=s.getterFor(o);e.exports=l(Array,"Array",(function(e,t){d(this,{type:o,target:i(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),r.Arguments=r.Array,a("keys"),a("values"),a("entries")},"./node_modules/core-js/modules/es.array.join.js":
|
||
/*!*******************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.array.join.js ***!
|
||
\*******************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/export */
|
||
"./node_modules/core-js/internals/export.js"),a=n(
|
||
/*! ../internals/indexed-object */
|
||
"./node_modules/core-js/internals/indexed-object.js"),r=n(
|
||
/*! ../internals/to-indexed-object */
|
||
"./node_modules/core-js/internals/to-indexed-object.js"),s=n(
|
||
/*! ../internals/array-method-is-strict */
|
||
"./node_modules/core-js/internals/array-method-is-strict.js"),l=[].join,o=a!=Object,d=s("join",",");i({target:"Array",proto:!0,forced:o||!d},{join:function(e){return l.call(r(this),void 0===e?",":e)}})},"./node_modules/core-js/modules/es.array.map.js":
|
||
/*!******************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.array.map.js ***!
|
||
\******************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/export */
|
||
"./node_modules/core-js/internals/export.js"),a=n(
|
||
/*! ../internals/array-iteration */
|
||
"./node_modules/core-js/internals/array-iteration.js").map;i({target:"Array",proto:!0,forced:!n(
|
||
/*! ../internals/array-method-has-species-support */
|
||
"./node_modules/core-js/internals/array-method-has-species-support.js")("map")},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":
|
||
/*!********************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.array.slice.js ***!
|
||
\********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/export */
|
||
"./node_modules/core-js/internals/export.js"),a=n(
|
||
/*! ../internals/is-object */
|
||
"./node_modules/core-js/internals/is-object.js"),r=n(
|
||
/*! ../internals/is-array */
|
||
"./node_modules/core-js/internals/is-array.js"),s=n(
|
||
/*! ../internals/to-absolute-index */
|
||
"./node_modules/core-js/internals/to-absolute-index.js"),l=n(
|
||
/*! ../internals/to-length */
|
||
"./node_modules/core-js/internals/to-length.js"),o=n(
|
||
/*! ../internals/to-indexed-object */
|
||
"./node_modules/core-js/internals/to-indexed-object.js"),d=n(
|
||
/*! ../internals/create-property */
|
||
"./node_modules/core-js/internals/create-property.js"),c=n(
|
||
/*! ../internals/well-known-symbol */
|
||
"./node_modules/core-js/internals/well-known-symbol.js"),u=n(
|
||
/*! ../internals/array-method-has-species-support */
|
||
"./node_modules/core-js/internals/array-method-has-species-support.js")("slice"),p=c("species"),A=[].slice,h=Math.max;i({target:"Array",proto:!0,forced:!u},{slice:function(e,t){var n,i,c,u=o(this),f=l(u.length),m=s(e,f),v=s(void 0===t?f:t,f);if(r(u)&&("function"!=typeof(n=u.constructor)||n!==Array&&!r(n.prototype)?a(n)&&null===(n=n[p])&&(n=void 0):n=void 0,n===Array||void 0===n))return A.call(u,m,v);for(i=new(void 0===n?Array:n)(h(v-m,0)),c=0;m<v;m++,c++)m in u&&d(i,c,u[m]);return i.length=c,i}})},"./node_modules/core-js/modules/es.function.name.js":
|
||
/*!**********************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.function.name.js ***!
|
||
\**********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/descriptors */
|
||
"./node_modules/core-js/internals/descriptors.js"),a=n(
|
||
/*! ../internals/object-define-property */
|
||
"./node_modules/core-js/internals/object-define-property.js").f,r=Function.prototype,s=r.toString,l=/^\s*function ([^ (]*)/,o="name";i&&!(o in r)&&a(r,o,{configurable:!0,get:function(){try{return s.call(this).match(l)[1]}catch(e){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":
|
||
/*!***************************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.number.constructor.js ***!
|
||
\***************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/descriptors */
|
||
"./node_modules/core-js/internals/descriptors.js"),a=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js"),r=n(
|
||
/*! ../internals/is-forced */
|
||
"./node_modules/core-js/internals/is-forced.js"),s=n(
|
||
/*! ../internals/redefine */
|
||
"./node_modules/core-js/internals/redefine.js"),l=n(
|
||
/*! ../internals/has */
|
||
"./node_modules/core-js/internals/has.js"),o=n(
|
||
/*! ../internals/classof-raw */
|
||
"./node_modules/core-js/internals/classof-raw.js"),d=n(
|
||
/*! ../internals/inherit-if-required */
|
||
"./node_modules/core-js/internals/inherit-if-required.js"),c=n(
|
||
/*! ../internals/is-symbol */
|
||
"./node_modules/core-js/internals/is-symbol.js"),u=n(
|
||
/*! ../internals/to-primitive */
|
||
"./node_modules/core-js/internals/to-primitive.js"),p=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js"),A=n(
|
||
/*! ../internals/object-create */
|
||
"./node_modules/core-js/internals/object-create.js"),h=n(
|
||
/*! ../internals/object-get-own-property-names */
|
||
"./node_modules/core-js/internals/object-get-own-property-names.js").f,f=n(
|
||
/*! ../internals/object-get-own-property-descriptor */
|
||
"./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,m=n(
|
||
/*! ../internals/object-define-property */
|
||
"./node_modules/core-js/internals/object-define-property.js").f,v=n(
|
||
/*! ../internals/string-trim */
|
||
"./node_modules/core-js/internals/string-trim.js").trim,g="Number",y=a[g],x=y.prototype,b=o(A(x))==g,w=function(e){if(c(e))throw TypeError("Cannot convert a Symbol value to a number");var t,n,i,a,r,s,l,o,d=u(e,"number");if("string"==typeof d&&d.length>2)if(43===(t=(d=v(d)).charCodeAt(0))||45===t){if(88===(n=d.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(d.charCodeAt(1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+d}for(s=(r=d.slice(2)).length,l=0;l<s;l++)if((o=r.charCodeAt(l))<48||o>a)return NaN;return parseInt(r,i)}return+d};if(r(g,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var j,C=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof C&&(b?p((function(){x.valueOf.call(n)})):o(n)!=g)?d(new y(w(t)),n,C):w(t)},S=i?h(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),N=0;S.length>N;N++)l(y,j=S[N])&&!l(C,j)&&m(C,j,f(y,j));C.prototype=x,x.constructor=C,s(a,g,C)}},"./node_modules/core-js/modules/es.object.assign.js":
|
||
/*!**********************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.object.assign.js ***!
|
||
\**********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/export */
|
||
"./node_modules/core-js/internals/export.js"),a=n(
|
||
/*! ../internals/object-assign */
|
||
"./node_modules/core-js/internals/object-assign.js");i({target:"Object",stat:!0,forced:Object.assign!==a},{assign:a})},"./node_modules/core-js/modules/es.object.keys.js":
|
||
/*!********************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.object.keys.js ***!
|
||
\********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/export */
|
||
"./node_modules/core-js/internals/export.js"),a=n(
|
||
/*! ../internals/to-object */
|
||
"./node_modules/core-js/internals/to-object.js"),r=n(
|
||
/*! ../internals/object-keys */
|
||
"./node_modules/core-js/internals/object-keys.js");i({target:"Object",stat:!0,forced:n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js")((function(){r(1)}))},{keys:function(e){return r(a(e))}})},"./node_modules/core-js/modules/es.object.to-string.js":
|
||
/*!*************************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.object.to-string.js ***!
|
||
\*************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/to-string-tag-support */
|
||
"./node_modules/core-js/internals/to-string-tag-support.js"),a=n(
|
||
/*! ../internals/redefine */
|
||
"./node_modules/core-js/internals/redefine.js"),r=n(
|
||
/*! ../internals/object-to-string */
|
||
"./node_modules/core-js/internals/object-to-string.js");i||a(Object.prototype,"toString",r,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":
|
||
/*!*************************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.regexp.to-string.js ***!
|
||
\*************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/redefine */
|
||
"./node_modules/core-js/internals/redefine.js"),a=n(
|
||
/*! ../internals/an-object */
|
||
"./node_modules/core-js/internals/an-object.js"),r=n(
|
||
/*! ../internals/to-string */
|
||
"./node_modules/core-js/internals/to-string.js"),s=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js"),l=n(
|
||
/*! ../internals/regexp-flags */
|
||
"./node_modules/core-js/internals/regexp-flags.js"),o="toString",d=RegExp.prototype,c=d[o],u=s((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),p=c.name!=o;(u||p)&&i(RegExp.prototype,o,(function(){var e=a(this),t=r(e.source),n=e.flags;return"/"+t+"/"+r(void 0===n&&e instanceof RegExp&&!("flags"in d)?l.call(e):n)}),{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":
|
||
/*!************************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.string.iterator.js ***!
|
||
\************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/string-multibyte */
|
||
"./node_modules/core-js/internals/string-multibyte.js").charAt,a=n(
|
||
/*! ../internals/to-string */
|
||
"./node_modules/core-js/internals/to-string.js"),r=n(
|
||
/*! ../internals/internal-state */
|
||
"./node_modules/core-js/internals/internal-state.js"),s=n(
|
||
/*! ../internals/define-iterator */
|
||
"./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",o=r.set,d=r.getterFor(l);s(String,"String",(function(e){o(this,{type:l,string:a(e),index:0})}),(function(){var e,t=d(this),n=t.string,a=t.index;return a>=n.length?{value:void 0,done:!0}:(e=i(n,a),t.index+=e.length,{value:e,done:!1})}))},"./node_modules/core-js/modules/es.string.link.js":
|
||
/*!********************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.string.link.js ***!
|
||
\********************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/export */
|
||
"./node_modules/core-js/internals/export.js"),a=n(
|
||
/*! ../internals/create-html */
|
||
"./node_modules/core-js/internals/create-html.js");i({target:"String",proto:!0,forced:n(
|
||
/*! ../internals/string-html-forced */
|
||
"./node_modules/core-js/internals/string-html-forced.js")("link")},{link:function(e){return a(this,"a","href",e)}})},"./node_modules/core-js/modules/es.symbol.description.js":
|
||
/*!***************************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.symbol.description.js ***!
|
||
\***************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/export */
|
||
"./node_modules/core-js/internals/export.js"),a=n(
|
||
/*! ../internals/descriptors */
|
||
"./node_modules/core-js/internals/descriptors.js"),r=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js"),s=n(
|
||
/*! ../internals/has */
|
||
"./node_modules/core-js/internals/has.js"),l=n(
|
||
/*! ../internals/is-object */
|
||
"./node_modules/core-js/internals/is-object.js"),o=n(
|
||
/*! ../internals/object-define-property */
|
||
"./node_modules/core-js/internals/object-define-property.js").f,d=n(
|
||
/*! ../internals/copy-constructor-properties */
|
||
"./node_modules/core-js/internals/copy-constructor-properties.js"),c=r.Symbol;if(a&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var u={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new c(e):void 0===e?c():c(e);return""===e&&(u[t]=!0),t};d(p,c);var A=p.prototype=c.prototype;A.constructor=p;var h=A.toString,f="Symbol(test)"==String(c("test")),m=/^Symbol\((.*)\)[^)]+$/;o(A,"description",{configurable:!0,get:function(){var e=l(this)?this.valueOf():this,t=h.call(e);if(s(u,e))return"";var n=f?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:p})}},"./node_modules/core-js/modules/es.symbol.iterator.js":
|
||
/*!************************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.symbol.iterator.js ***!
|
||
\************************************************************/function(e,t,n){n(
|
||
/*! ../internals/define-well-known-symbol */
|
||
"./node_modules/core-js/internals/define-well-known-symbol.js")("iterator")},"./node_modules/core-js/modules/es.symbol.js":
|
||
/*!***************************************************!*\
|
||
!*** ./node_modules/core-js/modules/es.symbol.js ***!
|
||
\***************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/export */
|
||
"./node_modules/core-js/internals/export.js"),a=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js"),r=n(
|
||
/*! ../internals/get-built-in */
|
||
"./node_modules/core-js/internals/get-built-in.js"),s=n(
|
||
/*! ../internals/is-pure */
|
||
"./node_modules/core-js/internals/is-pure.js"),l=n(
|
||
/*! ../internals/descriptors */
|
||
"./node_modules/core-js/internals/descriptors.js"),o=n(
|
||
/*! ../internals/native-symbol */
|
||
"./node_modules/core-js/internals/native-symbol.js"),d=n(
|
||
/*! ../internals/fails */
|
||
"./node_modules/core-js/internals/fails.js"),c=n(
|
||
/*! ../internals/has */
|
||
"./node_modules/core-js/internals/has.js"),u=n(
|
||
/*! ../internals/is-array */
|
||
"./node_modules/core-js/internals/is-array.js"),p=n(
|
||
/*! ../internals/is-object */
|
||
"./node_modules/core-js/internals/is-object.js"),A=n(
|
||
/*! ../internals/is-symbol */
|
||
"./node_modules/core-js/internals/is-symbol.js"),h=n(
|
||
/*! ../internals/an-object */
|
||
"./node_modules/core-js/internals/an-object.js"),f=n(
|
||
/*! ../internals/to-object */
|
||
"./node_modules/core-js/internals/to-object.js"),m=n(
|
||
/*! ../internals/to-indexed-object */
|
||
"./node_modules/core-js/internals/to-indexed-object.js"),v=n(
|
||
/*! ../internals/to-property-key */
|
||
"./node_modules/core-js/internals/to-property-key.js"),g=n(
|
||
/*! ../internals/to-string */
|
||
"./node_modules/core-js/internals/to-string.js"),y=n(
|
||
/*! ../internals/create-property-descriptor */
|
||
"./node_modules/core-js/internals/create-property-descriptor.js"),x=n(
|
||
/*! ../internals/object-create */
|
||
"./node_modules/core-js/internals/object-create.js"),b=n(
|
||
/*! ../internals/object-keys */
|
||
"./node_modules/core-js/internals/object-keys.js"),w=n(
|
||
/*! ../internals/object-get-own-property-names */
|
||
"./node_modules/core-js/internals/object-get-own-property-names.js"),j=n(
|
||
/*! ../internals/object-get-own-property-names-external */
|
||
"./node_modules/core-js/internals/object-get-own-property-names-external.js"),C=n(
|
||
/*! ../internals/object-get-own-property-symbols */
|
||
"./node_modules/core-js/internals/object-get-own-property-symbols.js"),S=n(
|
||
/*! ../internals/object-get-own-property-descriptor */
|
||
"./node_modules/core-js/internals/object-get-own-property-descriptor.js"),N=n(
|
||
/*! ../internals/object-define-property */
|
||
"./node_modules/core-js/internals/object-define-property.js"),I=n(
|
||
/*! ../internals/object-property-is-enumerable */
|
||
"./node_modules/core-js/internals/object-property-is-enumerable.js"),F=n(
|
||
/*! ../internals/create-non-enumerable-property */
|
||
"./node_modules/core-js/internals/create-non-enumerable-property.js"),B=n(
|
||
/*! ../internals/redefine */
|
||
"./node_modules/core-js/internals/redefine.js"),P=n(
|
||
/*! ../internals/shared */
|
||
"./node_modules/core-js/internals/shared.js"),k=n(
|
||
/*! ../internals/shared-key */
|
||
"./node_modules/core-js/internals/shared-key.js"),T=n(
|
||
/*! ../internals/hidden-keys */
|
||
"./node_modules/core-js/internals/hidden-keys.js"),E=n(
|
||
/*! ../internals/uid */
|
||
"./node_modules/core-js/internals/uid.js"),D=n(
|
||
/*! ../internals/well-known-symbol */
|
||
"./node_modules/core-js/internals/well-known-symbol.js"),L=n(
|
||
/*! ../internals/well-known-symbol-wrapped */
|
||
"./node_modules/core-js/internals/well-known-symbol-wrapped.js"),U=n(
|
||
/*! ../internals/define-well-known-symbol */
|
||
"./node_modules/core-js/internals/define-well-known-symbol.js"),_=n(
|
||
/*! ../internals/set-to-string-tag */
|
||
"./node_modules/core-js/internals/set-to-string-tag.js"),O=n(
|
||
/*! ../internals/internal-state */
|
||
"./node_modules/core-js/internals/internal-state.js"),M=n(
|
||
/*! ../internals/array-iteration */
|
||
"./node_modules/core-js/internals/array-iteration.js").forEach,R=k("hidden"),Q="Symbol",H="prototype",V=D("toPrimitive"),z=O.set,q=O.getterFor(Q),W=Object[H],Y=a.Symbol,K=r("JSON","stringify"),G=S.f,$=N.f,X=j.f,J=I.f,Z=P("symbols"),ee=P("op-symbols"),te=P("string-to-symbol-registry"),ne=P("symbol-to-string-registry"),ie=P("wks"),ae=a.QObject,re=!ae||!ae[H]||!ae[H].findChild,se=l&&d((function(){return 7!=x($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=G(W,t);i&&delete W[t],$(e,t,n),i&&e!==W&&$(W,t,i)}:$,le=function(e,t){var n=Z[e]=x(Y[H]);return z(n,{type:Q,tag:e,description:t}),l||(n.description=t),n},oe=function(e,t,n){e===W&&oe(ee,t,n),h(e);var i=v(t);return h(n),c(Z,i)?(n.enumerable?(c(e,R)&&e[R][i]&&(e[R][i]=!1),n=x(n,{enumerable:y(0,!1)})):(c(e,R)||$(e,R,y(1,{})),e[R][i]=!0),se(e,i,n)):$(e,i,n)},de=function(e,t){h(e);var n=m(t),i=b(n).concat(Ae(n));return M(i,(function(t){l&&!ce.call(n,t)||oe(e,t,n[t])})),e},ce=function(e){var t=v(e),n=J.call(this,t);return!(this===W&&c(Z,t)&&!c(ee,t))&&(!(n||!c(this,t)||!c(Z,t)||c(this,R)&&this[R][t])||n)},ue=function(e,t){var n=m(e),i=v(t);if(n!==W||!c(Z,i)||c(ee,i)){var a=G(n,i);return!a||!c(Z,i)||c(n,R)&&n[R][i]||(a.enumerable=!0),a}},pe=function(e){var t=X(m(e)),n=[];return M(t,(function(e){c(Z,e)||c(T,e)||n.push(e)})),n},Ae=function(e){var t=e===W,n=X(t?ee:m(e)),i=[];return M(n,(function(e){!c(Z,e)||t&&!c(W,e)||i.push(Z[e])})),i};o||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=E(e),n=function(e){this===W&&n.call(ee,e),c(this,R)&&c(this[R],t)&&(this[R][t]=!1),se(this,t,y(1,e))};return l&&re&&se(W,t,{configurable:!0,set:n}),le(t,e)},B(Y[H],"toString",(function(){return q(this).tag})),B(Y,"withoutSetter",(function(e){return le(E(e),e)})),I.f=ce,N.f=oe,S.f=ue,w.f=j.f=pe,C.f=Ae,L.f=function(e){return le(D(e),e)},l&&($(Y[H],"description",{configurable:!0,get:function(){return q(this).description}}),s||B(W,"propertyIsEnumerable",ce,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!o,sham:!o},{Symbol:Y}),M(b(ie),(function(e){U(e)})),i({target:Q,stat:!0,forced:!o},{for:function(e){var t=g(e);if(c(te,t))return te[t];var n=Y(t);return te[t]=n,ne[n]=t,n},keyFor:function(e){if(!A(e))throw TypeError(e+" is not a symbol");if(c(ne,e))return ne[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),i({target:"Object",stat:!0,forced:!o,sham:!l},{create:function(e,t){return void 0===t?x(e):de(x(e),t)},defineProperty:oe,defineProperties:de,getOwnPropertyDescriptor:ue}),i({target:"Object",stat:!0,forced:!o},{getOwnPropertyNames:pe,getOwnPropertySymbols:Ae}),i({target:"Object",stat:!0,forced:d((function(){C.f(1)}))},{getOwnPropertySymbols:function(e){return C.f(f(e))}}),K&&i({target:"JSON",stat:!0,forced:!o||d((function(){var e=Y();return"[null]"!=K([e])||"{}"!=K({a:e})||"{}"!=K(Object(e))}))},{stringify:function(e,t,n){for(var i,a=[e],r=1;arguments.length>r;)a.push(arguments[r++]);if(i=t,(p(t)||void 0!==e)&&!A(e))return u(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!A(t))return t}),a[1]=t,K.apply(null,a)}}),Y[H][V]||F(Y[H],V,Y[H].valueOf),_(Y,Q),T[R]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":
|
||
/*!**********************************************************************!*\
|
||
!*** ./node_modules/core-js/modules/web.dom-collections.for-each.js ***!
|
||
\**********************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js"),a=n(
|
||
/*! ../internals/dom-iterables */
|
||
"./node_modules/core-js/internals/dom-iterables.js"),r=n(
|
||
/*! ../internals/array-for-each */
|
||
"./node_modules/core-js/internals/array-for-each.js"),s=n(
|
||
/*! ../internals/create-non-enumerable-property */
|
||
"./node_modules/core-js/internals/create-non-enumerable-property.js");for(var l in a){var o=i[l],d=o&&o.prototype;if(d&&d.forEach!==r)try{s(d,"forEach",r)}catch(c){d.forEach=r}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":
|
||
/*!**********************************************************************!*\
|
||
!*** ./node_modules/core-js/modules/web.dom-collections.iterator.js ***!
|
||
\**********************************************************************/function(e,t,n){var i=n(
|
||
/*! ../internals/global */
|
||
"./node_modules/core-js/internals/global.js"),a=n(
|
||
/*! ../internals/dom-iterables */
|
||
"./node_modules/core-js/internals/dom-iterables.js"),r=n(
|
||
/*! ../modules/es.array.iterator */
|
||
"./node_modules/core-js/modules/es.array.iterator.js"),s=n(
|
||
/*! ../internals/create-non-enumerable-property */
|
||
"./node_modules/core-js/internals/create-non-enumerable-property.js"),l=n(
|
||
/*! ../internals/well-known-symbol */
|
||
"./node_modules/core-js/internals/well-known-symbol.js"),o=l("iterator"),d=l("toStringTag"),c=r.values;for(var u in a){var p=i[u],A=p&&p.prototype;if(A){if(A[o]!==c)try{s(A,o,c)}catch(f){A[o]=c}if(A[d]||s(A,d,u),a[u])for(var h in r)if(A[h]!==r[h])try{s(A,h,r[h])}catch(f){A[h]=r[h]}}}},"./node_modules/es6-promise/dist/es6-promise.js":
|
||
/*!******************************************************!*\
|
||
!*** ./node_modules/es6-promise/dist/es6-promise.js ***!
|
||
\******************************************************/function(e){
|
||
/*!
|
||
* @overview es6-promise - a tiny implementation of Promises/A+.
|
||
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
||
* @license Licensed under MIT license
|
||
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
||
* @version v4.2.8+1e68dce6
|
||
*/
|
||
e.exports=function(){function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"==typeof e}var n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,a=void 0,r=void 0,s=function(e,t){x[i]=e,x[i+1]=t,2===(i+=2)&&(r?r(b):j())};function l(e){r=e}function o(e){s=e}var c="undefined"!=typeof window?window:void 0,u=c||{},p=u.MutationObserver||u.WebKitMutationObserver,A="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){return function(){return process.nextTick(b)}}function m(){return void 0!==a?function(){a(b)}:y()}function v(){var e=0,t=new p(b),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function g(){var e=new MessageChannel;return e.port1.onmessage=b,function(){return e.port2.postMessage(0)}}function y(){var e=setTimeout;return function(){return e(b,1)}}var x=new Array(1e3);function b(){for(var e=0;e<i;e+=2)(0,x[e])(x[e+1]),x[e]=void 0,x[e+1]=void 0;i=0}function w(){try{var e=Function("return this")().require("vertx");return a=e.runOnLoop||e.runOnContext,m()}catch(Ou){return y()}}var j=void 0;function C(e,t){var n=this,i=new this.constructor(I);void 0===i[N]&&Y(i);var a=n._state;if(a){var r=arguments[a-1];s((function(){return V(a,i,r,n._result)}))}else Q(n,i,e,t);return i}function S(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(I);return _(n,e),n}j=A?f():p?v():h?g():void 0===c?w():y();var N=Math.random().toString(36).substring(2);function I(){}var F=void 0,B=1,P=2;function k(){return new TypeError("You cannot resolve a promise with itself")}function T(){return new TypeError("A promises callback cannot return that same promise.")}function E(e,t,n,i){try{e.call(t,n,i)}catch(Ou){return Ou}}function D(e,t,n){s((function(e){var i=!1,a=E(n,t,(function(n){i||(i=!0,t!==n?_(e,n):M(e,n))}),(function(t){i||(i=!0,R(e,t))}),"Settle: "+(e._label||" unknown promise"));!i&&a&&(i=!0,R(e,a))}),e)}function L(e,t){t._state===B?M(e,t._result):t._state===P?R(e,t._result):Q(t,void 0,(function(t){return _(e,t)}),(function(t){return R(e,t)}))}function U(e,n,i){n.constructor===e.constructor&&i===C&&n.constructor.resolve===S?L(e,n):void 0===i?M(e,n):t(i)?D(e,n,i):M(e,n)}function _(t,n){if(t===n)R(t,k());else if(e(n)){var i=void 0;try{i=n.then}catch(a){return void R(t,a)}U(t,n,i)}else M(t,n)}function O(e){e._onerror&&e._onerror(e._result),H(e)}function M(e,t){e._state===F&&(e._result=t,e._state=B,0!==e._subscribers.length&&s(H,e))}function R(e,t){e._state===F&&(e._state=P,e._result=t,s(O,e))}function Q(e,t,n,i){var a=e._subscribers,r=a.length;e._onerror=null,a[r]=t,a[r+B]=n,a[r+P]=i,0===r&&e._state&&s(H,e)}function H(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var i=void 0,a=void 0,r=e._result,s=0;s<t.length;s+=3)i=t[s],a=t[s+n],i?V(n,i,a,r):a(r);e._subscribers.length=0}}function V(e,n,i,a){var r=t(i),s=void 0,l=void 0,o=!0;if(r){try{s=i(a)}catch(Ou){o=!1,l=Ou}if(n===s)return void R(n,T())}else s=a;n._state!==F||(r&&o?_(n,s):!1===o?R(n,l):e===B?M(n,s):e===P&&R(n,s))}function z(e,t){try{t((function(t){_(e,t)}),(function(t){R(e,t)}))}catch(Ou){R(e,Ou)}}var q=0;function W(){return q++}function Y(e){e[N]=q++,e._state=void 0,e._result=void 0,e._subscribers=[]}function K(){return new Error("Array Methods must be provided an Array")}var G=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(I),this.promise[N]||Y(this.promise),n(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?M(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&M(this.promise,this._result))):R(this.promise,K())}return e.prototype._enumerate=function(e){for(var t=0;this._state===F&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,i=n.resolve;if(i===S){var a=void 0,r=void 0,s=!1;try{a=e.then}catch(Ou){s=!0,r=Ou}if(a===C&&e._state!==F)this._settledAt(e._state,t,e._result);else if("function"!=typeof a)this._remaining--,this._result[t]=e;else if(n===te){var l=new n(I);s?R(l,r):U(l,e,a),this._willSettleAt(l,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(i(e),t)},e.prototype._settledAt=function(e,t,n){var i=this.promise;i._state===F&&(this._remaining--,e===P?R(i,n):this._result[t]=n),0===this._remaining&&M(i,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;Q(e,void 0,(function(e){return n._settledAt(B,t,e)}),(function(e){return n._settledAt(P,t,e)}))},e}();function $(e){return new G(this,e).promise}function X(e){var t=this;return n(e)?new t((function(n,i){for(var a=e.length,r=0;r<a;r++)t.resolve(e[r]).then(n,i)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))}function J(e){var t=new this(I);return R(t,e),t}function Z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ee(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var te=function(){function e(t){this[N]=W(),this._result=this._state=void 0,this._subscribers=[],I!==t&&("function"!=typeof t&&Z(),this instanceof e?z(this,t):ee())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var n=this,i=n.constructor;return t(e)?n.then((function(t){return i.resolve(e()).then((function(){return t}))}),(function(t){return i.resolve(e()).then((function(){throw t}))})):n.then(e,e)},e}();function ne(){var e=void 0;if(void 0!==d)e=d;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(Ou){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(Ou){}if("[object Promise]"===n&&!t.cast)return}e.Promise=te}return te.prototype.then=C,te.all=$,te.race=X,te.resolve=S,te.reject=J,te._setScheduler=l,te._setAsap=o,te._asap=s,te.polyfill=ne,te.Promise=te,te}()},html2canvas:
|
||
/*!******************************!*\
|
||
!*** external "html2canvas" ***!
|
||
\******************************/function(e){e.exports=t},jspdf:
|
||
/*!************************!*\
|
||
!*** external "jspdf" ***!
|
||
\************************/function(t){t.exports=e}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return n[e].call(r.exports,r,r.exports,a),r.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){
|
||
/*!**********************!*\
|
||
!*** ./src/index.js ***!
|
||
\**********************/
|
||
a.r(r);var e=a(
|
||
/*! ./worker.js */
|
||
"./src/worker.js");a(
|
||
/*! ./plugin/jspdf-plugin.js */
|
||
"./src/plugin/jspdf-plugin.js"),a(
|
||
/*! ./plugin/pagebreaks.js */
|
||
"./src/plugin/pagebreaks.js"),a(
|
||
/*! ./plugin/hyperlinks.js */
|
||
"./src/plugin/hyperlinks.js");var t=function e(t,n){var i=new e.Worker(n);return t?i.from(t).save():i};t.Worker=e.default,r.default=t}(),r=r.default}()};const Xp=c(cr.exports=Kp(o(Wp),$p()));new dr;const Jp="3a939a2eed2cca4b64cd47f51b23b135b2b9b765273f695d47682ea803c8429d";function Zp(e){return Se(e,["YYYY-MM-DDTHH:mm:ss"]).format("DD-MM-YYYY HH:mm:ss")}function eA(e){return Se(e,["YYYY-MM-DDTHH:mm:ss.SSS","YYYY-MM-DDTHH:mm:ss"]).format("DD-MMM-YYYY hh:mm A")}function tA(e){if(!e)return"";const t=new Date(e);if(isNaN(t))return"";return`${t.getDate()}-${t.toLocaleString("en-US",{month:"short"})}-${t.getFullYear()}`}const nA=(e,t)=>{const n=Ce.AES.encrypt(JSON.stringify(t),Jp).toString();n&&sessionStorage.setItem(e,n)},iA=e=>{const t=sessionStorage.getItem(e);if(t){const e=Ce.AES.decrypt(t,Jp).toString(Ce.enc.Utf8);return JSON.parse(e)}},aA=e=>{if(!e)return null;{e=e.replace(/-/g,"+").replace(/_/g,"/");const t=Ce.AES.decrypt(e,"f2ef79b8b2d4fc1cc569726a5a753552257b4ff2872d6a71cf3119bce3f07c1b").toString(Ce.enc.Utf8);if(t)return JSON.parse(t)}},rA=()=>{sessionStorage.clear()};async function sA(e,t){var n=document.getElementById(e);if(n){var i=document.getElementById("ifmcontentstoprint").contentWindow;return i.document.open(),i.document.write(t),i.document.write(n.innerHTML),i.document.close(),i.focus(),i.print(),!0}}const lA=e=>{const t=/<[^>]*>/g.test(e),n=/\b(select|update|delete|insert|drop|truncate|exec|union|--|\*|;)\b/i.test(e);return t?Promise.reject(new Error("HTML tags are not allowed")):n?Promise.reject(new Error("SQL keywords like SELECT, DELETE are not allowed")):Promise.resolve()},oA="https://www.pozo.dev/pozo-common-api",dA=Ne.create({baseURL:oA}),cA=Ne.create({baseURL:"https://www.pozo.dev/pozo-retail-api"}),uA=Ne.create({baseURL:"https://www.pozo.dev/pozo-sms-email-template-api"}),pA=async e=>{const t=await new Promise((e=>{let t=sessionStorage.getItem("auth");if(t)e(t);else{const n=setInterval((()=>{t=sessionStorage.getItem("auth"),t&&(clearInterval(n),e(t))}),100)}}));t&&(e.headers.Authorization=`Bearer ${t}`);let n=sessionStorage.getItem("MobileNo"),i=sessionStorage.getItem("SessionId")?(e=>{if(!e)return null;{e=e.replace(/-/g,"+").replace(/_/g,"/");const t=Ce.AES.decrypt(e,Jp).toString(Ce.enc.Utf8);if(t)return JSON.parse(t)}})(n):"1000000001";return e.headers.Mobileno=null!=i&&null!=i?i:"1000000001",e};dA.interceptors.request.use(pA,(e=>Promise.reject(e))),uA.interceptors.request.use(pA,(e=>Promise.reject(e))),cA.interceptors.request.use(pA,(e=>Promise.reject(e)));const AA=async e=>(e.response&&401===e.response.status&&(!function(e){const t=document.createElement("div");t.innerText=e,t.style.cssText="\n position: fixed;\n top: 10%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #f03e3e;\n color: white;\n padding: 15px 30px;\n border-radius: 8px;\n font-family: Arial, sans-serif;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);\n z-index: 1000;\n opacity: 0;\n transition: opacity 0.3s ease;\n ",document.body.appendChild(t),setTimeout((()=>{t.style.opacity=1}),10),setTimeout((()=>{t.style.opacity=0,setTimeout((()=>t.remove()),300)}),2e3)}("Your session has expired. Please log in again to continue."),setTimeout((()=>{if(iA("UserId")){const e="N";fetch(`${oA}/Logout`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:sessionStorage.getItem("auth")?sessionStorage.getItem("auth"):"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",Mobileno:iA("MobileNo")?iA("MobileNo"):"1000000001"},body:JSON.stringify({UserId:iA("UserId"),Generate:e,RequestMode:"DW"})}).then((e=>{if(!e.ok)throw new Error(`Error: ${e.status}`);return e.json()})).then((e=>{1===(null==e?void 0:e.statusCode)&&(rA(),window.location.href="/")})).catch((e=>{}))}}),2e3)),Promise.reject(e));dA.interceptors.response.use((e=>e),AA),uA.interceptors.response.use((e=>e),AA),cA.interceptors.response.use((e=>e),AA);const hA=cA,fA=dA,mA=uA,vA="https://www.pozo.dev/pozo-common-api",gA={selectedRole:"Admin"===iA("UserType")?"Branch Admin":"Sadmin",selectedStore:null,selectedAppName:null,selectedBranch:null,selectedApp:null,selectedUser:null,selectedEmpdesig:null,allModules:[],branchData:[],appData:[],userData:[],AdminData:[],EmpDesigData:[],selectedUserData:{},selectedModuleBranch:[],UserId:null,AppAccess:{},CompAccess:{},BranchAccess:{},AppListData:{},CmpListData:{},BranchListData:{},PostDataValue:[]},yA=Ja("moduleAccess/getBranchDropModule",(async({storeId:e})=>{if(null!=e&&null!=e)return await fA.get(`/branch?CompId=${e}`)})),xA=Ja("moduleAccess/getSadminUser",(async()=>await fA.get("/login?Type=Super Admin User"))),bA=Ja("moduleAccess/getStoreAdmin",(async({storeId:e})=>{if(null!=e&&null!=e)return await Ne.get(`${vA}/company?UserId=${e}`)})),wA=Ja("moduleAccess/gettingAdminDropDown",(async()=>await fA.get("/user?UserType=A"))),jA=Ja("moduleAccess/getBranchUser",(async({BranchId:e})=>{if(null!=e&&null!=e)return await fA.get(`/login?BranchId=${e}&Type=E`)}));Ja("moduleAccess/getAllModule",(async()=>await fA.get("/configMaster?TypeName=Sub Module")));const CA=Ja("moduleAccess/getAllModule",(async e=>null!=e&&null!=e?await fA.get(`/userAppMap?UserId=${e}&Type=A`):await fA.get("/configMaster?ActiveStatus=A&TypeName=Sub Module"))),SA=Ja("moduleAccess/getUserCount",(async({AppId:e,UserId:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await fA.get(`/userAppMap?UserId=${t}&AppId=${e}`)})),NA=Ja("moduleAccess/getUserData",(async({userId:e,BranchId:t})=>null!=e&&null!=e&&null!=t&&null!=t?await fA.get(`/login?UserId=${e}&BranchId=${t}`):await fA.get(`/login?UserId=${e}`))),IA=Ja("moduleAccess/getAppDetails",(async({UserId:e})=>{if(null!=e&&null!=e)return await fA.get(`/appAccess?UserId=${e}&Type=AD`)}));Ja("moduleAccess/getCompDetails",(async({UserId:e})=>{if(null!=e&&null!=e)return await fA.get(`/appAccess?UserId=${e}`)}));const FA=Ja("moduleAccess/getUserAppDetails",(async({UserId:e,AppId:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await fA.get(`/appAccess?UserId=${e}&AppId=${t}`)})),BA=Ja("moduleAccess/postGateWayMaster",(async e=>{if(e)return await fA.post("/GatewayConfigMaster",e)})),PA=Ja("moduleAccess/putGateWayMaster",(async e=>{if(e)return await fA.put("/GatewayConfigMaster",e)})),kA=Ja("moduleAccess/getGateWayConfigData",(async e=>{const{ServiceType:t}=e;if(null!==t||void 0!==t)return await fA.get(`/GatewayConfigMaster?ServiceType=${t}&Type=S`)})),TA=Ja("moduleAccess/getActiveUserAppDetails",(async({UserId:e,AppId:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await fA.get(`/appAccess?UserId=${e}&AppId=${t}&ActiveStatus=A`)})),EA=Ja("moduleAccess/getUserAppStoreDetails",(async({StoreId:e,UserId:t,AppId:n})=>{if(null!=e&&null!=e&&null!=t&&null!=t&&null!=n&&null!=n)return await fA.get(`/appAccess?UserId=${t}&AppId=${n}&CompId=${e}`)})),DA=Ja("moduleAccess/getActiveUserAppStoreDetails",(async({StoreId:e,UserId:t,AppId:n})=>{if(null!=e&&null!=e&&null!=t&&null!=t&&null!=n&&null!=n)return await fA.get(`/appAccess?UserId=${t}&AppId=${n}&CompId=${e}&ActiveStatus=A`)})),LA=Ja("moduleAccess/getCmpDetails",(async({AppId:e,UserId:t})=>null!=t&&null!=t&&null!=e&&null!=e?await fA.get(`/appAccess?AppId=${e}&UserId=${t}`):null!=e&&null!=e?await fA.get(`/appAccess?AppId=${e}`):void 0)),UA=Ja("moduleAccess/getDesigDetails",(async({AppName:e,CompId:t,BranchId:n})=>{if(null!=e&&null!=e&&null!=t&&null!=t&&null!=n&&null!=n)return await fA.get(`/designation?AppName=${e}&CompId=${t}&BranchId=${n}`)})),_A=Ja("moduleAccess/getAppDesigDetails",(async({AppId:e})=>{if(null!=e&&null!=e)return await fA.get(`/appAccess?AppId=${e}`)})),OA=Ja("moduleAccess/getDesigUserDetails",(async({AppName:e,EmpDesig:t,CompId:n,BranchId:i})=>{if(null!=e&&null!=e&&null!=t&&null!=t&&null!=n&&null!=n&&null!=i&&null!=i)return await fA.get(`/designation?AppName=${e}&EmpDesig=${t}&CompId=${n}&BranchId=${i}`)})),MA=Ja("moduleAccess/getBranchDetails",(async({CompId:e,AppId:t,UserId:n})=>null!=t&&null!=t&&null!=n&&null!=n&&null!=e&&null!=e?await fA.get(`/appAccess?CompId=${e}&AppId=${t}&UserId=${n}`):null!=t&&null!=t&&null!=e&&null!=e?await fA.get(`/appAccess?CompId=${e}&AppId=${t}`):void 0)),RA=Ja("moduleAccess/getBranchBasedOnStoreAndType",(async({storeId:e,BranchType:t,UserId:n})=>null!=t&&null!=t&&null!=n&&null!=n?await Ne.get(`${vA}/application?SubId=${t}&UserId=${n}`):null!=t&&null!=t?await Ne.get(`${vA}/application?SubId=${t}`):void 0)),QA=Ja("moduleAccess/getBranchBasedOnStoreAndType",(async({BranchType:e,UserId:t,Type:n,BranchId:i})=>null!=t&&null!=t&&null!=e&&null!=e&&null!=n&&null!=n?await Ne.get(`${vA}/application?SubId=${e}&UserId=${t}&Type=${n}`):null!=t&&null!=t&&null!=e&&null!=e&&null!=i&&null!=i?await Ne.get(`${vA}/application?SubId=${e}&UserId=${t}&BranchId=${i}`):null!=t&&null!=t&&null!=e&&null!=e?await Ne.get(`${vA}/application?SubId=${e}&UserId=${t}`):await Ne.get(`${vA}/application?SubId=${e}`))),HA=Ja("moduleAccess/postModuleRights",(async e=>await fA.post("/appAccess",e))),VA=Ja("moduleAccess/postBranchModuleRights",(async e=>await fA.post("/appAccessBranch",e))),zA=Ja("moduleAccess/deleteModuleRights",(async e=>await fA.delete("/appAccess",{params:e}))),qA=Ja("moduleAccess/deleteBranchModuleRights",(async e=>await fA.delete("/appAccessBranch",{params:e}))),WA=Ja("moduleAccess/getstoreData",(async e=>{if(null!=e&&null!=e)return await Ne.get(`${vA}/company?UserId=${e}`)})),YA=Ya({name:"moduleAccess",initialState:gA,reducers:{changeRole:(e,t)=>{const{id:n}=null==t?void 0:t.payload;e.selectedRole=n,e.UserId=null,e.selectedUser=null,e.AppListData={},e.CmpListData={},e.BranchListData={}},changeIntialRole:(e,t)=>{e.selectedRole="Admin"===iA("UserType")?"Branch Admin":"Sadmin"},AddAppList:(e,t)=>{const{AppList:n}=null==t?void 0:t.payload;e.AppListData=n},changeUserId:(e,t)=>{e.UserId=null==t?void 0:t.payload},changeAppAccess:(e,t)=>{e.AppAccess=null==t?void 0:t.payload},changePostData:(e,t)=>{e.PostDataValue=null==t?void 0:t.payload},changeCompAccess:(e,t)=>{e.CompAccess=null==t?void 0:t.payload},changeBranchAccess:(e,t)=>{e.BranchAccess=null==t?void 0:t.payload},changeStore:(e,t)=>{const{storeId:n}=null==t?void 0:t.payload;e.selectedStore=n},changeAppName:(e,t)=>{const{AppName:n}=null==t?void 0:t.payload;e.selectedAppName=n},changeBranch:(e,t)=>{const{BranchId:n}=null==t?void 0:t.payload;e.selectedBranch=n},changeApp:(e,t)=>{const{AppId:n}=null==t?void 0:t.payload;e.selectedApp=n},changeUser:(e,t)=>{const{userId:n}=null==t?void 0:t.payload;e.selectedUser=n},changeEmpDesig:(e,t)=>{const{EmpDesig:n}=null==t?void 0:t.payload;e.selectedEmpdesig=n},emptyUserData:(e,t)=>{e.userData=[],e.EmpDesigData=[]},emptySelectedModule:(e,t)=>{e.selectedModuleBranch=[]},emptyDataList:(e,t)=>{e.AppListData={},e.CmpListData={},e.BranchListData={}},emptySelectedModuleBranch:(e,t)=>{e.AppListData={},e.CmpListData={},e.BranchListData={},e.allModules=[],e.selectedModuleBranch=[]},emptyModuleBranch:(e,t)=>{e.AppListData={},e.CmpListData={},e.BranchListData={},e.selectedModuleBranch=[]},emptyPostData:(e,t)=>{e.selectedUser=null,e.selectedApp=null,e.selectedBranch=null,e.selectedStore=null,e.selectedAppName=null,e.selectedEmpdesig=null,e.UserId=null,e.userData=[],e.EmpDesigData=[],e.selectedUserData={},e.selectedModuleBranch=[],e.AppListData={},e.CmpListData={},e.BranchListData={},e.appData=[],e.branchData=[],e.AppAccess={},e.CompAccess={},e.BranchAccess={},e.PostDataValue=[]},emptySelectedIds:(e,t)=>{e.selectedApp=null,e.selectedBranch=null,e.selectedStore=null,e.selectedEmpdesig=null,e.selectedUser=null,e.UserId=null},getSelectedBranch:(e,t)=>{var n;e.selectedModuleBranch=null==(n=e.selectedUserData[0])?void 0:n.ModuleDetails},updateModuleAccessByModuleTypeId:(e,t)=>{const{AppId:n}=null==t?void 0:t.payload;e.selectedModuleBranch=e.selectedModuleBranch.filter((e=>parseInt(e.AppId)!=parseInt(n)))},addModuleAccess:(e,t)=>{e.selectedModuleBranch.push(null==t?void 0:t.payload)},updateModuleAccessByBranchId:(e,t)=>{const{BranchId:n}=null==t?void 0:t.payload;e.selectedModuleBranch=e.selectedModuleBranch.filter((e=>e.AppId!=n))},removeAppList:(e,t)=>{var n;const{subCat:i}=null==t?void 0:t.payload;null==(n=e.AppListData[i])||n.map((t=>{var n;null==(n=e.CmpListData[t.AppName])||n.map((n=>{delete e.BranchListData[`${null==t?void 0:t.AppName}-${null==n?void 0:n.CompName}`]})),delete e.CmpListData[t.AppName]})),delete e.AppListData[i]},removeCmpList:(e,t)=>{var n;const{AppName:i}=null==t?void 0:t.payload;null==(n=e.CmpListData[i])||n.map((t=>{delete e.BranchListData[`${i}-${null==t?void 0:t.CompName}`]})),delete e.CmpListData[i]},removeBranchList:(e,t)=>{const{CompName:n}=null==t?void 0:t.payload;delete e.BranchListData[n]},removeBranchAccess:(e,t)=>{const{branchAccessData:n}=null==t?void 0:t.payload;delete e.BranchAccess[n]},removeCompanyAccess:(e,t)=>{const{companyAccessData:n}=null==t?void 0:t.payload;delete e.CompAccess[n]},removeAppAccess:(e,t)=>{const{appAccessData:n}=null==t?void 0:t.payload;delete e.AppAccess[n]},removePostDataValue:(e,t)=>{const n=null==t?void 0:t.payload;n.CompId&&n.AppId?e.PostDataValue.map(((t,i)=>{(null==t?void 0:t.AppId)==n.AppId&&(null==t?void 0:t.CompId)==n.CompId&&delete e.PostDataValue[i]})):n.AppId?e.PostDataValue.map(((t,i)=>{(null==t?void 0:t.AppId)==n.AppId&&delete e.PostDataValue[i]})):n.CompId&&n.BranchId&&e.PostDataValue.map(((t,i)=>{(null==t?void 0:t.BranchId)==n.BranchId&&(null==t?void 0:t.CompId)==n.CompId&&delete e.PostDataValue[i]}))}},extraReducers:e=>{e.addCase(yA.fulfilled,((e,t)=>{var n,i,a,r;1===(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.branchData=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.branchData=[]})),e.addCase(IA.fulfilled,((e,t)=>{var n,i,a,r;1===(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.appData=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.appData=[]})),e.addCase(wA.fulfilled,((e,t)=>{var n,i,a,r;1===(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.AdminData=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.AdminData=[]})),e.addCase(OA.fulfilled,((e,t)=>{var n,i,a,r;1===(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.EmpDesigData=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.EmpDesigData=[]})),e.addCase(xA.fulfilled,((e,t)=>{var n,i,a,r;1===(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.userData=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.userData=[]})),e.addCase(CA.fulfilled,((e,t)=>{var n,i,a,r;1===(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.allModules=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.allModules=[]})),e.addCase(bA.fulfilled,((e,t)=>{var n,i,a,r;1===(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.userData=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.userData=[]})),e.addCase(jA.fulfilled,((e,t)=>{var n,i,a,r;1===(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.userData=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.userData=[]})),e.addCase(NA.fulfilled,((e,t)=>{var n,i,a,r,s,l,o,d,c,u;1===(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?(e.selectedUserData=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data,e.selectedModuleBranch=(null==(o=null==(l=null==(s=null==t?void 0:t.payload)?void 0:s.data)?void 0:l.data[0])?void 0:o.ModuleDetails)?null==(u=null==(c=null==(d=null==t?void 0:t.payload)?void 0:d.data)?void 0:c.data[0])?void 0:u.ModuleDetails:[]):(e.selectedUserData={},e.selectedModuleBranch=[])})),e.addCase(RA.fulfilled,((e,t)=>{var n,i,a,r,s,l;(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)&&(e.AppListData[null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data[0].SubCategoryName]=null==(l=null==(s=null==t?void 0:t.payload)?void 0:s.data)?void 0:l.data)})),e.addCase(LA.fulfilled,((e,t)=>{var n,i,a,r,s,l;(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)&&(e.CmpListData[null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data[0].AppName]=null==(l=null==(s=null==t?void 0:t.payload)?void 0:s.data)?void 0:l.data)})),e.addCase(MA.fulfilled,((e,t)=>{var n,i,a,r,s,l,o,d;(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)&&(e.BranchListData[`${null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data[0].AppName}-${null==(l=null==(s=null==t?void 0:t.payload)?void 0:s.data)?void 0:l.data[0].CompName}`]=null==(d=null==(o=null==t?void 0:t.payload)?void 0:o.data)?void 0:d.data)}))}}),{changeRole:KA,changeAppName:GA,changeStore:$A,changeBranch:XA,changeApp:JA,changeUser:ZA,changeEmpDesig:eh,emptyUserData:th,emptySelectedModule:nh,emptyPostData:ih,changeIntialRole:ah,emptySelectedModuleBranch:rh,emptyModuleBranch:sh,emptyDataList:lh,emptySelectedIds:oh,updateModuleAccessByModuleTypeId:dh,addModuleAccess:ch,updateModuleAccessByBranchId:uh,changeUserId:ph,changeAppAccess:Ah,changePostData:hh,changeCompAccess:fh,changeBranchAccess:mh,AddAppList:vh,removeAppList:gh,removeCmpList:yh,removeBranchList:xh,removePostDataValue:bh,removeBranchAccess:wh,removeCompanyAccess:jh,removeAppAccess:Ch}=YA.actions,Sh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.selectedRole},Nh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.selectedStore},Ih=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.selectedAppName},Fh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.selectedEmpdesig},Bh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.selectedBranch},Ph=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.selectedApp},kh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.selectedUser},Th=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.appData},Eh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.userData},Dh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.allModules},Lh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.selectedUserData},Uh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.selectedModuleBranch},_h=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.AdminData},Oh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.EmpDesigData},Mh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.UserId},Rh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.AppAccess},Qh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.CompAccess},Hh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.BranchAccess},Vh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.AppListData},zh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.CmpListData},qh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.BranchListData},Wh=e=>{var t;return null==(t=e.moduleAccess)?void 0:t.PostDataValue},Yh=YA.reducer,Kh=Ya({name:"centerPage",initialState:{breadCrumb:[]},reducers:{changeBreadCrumb:(e,t)=>{const{items:n}=null==t?void 0:t.payload;e.breadCrumb=n},emptyBreadCrumb:(e,t)=>{e.breadCrumb=[]}}}),{changeBreadCrumb:Gh,emptyBreadCrumb:$h}=Kh.actions,Xh=e=>{var t;return null==(t=e.centerPage)?void 0:t.breadCrumb},Jh=Kh.reducer;var Zh={exports:{}},ef={},tf=a;var nf="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},af=tf.useState,rf=tf.useEffect,sf=tf.useLayoutEffect,lf=tf.useDebugValue;function of(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nf(e,n)}catch(i){return!0}}var df="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=af({inst:{value:n,getSnapshot:t}}),a=i[0].inst,r=i[1];return sf((function(){a.value=n,a.getSnapshot=t,of(a)&&r({inst:a})}),[e,n,t]),rf((function(){return of(a)&&r({inst:a}),e((function(){of(a)&&r({inst:a})}))}),[e]),lf(n),n};ef.useSyncExternalStore=void 0!==tf.useSyncExternalStore?tf.useSyncExternalStore:df,Zh.exports=ef;var cf=Zh.exports,uf={exports:{}},pf={},Af=a,hf=cf;var ff="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},mf=hf.useSyncExternalStore,vf=Af.useRef,gf=Af.useEffect,yf=Af.useMemo,xf=Af.useDebugValue;pf.useSyncExternalStoreWithSelector=function(e,t,n,i,a){var r=vf(null);if(null===r.current){var s={hasValue:!1,value:null};r.current=s}else s=r.current;r=yf((function(){function e(e){if(!o){if(o=!0,r=e,e=i(e),void 0!==a&&s.hasValue){var t=s.value;if(a(t,e))return l=t}return l=e}if(t=l,ff(r,e))return t;var n=i(e);return void 0!==a&&a(t,n)?(r=e,t):(r=e,l=n)}var r,l,o=!1,d=void 0===n?null:n;return[function(){return e(t())},null===d?void 0:function(){return e(d())}]}),[t,n,i,a]);var l=mf(e,r[0],r[1]);return gf((function(){s.hasValue=!0,s.value=l}),[l]),xf(l),l},uf.exports=pf;var bf=uf.exports;let wf=function(e){e()};const jf=Symbol.for("react-redux-context"),Cf="undefined"!=typeof globalThis?globalThis:{};function Sf(){var e;if(!a.createContext)return{};const t=null!=(e=Cf[jf])?e:Cf[jf]=new Map;let n=t.get(a.createContext);return n||(n=a.createContext(null),t.set(a.createContext,n)),n}const Nf=Sf();function If(e=Nf){return function(){return a.useContext(e)}}const Ff=If();let Bf=()=>{throw new Error("uSES not initialized!")};const Pf=(e,t)=>e===t;function kf(e=Nf){const t=e===Nf?Ff:If(e);return function(e,n={}){const{equalityFn:i=Pf,stabilityCheck:r,noopCheck:s}="function"==typeof n?{equalityFn:n}:n,{store:l,subscription:o,getServerState:d,stabilityCheck:c,noopCheck:u}=t();a.useRef(!0);const p=a.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,r]),A=Bf(o.addNestedSub,l.getState,d||l.getState,p,i);return a.useDebugValue(A),A}}const Tf=kf();var Ef={exports:{}},Df={},Lf="function"==typeof Symbol&&Symbol.for,Uf=Lf?Symbol.for("react.element"):60103,_f=Lf?Symbol.for("react.portal"):60106,Of=Lf?Symbol.for("react.fragment"):60107,Mf=Lf?Symbol.for("react.strict_mode"):60108,Rf=Lf?Symbol.for("react.profiler"):60114,Qf=Lf?Symbol.for("react.provider"):60109,Hf=Lf?Symbol.for("react.context"):60110,Vf=Lf?Symbol.for("react.async_mode"):60111,zf=Lf?Symbol.for("react.concurrent_mode"):60111,qf=Lf?Symbol.for("react.forward_ref"):60112,Wf=Lf?Symbol.for("react.suspense"):60113,Yf=Lf?Symbol.for("react.suspense_list"):60120,Kf=Lf?Symbol.for("react.memo"):60115,Gf=Lf?Symbol.for("react.lazy"):60116,$f=Lf?Symbol.for("react.block"):60121,Xf=Lf?Symbol.for("react.fundamental"):60117,Jf=Lf?Symbol.for("react.responder"):60118,Zf=Lf?Symbol.for("react.scope"):60119;function em(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Uf:switch(e=e.type){case Vf:case zf:case Of:case Rf:case Mf:case Wf:return e;default:switch(e=e&&e.$$typeof){case Hf:case qf:case Gf:case Kf:case Qf:return e;default:return t}}case _f:return t}}}function tm(e){return em(e)===zf}Df.AsyncMode=Vf,Df.ConcurrentMode=zf,Df.ContextConsumer=Hf,Df.ContextProvider=Qf,Df.Element=Uf,Df.ForwardRef=qf,Df.Fragment=Of,Df.Lazy=Gf,Df.Memo=Kf,Df.Portal=_f,Df.Profiler=Rf,Df.StrictMode=Mf,Df.Suspense=Wf,Df.isAsyncMode=function(e){return tm(e)||em(e)===Vf},Df.isConcurrentMode=tm,Df.isContextConsumer=function(e){return em(e)===Hf},Df.isContextProvider=function(e){return em(e)===Qf},Df.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Uf},Df.isForwardRef=function(e){return em(e)===qf},Df.isFragment=function(e){return em(e)===Of},Df.isLazy=function(e){return em(e)===Gf},Df.isMemo=function(e){return em(e)===Kf},Df.isPortal=function(e){return em(e)===_f},Df.isProfiler=function(e){return em(e)===Rf},Df.isStrictMode=function(e){return em(e)===Mf},Df.isSuspense=function(e){return em(e)===Wf},Df.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Of||e===zf||e===Rf||e===Mf||e===Wf||e===Yf||"object"==typeof e&&null!==e&&(e.$$typeof===Gf||e.$$typeof===Kf||e.$$typeof===Qf||e.$$typeof===Hf||e.$$typeof===qf||e.$$typeof===Xf||e.$$typeof===Jf||e.$$typeof===Zf||e.$$typeof===$f)},Df.typeOf=em,Ef.exports=Df;var nm=Ef.exports,im={};function am(){const e=wf;let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let i=!0,a=n={callback:e,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){i&&null!==t&&(i=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}im[nm.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},im[nm.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};const rm={notify(){},get:()=>[]};const sm=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?a.useLayoutEffect:a.useEffect;function lm({store:e,context:t,children:n,serverState:i,stabilityCheck:r="once",noopCheck:s="once"}){const l=a.useMemo((()=>{const t=function(e,t){let n,i=rm,a=0,r=!1;function s(){d.onStateChange&&d.onStateChange()}function l(){a++,n||(n=t?t.addNestedSub(s):e.subscribe(s),i=am())}function o(){a--,n&&0===a&&(n(),n=void 0,i.clear(),i=rm)}const d={addNestedSub:function(e){l();const t=i.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),o())}},notifyNestedSubs:function(){i.notify()},handleChangeWrapper:s,isSubscribed:function(){return r},trySubscribe:function(){r||(r=!0,l())},tryUnsubscribe:function(){r&&(r=!1,o())},getListeners:()=>i};return d}(e);return{store:e,subscription:t,getServerState:i?()=>i:void 0,stabilityCheck:r,noopCheck:s}}),[e,i,r,s]),o=a.useMemo((()=>e.getState()),[e]);sm((()=>{const{subscription:t}=l;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),o!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[l,o]);const d=t||Nf;return a.createElement(d.Provider,{value:l},n)}function om(e=Nf){const t=e===Nf?Ff:If(e);return function(){const{store:e}=t();return e}}const dm=om();function cm(e=Nf){const t=e===Nf?dm:om(e);return function(){return t().dispatch}}const um=cm();var pm,Am;pm=bf.useSyncExternalStoreWithSelector,Bf=pm,Am=r.unstable_batchedUpdates,wf=Am;const hm="https://www.pozo.dev/pozo-common-api",fm=Ja("signInPage/GenerateLogout",(async({UserId:e,status:t})=>{if(null!=e&&null!=e)return await fA.put("/Logout",{UserId:e,Generate:t,RequestMode:"DW"})})),mm=Ja("signInPage/checkSession",(async({UserId:e,SessionId:t})=>{if(null!=e&&null!=e)return await fA.get(`/UserSessionId?UserId=${e}&SessionId=${t}`)})),vm=Ja("signInPage/getUserData",(async({MobileNo:e,deviceId:t})=>{if(null!=e&&null!=e)return await fA.get(`/user?MobileNo=${e}&deviceId=${t}`)})),gm=Ja("signInPage/verifyUserLogin",(async({MobileNo:e,Password:t,IP:n,Browser:i,Version:a,OS:r,LoginType:s,AnotherWindow:l,deviceId:o,SessionId:d})=>{if(null!=e&&null!=e&&null!=t&&null!=t&&null!=l)return await fA.get(`/login?UserName=${e}&Password=${t}&IP=${n}&Browser=${i}&Version=${a}&OS=${r}&LoginType=${s}&AnotherWindow=${l}&RequestMode=DW&deviceId=${o}&SessionId=${d}`)})),ym=Ja("signInPage/verifyUserLogin",(async({MobileNo:e,Pin:t,IP:n,Browser:i,Version:a,OS:r,LoginType:s,AnotherWindow:l,deviceId:o,SessionId:d})=>{if(null!=e&&null!=e&&null!=t&&null!=t&&null!=l)return await fA.get(`/login?UserName=${e}&Pin=${t}&IP=${n}&Browser=${i}&Version=${a}&OS=${r}&LoginType=${s}&AnotherWindow=${l}&RequestMode=DW&deviceId=${o}&SessionId=${d}`)})),xm=Ja("signInPage/verifyOTP",(async({MobileNo:e})=>await fA.post("/verifyOTP",{UserName:e}))),bm=Ja("signInPage/sendOtpMobileNo",(async({MobileNo:e})=>await fA.post("/verifyOTP/getOTP",{UserName:e,Type:"N"}))),wm=Ja("signInPage/setUser",(async({MobileNo:e,deviceId:t})=>await fA.post("/verifyOTP/setUser",{UserName:e,Type:"N",RequestMode:"DW",deviceId:t}))),jm=Ja("signInPage/AccessTokenByOTP",(async({MobileNo:e,OTP:t,IP:n,Browser:i,Version:a,OS:r,LoginType:s,deviceId:l,SessionId:o})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await fA.get(`/AccessTokenByOTP?userName=${e}&OTP=${t}&IP=${n}&Browser=${i}&Version=${a}&OS=${r}&LoginType=${s}&RequestMode=DW&deviceId=${l}&SessionId=${o}`)})),Cm=Ja("homePage/getAppAccess",(async({UserId:e})=>{if(null!=e&&null!=e)return await fA.get(`/appAccess?UserId=${e}&Type=UC`)})),Sm=Ja("signInPage/getuserAppMap",(async({UserId:e})=>{if(null!=e&&null!=e)return await fA.get(`/userAppMap?UserId=${e}`)})),Nm=Ja("AppName/getAppName",(async({AppId:e})=>{if(null!=e&&null!=e)return await Ne.get(`${hm}/application?AppId=${e}`)})),Im=Ja("AuthorizedSession/getAuthorizedSession",(async({UserId:e,SessionId:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await Ne.get(`${hm}/AuthorizedSession?UserId=${e}&SessionId=${t}`)})),Fm=Ya({name:"signInPage",initialState:{UserData:[]},extraReducers:e=>{e.addCase(vm.fulfilled,((e,t)=>{var n,i,a,r;1===(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.UserData=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.UserData=[]}))}}).reducer,Bm="/assets/PozoAppLogo-728641d3.svg";function Pm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"}}]})(e)}function km(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"}}]})(e)}function Tm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"}}]})(e)}function Em(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"}}]})(e)}function Dm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm121.8 169.9l-40.7 191.8c-3 13.6-11.1 16.9-22.4 10.5l-62-45.7-29.9 28.8c-3.3 3.3-6.1 6.1-12.5 6.1l4.4-63.1 114.9-103.8c5-4.4-1.1-6.9-7.7-2.5l-142 89.4-61.2-19.1c-13.3-4.2-13.6-13.3 2.8-19.7l239.1-92.2c11.1-4 20.8 2.7 17.2 19.5z"}}]})(e)}function Lm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"}}]})(e)}function Um(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"}}]})(e)}function _m(e){return Cn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"}}]})(e)}function Om(e){return Cn({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"}}]})(e)}function Mm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"}}]})(e)}function Rm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(e)}function Qm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"}}]})(e)}function Hm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}}]})(e)}function Vm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"}}]})(e)}function zm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M560 288h-80v96l-32-21.3-32 21.3v-96h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16zm-384-64h224c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16h-80v96l-32-21.3L256 96V0h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16zm64 64h-80v96l-32-21.3L96 384v-96H16c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16z"}}]})(e)}function qm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"}}]})(e)}function Wm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"}}]})(e)}function Ym(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M511.1 378.8l-26.7-160c-2.6-15.4-15.9-26.7-31.6-26.7H208v-64h96c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h96v64H59.1c-15.6 0-29 11.3-31.6 26.7L.8 378.7c-.6 3.5-.9 7-.9 10.5V480c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32v-90.7c.1-3.5-.2-7-.8-10.5zM280 248c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16zm-32 64h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16zm-32-80c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16zM80 80V48h192v32H80zm40 200h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16zm16 64v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16zm216 112c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h176c4.4 0 8 3.6 8 8v16zm24-112c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16zm48-80c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16z"}}]})(e)}function Km(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"}}]})(e)}function Gm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"}}]})(e)}function $m(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"}}]})(e)}function Xm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}}]})(e)}function Jm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}}]})(e)}function Zm(e){return Cn({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"}}]})(e)}function ev(e){return Cn({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"}}]})(e)}function tv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"}}]})(e)}function nv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"}}]})(e)}function iv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"}}]})(e)}function av(e){return Cn({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"}}]})(e)}function rv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"}}]})(e)}function sv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"}}]})(e)}function lv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V256H0v176zm192-68c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-40zm-128 0c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM576 80v48H0V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48z"}}]})(e)}function ov(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"}}]})(e)}function dv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z"}}]})(e)}function cv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"}}]})(e)}function uv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"}}]})(e)}function pv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"}}]})(e)}function Av(e){return Cn({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M288 256H96v64h192v-64zm89-151L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm256 304c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-200v96c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-96c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16z"}}]})(e)}function hv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 416h-23.41L277.88 53.69A32 32 0 0 0 247.58 32h-47.16a32 32 0 0 0-30.3 21.69L39.41 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-19.58l23.3-64h152.56l23.3 64H304a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM176.85 272L224 142.51 271.15 272z"}}]})(e)}function fv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"}}]})(e)}function mv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 96v320h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H320a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V288H160v128h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V96H32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-32v128h192V96h-32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16z"}}]})(e)}function vv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64z"}}]})(e)}function gv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"}}]})(e)}function yv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"}}]})(e)}function xv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"}}]})(e)}function bv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"}}]})(e)}function wv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"}}]})(e)}function jv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zm0 168c-23.2 0-42-18.8-42-42s18.8-42 42-42 42 18.8 42 42-18.8 42-42 42zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"}}]})(e)}function Cv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z"}}]})(e)}function Sv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"}}]})(e)}function Nv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"}}]})(e)}function Iv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"}}]})(e)}function Fv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505.12019,19.09375c-1.18945-5.53125-6.65819-11-12.207-12.1875C460.716,0,435.507,0,410.40747,0,307.17523,0,245.26909,55.20312,199.05238,128H94.83772c-16.34763.01562-35.55658,11.875-42.88664,26.48438L2.51562,253.29688A28.4,28.4,0,0,0,0,264a24.00867,24.00867,0,0,0,24.00582,24H127.81618l-22.47457,22.46875c-11.36521,11.36133-12.99607,32.25781,0,45.25L156.24582,406.625c11.15623,11.1875,32.15619,13.15625,45.27726,0l22.47457-22.46875V488a24.00867,24.00867,0,0,0,24.00581,24,28.55934,28.55934,0,0,0,10.707-2.51562l98.72834-49.39063c14.62888-7.29687,26.50776-26.5,26.50776-42.85937V312.79688c72.59753-46.3125,128.03493-108.40626,128.03493-211.09376C512.07526,76.5,512.07526,51.29688,505.12019,19.09375ZM384.04033,168A40,40,0,1,1,424.05,128,40.02322,40.02322,0,0,1,384.04033,168Z"}}]})(e)}function Bv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"}}]})(e)}function Pv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"}}]})(e)}function kv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"}}]})(e)}function Tv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"}}]})(e)}function Ev(e){return Cn({tag:"svg",attr:{viewBox:"0 0 616 512"},child:[{tag:"path",attr:{d:"M602 118.6L537.1 15C531.3 5.7 521 0 510 0H106C95 0 84.7 5.7 78.9 15L14 118.6c-33.5 53.5-3.8 127.9 58.8 136.4 4.5.6 9.1.9 13.7.9 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18.1 20.1 44.3 33.1 73.8 33.1 4.7 0 9.2-.3 13.7-.9 62.8-8.4 92.6-82.8 59-136.4zM529.5 288c-10 0-19.9-1.5-29.5-3.8V384H116v-99.8c-9.6 2.2-19.5 3.8-29.5 3.8-6 0-12.1-.4-18-1.2-5.6-.8-11.1-2.1-16.4-3.6V480c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32V283.2c-5.4 1.6-10.8 2.9-16.4 3.6-6.1.8-12.1 1.2-18.2 1.2z"}}]})(e)}function Dv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm176-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h328c6.6 0 12 5.4 12 12v312z"}}]})(e)}function Lv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"}}]})(e)}function Uv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"}}]})(e)}function _v(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"}}]})(e)}function Ov(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 288c79.5 0 144-64.5 144-144S335.5 0 256 0 112 64.5 112 144s64.5 144 144 144zm128 32h-55.1c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16H128C57.3 320 0 377.3 0 448v16c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-16c0-70.7-57.3-128-128-128z"}}]})(e)}function Mv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"}}]})(e)}function Rv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 64h-25.98C438.44 92.28 448 125.01 448 160c0 105.87-86.13 192-192 192S64 265.87 64 160c0-34.99 9.56-67.72 25.98-96H64C28.71 64 0 92.71 0 128v320c0 35.29 28.71 64 64 64h384c35.29 0 64-28.71 64-64V128c0-35.29-28.71-64-64-64zM256 320c88.37 0 160-71.63 160-160S344.37 0 256 0 96 71.63 96 160s71.63 160 160 160zm-.3-151.94l33.58-78.36c3.5-8.17 12.94-11.92 21.03-8.41 8.12 3.48 11.88 12.89 8.41 21l-33.67 78.55C291.73 188 296 197.45 296 208c0 22.09-17.91 40-40 40s-40-17.91-40-40c0-21.98 17.76-39.77 39.7-39.94z"}}]})(e)}function Qv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M634.91 154.88C457.74-8.99 182.19-8.93 5.09 154.88c-6.66 6.16-6.79 16.59-.35 22.98l34.24 33.97c6.14 6.1 16.02 6.23 22.4.38 145.92-133.68 371.3-133.71 517.25 0 6.38 5.85 16.26 5.71 22.4-.38l34.24-33.97c6.43-6.39 6.3-16.82-.36-22.98zM320 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm202.67-83.59c-115.26-101.93-290.21-101.82-405.34 0-6.9 6.1-7.12 16.69-.57 23.15l34.44 33.99c6 5.92 15.66 6.32 22.05.8 83.95-72.57 209.74-72.41 293.49 0 6.39 5.52 16.05 5.13 22.05-.8l34.44-33.99c6.56-6.46 6.33-17.06-.56-23.15z"}}]})(e)}function Hv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 104c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96zm0 144c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm0-240C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-49.7 0-95.1-18.3-130.1-48.4 14.9-23 40.4-38.6 69.6-39.5 20.8 6.4 40.6 9.6 60.5 9.6s39.7-3.1 60.5-9.6c29.2 1 54.7 16.5 69.6 39.5-35 30.1-80.4 48.4-130.1 48.4zm162.7-84.1c-24.4-31.4-62.1-51.9-105.1-51.9-10.2 0-26 9.6-57.6 9.6-31.5 0-47.4-9.6-57.6-9.6-42.9 0-80.6 20.5-105.1 51.9C61.9 339.2 48 299.2 48 256c0-110.3 89.7-200 200-200s200 89.7 200 200c0 43.2-13.9 83.2-37.3 115.9z"}}]})(e)}const Vv=({items:e=[],mode:t="vertical",style:n={},onClick:i,collapse:r=!1,selectedKey:s,isBottomMenu:l=!1})=>{const[o,d]=a.useState([]),[c,u]=a.useState(""),[p,A]=a.useState({}),[h,f]=a.useState(window.innerWidth<=768),m=a.useRef();a.useEffect((()=>{void 0!==s&&u(s)}),[s]),a.useEffect((()=>{const e=e=>{m.current&&!m.current.contains(e.target)&&(d([]),A({}))},t=()=>{f(window.innerWidth<=768),o.length>0&&(d([]),A({}))},n=()=>{if(o.length>0){const e={};o.forEach((t=>{const n=document.querySelector(`[data-menu-key="${t}"]`);if(n){const i=t.split("-").length-1;e[t]=v(n,i)}})),A((t=>({...t,...e})))}};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),window.addEventListener("scroll",n,!0),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t),window.removeEventListener("scroll",n,!0)}}),[o]);const v=(e,t=0)=>{var n;const i=e.getBoundingClientRect(),a=window.innerWidth,r=window.innerHeight,s=window.pageXOffset||document.documentElement.scrollLeft,o=window.pageYOffset||document.documentElement.scrollTop,d=h?Math.min(280,a-20):t>0?220:250,c=Math.min(h?.5*r:400,.6*r),u=h?2:4,A=h?10:8,f=a-i.right,m=i.left,v=d+u+A;let g={top:i.top+o,left:i.right+u+s,direction:"right",verticalDirection:"down"};if(0===t)f>=v?(g.left=i.right+u+s,g.direction="right"):m>=v?(g.left=i.left-d-u+s,g.direction="left"):f>=m?(g.left=a-d-A+s,g.direction="right-edge"):(g.left=A+s,g.direction="left-edge");else{const e=Object.keys(p);(e.length>0&&(null==(n=p[e[t-1]])?void 0:n.direction)||"right").includes("right")?f>=v?(g.left=i.right+u+s,g.direction="right"):(g.left=i.left-d-u+s,g.direction="left"):m>=v?(g.left=i.left-d-u+s,g.direction="left"):(g.left=i.right+u+s,g.direction="right")}const y=r-i.bottom,x=i.top;return l&&0===t?x>=c+A?(g.top=i.top-c-u+o,g.verticalDirection="up"):(g.top=i.bottom+u+o,g.verticalDirection="down"):y>=c+A?(g.top=i.top+o,g.verticalDirection="down"):x>=c+A?(g.top=i.bottom-c+o,g.verticalDirection="up"):(g.top=Math.max(A,(r-c)/2)+o,g.verticalDirection="center"),g.left=Math.max(A+s,Math.min(g.left,a-d-A+s)),g.top=Math.max(A+o,Math.min(g.top,r-c-A+o)),g.width=d,g.height=c,g},g=a.useRef({}),y=a.useRef({}),[x,b]=a.useState({}),w=(e,t=[],n=0)=>e.map((e=>{var a;if(!e)return null;const s=e.children&&e.children.length>0,l=(p=e.key,c===p);var p;const h=(e=>o.includes(e))(e.key),f=((e,t=[])=>{if(!e.children)return!1;const n=(e,t)=>e.some((e=>{const i=[...t,e.key];return e.key===c||!!e.children&&n(e.children,i)}));return n(e.children,[...t,e.key])})(e,t),m=[...t,e.key];return Ye.jsxs("div",{className:"pozo-menu-item-wrapper",ref:t=>{t&&(g.current[e.key]=t)},children:[Ye.jsxs("div",{className:`pozo-menu-item ${l?"selected":""} ${h?"open":""} ${f?"active-path":""} ${s?"has-children":""} ${"group"===e.type?"group-item":""}`,onClick:n=>((e,t,n=[])=>{if(t.stopPropagation(),e.children&&e.children.length>0){const i=e.key;if(o.includes(i))d((e=>e.filter((e=>!e.startsWith(i)&&e!==i)))),A((e=>{const t={...e};return Object.keys(t).forEach((e=>{(e.startsWith(i)||e===i)&&delete t[e]})),t}));else{const e=[...n,i],a=o.filter((t=>e.some((e=>t===e))||e.every(((e,n)=>{const i=t.split("-"),a=e.split("-");return n<i.length&&i[n]===a[n]}))));a.push(i);const r=v(t.currentTarget,n.length);A((e=>{const t={};return a.forEach((n=>{e[n]&&(t[n]=e[n])})),t[i]=r,t})),d(a)}}else u(e.key),d([]),A({}),i&&i({key:e.key,keyPath:[...n,e.key],item:e,domEvent:t})})(e,n,t),"data-menu-key":e.key,style:{justifyContent:"flex-start"},children:[e.icon&&Ye.jsx("span",{className:"pozo-menu-icon",style:{fontSize:r?"1.3rem":""},children:e.icon}),!r&&Ye.jsx("span",{className:"pozo-menu-label",children:e.label}),s&&!r&&Ye.jsx("span",{className:"pozo-menu-arrow",children:Ye.jsx(Wm,{})})]}),s&&h&&!r&&Ye.jsx("div",{ref:t=>{t&&(y.current[e.key]=t)},className:"pozo-dropdown-submenu "+(n>0?"nested-submenu":""),style:{position:"fixed",top:(()=>{var t,n,i;const a=(null==(t=x[e.key])?void 0:t.top)||0,r=(null==(i=null==(n=y.current[e.key])?void 0:n.getBoundingClientRect())?void 0:i.height)||0,s=window.innerHeight;return a+r>s?Math.max(8,s-r-8):a})(),left:(null==(a=x[e.key])?void 0:a.left)+5||0,width:220,maxHeight:400,zIndex:1e3+n},children:Ye.jsx("div",{className:"pozo-submenu-content",children:w(e.children,m,n+1)})})]},e.key)}));return a.useEffect((()=>{const e={};for(const[t,n]of Object.entries(g.current))if(n&&"function"==typeof n.getBoundingClientRect){const i=n.getBoundingClientRect();e[t]={top:i.top+window.scrollY,left:i.right+window.scrollX}}Object.entries(y.current).forEach((([e,t])=>{if(t){t.getBoundingClientRect().height}})),b(e)}),[e,o]),Ye.jsx("div",{className:`pozo-menu pozo-menu-${t}`,style:n,children:Ye.jsx("div",{className:"pozo-menu-content",ref:m,children:w(e)})})},zv="/home/",qv=(e,t,n,i)=>({key:t,icon:n,children:i,label:e}),Wv=(e,t,n,i)=>({key:t,icon:n,children:i,label:e}),Yv=({mode:e,theme:t,items:n})=>{const i=um(),r=Qt(),s=Mt(),l=a.useRef(null),[o,d]=a.useState(!0),[c,u]=a.useState(""),p=()=>{d((e=>!e))},A=async()=>{var e;const t=iA("UserId"),n=await i(fm({UserId:t,status:"N"})).unwrap();1===(null==(e=null==n?void 0:n.data)?void 0:e.statusCode)&&(rA(),r(`${zv}`)),d(!1)},f=a.useCallback((e=>{e===`${zv}setting`&&i($h()),i(ih()),i(ah()),u(e),r(e,{state:{AppName:e}}),d(!1)}),[i,r,zv]),m=a.useCallback((e=>{const{key:t}=e;"logout"===t?A():(f(t),o&&p())}),[A,f,o]),v=(null==n?void 0:n.filter((e=>{var t,n;const i=null==(t=e.key)?void 0:t.toLowerCase(),a=null==(n=e.label)?void 0:n.toLowerCase();return"my profile"!==i&&"profile"!==i&&"my-profile"!==i&&"my profile"!==a&&"profile"!==a})))||[];return a.useEffect((()=>{const e=s.pathname;u(e)}),[s.pathname]),Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{className:"pozo-sidebar "+(o?"":"pozo-sidebar--collapsed"),ref:l,children:[Ye.jsxs("div",{className:"pozo-sidebar__header",children:[Ye.jsx("div",{className:"pozo-sidebar__hamburger-menu",children:Ye.jsx(Fn,{size:30,onClick:p})}),Ye.jsx("div",{className:"pozo-sidebar__logo-container",onClick:()=>r(`${zv}`),children:Ye.jsx("img",{src:Bm,alt:"Pozo Logo",width:"80px",height:"45px",style:{filter:"brightness(10)"}})})]}),Ye.jsxs("div",{className:"pozo-sidebar__menu-container",style:{display:"flex",flexDirection:"column",height:"calc(100vh - 120px)"},children:[Ye.jsx("div",{style:{flex:1,overflowY:"auto"},children:Ye.jsx(Vv,{items:v,mode:"vertical",collapse:!o,selectedKey:c,onClick:m,style:{width:"100%",height:"100%"},isBottomMenu:!1})}),Ye.jsx("div",{className:"pozo-sidebar__bottom-section",style:{padding:"10px 0",marginTop:"auto"},children:Ye.jsx(Vv,{items:[{key:`${zv}landing-page/user-account`,label:"My Profile",icon:Ye.jsx(h,{})},{key:"logout",label:"Sign Out",icon:Ye.jsx(mi,{})}],mode:"vertical",collapse:!o,selectedKey:c,onClick:m,style:{width:"100%"},isBottomMenu:!0})})]})]})})},Kv=()=>{const e=Tf(Xh),t=iA("MobileNo"),n=iA("userName"),i=iA("UserType");return Ye.jsxs("div",{className:"centerPageSub",children:[Ye.jsxs("div",{className:"breadCrumbClass",children:[Ye.jsx("div",{children:(null==e?void 0:e.length)>0&&Ye.jsx(f,{className:"crumb",items:null==e?void 0:e.map((e=>({title:e.link&&e.link!==location.pathname?Ye.jsx(An,{to:e.link,children:e.name}):Ye.jsx("span",{children:e.name})})))})}),Ye.jsxs("div",{className:"tooltip",children:[Ye.jsx("p",{"data-letters":n?(null==n?void 0:n.slice(0,1))+(null==n?void 0:n.slice(-1)):"GU",style:{textTransform:"uppercase",fontFamily:"Gilroy"}}),Ye.jsxs("span",{style:{display:"flex",flexDirection:"column",fontFamily:"Gilroy",padding:"5px",gap:"5px"},className:"tooltiptext",children:[Ye.jsxs("span",{children:[" ",n||(t||"Guest")]})," ",Ye.jsx("span",{children:i})]})]})]}),Ye.jsx("div",{className:"content",children:Ye.jsx(en,{})})]})};function Gv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 15.586-3.293-3.293-1.414 1.414L10 18.414l9.707-9.707-1.414-1.414z"}}]})(e)}function $v(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 13h1v7c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-7h1a1 1 0 0 0 .707-1.707l-9-9a.999.999 0 0 0-1.414 0l-9 9A1 1 0 0 0 3 13zm9-8.586 6 6V15l.001 5H6v-9.586l6-6z"}},{tag:"path",attr:{d:"M12 18c3.703 0 4.901-3.539 4.95-3.689l-1.9-.621c-.008.023-.781 2.31-3.05 2.31-2.238 0-3.02-2.221-3.051-2.316l-1.899.627C7.099 14.461 8.297 18 12 18z"}}]})(e)}function Xv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 5h13v7h2V5c0-1.103-.897-2-2-2H4c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h8v-2H4V5z"}},{tag:"path",attr:{d:"m8 11-3 4h11l-4-6-3 4z"}},{tag:"path",attr:{d:"M19 14h-2v3h-3v2h3v3h2v-3h3v-2h-3z"}}]})(e)}function Jv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"}}]})(e)}function Zv(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z"}}]})(e)}function eg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16.0037 9.41421L7.39712 18.0208L5.98291 16.6066L14.5895 8H7.00373V6H18.0037V17H16.0037V9.41421Z"}}]})(e)}function tg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M21 19.9997C21 20.552 20.5523 20.9997 20 20.9997H4C3.44772 20.9997 3 20.552 3 19.9997V9.48882C3 9.18023 3.14247 8.88893 3.38606 8.69947L11.3861 2.47725C11.7472 2.19639 12.2528 2.19639 12.6139 2.47725L20.6139 8.69947C20.8575 8.88893 21 9.18023 21 9.48882V19.9997ZM19 18.9997V9.97791L12 4.53346L5 9.97791V18.9997H19Z"}}]})(e)}function ng(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17 15.2454V22.1169C17 22.393 16.7761 22.617 16.5 22.617C16.4094 22.617 16.3205 22.5923 16.2428 22.5457L12 20L7.75725 22.5457C7.52046 22.6877 7.21333 22.6109 7.07125 22.3742C7.02463 22.2964 7 22.2075 7 22.1169V15.2454C5.17107 13.7793 4 11.5264 4 9C4 4.58172 7.58172 1 12 1C16.4183 1 20 4.58172 20 9C20 11.5264 18.8289 13.7793 17 15.2454ZM9 16.4185V19.4676L12 17.6676L15 19.4676V16.4185C14.0736 16.7935 13.0609 17 12 17C10.9391 17 9.92643 16.7935 9 16.4185ZM12 15C15.3137 15 18 12.3137 18 9C18 5.68629 15.3137 3 12 3C8.68629 3 6 5.68629 6 9C6 12.3137 8.68629 15 12 15Z"}}]})(e)}function ig(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z"}}]})(e)}function ag(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z"}}]})(e)}function rg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.007 2.10377C8.60544 1.65006 7.08181 2.28116 6.41156 3.59306L5.60578 5.17023C5.51004 5.35763 5.35763 5.51004 5.17023 5.60578L3.59306 6.41156C2.28116 7.08181 1.65006 8.60544 2.10377 10.007L2.64923 11.692C2.71404 11.8922 2.71404 12.1078 2.64923 12.308L2.10377 13.993C1.65006 15.3946 2.28116 16.9182 3.59306 17.5885L5.17023 18.3942C5.35763 18.49 5.51004 18.6424 5.60578 18.8298L6.41156 20.407C7.08181 21.7189 8.60544 22.35 10.007 21.8963L11.692 21.3508C11.8922 21.286 12.1078 21.286 12.308 21.3508L13.993 21.8963C15.3946 22.35 16.9182 21.7189 17.5885 20.407L18.3942 18.8298C18.49 18.6424 18.6424 18.49 18.8298 18.3942L20.407 17.5885C21.7189 16.9182 22.35 15.3946 21.8963 13.993L21.3508 12.308C21.286 12.1078 21.286 11.8922 21.3508 11.692L21.8963 10.007C22.35 8.60544 21.7189 7.08181 20.407 6.41156L18.8298 5.60578C18.6424 5.51004 18.49 5.35763 18.3942 5.17023L17.5885 3.59306C16.9182 2.28116 15.3946 1.65006 13.993 2.10377L12.308 2.64923C12.1078 2.71403 11.8922 2.71404 11.692 2.64923L10.007 2.10377ZM6.75977 11.7573L8.17399 10.343L11.0024 13.1715L16.6593 7.51465L18.0735 8.92886L11.0024 15.9999L6.75977 11.7573Z"}}]})(e)}function sg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 4V20H17V4H7ZM6 2H18C18.5523 2 19 2.44772 19 3V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V3C5 2.44772 5.44772 2 6 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z"}}]})(e)}function lg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM7 6H11V10H7V6ZM7 12H17V14H7V12ZM7 16H17V18H7V16ZM13 7H17V9H13V7Z"}}]})(e)}function og(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.0049 2L18.3032 4.28071C18.7206 4.41117 19.0049 4.79781 19.0049 5.23519V7H21.0049C21.5572 7 22.0049 7.44772 22.0049 8V16C22.0049 16.5523 21.5572 17 21.0049 17L17.7848 17.0011C17.3982 17.5108 16.9276 17.9618 16.3849 18.3318L11.0049 22L5.62486 18.3318C3.98563 17.2141 3.00488 15.3584 3.00488 13.3744V5.23519C3.00488 4.79781 3.28913 4.41117 3.70661 4.28071L11.0049 2ZM11.0049 4.094L5.00488 5.97V13.3744C5.00488 14.6193 5.58406 15.7884 6.56329 16.5428L6.75154 16.6793L11.0049 19.579L14.7869 17H10.0049C9.4526 17 9.00488 16.5523 9.00488 16V8C9.00488 7.44772 9.4526 7 10.0049 7H17.0049V5.97L11.0049 4.094ZM11.0049 12V15H20.0049V12H11.0049ZM11.0049 10H20.0049V9H11.0049V10Z"}}]})(e)}function dg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.001 4.52853C14.35 2.42 17.98 2.49 20.2426 4.75736C22.5053 7.02472 22.583 10.637 20.4786 12.993L11.9999 21.485L3.52138 12.993C1.41705 10.637 1.49571 7.01901 3.75736 4.75736C6.02157 2.49315 9.64519 2.41687 12.001 4.52853ZM18.827 6.1701C17.3279 4.66794 14.9076 4.60701 13.337 6.01687L12.0019 7.21524L10.6661 6.01781C9.09098 4.60597 6.67506 4.66808 5.17157 6.17157C3.68183 7.66131 3.60704 10.0473 4.97993 11.6232L11.9999 18.6543L19.0201 11.6232C20.3935 10.0467 20.319 7.66525 18.827 6.1701Z"}}]})(e)}function cg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13.0281 2.00098C14.1535 2.00284 14.7238 2.00879 15.2166 2.02346L15.4107 2.02981C15.6349 2.03778 15.8561 2.04778 16.1228 2.06028C17.1869 2.10944 17.9128 2.27778 18.5503 2.52528C19.2094 2.77944 19.7661 3.12278 20.3219 3.67861C20.8769 4.23444 21.2203 4.79278 21.4753 5.45028C21.7219 6.08694 21.8903 6.81361 21.9403 7.87778C21.9522 8.14444 21.9618 8.36564 21.9697 8.58989L21.976 8.78397C21.9906 9.27672 21.9973 9.8471 21.9994 10.9725L22.0002 11.7182C22.0003 11.8093 22.0003 11.9033 22.0003 12.0003L22.0002 12.2824L21.9996 13.0281C21.9977 14.1535 21.9918 14.7238 21.9771 15.2166L21.9707 15.4107C21.9628 15.6349 21.9528 15.8561 21.9403 16.1228C21.8911 17.1869 21.7219 17.9128 21.4753 18.5503C21.2211 19.2094 20.8769 19.7661 20.3219 20.3219C19.7661 20.8769 19.2069 21.2203 18.5503 21.4753C17.9128 21.7219 17.1869 21.8903 16.1228 21.9403C15.8561 21.9522 15.6349 21.9618 15.4107 21.9697L15.2166 21.976C14.7238 21.9906 14.1535 21.9973 13.0281 21.9994L12.2824 22.0002C12.1913 22.0003 12.0973 22.0003 12.0003 22.0003L11.7182 22.0002L10.9725 21.9996C9.8471 21.9977 9.27672 21.9918 8.78397 21.9771L8.58989 21.9707C8.36564 21.9628 8.14444 21.9528 7.87778 21.9403C6.81361 21.8911 6.08861 21.7219 5.45028 21.4753C4.79194 21.2211 4.23444 20.8769 3.67861 20.3219C3.12278 19.7661 2.78028 19.2069 2.52528 18.5503C2.27778 17.9128 2.11028 17.1869 2.06028 16.1228C2.0484 15.8561 2.03871 15.6349 2.03086 15.4107L2.02457 15.2166C2.00994 14.7238 2.00327 14.1535 2.00111 13.0281L2.00098 10.9725C2.00284 9.8471 2.00879 9.27672 2.02346 8.78397L2.02981 8.58989C2.03778 8.36564 2.04778 8.14444 2.06028 7.87778C2.10944 6.81278 2.27778 6.08778 2.52528 5.45028C2.77944 4.79194 3.12278 4.23444 3.67861 3.67861C4.23444 3.12278 4.79278 2.78028 5.45028 2.52528C6.08778 2.27778 6.81278 2.11028 7.87778 2.06028C8.14444 2.0484 8.36564 2.03871 8.58989 2.03086L8.78397 2.02457C9.27672 2.00994 9.8471 2.00327 10.9725 2.00111L13.0281 2.00098ZM12.0003 7.00028C9.23738 7.00028 7.00028 9.23981 7.00028 12.0003C7.00028 14.7632 9.23981 17.0003 12.0003 17.0003C14.7632 17.0003 17.0003 14.7607 17.0003 12.0003C17.0003 9.23738 14.7607 7.00028 12.0003 7.00028ZM12.0003 9.00028C13.6572 9.00028 15.0003 10.3429 15.0003 12.0003C15.0003 13.6572 13.6576 15.0003 12.0003 15.0003C10.3434 15.0003 9.00028 13.6576 9.00028 12.0003C9.00028 10.3434 10.3429 9.00028 12.0003 9.00028ZM17.2503 5.50028C16.561 5.50028 16.0003 6.06018 16.0003 6.74943C16.0003 7.43867 16.5602 7.99944 17.2503 7.99944C17.9395 7.99944 18.5003 7.43954 18.5003 6.74943C18.5003 6.06018 17.9386 5.49941 17.2503 5.50028Z"}}]})(e)}function ug(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18.2048 2.25H21.5128L14.2858 10.51L22.7878 21.75H16.1308L10.9168 14.933L4.95084 21.75H1.64084L9.37084 12.915L1.21484 2.25H8.04084L12.7538 8.481L18.2048 2.25ZM17.0438 19.77H18.8768L7.04484 4.126H5.07784L17.0438 19.77Z"}}]})(e)}function pg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.001 2C17.5238 2 22.001 6.47715 22.001 12C22.001 17.5228 17.5238 22 12.001 22C10.1671 22 8.44851 21.5064 6.97086 20.6447L2.00516 22L3.35712 17.0315C2.49494 15.5536 2.00098 13.8345 2.00098 12C2.00098 6.47715 6.47813 2 12.001 2ZM8.59339 7.30019L8.39232 7.30833C8.26293 7.31742 8.13607 7.34902 8.02057 7.40811C7.93392 7.45244 7.85348 7.51651 7.72709 7.63586C7.60774 7.74855 7.53857 7.84697 7.46569 7.94186C7.09599 8.4232 6.89729 9.01405 6.90098 9.62098C6.90299 10.1116 7.03043 10.5884 7.23169 11.0336C7.63982 11.9364 8.31288 12.8908 9.20194 13.7759C9.4155 13.9885 9.62473 14.2034 9.85034 14.402C10.9538 15.3736 12.2688 16.0742 13.6907 16.4482C13.6907 16.4482 14.2507 16.5342 14.2589 16.5347C14.4444 16.5447 14.6296 16.5313 14.8153 16.5218C15.1066 16.5068 15.391 16.428 15.6484 16.2909C15.8139 16.2028 15.8922 16.159 16.0311 16.0714C16.0311 16.0714 16.0737 16.0426 16.1559 15.9814C16.2909 15.8808 16.3743 15.81 16.4866 15.6934C16.5694 15.6074 16.6406 15.5058 16.6956 15.3913C16.7738 15.2281 16.8525 14.9166 16.8838 14.6579C16.9077 14.4603 16.9005 14.3523 16.8979 14.2854C16.8936 14.1778 16.8047 14.0671 16.7073 14.0201L16.1258 13.7587C16.1258 13.7587 15.2563 13.3803 14.7245 13.1377C14.6691 13.1124 14.6085 13.1007 14.5476 13.097C14.4142 13.0888 14.2647 13.1236 14.1696 13.2238C14.1646 13.2218 14.0984 13.279 13.3749 14.1555C13.335 14.2032 13.2415 14.3069 13.0798 14.2972C13.0554 14.2955 13.0311 14.292 13.0074 14.2858C12.9419 14.2685 12.8781 14.2457 12.8157 14.2193C12.692 14.1668 12.6486 14.1469 12.5641 14.1105C11.9868 13.8583 11.457 13.5209 10.9887 13.108C10.8631 12.9974 10.7463 12.8783 10.6259 12.7616C10.2057 12.3543 9.86169 11.9211 9.60577 11.4938C9.5918 11.4705 9.57027 11.4368 9.54708 11.3991C9.50521 11.331 9.45903 11.25 9.44455 11.1944C9.40738 11.0473 9.50599 10.9291 9.50599 10.9291C9.50599 10.9291 9.74939 10.663 9.86248 10.5183C9.97128 10.379 10.0652 10.2428 10.125 10.1457C10.2428 9.95633 10.2801 9.76062 10.2182 9.60963C9.93764 8.92565 9.64818 8.24536 9.34986 7.56894C9.29098 7.43545 9.11585 7.33846 8.95659 7.32007C8.90265 7.31384 8.84875 7.30758 8.79459 7.30402C8.66053 7.29748 8.5262 7.29892 8.39232 7.30833L8.59339 7.30019Z"}}]})(e)}function Ag(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4.99958 12.9998C4.99958 7.91186 7.90222 3.56348 11.9996 1.81787C16.0969 3.56348 18.9996 7.91186 18.9996 12.9998C18.9996 13.8227 18.9236 14.6263 18.779 15.4026L20.7194 17.2352C20.8845 17.3911 20.9238 17.6388 20.815 17.8381L18.3196 22.4132C18.1873 22.6556 17.8836 22.7449 17.6412 22.6127C17.5993 22.5898 17.5608 22.5611 17.5271 22.5273L15.2925 20.2927C15.1049 20.1052 14.8506 19.9998 14.5854 19.9998H9.41379C9.14857 19.9998 8.89422 20.1052 8.70668 20.2927L6.47209 22.5273C6.27683 22.7226 5.96025 22.7226 5.76498 22.5273C5.73122 22.4935 5.70246 22.4551 5.67959 22.4132L3.18412 17.8381C3.07537 17.6388 3.11464 17.3911 3.27975 17.2352L5.22014 15.4026C5.07551 14.6263 4.99958 13.8227 4.99958 12.9998ZM6.47542 19.6955L7.29247 18.8785C7.85508 18.3159 8.61814 17.9998 9.41379 17.9998H14.5854C15.381 17.9998 16.1441 18.3159 16.7067 18.8785L17.5237 19.6955L18.5056 17.8954L17.4058 16.8566C16.9117 16.39 16.6884 15.7044 16.8128 15.0363C16.9366 14.3721 16.9996 13.691 16.9996 12.9998C16.9996 9.13025 15.0045 5.69953 11.9996 4.04021C8.99462 5.69953 6.99958 9.13025 6.99958 12.9998C6.99958 13.691 7.06255 14.3721 7.18631 15.0363C7.31078 15.7044 7.08746 16.39 6.59338 16.8566L5.49353 17.8954L6.47542 19.6955ZM11.9996 12.9998C10.895 12.9998 9.99958 12.1044 9.99958 10.9998C9.99958 9.89525 10.895 8.99982 11.9996 8.99982C13.1041 8.99982 13.9996 9.89525 13.9996 10.9998C13.9996 12.1044 13.1041 12.9998 11.9996 12.9998Z"}}]})(e)}function hg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z"}}]})(e)}function fg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19.376 12.4158L8.77735 19.4816C8.54759 19.6348 8.23715 19.5727 8.08397 19.3429C8.02922 19.2608 8 19.1643 8 19.0656V4.93408C8 4.65794 8.22386 4.43408 8.5 4.43408C8.59871 4.43408 8.69522 4.4633 8.77735 4.51806L19.376 11.5838C19.6057 11.737 19.6678 12.0474 19.5146 12.2772C19.478 12.3321 19.4309 12.3792 19.376 12.4158Z"}}]})(e)}function mg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z"}}]})(e)}function vg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9.97308 18H11V13H13V18H14.0269C14.1589 16.7984 14.7721 15.8065 15.7676 14.7226C15.8797 14.6006 16.5988 13.8564 16.6841 13.7501C17.5318 12.6931 18 11.385 18 10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10C6 11.3843 6.46774 12.6917 7.31462 13.7484C7.40004 13.855 8.12081 14.6012 8.23154 14.7218C9.22766 15.8064 9.84103 16.7984 9.97308 18ZM10 20V21H14V20H10ZM5.75395 14.9992C4.65645 13.6297 4 11.8915 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10C20 11.8925 19.3428 13.6315 18.2443 15.0014C17.624 15.7748 16 17 16 18.5V21C16 22.1046 15.1046 23 14 23H10C8.89543 23 8 22.1046 8 21V18.5C8 17 6.37458 15.7736 5.75395 14.9992Z"}}]})(e)}function gg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z"}}]})(e)}function yg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 19H21V21H3V19ZM13 13.1716L19.0711 7.1005L20.4853 8.51472L12 17L3.51472 8.51472L4.92893 7.1005L11 13.1716V2H13V13.1716Z"}}]})(e)}function xg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"}}]})(e)}function bg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM13 13.3551V14H11V12.5C11 11.9477 11.4477 11.5 12 11.5C12.8284 11.5 13.5 10.8284 13.5 10C13.5 9.17157 12.8284 8.5 12 8.5C11.2723 8.5 10.6656 9.01823 10.5288 9.70577L8.56731 9.31346C8.88637 7.70919 10.302 6.5 12 6.5C13.933 6.5 15.5 8.067 15.5 10C15.5 11.5855 14.4457 12.9248 13 13.3551Z"}}]})(e)}function wg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"}}]})(e)}function jg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3.33946 17.0002C2.90721 16.2515 2.58277 15.4702 2.36133 14.6741C3.3338 14.1779 3.99972 13.1668 3.99972 12.0002C3.99972 10.8345 3.3348 9.824 2.36353 9.32741C2.81025 7.71651 3.65857 6.21627 4.86474 4.99001C5.7807 5.58416 6.98935 5.65534 7.99972 5.072C9.01009 4.48866 9.55277 3.40635 9.4962 2.31604C11.1613 1.8846 12.8847 1.90004 14.5031 2.31862C14.4475 3.40806 14.9901 4.48912 15.9997 5.072C17.0101 5.65532 18.2187 5.58416 19.1346 4.99007C19.7133 5.57986 20.2277 6.25151 20.66 7.00021C21.0922 7.7489 21.4167 8.53025 21.6381 9.32628C20.6656 9.82247 19.9997 10.8336 19.9997 12.0002C19.9997 13.166 20.6646 14.1764 21.6359 14.673C21.1892 16.2839 20.3409 17.7841 19.1347 19.0104C18.2187 18.4163 17.0101 18.3451 15.9997 18.9284C14.9893 19.5117 14.4467 20.5941 14.5032 21.6844C12.8382 22.1158 11.1148 22.1004 9.49633 21.6818C9.55191 20.5923 9.00929 19.5113 7.99972 18.9284C6.98938 18.3451 5.78079 18.4162 4.86484 19.0103C4.28617 18.4205 3.77172 17.7489 3.33946 17.0002ZM8.99972 17.1964C10.0911 17.8265 10.8749 18.8227 11.2503 19.9659C11.7486 20.0133 12.2502 20.014 12.7486 19.9675C13.1238 18.8237 13.9078 17.8268 14.9997 17.1964C16.0916 16.5659 17.347 16.3855 18.5252 16.6324C18.8146 16.224 19.0648 15.7892 19.2729 15.334C18.4706 14.4373 17.9997 13.2604 17.9997 12.0002C17.9997 10.74 18.4706 9.5632 19.2729 8.6665C19.1688 8.4405 19.0538 8.21822 18.9279 8.00021C18.802 7.78219 18.667 7.57148 18.5233 7.36842C17.3457 7.61476 16.0911 7.43414 14.9997 6.80405C13.9083 6.17395 13.1246 5.17768 12.7491 4.03455C12.2509 3.98714 11.7492 3.98646 11.2509 4.03292C10.8756 5.17671 10.0916 6.17364 8.99972 6.80405C7.9078 7.43447 6.65245 7.61494 5.47428 7.36803C5.18485 7.77641 4.93463 8.21117 4.72656 8.66637C5.52881 9.56311 5.99972 10.74 5.99972 12.0002C5.99972 13.2604 5.52883 14.4372 4.72656 15.3339C4.83067 15.5599 4.94564 15.7822 5.07152 16.0002C5.19739 16.2182 5.3324 16.4289 5.47612 16.632C6.65377 16.3857 7.90838 16.5663 8.99972 17.1964ZM11.9997 15.0002C10.3429 15.0002 8.99972 13.6571 8.99972 12.0002C8.99972 10.3434 10.3429 9.00021 11.9997 9.00021C13.6566 9.00021 14.9997 10.3434 14.9997 12.0002C14.9997 13.6571 13.6566 15.0002 11.9997 15.0002ZM11.9997 13.0002C12.552 13.0002 12.9997 12.5525 12.9997 12.0002C12.9997 11.4479 12.552 11.0002 11.9997 11.0002C11.4474 11.0002 10.9997 11.4479 10.9997 12.0002C10.9997 12.5525 11.4474 13.0002 11.9997 13.0002Z"}}]})(e)}function Cg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13.1202 17.0228L8.92129 14.7324C8.19135 15.5125 7.15261 16 6 16C3.79086 16 2 14.2091 2 12C2 9.79086 3.79086 8 6 8C7.15255 8 8.19125 8.48746 8.92118 9.26746L13.1202 6.97713C13.0417 6.66441 13 6.33707 13 6C13 3.79086 14.7909 2 17 2C19.2091 2 21 3.79086 21 6C21 8.20914 19.2091 10 17 10C15.8474 10 14.8087 9.51251 14.0787 8.73246L9.87977 11.0228C9.9583 11.3355 10 11.6629 10 12C10 12.3371 9.95831 12.6644 9.87981 12.9771L14.0788 15.2675C14.8087 14.4875 15.8474 14 17 14C19.2091 14 21 15.7909 21 18C21 20.2091 19.2091 22 17 22C14.7909 22 13 20.2091 13 18C13 17.6629 13.0417 17.3355 13.1202 17.0228ZM6 14C7.10457 14 8 13.1046 8 12C8 10.8954 7.10457 10 6 10C4.89543 10 4 10.8954 4 12C4 13.1046 4.89543 14 6 14ZM17 8C18.1046 8 19 7.10457 19 6C19 4.89543 18.1046 4 17 4C15.8954 4 15 4.89543 15 6C15 7.10457 15.8954 8 17 8ZM17 20C18.1046 20 19 19.1046 19 18C19 16.8954 18.1046 16 17 16C15.8954 16 15 16.8954 15 18C15 19.1046 15.8954 20 17 20Z"}}]})(e)}function Sg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 1L20.2169 2.82598C20.6745 2.92766 21 3.33347 21 3.80217V13.7889C21 15.795 19.9974 17.6684 18.3282 18.7812L12 23L5.6718 18.7812C4.00261 17.6684 3 15.795 3 13.7889V3.80217C3 3.33347 3.32553 2.92766 3.78307 2.82598L12 1ZM12 3.04879L5 4.60434V13.7889C5 15.1263 5.6684 16.3752 6.7812 17.1171L12 20.5963L17.2188 17.1171C18.3316 16.3752 19 15.1263 19 13.7889V4.60434L12 3.04879ZM16.4524 8.22183L17.8666 9.63604L11.5026 16L7.25999 11.7574L8.67421 10.3431L11.5019 13.1709L16.4524 8.22183Z"}}]})(e)}function Ng(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 11C14.7614 11 17 13.2386 17 16V22H15V16C15 14.4023 13.7511 13.0963 12.1763 13.0051L12 13C10.4023 13 9.09634 14.2489 9.00509 15.8237L9 16V22H7V16C7 13.2386 9.23858 11 12 11ZM5.5 14C5.77885 14 6.05009 14.0326 6.3101 14.0942C6.14202 14.594 6.03873 15.122 6.00896 15.6693L6 16L6.0007 16.0856C5.88757 16.0456 5.76821 16.0187 5.64446 16.0069L5.5 16C4.7203 16 4.07955 16.5949 4.00687 17.3555L4 17.5V22H2V17.5C2 15.567 3.567 14 5.5 14ZM18.5 14C20.433 14 22 15.567 22 17.5V22H20V17.5C20 16.7203 19.4051 16.0796 18.6445 16.0069L18.5 16C18.3248 16 18.1566 16.03 18.0003 16.0852L18 16C18 15.3343 17.8916 14.694 17.6915 14.0956C17.9499 14.0326 18.2211 14 18.5 14ZM5.5 8C6.88071 8 8 9.11929 8 10.5C8 11.8807 6.88071 13 5.5 13C4.11929 13 3 11.8807 3 10.5C3 9.11929 4.11929 8 5.5 8ZM18.5 8C19.8807 8 21 9.11929 21 10.5C21 11.8807 19.8807 13 18.5 13C17.1193 13 16 11.8807 16 10.5C16 9.11929 17.1193 8 18.5 8ZM5.5 10C5.22386 10 5 10.2239 5 10.5C5 10.7761 5.22386 11 5.5 11C5.77614 11 6 10.7761 6 10.5C6 10.2239 5.77614 10 5.5 10ZM18.5 10C18.2239 10 18 10.2239 18 10.5C18 10.7761 18.2239 11 18.5 11C18.7761 11 19 10.7761 19 10.5C19 10.2239 18.7761 10 18.5 10ZM12 2C14.2091 2 16 3.79086 16 6C16 8.20914 14.2091 10 12 10C9.79086 10 8 8.20914 8 6C8 3.79086 9.79086 2 12 2ZM12 4C10.8954 4 10 4.89543 10 6C10 7.10457 10.8954 8 12 8C13.1046 8 14 7.10457 14 6C14 4.89543 13.1046 4 12 4Z"}}]})(e)}function Ig(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z"}}]})(e)}function Fg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z"}}]})(e)}const Bg=Ja("homePage/getPurchasedApp",(async({UserId:e})=>{if(null!=e&&null!=e)return await fA.get(`/userAppMap?UserId=${e}`)}));Ja("homePage/getPurchasedAppFeatures",(async({UserId:e,AppId:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await fA.get(`/userAppMap?UserId=${e}&AppId=${t}&Type=IE`)}));const Pg=Ja("homePage/getAllPurchasedDetails",(async()=>await fA.get("/userAppMap"))),kg=Ja("homePage/getAllFailedPurchasedDetails",(async()=>await fA.get("/userAppMap?paymentStatus=F"))),Tg=Ja("homePage/getAllFailedPurchasedDetailsFilter",(async e=>{let t;return null!=(null==e?void 0:e.Year)&&null!=(null==e?void 0:e.Year)&&(t=`userAppMap?paymentStatus=F&year=${null==e?void 0:e.Year}`),null!=(null==e?void 0:e.Month)&&null!=(null==e?void 0:e.Month)&&(t=`userAppMap?paymentStatus=F&monthYear=${null==e?void 0:e.Month}`),null!=(null==e?void 0:e.Fromdate)&&null!=(null==e?void 0:e.Fromdate)&&null!=(null==e?void 0:e.Todate)&&null!=(null==e?void 0:e.Todate)&&(t=`userAppMap?paymentStatus=F&fromDate=${null==e?void 0:e.Fromdate}&toDate=${null==e?void 0:e.Todate}`),await fA.get(`/${t}`)})),Eg=Ja("homePage/getAllPurchasedDetailsFilter",(async e=>{let t;return null!=(null==e?void 0:e.Year)&&null!=(null==e?void 0:e.Year)&&(t=`userAppMap?year=${null==e?void 0:e.Year}`),null!=(null==e?void 0:e.Month)&&null!=(null==e?void 0:e.Month)&&(t=`userAppMap?monthYear=${null==e?void 0:e.Month}`),null!=(null==e?void 0:e.Fromdate)&&null!=(null==e?void 0:e.Fromdate)&&null!=(null==e?void 0:e.Todate)&&null!=(null==e?void 0:e.Todate)&&(t=`userAppMap?fromDate=${null==e?void 0:e.Fromdate}&toDate=${null==e?void 0:e.Todate}`),await fA.get(`/${t}`)})),Dg=Ja("homePage/getTypePurchasedApp",(async({UserId:e})=>{if(null!=e&&null!=e)return await fA.get(`/userAppMap?UserId=${e}&Type=P`)})),Lg=Ja("homePage/getAppAccess",(async({UserId:e})=>{if(null!=e&&null!=e)return await fA.get(`/appAccess?UserId=${e}`)})),Ug=Ja("putDeafaulBranch/putDeafaulBranch",(async e=>await fA.put("/appAccess",e))),_g=Ja("getDeafaul/getDeafaulBranch",(async e=>{if(null!=e.UserId&&null!=e.UserId&&null!=e.AppId&&null!=e.AppId)return await fA.get(`/appAccess?UserId=${e.UserId}&AppId=${e.AppId}&Type=DB`)})),Og=Ja("homePage/getPurchasedAppFilter",(async e=>{let t;return null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)&&(null!=(null==e?void 0:e.Year)&&null!=(null==e?void 0:e.Year)&&(t=`userAppMap?UserId=${null==e?void 0:e.UserId}&year=${null==e?void 0:e.Year}&Type=P`),null!=(null==e?void 0:e.Month)&&null!=(null==e?void 0:e.Month)&&(t=`userAppMap?UserId=${null==e?void 0:e.UserId}&monthYear=${null==e?void 0:e.Month}&Type=P`),null!=(null==e?void 0:e.Fromdate)&&null!=(null==e?void 0:e.Fromdate)&&null!=(null==e?void 0:e.Todate)&&null!=(null==e?void 0:e.Todate)&&(t=`userAppMap?UserId=${null==e?void 0:e.UserId}&fromDate=${null==e?void 0:e.Fromdate}&toDate=${null==e?void 0:e.Todate}&Type=P`)),await fA.get(`/${t}`)})),Mg=Ya({name:"homePage",initialState:{purchasedApp:[],purchasedTypeApp:[],AppAccess:[],failedpurchasedTypeApp:[],purchasedTypeAppFilter:[]},extraReducers:e=>{e.addCase(Bg.fulfilled,((e,t)=>{var n,i,a,r;(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.purchasedApp=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.purchasedApp=[]})),e.addCase(Dg.fulfilled,((e,t)=>{var n,i,a,r,s,l;(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?(e.purchasedTypeApp=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data,e.purchasedTypeAppFilter=null==(l=null==(s=null==t?void 0:t.payload)?void 0:s.data)?void 0:l.data):(e.purchasedTypeApp=[],e.purchasedTypeAppFilter=[])})),e.addCase(Pg.fulfilled,((e,t)=>{var n,i,a,r,s,l;(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?(e.purchasedTypeApp=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data,e.purchasedTypeAppFilter=null==(l=null==(s=null==t?void 0:t.payload)?void 0:s.data)?void 0:l.data):(e.purchasedTypeApp=[],e.purchasedTypeAppFilter=[])})),e.addCase(Eg.fulfilled,((e,t)=>{var n,i,a,r;(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.purchasedTypeAppFilter=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.purchasedTypeAppFilter=[]})),e.addCase(Og.fulfilled,((e,t)=>{var n,i,a,r;(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.purchasedTypeAppFilter=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.purchasedTypeAppFilter=[]})),e.addCase(kg.fulfilled,((e,t)=>{var n,i,a,r;(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.failedpurchasedTypeApp=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.failedpurchasedTypeApp=[]})),e.addCase(Tg.fulfilled,((e,t)=>{var n,i,a,r;(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.failedpurchasedTypeApp=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.failedpurchasedTypeApp=[]})),e.addCase(Lg.fulfilled,((e,t)=>{var n,i,a,r;(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)?e.AppAccess=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data:e.AppAccess=[]}))}}),Rg=e=>e.homePage.failedpurchasedTypeApp,Qg=e=>e.homePage.purchasedTypeAppFilter,Hg=Mg.reducer,Vg=Ja("superAdminAccess/postSuperAdminUserAccess",(async e=>await fA.post("/SuperAdminUserAccess",e))),zg=Ja("superAdminAccess/getSuperAdminUserAccess",(async({UserId:e})=>await fA.get(`/SuperAdminUserAccess?userId=${e}`))),qg=Ja("superAdminAccess/getSuperAllAdminUserAccess",(async()=>await fA.get("/SuperAdminUserAccess"))),Wg=Ja("superAdminAccess/putSuperAdminUserAccessData",(async e=>await fA.put("/SuperAdminUserAccess",e))),Yg=Ja("moduleAccess/getSadminUser",(async({UserType:e="Super Admin User"})=>await fA.get(`/login?Type=${e}`))),Kg=Ya({name:"superAdminUserAccess",initialState:{SuperAdminUserAccessData:[],loading:!1,error:null},extraReducers:e=>{e.addCase(zg.fulfilled,((e,t)=>{var n,i,a,r,s;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.SuperAdminUserAccessData=(null==(s=null==(r=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data)?void 0:r[0])?void 0:s.SuperAdminUserAccessDetails)||[]:e.SuperAdminUserAccessData=[],e.loading=!1}))}}),Gg=e=>{var t;return null==(t=null==e?void 0:e.superAdminUserAccess)?void 0:t.SuperAdminUserAccessData},$g=Kg.reducer;function Xg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M80 176a16 16 0 00-16 16v216c0 30.24 25.76 56 56 56h272c30.24 0 56-24.51 56-54.75V192a16 16 0 00-16-16zm80 0v-32a96 96 0 0196-96h0a96 96 0 0196 96v32"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M160 224v16a96 96 0 0096 96h0a96 96 0 0096-96v-16"}}]})(e)}function Jg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M461.93 261.05c-2-4.76-6.71-7.83-11.67-9.49l-187.18-74.48a23.78 23.78 0 00-14.17 0l-187 74.52c-5 1.56-9.83 4.77-11.81 9.53s-2.94 9.37-1 15.08l46.53 119.15a7.46 7.46 0 007.47 4.64c26.69-1.68 50.31-15.23 68.38-32.5a7.66 7.66 0 0110.49 0C201.29 386 227 400 256 400s54.56-14 73.88-32.54a7.67 7.67 0 0110.5 0c18.07 17.28 41.69 30.86 68.38 32.54a7.45 7.45 0 007.46-4.61l46.7-119.16c1.98-4.78.99-10.41-.99-15.18z"}},{tag:"path",attr:{d:"M416 473.14a6.84 6.84 0 00-3.56-6c-27.08-14.55-51.77-36.82-62.63-48a10.05 10.05 0 00-12.72-1.51c-50.33 32.42-111.61 32.44-161.95.05a10.09 10.09 0 00-12.82 1.56c-10.77 11.28-35.19 33.3-62.43 47.75a7.15 7.15 0 00-3.89 5.73 6.73 6.73 0 007.92 7.15c20.85-4.18 41-13.68 60.2-23.83a8.71 8.71 0 018-.06A185.14 185.14 0 00340 456a8.82 8.82 0 018.09.06c19.1 10 39.22 19.59 60 23.8a6.72 6.72 0 007.95-6.71z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M320 96V72a24.07 24.07 0 00-24-24h-80a24.07 24.07 0 00-24 24v24m224 137v-89a48.14 48.14 0 00-48-48H144a48.14 48.14 0 00-48 48v92m160-52.4v212.85"}}]})(e)}function Zg(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M328 112L184 256l144 144"}}]})(e)}function ey(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"}}]})(e)}function ty(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"64"}},{tag:"path",attr:{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96c-42.52 0-84.33 12.15-124.27 36.11-40.73 24.43-77.63 60.12-109.68 106.07a31.92 31.92 0 00-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416c46.71 0 93.81-14.43 136.2-41.72 38.46-24.77 72.72-59.66 99.08-100.92a32.2 32.2 0 00-.1-34.76zM256 352a96 96 0 1196-96 96.11 96.11 0 01-96 96z"}}]})(e)}function ny(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"256",height:"480",x:"128",y:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"48",ry:"48"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M176 16h24a8 8 0 018 8h0a16 16 0 0016 16h64a16 16 0 0016-16h0a8 8 0 018-8h24"}}]})(e)}function iy(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M366.05 146a46.7 46.7 0 01-2.42-63.42 3.87 3.87 0 00-.22-5.26l-44.13-44.18a3.89 3.89 0 00-5.5 0l-70.34 70.34a23.62 23.62 0 00-5.71 9.24h0a23.66 23.66 0 01-14.95 15h0a23.7 23.7 0 00-9.25 5.71L33.14 313.78a3.89 3.89 0 000 5.5l44.13 44.13a3.87 3.87 0 005.26.22 46.69 46.69 0 0165.84 65.84 3.87 3.87 0 00.22 5.26l44.13 44.13a3.89 3.89 0 005.5 0l180.4-180.39a23.7 23.7 0 005.71-9.25h0a23.66 23.66 0 0114.95-15h0a23.62 23.62 0 009.24-5.71l70.34-70.34a3.89 3.89 0 000-5.5l-44.13-44.13a3.87 3.87 0 00-5.26-.22 46.7 46.7 0 01-63.42-2.32z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M250.5 140.44l-16.51-16.51m60.53 60.53l-11.01-11m55.03 55.03l-11-11.01m60.53 60.53l-16.51-16.51"}}]})(e)}function ay(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 128v144h96"}}]})(e)}function ry(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M85.57 446.25h340.86a32 32 0 0028.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0028.17 47.17z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M250.26 195.39l5.74 122 5.73-121.95a5.74 5.74 0 00-5.79-6h0a5.74 5.74 0 00-5.68 5.95z"}},{tag:"path",attr:{d:"M256 397.25a20 20 0 1120-20 20 20 0 01-20 20z"}}]})(e)}const sy=iA("UserType"),ly=Ja("branch/getBranchData",(async()=>await fA.get("/branch"))),oy=Ja("branch/getBranchData",(async({CompId:e,AppId:t})=>await fA.get(`/branch?compId=${e}&appId=${t}`))),dy=Ja("branch/postBranchData",(async e=>await fA.post("/branch",e))),cy=Ja("branch/putBranchData",(async e=>await fA.put("/branch",e))),uy=Ja("branch/deleteBranchData",(async e=>await fA.delete("/branch",{params:e}))),py=Ja("branch/getActiveBranchData",(async()=>await fA.get("/branch?ActiveStatus=A"))),Ay=Ja("branch/getActiveAdminData",(async()=>await fA.get("/user?UserType=A"))),hy=Ja("login/getAdminNames",(async()=>await fA.get("/login?Type=Admin"))),fy=Ja("branch/getBranchAdminUsers",(async e=>{if(null!=e&&null!=e)return await fA.get(`/branch?UserId=${e}`)})),my=Ja("branch/getBranchAdminUsers",(async e=>null!=e&&null!=e?await fA.get(`/branch?UserId=${e}&Type=W`):await fA.get("/branch?Type=W"))),vy=Ja("userAppMap/getBranchApplications",(async e=>null!=e&&null!=e?await fA.get(`/userAppMap?UserId=${e}`):await fA.get("/userAppMap"))),gy=Ja("appAccess/getApplicationCompany",(async e=>{if(null!=e&&null!=e)return await fA.get(`/appAccess?AppId=${e}`)})),yy=Ja("appAccess/getUserAppCompany",(async e=>{if(null!=e.UserId&&null!=e.UserId&&null!=e.AppId&&null!=e.AppId)return await fA.get(`/appAccess?UserId=${e.UserId}&AppId=${e.AppId}`)})),xy=Ja("appAccess/checkTrialBranch",(async e=>{if(null!=e.UserId&&null!=e.UserId&&null!=e.AppId&&null!=e.AppId)return await fA.get(`/appAccess?UserId=${e.UserId}&AppId=${e.AppId}&Type=T`)})),by=Ja("branch/getCompanyDataBasedOnApp",(async({UserId:e,AppId:t,CompId:n})=>{if(null!=e&&null!=e&&null!=t&&null!=t&&null!=n&&null!=n)return await fA.get(`/appAccess?UserId=${e}&AppId=${t}&CompId=${n}`)})),wy=Ja("branch/getCompanyDataBasedOnApp",(async({UserId:e,AppId:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await fA.get(`/appAccess?UserId=${e}&AppId=${t}`)})),jy=Ja("branch/getActiveAppData",(async e=>{if(null!=e&&null!=e)return await fA.get(`/appAccess?UserId=${e}&Type=AD&ActiveStatus=A`)}));Ja("branch/getActiveAdminData",(async()=>await fA.get("/user?UserType=NA")));const Cy=Ja("branch/getUseridbasedbranchdata",(async({UserId:e})=>{if(null!=e&&null!=e)return await fA.get(`/appAccess?UserId=${e}`)}));Ja("wareHouse/postWarehouseData",(async e=>await fA.post("/warehouse",e)));const Sy=Ya({name:"branch",initialState:{branchData:[],branchActiveData:[],AdminNames:[],BranchAdminUsers:[],BranchApplicationNames:[],ApplicationCompany:[],UserAppCompany:[],BranchCounts:[],AppPreferences:[]},reducers:{companyname:(e,t)=>{e.UserAppCompany=[]}},extraReducers:e=>{e.addCase(Ny.fulfilled,((e,t)=>{var n,i;if(200===(null==(n=null==t?void 0:t.payload)?void 0:n.status)){const{data:n}=null==t?void 0:t.payload;(null==(i=null==n?void 0:n.data)?void 0:i.length)>0?e.AppPreferences=null==n?void 0:n.data:e.AppPreferences=[]}})),e.addCase(ly.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.branchData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.branchData=[]})),e.addCase(py.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.branchActiveData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.branchActiveData=[]})),e.addCase(hy.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.AdminNames=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.AdminNames=[]})),e.addCase(fy.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.BranchAdminUsers=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.BranchAdminUsers=[]})),e.addCase(vy.fulfilled,((e,t)=>{var n,i,a,r,s,l;if(null==(n=null==t?void 0:t.payload)?void 0:n.status)if("Admin"===sy||"Admin User"===sy){let n=new Date,s=null==(r=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data)?void 0:r.filter((e=>new Date(e.ValidityEnd)>=n));e.BranchApplicationNames=s}else e.BranchApplicationNames=null==(l=null==(s=null==t?void 0:t.payload)?void 0:s.data)?void 0:l.data;else e.BranchApplicationNames=[]})),e.addCase(gy.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?(e.ApplicationCompany=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data,e.UserAppCompany=[]):(e.ApplicationCompany=[],e.UserAppCompany=[])})),e.addCase(yy.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.UserAppCompany=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.UserAppCompany=[]})),e.addCase(xy.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.BranchCounts=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.BranchCounts=[]}))}}),Ny=Ja("/getAppPreference",(async e=>{if(null!=e&&null!=e)return await fA.get(`/ApplicationPreferenceMapping?AppId=${e}`)})),{companyname:Iy}=Sy.actions,Fy=e=>{var t;return null==(t=e.branchPage)?void 0:t.branchData},By=e=>{var t;return null==(t=e.branchPage)?void 0:t.BranchAdminUsers},Py=e=>{var t;return null==(t=e.branchPage)?void 0:t.BranchApplicationNames},ky=e=>{var t;return null==(t=e.branchPage)?void 0:t.UserAppCompany},Ty=e=>{var t;return null==(t=e.branchPage)?void 0:t.AppPreferences},Ey=Sy.reducer,Dy="/",Ly=()=>{var e;const t=um(),[n,i]=a.useState([]),r=iA("UserId"),s=iA("UserType");a.useState([]);const[l,o]=a.useState([]),[d,c]=a.useState([]),[u,p]=a.useState([]),[A,h]=a.useState([]),[f,m]=a.useState([]),[v,g]=a.useState([]),[y,x]=a.useState([]),[b,w]=a.useState([]),[j,C]=a.useState(!1),[S,N]=a.useState(!1),I=Tf(Py);a.useEffect((()=>{_(),"Admin"===s?t(vy(r)).unwrap():"Admin"!=s&&t(vy()).unwrap()}),[]),a.useEffect((()=>{const e=(null==u?void 0:u.length)>0?[Wv("Application Info",`${Dy}setting/submenu`,null,u)]:[],t=(null==A?void 0:A.length)>0?[Wv("Kisok Device",`${Dy}setting/Kisok`,null,A)]:[],n=y.length>0?[Wv("Payment Gateway",`${Dy}setting/payment`,null,y)]:[],i=v.length>0?[Wv("Payment Device",`${Dy}setting/Device`,null,v)]:[],a=f.length>0?[Wv("App Version",`${Dy}setting/app-version`,null,f)]:[];o((r=>[...r,...e,...n,...t,...i,...a]))}),[y]),a.useEffect((function(){N(null==I?void 0:I.some((e=>{var t;return null==(t=null==e?void 0:e.FeatAddonDetails)?void 0:t.some((e=>"Warehouse"==(null==e?void 0:e.FeatAddonName)))})),"ApplicationNames")}),[I]);const F=[Wv("Config Type",`${Dy}setting/config-type`),Wv("Config Master",`${Dy}setting/config-master `),Wv("App Setup",`${Dy}setting/application-preference-mapping`),Wv("Company",`${Dy}setting/company-master`),Wv("Branch",`${Dy}setting/branch-master`),Wv("Warehouse",`${Dy}setting/warehouse-master`),Wv("Tax",`${Dy}setting/admin-tax`),Wv("Testimonials",`${Dy}setting/testimonials`),Wv("Carousel",`${Dy}setting/carousel`),Wv("Currency",`${Dy}setting/currency`),Wv("Message Template",`${Dy}setting/message-template`),Wv("Purchase Info",`${Dy}setting/purchaseinfo`),Wv("User App Info",`${Dy}setting/abstract`),Wv("Activation Key Generation",`${Dy}setting/activationkey-generation`),Wv("SMS-Assigned-Details",`${Dy}setting/sms-assigned-detail`),Wv("Gateway Master Configuration",`${Dy}setting/gateway-master-configuration/list`)],B=[Wv("Add User",`${Dy}setting/user-master`),Wv("Common Menu Access",`${Dy}setting/super-admin-user-menu-access`),Wv("User Access",`${Dy}setting/app-access`),Wv("Application Menu Access",`${Dy}setting/app-menu-access`),Wv("Signin Details",`${Dy}setting/signin-details`),Wv("User OTP",`${Dy}setting/user-otp`)],P=[Wv("Payment History",`${Dy}setting/payment/payment-history`),Wv("Failed Payment History",`${Dy}setting/payment/failed-payment-history`)],k=[Wv("Payment Device Config",`${Dy}setting/payment-device-config`)],T=[Wv("Application",`${Dy}setting/application-master`),Wv("Application Menu",`${Dy}setting/app-menu`),Wv("Pricing Type",`${Dy}setting/pricing`),Wv("Feature Mapping",`${Dy}setting/feature-mapping`),Wv("Feature Pricing",`${Dy}setting/featurepricing`),Wv("Feature",`${Dy}setting/feature-master`),Wv("Application Image",`${Dy}setting/application-image`)],E=[Wv("Device Information",`${Dy}setting/device-information`),Wv("Device Allocation",`${Dy}setting/device-allocation`)],D=[Wv("Updated Version",`${Dy}setting/updated-version`),Wv("Version Management",`${Dy}setting/version-management`)],L=[Wv("Payment Gateway Config",`${Dy}setting/payment-gateway-config`),Wv("Payment Data",`${Dy}setting/payment-data`),Wv("Payment Method",`${Dy}setting/payment-method`),Wv("Payment Details",`${Dy}setting/payment-Details`)],U=(e,t)=>null==e?void 0:e.filter((e=>null==t?void 0:t.find((t=>(null==t?void 0:t.ConfigName)===(null==e?void 0:e.label)&&"Y"===(null==t?void 0:t.ReadAccess))))),_=async()=>{var e,n,a,l,d,u,A,f;let v;if(v="Employee"==s?await t(Lg({UserId:r})).unwrap():await t(Bg({UserId:r})).unwrap(),i(null==(e=null==v?void 0:v.data)?void 0:e.data),"Super Admin User"===s){let e=await t(zg({UserId:r})).unwrap();if(1===(null==(n=null==e?void 0:e.data)?void 0:n.statusCode)){(async e=>{const t=[{items:F,setter:o},{items:B,setter:w},{items:P,setter:c},{items:T,setter:p},{items:E,setter:h},{items:k,setter:g},{items:D,setter:m}];null==t||t.forEach((({items:t,setter:n})=>{n(U(t,e))}));const n=U(L,e);x([...n.slice(0,2),...n.slice(2)])})(null==(d=null==(l=null==(a=null==e?void 0:e.data)?void 0:a.data)?void 0:l[0])?void 0:d.SuperAdminUserAccessDetails);let t=null==(f=null==(A=null==(u=null==e?void 0:e.data)?void 0:u.data)?void 0:A[0])?void 0:f.SuperAdminUserAccessDetails;C(null==t?void 0:t.find((e=>"Templates"===e.ConfigName&&"Y"===(null==e?void 0:e.ReadAccess))))}}},O=[I.length>0&&qv("My Apps",`${Dy}landing-page/home`,Ye.jsx($v,{className:"iconsize"}))];return"Super Admin"===s?O.push(qv("Master",`${Dy}setting`,Ye.jsx(Ln,{}),[Wv("Config Type",`${Dy}setting/config-type`),Wv("Config Master",`${Dy}setting/config-master`),Wv("App Setup",`${Dy}setting/application-preference-mapping`),Wv("Tax",`${Dy}setting/admin-tax`),Wv("Currency",`${Dy}setting/currency`),Wv("Application Info",`${Dy}setting/submenu`,null,[Wv("Application",`${Dy}setting/application-master`),Wv("Pricing Type",`${Dy}setting/pricing`),Wv("Feature",`${Dy}setting/feature-master`),Wv("Feature Mapping",`${Dy}setting/feature-mapping`),Wv("Feature Pricing",`${Dy}setting/featurepricing`),Wv("Application Image",`${Dy}setting/application-image`),Wv("Application Menu",`${Dy}setting/app-menu`)]),Wv("Company",`${Dy}setting/company-master`),Wv("Branch",`${Dy}setting/branch-master`),Wv("Warehouse",`${Dy}setting/warehouse-master`),Wv("Carousel",`${Dy}setting/carousel`),Wv("Message Template",`${Dy}setting/message-template`),Wv("Kisok Device",`${Dy}setting/Kisok`,null,[Wv("Device Information",`${Dy}setting/device-information`),Wv("Device Allocation",`${Dy}setting/device-allocation`)]),Wv("Payment Gateway",`${Dy}setting/payment`,null,[Wv("Payment Gateway Config",`${Dy}setting/payment-gateway-config`),Wv("Payment Data",`${Dy}setting/payment-data`),Wv("Payment Method",`${Dy}setting/payment-method`),Wv("Payment Details",`${Dy}setting/payment-Details`)]),Wv("Payment Device","",null,[Wv("Payment Device Config",`${Dy}setting/payment-device-config`)]),Wv("Testimonials",`${Dy}setting/testimonials`),Wv("App Version",`${Dy}setting/app-version`,null,[Wv("Updated Version",`${Dy}setting/updated-version`),Wv("Version Management",`${Dy}setting/version-management`)]),Wv("Referral Setting",`${Dy}setting/referral-setting`),Wv("Employee Referrer",`${Dy}setting/reffered-employee`),Wv("Purchase Info",`${Dy}setting/purchaseinfo`),Wv("Site Visit Records ",`${Dy}setting/SiteVisitRecords`),Wv("User App Info",`${Dy}setting/abstract`),Wv("Activation Key Generation",`${Dy}setting/activationkey-generation`),Wv("SMS-Assigned-Details",`${Dy}setting/sms-assigned-detail`),Wv("Gateway Master Configuration",`${Dy}setting/gateway-master-configuration/list`)]),qv("User ",`${Dy}setting/user`,Ye.jsx(kn,{}),[Wv("Add User",`${Dy}setting/user-master`),Wv("User Access",`${Dy}setting/app-access`),Wv("Common Menu Access",`${Dy}setting/super-admin-user-menu-access`),Wv("Application Menu Access",`${Dy}setting/app-menu-access`),Wv("Signin Details",`${Dy}setting/signin-details`),Wv("User OTP",`${Dy}setting/user-otp`)]),qv("My Profile",`${Dy}landing-page/user-account`,Ye.jsx(Ig,{})),qv("Tickets",`${Dy}setting/tickets-details`,Ye.jsx(iy,{})),qv("Payment",`${Dy}`,Ye.jsx(Un,{}),[Wv("Payment History",`${Dy}setting/payment/payment-history`),Wv("Failed Payment History",`${Dy}setting/payment/failed-payment-history`)]),qv("Themes / Templates",`${Dy}setting/themes`,Ye.jsx(In,{})),qv("Admin Panel",`${Dy}adminpanel`,Ye.jsx(In,{}))):"Super Admin User"===s?O.push((null==l?void 0:l.length)>0&&qv("Master",`${Dy}setting`,Ye.jsx(Ln,{}),l),(null==b?void 0:b.length)>0&&qv("User ",`${Dy}setting/user`,Ye.jsx(kn,{}),b),qv("My Profile",`${Dy}landing-page/user-account`,Ye.jsx(Ig,{})),qv("Tickets",`${Dy}setting/tickets-details`,Ye.jsx(iy,{})),(null==d?void 0:d.length)>0&&qv("Payment",`${Dy}`,Ye.jsx(Un,{}),d),j&&qv("Themes / Templates",`${Dy}setting/themes`,Ye.jsx(In,{}))):"Admin"===s||"Admin User"===s?O.push(I.length>0?qv("Master",`${Dy}setting`,Ye.jsx(Ln,{}),[Wv("Company",`${Dy}setting/company-master`),Wv("Branch",`${Dy}setting/branch-master`),S&&Wv("Warehouse",`${Dy}setting/warehouse-master`),I.length>0?qv("User ",`${Dy}setting/user`,"",[Wv("Add User",`${Dy}setting/user-master`),Wv("User Access",`${Dy}setting/app-access`)]):""]):"",qv("Buy ",`${Dy}setting/Buy`,Ye.jsx(Xg,{}),[Wv("More Apps",`${Dy}landing-page/apps`),Wv("Addon Features",`${Dy}setting/feat-addon`)]),I.length>0?qv("Payment History",`${Dy}setting/payment/payment-history`,Ye.jsx(Un,{})):"",qv("My Profile",`${Dy}landing-page/user-account`,Ye.jsx(Ig,{}),null)):"Employee"===s?O.push(qv("Master",`${Dy}setting`,Ye.jsx(Pn,{}),["Free"!==(null==(e=null==n?void 0:n[0])?void 0:e.PricingName)&&Wv("Feature Addon",`${Dy}setting/feat-addon`)]),qv("My Profile",`${Dy}landing-page/user-account`,Ye.jsx(Ig,{}))):"Marketing"===s&&(null==O||O.splice(0,1),null==O||O.push(qv("Admin Panel",`${Dy}adminpanel`,Ye.jsx(In,{})))),Ye.jsxs("div",{className:"appPage",children:[Ye.jsx("div",{className:"sideNaveParent",children:Ye.jsx(Yv,{items:O,mode:"vertical",theme:"light"})}),Ye.jsx("div",{className:"centerPage",children:Ye.jsx(Kv,{})})]})},Uy=e=>{const[t,n]=a.useState(!1),{children:i,label:r,value:s,isOnChange:l}=e,o=t||s&&0!==s.length||l?"label label-float":"label";return Ye.jsxs("div",{className:"float-label",onBlur:()=>n(!1),onFocus:()=>n(!0),children:[i,Ye.jsx("label",{className:o,children:r})]})},_y=({options:e,onChangeFunction:t,isOnchanges:n,className:i,defaultValue:r,searchKeys:s=["label"],disabled:l,...o})=>{const[d,c]=a.useState(""),[u,p]=a.useState(n),{field:A,onChange:h,label:f,onBlur:g,forwardedRef:y,required:x,valueData:b,labelChange:w,...j}=o;return Ye.jsx(Uy,{label:f,value:d,isOnChange:null!=b||u,children:Ye.jsx(m,{showSearch:!0,style:{width:250},defaultValue:r||null,optionFilterProp:"children",filterOption:w?null:(e,t)=>s.some((n=>((null==t?void 0:t[n])??"").toString().toLowerCase().includes(e.toLowerCase()))),filterSort:w?null:(e,t)=>{var n,i;return null==(i=null==(n=(null==e?void 0:e.label)??"")?void 0:n.toLowerCase())?void 0:i.localeCompare(((null==t?void 0:t.label)??"").toLowerCase())},value:b,onChange:e=>t(e),onSelect:e=>(async()=>{await p(!0)})(),options:e,className:v(` ${i}`),disabled:!!l})})},Oy=({fieldState:e,fieldApi:t,...n})=>{const{value:i}=e,[r,s]=a.useState(""),{field:l,onChange:o,isOnChange:d,onBlur:c,label:u,forwardedRef:p,required:A,...h}=n;return Ye.jsx("div",{className:"example",children:Ye.jsx(Uy,{label:u,value:r,isOnChange:d,children:Ye.jsx(g,{...h,spellCheck:!1,id:l,ref:p,defaultValue:null==i?void 0:i.toString(),required:A,onChange:e=>{var t;s(null==(t=null==e?void 0:e.target)?void 0:t.value),o&&o(e)},onBlur:e=>{c&&c(e)}})})})},My=({fieldState:e,fieldApi:t,...n})=>{const{value:i}=e,[r,s]=a.useState(""),{TextArea:l}=g,{field:o,onChange:d,isOnChange:c,onBlur:u,label:p,forwardedRef:A,required:h,width:f=!1,...m}=n;return Ye.jsx("div",{className:f?"":"example",style:{width:f?"100%":"auto"},children:Ye.jsx(Uy,{label:p,value:r,isOnChange:c,children:Ye.jsx(l,{...m,id:o,ref:A,defaultValue:null==i?void 0:i.toString(),required:h,onChange:e=>{var t;s(null==(t=null==e?void 0:e.target)?void 0:t.value),d&&d(e)},onBlur:e=>{u&&u(e)}})})})},Ry=({buttonText:e,color:t,handleSubmit:n,icon:i,disabled:a})=>Ye.jsxs(y,{type:"primary",htmlType:"submit",className:"primary_Button",onClick:n,color:t,disabled:a||!1,children:[e,i]}),Qy=({messageType:e,messageData:t,duration:n,onComplete:i})=>{const[r,s]=x.useMessage();return a.useEffect((()=>{e&&r.open({type:e,content:t,duration:n||2}).then((()=>{i&&i()}))}),[e]),Ye.jsx(Ye.Fragment,{children:s})},Hy=({style:e,defaultChecked:t,functionName:n,...i})=>Ye.jsx(b,{defaultChecked:t,onChange:n}),Vy="https://www.pozo.dev/pozo-common-image-api",zy=Ja("upload/uploadImage",(async e=>{let t=new FormData;return t.append("file",e),await fA.post(`${Vy}/upload`,t)})),qy=Ja("upload/ApkUpload",(async e=>{let t=new FormData;return t.append("file",e),await fA.post(`${Vy}/upload/ApkUpload`,t)})),Wy=["image/jpeg","image/png","image/webp","image/svg+xml","image/gif","image/avif"],Yy=({singleImage:e,updateImageUrl:t,ImageLink:n})=>{const i=um(),[r,s]=a.useState(!1),[l,o]=a.useState(""),[d,c]=a.useState(""),[u,p]=a.useState([]);a.useEffect((()=>{p(""!=n&&null!=n?[{url:n}]:[])}),[n]);const A=Ye.jsxs("div",{children:[Ye.jsx(C,{}),Ye.jsx("div",{style:{marginTop:8},children:"Upload"})]});return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(w,{action:"https://run.mocky.io/v3/435e224c-44fb-4773-9faf-380c5e6a2188",listType:"picture-circle",fileList:u,onPreview:async e=>{e.url||e.preview||(e.preview=await(e=>new Promise(((t,n)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>t(i.result),i.onerror=e=>n(e)})))(e.originFileObj)),o(e.url||e.preview),s(!0),c(e.name||e.url.substring(e.url.lastIndexOf("/")+1))},onChange:async({fileList:e})=>{var n,a,r;if(e.length>0){let s=await i(zy(e[0].originFileObj)).unwrap();(null==(n=null==s?void 0:s.data)?void 0:n.status)&&(t(null==(a=null==s?void 0:s.data)?void 0:a.image),p([{url:null==(r=null==s?void 0:s.data)?void 0:r.image}]))}else t(""),p(e)},beforeUpload:e=>{const t=Wy.includes(e.type);return t||j.error({title:"Invalid File Type",content:"Only JPG, JPEG, PNG, WEBP, SVG, GIF, and AVIF files are allowed."}),t||w.LIST_IGNORE},children:e&&0==u.length||!e&&u.length<=8?A:null}),Ye.jsx(j,{open:r,title:"",footer:null,onCancel:()=>s(!1),children:Ye.jsx("img",{alt:"example",style:{width:"100%"},src:l})})]})};var Ky,Gy,$y={},Xy={},Jy={},Zy={exports:{}};function ex(){return Ky||(Ky=1,e=Zy,t="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.exports="object"===("undefined"==typeof self?"undefined":t(self))&&self.self===self&&self||"object"===(void 0===d?"undefined":t(d))&&d.global===d&&d||void 0),Zy.exports;var e,t}function tx(){return Gy||(Gy=1,function(e,t){Object.defineProperty(e,"__esModule",{value:!0});var n=0,i=void 0!==t&&t._scriptMap||new Map,a=e.ScriptCache=function(e){return e._scriptMap=e._scriptMap||i,function(a){var r={_onLoad:function(e){return function(t){var n=!0;function a(){n=!1}var r=i.get(e);return r&&r.promise.then((function(){return n&&(r.error?t(r.error):t(null,r)),r})).catch((function(e){return t(e)})),a}},_scriptTag:function(a,r){if(!i.has(a)){if("undefined"==typeof document)return null;var s=document.createElement("script"),l={loaded:!1,error:!1,promise:new Promise((function(l,o){var d=document.getElementsByTagName("body")[0];s.type="text/javascript",s.async=!1;var c="loaderCB"+n+++Date.now(),u=function(e){return function(t){var n=i.get(a);"loaded"===e?(n.resolved=!0,l(r)):"error"===e&&(n.errored=!0,o(t)),n.loaded=!0,p()}},p=function(){e[c]&&"function"==typeof e[c]&&(e[c]=null,delete e[c])};return s.onload=u("loaded"),s.onerror=u("error"),s.onreadystatechange=function(){u(s.readyState)},r.match(/callback=CALLBACK_NAME/)?(r=r.replace(/(callback=)[^\&]+/,"$1"+c),t[c]=s.onload):s.addEventListener("load",s.onload),s.addEventListener("error",s.onerror),s.src=r,d.appendChild(s),s})),tag:s};i.set(a,l)}return i.get(a).tag}};return Object.keys(a).forEach((function(e){var n=a[e],i=t._scriptMap.has(e)?t._scriptMap.get(e).tag:r._scriptTag(e,n);r[e]={tag:i,onLoad:r._onLoad(e)}})),r}}(t);e.default=a}(Jy,ex())),Jy}var nx,ix,ax={};function rx(){return nx||(nx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=e.GoogleApi=function(e){if(!(e=e||{}).hasOwnProperty("apiKey"))throw new Error("You must pass an apiKey to use GoogleApi");var t,n,i=e.apiKey,a=e.libraries||["places"],r=e.client,s=e.url||"https://maps.googleapis.com/maps/api/js",l=e.version||"3.31",o=null,d=e.language,c=e.region||null;return t=s,n={key:i,callback:"CALLBACK_NAME",libraries:a.join(","),client:r,v:l,channel:o,language:d,region:c,onerror:"ERROR_FUNCTION"},t+"?"+Object.keys(n).filter((function(e){return!!n[e]})).map((function(e){return e+"="+n[e]})).join("&")};e.default=t}(ax)),ax}function sx(){return ix||(ix=1,function(e,t,n,i,a){Object.defineProperty(e,"__esModule",{value:!0}),e.wrapper=void 0;var r=l(t);l(n);var s=l(a);function l(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){return JSON.stringify(e)},A=function(e,t){return e===t||p(e)===p(t)},h=function(e){var t=(e=e||{}).apiKey,n=e.libraries||["places"],a=e.version||"3",r=e.language||"en",l=e.url,o=e.client,d=e.region;return(0,i.ScriptCache)({google:(0,s.default)({apiKey:t,language:r,libraries:n,version:a,url:l,client:o,region:d})})},f=function(e){return r.default.createElement("div",null,"Loading...")},m=e.wrapper=function(e){return function(t){return function(n){function i(t,n){o(this,i);var a=c(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,t,n)),s="function"==typeof e?e(t):e;return a.initialize(s),a.state={loaded:!1,map:null,google:null,options:s},a.mapRef=r.default.createRef(),a}return u(i,n),d(i,[{key:"UNSAFE_componentWillReceiveProps",value:function(t){if("function"==typeof e){var n=this.state.options,i="function"==typeof e?e(t):e;A(i,n)||(this.initialize(i),this.setState({options:i,loaded:!1,google:null}))}}},{key:"componentWillUnmount",value:function(){this.unregisterLoadHandler&&this.unregisterLoadHandler()}},{key:"initialize",value:function(e){this.unregisterLoadHandler&&(this.unregisterLoadHandler(),this.unregisterLoadHandler=null);var t=e.createCache||h;this.scriptCache=t(e),this.unregisterLoadHandler=this.scriptCache.google.onLoad(this.onLoad.bind(this)),this.LoadingContainer=e.LoadingContainer||f}},{key:"onLoad",value:function(e,t){this._gapi=window.google,this.setState({loaded:!0,google:this._gapi})}},{key:"render",value:function(){var e=this.LoadingContainer;if(!this.state.loaded)return r.default.createElement(e,null);var n=Object.assign({},this.props,{loaded:this.state.loaded,google:window.google});return r.default.createElement("div",null,r.default.createElement(t,n),r.default.createElement("div",{ref:this.mapRef}))}}]),i}(r.default.Component)}};e.default=m}(Xy,a,r,tx(),rx())),Xy}var lx,ox,dx,cx,ux,px={},Ax={exports:{}};function hx(){if(cx)return dx;cx=1;var e=ox?lx:(ox=1,lx="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,dx=function(){function i(t,n,i,a,r,s){if(s!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function a(){return i}i.isRequired=i;var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r}}function fx(){return ux||(ux=1,Ax.exports=hx()()),Ax.exports}var mx,vx,gx={};function yx(){return mx||(mx=1,e=gx,Object.defineProperty(e,"__esModule",{value:!0}),e.camelize=function(e){return e.split("_").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}),gx;var e}function xx(){return vx||(vx=1,function(e,t,n,i){Object.defineProperty(e,"__esModule",{value:!0}),e.Marker=void 0;var a=s(t),r=s(n);function s(e){return e&&e.__esModule?e:{default:e}}var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function o(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var A=["click","dblclick","dragend","mousedown","mouseout","mouseover","mouseup","recenter"],h=function(){var e={},t=new Promise((function(t,n){e.resolve=t,e.reject=n}));return e.then=t.then.bind(t),e.catch=t.catch.bind(t),e.promise=t,e},f=e.Marker=function(e){function t(){return d(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),c(t,[{key:"componentDidMount",value:function(){this.markerPromise=h(),this.renderMarker()}},{key:"componentDidUpdate",value:function(e){this.props.map===e.map&&this.props.position===e.position&&this.props.icon===e.icon||(this.marker&&this.marker.setMap(null),this.renderMarker())}},{key:"componentWillUnmount",value:function(){this.marker&&this.marker.setMap(null)}},{key:"renderMarker",value:function(){var e=this,t=this.props,n=t.map,i=t.google,a=t.position,r=t.mapCenter,s=t.icon,d=t.label,c=t.draggable,u=t.title,p=o(t,["map","google","position","mapCenter","icon","label","draggable","title"]);if(!i)return null;var h=a||r;h instanceof i.maps.LatLng||(h=new i.maps.LatLng(h.lat,h.lng));var f=l({map:n,position:h,icon:s,label:d,title:u,draggable:c},p);this.marker=new i.maps.Marker(f),A.forEach((function(t){e.marker.addListener(t,e.handleEvent(t))})),this.markerPromise.resolve(this.marker)}},{key:"getMarker",value:function(){return this.markerPromise}},{key:"handleEvent",value:function(e){var t=this;return function(n){var a="on"+(0,i.camelize)(e);t.props[a]&&t.props[a](t.props,t.marker,n)}}},{key:"render",value:function(){return null}}]),t}(a.default.Component);f.propTypes={position:r.default.object,map:r.default.object},A.forEach((function(e){return f.propTypes[e]=r.default.func})),f.defaultProps={name:"Marker"},e.default=f}(px,a,fx(),yx())),px}var bx,wx={},jx={},Cx={};function Sx(){if(bx)return Cx;bx=1;var e=a;function t(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,i=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,r={},s={};function l(e){return!!n.call(s,e)||!n.call(r,e)&&(i.test(e)?s[e]=!0:(r[e]=!0,!1))}function o(e,t,n,i,a,r,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=s}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){d[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];d[t]=new o(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){d[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){d[e]=new o(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){d[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){d[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){d[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){d[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){d[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var c=/[\-:]([a-z])/g;function u(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(c,u);d[t]=new o(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(c,u);d[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(c,u);d[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){d[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)})),d.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){d[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var p={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},A=["Webkit","ms","Moz","O"];Object.keys(p).forEach((function(e){A.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),p[t]=p[e]}))}));var h=/["'&<>]/;function f(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=h.exec(e);if(t){var n,i="",a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==n&&(i+=e.substring(a,n)),a=n+1,i+=t}e=a!==n?i+e.substring(a,n):i}return e}var m=/([A-Z])/g,v=/^ms-/,g=Array.isArray;function y(e,t){return{insertionMode:e,selectedValue:t}}var x=new Map;function b(e,i,a){if("object"!=typeof a)throw Error(t(62));for(var r in i=!0,a)if(n.call(a,r)){var s=a[r];if(null!=s&&"boolean"!=typeof s&&""!==s){if(0===r.indexOf("--")){var l=f(r);s=f((""+s).trim())}else{l=r;var o=x.get(l);void 0!==o||(o=f(l.replace(m,"-$1").toLowerCase().replace(v,"-ms-")),x.set(l,o)),l=o,s="number"==typeof s?0===s||n.call(p,r)?""+s:s+"px":f((""+s).trim())}i?(i=!1,e.push(' style="',l,":",s)):e.push(";",l,":",s)}}i||e.push('"')}function w(e,t,n,i){switch(n){case"style":return void b(e,t,i);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=d.hasOwnProperty(n)?d[n]:null)){switch(typeof i){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:i&&e.push(" ",n,'=""');break;case 4:!0===i?e.push(" ",n,'=""'):!1!==i&&e.push(" ",n,'="',f(i),'"');break;case 5:isNaN(i)||e.push(" ",n,'="',f(i),'"');break;case 6:!isNaN(i)&&1<=i&&e.push(" ",n,'="',f(i),'"');break;default:t.sanitizeURL&&(i=""+i),e.push(" ",n,'="',f(i),'"')}}else if(l(n)){switch(typeof i){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',f(i),'"')}}function j(e,n,i){if(null!=n){if(null!=i)throw Error(t(60));if("object"!=typeof n||!("__html"in n))throw Error(t(61));null!=(n=n.__html)&&e.push(""+n)}}function C(e,t,i,a){e.push(I(i));var r,s=i=null;for(r in t)if(n.call(t,r)){var l=t[r];if(null!=l)switch(r){case"children":i=l;break;case"dangerouslySetInnerHTML":s=l;break;default:w(e,a,r,l)}}return e.push(">"),j(e,s,i),"string"==typeof i?(e.push(f(i)),null):i}var S=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,N=new Map;function I(e){var n=N.get(e);if(void 0===n){if(!S.test(e))throw Error(t(65,e));n="<"+e,N.set(e,n)}return n}function F(i,a,r,s,o){switch(a){case"select":i.push(I("select"));var d=null,c=null;for(h in r)if(n.call(r,h)){var u=r[h];if(null!=u)switch(h){case"children":d=u;break;case"dangerouslySetInnerHTML":c=u;break;case"defaultValue":case"value":break;default:w(i,s,h,u)}}return i.push(">"),j(i,c,d),d;case"option":c=o.selectedValue,i.push(I("option"));var p=u=null,A=null,h=null;for(d in r)if(n.call(r,d)){var m=r[d];if(null!=m)switch(d){case"children":u=m;break;case"selected":A=m;break;case"dangerouslySetInnerHTML":h=m;break;case"value":p=m;default:w(i,s,d,m)}}if(null!=c)if(r=null!==p?""+p:function(t){var n="";return e.Children.forEach(t,(function(e){null!=e&&(n+=e)})),n}(u),g(c)){for(s=0;s<c.length;s++)if(""+c[s]===r){i.push(' selected=""');break}}else""+c===r&&i.push(' selected=""');else A&&i.push(' selected=""');return i.push(">"),j(i,h,u),u;case"textarea":for(u in i.push(I("textarea")),h=c=d=null,r)if(n.call(r,u)&&null!=(p=r[u]))switch(u){case"children":h=p;break;case"value":d=p;break;case"defaultValue":c=p;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:w(i,s,u,p)}if(null===d&&null!==c&&(d=c),i.push(">"),null!=h){if(null!=d)throw Error(t(92));if(g(h)&&1<h.length)throw Error(t(93));d=""+h}return"string"==typeof d&&"\n"===d[0]&&i.push("\n"),null!==d&&i.push(f(""+d)),null;case"input":for(c in i.push(I("input")),p=h=u=d=null,r)if(n.call(r,c)&&null!=(A=r[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":p=A;break;case"defaultValue":u=A;break;case"checked":h=A;break;case"value":d=A;break;default:w(i,s,c,A)}return null!==h?w(i,s,"checked",h):null!==p&&w(i,s,"checked",p),null!==d?w(i,s,"value",d):null!==u&&w(i,s,"value",u),i.push("/>"),null;case"menuitem":for(var v in i.push(I("menuitem")),r)if(n.call(r,v)&&null!=(d=r[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:w(i,s,v,d)}return i.push(">"),null;case"title":for(m in i.push(I("title")),d=null,r)if(n.call(r,m)&&null!=(c=r[m]))switch(m){case"children":d=c;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:w(i,s,m,c)}return i.push(">"),d;case"listing":case"pre":for(p in i.push(I(a)),c=d=null,r)if(n.call(r,p)&&null!=(u=r[p]))switch(p){case"children":d=u;break;case"dangerouslySetInnerHTML":c=u;break;default:w(i,s,p,u)}if(i.push(">"),null!=c){if(null!=d)throw Error(t(60));if("object"!=typeof c||!("__html"in c))throw Error(t(61));null!=(r=c.__html)&&("string"==typeof r&&0<r.length&&"\n"===r[0]?i.push("\n",r):i.push(""+r))}return"string"==typeof d&&"\n"===d[0]&&i.push("\n"),d;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in i.push(I(a)),r)if(n.call(r,y)&&null!=(d=r[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,a));default:w(i,s,y,d)}return i.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return C(i,r,a,s);case"html":return 0===o.insertionMode&&i.push("<!DOCTYPE html>"),C(i,r,a,s);default:if(-1===a.indexOf("-")&&"string"!=typeof r.is)return C(i,r,a,s);for(A in i.push(I(a)),c=d=null,r)if(n.call(r,A)&&null!=(u=r[A]))switch(A){case"children":d=u;break;case"dangerouslySetInnerHTML":c=u;break;case"style":b(i,s,u);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:l(A)&&"function"!=typeof u&&"symbol"!=typeof u&&i.push(" ",A,'="',f(u),'"')}return i.push(">"),j(i,c,d),d}}function B(e,n,i){if(e.push('\x3c!--$?--\x3e<template id="'),null===i)throw Error(t(395));return e.push(i),e.push('"></template>')}var P=/[<\u2028\u2029]/g;function k(e){return JSON.stringify(e).replace(P,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function T(e,t,n,i){return n.generateStaticMarkup?(e.push(f(t)),!1):(""===t?e=i:(i&&e.push("\x3c!-- --\x3e"),e.push(f(t)),e=!0),e)}var E=Object.assign,D=Symbol.for("react.element"),L=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),R=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),W=Symbol.for("react.scope"),Y=Symbol.for("react.debug_trace_mode"),K=Symbol.for("react.legacy_hidden"),G=Symbol.for("react.default_value"),$=Symbol.iterator;function X(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case U:return"Fragment";case L:return"Portal";case O:return"Profiler";case _:return"StrictMode";case H:return"Suspense";case V:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case R:return(e.displayName||"Context")+".Consumer";case M:return(e._context.displayName||"Context")+".Provider";case Q:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case z:return null!==(t=e.displayName||null)?t:X(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return X(e(t))}catch(ese){}}return null}var J={};function Z(e,t){if(!(e=e.contextTypes))return J;var n,i={};for(n in e)i[n]=t[n];return i}var ee=null;function te(e,n){if(e!==n){e.context._currentValue2=e.parentValue,e=e.parent;var i=n.parent;if(null===e){if(null!==i)throw Error(t(401))}else{if(null===i)throw Error(t(401));te(e,i)}n.context._currentValue2=n.value}}function ne(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&ne(e)}function ie(e){var t=e.parent;null!==t&&ie(t),e.context._currentValue2=e.value}function ae(e,n){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(t(402));e.depth===n.depth?te(e,n):ae(e,n)}function re(e,n){var i=n.parent;if(null===i)throw Error(t(402));e.depth===i.depth?te(e,i):re(e,i),n.context._currentValue2=n.value}function se(e){var t=ee;t!==e&&(null===t?ie(e):null===e?ne(t):t.depth===e.depth?te(t,e):t.depth>e.depth?ae(t,e):re(t,e),ee=e)}var le={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function oe(e,t,n,i){var a=void 0!==e.state?e.state:null;e.updater=le,e.props=n,e.state=a;var r={queue:[],replace:!1};e._reactInternals=r;var s=t.contextType;if(e.context="object"==typeof s&&null!==s?s._currentValue2:i,"function"==typeof(s=t.getDerivedStateFromProps)&&(a=null==(s=s(n,a))?a:E({},a,s),e.state=a),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&le.enqueueReplaceState(e,e.state,null),null!==r.queue&&0<r.queue.length)if(t=r.queue,s=r.replace,r.queue=null,r.replace=!1,s&&1===t.length)e.state=t[0];else{for(r=s?t[0]:e.state,a=!0,s=s?1:0;s<t.length;s++){var l=t[s];null!=(l="function"==typeof l?l.call(e,r,n,i):l)&&(a?(a=!1,r=E({},r,l)):E(r,l))}e.state=r}else r.queue=null}var de={id:1,overflow:""};function ce(e,t,n){var i=e.id;e=e.overflow;var a=32-ue(i)-1;i&=~(1<<a),n+=1;var r=32-ue(t)+a;if(30<r){var s=a-a%5;return r=(i&(1<<s)-1).toString(32),i>>=s,a-=s,{id:1<<32-ue(t)+a|n<<a|i,overflow:r+e}}return{id:1<<r|n<<a|i,overflow:e}}var ue=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(pe(e)/Ae|0)|0},pe=Math.log,Ae=Math.LN2;var he="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},fe=null,me=null,ve=null,ge=null,ye=!1,xe=!1,be=0,we=null,je=0;function Ce(){if(null===fe)throw Error(t(321));return fe}function Se(){if(0<je)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Ne(){return null===ge?null===ve?(ye=!1,ve=ge=Se()):(ye=!0,ge=ve):null===ge.next?(ye=!1,ge=ge.next=Se()):(ye=!0,ge=ge.next),ge}function Ie(){me=fe=null,xe=!1,ve=null,je=0,ge=we=null}function Fe(e,t){return"function"==typeof t?t(e):t}function Be(e,t,n){if(fe=Ce(),ge=Ne(),ye){var i=ge.queue;if(t=i.dispatch,null!==we&&void 0!==(n=we.get(i))){we.delete(i),i=ge.memoizedState;do{i=e(i,n.action),n=n.next}while(null!==n);return ge.memoizedState=i,[i,t]}return[ge.memoizedState,t]}return e=e===Fe?"function"==typeof t?t():t:void 0!==n?n(t):t,ge.memoizedState=e,e=(e=ge.queue={last:null,dispatch:null}).dispatch=ke.bind(null,fe,e),[ge.memoizedState,e]}function Pe(e,t){if(fe=Ce(),t=void 0===t?null:t,null!==(ge=Ne())){var n=ge.memoizedState;if(null!==n&&null!==t){var i=n[1];e:if(null===i)i=!1;else{for(var a=0;a<i.length&&a<t.length;a++)if(!he(t[a],i[a])){i=!1;break e}i=!0}if(i)return n[0]}}return e=e(),ge.memoizedState=[e,t],e}function ke(e,n,i){if(25<=je)throw Error(t(301));if(e===fe)if(xe=!0,e={action:i,next:null},null===we&&(we=new Map),void 0===(i=we.get(n)))we.set(n,e);else{for(n=i;null!==n.next;)n=n.next;n.next=e}}function Te(){throw Error(t(394))}function Ee(){}var De={readContext:function(e){return e._currentValue2},useContext:function(e){return Ce(),e._currentValue2},useMemo:Pe,useReducer:Be,useRef:function(e){fe=Ce();var t=(ge=Ne()).memoizedState;return null===t?(e={current:e},ge.memoizedState=e):t},useState:function(e){return Be(Fe,e)},useInsertionEffect:Ee,useLayoutEffect:function(){},useCallback:function(e,t){return Pe((function(){return e}),t)},useImperativeHandle:Ee,useEffect:Ee,useDebugValue:Ee,useDeferredValue:function(e){return Ce(),e},useTransition:function(){return Ce(),[!1,Te]},useId:function(){var e=me.treeContext,n=e.overflow;e=((e=e.id)&~(1<<32-ue(e)-1)).toString(32)+n;var i=Le;if(null===i)throw Error(t(404));return n=be++,e=":"+i.idPrefix+"R"+e,0<n&&(e+="H"+n.toString(32)),e+":"},useMutableSource:function(e,t){return Ce(),t(e._source)},useSyncExternalStore:function(e,n,i){if(void 0===i)throw Error(t(407));return i()}},Le=null,Ue=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function _e(e){return null}function Oe(){}function Me(e,t,n,i,a,r,s,l){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var o={node:t,ping:function(){var t=e.pingedTasks;t.push(o),1===t.length&&et(e)},blockedBoundary:n,blockedSegment:i,abortSet:a,legacyContext:r,context:s,treeContext:l};return a.add(o),o}function Re(e,t,n,i,a,r){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:i,boundary:n,lastPushedText:a,textEmbedded:r}}function Qe(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function He(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Ve(e,t,n,i,a){for(fe={},me=t,be=0,e=n(i,a);xe;)xe=!1,be=0,je+=1,ge=null,e=n(i,a);return Ie(),e}function ze(e,n,i,a){var r=i.render(),s=a.childContextTypes;if(null!=s){var l=n.legacyContext;if("function"!=typeof i.getChildContext)a=l;else{for(var o in i=i.getChildContext())if(!(o in s))throw Error(t(108,X(a)||"Unknown",o));a=E({},l,i)}n.legacyContext=a,Ye(e,n,r),n.legacyContext=l}else Ye(e,n,r)}function qe(e,t){if(e&&e.defaultProps){for(var n in t=E({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function We(e,n,i,a,r){if("function"==typeof i)if(i.prototype&&i.prototype.isReactComponent){r=Z(i,n.legacyContext);var s=i.contextType;oe(s=new i(a,"object"==typeof s&&null!==s?s._currentValue2:r),i,a,r),ze(e,n,s,i)}else{r=Ve(e,n,i,a,s=Z(i,n.legacyContext));var l=0!==be;if("object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof)oe(r,i,a,s),ze(e,n,r,i);else if(l){a=n.treeContext,n.treeContext=ce(a,1,0);try{Ye(e,n,r)}finally{n.treeContext=a}}else Ye(e,n,r)}else{if("string"!=typeof i){switch(i){case K:case Y:case _:case O:case U:case V:return void Ye(e,n,a.children);case W:throw Error(t(343));case H:e:{i=n.blockedBoundary,r=n.blockedSegment,s=a.fallback,a=a.children;var o={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l=new Set,errorDigest:null},d=Re(0,r.chunks.length,o,r.formatContext,!1,!1);r.children.push(d),r.lastPushedText=!1;var c=Re(0,0,null,r.formatContext,!1,!1);c.parentFlushed=!0,n.blockedBoundary=o,n.blockedSegment=c;try{if(Ge(e,n,a),e.responseState.generateStaticMarkup||c.lastPushedText&&c.textEmbedded&&c.chunks.push("\x3c!-- --\x3e"),c.status=1,Je(o,c),0===o.pendingTasks)break e}catch(Zre){c.status=4,o.forceClientRender=!0,o.errorDigest=Qe(e,Zre)}finally{n.blockedBoundary=i,n.blockedSegment=r}n=Me(e,s,i,d,l,n.legacyContext,n.context,n.treeContext),e.pingedTasks.push(n)}return}if("object"==typeof i&&null!==i)switch(i.$$typeof){case Q:if(a=Ve(e,n,i.render,a,r),0!==be){i=n.treeContext,n.treeContext=ce(i,1,0);try{Ye(e,n,a)}finally{n.treeContext=i}}else Ye(e,n,a);return;case z:return void We(e,n,i=i.type,a=qe(i,a),r);case M:if(r=a.children,i=i._context,a=a.value,s=i._currentValue2,i._currentValue2=a,ee=a={parent:l=ee,depth:null===l?0:l.depth+1,context:i,parentValue:s,value:a},n.context=a,Ye(e,n,r),null===(e=ee))throw Error(t(403));return a=e.parentValue,e.context._currentValue2=a===G?e.context._defaultValue:a,e=ee=e.parent,void(n.context=e);case R:return void Ye(e,n,a=(a=a.children)(i._currentValue2));case q:return void We(e,n,i=(r=i._init)(i._payload),a=qe(i,a),void 0)}throw Error(t(130,null==i?i:typeof i,""))}switch(s=F((r=n.blockedSegment).chunks,i,a,e.responseState,r.formatContext),r.lastPushedText=!1,l=r.formatContext,r.formatContext=function(e,t,n){switch(t){case"select":return y(1,null!=n.value?n.value:n.defaultValue);case"svg":return y(2,null);case"math":return y(3,null);case"foreignObject":return y(1,null);case"table":return y(4,null);case"thead":case"tbody":case"tfoot":return y(5,null);case"colgroup":return y(7,null);case"tr":return y(6,null)}return 4<=e.insertionMode||0===e.insertionMode?y(1,null):e}(l,i,a),Ge(e,n,s),r.formatContext=l,i){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:r.chunks.push("</",i,">")}r.lastPushedText=!1}}function Ye(e,n,i){if(n.node=i,"object"==typeof i&&null!==i){switch(i.$$typeof){case D:return void We(e,n,i.type,i.props,i.ref);case L:throw Error(t(257));case q:var a=i._init;return void Ye(e,n,i=a(i._payload))}if(g(i))return void Ke(e,n,i);if(null===i||"object"!=typeof i?a=null:a="function"==typeof(a=$&&i[$]||i["@@iterator"])?a:null,a&&(a=a.call(i))){if(!(i=a.next()).done){var r=[];do{r.push(i.value),i=a.next()}while(!i.done);Ke(e,n,r)}return}throw e=Object.prototype.toString.call(i),Error(t(31,"[object Object]"===e?"object with keys {"+Object.keys(i).join(", ")+"}":e))}"string"==typeof i?(a=n.blockedSegment).lastPushedText=T(n.blockedSegment.chunks,i,e.responseState,a.lastPushedText):"number"==typeof i&&((a=n.blockedSegment).lastPushedText=T(n.blockedSegment.chunks,""+i,e.responseState,a.lastPushedText))}function Ke(e,t,n){for(var i=n.length,a=0;a<i;a++){var r=t.treeContext;t.treeContext=ce(r,i,a);try{Ge(e,t,n[a])}finally{t.treeContext=r}}}function Ge(e,t,n){var i=t.blockedSegment.formatContext,a=t.legacyContext,r=t.context;try{return Ye(e,t,n)}catch(o){if(Ie(),"object"!=typeof o||null===o||"function"!=typeof o.then)throw t.blockedSegment.formatContext=i,t.legacyContext=a,t.context=r,se(r),o;n=o;var s=t.blockedSegment,l=Re(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(l),s.lastPushedText=!1,e=Me(e,t.node,t.blockedBoundary,l,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=i,t.legacyContext=a,t.context=r,se(r)}}function $e(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Ze(this,t,e)}function Xe(e,n,i){var a=e.blockedBoundary;e.blockedSegment.status=3,null===a?(n.allPendingTasks--,2!==n.status&&(n.status=2,null!==n.destination&&n.destination.push(null))):(a.pendingTasks--,a.forceClientRender||(a.forceClientRender=!0,e=void 0===i?Error(t(432)):i,a.errorDigest=n.onError(e),a.parentFlushed&&n.clientRenderedBoundaries.push(a)),a.fallbackAbortableTasks.forEach((function(e){return Xe(e,n,i)})),a.fallbackAbortableTasks.clear(),n.allPendingTasks--,0===n.allPendingTasks&&(a=n.onAllReady)())}function Je(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Je(e,n)}else e.completedSegments.push(t)}function Ze(e,n,i){if(null===n){if(i.parentFlushed){if(null!==e.completedRootSegment)throw Error(t(389));e.completedRootSegment=i}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Oe,(n=e.onShellReady)())}else n.pendingTasks--,n.forceClientRender||(0===n.pendingTasks?(i.parentFlushed&&1===i.status&&Je(n,i),n.parentFlushed&&e.completedBoundaries.push(n),n.fallbackAbortableTasks.forEach($e,e),n.fallbackAbortableTasks.clear()):i.parentFlushed&&1===i.status&&(Je(n,i),1===n.completedSegments.length&&n.parentFlushed&&e.partialBoundaries.push(n)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function et(e){if(2!==e.status){var t=ee,n=Ue.current;Ue.current=De;var i=Le;Le=e.responseState;try{var a,r=e.pingedTasks;for(a=0;a<r.length;a++){var s=r[a],l=e,o=s.blockedSegment;if(0===o.status){se(s.context);try{Ye(l,s,s.node),l.responseState.generateStaticMarkup||o.lastPushedText&&o.textEmbedded&&o.chunks.push("\x3c!-- --\x3e"),s.abortSet.delete(s),o.status=1,Ze(l,s.blockedBoundary,o)}catch(A){if(Ie(),"object"==typeof A&&null!==A&&"function"==typeof A.then){var d=s.ping;A.then(d,d)}else{s.abortSet.delete(s),o.status=4;var c=s.blockedBoundary,u=A,p=Qe(l,u);if(null===c?He(l,u):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=p,c.parentFlushed&&l.clientRenderedBoundaries.push(c))),l.allPendingTasks--,0===l.allPendingTasks)(0,l.onAllReady)()}}}}r.splice(0,a),null!==e.destination&&st(e,e.destination)}catch(A){Qe(e,A),He(e,A)}finally{Le=i,Ue.current=n,n===De&&se(t)}}}function tt(e,n,i){switch(i.parentFlushed=!0,i.status){case 0:var a=i.id=e.nextSegmentId++;return i.lastPushedText=!1,i.textEmbedded=!1,e=e.responseState,n.push('<template id="'),n.push(e.placeholderPrefix),e=a.toString(16),n.push(e),n.push('"></template>');case 1:i.status=2;var r=!0;a=i.chunks;var s=0;i=i.children;for(var l=0;l<i.length;l++){for(r=i[l];s<r.index;s++)n.push(a[s]);r=nt(e,n,r)}for(;s<a.length-1;s++)n.push(a[s]);return s<a.length&&(r=n.push(a[s])),r;default:throw Error(t(390))}}function nt(e,n,i){var a=i.boundary;if(null===a)return tt(e,n,i);if(a.parentFlushed=!0,a.forceClientRender)return e.responseState.generateStaticMarkup||(a=a.errorDigest,n.push("\x3c!--$!--\x3e"),n.push("<template"),a&&(n.push(' data-dgst="'),a=f(a),n.push(a),n.push('"')),n.push("></template>")),tt(e,n,i),e=!!e.responseState.generateStaticMarkup||n.push("\x3c!--/$--\x3e");if(0<a.pendingTasks){a.rootSegmentID=e.nextSegmentId++,0<a.completedSegments.length&&e.partialBoundaries.push(a);var r=e.responseState,s=r.nextSuspenseID++;return r=r.boundaryPrefix+s.toString(16),a=a.id=r,B(n,e.responseState,a),tt(e,n,i),n.push("\x3c!--/$--\x3e")}if(a.byteSize>e.progressiveChunkSize)return a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),B(n,e.responseState,a.id),tt(e,n,i),n.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||n.push("\x3c!--$--\x3e"),1!==(i=a.completedSegments).length)throw Error(t(391));return nt(e,n,i[0]),e=!!e.responseState.generateStaticMarkup||n.push("\x3c!--/$--\x3e")}function it(e,n,i){return function(e,n,i,a){switch(i.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(n.segmentPrefix),n=a.toString(16),e.push(n),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(n.segmentPrefix),n=a.toString(16),e.push(n),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(n.segmentPrefix),n=a.toString(16),e.push(n),e.push('">');case 4:return e.push('<table hidden id="'),e.push(n.segmentPrefix),n=a.toString(16),e.push(n),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(n.segmentPrefix),n=a.toString(16),e.push(n),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(n.segmentPrefix),n=a.toString(16),e.push(n),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(n.segmentPrefix),n=a.toString(16),e.push(n),e.push('">');default:throw Error(t(397))}}(n,e.responseState,i.formatContext,i.id),nt(e,n,i),function(e,n){switch(n.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(t(397))}}(n,i.formatContext)}function at(e,n,i){for(var a=i.completedSegments,r=0;r<a.length;r++)rt(e,n,i,a[r]);if(a.length=0,e=e.responseState,a=i.id,i=i.rootSegmentID,n.push(e.startInlineScript),e.sentCompleteBoundaryFunction?n.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,n.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===a)throw Error(t(395));return i=i.toString(16),n.push(a),n.push('","'),n.push(e.segmentPrefix),n.push(i),n.push('")<\/script>')}function rt(e,n,i,a){if(2===a.status)return!0;var r=a.id;if(-1===r){if(-1===(a.id=i.rootSegmentID))throw Error(t(392));return it(e,n,a)}return it(e,n,a),e=e.responseState,n.push(e.startInlineScript),e.sentCompleteSegmentFunction?n.push('$RS("'):(e.sentCompleteSegmentFunction=!0,n.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),n.push(e.segmentPrefix),r=r.toString(16),n.push(r),n.push('","'),n.push(e.placeholderPrefix),n.push(r),n.push('")<\/script>')}function st(e,n){try{var i=e.completedRootSegment;if(null!==i&&0===e.pendingRootTasks){nt(e,n,i),e.completedRootSegment=null;var a=e.responseState.bootstrapChunks;for(i=0;i<a.length-1;i++)n.push(a[i]);i<a.length&&n.push(a[i])}var r,s=e.clientRenderedBoundaries;for(r=0;r<s.length;r++){var l=s[r];a=n;var o=e.responseState,d=l.id,c=l.errorDigest,u=l.errorMessage,p=l.errorComponentStack;if(a.push(o.startInlineScript),o.sentClientRenderFunction?a.push('$RX("'):(o.sentClientRenderFunction=!0,a.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===d)throw Error(t(395));if(a.push(d),a.push('"'),c||u||p){a.push(",");var A=k(c||"");a.push(A)}if(u||p){a.push(",");var h=k(u||"");a.push(h)}if(p){a.push(",");var f=k(p);a.push(f)}if(!a.push(")<\/script>"))return e.destination=null,r++,void s.splice(0,r)}s.splice(0,r);var m=e.completedBoundaries;for(r=0;r<m.length;r++)if(!at(e,n,m[r]))return e.destination=null,r++,void m.splice(0,r);m.splice(0,r);var v=e.partialBoundaries;for(r=0;r<v.length;r++){var g=v[r];e:{s=e,l=n;var y=g.completedSegments;for(o=0;o<y.length;o++)if(!rt(s,l,g,y[o])){o++,y.splice(0,o);var x=!1;break e}y.splice(0,o),x=!0}if(!x)return e.destination=null,r++,void v.splice(0,r)}v.splice(0,r);var b=e.completedBoundaries;for(r=0;r<b.length;r++)if(!at(e,n,b[r]))return e.destination=null,r++,void b.splice(0,r);b.splice(0,r)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&n.push(null)}}function lt(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Xe(n,e,t)})),n.clear(),null!==e.destination&&st(e,e.destination)}catch(i){Qe(e,i),He(e,i)}}function ot(){}function dt(e,n,i,a){var r=!1,s=null,l="",o={push:function(e){return null!==e&&(l+=e),!0},destroy:function(e){r=!0,s=e}},d=!1;if(e=function(e,t,n,i,a,r,s,l,o){var d=[],c=new Set;return(n=Re(t={destination:null,responseState:t,progressiveChunkSize:void 0===i?12800:i,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:d,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===a?_e:a,onAllReady:void 0===r?Oe:r,onShellReady:void 0===s?Oe:s,onShellError:void 0===l?Oe:l,onFatalError:void 0===o?Oe:o},0,null,n,!1,!1)).parentFlushed=!0,e=Me(t,e,null,n,c,J,null,de),d.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(i,n?n.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ot,void 0,(function(){d=!0}),void 0,void 0),et(e),lt(e,a),1===e.status)e.status=2,o.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=o;try{st(e,o)}catch(c){Qe(e,c),He(e,c)}}if(r)throw s;if(!d)throw Error(t(426));return l}return Cx.renderToNodeStream=function(){throw Error(t(207))},Cx.renderToStaticMarkup=function(e,t){return dt(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Cx.renderToStaticNodeStream=function(){throw Error(t(208))},Cx.renderToString=function(e,t){return dt(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Cx.version="18.3.1",Cx}var Nx,Ix,Fx,Bx={};
|
||
/**
|
||
* @license React
|
||
* react-dom-server.browser.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/function Px(){if(Nx)return Bx;Nx=1;var e=a;function t(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,i=0;function r(e,t){if(0!==t.length)if(512<t.length)0<i&&(e.enqueue(new Uint8Array(n.buffer,0,i)),n=new Uint8Array(512),i=0),e.enqueue(t);else{var a=n.length-i;a<t.length&&(0===a?e.enqueue(n):(n.set(t.subarray(0,a),i),e.enqueue(n),t=t.subarray(a)),n=new Uint8Array(512),i=0),n.set(t,i),i+=t.length}}function s(e,t){return r(e,t),!0}function l(e){n&&0<i&&(e.enqueue(new Uint8Array(n.buffer,0,i)),n=null,i=0)}var o=new TextEncoder;function d(e){return o.encode(e)}function c(e){return o.encode(e)}function u(e,t){"function"==typeof e.error?e.error(t):e.close()}var p=Object.prototype.hasOwnProperty,A=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function m(e){return!!p.call(f,e)||!p.call(h,e)&&(A.test(e)?f[e]=!0:(h[e]=!0,!1))}function v(e,t,n,i,a,r,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,x);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,x);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,x);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},w=["Webkit","ms","Moz","O"];Object.keys(b).forEach((function(e){w.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),b[t]=b[e]}))}));var j=/["'&<>]/;function C(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=j.exec(e);if(t){var n,i="",a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==n&&(i+=e.substring(a,n)),a=n+1,i+=t}e=a!==n?i+e.substring(a,n):i}return e}var S=/([A-Z])/g,N=/^ms-/,I=Array.isArray,F=c("<script>"),B=c("<\/script>"),P=c('<script src="'),k=c('<script type="module" src="'),T=c('" async=""><\/script>'),E=/(<\/|<)(s)(cript)/gi;function D(e,t,n,i){return t+("s"===n?"\\u0073":"\\u0053")+i}function L(e,t){return{insertionMode:e,selectedValue:t}}var U=c("\x3c!-- --\x3e");function _(e,t,n,i){return""===t?i:(i&&e.push(U),e.push(d(C(t))),!0)}var O=new Map,M=c(' style="'),R=c(":"),Q=c(";");function H(e,n,i){if("object"!=typeof i)throw Error(t(62));for(var a in n=!0,i)if(p.call(i,a)){var r=i[a];if(null!=r&&"boolean"!=typeof r&&""!==r){if(0===a.indexOf("--")){var s=d(C(a));r=d(C((""+r).trim()))}else{s=a;var l=O.get(s);void 0!==l||(l=c(C(s.replace(S,"-$1").toLowerCase().replace(N,"-ms-"))),O.set(s,l)),s=l,r="number"==typeof r?0===r||p.call(b,a)?d(""+r):d(r+"px"):d(C((""+r).trim()))}n?(n=!1,e.push(M,s,R,r)):e.push(Q,s,R,r)}}n||e.push(q)}var V=c(" "),z=c('="'),q=c('"'),W=c('=""');function Y(e,t,n,i){switch(n){case"style":return void H(e,t,i);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=g.hasOwnProperty(n)?g[n]:null)){switch(typeof i){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=d(t.attributeName),t.type){case 3:i&&e.push(V,n,W);break;case 4:!0===i?e.push(V,n,W):!1!==i&&e.push(V,n,z,d(C(i)),q);break;case 5:isNaN(i)||e.push(V,n,z,d(C(i)),q);break;case 6:!isNaN(i)&&1<=i&&e.push(V,n,z,d(C(i)),q);break;default:t.sanitizeURL&&(i=""+i),e.push(V,n,z,d(C(i)),q)}}else if(m(n)){switch(typeof i){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(V,d(n),z,d(C(i)),q)}}var K=c(">"),G=c("/>");function $(e,n,i){if(null!=n){if(null!=i)throw Error(t(60));if("object"!=typeof n||!("__html"in n))throw Error(t(61));null!=(n=n.__html)&&e.push(d(""+n))}}var X=c(' selected=""');function J(e,t,n,i){e.push(ne(n));var a,r=n=null;for(a in t)if(p.call(t,a)){var s=t[a];if(null!=s)switch(a){case"children":n=s;break;case"dangerouslySetInnerHTML":r=s;break;default:Y(e,i,a,s)}}return e.push(K),$(e,r,n),"string"==typeof n?(e.push(d(C(n))),null):n}var Z=c("\n"),ee=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,te=new Map;function ne(e){var n=te.get(e);if(void 0===n){if(!ee.test(e))throw Error(t(65,e));n=c("<"+e),te.set(e,n)}return n}var ie=c("<!DOCTYPE html>");function ae(n,i,a,r,s){switch(i){case"select":n.push(ne("select"));var l=null,o=null;for(h in a)if(p.call(a,h)){var c=a[h];if(null!=c)switch(h){case"children":l=c;break;case"dangerouslySetInnerHTML":o=c;break;case"defaultValue":case"value":break;default:Y(n,r,h,c)}}return n.push(K),$(n,o,l),l;case"option":o=s.selectedValue,n.push(ne("option"));var u=c=null,A=null,h=null;for(l in a)if(p.call(a,l)){var f=a[l];if(null!=f)switch(l){case"children":c=f;break;case"selected":A=f;break;case"dangerouslySetInnerHTML":h=f;break;case"value":u=f;default:Y(n,r,l,f)}}if(null!=o)if(a=null!==u?""+u:function(t){var n="";return e.Children.forEach(t,(function(e){null!=e&&(n+=e)})),n}(c),I(o)){for(r=0;r<o.length;r++)if(""+o[r]===a){n.push(X);break}}else""+o===a&&n.push(X);else A&&n.push(X);return n.push(K),$(n,h,c),c;case"textarea":for(c in n.push(ne("textarea")),h=o=l=null,a)if(p.call(a,c)&&null!=(u=a[c]))switch(c){case"children":h=u;break;case"value":l=u;break;case"defaultValue":o=u;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:Y(n,r,c,u)}if(null===l&&null!==o&&(l=o),n.push(K),null!=h){if(null!=l)throw Error(t(92));if(I(h)&&1<h.length)throw Error(t(93));l=""+h}return"string"==typeof l&&"\n"===l[0]&&n.push(Z),null!==l&&n.push(d(C(""+l))),null;case"input":for(o in n.push(ne("input")),u=h=c=l=null,a)if(p.call(a,o)&&null!=(A=a[o]))switch(o){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":u=A;break;case"defaultValue":c=A;break;case"checked":h=A;break;case"value":l=A;break;default:Y(n,r,o,A)}return null!==h?Y(n,r,"checked",h):null!==u&&Y(n,r,"checked",u),null!==l?Y(n,r,"value",l):null!==c&&Y(n,r,"value",c),n.push(G),null;case"menuitem":for(var v in n.push(ne("menuitem")),a)if(p.call(a,v)&&null!=(l=a[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:Y(n,r,v,l)}return n.push(K),null;case"title":for(f in n.push(ne("title")),l=null,a)if(p.call(a,f)&&null!=(o=a[f]))switch(f){case"children":l=o;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:Y(n,r,f,o)}return n.push(K),l;case"listing":case"pre":for(u in n.push(ne(i)),o=l=null,a)if(p.call(a,u)&&null!=(c=a[u]))switch(u){case"children":l=c;break;case"dangerouslySetInnerHTML":o=c;break;default:Y(n,r,u,c)}if(n.push(K),null!=o){if(null!=l)throw Error(t(60));if("object"!=typeof o||!("__html"in o))throw Error(t(61));null!=(a=o.__html)&&("string"==typeof a&&0<a.length&&"\n"===a[0]?n.push(Z,d(a)):n.push(d(""+a)))}return"string"==typeof l&&"\n"===l[0]&&n.push(Z),l;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var g in n.push(ne(i)),a)if(p.call(a,g)&&null!=(l=a[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,i));default:Y(n,r,g,l)}return n.push(G),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return J(n,a,i,r);case"html":return 0===s.insertionMode&&n.push(ie),J(n,a,i,r);default:if(-1===i.indexOf("-")&&"string"!=typeof a.is)return J(n,a,i,r);for(A in n.push(ne(i)),o=l=null,a)if(p.call(a,A)&&null!=(c=a[A]))switch(A){case"children":l=c;break;case"dangerouslySetInnerHTML":o=c;break;case"style":H(n,r,c);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:m(A)&&"function"!=typeof c&&"symbol"!=typeof c&&n.push(V,d(A),z,d(C(c)),q)}return n.push(K),$(n,o,l),l}}var re=c("</"),se=c(">"),le=c('<template id="'),oe=c('"></template>'),de=c("\x3c!--$--\x3e"),ce=c('\x3c!--$?--\x3e<template id="'),ue=c('"></template>'),pe=c("\x3c!--$!--\x3e"),Ae=c("\x3c!--/$--\x3e"),he=c("<template"),fe=c('"'),me=c(' data-dgst="');c(' data-msg="'),c(' data-stck="');var ve=c("></template>");function ge(e,n,i){if(r(e,ce),null===i)throw Error(t(395));return r(e,i),s(e,ue)}var ye=c('<div hidden id="'),xe=c('">'),be=c("</div>"),we=c('<svg aria-hidden="true" style="display:none" id="'),je=c('">'),Ce=c("</svg>"),Se=c('<math aria-hidden="true" style="display:none" id="'),Ne=c('">'),Ie=c("</math>"),Fe=c('<table hidden id="'),Be=c('">'),Pe=c("</table>"),ke=c('<table hidden><tbody id="'),Te=c('">'),Ee=c("</tbody></table>"),De=c('<table hidden><tr id="'),Le=c('">'),Ue=c("</tr></table>"),_e=c('<table hidden><colgroup id="'),Oe=c('">'),Me=c("</colgroup></table>");var Re=c('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Qe=c('$RS("'),He=c('","'),Ve=c('")<\/script>'),ze=c('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),qe=c('$RC("'),We=c('","'),Ye=c('")<\/script>'),Ke=c('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Ge=c('$RX("'),$e=c('"'),Xe=c(")<\/script>"),Je=c(","),Ze=/[<\u2028\u2029]/g;function et(e){return JSON.stringify(e).replace(Ze,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var tt=Object.assign,nt=Symbol.for("react.element"),it=Symbol.for("react.portal"),at=Symbol.for("react.fragment"),rt=Symbol.for("react.strict_mode"),st=Symbol.for("react.profiler"),lt=Symbol.for("react.provider"),ot=Symbol.for("react.context"),dt=Symbol.for("react.forward_ref"),ct=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),pt=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),ht=Symbol.for("react.scope"),ft=Symbol.for("react.debug_trace_mode"),mt=Symbol.for("react.legacy_hidden"),vt=Symbol.for("react.default_value"),gt=Symbol.iterator;function yt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case at:return"Fragment";case it:return"Portal";case st:return"Profiler";case rt:return"StrictMode";case ct:return"Suspense";case ut:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ot:return(e.displayName||"Context")+".Consumer";case lt:return(e._context.displayName||"Context")+".Provider";case dt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case pt:return null!==(t=e.displayName||null)?t:yt(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return yt(e(t))}catch(ese){}}return null}var xt={};function bt(e,t){if(!(e=e.contextTypes))return xt;var n,i={};for(n in e)i[n]=t[n];return i}var wt=null;function jt(e,n){if(e!==n){e.context._currentValue=e.parentValue,e=e.parent;var i=n.parent;if(null===e){if(null!==i)throw Error(t(401))}else{if(null===i)throw Error(t(401));jt(e,i)}n.context._currentValue=n.value}}function Ct(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Ct(e)}function St(e){var t=e.parent;null!==t&&St(t),e.context._currentValue=e.value}function Nt(e,n){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(t(402));e.depth===n.depth?jt(e,n):Nt(e,n)}function It(e,n){var i=n.parent;if(null===i)throw Error(t(402));e.depth===i.depth?jt(e,i):It(e,i),n.context._currentValue=n.value}function Ft(e){var t=wt;t!==e&&(null===t?St(e):null===e?Ct(t):t.depth===e.depth?jt(t,e):t.depth>e.depth?Nt(t,e):It(t,e),wt=e)}var Bt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Pt(e,t,n,i){var a=void 0!==e.state?e.state:null;e.updater=Bt,e.props=n,e.state=a;var r={queue:[],replace:!1};e._reactInternals=r;var s=t.contextType;if(e.context="object"==typeof s&&null!==s?s._currentValue:i,"function"==typeof(s=t.getDerivedStateFromProps)&&(a=null==(s=s(n,a))?a:tt({},a,s),e.state=a),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Bt.enqueueReplaceState(e,e.state,null),null!==r.queue&&0<r.queue.length)if(t=r.queue,s=r.replace,r.queue=null,r.replace=!1,s&&1===t.length)e.state=t[0];else{for(r=s?t[0]:e.state,a=!0,s=s?1:0;s<t.length;s++){var l=t[s];null!=(l="function"==typeof l?l.call(e,r,n,i):l)&&(a?(a=!1,r=tt({},r,l)):tt(r,l))}e.state=r}else r.queue=null}var kt={id:1,overflow:""};function Tt(e,t,n){var i=e.id;e=e.overflow;var a=32-Et(i)-1;i&=~(1<<a),n+=1;var r=32-Et(t)+a;if(30<r){var s=a-a%5;return r=(i&(1<<s)-1).toString(32),i>>=s,a-=s,{id:1<<32-Et(t)+a|n<<a|i,overflow:r+e}}return{id:1<<r|n<<a|i,overflow:e}}var Et=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Dt(e)/Lt|0)|0},Dt=Math.log,Lt=Math.LN2;var Ut="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},_t=null,Ot=null,Mt=null,Rt=null,Qt=!1,Ht=!1,Vt=0,zt=null,qt=0;function Wt(){if(null===_t)throw Error(t(321));return _t}function Yt(){if(0<qt)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Kt(){return null===Rt?null===Mt?(Qt=!1,Mt=Rt=Yt()):(Qt=!0,Rt=Mt):null===Rt.next?(Qt=!1,Rt=Rt.next=Yt()):(Qt=!0,Rt=Rt.next),Rt}function Gt(){Ot=_t=null,Ht=!1,Mt=null,qt=0,Rt=zt=null}function $t(e,t){return"function"==typeof t?t(e):t}function Xt(e,t,n){if(_t=Wt(),Rt=Kt(),Qt){var i=Rt.queue;if(t=i.dispatch,null!==zt&&void 0!==(n=zt.get(i))){zt.delete(i),i=Rt.memoizedState;do{i=e(i,n.action),n=n.next}while(null!==n);return Rt.memoizedState=i,[i,t]}return[Rt.memoizedState,t]}return e=e===$t?"function"==typeof t?t():t:void 0!==n?n(t):t,Rt.memoizedState=e,e=(e=Rt.queue={last:null,dispatch:null}).dispatch=Zt.bind(null,_t,e),[Rt.memoizedState,e]}function Jt(e,t){if(_t=Wt(),t=void 0===t?null:t,null!==(Rt=Kt())){var n=Rt.memoizedState;if(null!==n&&null!==t){var i=n[1];e:if(null===i)i=!1;else{for(var a=0;a<i.length&&a<t.length;a++)if(!Ut(t[a],i[a])){i=!1;break e}i=!0}if(i)return n[0]}}return e=e(),Rt.memoizedState=[e,t],e}function Zt(e,n,i){if(25<=qt)throw Error(t(301));if(e===_t)if(Ht=!0,e={action:i,next:null},null===zt&&(zt=new Map),void 0===(i=zt.get(n)))zt.set(n,e);else{for(n=i;null!==n.next;)n=n.next;n.next=e}}function en(){throw Error(t(394))}function tn(){}var nn={readContext:function(e){return e._currentValue},useContext:function(e){return Wt(),e._currentValue},useMemo:Jt,useReducer:Xt,useRef:function(e){_t=Wt();var t=(Rt=Kt()).memoizedState;return null===t?(e={current:e},Rt.memoizedState=e):t},useState:function(e){return Xt($t,e)},useInsertionEffect:tn,useLayoutEffect:function(){},useCallback:function(e,t){return Jt((function(){return e}),t)},useImperativeHandle:tn,useEffect:tn,useDebugValue:tn,useDeferredValue:function(e){return Wt(),e},useTransition:function(){return Wt(),[!1,en]},useId:function(){var e=Ot.treeContext,n=e.overflow;e=((e=e.id)&~(1<<32-Et(e)-1)).toString(32)+n;var i=an;if(null===i)throw Error(t(404));return n=Vt++,e=":"+i.idPrefix+"R"+e,0<n&&(e+="H"+n.toString(32)),e+":"},useMutableSource:function(e,t){return Wt(),t(e._source)},useSyncExternalStore:function(e,n,i){if(void 0===i)throw Error(t(407));return i()}},an=null,rn=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function sn(e){return null}function ln(){}function on(e,t,n,i,a,r,s,l){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var o={node:t,ping:function(){var t=e.pingedTasks;t.push(o),1===t.length&&jn(e)},blockedBoundary:n,blockedSegment:i,abortSet:a,legacyContext:r,context:s,treeContext:l};return a.add(o),o}function dn(e,t,n,i,a,r){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:i,boundary:n,lastPushedText:a,textEmbedded:r}}function cn(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function un(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,u(e.destination,t)):(e.status=1,e.fatalError=t)}function pn(e,t,n,i,a){for(_t={},Ot=t,Vt=0,e=n(i,a);Ht;)Ht=!1,Vt=0,qt+=1,Rt=null,e=n(i,a);return Gt(),e}function An(e,n,i,a){var r=i.render(),s=a.childContextTypes;if(null!=s){var l=n.legacyContext;if("function"!=typeof i.getChildContext)a=l;else{for(var o in i=i.getChildContext())if(!(o in s))throw Error(t(108,yt(a)||"Unknown",o));a=tt({},l,i)}n.legacyContext=a,mn(e,n,r),n.legacyContext=l}else mn(e,n,r)}function hn(e,t){if(e&&e.defaultProps){for(var n in t=tt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function fn(e,n,i,a,r){if("function"==typeof i)if(i.prototype&&i.prototype.isReactComponent){r=bt(i,n.legacyContext);var s=i.contextType;Pt(s=new i(a,"object"==typeof s&&null!==s?s._currentValue:r),i,a,r),An(e,n,s,i)}else{r=pn(e,n,i,a,s=bt(i,n.legacyContext));var l=0!==Vt;if("object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof)Pt(r,i,a,s),An(e,n,r,i);else if(l){a=n.treeContext,n.treeContext=Tt(a,1,0);try{mn(e,n,r)}finally{n.treeContext=a}}else mn(e,n,r)}else{if("string"!=typeof i){switch(i){case mt:case ft:case rt:case st:case at:case ut:return void mn(e,n,a.children);case ht:throw Error(t(343));case ct:e:{i=n.blockedBoundary,r=n.blockedSegment,s=a.fallback,a=a.children;var o={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l=new Set,errorDigest:null},c=dn(0,r.chunks.length,o,r.formatContext,!1,!1);r.children.push(c),r.lastPushedText=!1;var u=dn(0,0,null,r.formatContext,!1,!1);u.parentFlushed=!0,n.blockedBoundary=o,n.blockedSegment=u;try{if(gn(e,n,a),u.lastPushedText&&u.textEmbedded&&u.chunks.push(U),u.status=1,bn(o,u),0===o.pendingTasks)break e}catch(p){u.status=4,o.forceClientRender=!0,o.errorDigest=cn(e,p)}finally{n.blockedBoundary=i,n.blockedSegment=r}n=on(e,s,i,c,l,n.legacyContext,n.context,n.treeContext),e.pingedTasks.push(n)}return}if("object"==typeof i&&null!==i)switch(i.$$typeof){case dt:if(a=pn(e,n,i.render,a,r),0!==Vt){i=n.treeContext,n.treeContext=Tt(i,1,0);try{mn(e,n,a)}finally{n.treeContext=i}}else mn(e,n,a);return;case pt:return void fn(e,n,i=i.type,a=hn(i,a),r);case lt:if(r=a.children,i=i._context,a=a.value,s=i._currentValue,i._currentValue=a,wt=a={parent:l=wt,depth:null===l?0:l.depth+1,context:i,parentValue:s,value:a},n.context=a,mn(e,n,r),null===(e=wt))throw Error(t(403));return a=e.parentValue,e.context._currentValue=a===vt?e.context._defaultValue:a,e=wt=e.parent,void(n.context=e);case ot:return void mn(e,n,a=(a=a.children)(i._currentValue));case At:return void fn(e,n,i=(r=i._init)(i._payload),a=hn(i,a),void 0)}throw Error(t(130,null==i?i:typeof i,""))}switch(s=ae((r=n.blockedSegment).chunks,i,a,e.responseState,r.formatContext),r.lastPushedText=!1,l=r.formatContext,r.formatContext=function(e,t,n){switch(t){case"select":return L(1,null!=n.value?n.value:n.defaultValue);case"svg":return L(2,null);case"math":return L(3,null);case"foreignObject":return L(1,null);case"table":return L(4,null);case"thead":case"tbody":case"tfoot":return L(5,null);case"colgroup":return L(7,null);case"tr":return L(6,null)}return 4<=e.insertionMode||0===e.insertionMode?L(1,null):e}(l,i,a),gn(e,n,s),r.formatContext=l,i){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:r.chunks.push(re,d(i),se)}r.lastPushedText=!1}}function mn(e,n,i){if(n.node=i,"object"==typeof i&&null!==i){switch(i.$$typeof){case nt:return void fn(e,n,i.type,i.props,i.ref);case it:throw Error(t(257));case At:var a=i._init;return void mn(e,n,i=a(i._payload))}if(I(i))return void vn(e,n,i);if(null===i||"object"!=typeof i?a=null:a="function"==typeof(a=gt&&i[gt]||i["@@iterator"])?a:null,a&&(a=a.call(i))){if(!(i=a.next()).done){var r=[];do{r.push(i.value),i=a.next()}while(!i.done);vn(e,n,r)}return}throw e=Object.prototype.toString.call(i),Error(t(31,"[object Object]"===e?"object with keys {"+Object.keys(i).join(", ")+"}":e))}"string"==typeof i?(a=n.blockedSegment).lastPushedText=_(n.blockedSegment.chunks,i,e.responseState,a.lastPushedText):"number"==typeof i&&((a=n.blockedSegment).lastPushedText=_(n.blockedSegment.chunks,""+i,e.responseState,a.lastPushedText))}function vn(e,t,n){for(var i=n.length,a=0;a<i;a++){var r=t.treeContext;t.treeContext=Tt(r,i,a);try{gn(e,t,n[a])}finally{t.treeContext=r}}}function gn(e,t,n){var i=t.blockedSegment.formatContext,a=t.legacyContext,r=t.context;try{return mn(e,t,n)}catch(o){if(Gt(),"object"!=typeof o||null===o||"function"!=typeof o.then)throw t.blockedSegment.formatContext=i,t.legacyContext=a,t.context=r,Ft(r),o;n=o;var s=t.blockedSegment,l=dn(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(l),s.lastPushedText=!1,e=on(e,t.node,t.blockedBoundary,l,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=i,t.legacyContext=a,t.context=r,Ft(r)}}function yn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,wn(this,t,e)}function xn(e,n,i){var a=e.blockedBoundary;e.blockedSegment.status=3,null===a?(n.allPendingTasks--,2!==n.status&&(n.status=2,null!==n.destination&&n.destination.close())):(a.pendingTasks--,a.forceClientRender||(a.forceClientRender=!0,e=void 0===i?Error(t(432)):i,a.errorDigest=n.onError(e),a.parentFlushed&&n.clientRenderedBoundaries.push(a)),a.fallbackAbortableTasks.forEach((function(e){return xn(e,n,i)})),a.fallbackAbortableTasks.clear(),n.allPendingTasks--,0===n.allPendingTasks&&(a=n.onAllReady)())}function bn(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&bn(e,n)}else e.completedSegments.push(t)}function wn(e,n,i){if(null===n){if(i.parentFlushed){if(null!==e.completedRootSegment)throw Error(t(389));e.completedRootSegment=i}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=ln,(n=e.onShellReady)())}else n.pendingTasks--,n.forceClientRender||(0===n.pendingTasks?(i.parentFlushed&&1===i.status&&bn(n,i),n.parentFlushed&&e.completedBoundaries.push(n),n.fallbackAbortableTasks.forEach(yn,e),n.fallbackAbortableTasks.clear()):i.parentFlushed&&1===i.status&&(bn(n,i),1===n.completedSegments.length&&n.parentFlushed&&e.partialBoundaries.push(n)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function jn(e){if(2!==e.status){var t=wt,n=rn.current;rn.current=nn;var i=an;an=e.responseState;try{var a,r=e.pingedTasks;for(a=0;a<r.length;a++){var s=r[a],l=e,o=s.blockedSegment;if(0===o.status){Ft(s.context);try{mn(l,s,s.node),o.lastPushedText&&o.textEmbedded&&o.chunks.push(U),s.abortSet.delete(s),o.status=1,wn(l,s.blockedBoundary,o)}catch(A){if(Gt(),"object"==typeof A&&null!==A&&"function"==typeof A.then){var d=s.ping;A.then(d,d)}else{s.abortSet.delete(s),o.status=4;var c=s.blockedBoundary,u=A,p=cn(l,u);if(null===c?un(l,u):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=p,c.parentFlushed&&l.clientRenderedBoundaries.push(c))),l.allPendingTasks--,0===l.allPendingTasks)(0,l.onAllReady)()}}}}r.splice(0,a),null!==e.destination&&Bn(e,e.destination)}catch(A){cn(e,A),un(e,A)}finally{an=i,rn.current=n,n===nn&&Ft(t)}}}function Cn(e,n,i){switch(i.parentFlushed=!0,i.status){case 0:var a=i.id=e.nextSegmentId++;return i.lastPushedText=!1,i.textEmbedded=!1,e=e.responseState,r(n,le),r(n,e.placeholderPrefix),r(n,e=d(a.toString(16))),s(n,oe);case 1:i.status=2;var l=!0;a=i.chunks;var o=0;i=i.children;for(var c=0;c<i.length;c++){for(l=i[c];o<l.index;o++)r(n,a[o]);l=Sn(e,n,l)}for(;o<a.length-1;o++)r(n,a[o]);return o<a.length&&(l=s(n,a[o])),l;default:throw Error(t(390))}}function Sn(e,n,i){var a=i.boundary;if(null===a)return Cn(e,n,i);if(a.parentFlushed=!0,a.forceClientRender)a=a.errorDigest,s(n,pe),r(n,he),a&&(r(n,me),r(n,d(C(a))),r(n,fe)),s(n,ve),Cn(e,n,i);else if(0<a.pendingTasks){a.rootSegmentID=e.nextSegmentId++,0<a.completedSegments.length&&e.partialBoundaries.push(a);var l=e.responseState,o=l.nextSuspenseID++;l=c(l.boundaryPrefix+o.toString(16)),a=a.id=l,ge(n,e.responseState,a),Cn(e,n,i)}else if(a.byteSize>e.progressiveChunkSize)a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),ge(n,e.responseState,a.id),Cn(e,n,i);else{if(s(n,de),1!==(i=a.completedSegments).length)throw Error(t(391));Sn(e,n,i[0])}return s(n,Ae)}function Nn(e,n,i){return function(e,n,i,a){switch(i.insertionMode){case 0:case 1:return r(e,ye),r(e,n.segmentPrefix),r(e,d(a.toString(16))),s(e,xe);case 2:return r(e,we),r(e,n.segmentPrefix),r(e,d(a.toString(16))),s(e,je);case 3:return r(e,Se),r(e,n.segmentPrefix),r(e,d(a.toString(16))),s(e,Ne);case 4:return r(e,Fe),r(e,n.segmentPrefix),r(e,d(a.toString(16))),s(e,Be);case 5:return r(e,ke),r(e,n.segmentPrefix),r(e,d(a.toString(16))),s(e,Te);case 6:return r(e,De),r(e,n.segmentPrefix),r(e,d(a.toString(16))),s(e,Le);case 7:return r(e,_e),r(e,n.segmentPrefix),r(e,d(a.toString(16))),s(e,Oe);default:throw Error(t(397))}}(n,e.responseState,i.formatContext,i.id),Sn(e,n,i),function(e,n){switch(n.insertionMode){case 0:case 1:return s(e,be);case 2:return s(e,Ce);case 3:return s(e,Ie);case 4:return s(e,Pe);case 5:return s(e,Ee);case 6:return s(e,Ue);case 7:return s(e,Me);default:throw Error(t(397))}}(n,i.formatContext)}function In(e,n,i){for(var a=i.completedSegments,l=0;l<a.length;l++)Fn(e,n,i,a[l]);if(a.length=0,e=e.responseState,a=i.id,i=i.rootSegmentID,r(n,e.startInlineScript),e.sentCompleteBoundaryFunction?r(n,qe):(e.sentCompleteBoundaryFunction=!0,r(n,ze)),null===a)throw Error(t(395));return i=d(i.toString(16)),r(n,a),r(n,We),r(n,e.segmentPrefix),r(n,i),s(n,Ye)}function Fn(e,n,i,a){if(2===a.status)return!0;var l=a.id;if(-1===l){if(-1===(a.id=i.rootSegmentID))throw Error(t(392));return Nn(e,n,a)}return Nn(e,n,a),r(n,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?r(n,Qe):(e.sentCompleteSegmentFunction=!0,r(n,Re)),r(n,e.segmentPrefix),r(n,l=d(l.toString(16))),r(n,He),r(n,e.placeholderPrefix),r(n,l),s(n,Ve)}function Bn(e,a){n=new Uint8Array(512),i=0;try{var o=e.completedRootSegment;if(null!==o&&0===e.pendingRootTasks){Sn(e,a,o),e.completedRootSegment=null;var c=e.responseState.bootstrapChunks;for(o=0;o<c.length-1;o++)r(a,c[o]);o<c.length&&s(a,c[o])}var u,p=e.clientRenderedBoundaries;for(u=0;u<p.length;u++){var A=p[u];c=a;var h=e.responseState,f=A.id,m=A.errorDigest,v=A.errorMessage,g=A.errorComponentStack;if(r(c,h.startInlineScript),h.sentClientRenderFunction?r(c,Ge):(h.sentClientRenderFunction=!0,r(c,Ke)),null===f)throw Error(t(395));r(c,f),r(c,$e),(m||v||g)&&(r(c,Je),r(c,d(et(m||"")))),(v||g)&&(r(c,Je),r(c,d(et(v||"")))),g&&(r(c,Je),r(c,d(et(g)))),s(c,Xe)}p.splice(0,u);var y=e.completedBoundaries;for(u=0;u<y.length;u++)In(e,a,y[u]);y.splice(0,u),l(a),n=new Uint8Array(512),i=0;var x=e.partialBoundaries;for(u=0;u<x.length;u++){var b=x[u];e:{p=e,A=a;var w=b.completedSegments;for(h=0;h<w.length;h++)if(!Fn(p,A,b,w[h])){h++,w.splice(0,h);var j=!1;break e}w.splice(0,h),j=!0}if(!j)return e.destination=null,u++,void x.splice(0,u)}x.splice(0,u);var C=e.completedBoundaries;for(u=0;u<C.length;u++)In(e,a,C[u]);C.splice(0,u)}finally{l(a),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&a.close()}}function Pn(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return xn(n,e,t)})),n.clear(),null!==e.destination&&Bn(e,e.destination)}catch(i){cn(e,i),un(e,i)}}return Bx.renderToReadableStream=function(e,t){return new Promise((function(n,i){var a,r,s=new Promise((function(e,t){r=e,a=t})),l=function(e,t,n,i,a,r,s,l,o){var d=[],c=new Set;return(n=dn(t={destination:null,responseState:t,progressiveChunkSize:void 0===i?12800:i,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:d,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===a?sn:a,onAllReady:void 0===r?ln:r,onShellReady:void 0===s?ln:s,onShellError:void 0===l?ln:l,onFatalError:void 0===o?ln:o},0,null,n,!1,!1)).parentFlushed=!0,e=on(t,e,null,n,c,xt,null,kt),d.push(e),t}(e,function(e,t,n,i,a){e=void 0===e?"":e,t=void 0===t?F:c('<script nonce="'+C(t)+'">');var r=[];if(void 0!==n&&r.push(t,d((""+n).replace(E,D)),B),void 0!==i)for(n=0;n<i.length;n++)r.push(P,d(C(i[n])),T);if(void 0!==a)for(i=0;i<a.length;i++)r.push(k,d(C(a[i])),T);return{bootstrapChunks:r,startInlineScript:t,placeholderPrefix:c(e+"P:"),segmentPrefix:c(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return L("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,r,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===l.status)l.status=2,u(e,l.fatalError);else if(2!==l.status&&null===l.destination){l.destination=e;try{Bn(l,e)}catch(t){cn(l,t),un(l,t)}}},cancel:function(){Pn(l)}},{highWaterMark:0});e.allReady=s,n(e)}),(function(e){s.catch((function(){})),i(e)}),a);if(t&&t.signal){var o=t.signal,p=function(){Pn(l,o.reason),o.removeEventListener("abort",p)};o.addEventListener("abort",p)}jn(l)}))},Bx.version="18.3.1",Bx}function kx(){return Fx||(Fx=1,function(e,t,n,i,a){Object.defineProperty(e,"__esModule",{value:!0}),e.InfoWindow=void 0;var r=o(t),s=o(n);o(i);var l=o(a);function o(e){return e&&e.__esModule?e:{default:e}}var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function c(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function A(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=e.InfoWindow=function(e){function t(){return u(this,t),A(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),p(t,[{key:"componentDidMount",value:function(){this.renderInfoWindow()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.google,i=t.map;n&&i&&(i!==e.map&&this.renderInfoWindow(),this.props.position!==e.position&&this.updatePosition(),this.props.children!==e.children&&this.updateContent(),this.props.visible===e.visible&&this.props.marker===e.marker&&this.props.position===e.position||(this.props.visible?this.openWindow():this.closeWindow()))}},{key:"renderInfoWindow",value:function(){var e=this.props;e.map;var t=e.google;e.mapCenter;var n=c(e,["map","google","mapCenter"]);if(t&&t.maps){var i=this.infowindow=new t.maps.InfoWindow(d({content:""},n));t.maps.event.addListener(i,"closeclick",this.onClose.bind(this)),t.maps.event.addListener(i,"domready",this.onOpen.bind(this))}}},{key:"onOpen",value:function(){this.props.onOpen&&this.props.onOpen()}},{key:"onClose",value:function(){this.props.onClose&&this.props.onClose()}},{key:"openWindow",value:function(){this.infowindow.open(this.props.map,this.props.marker)}},{key:"updatePosition",value:function(){var e=this.props.position;e instanceof google.maps.LatLng||(e=e&&new google.maps.LatLng(e.lat,e.lng)),this.infowindow.setPosition(e)}},{key:"updateContent",value:function(){var e=this.renderChildren();this.infowindow.setContent(e)}},{key:"closeWindow",value:function(){this.infowindow.close()}},{key:"renderChildren",value:function(){var e=this.props.children;return l.default.renderToString(e)}},{key:"render",value:function(){return null}}]),t}(r.default.Component);f.propTypes={children:s.default.element.isRequired,map:s.default.object,marker:s.default.object,position:s.default.object,visible:s.default.bool,onClose:s.default.func,onOpen:s.default.func},f.defaultProps={visible:!1},e.default=f}(wx,a,fx(),r,(Ix||(Ix=1,e=Sx(),t=Px(),jx.version=e.version,jx.renderToString=e.renderToString,jx.renderToStaticMarkup=e.renderToStaticMarkup,jx.renderToNodeStream=e.renderToNodeStream,jx.renderToStaticNodeStream=e.renderToStaticNodeStream,jx.renderToReadableStream=t.renderToReadableStream),jx))),wx;var e,t}var Tx,Ex={};function Dx(){return Tx||(Tx=1,function(e,t,n,i){Object.defineProperty(e,"__esModule",{value:!0}),e.HeatMap=void 0;var a=s(t),r=s(n);function s(e){return e&&e.__esModule?e:{default:e}}var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function o(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var A=["click","mouseover","recenter"],h=function(){var e={},t=new Promise((function(t,n){e.resolve=t,e.reject=n}));return e.then=t.then.bind(t),e.catch=t.catch.bind(t),e.promise=t,e},f=e.HeatMap=function(e){function t(){return d(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),c(t,[{key:"componentDidMount",value:function(){this.heatMapPromise=h(),this.renderHeatMap()}},{key:"componentDidUpdate",value:function(e){this.props.map===e.map&&this.props.position===e.position||this.heatMap&&(this.heatMap.setMap(null),this.renderHeatMap())}},{key:"componentWillUnmount",value:function(){this.heatMap&&this.heatMap.setMap(null)}},{key:"renderHeatMap",value:function(){var e=this,t=this.props,n=t.map,i=t.google,a=t.positions;t.mapCenter,t.icon;var r=t.gradient,s=t.radius,d=void 0===s?20:s,c=t.opacity,u=void 0===c?.2:c,p=o(t,["map","google","positions","mapCenter","icon","gradient","radius","opacity"]);if(!i)return null;var h=a.map((function(e){return{location:new i.maps.LatLng(e.lat,e.lng),weight:e.weight}})),f=l({map:n,gradient:r,radius:d,opacity:u,data:h},p);this.heatMap=new i.maps.visualization.HeatmapLayer(f),this.heatMap.set("radius",void 0===d?20:d),this.heatMap.set("opacity",void 0===u?.2:u),A.forEach((function(t){e.heatMap.addListener(t,e.handleEvent(t))})),this.heatMapPromise.resolve(this.heatMap)}},{key:"getHeatMap",value:function(){return this.heatMapPromise}},{key:"handleEvent",value:function(e){var t=this;return function(n){var a="on"+(0,i.camelize)(e);t.props[a]&&t.props[a](t.props,t.heatMap,n)}}},{key:"render",value:function(){return null}}]),t}(a.default.Component);f.propTypes={position:r.default.object,map:r.default.object,icon:r.default.string},A.forEach((function(e){return f.propTypes[e]=r.default.func})),f.defaultProps={name:"HeatMap"},e.default=f}(Ex,a,fx(),yx())),Ex}var Lx,Ux,_x={},Ox={};function Mx(){return Lx||(Lx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="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.arePathsEqual=function(e,t){if(e===t)return!0;if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var i=0;i<e.length;++i)if(e[i]!==t[i]){if(!n(e[i])||!n(t[i]))return!1;if(t[i].lat!==e[i].lat||t[i].lng!==e[i].lng)return!1}return!0};var n=function(e){return null!==e&&"object"===(void 0===e?"undefined":t(e))&&e.hasOwnProperty("lat")&&e.hasOwnProperty("lng")}}(Ox)),Ox}function Rx(){return Ux||(Ux=1,function(e,t,n,i,a){Object.defineProperty(e,"__esModule",{value:!0}),e.Polygon=void 0;var r=l(t),s=l(n);function l(e){return e&&e.__esModule?e:{default:e}}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function d(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function A(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=["click","mouseout","mouseover"],f=function(){var e={},t=new Promise((function(t,n){e.resolve=t,e.reject=n}));return e.then=t.then.bind(t),e.catch=t.catch.bind(t),e.promise=t,e},m=e.Polygon=function(e){function t(){return c(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return A(t,e),u(t,[{key:"componentDidMount",value:function(){this.polygonPromise=f(),this.renderPolygon()}},{key:"componentDidUpdate",value:function(e){this.props.map===e.map&&(0,i.arePathsEqual)(this.props.paths,e.paths)||(this.polygon&&this.polygon.setMap(null),this.renderPolygon())}},{key:"componentWillUnmount",value:function(){this.polygon&&this.polygon.setMap(null)}},{key:"renderPolygon",value:function(){var e=this,t=this.props,n=t.map,i=t.google,a=t.paths,r=t.strokeColor,s=t.strokeOpacity,l=t.strokeWeight,c=t.fillColor,u=t.fillOpacity,p=d(t,["map","google","paths","strokeColor","strokeOpacity","strokeWeight","fillColor","fillOpacity"]);if(!i)return null;var A=o({map:n,paths:a,strokeColor:r,strokeOpacity:s,strokeWeight:l,fillColor:c,fillOpacity:u},p);this.polygon=new i.maps.Polygon(A),h.forEach((function(t){e.polygon.addListener(t,e.handleEvent(t))})),this.polygonPromise.resolve(this.polygon)}},{key:"getPolygon",value:function(){return this.polygonPromise}},{key:"handleEvent",value:function(e){var t=this;return function(n){var i="on"+(0,a.camelize)(e);t.props[i]&&t.props[i](t.props,t.polygon,n)}}},{key:"render",value:function(){return null}}]),t}(r.default.Component);m.propTypes={paths:s.default.array,strokeColor:s.default.string,strokeOpacity:s.default.number,strokeWeight:s.default.number,fillColor:s.default.string,fillOpacity:s.default.number},h.forEach((function(e){return m.propTypes[e]=s.default.func})),m.defaultProps={name:"Polygon"},e.default=m}(_x,a,fx(),Mx(),yx())),_x}var Qx,Hx={};function Vx(){return Qx||(Qx=1,function(e,t,n,i,a){Object.defineProperty(e,"__esModule",{value:!0}),e.Polyline=void 0;var r=l(t),s=l(n);function l(e){return e&&e.__esModule?e:{default:e}}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function d(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function A(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=["click","mouseout","mouseover"],f=function(){var e={},t=new Promise((function(t,n){e.resolve=t,e.reject=n}));return e.then=t.then.bind(t),e.catch=t.catch.bind(t),e.promise=t,e},m=e.Polyline=function(e){function t(){return c(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return A(t,e),u(t,[{key:"componentDidMount",value:function(){this.polylinePromise=f(),this.renderPolyline()}},{key:"componentDidUpdate",value:function(e){this.props.map===e.map&&(0,i.arePathsEqual)(this.props.path,e.path)||(this.polyline&&this.polyline.setMap(null),this.renderPolyline())}},{key:"componentWillUnmount",value:function(){this.polyline&&this.polyline.setMap(null)}},{key:"renderPolyline",value:function(){var e=this,t=this.props,n=t.map,i=t.google,a=t.path,r=t.strokeColor,s=t.strokeOpacity,l=t.strokeWeight,c=d(t,["map","google","path","strokeColor","strokeOpacity","strokeWeight"]);if(!i)return null;var u=o({map:n,path:a,strokeColor:r,strokeOpacity:s,strokeWeight:l},c);this.polyline=new i.maps.Polyline(u),h.forEach((function(t){e.polyline.addListener(t,e.handleEvent(t))})),this.polylinePromise.resolve(this.polyline)}},{key:"getPolyline",value:function(){return this.polylinePromise}},{key:"handleEvent",value:function(e){var t=this;return function(n){var i="on"+(0,a.camelize)(e);t.props[i]&&t.props[i](t.props,t.polyline,n)}}},{key:"render",value:function(){return null}}]),t}(r.default.Component);m.propTypes={path:s.default.array,strokeColor:s.default.string,strokeOpacity:s.default.number,strokeWeight:s.default.number},h.forEach((function(e){return m.propTypes[e]=s.default.func})),m.defaultProps={name:"Polyline"},e.default=m}(Hx,a,fx(),Mx(),yx())),Hx}var zx,qx={};function Wx(){return zx||(zx=1,function(e,t,n,i,a){Object.defineProperty(e,"__esModule",{value:!0}),e.Circle=void 0;var r=l(t),s=l(n);function l(e){return e&&e.__esModule?e:{default:e}}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function d(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function A(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=["click","mouseout","mouseover"],f=function(){var e={},t=new Promise((function(t,n){e.resolve=t,e.reject=n}));return e.then=t.then.bind(t),e.catch=t.catch.bind(t),e.promise=t,e},m=e.Circle=function(e){function t(){var e,n,i;c(this,t);for(var a=arguments.length,r=Array(a),s=0;s<a;s++)r[s]=arguments[s];return n=i=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),i.centerChanged=function(e){var t=i.props.center,n=t.lat,a=t.lng;return n!==e.lat||a!==e.lng},i.propsChanged=function(e){return!!i.centerChanged(e.center)||Object.keys(t.propTypes).some((function(t){return i.props[t]!==e[t]}))},i.destroyCircle=function(){i.circle&&i.circle.setMap(null)},p(i,n)}return A(t,e),u(t,[{key:"componentDidMount",value:function(){this.circlePromise=f(),this.renderCircle()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.path,a=t.map;!this.propsChanged(e)&&a===e.map&&(0,i.arePathsEqual)(n,e.path)||(this.destroyCircle(),this.renderCircle())}},{key:"componentWillUnmount",value:function(){this.destroyCircle()}},{key:"renderCircle",value:function(){var e=this,t=this.props,n=t.map,i=t.google,a=t.center,r=t.radius,s=t.strokeColor,l=t.strokeOpacity,c=t.strokeWeight,u=t.fillColor,p=t.fillOpacity,A=t.draggable,f=t.visible,m=d(t,["map","google","center","radius","strokeColor","strokeOpacity","strokeWeight","fillColor","fillOpacity","draggable","visible"]);if(!i)return null;var v=o({},m,{map:n,center:a,radius:r,draggable:A,visible:f,options:{strokeColor:s,strokeOpacity:l,strokeWeight:c,fillColor:u,fillOpacity:p}});this.circle=new i.maps.Circle(v),h.forEach((function(t){e.circle.addListener(t,e.handleEvent(t))})),this.circlePromise.resolve(this.circle)}},{key:"getCircle",value:function(){return this.circlePromise}},{key:"handleEvent",value:function(e){var t=this;return function(n){var i="on"+(0,a.camelize)(e);t.props[i]&&t.props[i](t.props,t.circle,n)}}},{key:"render",value:function(){return null}}]),t}(r.default.Component);m.propTypes={center:s.default.object,radius:s.default.number,strokeColor:s.default.string,strokeOpacity:s.default.number,strokeWeight:s.default.number,fillColor:s.default.string,fillOpacity:s.default.number,draggable:s.default.bool,visible:s.default.bool},h.forEach((function(e){return m.propTypes[e]=s.default.func})),m.defaultProps={name:"Circle"},e.default=m}(qx,a,fx(),Mx(),yx())),qx}var Yx,Kx,Gx={},$x={};function Xx(){return Yx||(Yx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="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.areBoundsEqual=function(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;if(!n(e)||!n(t))return!1;var i=!0,a=!1,r=void 0;try{for(var s,l=Object.keys(e)[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var o=s.value;if(e[o]!==t[o])return!1}}catch(d){a=!0,r=d}finally{try{!i&&l.return&&l.return()}finally{if(a)throw r}}return!0};var n=function(e){return null!==e&&"object"===(void 0===e?"undefined":t(e))&&e.hasOwnProperty("north")&&e.hasOwnProperty("south")&&e.hasOwnProperty("east")&&e.hasOwnProperty("west")}}($x)),$x}function Jx(){return Kx||(Kx=1,function(e,t,n,i,a){Object.defineProperty(e,"__esModule",{value:!0}),e.Rectangle=void 0;var r=l(t),s=l(n);function l(e){return e&&e.__esModule?e:{default:e}}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function d(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function A(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=["click","mouseout","mouseover"],f=function(){var e={},t=new Promise((function(t,n){e.resolve=t,e.reject=n}));return e.then=t.then.bind(t),e.catch=t.catch.bind(t),e.promise=t,e},m=e.Rectangle=function(e){function t(){return c(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return A(t,e),u(t,[{key:"componentDidMount",value:function(){this.rectanglePromise=f(),this.renderRectangle()}},{key:"componentDidUpdate",value:function(e){this.props.map===e.map&&(0,i.areBoundsEqual)(this.props.bounds,e.bounds)||(this.rectangle&&this.rectangle.setMap(null),this.renderRectangle())}},{key:"componentWillUnmount",value:function(){this.rectangle&&this.rectangle.setMap(null)}},{key:"renderRectangle",value:function(){var e=this,t=this.props,n=t.map,i=t.google,a=t.bounds,r=t.strokeColor,s=t.strokeOpacity,l=t.strokeWeight,c=t.fillColor,u=t.fillOpacity,p=d(t,["map","google","bounds","strokeColor","strokeOpacity","strokeWeight","fillColor","fillOpacity"]);if(!i)return null;var A=o({map:n,bounds:a,strokeColor:r,strokeOpacity:s,strokeWeight:l,fillColor:c,fillOpacity:u},p);this.rectangle=new i.maps.Rectangle(A),h.forEach((function(t){e.rectangle.addListener(t,e.handleEvent(t))})),this.rectanglePromise.resolve(this.rectangle)}},{key:"getRectangle",value:function(){return this.rectanglePromise}},{key:"handleEvent",value:function(e){var t=this;return function(n){var i="on"+(0,a.camelize)(e);t.props[i]&&t.props[i](t.props,t.rectangle,n)}}},{key:"render",value:function(){return null}}]),t}(r.default.Component);m.propTypes={bounds:s.default.object,strokeColor:s.default.string,strokeOpacity:s.default.number,strokeWeight:s.default.number,fillColor:s.default.string,fillOpacity:s.default.number},h.forEach((function(e){return m.propTypes[e]=s.default.func})),m.defaultProps={name:"Rectangle"},e.default=m}(Gx,a,fx(),Xx(),yx())),Gx}var Zx,eb={};function tb(){return Zx||(Zx=1,e=eb,Object.defineProperty(e,"__esModule",{value:!0}),e.makeCancelable=function(e){var t=!1;return{promise:new Promise((function(n,i){e.then((function(e){return t?i({isCanceled:!0}):n(e)})),e.catch((function(e){return i(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}}),eb;var e}!function(e,t,n,i,a,r,s,l,o,d,c,u,p,A){Object.defineProperty(e,"__esModule",{value:!0}),e.Map=e.Rectangle=e.Circle=e.Polyline=e.Polygon=e.HeatMap=e.InfoWindow=e.Marker=e.GoogleApiWrapper=void 0,Object.defineProperty(e,"GoogleApiWrapper",{enumerable:!0,get:function(){return t.wrapper}}),Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return n.Marker}}),Object.defineProperty(e,"InfoWindow",{enumerable:!0,get:function(){return i.InfoWindow}}),Object.defineProperty(e,"HeatMap",{enumerable:!0,get:function(){return a.HeatMap}}),Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return r.Polygon}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return s.Polyline}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return l.Circle}}),Object.defineProperty(e,"Rectangle",{enumerable:!0,get:function(){return o.Rectangle}});var h=v(d),f=v(c),m=v(u);function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function x(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w={container:{position:"absolute",width:"100%",height:"100%"},map:{position:"absolute",left:0,right:0,bottom:0,top:0}},j=["ready","click","dragend","recenter","bounds_changed","center_changed","dblclick","dragstart","heading_change","idle","maptypeid_changed","mousemove","mouseout","mouseover","projection_changed","resize","rightclick","tilesloaded","tilt_changed","zoom_changed"],C=e.Map=function(e){function t(e){g(this,t);var n=x(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(!e.hasOwnProperty("google"))throw new Error("You must include a `google` prop");return n.listeners={},n.state={currentLocation:{lat:n.props.initialCenter.lat,lng:n.props.initialCenter.lng}},n.mapRef=h.default.createRef(),n}return b(t,e),y(t,[{key:"componentDidMount",value:function(){var e=this;this.props.centerAroundCurrentLocation&&navigator&&navigator.geolocation&&(this.geoPromise=(0,A.makeCancelable)(new Promise((function(e,t){navigator.geolocation.getCurrentPosition(e,t)}))),this.geoPromise.promise.then((function(t){var n=t.coords;e.setState({currentLocation:{lat:n.latitude,lng:n.longitude}})})).catch((function(e){return e}))),this.loadMap()}},{key:"componentDidUpdate",value:function(e,t){e.google!==this.props.google&&this.loadMap(),this.props.visible!==e.visible&&this.restyleMap(),this.props.zoom!==e.zoom&&this.map.setZoom(this.props.zoom),this.props.center!==e.center&&this.setState({currentLocation:this.props.center}),t.currentLocation!==this.state.currentLocation&&this.recenterMap(),this.props.bounds&&this.props.bounds!==e.bounds&&this.map.fitBounds(this.props.bounds)}},{key:"componentWillUnmount",value:function(){var e=this,t=this.props.google;this.geoPromise&&this.geoPromise.cancel(),Object.keys(this.listeners).forEach((function(n){t.maps.event.removeListener(e.listeners[n])}))}},{key:"loadMap",value:function(){var e=this;if(this.props&&this.props.google){var t=this.props.google.maps,n=this.mapRef.current,i=m.default.findDOMNode(n),a=this.state.currentLocation,r=new t.LatLng(a.lat,a.lng),s=this.props.google.maps.MapTypeId||{},l=String(this.props.mapType).toUpperCase(),o=Object.assign({},{mapTypeId:s[l],center:r,zoom:this.props.zoom,maxZoom:this.props.maxZoom,minZoom:this.props.minZoom,clickableIcons:!!this.props.clickableIcons,disableDefaultUI:this.props.disableDefaultUI,zoomControl:this.props.zoomControl,zoomControlOptions:this.props.zoomControlOptions,mapTypeControl:this.props.mapTypeControl,mapTypeControlOptions:this.props.mapTypeControlOptions,scaleControl:this.props.scaleControl,streetViewControl:this.props.streetViewControl,streetViewControlOptions:this.props.streetViewControlOptions,panControl:this.props.panControl,rotateControl:this.props.rotateControl,fullscreenControl:this.props.fullscreenControl,scrollwheel:this.props.scrollwheel,draggable:this.props.draggable,draggableCursor:this.props.draggableCursor,keyboardShortcuts:this.props.keyboardShortcuts,disableDoubleClickZoom:this.props.disableDoubleClickZoom,noClear:this.props.noClear,styles:this.props.styles,gestureHandling:this.props.gestureHandling});Object.keys(o).forEach((function(e){null===o[e]&&delete o[e]})),this.map=new t.Map(i,o),j.forEach((function(t){e.listeners[t]=e.map.addListener(t,e.handleEvent(t))})),t.event.trigger(this.map,"ready"),this.forceUpdate()}}},{key:"handleEvent",value:function(e){var t=this,n=void 0,i="on"+(0,p.camelize)(e);return function(e){n&&(clearTimeout(n),n=null),n=setTimeout((function(){t.props[i]&&t.props[i](t.props,t.map,e)}),0)}}},{key:"recenterMap",value:function(){var e=this.map,t=this.props.google;if(t){var n=t.maps;if(e){var i=this.state.currentLocation;i instanceof t.maps.LatLng||(i=new t.maps.LatLng(i.lat,i.lng)),e.setCenter(i),n.event.trigger(e,"recenter")}}}},{key:"restyleMap",value:function(){this.map&&this.props.google.maps.event.trigger(this.map,"resize")}},{key:"renderChildren",value:function(){var e=this,t=this.props.children;if(t)return h.default.Children.map(t,(function(t){if(t)return h.default.cloneElement(t,{map:e.map,google:e.props.google,mapCenter:e.state.currentLocation})}))}},{key:"render",value:function(){var e=Object.assign({},w.map,this.props.style,{display:this.props.visible?"inherit":"none"}),t=Object.assign({},w.container,this.props.containerStyle);return h.default.createElement("div",{style:t,className:this.props.className},h.default.createElement("div",{style:e,ref:this.mapRef},"Loading map..."),this.renderChildren())}}]),t}(h.default.Component);C.propTypes={google:f.default.object,zoom:f.default.number,centerAroundCurrentLocation:f.default.bool,center:f.default.object,initialCenter:f.default.object,className:f.default.string,style:f.default.object,containerStyle:f.default.object,visible:f.default.bool,mapType:f.default.string,maxZoom:f.default.number,minZoom:f.default.number,clickableIcons:f.default.bool,disableDefaultUI:f.default.bool,zoomControl:f.default.bool,zoomControlOptions:f.default.object,mapTypeControl:f.default.bool,mapTypeControlOptions:f.default.bool,scaleControl:f.default.bool,streetViewControl:f.default.bool,streetViewControlOptions:f.default.object,panControl:f.default.bool,rotateControl:f.default.bool,fullscreenControl:f.default.bool,scrollwheel:f.default.bool,draggable:f.default.bool,draggableCursor:f.default.string,keyboardShortcuts:f.default.bool,disableDoubleClickZoom:f.default.bool,noClear:f.default.bool,styles:f.default.array,gestureHandling:f.default.string,bounds:f.default.object},j.forEach((function(e){return C.propTypes[(0,p.camelize)(e)]=f.default.func})),C.defaultProps={zoom:14,initialCenter:{lat:37.774929,lng:-122.419416},center:{},centerAroundCurrentLocation:!1,style:{},containerStyle:{},visible:!0},e.default=C}($y,sx(),xx(),kx(),Dx(),Rx(),Vx(),Wx(),Jx(),a,fx(),r,yx(),tb());class nb extends a.Component{constructor(e){super(e),i(this,"addMarker",((e,t)=>{this.setState({fields:{location:{lat:e.lat(),lng:e.lng()}}}),t.panTo(e),this.props.onMarkerClick(e)})),this.state={fields:e.prevlca?{location:e.prevlca}:{location:{}},currentLocation:!!e.prevlca&&e.prevlca}}async componentDidMount(){if(0===Object.keys(this.state.fields.location).length){const{lat:e,lng:t}=await this.getcurrentLocation();this.setState((n=>({fields:{...n.fields,location:{lat:e,lng:t}},currentLocation:{lat:e,lng:t}})))}}getcurrentLocation(){return navigator&&navigator.geolocation?new Promise(((e,t)=>{navigator.geolocation.getCurrentPosition((t=>{const n=t.coords;e({lat:n.latitude,lng:n.longitude})}))})):{lat:0,lng:0}}render(){const{lat:e=0,lng:t=0}=this.state.fields.location;return Ye.jsx("div",{children:Ye.jsx($y.Map,{google:this.props.google,style:{width:"100%",height:"100%"},initialCenter:{lat:e||0,lng:t||0},center:{lat:e||0,lng:t||0},zoom:14,mapTypeId:"roadmap",onClick:(e,t,n)=>{this.addMarker(n.latLng,t)},children:Ye.jsx($y.Marker,{tooltip:!0,name:"Your Position",position:this.state.fields.location,onClick:this.props.onMarkerClick})})})}}const ib=$y.GoogleApiWrapper({apiKey:"AIzaSyB6w_WDy6psJ5HPX15Me1-o6CkS5jTYWnE"})(nb),ab=({title:e})=>Ye.jsxs("h1",{className:"formHeader",children:[" ",e]}),rb="https://www.pozo.dev/pozo-common-api",sb=iA("UserType"),lb=Ja("company/getCompanyData",(async()=>await Ne.get(`${rb}/company`))),ob=Ja("company/getCompanyDataUsingAppId",(async e=>await Ne.get(`${rb}/company?appId=${e}&Type=A`))),db=Ja("company/getUserRoles",(async()=>await fA.get("/configMaster?ActiveStatus=A&TypeName=User Role"))),cb=Ja("company/getActiveCompanyData",(async e=>null!=e&&null!=e?await Ne.get(`${rb}/company?UserId=${e}`):await Ne.get(`${rb}/company?ActiveStatus=A`))),ub=Ja("company/postCompanyData",(async e=>await fA.post("/company",e))),pb=Ja("company/putCompanyData",(async e=>await fA.put("/company",e))),Ab=Ja("company/deleteCompanyData",(async e=>await fA.delete("/company",{params:e}))),hb=Ja("login/getAdminNames",(async()=>await fA.get("/login?Type=Admin"))),fb=Ja("company/getAdminUsers",(async e=>{if(null!=e&&null!=e)return await Ne.get(`${rb}/company?UserId=${e}`)})),mb=Ja("userAppMap/getApplications",(async e=>null!=e&&null!=e?await fA.get(`/userAppMap?UserId=${e}`):await fA.get("/userAppMap"))),vb=Ja("userAppMap/checkTrialCompany",(async e=>{if(null!=e.AppId&&null!=e.AppId&&null!=e.UserId&&null!=e.UserId)return await fA.get(`/userAppMap?AppId=${e.AppId}&UserId=${e.UserId}`)})),gb=Ja("Gst/gstNumberDetail",(async e=>await hA.get(`/Gst?gstNo=${e}`))),yb=Ya({name:"company",initialState:{companyData:[],companyActiveData:[],AdminNames:[],AdminUsers:[],ApplicationNames:[],CompanyCounts:[]},extraReducers:e=>{e.addCase(lb.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.companyData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.companyData=[]})),e.addCase(cb.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.companyActiveData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.companyActiveData=[]})),e.addCase(hb.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.AdminNames=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.AdminNames=[]})),e.addCase(fb.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.AdminUsers=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.AdminUsers=[]})),e.addCase(mb.fulfilled,((e,t)=>{var n,i,a,r,s,l;if(null==(n=null==t?void 0:t.payload)?void 0:n.status)if("Admin"===sb||"Admin User"===sb){let n=new Date,s=null==(r=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data)?void 0:r.filter((e=>new Date(e.ValidityEnd)>=n));e.ApplicationNames=s}else e.ApplicationNames=null==(l=null==(s=null==t?void 0:t.payload)?void 0:s.data)?void 0:l.data;else e.ApplicationNames=[]})),e.addCase(vb.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.CompanyCounts=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.CompanyCounts=[]}))}}),xb=e=>{var t;return null==(t=e.companyPage)?void 0:t.companyData},bb=e=>{var t;return null==(t=e.companyPage)?void 0:t.companyActiveData},wb=e=>{var t;return null==(t=e.companyPage)?void 0:t.AdminNames},jb=e=>{var t;return null==(t=e.companyPage)?void 0:t.AdminUsers},Cb=e=>{var t;return null==(t=e.companyPage)?void 0:t.ApplicationNames},Sb=yb.reducer,Nb="https://www.pozo.dev/pozo-common-api",Ib=Ja("application/getApplicationData",(async()=>await Ne.get(`${Nb}/application`))),Fb=Ja("application/getActiveApplicationData",(async()=>await Ne.get(`${Nb}/application?ActiveStatus=A`))),Bb=Ja("application/postApplicationData",(async e=>await fA.post("/application",e))),Pb=Ja("application/putApplicationData",(async e=>await fA.put("/application",e))),kb=Ja("application/deleteApplicationData",(async e=>await fA.delete("/application",{params:e}))),Tb=Ja("configMaster/getCategoryData",(async()=>await fA.get("/configMaster?ActiveStatus=A&TypeName=Module"))),Eb=Ja("configMaster/getSubCategoryData",(async()=>await fA.get("/configMaster?ActiveStatus=A&TypeName=Sub Module"))),Db=Ja("configMaster/getSubCategoryData",(async()=>await fA.get("/configMaster?ActiveStatus=A&TypeName=Master Access"))),Lb=Ya({name:"application",initialState:{applicationData:[],applicationActiveData:[],categoryData:[],subCategoryData:[]},extraReducers:e=>{e.addCase(Ib.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.applicationData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.applicationData=[]})),e.addCase(Fb.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.applicationActiveData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.applicationActiveData=[]})),e.addCase(Tb.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.categoryData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.categoryData=[]})),e.addCase(Eb.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.subCategoryData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.subCategoryData=[]}))}}),Ub=e=>{var t;return null==(t=e.applicationPage)?void 0:t.applicationData},_b=e=>{var t;return null==(t=e.applicationPage)?void 0:t.applicationActiveData},Ob=e=>{var t;return null==(t=e.applicationPage)?void 0:t.categoryData},Mb=e=>{var t;return null==(t=e.applicationPage)?void 0:t.subCategoryData},Rb=Lb.reducer;S.extend(N);const Qb="/home/",Hb=({formType:e})=>{var t,n,i,r,s,l,o;const d=Qt(),c=um(),u=Mt(),p=a.useRef(null),A=null==u?void 0:u.state,h=null==A?void 0:A.editstate,{RangePicker:f}=T,[m,v]=a.useState(null),[g,y]=a.useState(null),[x,b]=a.useState(!1),[w,j]=a.useState(!1),[C,N]=a.useState(""),[E,D]=a.useState(null),[L,U]=a.useState(null),[_,O]=a.useState(null),[M,R]=a.useState(null),[Q,H]=a.useState(null),[V,z]=a.useState(null),[q,W]=a.useState(null),[Y,K]=a.useState(null),[G,$]=a.useState(null),[X,J]=a.useState(),[Z,ee]=a.useState(!1),[te,ne]=a.useState(null),[ie,ae]=a.useState(null),[re,se]=a.useState(!0),[le,oe]=a.useState([]),[de,ce]=a.useState("Date"),[ue,pe]=a.useState([]),[Ae,he]=a.useState([]),[fe,me]=a.useState(null),[ve,ge]=a.useState(!1),ye=iA("UserType"),xe=iA("UserId"),be=Tf(wb),we=Tf(Cb),je=Tf(Gg),[Ce,Se]=a.useState({}),Ne=[{name:"Financial Year"},{name:"Calender Year"},{name:"Date"}];a.useEffect((()=>{if("Financial Year"!==de||h){if("Calender Year"===de&&!h){const e=Fe("DD-MM-YYYY");let[t,n]=e.split(" - ");ne(S(t,"DD-MM-YYYY").format("YYYY-MM-DD")),ae(S(n,"DD-MM-YYYY").format("YYYY-MM-DD"))}}else{const e=Ie("DD-MM-YYYY");let[t,n]=e.split(" - ");ne(S(t,"DD-MM-YYYY").format("YYYY-MM-DD")),ae(S(n,"DD-MM-YYYY").format("YYYY-MM-DD"))}}),[de,h]);const Ie=(e="DD-MM-YYYY")=>{const t=S(),n=t.year();let i,a;return t.month()+1>=4?(i=S(`${n}-04-01`),a=S(`${n+1}-03-31`)):(i=S(n-1+"-04-01"),a=S(`${n}-03-31`)),`${i.format(e)} - ${a.format(e)}`},Fe=(e="DD-MM-YYYY")=>{const t=S().year(),n=S(`${t}-01-01`),i=S(`${t}-12-31`);return`${n.format(e)} - ${i.format(e)}`},Be=[{name:"Home",link:`${Qb}landing-page/home`},{name:"Company",link:`${Qb}setting/company-master`},{name:h?"Edit":"New",link:null}];a.useEffect((()=>{var t,n,i;null==(t=p.current)||t.setFieldsValue({FinancialYear:"Date"}),c(Gh({items:Be})),"edit"===e&&h&&(h.Latitude=h.Latitude?h.Latitude:null,h.Longitude=h.Longitude?h.Longitude:null,se(!1),null!=(null==h?void 0:h.AddId)&&0!=(null==h?void 0:h.AddId)&&b(!0),N(null==h?void 0:h.CompLogo),(null==h?void 0:h.Zip)&&j(!0),D(null==h?void 0:h.UserId),U(null==h?void 0:h.AppId),me(null==h?void 0:h.BusinessCategory),ee("Y"==(null==h?void 0:h.FYStatus)),null==(n=p.current)||n.setFieldsValue({BusinessType:null==h?void 0:h.BusinessCategory}),K(null==h?void 0:h.BusiBrief),null==(i=p.current)||i.setFieldsValue({BusiBrief:null==h?void 0:h.BusiBrief})),c(hb()).unwrap(),"Admin"===ye?c(mb(xe)).unwrap():"Super Admin"===ye&&c(mb()).unwrap(),(async()=>{var e,t;let n=await c(Fb()).unwrap();1===(null==(e=null==n?void 0:n.data)?void 0:e.statusCode)?he(null==(t=null==n?void 0:n.data)?void 0:t.data):he()})()}),[]),a.useEffect((()=>{var e,t,n;if(E){const i=null==we?void 0:we.filter((e=>e.UserId===E)),a=Array.from(null==i?void 0:i.reduce(((e,t)=>{if("Active"===t.Status){const n=`${t.AppId}-${t.AppName}`;e.has(n)||e.set(n,t)}return e}),new Map).values());if(oe(a),1===(null==a?void 0:a.length)){ge(!0);const t=a[0].AppId;U(t),me(null==(e=a[0])?void 0:e.BusinessCategory),O(a[0].AppName),Te(a[0].AppId)}else oe(a),h&&(U(null==h?void 0:h.AppId),me(null==h?void 0:h.BusinessCategory),O(null==h?void 0:h.AppName),null==(t=p.current)||t.setFieldsValue({AppId:null==h?void 0:h.AppId}),null==(n=p.current)||n.setFieldsValue({BusinessType:null==h?void 0:h.BusinessCategory}),Te(null==h?void 0:h.AppId))}else oe([])}),[E,we]),a.useEffect((()=>{if("Admin"===ye){if(1===we.length){const e=we[0].AppId;U(e),ge(!0),O(we[0].AppName),Te(e)}}else c(hb()).unwrap()}),[ye,we,xe]);const Pe=a.useCallback((()=>{y(null),v(null)}),[]),ke=e=>{var t;e?b(!0):(b(!1),h||(R(null),H(null),null==(t=p.current)||t.setFieldsValue({City:null,Dist:null,State:null,Zip:null,Latitude:null,Longitude:null})))},Te=async e=>{var t,n,i,a,r,s,l,o,u,A,f,m,v,g,y,x,b,w,j,C,S;let N=("Super Admin"===ye||"Super Admin User"===ye?le:we).filter((t=>t.AppId==e));"Payroll"==(null==(t=null==N?void 0:N[0])?void 0:t.AppName)&&O(null==(n=null==N?void 0:N[0])?void 0:n.AppName);var I=[];if(1!=(null==(i=(I="Admin"===ye?await c(vb({UserId:xe,AppId:e})).unwrap():await c(vb({UserId:E,AppId:e})).unwrap()).data)?void 0:i.statusCode)||h)se(!1);else{const t=null==(a=I.data)?void 0:a.data[0],n=null==(s=null==(r=I.data)?void 0:r.data)?void 0:s.length,i=t.MobileNo;if(null==(l=p.current)||l.setFieldsValue({CompMobile:i}),$(i),t)if("FREE"!=t.PricingName.toUpperCase()&&0==t.CompanyCount)await U(e),null==(o=p.current)||o.setFieldsValue({AppId:e}),se(!1);else if("FREE"==t.PricingName.toUpperCase()&&t.CompanyCount>=1)n>1?se(!0):setTimeout((function(){d(`${Qb}setting/company-master/`,{state:{Notiffy:{messageType:"error",messageData:"Your Trial Period is Expired Please Choose Extend Pack To Add Company "}}},700)}));else if("FREE"!=t.PricingName.toUpperCase()){let n=null==(u=null==t?void 0:t.FeatureDetails)?void 0:u.filter((e=>"Company"===e.FeatName?e.FeatConstraint:0));(n.length>0?null==(A=n[0])?void 0:A.FeatConstraint:0)>t.CompanyCount?(await U(e),null==(f=p.current)||f.setFieldsValue({AppId:e}),se(!1)):setTimeout((function(){d(`${Qb}setting/company-master/`,{state:{Notiffy:{messageType:"error",messageData:"Your Feature Constraint is Completed! "}}},700)}))}else se(!1),await U(e),null==(m=p.current)||m.setFieldsValue({AppId:e});else se(!1),await U(e),null==(v=p.current)||v.setFieldsValue({AppId:e})}let F=(null==(x=null==(y=null==(g=null==I?void 0:I.data)?void 0:g.data)?void 0:y[0])?void 0:x.BranchCount)<(null==(S=null==(C=null==(j=null==(w=null==(b=null==I?void 0:I.data)?void 0:b.data)?void 0:w[0])?void 0:j.FeatureDetails)?void 0:C.find((e=>"Branch"===e.FeatName)))?void 0:S.FeatConstraint)?"Y":"N";J(F)};const Ee=async(e,t)=>{var n,i,a,r,s;pe(e);const l=(null==(n=null==e?void 0:e[0])?void 0:n.format("YYYY-MM-DD"))||null,o=(null==(i=null==e?void 0:e[1])?void 0:i.format("YYYY-MM-DD"))||null;if(t[0]){const[n,i]=t[0].split("-"),s=`${null==(a=null==e?void 0:e[0])?void 0:a.year()}-${i}-${n}`;ne(l),null==(r=p.current)||r.setFieldsValue({DateFormat:s})}else ne(null);t[1]?(t[1].split("-"),null==(s=null==e?void 0:e[1])||s.year(),ae(o)):ae(null)};return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:m,messageData:g,onComplete:Pe}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Company"})}),Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:p,className:"formDivAnt",onFinish:async t=>{var n,i,a;if((null==t?void 0:t.Zip)&&null!==(null==t?void 0:t.Zip)&&!w)return v("error"),void y("Invalid ZipCode");let r=t;r.CompLogo=C,r.CreatedBy=iA("UserId"),r.UserId=t.UserId||iA("UserId"),r.Branch=X,r.FYStatus=Z?"Y":"N",r.FYStartsFrom=te,r.FYType=Z?null==t?void 0:t.FinancialYear:null,r.FYEnds=ie,r.BusinessCategory=fe;let s={};if("add"===e)try{s=await c(ub(r)).unwrap()}catch(l){"Request failed with status code 422"==l.message&&(s={data:{statusCode:0,response:"Please Give Required Fields",data:[]}})}else if("edit"===e){h&&x&&(r.CompAddId=null==h?void 0:h.CompAddId,r.AddId=null!=(null==h?void 0:h.AddId)?null==h?void 0:h.AddId:0),h&&!x&&(r.CompAddId=null==h?void 0:h.CompAddId,r.AddId=null!=(null==h?void 0:h.AddId)?null==h?void 0:h.AddId:0,r.Address1=null==h?void 0:h.Address1,r.Address2=null==h?void 0:h.Address2,r.Zip=null==h?void 0:h.Zip,r.City=null==h?void 0:h.City,r.Dist=null==h?void 0:h.Dist,r.State=null==h?void 0:h.State,r.Latitude=null==h?void 0:h.Latitude,r.Longitude=null==h?void 0:h.Longitude,r.UserId=null==h?void 0:h.UserId,r.BusinessCategory=null==h?void 0:h.BusinessCategory),r.CompId=null==h?void 0:h.CompId,r.UpdatedBy=iA("UserId");try{s=await c(pb(r)).unwrap()}catch(l){"Request failed with status code 422"==l.message&&(s={data:{statusCode:0,response:"Please Give Required Fields",data:[]}})}}1==(null==(n=null==s?void 0:s.data)?void 0:n.statusCode)?d(`${Qb}setting/company-master/`,{state:{Notiffy:{messageType:"success",messageData:null==(i=null==s?void 0:s.data)?void 0:i.response}}}):(v("error"),y(null==(a=null==s?void 0:s.data)?void 0:a.response))},initialValues:h,children:[Ye.jsxs("div",{className:"formDivS",children:[Ye.jsxs("div",{className:"inputForm",children:["Super Admin"===ye||"Super Admin User"===ye?Ye.jsx(I.Item,{name:"UserId",rules:[{required:!0,message:"Please Select Admin Name "}],children:Ye.jsx(_y,{options:null==be?void 0:be.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?null==e?void 0:e.UserName:e.MobileNo}))),placeholder:"UserId",label:"Admin Name",className:"field-DropDown",isOnchanges:!("edit"!=e&&!E),onChangeFunction:async e=>{var t;null==(t=p.current)||t.setFieldsValue({UserId:e}),U(null),O(null),await D(e)},valueData:E,disabled:"edit"==e})}):null,"Super Admin"===ye||"Super Admin User"===ye?Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application "}],children:Ye.jsx(_y,{options:null==le?void 0:le.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"AppId",label:Ye.jsx("label",{className:"required",children:"Application "}),className:"field-DropDown",isOnchanges:!("edit"!=e&&!L),onChangeFunction:Te,valueData:L,disabled:!("edit"!=e&&!ve)})}):Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application "}],children:Ye.jsx(_y,{options:null==we?void 0:we.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"AppId",label:Ye.jsx("label",{className:"required",children:"Application"}),className:"field-DropDown",isOnchanges:!!L,onChangeFunction:Te,valueData:L,disabled:!("edit"!=e&&!ve)})}),"Payroll"==_&&L&&Ye.jsx(I.Item,{name:"BusinessType",rules:[{required:!0,message:"Please Select Business Type "}],children:Ye.jsx(_y,{options:null==Ae?void 0:Ae.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"AppId",label:Ye.jsx("label",{className:"required",children:"Business Type"}),className:"field-DropDown",onChangeFunction:e=>{var t;null==(t=p.current)||t.setFieldsValue({BusinessType:e}),me(e)},valueData:fe})}),Ye.jsxs(I.Item,{name:"CompGSTIN",rules:[{pattern:/^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Za-z]{1}[Z]{1}[0-9A-Za-z]{1}$/,message:"Please Enter Valid GST"}],children:[void 0,Ye.jsx(Oy,{field:"CompGSTIN",autoComplete:"off",label:"GST",fieldState:!0,fieldApi:!0,value:null==(t=null==Ce?void 0:Ce[0])?void 0:t.CompLegalName,isOnChange:"edit"==e,onChange:e=>(async e=>{var t,n,i,a,r,s,l,o,d,u,A;if(!e||15!==e.length)return null==(t=p.current)||t.resetFields(["CompName"]),z(null),Se([]),void p.current.resetFields([{name:"CompGSTIN",errors:["GSTIN not found or invalid."]}]);try{const t=await c(gb(e)).unwrap();if(1===(null==(n=null==t?void 0:t.data)?void 0:n.statusCode)){const e=null==(i=null==t?void 0:t.data)?void 0:i.data,n=null==(r=null==(a=null==e?void 0:e.enrichment_details)?void 0:a.online_provider)?void 0:r.details;if(n){const e=(null==(s=n.legal_name)?void 0:s.value)||"",t=(null==(l=n.registration_date)?void 0:l.value)||"",i=(null==(o=n.status)?void 0:o.value)||"";Se([{CompLegalName:e,CompRegDate:t,CompStatus:i}]),p.current.setFields([{name:"CompGSTIN",errors:[]}]),null==(d=p.current)||d.setFieldsValue({CompName:e}),W(e)}else Se([]),p.current.setFields([{name:"CompGSTIN",errors:["GSTIN not found or invalid."]}])}else Se([]),null==(u=p.current)||u.resetFields(["CompName"]),z(null),p.current.setFields([{name:"CompGSTIN",errors:["No GST Details found"]}])}catch(h){Se([]),null==(A=p.current)||A.resetFields(["CompName"]),z(null),p.current.setFields({name:"CompGSTIN",errors:["Error fetching GST details. Try again later."]})}})(e.target.value)})]}),Ye.jsx("div",{children:(null==Ce?void 0:Ce.length)>0&&Ye.jsxs("div",{className:"gstDetails",style:{backgroundColor:"#e2e2e2ff",padding:"16px",marginBottom:"6px",borderRadius:"6px",display:"flex",flexDirection:"column",gap:"5px"},children:[Ye.jsxs("p",{children:[" ",Ye.jsx("strong",{style:{color:"#494949"},children:"Reg Name : "})," ",null==(n=null==Ce?void 0:Ce[0])?void 0:n.CompLegalName]}),Ye.jsxs("p",{children:[" ",Ye.jsx("strong",{style:{color:"#494949"},children:" Reg Date : "}),(null==(i=null==Ce?void 0:Ce[0])?void 0:i.CompRegDate)&&eA(null==(r=null==Ce?void 0:Ce[0])?void 0:r.CompRegDate)]}),Ye.jsxs("p",{children:[" ",Ye.jsx("strong",{style:{color:"#494949"},children:" Reg Status : "}),null==(s=null==Ce?void 0:Ce[0])?void 0:s.CompStatus]})]})}),Ye.jsx(I.Item,{name:"CompName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Company "},{validator:async(e,t)=>(await lA(t),t&&t.length>50?Promise.reject("Company should not exceed 50 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"CompName",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Company"}),fieldState:!0,fieldApi:!0,isOnChange:!("edit"!=e&&!q),onChange:e=>{var t,n;const i=function(e){const t=e.split(" ");let n="";for(let i=0;i<t.length;i++){const e=t[i];e.length>0&&(n+=e.substring(0,2))}return n.toUpperCase()}(null==(t=null==e?void 0:e.target)?void 0:t.value);(null==i?void 0:i.length)<5&&(null==(n=p.current)||n.setFieldsValue({CompShName:i}),z(i))}})}),Ye.jsx(I.Item,{name:"CompShName",rules:[{required:!0,pattern:/^[^\s]{1,4}$/,message:"Please Enter Short Name"},{validator:async(e,t)=>(await lA(t),t&&t.length<=4?Promise.resolve():Promise.reject("Short Name should not exceed 4 characters"))}],children:Ye.jsx(Oy,{field:"CompShName",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Short Name"}),fieldState:!0,fieldApi:!0,isOnChange:!("edit"!=e&&!V)})}),Ye.jsx(I.Item,{name:"Proprietor",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Proprietor"},{validator:async(e,t)=>(await lA(t),t&&t.length>20?Promise.reject("Proprietor should not exceed 20 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"Proprietor",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Proprietor"}),fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"CompMobile",rules:[{pattern:/^[0-9]{10}$/,message:"Enter a Valid MobileNo"},{pattern:/^[6-9]\d{9}$/,message:"Enter a valid 10-digit mobile number starting with 6-9"}],children:Ye.jsx(Oy,{field:"CompMobile",autoComplete:"off",label:"Mobile",maxlength:"10",fieldState:!0,fieldApi:!0,isOnChange:!("edit"!=e&&!G),inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")})}),Ye.jsx(I.Item,{name:"CompEmail",rules:[{pattern:/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,message:"Enter a valid email address"}],children:Ye.jsx(Oy,{field:"CompEmail",label:"Email",fieldState:!0,fieldApi:!0,isOnChange:"edit"==e,autoComplete:"off"})}),Ye.jsx(I.Item,{name:"CompRegnNo",rules:[{pattern:/^[LU]\d{5}[A-Z]{2}\d{4}(PTC|PLC|OPC|GAP|FTC|FLC|NPL|ULL|SGC|SEC)\d{6}$/,message:"Please enter a valid Registration No (CIN)"},{validator:async(e,t)=>(await lA(t),t&&t.length>35?Promise.reject("Registration No should not exceed 35 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"CompRegnNo",autoComplete:"off",label:"Registration No",fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"CompPOC",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Point of Contact"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"CompPOC",autoComplete:"off",label:"Point of Contact",fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"BusiBrief",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Description"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsxs("div",{className:"busi-desc",style:{display:"flex",alignItems:"flex-start",position:"relative"},children:[Ye.jsx(My,{field:"BusiBrief",autoComplete:"off",fieldState:!0,label:"Description",fieldApi:!0,isOnChange:"edit"===e,value:Y,onChange:e=>{var t,n,i;K(null==(t=null==e?void 0:e.target)?void 0:t.value),null==(i=null==p?void 0:p.current)||i.setFieldsValue({BusiBrief:null==(n=null==e?void 0:e.target)?void 0:n.value})}}),Ye.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"absolute",right:"10px",top:"10px"},children:Ye.jsx(F,{title:"Example: Describe the business objective or purpose in 2-3 sentences.",children:Ye.jsx(B,{style:{marginLeft:8,color:"#1890ff",cursor:"pointer"}})})})]})}),!x&&Ye.jsxs("div",{className:"formAddressDiv",children:[Ye.jsxs(I.Item,{name:"Address",children:[Ye.jsx("p",{children:" Address Details"}),Ye.jsx("br",{})]}),Ye.jsx(Hy,{defaultChecked:!1,functionName:ke})]}),!h&&Ye.jsxs("div",{className:"formAddressDiv",children:[Ye.jsxs(I.Item,{name:"FinancialYear",children:[Ye.jsx("p",{children:" Financial Year"}),Ye.jsx("br",{})]}),Ye.jsx(Hy,{defaultChecked:!(!Z||"Date"!=de),functionName:e=>{ee(!!e)}}),Z&&Ye.jsx(_y,{options:null==Ne?void 0:Ne.map((e=>({value:null==e?void 0:e.name,label:null==e?void 0:e.name}))),placeholder:"AppId",label:Ye.jsx("label",{children:"Calender Format"}),className:"field-DropDown",isOnchanges:de.length>0,onChangeFunction:async e=>{var t;ce(e),ee(!0),null==(t=p.current)||t.setFieldsValue({FinancialYear:e})},valueData:de})]}),!h&&"Date"==de&&Z&&Ye.jsx(I.Item,{name:"DateFormat",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Select Date"}],children:Ye.jsx(P,{direction:"vertical",children:Ye.jsx(f,{value:ue,onCalendarChange:Ee,onChange:Ee,disabledDate:e=>{if(!ue||!ue[0])return!1;const t=ue[0].endOf("month");return e.isSameOrBefore(t,"day")},format:"DD-MMM"})})}),!h&&"Financial Year"==de&&Z&&Ie("DD-MMM"),!h&&"Calender Year"==de&&Z&&Fe("DD-MMM"),Ye.jsxs("div",{className:"upload_btn",children:[Ye.jsx("p",{children:"Upload Logo"}),Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>{N(e)},ImageLink:"edit"==e?null==h?void 0:h.CompLogo:""})]}),!x&&Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),disabled:"Super Admin"!==ye&&(re||"N"===(null==(l=null==je?void 0:je.find((e=>"Company"===(null==e?void 0:e.ConfigName))))?void 0:l.AddAccess)),htmlType:!0})})]}),x&&Ye.jsxs("div",{className:"formAddressDiv",children:[Ye.jsxs(I.Item,{name:"Address",children:[Ye.jsx("p",{children:" Address Details"}),Ye.jsx("br",{})]}),Ye.jsx(Hy,{defaultChecked:!0,functionName:ke})]}),Ye.jsxs("div",{className:"subinputForm",children:[x?Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{children:[Ye.jsx(I.Item,{name:"Address1",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Address1"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Address1",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Address Line1"}),fieldState:!0,fieldApi:!0,isOnChange:!!(null==h?void 0:h.Address1)})}),Ye.jsx(I.Item,{name:"Address2",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Address2"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Address2",autoComplete:"off",label:"Address Line2",fieldState:!0,fieldApi:!0,isOnChange:!!(null==h?void 0:h.Address2)})}),Ye.jsx(I.Item,{name:"Zip",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Zipcode"},{validator:(e,t)=>/(^\d{6}$)|(^\d{5}-\d{4}$)/.test(t)?Promise.resolve():Promise.reject()}],children:Ye.jsx(Oy,{field:"Zip",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Zipcode"}),maxLength:"6",fieldState:!0,fieldApi:!0,isOnChange:!!(null==h?void 0:h.Zip),onChange:async e=>{var t,n;if((null==(t=null==e?void 0:e.target)?void 0:t.value.length)<6)return j(!1),!1;await(async e=>{var t;let n="";await fetch(`https://api.postalpincode.in/pincode/${e}`).then((e=>e.text())).then((e=>n=JSON.parse(e))),"Success"===n[0].Status?(j(!0),null==(t=p.current)||t.setFieldsValue({City:n[0].PostOffice[0].Block,Dist:n[0].PostOffice[0].District,State:n[0].PostOffice[0].State})):j(!1)})(null==(n=null==e?void 0:e.target)?void 0:n.value)},inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")})}),w?Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(I.Item,{name:"City",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"City",disabled:!0,isOnChange:!0,label:"City",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"Dist",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Dist",disabled:!0,isOnChange:!0,label:"District",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"State",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"State",disabled:!0,isOnChange:!0,label:"State",fieldState:!0,fieldApi:!0})})]}):"",Ye.jsx(I.Item,{name:"Latitude",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Latitude"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Latitude",label:"Latitude",autoComplete:"off",isOnChange:!(!M&&!(null==h?void 0:h.Latitude)),fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"Longitude",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Longitude"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Longitude",label:"Longitude",autoComplete:"off",isOnChange:!(!Q&&!(null==h?void 0:h.Longitude)),fieldState:!0,fieldApi:!0})})]})}):"",x?Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"MapDiv",children:Ye.jsx(ib,{onMarkerClick:async e=>{var t;R("function"==typeof e.lat?e.lat():M),H("function"==typeof e.lng?e.lng():Q),null==(t=p.current)||t.setFieldsValue({Latitude:"function"==typeof e.lat?e.lat():M,Longitude:"function"==typeof e.lng?e.lng():Q})},prevlca:h?{lat:h.Latitude,lng:h.Longitude}:null})})}):""]})]}),x&&Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0,disabled:"Super Admin"!==ye&&(re||"N"===(null==(o=null==je?void 0:je.find((e=>"Company"===(null==e?void 0:e.ConfigName))))?void 0:o.AddAccess))})})]})})]})})})},Vb=({columns:e,data:t,onChange:n,pagination:i,rowSelection:a})=>Ye.jsx(Ye.Fragment,{children:Ye.jsx(E,{columns:e,dataSource:t,onChange:n,rowSelection:a||null,pagination:!!i&&{onChange:i,defaultPageSize:10,showSizeChanger:!1,hideOnSinglePage:!0}})}),zb=({placeholder:e,onSearch:t,onSearchChange:n,prefix:i,value:a})=>Ye.jsx(g.Search,{className:"searchDiv",spellCheck:!1,placeholder:e,onSearch:t,onChange:n,prefix:i,value:a&&a}),qb="https://www.pozo.dev/pozo-common-api",Wb=Ja("pricingAppFeatMap/getPricingType",(async({toggleValue:e,AppId:t,UserId:n})=>{if(null!=e&&null!=e&&null!=t&&null!=t&&null!=n&&null!=n)return await Ne.get(`${qb}/pricingAppFeatMap?Type=${e}&AppId=${t}&UserId=${n}`)})),Yb=Ja("pricingAppFeatMap/getPricingType",(async({toggleValue:e,AppId:t,UserId:n})=>{if(null!=e&&null!=e&&null!=t&&null!=t&&null!=n&&null!=n)return await Ne.get(`${qb}/pricingAppFeatMap?Type=${e}&AppId=${t}&UserId=${n}`)})),Kb=Ja("pricingType/getPricingTypeAppId",(async({toggleValue:e,AppId:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await fA.get(`/pricingType?Type=${e}&AppId=${t}`)})),Gb=Ja("userAppMap/postFreeOption",(async e=>await fA.post("/userAppMap/FreeOption",e))),$b=Ja("getUserDetail/getUserDetails",(async e=>{if(null!=e&&null!=e)return await fA.get(`/user?UserId=${e}`)})),Xb=Ja("SendPaymentLink/SendPaymentLink",(async({MobileNo:e,url:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await fA.post("/verifyOTP/SendPaymentLink",{MobileNo:e,MessageHeader:"PaymentLink",Link:t})})),Jb=Ja("SendPaymentLink/SendPaymentLink",(async e=>{if(null!=e&&null!=e)return await fA.get(`/userAppMap?UniqueId=${e}&PaymentStatus=S`)})),Zb=Ja("UpdatePayment/UpdatePayment",(async e=>await fA.put("/userAppMap/paymentStatus",e))),ew=Ja("getPaymentUpiDeatils/getPaymentUpiDeatils",(async()=>await fA.get("/paymentUpiDetails?activeStatus=A&type=I"))),tw=Ja("getPaymentUpiDeatils/getPaymentModeDeatils",(async e=>{if(null!=e&&null!=e)return await fA.get(`/paymentUpiDetails?PaymentUPIDetailsId=${e}`)})),nw=Ja("getUserMappDetails/getUserMappDetails",(async e=>{if(null!=e&&null!=e)return await fA.get(`/userAppMap?UniqueId=${e}`)})),iw=Ja("sharePdfDocument/sharePdfDocument",(async({data:e})=>await fA.post("/userAppMap/send-invoicedetail",e))),aw=Ja("postEmailApi/SMS",(async e=>await mA.post("/SMS",e))),rw=Ja("pricingAppFeatureMap/getPricingFeatures",(async({toggleValue:e,AppId:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await Ne.get(`${qb}/pricingAppFeatMap?AppId=${t}&Type=${e}`)})),sw=Ja("pricingAppFeatureMap/getPurchasedPlan",(async({UserId:e,AppId:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await Ne.get(`${qb}/pricingAppFeatMap?AppId=${t}&UserId=${e}`)})),lw=Ja("homePage/PlanChanges",(async({UserId:e,AppId:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await fA.get(`/userAppMap/PlanChange?AppId=${t}&UserId=${e}`)})),ow=Ja("getUsedplandata",(async e=>{if(null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.type)&&null!=(null==e?void 0:e.type))return await fA.get(`/UserAppMap?AppId=${null==e?void 0:e.AppId}&UserId=${null==e?void 0:e.UserId}&type=${null==e?void 0:e.type}`)})),dw=Ja("userAppMap/UserBasedConstraint",(async e=>{if(null!=e&&null!=e)return await fA.get(`/userAppMap/UserBasedConstraint?UserId=${e}`)})),cw=Ya({name:"pricingType",initialState:{PricingType:[],PricingTypeFeat:[],Adminplanschanges:!1,NewPlandata:[]},reducers:{ChangeAdminplanschanges:(e,t)=>{e.Adminplanschanges=null==t?void 0:t.payload},changeNewPlandata:(e,t)=>{e.NewPlandata=null==t?void 0:t.payload}},extraReducers:e=>{e.addCase(Wb.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.PricingType=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.PricingType=[]})),e.addCase(Kb.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.PricingType=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.PricingType=[]})),e.addCase(rw.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.PricingTypeFeat=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.PricingTypeFeat=[]}))}}),{ChangeAdminplanschanges:uw,changeNewPlandata:pw}=cw.actions,Aw=e=>{var t;return null==(t=e.pricingType)?void 0:t.Adminplanschanges},hw=e=>{var t;return null==(t=e.pricingType)?void 0:t.NewPlandata},fw=cw.reducer,mw="/home/",vw=({fieldState:e,fieldApi:t,...n})=>{const{value:i}=e,{required:a,field:r,onChange:s,onBlur:l,canSelectPast:o,initialValue:d,forwardedRef:c,min:u,className:p,content:A,faClass:h,icon:f,...m}=n;return Ye.jsx(P,{direction:"vertical",children:Ye.jsx(T,{...m,id:r,type:"date",ref:c,required:a,value:i,disabledDate:o?"":e=>{var t=new Date;return t.setDate(t.getDate()+1),e.valueOf()<=t.setDate(t.getDate()-2)},format:"DD-MM-YYYY",className:v(`form-control ${p}`,{"is-invalid":e.error}),onChange:s})})},gw=({open:e,placement:t,title:n,children:i,onClose:a})=>Ye.jsx(Ye.Fragment,{children:Ye.jsx(_,{title:n,placement:t,onClose:a,open:e,children:i},t)}),yw=Ja("tax/adminTax",(async()=>await fA.get("/adminTax?ActiveStatus=A"))),xw=Ja("tax/postFeature",(async e=>await fA.post("/adminTax",e)));Ja("tax/deleteTax",(async e=>await fA.delete(`/adminTax?TaxId=${null==e?void 0:e.TaxId}&ActiveStatus=${null==e?void 0:e.ActiveStatus}&UpdatedBy=${null==e?void 0:e.UpdatedBy}`)));Ya({name:"tax",initialState:{taxData:[]},extraReducers:e=>{e.addCase(yw.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.taxData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.taxData=[]}))}});const bw=[{name:"Home",link:"/landing-page/home"}];S.extend(N);const ww=({label:e,isOnChange:t,onChange:n,valueData:i})=>Ye.jsx("div",{className:"example",children:Ye.jsx(Uy,{label:e,isOnChange:t,children:Ye.jsx(O,{className:"TimePickerDiv",use12Hours:!0,format:"h:mm a",onChange:n,value:null!=i?S(i,"HH:mm:ss"):""})})});var jw={exports:{}};const Cw=c(jw.exports=function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}),Sw=({style:e,defaultChecked:t,functionName:n,disabled:i,...a})=>Ye.jsx(b,{style:e,checked:t,onChange:n,disabled:i,...a});function Nw(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function Iw(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function Fw(e,t,n,i){if("function"==typeof t){const[a,r]=Iw(i);t=t(void 0!==n?n:e.custom,a,r)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[a,r]=Iw(i);t=t(void 0!==n?n:e.custom,a,r)}return t}function Bw(e,t,n){const i=e.getProps();return Fw(i,t,void 0!==n?n:i.custom,e)}function Pw(e,t){-1===e.indexOf(t)&&e.push(t)}function kw(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Tw=(e,t,n)=>n>t?t:n<e?e:n;const Ew={},Dw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Lw(e){return"object"==typeof e&&null!==e}const Uw=e=>/^0[^.\s]+$/u.test(e);function _w(e){let t;return()=>(void 0===t&&(t=e()),t)}const Ow=e=>e,Mw=(e,t)=>n=>t(e(n)),Rw=(...e)=>e.reduce(Mw),Qw=(e,t,n)=>{const i=t-e;return 0===i?1:(n-e)/i};class Hw{constructor(){this.subscriptions=[]}add(e){return Pw(this.subscriptions,e),()=>kw(this.subscriptions,e)}notify(e,t,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,n);else for(let a=0;a<i;a++){const i=this.subscriptions[a];i&&i(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Vw=e=>1e3*e,zw=e=>e/1e3;function qw(e,t){return t?e*(1e3/t):0}const Ww=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Yw(e,t,n,i){if(e===t&&n===i)return Ow;const a=t=>function(e,t,n,i,a){let r,s,l=0;do{s=t+(n-t)/2,r=Ww(s,i,a)-e,r>0?n=s:t=s}while(Math.abs(r)>1e-7&&++l<12);return s}(t,0,1,e,n);return e=>0===e||1===e?e:Ww(a(e),t,i)}const Kw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Gw=e=>t=>1-e(1-t),$w=Yw(.33,1.53,.69,.99),Xw=Gw($w),Jw=Kw(Xw),Zw=e=>(e*=2)<1?.5*Xw(e):.5*(2-Math.pow(2,-10*(e-1))),ej=e=>1-Math.sin(Math.acos(e)),tj=Gw(ej),nj=Kw(ej),ij=Yw(.42,0,1,1),aj=Yw(0,0,.58,1),rj=Yw(.42,0,.58,1),sj=e=>Array.isArray(e)&&"number"==typeof e[0],lj={linear:Ow,easeIn:ij,easeInOut:rj,easeOut:aj,circIn:ej,circInOut:nj,circOut:tj,backIn:Xw,backInOut:Jw,backOut:$w,anticipate:Zw},oj=e=>{if(sj(e)){e.length;const[t,n,i,a]=e;return Yw(t,n,i,a)}return"string"==typeof e?lj[e]:e},dj=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],cj={value:null,addProjectionMetrics:null};function uj(e,t){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,s=dj.reduce(((e,n)=>(e[n]=function(e,t){let n=new Set,i=new Set,a=!1,r=!1;const s=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},o=0;function d(t){s.has(t)&&(c.schedule(t),e()),o++,t(l)}const c={schedule:(e,t=!1,r=!1)=>{const l=r&&a?n:i;return t&&s.add(e),l.has(e)||l.add(e),e},cancel:e=>{i.delete(e),s.delete(e)},process:e=>{l=e,a?r=!0:(a=!0,[n,i]=[i,n],n.forEach(d),t&&cj.value&&cj.value.frameloop[t].push(o),o=0,n.clear(),a=!1,r&&(r=!1,c.process(e)))}};return c}(r,t?n:void 0),e)),{}),{setup:l,read:o,resolveKeyframes:d,preUpdate:c,update:u,preRender:p,render:A,postRender:h}=s,f=()=>{const r=Ew.useManualTiming?a.timestamp:performance.now();n=!1,Ew.useManualTiming||(a.delta=i?1e3/60:Math.max(Math.min(r-a.timestamp,40),1)),a.timestamp=r,a.isProcessing=!0,l.process(a),o.process(a),d.process(a),c.process(a),u.process(a),p.process(a),A.process(a),h.process(a),a.isProcessing=!1,n&&t&&(i=!1,e(f))};return{schedule:dj.reduce(((t,r)=>{const l=s[r];return t[r]=(t,r=!1,s=!1)=>(n||(n=!0,i=!0,a.isProcessing||e(f)),l.schedule(t,r,s)),t}),{}),cancel:e=>{for(let t=0;t<dj.length;t++)s[dj[t]].cancel(e)},state:a,steps:s}}const{schedule:pj,cancel:Aj,state:hj,steps:fj}=uj("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Ow,!0);let mj;function vj(){mj=void 0}const gj={now:()=>(void 0===mj&&gj.set(hj.isProcessing||Ew.useManualTiming?hj.timestamp:performance.now()),mj),set:e=>{mj=e,queueMicrotask(vj)}},yj=e=>t=>"string"==typeof t&&t.startsWith(e),xj=yj("--"),bj=yj("var(--"),wj=e=>!!bj(e)&&jj.test(e.split("/*")[0].trim()),jj=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Cj={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Sj={...Cj,transform:e=>Tw(0,1,e)},Nj={...Cj,default:1},Ij=e=>Math.round(1e5*e)/1e5,Fj=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Bj=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Pj=(e,t)=>n=>Boolean("string"==typeof n&&Bj.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),kj=(e,t,n)=>i=>{if("string"!=typeof i)return i;const[a,r,s,l]=i.match(Fj);return{[e]:parseFloat(a),[t]:parseFloat(r),[n]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}},Tj={...Cj,transform:e=>Math.round((e=>Tw(0,255,e))(e))},Ej={test:Pj("rgb","red"),parse:kj("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+Tj.transform(e)+", "+Tj.transform(t)+", "+Tj.transform(n)+", "+Ij(Sj.transform(i))+")"};const Dj={test:Pj("#"),parse:function(e){let t="",n="",i="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,i+=i,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}},transform:Ej.transform},Lj=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Uj=Lj("deg"),_j=Lj("%"),Oj=Lj("px"),Mj=Lj("vh"),Rj=Lj("vw"),Qj=(()=>({..._j,parse:e=>_j.parse(e)/100,transform:e=>_j.transform(100*e)}))(),Hj={test:Pj("hsl","hue"),parse:kj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+_j.transform(Ij(t))+", "+_j.transform(Ij(n))+", "+Ij(Sj.transform(i))+")"},Vj={test:e=>Ej.test(e)||Dj.test(e)||Hj.test(e),parse:e=>Ej.test(e)?Ej.parse(e):Hj.test(e)?Hj.parse(e):Dj.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?Ej.transform(e):Hj.transform(e)},zj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const qj="number",Wj="color",Yj=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Kj(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},a=[];let r=0;const s=t.replace(Yj,(e=>(Vj.test(e)?(i.color.push(r),a.push(Wj),n.push(Vj.parse(e))):e.startsWith("var(")?(i.var.push(r),a.push("var"),n.push(e)):(i.number.push(r),a.push(qj),n.push(parseFloat(e))),++r,"${}"))).split("${}");return{values:n,split:s,indexes:i,types:a}}function Gj(e){return Kj(e).values}function $j(e){const{split:t,types:n}=Kj(e),i=t.length;return e=>{let a="";for(let r=0;r<i;r++)if(a+=t[r],void 0!==e[r]){const t=n[r];a+=t===qj?Ij(e[r]):t===Wj?Vj.transform(e[r]):e[r]}return a}}const Xj=e=>"number"==typeof e?0:e;const Jj={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(Fj))?void 0:t.length)||0)+((null==(n=e.match(zj))?void 0:n.length)||0)>0},parse:Gj,createTransformer:$j,getAnimatableNone:function(e){const t=Gj(e);return $j(e)(t.map(Xj))}};function Zj(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eC(e,t){return n=>n>0?t:e}const tC=(e,t,n)=>e+(t-e)*n,nC=(e,t,n)=>{const i=e*e,a=n*(t*t-i)+i;return a<0?0:Math.sqrt(a)},iC=[Dj,Ej,Hj];function aC(e){const t=(n=e,iC.find((e=>e.test(n))));var n;if(!Boolean(t))return!1;let i=t.parse(e);return t===Hj&&(i=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let a=0,r=0,s=0;if(t/=100){const i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;a=Zj(l,i,e+1/3),r=Zj(l,i,e),s=Zj(l,i,e-1/3)}else a=r=s=n;return{red:Math.round(255*a),green:Math.round(255*r),blue:Math.round(255*s),alpha:i}}(i)),i}const rC=(e,t)=>{const n=aC(e),i=aC(t);if(!n||!i)return eC(e,t);const a={...n};return e=>(a.red=nC(n.red,i.red,e),a.green=nC(n.green,i.green,e),a.blue=nC(n.blue,i.blue,e),a.alpha=tC(n.alpha,i.alpha,e),Ej.transform(a))},sC=new Set(["none","hidden"]);function lC(e,t){return n=>tC(e,t,n)}function oC(e){return"number"==typeof e?lC:"string"==typeof e?wj(e)?eC:Vj.test(e)?rC:uC:Array.isArray(e)?dC:"object"==typeof e?Vj.test(e)?rC:cC:eC}function dC(e,t){const n=[...e],i=n.length,a=e.map(((e,n)=>oC(e)(e,t[n])));return e=>{for(let t=0;t<i;t++)n[t]=a[t](e);return n}}function cC(e,t){const n={...e,...t},i={};for(const a in n)void 0!==e[a]&&void 0!==t[a]&&(i[a]=oC(e[a])(e[a],t[a]));return e=>{for(const t in i)n[t]=i[t](e);return n}}const uC=(e,t)=>{const n=Jj.createTransformer(t),i=Kj(e),a=Kj(t);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?sC.has(e)&&!a.values.length||sC.has(t)&&!i.values.length?function(e,t){return sC.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Rw(dC(function(e,t){const n=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const r=t.types[a],s=e.indexes[r][i[r]],l=e.values[s]??0;n[a]=l,i[r]++}return n}(i,a),a.values),n):eC(e,t)};function pC(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return tC(e,t,n);return oC(e)(e,t)}const AC=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>pj.update(t,e),stop:()=>Aj(t),now:()=>hj.isProcessing?hj.timestamp:gj.now()}},hC=(e,t,n=10)=>{let i="";const a=Math.max(Math.round(t/n),2);for(let r=0;r<a;r++)i+=Math.round(1e4*e(r/(a-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},fC=2e4;function mC(e){let t=0;let n=e.next(t);for(;!n.done&&t<fC;)t+=50,n=e.next(t);return t>=fC?1/0:t}function vC(e,t,n){const i=Math.max(t-5,0);return qw(n-e(i),t-i)}const gC=100,yC=10,xC=1,bC=0,wC=800,jC=.3,CC=.3,SC={granular:.01,default:2},NC={granular:.005,default:.5},IC=.01,FC=10,BC=.05,PC=1,kC=.001;function TC({duration:e=wC,bounce:t=jC,velocity:n=bC,mass:i=xC}){let a,r,s=1-t;s=Tw(BC,PC,s),e=Tw(IC,FC,zw(e)),s<1?(a=t=>{const i=t*s,a=i*e,r=i-n,l=DC(t,s),o=Math.exp(-a);return kC-r/l*o},r=t=>{const i=t*s*e,r=i*n+n,l=Math.pow(s,2)*Math.pow(t,2)*e,o=Math.exp(-i),d=DC(Math.pow(t,2),s);return(-a(t)+kC>0?-1:1)*((r-l)*o)/d}):(a=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,r=t=>Math.exp(-t*e)*(e*e*(n-t)));const l=function(e,t,n){let i=n;for(let a=1;a<EC;a++)i-=e(i)/t(i);return i}(a,r,5/e);if(e=Vw(e),isNaN(l))return{stiffness:gC,damping:yC,duration:e};{const t=Math.pow(l,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}const EC=12;function DC(e,t){return e*Math.sqrt(1-t*t)}const LC=["duration","bounce"],UC=["stiffness","damping","mass"];function _C(e,t){return t.some((t=>void 0!==e[t]))}function OC(e=CC,t=jC){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:a}=n;const r=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:r},{stiffness:o,damping:d,mass:c,duration:u,velocity:p,isResolvedFromDuration:A}=function(e){let t={velocity:bC,stiffness:gC,damping:yC,mass:xC,isResolvedFromDuration:!1,...e};if(!_C(e,UC)&&_C(e,LC))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(1.2*n),a=i*i,r=2*Tw(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:xC,stiffness:a,damping:r}}else{const n=TC(e);t={...t,...n,mass:xC},t.isResolvedFromDuration=!0}return t}({...n,velocity:-zw(n.velocity||0)}),h=p||0,f=d/(2*Math.sqrt(o*c)),m=s-r,v=zw(Math.sqrt(o/c)),g=Math.abs(m)<5;let y;if(i||(i=g?SC.granular:SC.default),a||(a=g?NC.granular:NC.default),f<1){const e=DC(v,f);y=t=>{const n=Math.exp(-f*v*t);return s-n*((h+f*v*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===f)y=e=>s-Math.exp(-v*e)*(m+(h+v*m)*e);else{const e=v*Math.sqrt(f*f-1);y=t=>{const n=Math.exp(-f*v*t),i=Math.min(e*t,300);return s-n*((h+f*v*m)*Math.sinh(i)+e*m*Math.cosh(i))/e}}const x={calculatedDuration:A&&u||null,next:e=>{const t=y(e);if(A)l.done=e>=u;else{let n=0===e?h:0;f<1&&(n=0===e?Vw(h):vC(y,e,t));const r=Math.abs(n)<=i,o=Math.abs(s-t)<=a;l.done=r&&o}return l.value=l.done?s:t,l},toString:()=>{const e=Math.min(mC(x),fC),t=hC((t=>x.next(e*t).value),e,30);return e+"ms "+t},toTransition:()=>{}};return x}function MC({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:r=500,modifyTarget:s,min:l,max:o,restDelta:d=.5,restSpeed:c}){const u=e[0],p={done:!1,value:u},A=e=>void 0===l?o:void 0===o||Math.abs(l-e)<Math.abs(o-e)?l:o;let h=n*t;const f=u+h,m=void 0===s?f:s(f);m!==f&&(h=m-u);const v=e=>-h*Math.exp(-e/i),g=e=>m+v(e),y=e=>{const t=v(e),n=g(e);p.done=Math.abs(t)<=d,p.value=p.done?m:n};let x,b;const w=e=>{var t;(t=p.value,void 0!==l&&t<l||void 0!==o&&t>o)&&(x=e,b=OC({keyframes:[p.value,A(p.value)],velocity:vC(g,e,p.value),damping:a,stiffness:r,restDelta:d,restSpeed:c}))};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return b||void 0!==x||(t=!0,y(e),w(e)),void 0!==x&&e>=x?b.next(e-x):(!t&&y(e),p)}}}function RC(e,t,{clamp:n=!0,ease:i,mixer:a}={}){const r=e.length;if(t.length,1===r)return()=>t[0];if(2===r&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=function(e,t,n){const i=[],a=n||Ew.mix||pC,r=e.length-1;for(let s=0;s<r;s++){let n=a(e[s],e[s+1]);if(t){const e=Array.isArray(t)?t[s]||Ow:t;n=Rw(e,n)}i.push(n)}return i}(t,i,a),o=l.length,d=n=>{if(s&&n<e[0])return t[0];let i=0;if(o>1)for(;i<e.length-2&&!(n<e[i+1]);i++);const a=Qw(e[i],e[i+1],n);return l[i](a)};return n?t=>d(Tw(e[0],e[r-1],t)):d}function QC(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const a=Qw(0,t,i);e.push(tC(n,1,a))}}(t,e.length-1),t}function HC({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const a=(e=>Array.isArray(e)&&"number"!=typeof e[0])(i)?i.map(oj):oj(i),r={done:!1,value:t[0]},s=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:QC(t),e),l=RC(s,t,{ease:Array.isArray(a)?a:(o=t,d=a,o.map((()=>d||rj)).splice(0,o.length-1))});var o,d;return{calculatedDuration:e,next:t=>(r.value=l(t),r.done=t>=e,r)}}OC.applyToOptions=e=>{const t=function(e,t=100,n){const i=n({...e,keyframes:[0,t]}),a=Math.min(mC(i),fC);return{type:"keyframes",ease:e=>i.next(a*e).value/t,duration:zw(a)}}(e,100,OC);return e.ease=t.ease,e.duration=Vw(t.duration),e.type="keyframes",e};const VC=e=>null!==e;function zC(e,{repeat:t,repeatType:n="loop"},i,a=1){const r=e.filter(VC),s=a<0||t&&"loop"!==n&&t%2==1?0:r.length-1;return s&&void 0!==i?i:r[s]}const qC={decay:MC,inertia:MC,tween:HC,keyframes:HC,spring:OC};function WC(e){"string"==typeof e.type&&(e.type=qC[e.type])}class YC{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise((e=>{this.resolve=e}))}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const KC=e=>e/100;class GC extends YC{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var e,t;const{motionValue:n}=this.options;n&&n.updatedAt!==gj.now()&&this.tick(gj.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(t=(e=this.options).onStop)||t.call(e))},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;WC(e);const{type:t=HC,repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:r=0}=e;let{keyframes:s}=e;const l=t||HC;l!==HC&&"number"!=typeof s[0]&&(this.mixKeyframes=Rw(KC,pC(s[0],s[1])),s=[0,100]);const o=l({...e,keyframes:s});"mirror"===a&&(this.mirroredGenerator=l({...e,keyframes:[...s].reverse(),velocity:-r})),null===o.calculatedDuration&&(o.calculatedDuration=mC(o));const{calculatedDuration:d}=o;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=o}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:r,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);const{delay:o=0,keyframes:d,repeat:c,repeatType:u,repeatDelay:p,type:A,onUpdate:h,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const m=this.currentTime-o*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let g=this.currentTime,y=n;if(c){const e=Math.min(this.currentTime,i)/s;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,c+1);Boolean(t%2)&&("reverse"===u?(n=1-n,p&&(n-=p/s)):"mirror"===u&&(y=r)),g=Tw(0,1,n)*s}const x=v?{done:!1,value:d[0]}:y.next(g);a&&(x.value=a(x.value));let{done:b}=x;v||null===l||(b=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return w&&A!==MC&&(x.value=zC(d,this.options,f,this.speed)),h&&h(x.value),w&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return zw(this.calculatedDuration)}get time(){return zw(this.currentTime)}set time(e){var t;e=Vw(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),null==(t=this.driver)||t.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(gj.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=zw(this.currentTime))}play(){var e,t;if(this.isStopped)return;const{driver:n=AC,startTime:i}=this.options;this.driver||(this.driver=n((e=>this.tick(e)))),null==(t=(e=this.options).onPlay)||t.call(e);const a=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=a):null!==this.holdTime?this.startTime=a-this.holdTime:this.startTime||(this.startTime=i??a),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(gj.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state="finished",null==(t=(e=this.options).onComplete)||t.call(e)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(t=(e=this.options).onCancel)||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var t;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(t=this.driver)||t.stop(),e.observe(this)}}const $C=e=>180*e/Math.PI,XC=e=>{const t=$C(Math.atan2(e[1],e[0]));return ZC(t)},JC={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:XC,rotateZ:XC,skewX:e=>$C(Math.atan(e[1])),skewY:e=>$C(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ZC=e=>((e%=360)<0&&(e+=360),e),eS=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),tS=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),nS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eS,scaleY:tS,scale:e=>(eS(e)+tS(e))/2,rotateX:e=>ZC($C(Math.atan2(e[6],e[5]))),rotateY:e=>ZC($C(Math.atan2(-e[2],e[0]))),rotateZ:XC,rotate:XC,skewX:e=>$C(Math.atan(e[4])),skewY:e=>$C(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function iS(e){return e.includes("scale")?1:0}function aS(e,t){if(!e||"none"===e)return iS(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,a;if(n)i=nS,a=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=JC,a=t}if(!a)return iS(t);const r=i[t],s=a[1].split(",").map(rS);return"function"==typeof r?r(s):s[r]}function rS(e){return parseFloat(e.trim())}const sS=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lS=(()=>new Set(sS))(),oS=e=>e===Cj||e===Oj,dS=new Set(["x","y","z"]),cS=sS.filter((e=>!dS.has(e)));const uS={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>aS(t,"x"),y:(e,{transform:t})=>aS(t,"y")};uS.translateX=uS.x,uS.translateY=uS.y;const pS=new Set;let AS=!1,hS=!1,fS=!1;function mS(){if(hS){const e=Array.from(pS).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return cS.forEach((n=>{const i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var i;null==(i=e.getValue(t))||i.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}hS=!1,AS=!1,pS.forEach((e=>e.complete(fS))),pS.clear()}function vS(){pS.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(hS=!0)}))}class gS{constructor(e,t,n,i,a,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=a,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(pS.add(this),AS||(AS=!0,pj.read(vS),pj.resolveKeyframes(mS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;if(null===e[0]){const a=null==i?void 0:i.get(),r=e[e.length-1];if(void 0!==a)e[0]=a;else if(n&&t){const i=n.readValue(t,r);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=r),i&&void 0===a&&i.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),pS.delete(this)}cancel(){"scheduled"===this.state&&(pS.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const yS=_w((()=>void 0!==window.ScrollTimeline)),xS={};function bS(e,t){const n=_w(e);return()=>xS[t]??n()}const wS=bS((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(Ou){return!1}return!0}),"linearEasing"),jS=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,CS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jS([0,.65,.55,1]),circOut:jS([.55,0,1,.45]),backIn:jS([.31,.01,.66,-.59]),backOut:jS([.33,1.53,.69,.99])};function SS(e,t){return e?"function"==typeof e?wS()?hC(e,t):"ease-out":sj(e)?jS(e):Array.isArray(e)?e.map((e=>SS(e,t)||CS.easeOut)):CS[e]:void 0}function NS(e,t,n,{delay:i=0,duration:a=300,repeat:r=0,repeatType:s="loop",ease:l="easeOut",times:o}={},d=void 0){const c={[t]:n};o&&(c.offset=o);const u=SS(l,a);Array.isArray(u)&&(c.easing=u);const p={delay:i,duration:a,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:"reverse"===s?"alternate":"normal"};d&&(p.pseudoElement=d);return e.animate(c,p)}function IS(e){return"function"==typeof e&&"applyToOptions"in e}class FS extends YC{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:n,keyframes:i,pseudoElement:a,allowFlatten:r=!1,finalKeyframe:s,onComplete:l}=e;this.isPseudoElement=Boolean(a),this.allowFlatten=r,this.options=e,e.type;const o=function({type:e,...t}){return IS(e)&&wS()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=NS(t,n,i,o,a),!1===o.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const e=zC(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()}null==l||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;null==(t=(e=this.animation).finish)||t.call(e)}cancel(){try{this.animation.cancel()}catch(Ou){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,t;this.isPseudoElement||null==(t=(e=this.animation).commitStyles)||t.call(e)}get duration(){var e,t;const n=(null==(t=null==(e=this.animation.effect)?void 0:e.getComputedTiming)?void 0:t.call(e).duration)||0;return zw(Number(n))}get time(){return zw(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=Vw(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){var n;return this.allowFlatten&&(null==(n=this.animation.effect)||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&yS()?(this.animation.timeline=e,Ow):t(this)}}const BS={anticipate:Zw,backInOut:Jw,circInOut:nj};function PS(e){"string"==typeof e.ease&&e.ease in BS&&(e.ease=BS[e.ease])}class kS extends FS{constructor(e){PS(e),WC(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:i,element:a,...r}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const s=new GC({...r,autoplay:!1}),l=Vw(this.finishedTime??this.time);t.setWithVelocity(s.sample(l-10).value,s.sample(l).value,10),s.stop()}}const TS=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Jj.test(e)&&"0"!==e||e.startsWith("url(")));function ES(e){return Lw(e)&&"offsetHeight"in e}const DS=new Set(["opacity","clipPath","filter","transform"]),LS=_w((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class US extends YC{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:r="loop",keyframes:s,name:l,motionValue:o,element:d,...c}){var u;super(),this.stop=()=>{var e,t;this._animation&&(this._animation.stop(),null==(e=this.stopTimeline)||e.call(this)),null==(t=this.keyframeResolver)||t.cancel()},this.createdAt=gj.now();const p={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:a,repeatType:r,name:l,motionValue:o,element:d,...c},A=(null==d?void 0:d.KeyframeResolver)||gS;this.keyframeResolver=new A(s,((e,t,n)=>this.onKeyframesResolved(e,t,p,!n)),l,o,d),null==(u=this.keyframeResolver)||u.scheduleResolve()}onKeyframesResolved(e,t,n,i){this.keyframeResolver=void 0;const{name:a,type:r,velocity:s,delay:l,isHandoff:o,onUpdate:d}=n;this.resolvedAt=gj.now(),function(e,t,n,i){const a=e[0];if(null===a)return!1;if("display"===t||"visibility"===t)return!0;const r=e[e.length-1],s=TS(a,t),l=TS(r,t);return!(!s||!l)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||IS(n))&&i)}(e,a,r,s)||(!Ew.instantAnimations&&l||null==d||d(zC(e,n,t)),e[0]=e[e.length-1],n.duration=0,n.repeat=0);const c={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},u=!o&&function(e){var t;const{motionValue:n,name:i,repeatDelay:a,repeatType:r,damping:s,type:l}=e;if(!ES(null==(t=null==n?void 0:n.owner)?void 0:t.current))return!1;const{onUpdate:o,transformTemplate:d}=n.owner.getProps();return LS()&&i&&DS.has(i)&&("transform"!==i||!d)&&!o&&!a&&"mirror"!==r&&0!==s&&"inertia"!==l}(c)?new kS({...c,element:c.motionValue.owner.current}):new GC(c);u.finished.then((()=>this.notifyFinished())).catch(Ow),this.pendingTimeline&&(this.stopTimeline=u.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=u}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then((()=>{}))}get animation(){var e;return this._animation||(null==(e=this.keyframeResolver)||e.resume(),fS=!0,vS(),mS(),fS=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),null==(e=this.keyframeResolver)||e.cancel()}}const _S=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function OS(e,t,n=1){const[i,a]=function(e){const t=_S.exec(e);if(!t)return[,];const[,n,i,a]=t;return[`--${n??i}`,a]}(e);if(!i)return;const r=window.getComputedStyle(t).getPropertyValue(i);if(r){const e=r.trim();return Dw(e)?parseFloat(e):e}return wj(a)?OS(a,t,n+1):a}function MS(e,t){return(null==e?void 0:e[t])??(null==e?void 0:e.default)??e}const RS=new Set(["width","height","top","left","right","bottom",...sS]),QS=e=>t=>t.test(e),HS=[Cj,Oj,_j,Uj,Rj,Mj,{test:e=>"auto"===e,parse:e=>e}],VS=e=>HS.find(QS(e));const zS=new Set(["brightness","contrast","saturate","opacity"]);function qS(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[i]=n.match(Fj)||[];if(!i)return e;const a=n.replace(i,"");let r=zS.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+a+")"}const WS=/\b([a-z-]*)\(.*?\)/gu,YS={...Jj,getAnimatableNone:e=>{const t=e.match(WS);return t?t.map(qS).join(" "):e}},KS={...Cj,transform:Math.round},GS={borderWidth:Oj,borderTopWidth:Oj,borderRightWidth:Oj,borderBottomWidth:Oj,borderLeftWidth:Oj,borderRadius:Oj,radius:Oj,borderTopLeftRadius:Oj,borderTopRightRadius:Oj,borderBottomRightRadius:Oj,borderBottomLeftRadius:Oj,width:Oj,maxWidth:Oj,height:Oj,maxHeight:Oj,top:Oj,right:Oj,bottom:Oj,left:Oj,padding:Oj,paddingTop:Oj,paddingRight:Oj,paddingBottom:Oj,paddingLeft:Oj,margin:Oj,marginTop:Oj,marginRight:Oj,marginBottom:Oj,marginLeft:Oj,backgroundPositionX:Oj,backgroundPositionY:Oj,...{rotate:Uj,rotateX:Uj,rotateY:Uj,rotateZ:Uj,scale:Nj,scaleX:Nj,scaleY:Nj,scaleZ:Nj,skew:Uj,skewX:Uj,skewY:Uj,distance:Oj,translateX:Oj,translateY:Oj,translateZ:Oj,x:Oj,y:Oj,z:Oj,perspective:Oj,transformPerspective:Oj,opacity:Sj,originX:Qj,originY:Qj,originZ:Oj},zIndex:KS,fillOpacity:Sj,strokeOpacity:Sj,numOctaves:KS},$S={...GS,color:Vj,backgroundColor:Vj,outlineColor:Vj,fill:Vj,stroke:Vj,borderColor:Vj,borderTopColor:Vj,borderRightColor:Vj,borderBottomColor:Vj,borderLeftColor:Vj,filter:YS,WebkitFilter:YS},XS=e=>$S[e];function JS(e,t){let n=XS(e);return n!==YS&&(n=Jj),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ZS=new Set(["auto","none","0"]);class eN extends gS{constructor(e,t,n,i,a){super(e,t,n,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let n=e[l];if("string"==typeof n&&(n=n.trim(),wj(n))){const i=OS(n,t.current);void 0!==i&&(e[l]=i),l===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!RS.has(n)||2!==e.length)return;const[i,a]=e,r=VS(i),s=VS(a);if(r!==s)if(oS(r)&&oS(s))for(let l=0;l<e.length;l++){const t=e[l];"string"==typeof t&&(e[l]=parseFloat(t))}else uS[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let a=0;a<e.length;a++)(null===e[a]||("number"==typeof(i=e[a])?0===i:null===i||"none"===i||"0"===i||Uw(i)))&&n.push(a);var i;n.length&&function(e,t,n){let i,a=0;for(;a<e.length&&!i;){const t=e[a];"string"==typeof t&&!ZS.has(t)&&Kj(t).values.length&&(i=e[a]),a++}if(i&&n)for(const r of t)e[r]=JS(n,i)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=uS[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const i=t[t.length-1];void 0!==i&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const r=i.length-1,s=i[r];i[r]=uS[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null==(e=this.removedTransforms)?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}function tN(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);const a=(null==n?void 0:n[e])??i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const nN=(e,t)=>t&&"number"==typeof e?t.transform(e):e;class iN{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{var n,i;const a=gj.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(null==(n=this.events.change)||n.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty();t&&(null==(i=this.events.renderRequest)||i.notify(this.current))},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=gj.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Hw);const n=this.events[e].add(t);return"change"===e?()=>{n(),pj.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;null==(e=this.events.change)||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=gj.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return qw(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,t;null==(e=this.dependents)||e.clear(),null==(t=this.events.destroy)||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function aN(e,t){return new iN(e,t)}const{schedule:rN,cancel:sN}=uj(queueMicrotask,!1),lN={x:!1,y:!1};function oN(){return lN.x||lN.y}function dN(e,t){const n=tN(e),i=new AbortController;return[n,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function cN(e){return!("touch"===e.pointerType||oN())}const uN=(e,t)=>!!t&&(e===t||uN(e,t.parentElement)),pN=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,AN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const hN=new WeakSet;function fN(e){return t=>{"Enter"===t.key&&e(t)}}function mN(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function vN(e){return pN(e)&&!oN()}function gN(e,t,n={}){const[i,a,r]=dN(e,n),s=e=>{const i=e.currentTarget;if(!vN(e))return;hN.add(i);const r=t(i,e),s=(e,t)=>{window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",o),hN.has(i)&&hN.delete(i),vN(e)&&"function"==typeof r&&r(e,{success:t})},l=e=>{s(e,i===window||i===document||n.useGlobalTarget||uN(i,e.target))},o=e=>{s(e,!1)};window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",o,a)};return i.forEach((e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,a),ES(e)&&(e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const i=fN((()=>{if(hN.has(n))return;mN(n,"down");const e=fN((()=>{mN(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>mN(n,"cancel")),t)}));n.addEventListener("keydown",i,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",i)),t)})(e,a))),t=e,AN.has(t.tagName)||-1!==t.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))})),r}function yN(e){return Lw(e)&&"ownerSVGElement"in e}const xN=e=>Boolean(e&&e.getVelocity),bN=[...HS,Vj,Jj],wN=e=>Array.isArray(e);function jN(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,aN(n))}function CN(e,t){const n=Bw(e,t);let{transitionEnd:i={},transition:a={},...r}=n||{};r={...r,...i};for(const l in r){jN(e,l,(s=r[l],wN(s)?s[s.length-1]||0:s))}var s}function SN(e,t){const n=e.getValue("willChange");if(i=n,Boolean(xN(i)&&i.add))return n.add(t);if(!n&&Ew.WillChange){const n=new Ew.WillChange("auto");e.addValue("willChange",n),n.add(t)}var i}const NN=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),IN="data-"+NN("framerAppearId");function FN(e){return e.props[IN]}const BN=e=>null!==e;const PN={type:"spring",stiffness:500,damping:25,restSpeed:10},kN={type:"keyframes",duration:.8},TN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},EN=(e,{keyframes:t})=>t.length>2?kN:lS.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:PN:TN;const DN=(e,t,n,i={},a,r)=>s=>{const l=MS(i,e)||{},o=l.delay||i.delay||0;let{elapsed:d=0}=i;d-=Vw(o);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:r?void 0:a};(function({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:a,repeat:r,repeatType:s,repeatDelay:l,from:o,elapsed:d,...c}){return!!Object.keys(c).length})(l)||Object.assign(c,EN(e,c)),c.duration&&(c.duration=Vw(c.duration)),c.repeatDelay&&(c.repeatDelay=Vw(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let u=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(u=!0)),(Ew.instantAnimations||Ew.skipAnimations)&&(u=!0,c.duration=0,c.delay=0),c.allowFlatten=!l.type&&!l.ease,u&&!r&&void 0!==t.get()){const e=function(e,{repeat:t,repeatType:n="loop"},i){const a=e.filter(BN),r=t&&"loop"!==n&&t%2==1?0:a.length-1;return r&&void 0!==i?i:a[r]}(c.keyframes,l);if(void 0!==e)return void pj.update((()=>{c.onUpdate(e),c.onComplete()}))}return l.isSync?new GC(c):new US(c)};function LN({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}function UN(e,t,{delay:n=0,transitionOverride:i,type:a}={}){let{transition:r=e.getDefaultTransition(),transitionEnd:s,...l}=t;i&&(r=i);const o=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const c in l){const t=e.getValue(c,e.latestValues[c]??null),i=l[c];if(void 0===i||d&&LN(d,c))continue;const a={delay:n,...MS(r||{},c)},s=t.get();if(void 0!==s&&!t.isAnimating&&!Array.isArray(i)&&i===s&&!a.velocity)continue;let u=!1;if(window.MotionHandoffAnimation){const t=FN(e);if(t){const e=window.MotionHandoffAnimation(t,c,pj);null!==e&&(a.startTime=e,u=!0)}}SN(e,c),t.start(DN(c,t,i,e.shouldReduceMotion&&RS.has(c)?{type:!1}:a,e,u));const p=t.animation;p&&o.push(p)}return s&&Promise.all(o).then((()=>{pj.update((()=>{s&&CN(e,s)}))})),o}function _N(e,t,n={}){var i;const a=Bw(e,t,"exit"===n.type?null==(i=e.presenceContext)?void 0:i.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(r=n.transitionOverride);const s=a?()=>Promise.all(UN(e,a,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(i=0)=>{const{delayChildren:a=0,staggerChildren:s,staggerDirection:l}=r;return function(e,t,n=0,i=0,a=1,r){const s=[],l=(e.variantChildren.size-1)*i,o=1===a?(e=0)=>e*i:(e=0)=>l-e*i;return Array.from(e.variantChildren).sort(ON).forEach(((e,i)=>{e.notify("AnimationStart",t),s.push(_N(e,t,{...r,delay:n+o(i)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(s)}(e,t,a+i,s,l,n)}:()=>Promise.resolve(),{when:o}=r;if(o){const[e,t]="beforeChildren"===o?[s,l]:[l,s];return e().then((()=>t()))}return Promise.all([s(),l(n.delay)])}function ON(e,t){return e.sortNodePosition(t)}function MN(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t)){const a=t.map((t=>_N(e,t,n)));i=Promise.all(a)}else if("string"==typeof t)i=_N(e,t,n);else{const a="function"==typeof t?Bw(e,t,n.custom):t;i=Promise.all(UN(e,a,n))}return i.then((()=>{e.notify("AnimationComplete",t)}))}function RN(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function QN(e){return"string"==typeof e||Array.isArray(e)}const HN=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],VN=["initial",...HN],zN=VN.length;function qN(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&qN(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<zN;n++){const i=VN[n],a=e.props[i];(QN(a)||!1===a)&&(t[i]=a)}return t}const WN=[...HN].reverse(),YN=HN.length;function KN(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>MN(e,t,n))))}(e),n=XN(),i=!0;const a=t=>(n,i)=>{var a;const r=Bw(e,i,"exit"===t?null==(a=e.presenceContext)?void 0:a.custom:void 0);if(r){const{transition:e,transitionEnd:t,...i}=r;n={...n,...i,...t}}return n};function r(r){const{props:s}=e,l=qN(e.parent)||{},o=[],d=new Set;let c={},u=1/0;for(let t=0;t<YN;t++){const p=WN[t],A=n[p],h=void 0!==s[p]?s[p]:l[p],f=QN(h),m=p===r?A.isActive:null;!1===m&&(u=t);let v=h===l[p]&&h!==s[p]&&f;if(v&&i&&e.manuallyAnimateOnMount&&(v=!1),A.protectedKeys={...c},!A.isActive&&null===m||!h&&!A.prevProp||Nw(h)||"boolean"==typeof h)continue;const g=GN(A.prevProp,h);let y=g||p===r&&A.isActive&&!v&&f||t>u&&f,x=!1;const b=Array.isArray(h)?h:[h];let w=b.reduce(a(p),{});!1===m&&(w={});const{prevResolvedValues:j={}}=A,C={...j,...w},S=t=>{y=!0,d.has(t)&&(x=!0,d.delete(t)),A.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in C){const t=w[e],n=j[e];if(c.hasOwnProperty(e))continue;let i=!1;i=wN(t)&&wN(n)?!RN(t,n):t!==n,i?null!=t?S(e):d.add(e):void 0!==t&&d.has(e)?S(e):A.protectedKeys[e]=!0}A.prevProp=h,A.prevResolvedValues=w,A.isActive&&(c={...c,...w}),i&&e.blockInitialAnimation&&(y=!1);y&&(!(v&&g)||x)&&o.push(...b.map((e=>({animation:e,options:{type:p}}))))}if(d.size){const t={};if("boolean"!=typeof s.initial){const n=Bw(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}d.forEach((n=>{const i=e.getBaseTarget(n),a=e.getValue(n);a&&(a.liveStyle=!0),t[n]=i??null})),o.push({animation:t})}let p=Boolean(o.length);return!i||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(p=!1),i=!1,p?t(o):Promise.resolve()}return{animateChanges:r,setActive:function(t,i){var a;if(n[t].isActive===i)return Promise.resolve();null==(a=e.variantChildren)||a.forEach((e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,i)})),n[t].isActive=i;const s=r(t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=XN(),i=!0}}}function GN(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!RN(t,e)}function $N(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function XN(){return{animate:$N(!0),whileInView:$N(),whileHover:$N(),whileTap:$N(),whileDrag:$N(),whileFocus:$N(),exit:$N()}}class JN{constructor(e){this.isMounted=!1,this.node=e}update(){}}let ZN=0;const eI={animation:{Feature:class extends JN{constructor(e){super(e),e.animationState||(e.animationState=KN(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Nw(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}}},exit:{Feature:class extends JN{constructor(){super(...arguments),this.id=ZN++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then((()=>{t(this.id)}))}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function tI(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function nI(e){return{point:{x:e.pageX,y:e.pageY}}}function iI(e,t,n,i){return tI(e,t,(e=>t=>pN(t)&&e(t,nI(t)))(n),i)}function aI({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function rI(e){return e.max-e.min}function sI(e,t,n,i=.5){e.origin=i,e.originPoint=tC(t.min,t.max,e.origin),e.scale=rI(n)/rI(t),e.translate=tC(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function lI(e,t,n,i){sI(e.x,t.x,n.x,i?i.originX:void 0),sI(e.y,t.y,n.y,i?i.originY:void 0)}function oI(e,t,n){e.min=n.min+t.min,e.max=e.min+rI(t)}function dI(e,t,n){e.min=t.min-n.min,e.max=e.min+rI(t)}function cI(e,t,n){dI(e.x,t.x,n.x),dI(e.y,t.y,n.y)}const uI=()=>({x:{min:0,max:0},y:{min:0,max:0}});function pI(e){return[e("x"),e("y")]}function AI(e){return void 0===e||1===e}function hI({scale:e,scaleX:t,scaleY:n}){return!AI(e)||!AI(t)||!AI(n)}function fI(e){return hI(e)||mI(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function mI(e){return vI(e.x)||vI(e.y)}function vI(e){return e&&"0%"!==e}function gI(e,t,n){return n+t*(e-n)}function yI(e,t,n,i,a){return void 0!==a&&(e=gI(e,a,i)),gI(e,n,i)+t}function xI(e,t=0,n=1,i,a){e.min=yI(e.min,t,n,i,a),e.max=yI(e.max,t,n,i,a)}function bI(e,{x:t,y:n}){xI(e.x,t.translate,t.scale,t.originPoint),xI(e.y,n.translate,n.scale,n.originPoint)}const wI=.999999999999,jI=1.0000000000001;function CI(e,t){e.min=e.min+t,e.max=e.max+t}function SI(e,t,n,i,a=.5){xI(e,t,n,tC(e.min,e.max,a),i)}function NI(e,t){SI(e.x,t.x,t.scaleX,t.scale,t.originX),SI(e.y,t.y,t.scaleY,t.scale,t.originY)}function II(e,t){return aI(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}const FI=({current:e})=>e?e.ownerDocument.defaultView:null;function BI(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const PI=(e,t)=>Math.abs(e-t);class kI{constructor(e,t,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=DI(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=PI(e.x,t.x),i=PI(e.y,t.y);return Math.sqrt(n**2+i**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:i}=e,{timestamp:a}=hj;this.history.push({...i,timestamp:a});const{onStart:r,onMove:s}=this.handlers;t||(r&&r(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=TI(t,this.transformPagePoint),pj.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:a}=this.handlers;if(this.dragSnapToOrigin&&a&&a(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const r=DI("pointercancel"===e.type?this.lastMoveEventInfo:TI(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,r),i&&i(e,r)},!pN(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=n,this.contextWindow=i||window;const r=TI(nI(e),this.transformPagePoint),{point:s}=r,{timestamp:l}=hj;this.history=[{...s,timestamp:l}];const{onSessionStart:o}=t;o&&o(e,DI(r,this.history)),this.removeListeners=Rw(iI(this.contextWindow,"pointermove",this.handlePointerMove),iI(this.contextWindow,"pointerup",this.handlePointerUp),iI(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Aj(this.updatePoint)}}function TI(e,t){return t?{point:t(e.point)}:e}function EI(e,t){return{x:e.x-t.x,y:e.y-t.y}}function DI({point:e},t){return{point:e,delta:EI(e,UI(t)),offset:EI(e,LI(t)),velocity:_I(t,.1)}}function LI(e){return e[0]}function UI(e){return e[e.length-1]}function _I(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const a=UI(e);for(;n>=0&&(i=e[n],!(a.timestamp-i.timestamp>Vw(t)));)n--;if(!i)return{x:0,y:0};const r=zw(a.timestamp-i.timestamp);if(0===r)return{x:0,y:0};const s={x:(a.x-i.x)/r,y:(a.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function OI(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function MI(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}const RI=.35;function QI(e,t,n){return{min:HI(e,t),max:HI(e,n)}}function HI(e,t){return"number"==typeof e?e:e[t]||0}const VI=new WeakMap;class zI{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new kI(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(nI(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:i,onDragStart:a}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(r=n)||"y"===r?lN[r]?null:(lN[r]=!0,()=>{lN[r]=!1}):lN.x||lN.y?null:(lN.x=lN.y=!0,()=>{lN.x=lN.y=!1}),!this.openDragLock))return;var r;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pI((e=>{let t=this.getAxisMotionValue(e).get()||0;if(_j.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[e];if(i){t=rI(i)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),a&&pj.postRender((()=>a(e,t))),SN(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:a,onDrag:r}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:s}=t;if(i&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(s),void(null!==this.currentDirection&&a&&a(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),r&&r(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>pI((e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:FI(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=t;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&pj.postRender((()=>a(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:i}=this.getProps();if(!n||!qI(e,i,this.currentDirection))return;const a=this.getAxisMotionValue(e);let r=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(r=function(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?tC(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?tC(n,e,i.max):Math.min(e,n)),e}(r,this.constraints[e],this.elastic[e])),a.set(r)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,a=this.constraints;t&&BI(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!i)&&function(e,{top:t,left:n,bottom:i,right:a}){return{x:OI(e.x,n,a),y:OI(e.y,t,i)}}(i.layoutBox,t),this.elastic=function(e=RI){return!1===e?e=0:!0===e&&(e=RI),{x:QI(e,"left","right"),y:QI(e,"top","bottom")}}(n),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&pI((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!BI(e))return!1;const n=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=function(e,t,n){const i=II(e,n),{scroll:a}=t;return a&&(CI(i.x,a.offset.x),CI(i.y,a.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let r=function(e,t){return{x:MI(e.x,t.x),y:MI(e.y,t.y)}}(i.layout.layoutBox,a);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(r));this.hasMutatedConstraints=!!e,e&&(r=aI(e))}return r}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:i,dragTransition:a,dragSnapToOrigin:r,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},o=pI((s=>{if(!qI(s,t,this.currentDirection))return;let o=l&&l[s]||{};r&&(o={min:0,max:0});const d=i?200:1e6,c=i?40:1e7,u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:d,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...a,...o};return this.startAxisValueAnimation(s,u)}));return Promise.all(o).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return SN(this.visualElement,e),n.start(DN(e,n,0,t,this.visualElement,!1))}stopAnimation(){pI((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){pI((e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()}))}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),i=n[t];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){pI((t=>{const{drag:n}=this.getProps();if(!qI(t,n,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(t);if(i&&i.layout){const{min:n,max:r}=i.layout.layoutBox[t];a.set(e[t]-tC(n,r,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!BI(t)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};pI((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();i[e]=function(e,t){let n=.5;const i=rI(e),a=rI(t);return a>i?n=Qw(t.min,t.max-i,e.min):i>a&&(n=Qw(e.min,e.max-a,t.min)),Tw(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),pI((t=>{if(!qI(t,e,null))return;const n=this.getAxisMotionValue(t),{min:a,max:r}=this.constraints[t];n.set(tC(a,r,i[t]))}))}addListeners(){if(!this.visualElement.current)return;VI.set(this.visualElement,this);const e=iI(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();BI(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),pj.read(t);const a=tI(window,"resize",(()=>this.scalePositionWithinConstraints())),r=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(pI((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{a(),e(),i(),r&&r()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:r=RI,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:a,dragElastic:r,dragMomentum:s}}}function qI(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const WI=e=>(t,n)=>{e&&pj.postRender((()=>e(t,n)))};const YI=a.createContext(null);const KI=a.createContext({}),GI=a.createContext({}),$I={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function XI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const JI={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Oj.test(e))return e;e=parseFloat(e)}return`${XI(e,t.target.x)}% ${XI(e,t.target.y)}%`}},ZI={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,a=Jj.parse(e);if(a.length>5)return i;const r=Jj.createTransformer(e),s="number"!=typeof a[0]?1:0,l=n.x.scale*t.x,o=n.y.scale*t.y;a[0+s]/=l,a[1+s]/=o;const d=tC(l,o,.5);return"number"==typeof a[2+s]&&(a[2+s]/=d),"number"==typeof a[3+s]&&(a[3+s]/=d),r(a)}},eF={};class tF extends a.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:a}=e;!function(e){for(const t in e)eF[t]=e[t],xj(t)&&(eF[t].isCSSVariable=!0)}(iF),a&&(t.group&&t.group.add(a),n&&n.register&&i&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",(()=>{this.safeToRemove()})),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),$I.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:i,isPresent:a}=this.props,{projection:r}=n;return r?(r.isPresent=a,i||e.layoutDependency!==t||void 0===t||e.isPresent!==a?r.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?r.promote():r.relegate()||pj.postRender((()=>{const e=r.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),rN.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nF(e){const[t,n]=function(e=!0){const t=a.useContext(YI);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=t,s=a.useId();a.useEffect((()=>{if(e)return r(s)}),[e]);const l=a.useCallback((()=>e&&i&&i(s)),[s,i,e]);return!n&&i?[!1,l]:[!0]}(),i=a.useContext(KI);return Ye.jsx(tF,{...e,layoutGroup:i,switchLayoutGroup:a.useContext(GI),isPresent:t,safeToRemove:n})}const iF={borderRadius:{...JI,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:JI,borderTopRightRadius:JI,borderBottomLeftRadius:JI,borderBottomRightRadius:JI,boxShadow:ZI};const aF=(e,t)=>e.depth-t.depth;class rF{constructor(){this.children=[],this.isDirty=!1}add(e){Pw(this.children,e),this.isDirty=!0}remove(e){kw(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(aF),this.isDirty=!1,this.children.forEach(e)}}function sF(e){return xN(e)?e.get():e}const lF=["TopLeft","TopRight","BottomLeft","BottomRight"],oF=lF.length,dF=e=>"string"==typeof e?parseFloat(e):e,cF=e=>"number"==typeof e||Oj.test(e);function uF(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const pF=hF(0,.5,tj),AF=hF(.5,.95,Ow);function hF(e,t,n){return i=>i<e?0:i>t?1:n(Qw(e,t,i))}function fF(e,t){e.min=t.min,e.max=t.max}function mF(e,t){fF(e.x,t.x),fF(e.y,t.y)}function vF(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function gF(e,t,n,i,a){return e=gI(e-=t,1/n,i),void 0!==a&&(e=gI(e,1/a,i)),e}function yF(e,t,[n,i,a],r,s){!function(e,t=0,n=1,i=.5,a,r=e,s=e){_j.test(t)&&(t=parseFloat(t),t=tC(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let l=tC(r.min,r.max,i);e===r&&(l-=t),e.min=gF(e.min,t,n,l,a),e.max=gF(e.max,t,n,l,a)}(e,t[n],t[i],t[a],t.scale,r,s)}const xF=["x","scaleX","originX"],bF=["y","scaleY","originY"];function wF(e,t,n,i){yF(e.x,t,xF,n?n.x:void 0,i?i.x:void 0),yF(e.y,t,bF,n?n.y:void 0,i?i.y:void 0)}function jF(e){return 0===e.translate&&1===e.scale}function CF(e){return jF(e.x)&&jF(e.y)}function SF(e,t){return e.min===t.min&&e.max===t.max}function NF(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function IF(e,t){return NF(e.x,t.x)&&NF(e.y,t.y)}function FF(e){return rI(e.x)/rI(e.y)}function BF(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class PF{constructor(){this.members=[]}add(e){Pw(this.members,e),e.scheduleRender()}remove(e){if(kw(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let i=t;i>=0;i--){const e=this.members[i];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const kF=["","X","Y","Z"],TF={visibility:"hidden"};let EF=0;function DF(e,t,n,i){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),i&&(i[e]=0))}function LF(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=FN(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",pj,!(t||i))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&LF(i)}function UF({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=EF++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(MF),this.nodes.forEach(WF),this.nodes.forEach(YF),this.nodes.forEach(RF)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rF)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Hw),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;var n;this.isSVG=yN(t)&&!(yN(n=t)&&"svg"===n.tagName),this.instance=t;const{layoutId:i,layout:a,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(a||i)&&(this.isLayoutDirty=!0),e){let n;const i=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=gj.now(),i=({timestamp:a})=>{const r=a-n;r>=t&&(Aj(i),e(r-t))};return pj.setup(i,!0),()=>Aj(i)}(i,250),$I.hasAnimatedSinceResize&&($I.hasAnimatedSinceResize=!1,this.nodes.forEach(qF))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||a)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const a=this.options.transition||r.getDefaultTransition()||ZF,{onLayoutAnimationStart:s,onLayoutAnimationComplete:l}=r.getProps(),o=!this.targetLayout||!IF(this.targetLayout,i),d=!t&&n;if(this.options.layoutRoot||this.resumeFrom||d||t&&(o||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...MS(a,"layout"),onPlay:s,onComplete:l};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,d)}else t||qF(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Aj(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(KF),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&LF(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){const e=this.path[a];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(HF);this.isUpdating||this.nodes.forEach(VF),this.isUpdating=!1,this.nodes.forEach(zF),this.nodes.forEach(_F),this.nodes.forEach(OF),this.clearAllSnapshots();const e=gj.now();hj.delta=Tw(0,1e3/60,e-hj.timestamp),hj.timestamp=e,hj.isProcessing=!0,fj.update.process(hj),fj.preRender.process(hj),fj.render.process(hj),hj.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rN.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(QF),this.sharedNodes.forEach(GF)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,pj.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){pj.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rI(this.snapshot.measuredBox.x)||rI(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!a)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!CF(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,r=i!==this.prevTransformTemplateValue;e&&this.instance&&(t||fI(this.latestValues)||r)&&(a(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var i;return e&&(n=this.removeTransform(n)),nB((i=n).x),nB(i.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!((null==(e=this.scroll)?void 0:e.wasRoot)||this.path.some(aB))){const{scroll:e}=this.root;e&&(CI(n.x,e.offset.x),CI(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(mF(n,e),null==(t=this.scroll)?void 0:t.wasRoot)return n;for(let i=0;i<this.path.length;i++){const t=this.path[i],{scroll:a,options:r}=t;t!==this.root&&a&&r.layoutScroll&&(a.wasRoot&&mF(n,e),CI(n.x,a.offset.x),CI(n.y,a.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};mF(n,e);for(let i=0;i<this.path.length;i++){const e=this.path[i];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&NI(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),fI(e.latestValues)&&NI(n,e.latestValues)}return fI(this.latestValues)&&NI(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};mF(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!fI(e.latestValues))continue;hI(e.latestValues)&&e.updateSnapshot();const i={x:{min:0,max:0},y:{min:0,max:0}};mF(i,e.measurePageBox()),wF(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,i)}return fI(this.latestValues)&&wF(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==hj.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:a,layoutId:r}=this.options;if(this.layout&&(a||r)){if(this.resolvedRelativeTargetAt=hj.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},cI(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),mF(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var s,l,o;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,l=this.relativeTarget,o=this.relativeParent.target,oI(s.x,l.x,o.x),oI(s.y,l.y,o.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):mF(this.target,this.layout.layoutBox),bI(this.target,this.targetDelta)):mF(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},cI(this.relativeTargetOrigin,this.target,e.target),mF(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!hI(this.parent.latestValues)&&!mI(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let i=!0;if((this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===hj.timestamp&&(i=!1),i)return;const{layout:a,layoutId:r}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!a&&!r)return;mF(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,l=this.treeScale.y;!function(e,t,n,i=!1){const a=n.length;if(!a)return;let r,s;t.x=t.y=1;for(let l=0;l<a;l++){r=n[l],s=r.projectionDelta;const{visualElement:a}=r.options;a&&a.props.style&&"contents"===a.props.style.display||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&NI(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,bI(e,s)),i&&fI(r.latestValues)&&NI(e,r.latestValues))}t.x<jI&&t.x>wI&&(t.x=1),t.y<jI&&t.y>wI&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:o}=t;o?(this.projectionDelta&&this.prevProjectionDelta?(vF(this.prevProjectionDelta.x,this.projectionDelta.x),vF(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),lI(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===l&&BF(this.projectionDelta.x,this.prevProjectionDelta.x)&&BF(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,i=n?n.latestValues:{},a={...this.latestValues},r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),o=this.getStack(),d=!o||o.members.length<=1,c=Boolean(l&&!d&&!0===this.options.crossfade&&!this.path.some(JF));let u;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var o,p,A,h,f,m;$F(r.x,e.x,n),$F(r.y,e.y,n),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(cI(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),A=this.relativeTarget,h=this.relativeTargetOrigin,f=s,m=n,XF(A.x,h.x,f.x,m),XF(A.y,h.y,f.y,m),u&&(o=this.relativeTarget,p=u,SF(o.x,p.x)&&SF(o.y,p.y))&&(this.isProjectionDirty=!1),u||(u={x:{min:0,max:0},y:{min:0,max:0}}),mF(u,this.relativeTarget)),l&&(this.animationValues=a,function(e,t,n,i,a,r){a?(e.opacity=tC(0,n.opacity??1,pF(i)),e.opacityExit=tC(t.opacity??1,0,AF(i))):r&&(e.opacity=tC(t.opacity??1,n.opacity??1,i));for(let s=0;s<oF;s++){const a=`border${lF[s]}Radius`;let r=uF(t,a),l=uF(n,a);void 0===r&&void 0===l||(r||(r=0),l||(l=0),0===r||0===l||cF(r)===cF(l)?(e[a]=Math.max(tC(dF(r),dF(l),i),0),(_j.test(l)||_j.test(r))&&(e[a]+="%")):e[a]=l)}(t.rotate||n.rotate)&&(e.rotate=tC(t.rotate||0,n.rotate||0,i))}(a,i,this.latestValues,n,c,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){var t,n,i;this.notifyListeners("animationStart"),null==(t=this.currentAnimation)||t.stop(),null==(i=null==(n=this.resumingFrom)?void 0:n.currentAnimation)||i.stop(),this.pendingAnimation&&(Aj(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=pj.update((()=>{$I.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=aN(0)),this.currentAnimation=function(e,t,n){const i=xN(e)?e:aN(e);return i.start(DN("",i,t,n)),i.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:i,latestValues:a}=e;if(t&&n&&i){if(this!==e&&this.layout&&i&&iB(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=rI(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const i=rI(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}mF(t,n),NI(t,a),lI(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new PF);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const i={};n.z&&DF("z",e,i,this.animationValues);for(let a=0;a<kF.length;a++)DF(`rotate${kF[a]}`,e,i,this.animationValues),DF(`skew${kF[a]}`,e,i,this.animationValues);e.render();for(const a in i)e.setStaticValue(a,i[a]),this.animationValues&&(this.animationValues[a]=i[a]);e.scheduleRender()}getProjectionStyles(e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return TF;const t={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.opacity="",t.pointerEvents=sF(null==e?void 0:e.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none",t;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=sF(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!fI(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),t.transform=function(e,t,n){let i="";const a=e.x.translate/t.x,r=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((a||r||s)&&(i=`translate3d(${a}px, ${r}px, ${s}px) `),1===t.x&&1===t.y||(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:a,rotateY:r,skewX:s,skewY:l}=n;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),a&&(i+=`rotateX(${a}deg) `),r&&(i+=`rotateY(${r}deg) `),s&&(i+=`skewX(${s}deg) `),l&&(i+=`skewY(${l}deg) `)}const l=e.x.scale*t.x,o=e.y.scale*t.y;return 1===l&&1===o||(i+=`scale(${l}, ${o})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),n&&(t.transform=n(a,t.transform));const{x:r,y:s}=this.projectionDelta;t.transformOrigin=`${100*r.origin}% ${100*s.origin}% 0`,i.animationValues?t.opacity=i===this?a.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:t.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const l in eF){if(void 0===a[l])continue;const{correct:e,applyTo:n,isCSSVariable:r}=eF[l],s="none"===t.transform?a[l]:e(a[l],i);if(n){const e=n.length;for(let i=0;i<e;i++)t[n[i]]=s}else r?this.options.visualElement.renderState.vars[l]=s:t[l]=s}return this.options.layoutId&&(t.pointerEvents=i===this?sF(null==e?void 0:e.pointerEvents)||"":"none"),t}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()})),this.root.nodes.forEach(HF),this.root.sharedNodes.clear()}}}function _F(e){e.updateLayout()}function OF(e){var t;const n=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:i}=e.layout,{animationType:a}=e.options,r=n.source!==e.layout.source;"size"===a?pI((e=>{const i=r?n.measuredBox[e]:n.layoutBox[e],a=rI(i);i.min=t[e].min,i.max=i.min+a})):iB(a,n.layoutBox,t)&&pI((i=>{const a=r?n.measuredBox[i]:n.layoutBox[i],s=rI(t[i]);a.max=a.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+s)}));const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};lI(s,t,n.layoutBox);const l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};r?lI(l,e.applyTransform(i,!0),n.measuredBox):lI(l,t,n.layoutBox);const o=!CF(s);let d=!1;if(!e.resumeFrom){const i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:a,layout:r}=i;if(a&&r){const s={x:{min:0,max:0},y:{min:0,max:0}};cI(s,n.layoutBox,a.layoutBox);const l={x:{min:0,max:0},y:{min:0,max:0}};cI(l,t,r.layoutBox),IF(s,l)||(d=!0),i.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:o,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function MF(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function RF(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function QF(e){e.clearSnapshot()}function HF(e){e.clearMeasurements()}function VF(e){e.isLayoutDirty=!1}function zF(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qF(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function WF(e){e.resolveTargetDelta()}function YF(e){e.calcProjection()}function KF(e){e.resetSkewAndRotation()}function GF(e){e.removeLeadSnapshot()}function $F(e,t,n){e.translate=tC(t.translate,0,n),e.scale=tC(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function XF(e,t,n,i){e.min=tC(t.min,n.min,i),e.max=tC(t.max,n.max,i)}function JF(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const ZF={duration:.45,ease:[.4,0,.1,1]},eB=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tB=eB("applewebkit/")&&!eB("chrome/")?Math.round:Ow;function nB(e){e.min=tB(e.min),e.max=tB(e.max)}function iB(e,t,n){return"position"===e||"preserve-aspect"===e&&(i=FF(t),a=FF(n),r=.2,!(Math.abs(i-a)<=r));var i,a,r}function aB(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}const rB=UF({attachResizeListener:(e,t)=>tI(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sB={current:void 0},lB=UF({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sB.current){const e=new rB({});e.mount(window),e.setOptions({layoutScroll:!0}),sB.current=e}return sB.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),oB={pan:{Feature:class extends JN{constructor(){super(...arguments),this.removePointerDownListener=Ow}onPointerDown(e){this.session=new kI(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:FI(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:WI(e),onStart:WI(t),onMove:n,onEnd:(e,t)=>{delete this.session,i&&pj.postRender((()=>i(e,t)))}}}mount(){this.removePointerDownListener=iI(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends JN{constructor(e){super(e),this.removeGroupControls=Ow,this.removeListeners=Ow,this.controls=new zI(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ow}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:lB,MeasureLayout:nF}};function dB(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===n);const a=i["onHover"+n];a&&pj.postRender((()=>a(t,nI(t))))}function cB(e,t,n){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===n);const a=i["onTap"+("End"===n?"":n)];a&&pj.postRender((()=>a(t,nI(t))))}const uB=new WeakMap,pB=new WeakMap,AB=e=>{const t=uB.get(e.target);t&&t(e)},hB=e=>{e.forEach(AB)};function fB(e,t,n){const i=function({root:e,...t}){const n=e||document;pB.has(n)||pB.set(n,{});const i=pB.get(n),a=JSON.stringify(t);return i[a]||(i[a]=new IntersectionObserver(hB,{root:e,...t})),i[a]}(t);return uB.set(e,n),i.observe(e),()=>{uB.delete(e),i.unobserve(e)}}const mB={some:0,all:1};const vB={inView:{Feature:class extends JN{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:a}=e,r={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:mB[i]};return fB(this.node.current,r,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,a&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),r=t?n:i;r&&r(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends JN{mount(){const{current:e}=this.node;e&&(this.unmount=gN(e,((e,t)=>(cB(this.node,t,"Start"),(e,{success:t})=>cB(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends JN{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(Ou){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Rw(tI(this.node.current,"focus",(()=>this.onFocus())),tI(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends JN{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[i,a,r]=dN(e,n),s=e=>{if(!cN(e))return;const{target:n}=e,i=t(n,e);if("function"!=typeof i||!n)return;const r=e=>{cN(e)&&(i(e),n.removeEventListener("pointerleave",r))};n.addEventListener("pointerleave",r,a)};return i.forEach((e=>{e.addEventListener("pointerenter",s,a)})),r}(e,((e,t)=>(dB(this.node,t,"Start"),e=>dB(this.node,e,"End")))))}unmount(){}}}},gB={layout:{ProjectionNode:lB,MeasureLayout:nF}},yB=a.createContext({strict:!1}),xB=a.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),bB=a.createContext({});function wB(e){return Nw(e.animate)||VN.some((t=>QN(e[t])))}function jB(e){return Boolean(wB(e)||e.variants)}function CB(e){const{initial:t,animate:n}=function(e,t){if(wB(e)){const{initial:t,animate:n}=e;return{initial:!1===t||QN(t)?t:void 0,animate:QN(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,a.useContext(bB));return a.useMemo((()=>({initial:t,animate:n})),[SB(t),SB(n)])}function SB(e){return Array.isArray(e)?e.join(" "):e}const NB="undefined"!=typeof window,IB={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},FB={};for(const Wfe in IB)FB[Wfe]={isEnabled:e=>IB[Wfe].some((t=>!!e[t]))};const BB=Symbol.for("motionComponentSymbol");function PB(e,t,n){return a.useCallback((i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&("function"==typeof n?n(i):BI(n)&&(n.current=i))}),[t])}const kB=NB?a.useLayoutEffect:a.useEffect;function TB(e,t,n,i,r){var s,l;const{visualElement:o}=a.useContext(bB),d=a.useContext(yB),c=a.useContext(YI),u=a.useContext(xB).reducedMotion,p=a.useRef(null);i=i||d.renderer,!p.current&&i&&(p.current=i(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:u}));const A=p.current,h=a.useContext(GI);!A||A.projection||!r||"html"!==A.type&&"svg"!==A.type||function(e,t,n,i){const{layoutId:a,layout:r,drag:s,dragConstraints:l,layoutScroll:o,layoutRoot:d,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:EB(e.parent)),e.projection.setOptions({layoutId:a,layout:r,alwaysMeasureLayout:Boolean(s)||l&&BI(l),visualElement:e,animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:o,layoutRoot:d})}(p.current,n,r,h);const f=a.useRef(!1);a.useInsertionEffect((()=>{A&&f.current&&A.update(n,c)}));const m=n[IN],v=a.useRef(Boolean(m)&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,m))&&(null==(l=window.MotionHasOptimisedAnimation)?void 0:l.call(window,m)));return kB((()=>{A&&(f.current=!0,window.MotionIsMounted=!0,A.updateFeatures(),rN.render(A.render),v.current&&A.animationState&&A.animationState.animateChanges())})),a.useEffect((()=>{A&&(!v.current&&A.animationState&&A.animationState.animateChanges(),v.current&&(queueMicrotask((()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,m)})),v.current=!1))})),A}function EB(e){if(e)return!1!==e.options.allowProjection?e.projection:EB(e.parent)}function DB({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:r}){function s(e,s){let l;const o={...a.useContext(xB),...e,layoutId:LB(e)},{isStatic:d}=o,c=CB(e),u=i(e,d);if(!d&&NB){a.useContext(yB).strict;const e=function(e){const{drag:t,layout:n}=FB;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(o);l=e.MeasureLayout,c.visualElement=TB(r,u,o,t,e.ProjectionNode)}return Ye.jsxs(bB.Provider,{value:c,children:[l&&c.visualElement?Ye.jsx(l,{visualElement:c.visualElement,...o}):null,n(r,e,PB(u,c.visualElement,s),u,d,c.visualElement)]})}e&&function(e){for(const t in e)FB[t]={...FB[t],...e[t]}}(e),s.displayName=`motion.${"string"==typeof r?r:`create(${r.displayName??r.name??""})`}`;const l=a.forwardRef(s);return l[BB]=r,l}function LB({layoutId:e}){const t=a.useContext(KI).id;return t&&void 0!==e?t+"-"+e:e}function UB(e,{layout:t,layoutId:n}){return lS.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!eF[e]||"opacity"===e)}const _B={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},OB=sS.length;function MB(e,t,n){const{style:i,vars:a,transformOrigin:r}=e;let s=!1,l=!1;for(const o in t){const e=t[o];if(lS.has(o))s=!0;else if(xj(o))a[o]=e;else{const t=nN(e,GS[o]);o.startsWith("origin")?(l=!0,r[o]=t):i[o]=t}}if(t.transform||(s||n?i.transform=function(e,t,n){let i="",a=!0;for(let r=0;r<OB;r++){const s=sS[r],l=e[s];if(void 0===l)continue;let o=!0;if(o="number"==typeof l?l===(s.startsWith("scale")?1:0):0===parseFloat(l),!o||n){const e=nN(l,GS[s]);o||(a=!1,i+=`${_B[s]||s}(${e}) `),n&&(t[s]=e)}}return i=i.trim(),n?i=n(t,a?"":i):a&&(i="none"),i}(t,e.transform,n):i.transform&&(i.transform="none")),l){const{originX:e="50%",originY:t="50%",originZ:n=0}=r;i.transformOrigin=`${e} ${t} ${n}`}}const RB=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function QB(e,t,n){for(const i in t)xN(t[i])||UB(i,n)||(e[i]=t[i])}function HB(e,t){const n={};return QB(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return a.useMemo((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return MB(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}function VB(e,t){const n={},i=HB(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const zB={offset:"stroke-dashoffset",array:"stroke-dasharray"},qB={offset:"strokeDashoffset",array:"strokeDasharray"};function WB(e,{attrX:t,attrY:n,attrScale:i,pathLength:a,pathSpacing:r=1,pathOffset:s=0,...l},o,d,c){if(MB(e,l,d),o)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:u,style:p}=e;u.transform&&(p.transform=u.transform,delete u.transform),(p.transform||u.transformOrigin)&&(p.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),p.transform&&(p.transformBox=(null==c?void 0:c.transformBox)??"fill-box",delete u.transformBox),void 0!==t&&(u.x=t),void 0!==n&&(u.y=n),void 0!==i&&(u.scale=i),void 0!==a&&function(e,t,n=1,i=0,a=!0){e.pathLength=1;const r=a?zB:qB;e[r.offset]=Oj.transform(-i);const s=Oj.transform(t),l=Oj.transform(n);e[r.array]=`${s} ${l}`}(u,a,r,s,!1)}const YB=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),KB=e=>"string"==typeof e&&"svg"===e.toLowerCase();function GB(e,t,n,i){const r=a.useMemo((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return WB(n,t,KB(i),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};QB(t,e.style,e),r.style={...t,...r.style}}return r}const $B=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function XB(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$B.has(e)}let JB=e=>!XB(e);try{(ZB=require("@emotion/is-prop-valid").default)&&(JB=e=>e.startsWith("on")?!XB(e):ZB(e))}catch{}var ZB;const eP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function tP(e){return"string"==typeof e&&!e.includes("-")&&!!(eP.indexOf(e)>-1||/[A-Z]/u.test(e))}function nP(e=!1){return(t,n,i,{latestValues:r},s)=>{const l=(tP(t)?GB:VB)(n,r,s,t),o=function(e,t,n){const i={};for(const a in e)"values"===a&&"object"==typeof e.values||(JB(a)||!0===n&&XB(a)||!t&&!XB(a)||e.draggable&&a.startsWith("onDrag"))&&(i[a]=e[a]);return i}(n,"string"==typeof t,e),d=t!==a.Fragment?{...o,...l,ref:i}:{},{children:c}=n,u=a.useMemo((()=>xN(c)?c.get():c),[c]);return a.createElement(t,{...d,children:u})}}function iP(e){const t=a.useRef(null);return null===t.current&&(t.current=e()),t.current}const aP=e=>(t,n)=>{const i=a.useContext(bB),r=a.useContext(YI),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,a){return{latestValues:rP(n,i,a,e),renderState:t()}}(e,t,i,r);return n?s():iP(s)};function rP(e,t,n,i){const a={},r=i(e,{});for(const p in r)a[p]=sF(r[p]);let{initial:s,animate:l}=e;const o=wB(e),d=jB(e);t&&d&&!o&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===l&&(l=t.animate));let c=!!n&&!1===n.initial;c=c||!1===s;const u=c?l:s;if(u&&"boolean"!=typeof u&&!Nw(u)){const t=Array.isArray(u)?u:[u];for(let n=0;n<t.length;n++){const i=Fw(e,t[n]);if(i){const{transitionEnd:e,transition:t,...n}=i;for(const i in n){let e=n[i];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(a[i]=e)}for(const i in e)a[i]=e[i]}}}return a}function sP(e,t,n){var i;const{style:a}=e,r={};for(const s in a)(xN(a[s])||t.style&&xN(t.style[s])||UB(s,e)||void 0!==(null==(i=null==n?void 0:n.getValue(s))?void 0:i.liveStyle))&&(r[s]=a[s]);return r}const lP={useVisualState:aP({scrapeMotionValuesFromProps:sP,createRenderState:RB})};function oP(e,t,n){const i=sP(e,t,n);for(const a in e)if(xN(e[a])||xN(t[a])){i[-1!==sS.indexOf(a)?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a]=e[a]}return i}const dP={useVisualState:aP({scrapeMotionValuesFromProps:oP,createRenderState:YB})};function cP(e,t){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){return DB({...tP(n)?dP:lP,preloadedFeatures:e,useRender:nP(i),createVisualElement:t,Component:n})}}const uP={current:null},pP={current:!1};const AP=new WeakMap;const hP=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fP{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:a,visualState:r},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gS,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=gj.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,pj.render(this.render,!1,!0))};const{latestValues:l,renderState:o}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=o,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=Boolean(a),this.isControllingVariants=wB(t),this.isVariantNode=jB(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:d,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const u in c){const e=c[u];void 0!==l[u]&&xN(e)&&e.set(l[u],!1)}}mount(e){this.current=e,AP.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),pP.current||function(){if(pP.current=!0,NB)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>uP.current=e.matches;e.addListener(t),t()}else uP.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||uP.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Aj(this.notifyUpdate),Aj(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=lS.has(e);n&&this.onBindTransform&&this.onBindTransform();const i=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&pj.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),a=t.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{i(),a(),r&&r(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in FB){const t=FB[e];if(!t)continue;const{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<hP.length;n++){const t=hP[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const i=e["on"+t];i&&(this.propEventSubscriptions[t]=this.on(t,i))}this.prevMotionValues=function(e,t,n){for(const i in t){const a=t[i],r=n[i];if(xN(a))e.addValue(i,a);else if(xN(r))e.addValue(i,aN(a,{owner:e}));else if(r!==a)if(e.hasValue(i)){const t=e.getValue(i);!0===t.liveStyle?t.jump(a):t.hasAnimated||t.set(a)}else{const t=e.getStaticValue(i);e.addValue(i,aN(void 0!==t?t:a,{owner:e}))}}for(const i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=aN(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var i;return null!=n&&("string"==typeof n&&(Dw(n)||Uw(n))?n=parseFloat(n):(i=n,!bN.find(QS(i))&&Jj.test(t)&&(n=JS(e,t))),this.setBaseTarget(e,xN(n)?n.get():n)),xN(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const a=Fw(this.props,n,null==(t=this.presenceContext)?void 0:t.custom);a&&(i=a[e])}if(n&&void 0!==i)return i;const a=this.getBaseTargetFromProps(this.props,e);return void 0===a||xN(a)?void 0!==this.initialValues[e]&&void 0===i?void 0:this.baseTarget[e]:a}on(e,t){return this.events[e]||(this.events[e]=new Hw),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class mP extends fP{constructor(){super(...arguments),this.KeyframeResolver=eN}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;xN(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}function vP(e,{style:t,vars:n},i,a){Object.assign(e.style,t,a&&a.getProjectionStyles(i));for(const r in n)e.style.setProperty(r,n[r])}class gP extends mP{constructor(){super(...arguments),this.type="html",this.renderInstance=vP}readValueFromInstance(e,t){var n,i;if(lS.has(t))return(null==(n=this.projection)?void 0:n.isProjecting)?iS(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return aS(n,t)})(e,t);{const n=(i=e,window.getComputedStyle(i)),a=(xj(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof a?a.trim():a}}measureInstanceViewportBox(e,{transformPagePoint:t}){return II(e,t)}build(e,t,n){MB(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return sP(e,t,n)}}const yP=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class xP extends mP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=uI}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(lS.has(t)){const e=XS(t);return e&&e.default||0}return t=yP.has(t)?t:NN(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return oP(e,t,n)}build(e,t,n){WB(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,i){!function(e,t,n,i){vP(e,t,void 0,i);for(const a in t.attrs)e.setAttribute(yP.has(a)?a:NN(a),t.attrs[a])}(e,t,0,i)}mount(e){this.isSVGTag=KB(e.tagName),super.mount(e)}}const bP=cP({...eI,...vB,...oB,...gB},((e,t)=>tP(e)?new xP(t):new gP(t,{allowProjection:e!==a.Fragment})));S.extend(N),S.extend(Cw);const wP="/home/",jP=({formType:e})=>{var t,n,i,r,s;const l=Qt(),o=um(),d=Mt(),c=a.useRef(null),u=null==d?void 0:d.state,p=null==u?void 0:u.editstate,{RangePicker:A}=T,[h,f]=a.useState([null,null]),m=Tf(ky),v=Tf(wb),g=Tf(Py),y=iA("UserType"),x=iA("UserId"),b=Tf(Gg),[w,j]=a.useState(null),[C,N]=a.useState(null),[B,E]=a.useState([]),[D,L]=a.useState(!0),[U,_]=a.useState(!1),[O,M]=a.useState(null),[R,Q]=a.useState(null),[H,V]=a.useState(),[z,q]=a.useState(),[W,Y]=a.useState(null),[K,G]=a.useState(null),[$,X]=a.useState(null),[J,Z]=a.useState(null),[ee,te]=a.useState("N"),[ne,ie]=a.useState(null),[ae,re]=a.useState(null),[se,le]=a.useState(!1),[oe,de]=a.useState(!1),[ce,ue]=a.useState(""),[pe,Ae]=a.useState(!1),he=Tf(Ty),fe=null==(t=null==he?void 0:he.find((e=>(null==e?void 0:e.AppId)===W)))?void 0:t.PreferenceDetails,me=null==(n=null==fe?void 0:fe.find((e=>"License Type"===(null==e?void 0:e.PreferredCatName))))?void 0:n.PreferenceCatDetails,ve=null==me?void 0:me.find((e=>"Y"===(null==e?void 0:e.PreferredStatus))),ge=null==ve?void 0:ve.PreferredSubCatName,ye=[{name:"Financial Year"},{name:"Calender Year"},{name:"Date"}],xe=[{name:"Home",link:`${wP}landing-page/home`},{name:"Branch",link:`${wP}setting/branch-master/`},{name:p?"Edit":"New",link:null}];a.useEffect((()=>{be()}),[W]),a.useEffect((()=>{if("Financial Year"!==ce||p){if("Calender Year"===ce&&!p){const e=ke("DD-MM-YYYY");let[t,n]=e.split(" - ");ie(S(t,"DD-MM-YYYY").format("YYYY-MM-DD")),re(S(n,"DD-MM-YYYY").format("YYYY-MM-DD"))}}else{const e=Pe("DD-MM-YYYY");let[t,n]=e.split(" - ");ie(S(t,"DD-MM-YYYY").format("YYYY-MM-DD")),re(S(n,"DD-MM-YYYY").format("YYYY-MM-DD"))}}),[ce,p]),a.useEffect((()=>{var e,t,n,i,a,r,s,l,d;if(o(Gh({items:xe})),o(hb()).unwrap(),"Admin"===y?o(vy(x)).unwrap():"Super Admin"===y&&o(vy()).unwrap(),p){p.Latitude=p.Latitude?p.Latitude:null,p.Longitude=p.Longitude?p.Longitude:null,L(!1),Te(null==p?void 0:p.FYType),null==(e=c.current)||e.setFieldsValue({FinancialYear:null==p?void 0:p.FYType}),null==(t=c.current)||t.setFieldsValue({FYStatus:"Y"==(null==p?void 0:p.FYStatus)?null==p?void 0:p.FYStatus:null}),null==(n=c.current)||n.setFieldsValue({FYStartsFrom:null==p?void 0:p.FYStartsFrom}),null==(i=c.current)||i.setFieldsValue({FYEnds:null==p?void 0:p.FYEnds}),null==(a=c.current)||a.setFieldsValue({Latitude:p.Latitude}),null==(r=c.current)||r.setFieldsValue({Longitude:p.Longitude}),null==(s=c.current)||s.setFieldsValue({DateFormat:[S(Ee(null==p?void 0:p.FYStartsFrom),"YYYY-MM-DD"),S(Ee(null==p?void 0:p.FYEnds),"YYYY-MM-DD")]}),V(p.WorkingFrom),q(p.WorkingTo),null==(l=c.current)||l.setFieldsValue({WorkingFrom:p.WorkingFrom,WorkingTo:p.WorkingTo,CompId:p.CompId}),M(null==p?void 0:p.CompId),(null==p?void 0:p.Zip)&&_(!0),Q(null==p?void 0:p.UserId),te("Y"==(null==p?void 0:p.FYStatus)),null==(d=c.current)||d.setFieldsValue({CalenderFormat:(null==p?void 0:p.FYType)?null==p?void 0:p.FYType:null});let u=(null==p?void 0:p.FYStartsFrom)?S(null==p?void 0:p.FYStartsFrom):null,A=(null==p?void 0:p.FYEnds)?S(null==p?void 0:p.FYEnds):null;f([u,A]),o(gy(null==p?void 0:p.AppId)).unwrap(),o(yy({UserId:null==p?void 0:p.UserId,AppId:null==p?void 0:p.AppId})).unwrap()}}),[]),a.useEffect((()=>{var e,t;if(R){const n=null==g?void 0:g.filter((e=>e.UserId===R)),i=Array.from(null==n?void 0:n.reduce(((e,t)=>{if("Active"===t.Status){const n=`${t.AppId}-${t.AppName}`;e.has(n)||e.set(n,t)}return e}),new Map).values());if(E(i),1===(null==i?void 0:i.length)){const t=i[0].AppId;Y(t),le(!0),de(!1),null==(e=c.current)||e.setFieldsValue({AppId:t}),o(yy({UserId:R,AppId:t})).unwrap()}else E(i),p&&(Y(null==p?void 0:p.AppId),de(!1),null==(t=c.current)||t.setFieldsValue({AppId:null==p?void 0:p.AppId}),o(yy({UserId:R,AppId:null==p?void 0:p.AppId})).unwrap())}else E([])}),[R,g]),a.useEffect((()=>{var e;if(W){const t=m.filter((e=>e.AppId===W));if(1===t.length){const e=t[0].CompId;M(e),de(!0),we(e)}else M(null),null==(e=c.current)||e.resetFields(["CompId"])}}),[W,m]),a.useEffect((()=>{var e,t;if("Admin"===y){if(1===g.length){const n=null==(e=g[0])?void 0:e.AppId;Y(n),le(!0),de(!1),o(yy({UserId:x,AppId:n})).unwrap(),null==(t=c.current)||t.setFieldsValue({AppId:n})}}else o(hb()).unwrap()}),[y,g,x]);const be=async()=>{o(Ny({SelectedApplication:W}))},we=async e=>{var t,n,i,a,r,s,d,u,A,h,f=[];if(1!=(null==(t=(f="Admin"===y?await o(xy({UserId:x,AppId:W,CompId:e})).unwrap():await o(xy({UserId:R,AppId:W,CompId:e})).unwrap()).data)?void 0:t.statusCode)||p)f=[],await M(e);else{const t=null==(n=f.data)?void 0:n.data[0],p=null==(a=null==(i=f.data)?void 0:i.data)?void 0:a.length;if(t)if("FREE"!=t.PricingName.toUpperCase()&&0==t.BranchCount)await M(e),null==(r=c.current)||r.setFieldsValue({CompId:e}),L(!1);else if("FREE"==t.PricingName.toUpperCase()&&t.BranchCount>=1)p>1?L(!0):(L(!0),o(Iy({id:e})),setTimeout((function(){l(`${wP}setting/branch-master/`,{state:{Notiffy:{messageType:"error",messageData:"Your Trial Period is Expired Please Choose Extend Pack To Add Branch "}}},700)})));else if("FREE"!=t.PricingName.toUpperCase()){let n=null==(s=null==t?void 0:t.FeatureDetails)?void 0:s.filter((e=>"Branch"===e.FeatName?e.FeatConstraint:0));(n.length>0?null==(d=n[0])?void 0:d.FeatConstraint:0)>t.BranchCount?(L(!1),await M(e),null==(u=c.current)||u.setFieldsValue({CompId:e})):(L(!0),o(Iy({id:e})),setTimeout((function(){l(`${wP}setting/branch-master/`,{state:{Notiffy:{messageType:"error",messageData:"Your Feature Constraint is Completed! "}}},700)})))}else await M(e),null==(A=c.current)||A.setFieldsValue({CompId:e}),L(!1);else await M(e),null==(h=c.current)||h.setFieldsValue({CompId:e}),L(!1)}},je=a.useCallback((()=>{N(null),j(null)}),[]);function Ce(e){return(null==e?void 0:e.includes("T"))?null==e?void 0:e.split("T")[0]:e}const Ne=async e=>{var t,n;if((null==(t=null==e?void 0:e.target)?void 0:t.value.length)<6)return _(!1),!1;await(async e=>{var t;let n="";await fetch(`https://api.postalpincode.in/pincode/${e}`).then((e=>e.text())).then((e=>n=JSON.parse(e))),"Success"===n[0].Status?(_(!0),null==(t=c.current)||t.setFieldsValue({City:n[0].PostOffice[0].Block,Dist:n[0].PostOffice[0].District,State:n[0].PostOffice[0].State})):_(!1)})(null==(n=null==e?void 0:e.target)?void 0:n.value)},Ie=e=>{Ae(e)},Fe=async e=>{var t,n,i,a,r;null==(t=c.current)||t.setFieldsValue({AppId:e}),await Y(e),le(!1),de(!1);var s=[];if(1==(null==(n=(s="Admin"===y?await o(xy({UserId:x,AppId:e,CompId:e})).unwrap():await o(xy({UserId:R,AppId:e,CompId:e})).unwrap()).data)?void 0:n.statusCode)){const t=null==(i=s.data)?void 0:i.data[0],n=null==(r=null==(a=s.data)?void 0:a.data)?void 0:r.length;t&&("FREE"!=t.PricingName.toUpperCase()&&0==t.BranchCount||"FREE"==t.PricingName.toUpperCase()&&t.BranchCount>=1&&(n>1?L(!0):(L(!1),o(Iy({id:e})),setTimeout((function(){l(`${wP}setting/branch-master/`,{state:{Notiffy:{messageType:"error",messageData:"Your Trial Period is Expired Please Choose Extend Pack To Add Branch "}}},700)})))))}else Trial=[];"Admin"==y?o(yy({UserId:x,AppId:e})).unwrap():o(yy({UserId:R,AppId:e})).unwrap()};const Be=(e,t)=>{var n,i;f(e);const[a,r]=t,s=a?S(a,"MMM-DD").format("YYYY-MM-DD"):null,l=r?S(r,"MMM-DD").format("YYYY-MM-DD"):null;ie(s),re(l),s&&l?null==(n=c.current)||n.setFieldsValue({DateFormat:[S(s),S(l)]}):null==(i=c.current)||i.setFieldsValue({DateFormat:[]})},Pe=(e="DD-MM-YYYY")=>{const t=S(),n=t.year();let i,a;return t.month()+1>=4?(i=S(`${n}-04-01`),a=S(`${n+1}-03-31`)):(i=S(n-1+"-04-01"),a=S(`${n}-03-31`)),`${i.format(e)} - ${a.format(e)}`},ke=(e="DD-MM-YYYY")=>{const t=S().year(),n=S(`${t}-01-01`),i=S(`${t}-12-31`);return`${n.format(e)} - ${i.format(e)}`},Te=async e=>{var t;ue(e),te(!0),null==(t=c.current)||t.setFieldsValue({CalenderFormat:e})},Ee=e=>null==e?void 0:e.split("T")[0];return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:w,messageData:C,onComplete:je}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Branch"})}),Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:c,className:"formDivAnt branchformDivS",onFinish:async t=>{var n,i,a;if(!U)return j("error"),void N("Invalid ZipCode");let r=t;r.UserId=t.UserId||iA("UserId"),r.AppId=t.AppId,r.WorkingFrom=H?H.format("HH:mm:ss"):null,r.WorkingTo=z?z.format("HH:mm:ss"):null,r.FYStatus=ee?ee?"Y":"N":null==p?void 0:p.FYStatus,r.FYStartsFrom=Ce(ne||(null==p?void 0:p.FYStartsFrom)),r.FYEnds=Ce(ae||(null==p?void 0:p.FYEnds)),r.FYType=ce||(null==t?void 0:t.FYType),r.CreatedBy=iA("UserId");let s={};if("add"===e)try{s=await o(dy(r)).unwrap()}catch(d){}else if("edit"===e){r.BrId=null==p?void 0:p.BrId,r.AddId=null==p?void 0:p.AddId,r.UpdatedBy=iA("UserId");try{s=await o(cy(r)).unwrap()}catch(d){}}1==(null==(n=null==s?void 0:s.data)?void 0:n.statusCode)?l(`${wP}setting/branch-master/`,{state:{Notiffy:{messageType:"success",messageData:null==(i=null==s?void 0:s.data)?void 0:i.response}}}):(j("error"),N(null==(a=null==s?void 0:s.data)?void 0:a.response))},initialValues:p,children:[Ye.jsxs("div",{className:"formDivS branchformDivAnt",children:[Ye.jsxs("div",{className:"inputForm branchForms",children:["Super Admin"===y||"Super Admin User"===y?Ye.jsx(I.Item,{name:"UserId",rules:[{required:!0,message:"Please Select Admin"}],children:Ye.jsx(_y,{options:null==v?void 0:v.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?null==e?void 0:e.UserName:e.MobileNo}))),placeholder:"UserId",label:"Admin",className:"field-DropDown",isOnchanges:!("edit"!=e&&!R),onChangeFunction:async e=>{var t,n;null==(t=c.current)||t.setFieldsValue({UserId:e}),o(Iy({id:e})),Y(null),M(null),le(!1),de(!1),null==(n=c.current)||n.resetFields(["AppId"]),await Q(e)},valueData:R,disabled:"edit"==e})}):null,"Super Admin"===y||"Super Admin User"===y?Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application"}],children:Ye.jsx(_y,{options:null==B?void 0:B.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"AppId",label:"Application",className:"field-DropDown",isOnchanges:!("edit"!=e&&!W),onChangeFunction:Fe,valueData:W,disabled:!("edit"!=e&&!se)})}):Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application"}],style:{display:se||"edit"==e?"none":""},children:Ye.jsx(_y,{options:null==g?void 0:g.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"AppId",label:Ye.jsx("label",{className:"required",children:"Application"}),className:"field-DropDown",isOnchanges:!("edit"!=e&&!W),onChangeFunction:Fe,valueData:W,disabled:!("edit"!=e&&!se)})}),Ye.jsxs("div",{style:{lineHeight:"1.6"},children:[se||"edit"==e&&Ye.jsxs("p",{children:[Ye.jsx("strong",{children:"Application :"})," ",null==(i=null==g?void 0:g.find((e=>e.AppId===W)))?void 0:i.AppName]}),oe&&O&&Ye.jsxs("p",{children:[Ye.jsx("strong",{children:"Company :"})," ",null==(r=null==m?void 0:m.find((e=>e.CompId===O)))?void 0:r.CompName]})]})]}),Ye.jsx(I.Item,{name:"CompId",rules:[{required:!0,message:"Please Select Company"}],style:{display:oe?"none":""},children:Ye.jsx(_y,{options:null==m?void 0:m.map((e=>({value:e.CompId,label:e.CompName}))),placeholder:"CompId",label:Ye.jsx("label",{className:"required",children:"Company"}),className:"field-DropDown",isOnchanges:!("edit"!=e&&!O),onChangeFunction:we,valueData:O,disabled:!("edit"!=e&&!oe)})}),Ye.jsx(I.Item,{name:"BrName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Branch"},{validator:async(e,t)=>(await lA(t),t&&t.length>50?Promise.reject("Branch should not exceed 50 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"BrName",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Branch"}),fieldState:!0,fieldApi:!0,isOnChange:"edit"==e,onChange:e=>{var t,n;const i=function(e){const t=e.split(" ");let n="";for(let i=0;i<t.length;i++){const e=t[i];e.length>0&&(n+=e.substring(0,2))}return n.toUpperCase()}(null==(t=null==e?void 0:e.target)?void 0:t.value);(null==i?void 0:i.length)<5&&(null==(n=c.current)||n.setFieldsValue({BrShName:i}),Z(i))}})}),Ye.jsx(I.Item,{name:"AppSpecificName",rules:[{required:!1,pattern:/^(?!\s*$).+/,message:"Please Enter App Specific Name"},{validator:async(e,t)=>t&&(await lA(t),t.length>30)?Promise.reject("App Specific Name should not exceed 30 characters"):Promise.resolve()}],children:Ye.jsx(Oy,{field:"AppSpecificName",autoComplete:"off",label:"AppSpecific Name",fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"BrShName",rules:[{required:!0,pattern:/^[^\s]{1,4}$/,message:"Please Enter Short Name"},{validator:async(e,t)=>(await lA(t),t&&t.length<=4?Promise.resolve():Promise.reject("Short Name should not exceed 4 characters"))}],children:Ye.jsx(Oy,{field:"BrShName",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Short Name"}),fieldState:!0,fieldApi:!0,isOnChange:!("edit"!=e&&!J)})}),Ye.jsx(I.Item,{name:"BrMobile",rules:[{pattern:/^[0-9]{10}$/,message:"Enter a Valid MobileNo"},{pattern:/^[6-9]\d{9}$/,message:"Enter a valid 10-digit mobile number starting with 6-9"}],children:Ye.jsx(Oy,{field:"BrMobile",label:"Mobile",fieldState:!0,fieldApi:!0,maxLength:"10",autoComplete:"nope",isOnChange:"edit"==e,inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")})}),Ye.jsx(I.Item,{name:"BrMobile2",rules:[{pattern:/^[0-9]{10}$/,message:"Enter a Valid MobileNo"}],children:Ye.jsx(Oy,{field:"BrMobile2",label:"Mobile2",fieldState:!0,fieldApi:!0,maxLength:"10",autoComplete:"nope",isOnChange:"edit"==e,inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")})}),Ye.jsx(I.Item,{name:"BrEmail",rules:[{pattern:/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,message:"Enter a valid email address"}],children:Ye.jsx(Oy,{field:"BrEmail",autoComplete:"nope",label:"Email",fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"BrRegnNo",rules:[{pattern:/^[LU]\d{5}[A-Z]{2}\d{4}(PTC|PLC|OPC|GAP|FTC|FLC|NPL|ULL|SGC|SEC)\d{6}$/,message:"Please enter a valid Registration No"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"BrRegnNo",autoComplete:"off",label:"Registration No",fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"BrGSTIN",rules:[{pattern:/^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Za-z]{1}[Z]{1}[0-9A-Za-z]{1}$/,message:"Enter a valid GSTIN"}],children:Ye.jsx(Oy,{field:"BrGSTIN",autoComplete:"off",label:"GST",fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),W&&ge&&Ye.jsx(I.Item,{name:"BrFSSAI",rules:[{pattern:/^[0-9]{14}$/,message:"Enter a valid FSSAI number"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"BrFSSAI",autoComplete:"off",label:ge,maxLength:"14",fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"BrInCharge",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Incharge"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"BrInCharge",autoComplete:"off",label:"Incharge",fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"WorkingFrom",children:Ye.jsx(ww,{label:"Working From",isOnChange:!0,onChange:e=>{V(e)},valueData:H})}),Ye.jsx(I.Item,{name:"WorkingTo",rules:[{validator:(e,t)=>{if(!t||!H)return Promise.resolve();const n=Se(H.$d);return Se(t.$d).isSameOrBefore(n)?Promise.reject(new Error("Working To should be greater than Working From")):Promise.resolve()}}],children:Ye.jsx(ww,{label:"Working To",isOnChange:!0,onChange:e=>{q(e)},valueData:z})}),Ye.jsxs("div",{className:"formAddressDiv",children:[Ye.jsxs(I.Item,{rules:[{required:"Y"==ee&&"Date"==ce,pattern:/^(?!\s*$).+/,message:"Please Swich financial Year"}],name:"FinancialYear",children:[Ye.jsx("p",{children:" Financial Year"}),Ye.jsx("br",{})]}),Ye.jsx("div",{className:"financial-switch",children:Ye.jsx(Sw,{defaultChecked:ee,functionName:e=>{var t;e?(te(!0),null==p&&(null==(t=c.current)||t.setFieldsValue({DateFormat:[]}),ie(null),re(null))):te(!1)},disabled:!!(null==p?void 0:p.FYType)})}),ee&&Ye.jsx(I.Item,{name:"CalenderFormat",rules:[{required:ee,pattern:/^(?!\s*$).+/,message:"Please Select Format"}],children:Ye.jsx(_y,{options:null==ye?void 0:ye.map((e=>({value:null==e?void 0:e.name,label:null==e?void 0:e.name}))),placeholder:"AppId",label:Ye.jsx("label",{children:"Calender Format"}),className:"field-DropDown",isOnchanges:(null==ce?void 0:ce.length)>0,onChangeFunction:Te,valueData:ce,disabled:!!(null==p?void 0:p.FYType)})})]}),("Date"==ce&&ee||"Date"==(null==p?void 0:p.FYType)&&ee&&"Y"==(null==p?void 0:p.FYStatus))&&Ye.jsx(I.Item,{name:"DateFormat",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Select Date"}],children:Ye.jsx(P,{direction:"vertical",children:Ye.jsx(A,{value:h,onCalendarChange:Be,onChange:Be,disabled:!(!(null==p?void 0:p.FYStartsFrom)||!(null==p?void 0:p.FYEnds)),format:"MMM-DD",defaultValue:"Date"===(null==p?void 0:p.FYType)?[S(Ee((null==p?void 0:p.FYStartsFrom)??""),"YYYY-MM-DD"),S(Ee((null==p?void 0:p.FYEnds)??""),"YYYY-MM-DD")]:[],disabledDate:e=>{if(!h||!h[0])return!1;const t=h[0].endOf("month");return e.isSameOrBefore(t,"day")}})})}),Ye.jsx(I.Item,{name:"FYStartsFrom",rules:[{pattern:/^(?!\s*$).+/,message:"Please Select Date"}],children:Ye.jsx("p",{style:{fontWeight:600},children:("Financial Year"==ce&&ee||"Financial Year"==(null==p?void 0:p.FYType)&&ee)&&Pe("DD-MMM")})}),Ye.jsx(I.Item,{name:"FYEnds",rules:[{pattern:/^(?!\s*$).+/,message:"Please Select Date"}],children:Ye.jsx("p",{style:{fontWeight:600},children:("Calender Year"==ce&&ee||"Calender Year"==(null==p?void 0:p.FYType)&&ee)&&ke("DD-MMM")})}),Ye.jsx(I.Item,{name:"FYStatus",rules:[{pattern:/^(?!\s*$).+/,message:"Please Select Date"}]}),!pe&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"subinputForm subinputForm2",children:[Ye.jsx(I.Item,{name:"Address1",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Address1"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Address1",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Address Line1"}),fieldState:!0,fieldApi:!0,isOnChange:!!(null==p?void 0:p.Address1)})}),Ye.jsx(I.Item,{name:"Address2",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Address2"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Address2",autoComplete:"off",label:"Address Line2",fieldState:!0,fieldApi:!0,isOnChange:!!(null==p?void 0:p.Address2)})}),Ye.jsx(I.Item,{name:"Zip",rules:[{required:"edit"!=e,validator:(e,t)=>t?/^\d{6}$/.test(t)?Promise.resolve():Promise.reject("Zipcode must be exactly 6 digits"):Promise.reject("Please enter Zipcode")}],children:Ye.jsx(Oy,{field:"Zip",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Zipcode"}),maxLength:"6",fieldState:!0,fieldApi:!0,isOnChange:!!(null==p?void 0:p.Zip),onChange:Ne,inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")})})]}),Ye.jsxs("div",{className:"subinputForm subinputForm2",children:[U?Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(I.Item,{name:"City",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"City",disabled:!0,isOnChange:!0,label:"City",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"Dist",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Dist",disabled:!0,isOnChange:!0,label:"District",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"State",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"State",disabled:!0,isOnChange:!0,label:"State",fieldState:!0,fieldApi:!0})})]}):"",Ye.jsx(I.Item,{name:"Latitude",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Latitude"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Latitude",label:"Latitude",isOnChange:!(!K&&!(null==p?void 0:p.Latitude)),fieldState:!0,fieldApi:!0,autoComplete:"off",suffix:Ye.jsx(F,{title:pe?"Close Map":"View Map",children:Ye.jsx(jv,{style:{color:"#1677ff",fontSize:"18px",cursor:"pointer"},onClick:()=>Ie(!pe)})})})}),Ye.jsx(I.Item,{name:"Longitude",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Longitude"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Longitude",label:"Longitude",isOnChange:!(!$&&!(null==p?void 0:p.Longitude)),fieldState:!0,fieldApi:!0,autoComplete:"off"})})]})]})]}),pe&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("div",{className:"formAddressDiv",children:Ye.jsx("p",{children:" Address Details"})}),Ye.jsxs("div",{className:"subinputForm subinputForm2",children:[Ye.jsxs("div",{children:[Ye.jsx(I.Item,{name:"Address1",rules:[{required:"edit"!=e,pattern:/^(?!\s*$).+/,message:"Please Enter Address1"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Address1",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Address Line1"}),fieldState:!0,fieldApi:!0,isOnChange:!!(null==p?void 0:p.Address1)})}),Ye.jsx(I.Item,{name:"Address2",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Address2"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Address2",autoComplete:"off",label:"Address Line2",fieldState:!0,fieldApi:!0,isOnChange:!!(null==p?void 0:p.Address2)})}),Ye.jsx(I.Item,{name:"Zip",rules:[{required:"edit"!=e,validator:(e,t)=>t?/^\d{6}$/.test(t)?Promise.resolve():Promise.reject("Zipcode must be exactly 6 digits"):Promise.reject("Please enter Zipcode")}],children:Ye.jsx(Oy,{field:"Zip",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Zipcode"}),maxLength:"6",fieldState:!0,fieldApi:!0,isOnChange:!!(null==p?void 0:p.Zip),onChange:Ne,inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")})}),U?Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(I.Item,{name:"City",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"City",disabled:!0,isOnChange:!0,label:"City",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"Dist",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Dist",disabled:!0,isOnChange:!0,label:"District",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"State",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"State",disabled:!0,isOnChange:!0,label:"State",fieldState:!0,fieldApi:!0})})]}):"",Ye.jsx(I.Item,{name:"Latitude",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Latitude"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Latitude",label:"Latitude",isOnChange:!(!K&&!(null==p?void 0:p.Latitude)),fieldState:!0,fieldApi:!0,autoComplete:"off",suffix:Ye.jsx(F,{title:pe?"Close Map":"View Map",children:Ye.jsx(jv,{style:{color:"#1677ff",fontSize:"18px",cursor:"pointer"},onClick:()=>Ie(!pe)})})})}),Ye.jsx(I.Item,{name:"Longitude",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Longitude"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Longitude",label:"Longitude",isOnChange:!(!$&&!(null==p?void 0:p.Longitude)),fieldState:!0,fieldApi:!0,autoComplete:"off"})})]}),Ye.jsx("div",{className:"MapDiv",children:Ye.jsx(ib,{onMarkerClick:async e=>{var t;G("function"==typeof e.lat?e.lat():K),X("function"==typeof e.lng?e.lng():$),null==(t=c.current)||t.setFieldsValue({Latitude:"function"==typeof e.lat?e.lat():K,Longitude:"function"==typeof e.lng?e.lng():$})},prevlca:p?{lat:p.Latitude,lng:p.Longitude}:null})})]})]})]}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0,disabled:"Super Admin"!==y&&(D||"N"===(null==(s=null==b?void 0:b.find((e=>"Branch"===(null==e?void 0:e.ConfigName))))?void 0:s.AddAccess))})})]})})]})})})},CP="/home/",SP=({open:e,title:t,handleCancel:n,children:i,footer:r,handleSubmit:s,width:l,destroyOnClose:o,buttonText:d,maskTransitionName:c,transitionName:u,className:p})=>(a.useEffect((()=>{const t=t=>{"Escape"===t.key&&e&&n()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)}),[e,n]),Ye.jsx(Ye.Fragment,{children:Ye.jsx(j,{destroyOnClose:o||!1,open:e,title:t,top:0,width:l||700,maskTransitionName:c,transitionName:u,className:p,centered:!0,closeIcon:Ye.jsx(M,{onClick:n}),onCancel:n,footer:r?[Ye.jsx(Ry,{buttonText:d||"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),handleSubmit:s,children:d})]:r,maskClosable:!0,children:i})})),NP="https://www.pozo.dev/pozo-common-api",IP=Ja("application/getBannerImage",(async()=>await Ne.get(`${NP}/application?ActiveStatus=A`))),FP=Ja("application/getApplication",(async()=>await Ne.get(`${NP}/application?Type=A`))),BP=Ja("application/getApplication",(async()=>await Ne.get(`${NP}/application`))),PP=Ja("application/getApplicationCategory",(async e=>{if(null!=e&&null!=e)return await Ne.get(`${NP}/application?CateId=${e}`)})),kP=Ja("application/getApplicationSubCategory",(async e=>{if(null!=e&&null!=e)return await Ne.get(`${NP}/application?SubId=${e}`)})),TP=Ja("application/onlineimages",(async e=>{if(null!=e&&null!=e)return await fA.get(`/Image?Name=${e}`)})),EP=Ja("upload/uploadImage",(async e=>{let t=new FormData;return t.append("file",e),await fA.post("https://www.pozo.dev/pozo-common-image-api/upload",t)})),DP=Ya({name:"bannerImage",initialState:{BannerImage:[],Applications:[],ApplicationCategory:[],ApplicationSubCategory:[]},extraReducers:e=>{e.addCase(IP.fulfilled,((e,t)=>{var n,i;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.BannerImage=null==(i=null==t?void 0:t.payload)?void 0:i.data:e.BannerImage=null})),e.addCase(FP.fulfilled,((e,t)=>{var n,i;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.Applications=null==(i=null==t?void 0:t.payload)?void 0:i.data:e.Applications=null})),e.addCase(PP.fulfilled,((e,t)=>{var n,i;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.ApplicationCategory=null==(i=null==t?void 0:t.payload)?void 0:i.data:e.ApplicationCategory=null})),e.addCase(kP.fulfilled,((e,t)=>{var n,i;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.ApplicationSubCategory=null==(i=null==t?void 0:t.payload)?void 0:i.data:e.ApplicationSubCategory=null}))}}).reducer,LP="/home/",UP="/apps/retail/app-page/home",_P=({formType:e})=>{var t,n,i,r,s;const l=Qt(),o=um(),d=Mt(),c=a.useRef(null),u=null==d?void 0:d.state,p=null==u?void 0:u.editstate,A=Tf(Ob),h=Tf(Mb),[f,m]=a.useState(null),[v,g]=a.useState(null),[y,x]=a.useState(null),[w,j]=a.useState(null),[C,S]=a.useState(""),[N,P]=a.useState(!1),[T,E]=a.useState(),[D,L]=a.useState(),[U,_]=a.useState(),O=[{name:"Home",link:`${LP}landing-page/home`},{name:"Application",link:`${LP}setting/application-master/`},{name:p?"Edit":"New",link:null}];a.useEffect((()=>{var e;o(Gh({items:O})),o(Tb()).unwrap(),o(Eb()).unwrap(),M(),p&&(S(null==p?void 0:p.AppLogo),null==(e=c.current)||e.setFieldsValue({CateId:p.CateId,SubCateId:p.SubCateId}),x(p.CateId),j(p.SubCateId))}),[]);const M=async()=>{var e,t,n;let i=null==(e=null==c?void 0:c.current)?void 0:e.getFieldsValue().AppName;if(null!=i){let e=await o(TP(null==(t=null==c?void 0:c.current)?void 0:t.getFieldsValue().AppName)).unwrap();E(null==(n=null==e?void 0:e.data)?void 0:n.data)}},R=a.useCallback((()=>{g(null),m(null)}),[]),[Q,H]=a.useState(!1);return"edit"==e&&"I"!==(null==p?void 0:p.AppUrlType)&&(null==(t=null==c?void 0:c.current)||t.setFieldsValue({AppURL:null==p?void 0:p.AppUrl})),Ye.jsxs("div",{className:"pageOverAll",children:[Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:f,messageData:v,onComplete:R}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Application"})}),Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:c,className:"formDivAnt",onFinish:async t=>{var n,i,a,r,s;let d={};d.AppDescription=t.AppDescription,d.AppId=t.AppId,d.AppURLType=y==(null==(n=null==A?void 0:A.filter((e=>"Retail"==(null==e?void 0:e.ConfigName)))[0])?void 0:n.ConfigId)?"I":"E",d.AppLogo=C,d.AppName=t.AppName,d.AppURL=y==(null==(i=null==A?void 0:A.filter((e=>"Retail"==(null==e?void 0:e.ConfigName)))[0])?void 0:i.ConfigId)&&Q?UP:t.AppURL,d.CateId=t.CateId,d.CreatedBy=iA("UserId"),d.SubCateId=t.SubCateId,d.UpdatedBy=t.UpdatedBy;let c={};if("add"===e)try{c=await o(Bb(d)).unwrap()}catch(u){"Request failed with status code 422"==u.message&&(c={data:{statusCode:0,response:"Please Give Required Fields",data:[]}})}else if("edit"===e){d.AppId=null==p?void 0:p.AppId,d.UpdatedBy=iA("UserId");try{c=await o(Pb(d)).unwrap()}catch(u){"Request failed with status code 422"==u.message&&(c={data:{statusCode:0,response:"Please Give Required Fields",data:[]}})}}1==(null==(a=null==c?void 0:c.data)?void 0:a.statusCode)?l(`${LP}setting/application-master/`,{state:{Notiffy:{messageType:"success",messageData:null==(r=null==c?void 0:c.data)?void 0:r.response}}}):(m("error"),g(null==(s=null==c?void 0:c.data)?void 0:s.response))},initialValues:p,children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"AppName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Application Name"},{validator:async(e,t)=>(await lA(t),t&&!/^.{1,50}$/.test(t)?Promise.reject("Application Name must be 1 to 50 characters."):Promise.resolve())}],children:Ye.jsx(Oy,{field:"AppName",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Application Name "}),fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"CateId",rules:[{required:!0,message:"Please Select Module"}],children:Ye.jsx(_y,{options:null==A?void 0:A.map((e=>({value:e.ConfigId,label:e.ConfigName}))),label:Ye.jsx("label",{className:"required",children:"Module"}),onChangeFunction:async e=>{var t;null==(t=c.current)||t.setFieldsValue({CateId:e}),await x(e)},optionsNames:{value:"ConfigId",label:"ConfigName"},className:"field-DropDown",isOnchanges:!("edit"!=e&&!y),valueData:y,disabled:"edit"==e})}),Ye.jsx(I.Item,{name:"SubCateId",rules:[{required:!0,message:"Please Select Sub Module "}],children:Ye.jsx(_y,{options:null==h?void 0:h.map((e=>({value:e.ConfigId,label:e.ConfigName}))),label:Ye.jsx("label",{className:"required",children:"Sub Module"}),onChangeFunction:async e=>{var t;null==(t=c.current)||t.setFieldsValue({SubCateId:e}),await j(e)},optionsNames:{value:"ConfigId",label:"ConfigName"},className:"field-DropDown",isOnchanges:!("edit"!=e&&!w),valueData:w,disabled:"edit"==e})}),Ye.jsx(I.Item,{name:"AppDescription",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Application Description"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(My,{field:"AppDescription",autoComplete:"off",label:"Description",fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsxs("div",{className:"upload_btn",children:[Ye.jsx("p",{children:"Upload Logo"}),Ye.jsx(Yy,{singleImage:!0,updateImageUrl:S,ImageLink:U||((null==p?void 0:p.AppLogo)?null==p?void 0:p.AppLogo:"")}),Ye.jsx("button",{type:"button",style:{width:"6.5rem",backgroundColor:"#dbd1d1",color:"#000000",border:"0.5px solid gray",borderRadius:"3px",padding:"3px"},onClick:()=>{var e;let t=null==(e=null==c?void 0:c.current)?void 0:e.getFieldsValue().AppName;null!=t?(M(),P(!0)):(m("error"),g("Eneter Application Name"))},children:"Browse Image"})]}),null==y?"":y==(null==(i=null==(n=null==A?void 0:A.filter((e=>"Retail"==(null==e?void 0:e.ConfigName))))?void 0:n[0])?void 0:i.ConfigId)?Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{children:["Retail URL : ",Ye.jsx(b,{onChange:e=>{H(e)}})," "]}),Q?Ye.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[Ye.jsx("p",{children:"URL:"}),Ye.jsxs("p",{style:{color:"#1292EE"},children:["https://pozo.app",UP]})]}):Ye.jsx(I.Item,{name:"AppURL",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"BrMobile",label:"App URL",fieldState:!0,fieldApi:!0,autoComplete:"nope",isOnChange:"edit"==e&&(null==(r=null==p?void 0:p.AppUrl)?void 0:r.length)>0,suffix:Ye.jsx(F,{title:"/apps/yourApplication",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]}):Ye.jsx(I.Item,{name:"AppURL",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],className:"appUrlInput",children:Ye.jsx(Oy,{field:"BrMobile",label:"App URL",fieldState:!0,fieldApi:!0,autoComplete:"nope",isOnChange:"edit"==e&&(null==(s=null==p?void 0:p.AppUrl)?void 0:s.length)>0,suffix:Ye.jsx(F,{title:"/apps/yourApplication",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})})]})})]})}),Ye.jsx(SP,{title:"ONLINE LOGO IMAGE UPLOADER",width:800,open:N,footer:!0,buttonText:"Submit",children:Ye.jsx(I,{className:"",children:Ye.jsx("div",{className:"productonlineImg",children:null==T?void 0:T.map(((e,t)=>Ye.jsx("div",{className:"singleimg "+(D===e?"selected":""),onClick:()=>L(e),children:Ye.jsx("img",{src:e.image,alt:"no image",width:120,height:100})},t)))})}),handleSubmit:async()=>{var e,t,n;let i=await fetch(D.image),a=await i.blob(),r=new File([a],"image.jpg",{type:"image/jpeg"}),s=await o(EP(r)).unwrap();(null==(e=null==s?void 0:s.data)?void 0:e.status)&&(_(null==(t=null==s?void 0:s.data)?void 0:t.image),S(null==(n=null==s?void 0:s.data)?void 0:n.image)),P(!1)},handleCancel:()=>{P(!1)}})]})},OP="/home/",MP=Ja("configMaster/getAllSetupHeaderName",(async e=>{if(null!=e&&null!=e)return await fA.get(`/configMaster?TypeName=${e}&ActiveStatus=A`)})),RP=Ja("configMaster/getConfiguration",(async()=>await fA.get("/configMaster"))),QP=Ja("configMaster/getActiveConfigNames",(async()=>await fA.get("/configMaster?ActiveStatus=A"))),HP=Ja("configMaster/getConfigNames",(async({TypeName:e})=>{if(null!=e&&null!=e)return await fA.get(`/configMaster?TypeName=${e}`)})),VP=Ja("configMaster/getConfigNames",(async({TypeName:e})=>{if(null!=e&&null!=e)return await fA.get(`/configMaster?TypeName=${e}&ActiveStatus=A`)})),zP=Ja("configMaster/deleteConfiguration",(async e=>await fA.delete("/configMaster",{params:e}))),qP=Ja("configMaster/postConfiguration",(async e=>await fA.post("/configMaster",e))),WP=Ja("configMaster/putConfiguration",(async e=>await fA.put("/configMaster",e))),YP=Ja("configMaster/postBulkConfiguration",(async e=>await fA.post("/configMaster/BulkUpload",e))),KP=Ya({name:"configmaster",initialState:{configData:[],ActiveConfigNames:[]},extraReducers:e=>{e.addCase(RP.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.configData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.configData=[]})),e.addCase(QP.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.ActiveConfigNames=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.ActiveConfigNames=[]}))}}),GP=e=>{var t;return null==(t=e.configmasterPage)?void 0:t.configData},$P=KP.reducer,XP=Ja("configType/getConfigurationType",(async()=>await fA.get("/configType"))),JP=Ja("configType/postConfigurationType",(async e=>await fA.post("/configType",e))),ZP=Ja("configType/putConfigurationType",(async e=>await fA.put("/configType",e))),ek=Ja("configType/deleteConfigTypeData",(async e=>await fA.delete("/configType",{params:e}))),tk=Ja("configType/getActiveConfigTypeNames",(async()=>await fA.get("/configType?ActiveStatus=A"))),nk=Ja("configType/getActiveConfigTypeNames",(async e=>await fA.get(`/configMaster?typeName=${null==e?void 0:e.typeName}`))),ik=Ja("Postplanextend",(async e=>await fA.post("/UserAppMap",e))),ak=Ya({name:"configType",initialState:{configTypeData:[],configTypeActiveData:[]},extraReducers:e=>{e.addCase(XP.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.configTypeData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.configTypeData=[]})),e.addCase(tk.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.configTypeActiveData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.configTypeActiveData=[]}))}}),rk=e=>{var t;return null==(t=e.configtypePage)?void 0:t.configTypeData},sk=e=>{var t;return null==(t=e.configtypePage)?void 0:t.configTypeActiveData},lk=ak.reducer,ok=Ya({name:"excelupload",initialState:{excelFile:null,excelFileError:null,excelData:null,fileInputRef:" "},reducers:{emptyExcelData:(e,t)=>{e.excelFile=null,e.excelFileError=null,e.excelData=null,e.fileInputRef=" "},uploadExcel:(e,t)=>{const{file:n,jsonData:i}=null==t?void 0:t.payload;e.excelFile=n,e.excelData=i}}}),{emptyExcelData:dk,uploadExcel:ck}=ok.actions,uk=ok.reducer,pk=[{name:"Home",link:"/landing-page/home"}],Ak=[{name:"Home",link:"/landing-page/home"}],hk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHoAAABZCAYAAADxYTB8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA5wSURBVHgB7Z3361RHF8ZHY3o0iaYnikkglTQCaZAEAgnBAiqIIqj4iw3BP0VQUey9YO+99967sffee3v9zMuznL3u7nfr3XYfXXa/d2+dZ06Zc87M1rp+/foTF6HiUdtFqApERFcJIqKrBBHRVYI6yb64ceOGO3jwoLty5Yp7+PChe/z4sYtQmqhVq5Z7+eWXXePGjV2jRo3830E8Q/STJ0/c9u3b3Zw5c9zFixdd7dqR0Jc6JIQvvPCC++yzz1yLFi1c/fr14/apZYdX9IRt27a58ePHu/v373uSIT5CaQOO4E6S/NZbb7nu3bu7unXrxvaJk+hHjx656dOne5I56MMPP3S//vqrq1OnjotQ2rh06ZJbvXq1u3nzpv+8du1a9/fff8fIj2MQm/xUwv3nhg0buq5du7oXX3zR7xxJdunCSvKECRO8wG7cuNETLcQZYGyyDsSwv/LKK+65555zEUofCOLXX3/tXnrpJW+zb9++Hfd9neDOesc+420n8uAilB7gCc6s82y5S+lSR+q6cpDSy4qkuTxgBdJ63xbRILlKEBFdJYiIrhLUSHTkkFUGEhIdDJBEZJc/ItVdJQg1iC1NwaD+3r177vz58+7OnTt+O1G4Bg0a+AxMhPwjXKKf/rt957YPvpMlO3v2rN9OyI7Eyfvvv+9++OEH9+OPP8ZlXiLkjtCIRmr/O/SfGz16tLt27Vp8eO6phEP2iRMn3OnTp92SJUtcx44d3aeffuoi5Aeh2ej9+/e7wYMH+zRasoib8t8E5IcPH+6PiaJz+UHBiYa4q1evunHjxmVUknT37l1/DBk1jok8/9wQCtEkwW/dupXRcUgykr1161ZXalBFRzl1vlCIXrlyZezvTFXxunXrSqJuTckCRgs4kRRp8P7gwYOyIL3gztiFCxd8Y1iyMmkU1D7OW7169VwxgW8xc+ZMt3fvXq9pZIIYHfz222/uzz//9NU4pYqCE40E0OMpb8mm53MMjfz666+7YuHUqVNuyJAh/j7sfQHKoufPn+82bdrkRwrU2ZUiCq4T6eWQDLLxoOkYxQyinDt3LjYklBTbag6pdOrfGVVIldtXKaDgRFNfTB0ThGUzCQCS33zzTRc2IAjSpkyZ4s1P0oS+IRyJHzVqVElOdghFor/99ts4KUjnJfzyyy9FK1Bcvny5O3ToUOxvddZkL7B79263atUqV2oIxZ396aefsnJUnn/+effzzz8XxeuG4Llz52Z0jOL48+bN83a9lBDK8Orjjz92TZo0ychmsV/Tpk3de++9F/rQ5fLly27kyJFZ+xQ4oGPHjvWxg1IZdoUmKsz4+Pfff2Oet6Jdwby3OkPz5s39sAWE6dBwDxTBQ1LQ3GRyH2Tmpk2b5u18KZAdWlKDhvrnn3/cF1984Rvg8OHD3htXA4pkEhnNmjXzmaywPVaut3DhQh9jT0RsJoTRkTds2OA+//xz9/333xd9IkSoaUp69wcffOC6devmAyFHjx71wxcaFGIbNWzk6tarG7PJYUsC0a5ly5b5lKmdzJAtIBftgOkKzm4MG0WbPffGG2/4nm7VdTGHJQQ+Zs2aFRsHg1w7mgJF2PuePXsWdUxdlCBysoBCsQIMssvkwguBkydPutmzZ1cf0RaW3GIRzbiXGHahQEdaunRpUTNxoRMtTzvVKyxgQ8+cOeMdMGCDHzXdB/uwnITiA6k6qDowTihDt2KgaqtAaXiGUMSxKXLI5Dj8C5IXEE1WDUcSB66mDkLWa9iwYX6hgbBRtURDCqs74PVnAtKSSLEqXyANKaWCNZ3RAjnsFStWhO6bVC3RVKGyKkAm4VWIpSyZTBVpU0imPIptSCsSDmpS45gKYuKJgkaFQsGIzjZbFQawy9hLBWrSbWiex0bKqEmHaH2HzU9HMrke12dIFxYKQjQPwniURuC9lMA9seoSJGXqAEIkUozq5njVnpN80QoR6YKA0aRJk+LG7cFhZz7VeV6JtjdM4/HgpbJOmQhFbTJeTkfbkAu3nYBnQQpfe+01Ty7nePXVV30eGoeOZEYmINS6YMGC2P0VEgWTaCGZHUr1YOk8dDrHB99ZKI8cczrnhkAkGEItkGhSkNIIEI99hmR7vXSGjGwn5HrkyJG4dioE6XkJgUp6ZZdtiY1VP6gpvldWiCEJnzlWtWVsp4Ht2maEEdUAtpwHEmy4kvNIfXIOzQDheIZSRKdU1hTXCE+vhTpmf76HPIVkkV6dUyXI7APROF+yzbo/tICGWnQKPqsUKljyrGMnTpzo2rdv7+Phev58e+E5S7TssRqGRlAhoFXlPLSyVdoGIFjkqyfLttseLrK1nxpXsN8DSYjemQwQvA4QyRAHwSKK+0Qd42Gz9ho1Y7YaFa+be+dvnQ+brY7CseoI/M2x0hLan47KMaQ0KVbQBAcJTT4lO2eJtiqHRpSUAt2oGtgST0MQA2ZcyTj0nXfecR999JF7991347JHenhLsl0ai8ZiGx0JkqwnLelfv36997QBDW3tM2QgaQyROC8Sq2tS68Z2q5IhPphPV5SMe+D8BFTYhu2mE1HzpmP5DkeM/Tg/HQCyaYctW7b40ik6UNBk5IqciZZ06cHV2PK2bZ2VSNq1a5fPFNGokMqLRqJR6fXt2rVzb7/9tj+ec6sunM+8rNNjVbU8YlV50FgHDhzwC9hybgiFEDsSkJnhWF5WKwCO0Xap5ER5as6jsmQkmGvTFlyPJRshlWfj2tyrTAimgW3sj1SzOi+dPpnqzlbK8+KMSW0HbbO9Wd3gokWLfJkNjSE1xnFSnzRsr169YgkAqwVktyWRUun+QUwBg8a5XAOSdW/6zsL6FakqSSAJMpBIPZttdPkXOqfVQID7VCdJ1FY8O51x8uTJsZBsPtV3zkRz05IQPQQSIDKs6sXjZW60zT8rZ8vDQTyqjPPxwFRoSAJoGD7LFgPrpOn6AtdlZoUtugfBEYE0hTUv9v40xKKTWQL0HvSW7f2k8qKtj6LzoNrx6ClKlL+Tr7XSc1bdNECw8a2NlrrF44U4bRfBSApSLNtOrwYQQCyaxqUS1EqHVLmkKJEEMmdr586dXnXaY/XOdQGOlsbC+l4OprxwpFgSZ9fYTESwlWYhUSzBOot6do3NsdUURfLcul+eI5eYRM4SHXSyrIrSMAHJwi6jnq3a1ThUBfo0Jg3Juxwb7BbOlFXbuqa2WZXNOyVBmzdvjgt4WMnTfkgT5MkGW80gr5lt6ogawul8WmBVQ0WthKz74XjVitlOL8KszyCzpf0XL17svfFEmiIb5MVG6wGs7QE8PDMdmE2JxCgJYHs7x2gmBA1Fw9OAcpD4HjuLbZc9RgLVoAo/qnE1rxoHiG1y3DgX3q0dttERaOBkES1GA1yTa3A8nVCNrVJe3rm+OgP7qMPzGY1hx9ncn20nxbvl4ev+uC/ajv3l4IJsyc5ZdesGRLZA4xEIUIZIkp6sGjJRY9sxMZLNef7666/Y9QSRxn5oD9vYkh6NzXVOGlCfFVgJQn6B9UF0PfkidptsuK4ZnIfF90GHUG1jAzn6nlAtlSmtW7fO2SnLawhUN0MDkJ2xNtnuk+oVPJ9Vp8xaRLqDiRI5TpQEYZuT3Veic2ejEhMNr9JxyJJtS3U8JgibnWukLK9VoKraICuDIxR0StJp0FT70OtZyAai+YEQ62QRfMFbtcOlJwEHLBFB2SKTc+VyHTQRKpxfRKC4IVvC8yrRqN8xY8a4HTt25KxqUgHJpTNZdS+HSgiSXM7g2WhXG4TKFHkjGrtI/TKRqEIDiV2zZo0PvCiL9Mknn/jfAGEoJKku1cKHbKBlubJFXoimp0Hyvn37QpEgOTeYB0k21yV8SPiUsGI+hiSlBhyzbJfkyplohk2DBg3yc6mCkaVcHYhU0Did2i86mTxtJLtTp04+5hwMU5YrbBkyKjybWZo5Ec1wAZJJnIcNK7EU37PSgKJyzHVifhfOS7p12uUCTBUlyo8fZfZcWRNNr+rTp0/RJ3wrEUE0rHfv3r4haAAyQN26/p9sUElqnGedv2B+RjM0syKaaA6STIgu03nD+YaNd9PpBg4cGFPj9RvUdz169PAzOLVvJYAOi2O2Z8+etI+pnexEyTIuZJf69esXk+RiOj2Jrs3CsZBNCBRgqzt37uwaN24cah11ISHfY8aMGT7Emk4HTirRiRqDWQ19+/b1semaolphINm16YRDhw71aT+AF05NFl55qVSl5grIpTPLN6kJaUk0J4VcvFskuhwai3Fn//79Y1NhGV8j2Thqttyo3HHs2DGfNKqJkxoZo1GQZNShFlIvB/Dg9PgRI0bEsmNkvbp06eK+/PLLmBRUghqnLAuTlUqF10j08ePH3YABA4o23TMXYJMhm07Kc0AqqcQ2bdrEVluoBEAwE/mD1TQWKYlGkhmgW4NfTqFF3TPmhumqBHUgF5vNup3fffddWXvilgtM1NSpU5Nyk/TnkCiPZQglh6acwcPTWVmrkzGocsIdOnTwv+Gh2Hg52204I3CkQoggEhLNjhh5/SxCOXuqNhSLXUaymbKq7W3btvXrmVXKGDtZ6LloqxKFCVsFolQqUSXWPKMTt2zZ0n/HLwVUKhKKaqIS1kqACiEgm/GnrR1v1aqV+/3338tSslNVqAhJdXImC7eUC/QcmldFPpuaNoA3zip/dr9ygSVXnAU7bJzqVvmsen4lQ3VmFDAyzv7qq69iif1KePbg3K04olmHMzgJrdKBg0YNNa9C59DDAoLKBACLONVNIb3UV6UjUZFEpWgxTNMff/wRv83+gTRTikPFYTWgEklGZWsVZYtaTwMJz3ge5JspvmMpCOyX37HCbXa5A/+KMirma33zzTfPfJ+QaO91Pv3/4OGD2G88VYrnXYmAGySZpI1dEsQiIdERygtBIUykfat25cBqQ1WEQCsdOZUSRagsRERXCf4HHFsSeoUuigYAAAAASUVORK5CYII=",fk=({fieldState:e,style:t,...n})=>{const{disabled:i=!1,field:r,onBlur:s,initialValue:l,forwardedRef:o,className:d,onSelectFuntion:c,content:u,Header:p,defaultSelect:A,...h}=n,[f,m]=a.useState(A);return Ye.jsxs("div",{children:[Ye.jsx("p",{style:{paddingBottom:"10px",fontWeight:"500"},children:p}),Ye.jsx(H.Group,{disabled:i,onChange:e=>{var t,n;m(null==(t=null==e?void 0:e.target)?void 0:t.value),c&&c(null==(n=null==e?void 0:e.target)?void 0:n.value)},value:f,options:u,children:null==u?void 0:u.map(((e,t)=>Ye.jsx(H,{value:e.value,children:e.label},t)))})]})},mk=Ja("applicationImage/getApplicationImageData",(async()=>await fA.get("/appImage"))),vk=Ja("applicationImage/postApplicationImageData",(async e=>await fA.post("/appImage",e))),gk=Ja("applicationImage/putApplicationImageData",(async e=>await fA.put("/appImage",e))),yk=Ja("applicationImage/deleteApplicationImageData",(async e=>await fA.delete("/appImage",{params:e}))),xk=Ya({name:"applicationImage",initialState:{applicationImageData:[]},extraReducers:e=>{e.addCase(mk.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.applicationImageData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.applicationImageData=[]}))}}),bk=e=>{var t;return null==(t=e.applicationImagePage)?void 0:t.applicationImageData},wk=xk.reducer,jk="https://www.pozo.dev/pozo-common-api",Ck=Ja("featureMapping/application",(async()=>await Ne.get(`${jk}/application`))),Sk=Ja("featureMapping/pricingAppFeatMap",(async()=>await Ne.get(`${jk}/pricingAppFeatMap`))),Nk=Ja("featureMapping/getPricingType",(async e=>{if(null!=e&&null!=e)return await fA.get(`/pricingType?AppId=${e}`)})),Ik=Ja("featureMapping/getFeatureList",(async e=>{if(null!=e&&null!=e)return await fA.get(`/feature?AppId=${e}`)})),Fk=Ja("featureMapping/postFeatureMapping",(async e=>await fA.post("/pricingAppFeatMap",e)));Ja("featureMapping/putFeatureMapping",(async e=>await fA.put("/pricingAppFeatMap",e)));const Bk=Ja("featureMapping/deleteFeatureMapping",(async e=>{if((null==e?void 0:e.AppId)&&(null==e?void 0:e.PricingId)&&(null==e?void 0:e.ActiveStatus)&&(null==e?void 0:e.UpdatedBy))return await fA.delete(`/pricingAppFeatMap?AppId=${null==e?void 0:e.AppId}&PricingId=${null==e?void 0:e.PricingId}&ActiveStatus=${null==e?void 0:e.ActiveStatus}&UpdatedBy=${null==e?void 0:e.UpdatedBy}`)}));Ya({name:"featureMapping",initialState:{featureData:[]},extraReducers:e=>{e.addCase(Ck.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.featureData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.featureData=[]}))}});const Pk="/",kk=[{name:"Home",link:`${Pk}landing-page/home`},{name:"FeatureMapping",link:`${Pk}setting/feature-mapping`}],Tk="/",Ek=({formType:e})=>{var t,n;const i=a.useRef(null),r=um(),s=Qt(),l=Mt(),o=null==l?void 0:l.state,d=null==o?void 0:o.editstate,[c,u]=a.useState(d?null==d?void 0:d.FeatDetails:[]),[p,A]=a.useState(null),[h,f]=a.useState(null),[m,v]=a.useState([]),[g,y]=a.useState([]),[x,b]=a.useState([]),[w,j]=a.useState([]),[C,S]=a.useState(d?d.AppId:null),[N,F]=a.useState(d?d.PricingId:null),[B,P]=a.useState(d?null==(t=d.FeatDetails)?void 0:t.map((e=>e.FeatId)):[]),T=[{name:"Home",link:`${Tk}landing-page/home`},{name:"FeatureMapping",link:`${Tk}setting/feature-mapping`},{name:d?"Edit":"New",link:null}];a.useEffect((()=>{C&&D(C)}),[C]);a.useEffect((()=>{var t,n;try{!async function(){var e,t,n;const i=await r(Ck()).unwrap();if(1===(null==(e=i.data)?void 0:e.statusCode)){let e=null==(n=null==(t=i.data)?void 0:t.data)?void 0:n.filter((e=>"A"===e.ActiveStatus));v(e)}}(),"edit"===e&&(d?(E(d.AppId),L(d.PricingId),j(d?null==(t=d.FeatDetails)?void 0:t.map((e=>e.FeatId)):[]),null==(n=i.current)||n.setFieldsValue(d)):s(`${Tk}setting/feature-mapping/`))}catch(a){}}),[]),a.useEffect((()=>{r(Gh({items:T}))}),[]);const E=async e=>{var t,n,a,s;null==(t=i.current)||t.setFieldsValue({AppName:e}),S(e);const l=await r(Nk(e)).unwrap();if(1===(null==(n=l.data)?void 0:n.statusCode)){let e=null==(s=null==(a=l.data)?void 0:a.data)?void 0:s.filter((e=>"A"===e.ActiveStatus));y(e)}},D=async e=>{var t,n,i;const a=await r(Ik(e)).unwrap();if(1===(null==(t=a.data)?void 0:t.statusCode)){let e=null==(i=null==(n=a.data)?void 0:n.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));b(e)}else b([])},L=async e=>{var t;null==(t=i.current)||t.setFieldsValue({PriceName:e}),F(e)},U=null==(n=null==x?void 0:x.filter((e=>null==B?void 0:B.includes(e.FeatId))))?void 0:n.map((e=>e.FeatName));return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:p,messageData:h}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Feature Mapping"})}),Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:i,className:"formDivAnt",onFinish:async t=>{var n,i,a;let l=t;l.CreatedBy=iA("UserId");let o={};"add"===e?(l.AppId=t.AppName,l.PricingId=t.PriceName,l.FeatDetails=c,o=await r(Fk(l)).unwrap()):"edit"===e&&(d&&(l.AppId=C,l.PricingId=t.PriceName,l.FeatDetails=c),l.UpdatedBy=iA("UserId"),o=await r(Fk(l)).unwrap()),1==(null==(n=null==o?void 0:o.data)?void 0:n.statusCode)?s(`${Tk}setting/feature-mapping/`,{state:{Notiffy:{messageType:"success",messageData:null==(i=null==o?void 0:o.data)?void 0:i.response}}}):(A("error"),f(null==(a=null==o?void 0:o.data)?void 0:a.response))},initialValues:{...d},children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"AppName",children:Ye.jsx(_y,{options:null==m?void 0:m.map((e=>({value:e.AppId,label:e.AppName}))),label:"App Name",id:"AppName",onChangeFunction:e=>E(e),valueData:C,isOnchanges:"edit"==e,optionsNames:{value:"AppId",label:"AppName"},className:"field-DropDown"})}),Ye.jsx(I.Item,{name:"PriceName",children:Ye.jsx(_y,{options:null==g?void 0:g.map((e=>({value:e.PricingId,label:e.PricingName+" ("+(e.NoOfDays>35?"Yearly":"Monthly")+")"}))),label:"Price Name",id:"PriceName",onChangeFunction:e=>L(e),valueData:N,isOnchanges:"edit"==e,optionsNames:{value:"PricingId",label:"PricingName"},className:"field-DropDown"})})]})}),x.length>0?Ye.jsxs("div",{style:{display:"flex",flexWrap:"wrap",width:"100%"},children:[Ye.jsx("div",{style:{paddingBottom:"10px",fontWeight:"500"},children:Ye.jsx("p",{children:"Feature List"})}),Ye.jsx(V.Group,{style:{width:"100%"},onChange:e=>{j(e);const t=e;P(t);const n=t.map((e=>({FeatId:e})));u(n)},value:B,children:Ye.jsx(R,{children:null==x?void 0:x.map(((e,t)=>1==e.CoreAddon?Ye.jsx(Q,{span:10,children:Ye.jsxs(V,{style:{padding:"12px"},value:e.FeatId,disabled:(null==U?void 0:U.includes(e.FeatName))&&!B.includes(e.FeatId),children:[e.FeatName," - ",e.FeatConstraint]},e.FeatId)}):null))})})]}):null,w.length>0?Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})}):null]})})]})})})},Dk=Ja("appMenu/getAppMenu",(async e=>{if(null!=e&&null!=e)return await fA.get(`/appMenu?AppId=${e}`)})),Lk=Ja("appMenu/getLevelOneMenu",(async({AppId:e,Level:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await fA.get(`/appMenu?AppId=${e}&Level=${t}`)})),Uk=Ja("appMenu/getLevelTwoMenu",(async({AppId:e,Level:t,Level1Id:n})=>{if(null!=e&&null!=e&&null!=t&&null!=t&&null!=n&&null!=n)return await fA.get(`/appMenu?AppId=${e}&Level=${t}&Level1Id=${n}`)})),_k=Ja("appMenu/getLevelThreeMenu",(async({AppId:e,Level:t,Level1Id:n,Level2Id:i})=>{if(null!=e&&null!=e&&null!=t&&null!=t&&null!=n&&null!=n&&null!=i&&null!=i)return await fA.get(`/appMenu?AppId=${e}&Level=${t}&Level1Id=${n}&Level2Id=${i}`)})),Ok=Ja("appMenu/getAppMenuList",(async()=>await fA.get("/appMenu"))),Mk=Ja("appMenu/application",(async()=>await Ne.get("https://www.pozo.dev/pozo-common-api/application"))),Rk=Ja("appMenu/postCompanyData",(async e=>await fA.post("/appMenu",e))),Qk=Ja("appMenu/putCompanyData",(async e=>await fA.put("/appMenu",e))),Hk=Ja("appMenu/deleteCompanyData",(async e=>{if((null==e?void 0:e.MenuId)&&(null==e?void 0:e.ActiveStatus)&&(null==e?void 0:e.UpdatedBy))return await fA.delete(`/appMenu?MenuId=${null==e?void 0:e.MenuId}&ActiveStatus=${null==e?void 0:e.ActiveStatus}&UpdatedBy=${null==e?void 0:e.UpdatedBy}`)}));Ya({name:"appMenu",initialState:{appData:[],appListData:[]},extraReducers:e=>{e.addCase(Dk.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.appData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.appData=[]})),e.addCase(Ok.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.appListData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.appListData=[]}))}});const Vk="/",zk=[{name:"Home",link:`${Vk}landing-page/home`},{name:"ApplicationMenu",link:`${Vk}setting/app-menu`}],qk="/",Wk=({formType:e})=>{const t=a.useRef(null),n=um(),i=Qt(),r=Mt(),s=null==r?void 0:r.state,l=null==s?void 0:s.editstate,[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState([]),[h,f]=a.useState(l?l.AppId:null),[m,v]=a.useState(l&&"0"!=l.Level1Id?l.Level1Id:null),[g,y]=a.useState(l&&"0"!=l.Level2Id?l.Level2Id:null),[x,b]=a.useState(l&&"0"!=l.Level3Id?l.Level3Id:null),[w,j]=a.useState([]),[C,S]=a.useState([]),[N,F]=a.useState([]),[B,P]=a.useState(l?l.Level:"1"),T=[{name:"Home",link:`${qk}landing-page/home`},{name:"ApplicationMenu",link:`${qk}setting/app-menu`},{name:l?"Edit":"New",link:null}];a.useEffect((()=>{try{!async function(){var e,t,i;const a=await n(Mk()).unwrap();if(1===(null==(e=a.data)?void 0:e.statusCode)){let e=null==(i=null==(t=a.data)?void 0:t.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));A(e)}}(),"edit"===e&&(l?(E(l.AppId),"1"!==l.Level&&_(),0!=l.Level1Id&&D(l.Level1Id),0!=l.Level2Id&&L(l.Level2Id),0!=l.Level3Id&&U(l.Level3Id)):i(`${qk}setting/app-menu`))}catch(t){}}),[]),a.useEffect((()=>{n(Gh({items:T}))}),[]);const E=async e=>{var n;null==(n=t.current)||n.setFieldsValue({AppName:e}),await f(e)},D=async e=>{var i,a,r,s;null==(i=t.current)||i.setFieldsValue({LevelOne:e}),await v(e);const l=await n(Uk({AppId:h,Level:"2",Level1Id:e})).unwrap();if(1===(null==(a=null==l?void 0:l.data)?void 0:a.statusCode)){let e=null==(s=null==(r=null==l?void 0:l.data)?void 0:r.data)?void 0:s.filter((e=>"A"===e.ActiveStatus));S(e)}},L=async e=>{var i,a,r,s;null==(i=t.current)||i.setFieldsValue({LevelTwo:e}),await y(e);const l=await n(_k({AppId:h,Level:"3",Level1Id:m,Level2Id:e})).unwrap();if(1===(null==(a=null==l?void 0:l.data)?void 0:a.statusCode)){let e=null==(s=null==(r=null==l?void 0:l.data)?void 0:r.data)?void 0:s.filter((e=>"A"===e.ActiveStatus));F(e)}},U=async e=>{var n;null==(n=t.current)||n.setFieldsValue({LevelThree:e}),await b(e)},_=async()=>{var e,t,i;const a=await n(Lk({AppId:h,Level:"1"})).unwrap();if(1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)){let e=null==(i=null==(t=null==a?void 0:a.data)?void 0:t.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));j(e)}};return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:o,messageData:c}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Application Menu"})}),Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:t,className:"formDivAnt",onFinish:async t=>{var a,r,s;let o=t;o.CreatedBy=iA("UserId"),o.AppId=t.AppName,o.Level=B,o.Level1Id=t.LevelOne||0,o.Level2Id=t.LevelTwo||0,o.Level3Id=t.LevelThree||0;let c={};"add"===e?c=await n(Rk(o)).unwrap():"edit"===e&&(l&&(o.MenuId=null==l?void 0:l.MenuId),o.UpdatedBy=iA("UserId"),c=await n(Qk(o)).unwrap()),1==(null==(a=null==c?void 0:c.data)?void 0:a.statusCode)?i(`${qk}setting/app-menu/`,{state:{Notiffy:{messageType:"success",messageData:null==(r=null==c?void 0:c.data)?void 0:r.response}}}):(d("error"),u(null==(s=null==c?void 0:c.data)?void 0:s.response))},initialValues:{...l},children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"AppName",rules:[{required:!0,message:"Please Select App Name "}],children:Ye.jsx(_y,{options:null==p?void 0:p.map((e=>({value:e.AppId,label:e.AppName}))),label:Ye.jsx("label",{className:"required",children:"App Name"}),id:"AppName",field:"AppName",fieldState:!0,fieldApi:!0,onChangeFunction:e=>E(e),isOnchanges:"edit"==e,valueData:h,className:"field-DropDown",disabled:!!(null==l?void 0:l.AppId)})}),Ye.jsx(fk,{content:[{value:"1",label:"Level one",disabled:!!l},{value:"2",label:"Level Two",disabled:!!l},{value:"3",label:"Level Three",disabled:!!l},{value:"4",label:"Level Four",disabled:!!l}],fieldState:!0,defaultSelect:B,Header:"Select Level",onSelectFuntion:e=>(async e=>{P(e),"1"!==e&&null!=h&&null!=h&&_()})(e)}),"2"===B||"3"===B||"4"===B?Ye.jsx(I.Item,{name:"LevelOne",rules:[{required:!0,message:"Select Level One Menu Name "}],children:Ye.jsx(_y,{options:null==w?void 0:w.map((e=>({value:e.MenuId,label:e.MenuName}))),label:Ye.jsx("label",{className:"required",children:"Level One Menu"}),id:"LevelOne",onChangeFunction:e=>(async e=>{S([]),y(null),F([]),b(null),D(e)})(e),optionsNames:{value:"MenuId",label:"MenuName"},className:"field-DropDown",isOnchanges:!("edit"!=e&&!m),valueData:m,disabled:!!(null==l?void 0:l.Level1Id)})}):null,"3"===B||"4"===B?Ye.jsx(I.Item,{name:"LevelTwo",rules:[{required:!0,message:"Select Level Two Menu Name "}],children:Ye.jsx(_y,{options:null==C?void 0:C.map((e=>({value:e.MenuId,label:e.MenuName}))),label:Ye.jsx("label",{className:"required",children:"Level Two Menu"}),id:"LevelTwo",onChangeFunction:e=>(async e=>{F([]),b(null),L(e)})(e),isOnchanges:!("edit"!=e&&!m),optionsNames:{value:"MenuId",label:"MenuName"},className:"field-DropDown",valueData:g,disabled:!!(null==l?void 0:l.Level2Id)})}):null,"4"===B?Ye.jsx(I.Item,{name:"LevelThree",rules:[{required:!0,message:"Select Level Three Menu Name "}],children:Ye.jsx(_y,{options:null==N?void 0:N.map((e=>({value:e.MenuId,label:e.MenuName}))),label:Ye.jsx("label",{className:"required",children:"Level Three Menu"}),id:"LevelThree",onChangeFunction:e=>U(e),isOnchanges:!("edit"!=e&&!g),optionsNames:{value:"MenuId",label:"MenuName"},className:"field-DropDown",valueData:x,disabled:!!(null==l?void 0:l.Level3Id)})}):null,Ye.jsx(I.Item,{name:"MenuName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Menu Name"},{validator:async(e,t)=>(await lA(t),t&&t.length>50?Promise.reject("Menu Name should not exceed 50 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"MenuName",name:"MenuName",label:Ye.jsx("label",{className:"required",children:"Menu Name"}),fieldState:!0,fieldApi:!0,id:"error2",autocomplete:"off",isOnChange:"edit"==e})})]})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})})]})})]})})})},Yk=Ja("priceType/pricingType",(async e=>await fA.get("/pricingType"))),Kk=Ja("priceType/getPricingTypeForm",(async e=>{if(null!=(null==e?void 0:e.appId)&&null!=(null==e?void 0:e.appId)&&null!=(null==e?void 0:e.pricingName)&&null!=(null==e?void 0:e.pricingName))return await fA.get(`/PricingType?appId=${null==e?void 0:e.appId}&pricingName=${null==e?void 0:e.pricingName}`)})),Gk=Ja("priceType/getPricingTag",(async()=>await fA.get("/configMaster?TypeName=Pricing Type"))),$k=Ja("priceType/getTaxdata",(async()=>await fA.get("/adminTax?ActiveStatus=A"))),Xk=Ja("priceType/getCurrData",(async()=>await fA.get("/currency?ActiveStatus=A"))),Jk=Ja("priceType/postPriceType",(async e=>await fA.post("/pricingType",e)));Ja("priceType/putPriceType",(async e=>await fA.put("/pricingType",e)));const Zk=Ja("priceType/deletePriceType",(async e=>await fA.delete(`/pricingType?PricingId=${null==e?void 0:e.PricingId}&ActiveStatus=${null==e?void 0:e.ActiveStatus}&UpdatedBy=${null==e?void 0:e.UpdatedBy}`))),eT=Ja("postPlanChange/userAppMap",(async e=>await fA.post("/userAppMap/PlanChange",e))),tT=Ja("putplanchange/userAppMap",(async e=>await fA.put("/userAppMap/PlanChange",e)));Ja("getUserCredit/userAppMap",(async e=>{if(null!=e&&null!=e)return await fA.get(`/userAppMap/UserCredit?request.userId=${e}`)}));const nT=Ja("feature/getFeatureonType",(async e=>await fA.get("/FeatureAddon"))),iT=Ja("feature/getFeatureonType",(async e=>await fA.put("/FeatureAddon",e))),aT=Ja("feature/getFeatureonType",(async e=>{if(null!=e&&null!=e)return await fA.get(`/FeatureAddon?request.appId=${e}`)})),rT=Ja("feature/deleteFeatureonType",(async e=>await fA.delete(`/FeatureAddon?request.appId=${null==e?void 0:e.appId}&request.updatedBy=${null==e?void 0:e.updatedBy}&request.activeStatus=${null==e?void 0:e.activeStatus}`))),sT=Ja("feature/PostFeatureonType",(async e=>await fA.post("/FeatureAddon",e))),lT=Ja("feature/PostOnlineUserTracking",(async e=>await fA.post("/OnlineUserTracking",e)));Ya({name:"priceType",initialState:{priceData:[]},extraReducers:e=>{e.addCase(Yk.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.priceData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.priceData=[]}))}});const oT=[{name:"Home",link:"/landing-page/home"},{name:"PricingType",link:"/setting/pricing"}],dT="/",cT=({formType:e})=>{const t=a.useRef(null),n=um(),i=Qt(),r=Mt(),s=null==r?void 0:r.state,l=null==s?void 0:s.editstate,[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState([]),[h,f]=a.useState([]),[m,v]=a.useState([]),[g,y]=a.useState([]),[x,b]=a.useState([]),[w,j]=a.useState(null),[C,S]=a.useState(null),[N,F]=a.useState(null),[B,P]=a.useState(null),[T,E]=a.useState(!1),[D,L]=a.useState(!1),[U,_]=a.useState(!1),[O,M]=a.useState(!1),[R,Q]=a.useState(),[H,z]=a.useState(),[q,W]=a.useState(l?l.AppId:null),[Y,K]=a.useState(l&&0!=l.PriceTag?l.PriceTag:null),[G,$]=a.useState(l&&0!=l.PriceTag?l.PriceTag:null),[X,J]=a.useState(l&&0!=l.TaxId?l.TaxId:null),[Z,ee]=a.useState(l&&0!=l.CurrId?l.CurrId:null),[te,ne]=a.useState(l&&0!=l.CurrId?l.CurrId:null),ie=a.useCallback((()=>{u(null),d(null)}),[]),ae=[{name:"Home",link:`${dT}landing-page/home`},{name:"PricingType",link:`${dT}setting/pricing`},{name:l?"Edit":"New",link:null}];a.useEffect((()=>{var a;try{!async function(){var e,t,i;const a=await n(Mk()).unwrap();if(1===(null==(e=a.data)?void 0:e.statusCode)){let e=null==(i=null==(t=a.data)?void 0:t.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));A(e)}}(),"edit"===e&&(l?(re(l.AppId),pe(l.PriceTag),se(l.TaxId),oe(l.CurrId),null==(a=t.current)||a.setFieldsValue(l)):i(`${dT}setting/app-menu/`))}catch(r){}}),[]),a.useEffect((()=>{n(Gh({items:ae}))}),[]);const re=async e=>{var i,a,r,s;null==(i=t.current)||i.setFieldsValue({AppName:e}),W(e);const l=await n($k()).unwrap();if(1===(null==(a=l.data)?void 0:a.statusCode)){let e=null==(s=null==(r=l.data)?void 0:r.data)?void 0:s.filter((e=>"A"===e.ActiveStatus));v(e)}},se=async e=>{var i,a,r,s,l,o,d,c,u,p,A,h,v,g,x,w,C,N,I,B,k,T,E;const D=await n(Gk()).unwrap();if(1===(null==(i=D.data)?void 0:i.statusCode)){let e=null==(r=null==(a=D.data)?void 0:a.data)?void 0:r.filter((e=>"A"===e.ActiveStatus));f(e)}await J(e),null==(s=t.current)||s.setFieldsValue({Tax:e});let L=m.filter((t=>t.TaxId===parseInt(e)));const U=(null==(o=null==(l=t.current)?void 0:l.getFieldsValue())?void 0:o.NetPrice)?Math.round((null==(c=null==(d=t.current)?void 0:d.getFieldsValue())?void 0:c.NetPrice)/118*(null==(u=L[0])?void 0:u.TaxPercentage),2):0,_=parseInt(null==(A=null==(p=t.current)?void 0:p.getFieldsValue())?void 0:A.NetPrice)-parseInt(U);null==(h=t.current)||h.setFieldsValue({TaxAmount:U,Price:_||0}),j(_||0),F(U);const O=(null==(g=null==(v=t.current)?void 0:v.getFieldsValue())?void 0:g.NetPrice2)?Math.round((null==(w=null==(x=t.current)?void 0:x.getFieldsValue())?void 0:w.NetPrice2)/118*(null==(C=L[0])?void 0:C.TaxPercentage),2):0,M=parseInt(null==(I=null==(N=t.current)?void 0:N.getFieldsValue())?void 0:I.NetPrice2)-parseInt(U);null==(B=t.current)||B.setFieldsValue({TaxAmount2:O,Price2:M||0}),S(M||0),P(O);const R=await n(Xk()).unwrap();if(1===(null==(k=R.data)?void 0:k.statusCode)){let e=null==(E=null==(T=R.data)?void 0:T.data)?void 0:E.filter((e=>"A"===e.ActiveStatus));y(e),b(e)}},le=(e,t)=>t?e.TaxPercentage+" %":e.TaxName+" - "+e.TaxPercentage+" % ",oe=async e=>{var n;null==(n=t.current)||n.setFieldsValue({CurrId:e}),ee(e)},de=async e=>{var n;null==(n=t.current)||n.setFieldsValue({CurrId2:e}),ne(e)},ce=async()=>{var e,n,i,a,r;const s=null==(n=null==(e=t.current)?void 0:e.getFieldsValue())?void 0:n.Tax,l=m.find((e=>e.TaxId===s))||{TaxPercentage:0},o=parseInt((null==(a=null==(i=t.current)?void 0:i.getFieldsValue())?void 0:a.NetPrice)||0),d=Math.round(o/118*l.TaxPercentage,2);null==(r=t.current)||r.setFieldsValue({TaxAmount:d,Price:o-d}),j(o-d),F(d)},ue=async()=>{var e,n,i,a,r;const s=null==(n=null==(e=t.current)?void 0:e.getFieldsValue())?void 0:n.Tax,l=s&&m.find((e=>e.TaxId===s))||{TaxPercentage:0},o=parseInt((null==(a=null==(i=t.current)?void 0:i.getFieldsValue())?void 0:a.NetPrice2)||0),d=Math.round(o/118*l.TaxPercentage,2);null==(r=t.current)||r.setFieldsValue({TaxAmount2:d,Price2:o-d}),j(o-d),F(d)},pe=async e=>{var n;null==(n=t.current)||n.setFieldsValue({PriceTag:e}),K(e)},Ae=async e=>{var n;null==(n=t.current)||n.setFieldsValue({PriceTag2:e}),$(e)};return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:o,messageData:c,onComplete:ie}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Pricing Type"})}),Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:t,className:"formDivAnt",onFinish:async e=>{var t,a,r;let s={};if(s.CreatedBy=iA("UserId"),s.AppId=e.AppName,s.PricingName=e.PricingName,1==T&&0==D?s.PricingDetails=[{Price:e.Price,DisplayPrice:e.DisplayPrice,PriceTag:e.PriceTag,TaxId:e.Tax,TaxAmount:e.TaxAmount,NetPrice:e.NetPrice,CurrId:e.CurrId,NoOfDays:`${e.NoOfDays}`,PricingId:void 0===R?null:R}]:1==D&&0==T?s.PricingDetails=[{Price:e.Price2,DisplayPrice:e.DisplayPrice2,PriceTag:e.PriceTag2,TaxId:e.Tax,TaxAmount:e.TaxAmount2,NetPrice:e.NetPrice2,CurrId:e.CurrId2,NoOfDays:"365",PricingId:void 0===H?null:H}]:1==T&&1==D?s.PricingDetails=[{Price:e.Price,DisplayPrice:e.DisplayPrice,PriceTag:e.PriceTag,TaxId:e.Tax,TaxAmount:e.TaxAmount,NetPrice:e.NetPrice,CurrId:e.CurrId,NoOfDays:`${e.NoOfDays}`,PricingId:void 0===R?null:R},{Price:e.Price2,DisplayPrice:e.DisplayPrice2,PriceTag:e.PriceTag2,TaxId:e.Tax,TaxAmount:e.TaxAmount2,NetPrice:e.NetPrice2,CurrId:e.CurrId2,NoOfDays:"365",PricingId:void 0===H?null:H}]:!1===T&&!1===T&&(d("error"),u("Please Select any Plan")),1==T&&0==D||1==D&&0==T||1==T&&1==D){let e=await n(Jk(s)).unwrap();1==(null==(t=null==e?void 0:e.data)?void 0:t.statusCode)?i(`${dT}setting/pricing/`,{state:{Notiffy:{messageType:"success",messageData:null==(a=null==e?void 0:e.data)?void 0:a.response}}}):(d("error"),u(null==(r=null==e?void 0:e.data)?void 0:r.response))}},initialValues:{...l},children:[Ye.jsxs("div",{className:"formDivS",children:[Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"AppName",rules:[{required:!0,message:"Please Select App Name "}],children:Ye.jsx(_y,{options:null==p?void 0:p.map((e=>({value:e.AppId,label:e.AppName}))),label:Ye.jsx("label",{className:"required",children:"App Name"}),id:"AppName",field:"AppName",fieldState:!0,fieldApi:!0,onChangeFunction:e=>re(e),isOnchanges:"edit"==e,valueData:q,optionsNames:{value:"AppId",label:"AppName"},className:"field-DropDown"})}),Ye.jsx(I.Item,{name:"PricingName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Pricing Name "},{validator:async(e,t)=>(await lA(t),t&&t.length>25?Promise.reject("Pricing Name should not exceed 25 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"PricingName",name:"PricingName",label:Ye.jsx("label",{className:"required",children:"Pricing Name"}),fieldState:!0,fieldApi:!0,id:"error2",autocomplete:"off",onChange:e=>(async()=>{var e,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B,P,k,T,D,U,O,R,H,V,W,Y,G,X,J,Z,te,ie,ae,re,le,he,fe,me,ve,ge,ye,xe,be,we,je,Ce,Se,Ne,Ie,Fe,Be,Pe,ke,Te,Ee,De,Le,Ue,_e,Oe,Me,Re,Qe,He,Ve,ze,qe,We;let Ye=null==(e=null==t?void 0:t.current)?void 0:e.getFieldsValue().PricingName;if(Ye.length>2&&null!=q){let e={appId:q,pricingName:null==(i=null==t?void 0:t.current)?void 0:i.getFieldsValue().PricingName},Oe=await n(Kk(e)).unwrap();if(1==(null==(a=null==Oe?void 0:Oe.data)?void 0:a.statusCode)){let e=null==(s=null==(r=null==Oe?void 0:Oe.data)?void 0:r.data)?void 0:s[0];if(se(null==(o=null==(l=null==e?void 0:e.PricingDetails)?void 0:l[0])?void 0:o.TaxId),1==(null==e?void 0:e.PricingDetails.length)&&365!==(null==(c=null==(d=null==e?void 0:e.PricingDetails)?void 0:d[0])?void 0:c.NoOfDays))Q(null==(p=null==(u=null==e?void 0:e.PricingDetails)?void 0:u[0])?void 0:p.PricingId),_(!0),E(!0),ce(),pe(null==(h=null==(A=null==e?void 0:e.PricingDetails)?void 0:A[0])?void 0:h.PriceTag),oe(null==(m=null==(f=null==e?void 0:e.PricingDetails)?void 0:f[0])?void 0:m.CurrId),null==(y=t.current)||y.setFieldsValue({NetPrice:null==(g=null==(v=null==e?void 0:e.PricingDetails)?void 0:v[0])?void 0:g.NetPrice}),null==(w=t.current)||w.setFieldsValue({DisplayPrice:null==(b=null==(x=null==e?void 0:e.PricingDetails)?void 0:x[0])?void 0:b.DisplayPrice}),null==(S=t.current)||S.setFieldsValue({Price:null==(C=null==(j=null==e?void 0:e.PricingDetails)?void 0:j[0])?void 0:C.Price}),null==(F=t.current)||F.setFieldsValue({TaxAmount:null==(I=null==(N=null==e?void 0:e.PricingDetails)?void 0:N[0])?void 0:I.TaxAmount}),null==(k=t.current)||k.setFieldsValue({NoOfDays:null==(P=null==(B=null==e?void 0:e.PricingDetails)?void 0:B[0])?void 0:P.NoOfDays});else if(1==(null==e?void 0:e.PricingDetails.length)&&365===(null==(D=null==(T=null==e?void 0:e.PricingDetails)?void 0:T[0])?void 0:D.NoOfDays))z(null==(O=null==(U=null==e?void 0:e.PricingDetails)?void 0:U[0])?void 0:O.PricingId),M(!0),L(!0),ue(),Ae(null==(H=null==(R=null==e?void 0:e.PricingDetails)?void 0:R[0])?void 0:H.PriceTag),de(null==(W=null==(V=null==e?void 0:e.PricingDetails)?void 0:V[0])?void 0:W.CurrId),null==(X=t.current)||X.setFieldsValue({NetPrice2:null==(G=null==(Y=null==e?void 0:e.PricingDetails)?void 0:Y[0])?void 0:G.NetPrice}),null==(te=t.current)||te.setFieldsValue({DisplayPrice2:null==(Z=null==(J=null==e?void 0:e.PricingDetails)?void 0:J[0])?void 0:Z.DisplayPrice}),null==(re=t.current)||re.setFieldsValue({Price2:null==(ae=null==(ie=null==e?void 0:e.PricingDetails)?void 0:ie[0])?void 0:ae.Price}),null==(fe=t.current)||fe.setFieldsValue({TaxAmount2:null==(he=null==(le=null==e?void 0:e.PricingDetails)?void 0:le[0])?void 0:he.TaxAmount});else if(2==(null==e?void 0:e.PricingDetails.length)){const n=null==(ve=null==(me=null==e?void 0:e.PricingDetails)?void 0:me.filter((e=>365!==e.NoOfDays)))?void 0:ve[0],i=null==(ye=null==(ge=null==e?void 0:e.PricingDetails)?void 0:ge.filter((e=>365===e.NoOfDays)))?void 0:ye[0];Q(null==n?void 0:n.PricingId),z(null==i?void 0:i.PricingId),_(!0),M(!0),E(!0),L(!0),ce(),ue(),pe(null==n?void 0:n.PriceTag),Ae(null==i?void 0:i.PriceTag),oe(n.CurrId),de(null==i?void 0:i.CurrId),null==(xe=t.current)||xe.setFieldsValue({NetPrice:null==n?void 0:n.NetPrice}),null==(be=t.current)||be.setFieldsValue({DisplayPrice:null==n?void 0:n.DisplayPrice}),null==(we=t.current)||we.setFieldsValue({Price:null==n?void 0:n.Price}),null==(je=t.current)||je.setFieldsValue({TaxAmount:null==n?void 0:n.TaxAmount}),null==(Ce=t.current)||Ce.setFieldsValue({NoOfDays:null==n?void 0:n.NoOfDays}),null==(Se=t.current)||Se.setFieldsValue({NetPrice2:null==i?void 0:i.NetPrice}),null==(Ne=t.current)||Ne.setFieldsValue({DisplayPrice2:null==i?void 0:i.DisplayPrice}),null==(Ie=t.current)||Ie.setFieldsValue({Price2:null==i?void 0:i.Price}),null==(Fe=t.current)||Fe.setFieldsValue({TaxAmount2:null==i?void 0:i.TaxAmount})}}else null==(Be=t.current)||Be.setFieldsValue({NetPrice:null}),null==(Pe=t.current)||Pe.setFieldsValue({DisplayPrice:null}),null==(ke=t.current)||ke.setFieldsValue({Price:null}),null==(Te=t.current)||Te.setFieldsValue({TaxAmount:null}),null==(Ee=t.current)||Ee.setFieldsValue({NoOfDays:null}),null==(De=t.current)||De.setFieldsValue({NetPrice2:null}),null==(Le=t.current)||Le.setFieldsValue({DisplayPrice2:null}),null==(Ue=t.current)||Ue.setFieldsValue({Price2:null}),null==(_e=t.current)||_e.setFieldsValue({TaxAmount2:null}),Q(void 0),z(void 0),K(null),$(null),ee(null),ne(null),E(!1),L(!1),M(!1),_(!1)}else 2==Ye.length&&Ye.length<3&&(null==(Oe=t.current)||Oe.setFieldsValue({NetPrice:null}),null==(Me=t.current)||Me.setFieldsValue({DisplayPrice:null}),null==(Re=t.current)||Re.setFieldsValue({Price:null}),null==(Qe=t.current)||Qe.setFieldsValue({TaxAmount:null}),null==(He=t.current)||He.setFieldsValue({NoOfDays:null}),null==(Ve=t.current)||Ve.setFieldsValue({NetPrice2:null}),null==(ze=t.current)||ze.setFieldsValue({DisplayPrice2:null}),null==(qe=t.current)||qe.setFieldsValue({Price2:null}),null==(We=t.current)||We.setFieldsValue({TaxAmount2:null}),K(null),$(null),ee(null),ne(null),E(!1),L(!1))})(),isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"Tax",rules:[{required:!0,message:"Please Select Tax "}],children:Ye.jsx(_y,{options:null==m?void 0:m.map((e=>({value:e.TaxId,label:le(e,X===e.TaxId)}))),label:Ye.jsx("label",{className:"required",children:"Tax"}),id:"Tax",field:"Tax",fieldState:!0,fieldApi:!0,onChangeFunction:e=>se(e),isOnchanges:"edit"==e,valueData:X,optionsNames:{value:"TaxId",label:"TaxName"},className:"field-DropDown"})})]}),Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx("div",{style:{width:"100%"},children:Ye.jsx(V,{style:{padding:"0px 0px 62px 0px"},value:"Monthly",checked:T,onChange:()=>{E(!0!==T)},children:"Monthly"})}),Ye.jsx(I.Item,{name:"NetPrice",rules:[1==T?{required:!0,validator:(e,t)=>t>=0&&null!=t&&null!=t?Promise.resolve():Promise.reject("Please Enter Valid Net Price ")}:{required:!1}],children:Ye.jsx(Oy,{field:"NetPrice",name:"Net Price",type:"number",label:Ye.jsx("label",{className:"required",children:"Net Price"}),fieldState:!0,fieldApi:!0,onChange:ce,id:"error2",autocomplete:"off",isOnChange:1==U})}),Ye.jsx(I.Item,{name:"DisplayPrice",rules:[1==T?{required:!0,validator:(e,t)=>t>=0&&null!=t&&null!=t?Promise.resolve():Promise.reject("Enter Valid Display Price ")}:{required:!1}],children:Ye.jsx(Oy,{field:"DisplayPrice",name:"DisplayPrice",type:"number",label:Ye.jsx("label",{className:"required",children:"Display Price"}),fieldState:!0,fieldApi:!0,id:"error2",autocomplete:"off",isOnChange:1==U})}),Ye.jsx(I.Item,{name:"PriceTag",rules:[1==T?{required:!0,validator:(e,t)=>t>=0&&null!=t&&null!=t&&null!=Y?Promise.resolve():Promise.reject("Select Price Tag ")}:{required:!1}],children:Ye.jsx(_y,{options:null==h?void 0:h.map((e=>({value:e.ConfigId,label:e.ConfigName}))),label:Ye.jsx("lable",{className:"required",children:"Price Tag"}),id:"PriceTag",field:"PriceTag",fieldState:!0,fieldApi:!0,onChangeFunction:e=>pe(e),isOnChange:1==U,valueData:Y,optionsNames:{value:"ConfigId",label:"ConfigName"},className:"field-DropDown"})}),Ye.jsx(I.Item,{name:"Price",rules:[1==T?{required:!0,validator:(e,t)=>t>=0&&null!=t&&null!=t?Promise.resolve():Promise.reject(" Valid Price is Required ")}:{required:!1}],children:Ye.jsx(Oy,{field:"Price",name:"Price",type:"number",label:Ye.jsx("label",{className:"required",children:"Price"}),fieldState:!0,fieldApi:!0,id:"error2",autocomplete:"off",isOnChange:null!=w,disabled:!0})}),Ye.jsx(I.Item,{name:"TaxAmount",rules:[1==T?{required:!0,validator:(e,t)=>t>=0&&null!=t&&null!=t?Promise.resolve():Promise.reject("Valid Tax Amount is Required ")}:{required:!1}],children:Ye.jsx(Oy,{field:"TaxAmount",name:"Tax Amount",type:"number",label:Ye.jsx("label",{className:"required",children:"Tax Amount"}),fieldState:!0,fieldApi:!0,disabled:!0,id:"error2",autocomplete:"off",isOnChange:null!=N})}),Ye.jsx(I.Item,{name:"CurrId",rules:[1==T?{required:!0,validator:(e,t)=>t>=0&&null!=t&&null!=t&&null!=Z?Promise.resolve():Promise.reject("Select Valid Currency ")}:{required:!1}],children:Ye.jsx(_y,{options:null==g?void 0:g.map((e=>({value:e.CurrId,label:e.CurrName}))),label:Ye.jsx("label",{className:"required",children:"Currency"}),id:"CurrId",field:"CurrId",fieldState:!0,fieldApi:!0,onChangeFunction:e=>oe(e),isOnChange:1==U,valueData:Z,optionsNames:{value:"CurrId",label:"CurrName"},className:"field-DropDown"})}),Ye.jsx(I.Item,{name:"NoOfDays",rules:[1==T?{required:!0,validator:(e,t)=>t>0&&t<365?Promise.resolve():t<=0?Promise.reject("Please enter a number of days more than 0."):Promise.reject("Please enter a number of days less than 365.")}:{required:!1}],children:Ye.jsx(Oy,{field:"NoOfDays",name:"NoOfDays",type:"number",label:Ye.jsx("label",{className:"required",children:"No of Days"}),fieldState:!0,fieldApi:!0,id:"error2",autocomplete:"off",isOnChange:1==U})})]}),Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx("div",{style:{width:"100%"},children:Ye.jsx(V,{style:{padding:"0px 0px 62px 0px",width:"100%"},value:"Yearly",checked:D,onChange:()=>{L(!0!==D)},children:"Yearly"})}),Ye.jsx(I.Item,{name:"NetPrice2",rules:[1==D?{required:!0,validator:(e,t)=>t>=0&&null!=t&&null!=t?Promise.resolve():Promise.reject("Please Enter Valid Net Price ")}:{required:!1}],children:Ye.jsx(Oy,{field:"NetPrice2",name:"Net Price2",type:"number",label:Ye.jsx("label",{className:"required",children:"Net Price"}),fieldState:!0,fieldApi:!0,onChange:ue,id:"error2",autocomplete:"off",isOnChange:1==O})}),Ye.jsx(I.Item,{name:"DisplayPrice2",rules:[1==D?{required:!0,validator:(e,t)=>t>=0&&null!=t&&null!=t?Promise.resolve():Promise.reject("Enter Valid Display Price ")}:{required:!1}],children:Ye.jsx(Oy,{field:"DisplayPrice",name:"DisplayPrice",type:"number",label:Ye.jsx("label",{className:"required",children:"Display Price"}),fieldState:!0,fieldApi:!0,id:"error2",autocomplete:"off",isOnChange:1==O})}),Ye.jsx(I.Item,{name:"PriceTag2",rules:[1==D?{required:!0,validator:(e,t)=>t>=0&&null!=t&&null!=t&&null!=G?Promise.resolve():Promise.reject("Select Price Tag")}:{required:!1}],children:Ye.jsx(_y,{options:null==h?void 0:h.map((e=>({value:e.ConfigId,label:e.ConfigName}))),label:Ye.jsx("label",{className:"required",children:"Price Tag"}),id:"PriceTag",field:"PriceTag",fieldState:!0,fieldApi:!0,onChangeFunction:e=>Ae(e),isOnChange:1==O,valueData:G,optionsNames:{value:"ConfigId",label:"ConfigName"},className:"field-DropDown"})}),Ye.jsx(I.Item,{name:"Price2",rules:[1==D?{required:!0,validator:(e,t)=>t>=0&&null!=t&&null!=t?Promise.resolve():Promise.reject(" Valid Price is Required ")}:{required:!1}],children:Ye.jsx(Oy,{field:"Price",name:"Price",type:"number",label:Ye.jsx("label",{className:"required",children:"Price"}),fieldState:!0,fieldApi:!0,id:"error2",autocomplete:"off",isOnChange:null!=C,disabled:!0})}),Ye.jsx(I.Item,{name:"TaxAmount2",rules:[1==D?{required:!0,validator:(e,t)=>t>=0&&null!=t&&null!=t?Promise.resolve():Promise.reject("Valid Tax Amount is Required ")}:{required:!1}],children:Ye.jsx(Oy,{field:"TaxAmount",name:"Tax Amount",type:"number",label:Ye.jsx("label",{className:"required",children:"Tax Amount"}),fieldState:!0,fieldApi:!0,disabled:!0,id:"error2",autocomplete:"off",isOnChange:null!=B})}),Ye.jsx(I.Item,{name:"CurrId2",rules:[1==D?{required:!0,validator:(e,t)=>t>=0&&null!=t&&null!=t&&null!=te?Promise.resolve():Promise.reject("Selcet the Currency")}:{required:!1}],children:Ye.jsx(_y,{options:null==x?void 0:x.map((e=>({value:e.CurrId,label:e.CurrName}))),label:Ye.jsx("label",{className:"required",children:"Currency"}),id:"CurrId",field:"CurrId",fieldState:!0,fieldApi:!0,onChangeFunction:e=>de(e),isOnChange:1==O,valueData:te,optionsNames:{value:"CurrId",label:"CurrName"},className:"field-DropDown"})})]})]}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})})]})})]})})})},uT=Ja("carousel/getCarouselData",(async()=>await fA.get("/carousel"))),pT=Ja("carousel/deleteCarouselData",(async e=>await fA.delete("/carousel",{params:e}))),AT=Ja("carousel/postCarouselData",(async e=>await fA.post("/carousel",e))),hT=Ja("carousel/putCarouselData",(async e=>await fA.put("/carousel",e))),fT=Ja("configMaster/getConfigNames",(async()=>await fA.get("/configMaster?ActiveStatus=A&TypeName=Screen Name"))),mT=Ya({name:"carousel",initialState:{carouselData:[],ConfigNames:[]},extraReducers:e=>{e.addCase(uT.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.carouselData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.carouselData=[]})),e.addCase(fT.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.ConfigNames=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.ConfigNames=[]}))}}),vT=e=>{var t;return null==(t=e.carouselPage)?void 0:t.carouselData},gT=e=>{var t;return null==(t=e.carouselPage)?void 0:t.ConfigNames},yT=mT.reducer,xT=[{name:"Home",link:"/landing-page/home"}],bT=Ja("feature/featureCategory",(async()=>await fA.get("/configMaster?TypeName=Feature Category"))),wT=Ja("feature/FeatureType",(async()=>await fA.get("/configMaster?TypeName=Feature Type"))),jT=Ja("feature/getFeature",(async()=>await fA.get("/feature"))),CT=Ja("feature/getFeature",(async e=>{if(null!=e&&null!=e)return await fA.get(`/feature?appId=${e}&activeStatus=A`)})),ST=Ja("feature/getUserData",(async()=>Ne.get("https://www.pozo.dev/pozo-common-api/application?activeStatus=A"))),NT=Ja("feature/postFeature",(async e=>await fA.post("/feature",e))),IT=Ja("feature/putFeature",(async e=>await fA.put("/feature",e))),FT=Ja("feature/deleteFeature",(async e=>{if((null==e?void 0:e.FeatId)&&(null==e?void 0:e.ActiveStatus)&&(null==e?void 0:e.UpdatedBy))return await fA.delete(`/feature?FeatId=${null==e?void 0:e.FeatId}&ActiveStatus=${null==e?void 0:e.ActiveStatus}&UpdatedBy=${null==e?void 0:e.UpdatedBy}`)})),BT=Ja("feature/postFeatureAddon",(async e=>await fA.post("/UAMFeatAddon",e))),PT=Ja("feature/NewGetFeatAddon",(async e=>{if(null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId))return fA.get(`/UserAppMap?userId=${null==e?void 0:e.UserId}&type=IE`)}));Ya({name:"feature",initialState:{featureData:[],featureDataDetails:[]},extraReducers:e=>{e.addCase(jT.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.featureData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.featureData=[]})),e.addCase(CT.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.featureDataDetails=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.featureDataDetails=[]}))}});const kT="/",TT=[{name:"Home",link:`${kT}landing-page/home`},{name:"Feature",link:`${kT}setting/feature-master`}],ET="/",DT=({formType:e})=>{const t=a.useRef(null),n=um(),i=Qt(),r=Mt(),s=null==r?void 0:r.state,l=null==s?void 0:s.editstate,[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState([]),[h,f]=a.useState([]),[m,v]=a.useState(l&&0!=l.CoreAddon?l.CoreAddon:"2"),[g,y]=a.useState(l?l.AppId:null),[x,b]=a.useState(),[w,j]=a.useState(l?l.FeatIcon:null);a.useState();const[C,S]=a.useState(l?l.FeatType:null),[N,F]=a.useState(l&&0!=l.FeatCat?l.FeatCat:null),B=[{name:"Home",link:`${ET}landing-page/home`},{name:"Feature",link:`${ET}setting/feature-master/`},{name:l?"Edit":"New",link:null}];a.useEffect((()=>{var a;(async()=>{var e,t,i;const a=await n(bT()).unwrap();if(1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)){let e=null==(i=null==(t=null==a?void 0:a.data)?void 0:t.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));A(e)}})(),P(),"edit"===e&&(l?(T(l.FeatCat),E(l.FeatType),null==(a=t.current)||a.setFieldsValue(l)):i(`${ET}setting/feature-master/`)),n(Gh({items:B}))}),[]);const P=async()=>{var e,t;let i=await n(ST()).unwrap();(null==(e=i.data)?void 0:e.statusCode)&&b(null==(t=null==i?void 0:i.data)?void 0:t.data)},T=async e=>{var i,a,r,s;null==(i=t.current)||i.setFieldsValue({FeatCat:e}),F(e);const l=await n(wT()).unwrap();if(1===(null==(a=l.data)?void 0:a.statusCode)){let e=null==(s=null==(r=l.data)?void 0:r.data)?void 0:s.filter((e=>"A"===e.ActiveStatus));f(e)}},E=async e=>{var n;null==(n=t.current)||n.setFieldsValue({FeatType:e}),S(e)};return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:o,messageData:c}),Ye.jsxs("div",{className:"formName",children:[Ye.jsx(ab,{title:"Feature"}),Ye.jsx("p",{className:"formdes"})]}),Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:t,className:"formDivAnt",onFinish:async t=>{var a,r,s;let o=t;o.CreatedBy=iA("UserId");let c={};"add"===e?(o.FeatId=t.FeatId,o.CoreAddon=t.CoreAddon?t.CoreAddon:m,o.FeatIcon=w,c=await n(NT(o)).unwrap()):"edit"===e&&(l&&(o.FeatId=l.FeatId,o.FeatIcon=w),o.UpdatedBy=iA("UserId"),c=await n(IT(o)).unwrap()),1==(null==(a=null==c?void 0:c.data)?void 0:a.statusCode)?i(`${ET}setting/feature-master/`,{state:{Notiffy:{messageType:"success",messageData:null==(r=null==c?void 0:c.data)?void 0:r.response}}}):(d("error"),u(null==(s=null==c?void 0:c.data)?void 0:s.response))},children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select App Name"}],children:Ye.jsx(_y,{options:null==x?void 0:x.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"App Name",label:Ye.jsx("label",{className:"required",children:"App Name"}),optionsNames:{value:"ConfigId",label:"ConfigName"},className:"field-DropDown",onChangeFunction:e=>(async e=>{var n;null==(n=t.current)||n.setFieldsValue({AppId:e}),y(e)})(e),isOnchanges:"edit"==e,valueData:g})}),Ye.jsx(I.Item,{name:"FeatCat",rules:[{required:!0,message:"Please Select Feature Category"}],children:Ye.jsx(_y,{options:null==p?void 0:p.map((e=>({value:e.ConfigId,label:e.ConfigName}))),placeholder:"FeatCat",label:Ye.jsx("label",{className:"required",children:"Feature Category"}),optionsNames:{value:"ConfigId",label:"ConfigName"},className:"field-DropDown",onChangeFunction:e=>T(e),isOnchanges:"edit"==e,valueData:N})}),Ye.jsx(I.Item,{name:"FeatName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Feature Name"},{validator:async(e,t)=>(await lA(t),t&&t.length>30?Promise.reject("Feature Name should not exceed 30 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"FeatName",name:"test",label:Ye.jsx("label",{className:"required",children:"Feature Name"}),fieldState:!0,fieldApi:!0,id:"error2",autocomplete:"off",isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"FeatType",rules:[{required:!0,message:"Please Select Feature Type"}],children:Ye.jsx(_y,{options:null==h?void 0:h.map((e=>({value:e.ConfigId,label:e.ConfigName}))),placeholder:"Feat Type",label:Ye.jsx("label",{className:"required",children:"Feature Type"}),optionsNames:{value:"ConfigId",label:"ConfigName"},className:"field-DropDown",onChangeFunction:e=>E(e),isOnchanges:"edit"==e,valueData:C})}),Ye.jsx(I.Item,{name:"FeatConstraint",rules:[{validator:(e,t)=>!t||t<0?Promise.reject("Please Enter a Valid Feature Constraint"):/^\d{1,16}$/.test(t)?Promise.resolve():Promise.reject("Enter a valid number (max 16 digits)")}],children:Ye.jsx(Oy,{field:"FeatConstraint",name:"Feature Constraint",type:"number",label:Ye.jsx("label",{className:"required",children:"Feature Constraint"}),fieldState:!0,fieldApi:!0,id:"error2",autocomplete:"off",isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"FeatDescription",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Description"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(My,{field:"FeatDescription",name:"test",label:Ye.jsx("label",{className:"required",children:"Feature Description"}),className:"Input",fieldState:!0,fieldApi:!0,autocomplete:"off",isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"CoreAddon",children:Ye.jsx("li",{className:"drp_btn",children:Ye.jsx(fk,{content:[{value:"1",label:"Core"},{value:"2",label:"Add-on"},{value:"3",label:"Package"}],fieldState:!0,defaultSelect:m,Header:"Select Core/Addon/Package"})})}),Ye.jsxs("div",{className:"upload_btn",children:[Ye.jsx("p",{children:"Upload Icon"}),Ye.jsx(Yy,{singleImage:!0,updateImageUrl:j,ImageLink:(null==l?void 0:l.FeatIcon)?null==l?void 0:l.FeatIcon:""})]})]})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})})]})})]})})})},LT=Ja("user/getFilterUserDataBasedOnLocation",(async e=>await fA.get(`/User/UserLocation?branchId=${e.branchId}&latitude=${e.latitude}&longitude=${e.longitude}`))),UT=Ja("user/getUserData",(async()=>await fA.get("/user?UserType=E"))),_T=Ja("user/getAllUserData",(async e=>await fA.get(`/user?UserType=${e}`))),OT=Ja("user/getUserData",(async e=>{if(null!=e&&null!=e)return await fA.get(`/user?UserType=A&UserId=${e}`)})),MT=Ja("user/getBasedAdminUserData",(async e=>{if(null!=e&&null!=e)return await fA.get(`/user?UserType=A&UserId=${e}`)})),RT=Ja("user/postUserData",(async e=>await fA.post("/user",e))),QT=Ja("user/putUserData",(async e=>await fA.put("/user",e))),HT=Ja("user/deleteUserData",(async e=>await fA.delete("/user",{params:e}))),VT=Ja("user/putResetUserData",(async e=>await fA.put("/User/ResetPinPassword",e))),zT=Ja("user/postResetPinPasswordSms",(async e=>await mA.post("/ResetPinPasswordSms",e))),qT=Ja("user/postResetPinPasswordEmail",(async e=>await mA.post("/ResetPinPasswordEmail",e))),WT=Ja("sendSms/sendSms",(async e=>await mA.post("/OTPSms",e))),YT=Ja("OTPEmail/OTPEmail",(async e=>await mA.post("/OTPEmail",e))),KT=Ja("UserExistCheck/checkUserExistsAsEmployeeInOther",(async e=>{if((null==e?void 0:e.MobileNo)&&(null==e?void 0:e.BranchId))return await fA.get(`/UserRelievInfo?mobileNo=${null==e?void 0:e.MobileNo}&BranchId=${null==e?void 0:e.BranchId}`)})),GT=Ja("postReleiveRequest/postReleiveRequest",(async e=>{if(e)return await fA.post("/UserRelievInfo",e)})),$T=Ja("getupiotp",(async e=>{if(null!=(null==e?void 0:e.MobileNo)&&null!=(null==e?void 0:e.MobileNo)&&null!=(null==e?void 0:e.OTP)&&null!=(null==e?void 0:e.OTP))return await hA.get(`/upiVerify?MobileNo=${null==e?void 0:e.MobileNo}&OTP=${null==e?void 0:e.OTP}`)})),XT=Ja("sendupiotp",(async e=>await hA.post("/upiVerify",e))),JT=Ya({name:"user",initialState:{userData:[]},extraReducers:e=>{e.addCase(UT.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.userData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.userData=[]}))}}),ZT=e=>{var t;return null==(t=e.userPage)?void 0:t.userData},eE=JT.reducer,tE=({mobileNo:e,open:t,onClose:n,userId:i,ChangeMobileFun:r,SuccessOtp:s,close:l})=>{const o=um(),[d,c]=a.useState({otp1:"",otp2:"",otp3:"",otp4:""}),[u,p]=a.useState(!1),[A,h]=a.useState(!1),[f,m]=a.useState(null),[v,g]=a.useState(!0),[y,x]=a.useState(null),[b,w]=a.useState(null);a.useEffect((()=>{if(0===f&&(g(!1),m(null)),!f)return;const e=setInterval((()=>{m(f-1)}),1e3);return()=>clearInterval(e)}),[f]);a.useEffect((()=>{j()}),[d]);const j=async()=>{var t;const n=Object.values(d).join("");if(4===n.length){let i={MobileNo:e,OTP:n},a=await o($T(i)).unwrap();1===(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)?(x("success"),w("Mobile number verified successfully"),c({otp1:"",otp2:"",otp3:"",otp4:""}),m(null),h(!1),p(!1),s()):(x("error"),w("Please enter correct OTP"))}},C=e=>{var t,n;if("Backspace"===e.key||"Delete"===e.key){const n=e.target.tabIndex-2;n>=0&&(null==(t=e.target.form.elements[n])||t.focus())}else{const t=e.target.tabIndex;t<4&&(null==(n=e.target.form.elements[t])||n.focus())}},S=async()=>{var t;const n={MobileNo:e,CreatedBy:i};try{let e=await o(XT(n)).unwrap();1===(null==(t=null==e?void 0:e.data)?void 0:t.statusCode)&&(h(!0),p(!0),m(30))}catch(a){}},N=a.useCallback((()=>{w(null),x(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:y,messageData:b,onComplete:N}),Ye.jsxs(SP,{title:Ye.jsx("div",{className:"EditQuantity-title",children:"Verify Mobile"}),open:t,width:300,footer:null,handleCancel:()=>{l(!1)},children:[Ye.jsxs("div",{style:{textAlign:"center",marginBottom:"1rem"},children:[Ye.jsxs("p",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"8px"},children:[Ye.jsx("span",{style:{color:"#1890ff"},children:e}),Ye.jsx("span",{style:{padding:"18px 5px",backgroundColor:"#f0f0f0",cursor:"pointer"},onClick:()=>{c({otp1:"",otp2:"",otp3:"",otp4:""}),m(null),h(!1),p(!1),r()},children:"✏️"})]}),Ye.jsx("div",{style:{display:"flex",justifyContent:"center",gap:"10px",flexWrap:"wrap"},children:!A&&Ye.jsx("button",{onClick:S,style:{padding:"6px 12px",backgroundColor:"#1890ff",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer"},children:"🔄 Send OTP"})})]}),u&&Ye.jsx(I,{className:"otpWrapper",children:Ye.jsx("div",{className:"otpModule",children:["otp1","otp2","otp3","otp4"].map(((e,t)=>Ye.jsx("input",{name:e,type:"text",className:"otpModuleInput",autoComplete:"one-time-code",inputMode:"numeric",pattern:"[0-9]*",value:d[e],onChange:t=>{const n=t.target.value;/^\d?$/.test(n)&&((e,t)=>{c((n=>({...n,[e]:t.target.value})))})(e,t)},tabIndex:t+1,maxLength:"1",onKeyUp:C},e)))})}),Ye.jsx("div",{className:"timersecdiv",children:A&&null!=f?Ye.jsxs("div",{className:"timersecsubdiv",children:[Ye.jsx(z,{}),Ye.jsxs("div",{style:{color:f<=10?"#FF4D4F":"#52C41A"},children:["0 : ",f<10?"0"+f:f]})]}):A?Ye.jsx(Ry,{buttonText:"Resend OTP",style:{width:"5rem"},handleSubmit:S,icon:Ye.jsx(k,{})}):""})]})]})},nE="/",iE=({formType:e})=>{var t,n,i,r;const s=Qt(),l=Mt(),o=null==l?void 0:l.state,d=null==o?void 0:o.editstate,c=a.useRef(null),u=a.useRef(null),p=um(),[A,h]=a.useState(null),[f,m]=a.useState(null),[v,y]=a.useState(!1),[x,b]=a.useState(iA("UserType")?iA("UserType"):null),[w,j]=a.useState(iA("UserId")?iA("UserId"):null),[C,S]=a.useState(),[N,B]=a.useState(null),[P,T]=a.useState(),[E,D]=a.useState(null),[L,U]=a.useState(!1),[_,O]=a.useState(""),[M,R]=a.useState([]),[Q,H]=a.useState([]),[V,z]=a.useState(null),[Y,K]=a.useState([]),[G,$]=a.useState([]),[X,J]=a.useState([]),[Z,ee]=a.useState([]),[te,ne]=a.useState([]),[ie,ae]=a.useState(!0),re=Tf(Gg),[se,le]=a.useState(!1),[oe,de]=a.useState(null),[ce,ue]=a.useState(null),[pe,Ae]=a.useState(!1),[he,fe]=a.useState(null),[me,ve]=a.useState(null),[ge,ye]=a.useState(!1),[xe,be]=a.useState(!1),[we,je]=a.useState(!1),[Ce,Se]=a.useState(!1),[Ne,Ie]=a.useState(!1),[Fe,Be]=a.useState(!1);let Pe;Pe="edit"!=e&&"Super Admin User"==x||("Super Admin User"!=x||"add"==e);const ke=[{name:"Home",link:`${nE}landing-page/home`},{name:"UserCreation",link:`${nE}setting/user-master/`},{name:d?"Edit":"New",link:null}];a.useEffect((()=>{null!=N&&null!=E&&"edit"!=e&&Oe(N,E)}),[G]);const Te=async()=>{var e,t,n;const i=await p(db()).unwrap();if(1===(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)){let e=null==(n=null==(t=null==i?void 0:i.data)?void 0:t.data)?void 0:n.filter((e=>"Super Admin"!=e.ConfigName&&"Public"!=e.ConfigName));H(e)}};a.useEffect((()=>{p(Gh({items:ke})),"Super Admin"===x?Te():(Te(),p(cb(w)).unwrap(),p(py()).unwrap()),d&&((null==d?void 0:d.Zip)&&le(!0),z(null==d?void 0:d.UserTypeName),O(null==d?void 0:d.UserImage),S(d.CompId),T(d.BranchId),ae(!1),de(0),ue(0))}),[]),a.useEffect((()=>{"Admin"===x&&Ue(w)}),[]),a.useEffect((()=>{if(C){const e=Z.filter((e=>e.CompId===C));R(e)}else R([])}),[C]);const Ee=a.useCallback((()=>{m(null),h(null)}),[]),De=async(e,t,n)=>{var i,a,r,s,l,o,d,u,A,h,f,m,v;S(e),null==(i=c.current)||i.setFieldsValue({CompId:e});let g=await p(by({UserId:n,AppId:t,CompId:e})).unwrap();1===(null==(a=null==g?void 0:g.data)?void 0:a.statusCode)?(await ee(null==(s=null==(r=null==g?void 0:g.data)?void 0:r.data)?void 0:s.filter((e=>"D"!==e.ActiveStatus))),0==(null==(o=null==(l=null==g?void 0:g.data)?void 0:l.data)?void 0:o.filter((e=>"D"!==e.ActiveStatus)).length)&&(null==(d=null==c?void 0:c.current)||d.setFieldsValue({BranchId:null})),1===(null==(A=null==(u=null==g?void 0:g.data)?void 0:u.data)?void 0:A.length)&&(0==(null==(f=null==(h=null==g?void 0:g.data)?void 0:h.data)?void 0:f.filter((e=>"D"!==e.ActiveStatus)).length)?await Le():(je(!0),await Le(null==(v=null==(m=null==g?void 0:g.data)?void 0:m.data[0])?void 0:v.BrId)))):ee([])},Le=async e=>{var t;null==(t=c.current)||t.setFieldsValue({BranchId:e}),await T(e)},Ue=async e=>{var t,n,i,a,r,s,l;D(null),J([]),ee([]),S(),T(),null==(t=c.current)||t.setFieldsValue({AdminId:e}),B(e);let o=await p(jy(e)).unwrap();1===(null==(n=null==o?void 0:o.data)?void 0:n.statusCode)?(await $(null==(i=null==o?void 0:o.data)?void 0:i.data),1===(null==(r=null==(a=null==o?void 0:o.data)?void 0:a.data)?void 0:r.length)&&(ye(!0),await _e(e,null==(l=null==(s=null==o?void 0:o.data)?void 0:s.data[0])?void 0:l.AppId))):$([])},_e=async(e,t)=>{var n,i,a,r,s,l,o,d;await D(t),null==(n=c.current)||n.setFieldsValue({AppId:t});let u=await p(wy({UserId:e,AppId:t})).unwrap();1===(null==(i=null==u?void 0:u.data)?void 0:i.statusCode)?(await J(null==(r=null==(a=null==u?void 0:u.data)?void 0:a.data)?void 0:r.filter((e=>"D"!==e.ActiveStatus))),1===(null==(l=null==(s=null==u?void 0:u.data)?void 0:s.data)?void 0:l.length)&&(be(!0),await De(null==(d=null==(o=null==u?void 0:u.data)?void 0:o.data[0])?void 0:d.CompId,t,e))):J([])},Oe=async(t,n)=>{var i,a,r,l,o,d,c=[];if(1==(null==(i=null==(c="Admin"===x||"Admin User"===x?await p(vb({UserId:t,AppId:n})).unwrap():await p(vb({UserId:N,AppId:n})).unwrap())?void 0:c.data)?void 0:i.statusCode)&&"edit"!=e){const e=null==(a=c.data)?void 0:a.data[0],t=null==(l=null==(r=c.data)?void 0:r.data)?void 0:l.length;let n=null==(o=null==e?void 0:e.FeatureDetails)?void 0:o.filter((e=>"User"===e.FeatName?e.FeatConstraint:0)),i=n.length>0?null==(d=n[0])?void 0:d.FeatConstraint:0;e?"FREE"==e.PricingName.toUpperCase()&&e.UserCount+1>=1?t>1?ae(!0):(ae(!0),setTimeout((function(){s(`${nE}setting/user-master/`,{state:{Notiffy:{messageType:"error",messageData:"Your Trial Period is Expired Please Choose Extend Pack To Add User"}}},700)}))):"FREE"!=e.PricingName.toUpperCase()?(ae(!1),i<=e.UserCount+1&&(ae(!0),setTimeout((function(){s(`${nE}setting/user-master/`,{state:{Notiffy:{messageType:"error",messageData:"Your Feature Constraint is Completed!"}}},700)})))):ae(!1):ae(!1)}else ne([]),setTimeout((function(){s(`${nE}setting/user-master/`,{state:{Notiffy:{messageType:"error",messageData:"Your Trial Period is Expired Please Choose Extend Pack To Add User"}}},700)}))},Me=async e=>{var t;let n="";await fetch(`https://api.postalpincode.in/pincode/${e}`).then((e=>e.text())).then((e=>n=JSON.parse(e))),"Success"===n[0].Status?(le(!0),null==(t=c.current)||t.setFieldsValue({City:n[0].PostOffice[0].Block,Dist:n[0].PostOffice[0].District,State:n[0].PostOffice[0].State})):"Error"===n[0].Status&&(m(n[0].Message),h("error"),le(!1))};return Ye.jsxs("div",{className:"pageOverAll",children:[Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:A,messageData:f,onComplete:Ee}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"User Creation"})}),Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:c,className:"formDivAnt",onFinish:async t=>{var n,i,a;if(!se)return h("error"),void m("Invalid ZipCode");let r={Password:null==d?void 0:d.Password,Pin:null==d?void 0:d.Pin},l=d&&"Super Admin User"==x?{...t,...r}:t,o=Q.filter((e=>"Employee"===e.ConfigName));l.UserImage=_,l.UserType=(null==t?void 0:t.UserType)?null==t?void 0:t.UserType:o.length>0?o[0].ConfigId:null,l.CreatedBy=iA("UserId");let c={};"add"===e?c=await p(RT(l)).unwrap():"edit"===e&&(d&&(l.CompId=null==d?void 0:d.CompId,l.BranchId=null==d?void 0:d.BranchId,l.AddId=(null==d?void 0:d.AddId)||0),l.UserId=null==d?void 0:d.UserId,l.UpdatedBy=iA("UserId"),c=await p(QT(l)).unwrap()),1==(null==(n=null==c?void 0:c.data)?void 0:n.statusCode)?s(`${nE}setting/user-master/`,{state:{Notiffy:{messageType:"success",messageData:null==(i=null==c?void 0:c.data)?void 0:i.response}}}):(h("error"),m(null==(a=null==c?void 0:c.data)?void 0:a.response))},initialValues:{...d,UserImage:null==d?void 0:d.UserImage},children:[Ye.jsxs("div",{className:"formDivS",children:[Ye.jsxs("div",{className:"inputForm",children:["Super Admin"===x||"Super Admin User"===x?Ye.jsx(I.Item,{name:"UserType",rules:[{required:!0,message:"Please Select User Type"}],children:Ye.jsx(_y,{options:null==Q?void 0:Q.map((e=>({value:e.ConfigId,label:e.ConfigName}))),placeholder:"User Type",label:"User Type",className:"field-DropDown",isOnchanges:!("edit"!=e&&!V),onChangeFunction:async e=>{var t,n,i,a,r,s,l,o;null==(t=c.current)||t.setFieldsValue({UserType:e});let d=Q.filter((t=>(null==t?void 0:t.ConfigId)===e));z(d.length>0?null==(n=d[0])?void 0:n.ConfigName:null);let u=await p(Ay()).unwrap();1===(null==(i=null==u?void 0:u.data)?void 0:i.statusCode)&&(K(null==(a=null==u?void 0:u.data)?void 0:a.data),1===(null==(s=null==(r=null==u?void 0:u.data)?void 0:r.data)?void 0:s.length)&&Ue(null==(o=null==(l=null==u?void 0:u.data)?void 0:l.data[0])?void 0:o.UserId))},valueData:V,disabled:"edit"==e})}):null,"Super Admin"!==x&&"Super Admin User"!==x||"Super Admin User"==V||"Admin"==V||"Marketing"==V||"edit"==e?null:Ye.jsx(I.Item,{name:"AdminId",rules:[{required:!0,message:"Please Select Admin"}],children:Ye.jsx(_y,{options:null==Y?void 0:Y.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?e.UserName:e.MobileNo}))),placeholder:"Admin",label:"Admin",className:"field-DropDown",isOnchanges:!!N,onChangeFunction:Ue,valueData:N,disabled:"edit"==e})}),"Super Admin User"!=V&&"Admin"!=V&&"Marketing"!=V&&"edit"!=e?Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(I.Item,{name:"AppId",style:{display:ge||"edit"==e?"none":""},rules:[{required:!0,message:"Please Select Application"}],children:Ye.jsx(_y,{options:null==G?void 0:G.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"Application",label:Ye.jsx("label",{className:"required",children:"Application"}),className:"field-DropDown",isOnchanges:!!E,onChangeFunction:async e=>{var t,n,i,a,r,s,l,o,d;await D(e),null==(t=c.current)||t.setFieldsValue({AppId:e}),Oe(w,e);let u=await p(wy({UserId:N,AppId:e})).unwrap();1===(null==(n=null==u?void 0:u.data)?void 0:n.statusCode)?(await J(null==(a=null==(i=null==u?void 0:u.data)?void 0:i.data)?void 0:a.filter((e=>"D"!==e.ActiveStatus))),1===(null==(s=null==(r=null==u?void 0:u.data)?void 0:r.data)?void 0:s.length)?(be(!0),await De(null==(o=null==(l=null==u?void 0:u.data)?void 0:l.data[0])?void 0:o.CompId,e,N)):(be(!1),S(null),null==(d=null==c?void 0:c.current)||d.setFieldsValue({CompId:null}))):J([])},valueData:E,disabled:!("edit"!=e&&!ge)})}),Ye.jsxs("div",{style:{lineHeight:"1.6"},children:[ge||"edit"==e&&Ye.jsxs("p",{children:[Ye.jsx("strong",{children:"Application :"})," ",null==(t=null==G?void 0:G.find((e=>e.AppId===E)))?void 0:t.AppName]}),xe&&C&&Ye.jsxs("p",{children:[Ye.jsx("strong",{children:"Company :"})," ",null==(n=null==X?void 0:X.find((e=>e.CompId===C)))?void 0:n.CompName]}),we&&P&&Ye.jsxs("p",{children:[Ye.jsx("strong",{children:"Branch :"})," ",null==(i=null==Z?void 0:Z.find((e=>e.BrId===P)))?void 0:i.BrName]})]})]}):null,"Super Admin User"!=V&&"Admin"!=V&&"Marketing"!=V&&"edit"!=e?Ye.jsx(I.Item,{name:"CompId",style:{display:xe||"edit"==e?"none":""},rules:[{required:!0,message:"Please Select Company"}],children:Ye.jsx(_y,{options:null==X?void 0:X.map((e=>({value:e.CompId,label:e.CompName}))),placeholder:"CompId",label:Ye.jsx("label",{className:"required",children:"Company"}),className:"field-DropDown",isOnchanges:!!C,onChangeFunction:async e=>{var t,n,i,a,r,s,l,o,d,u,A,h,f,m;S(e),null==(t=c.current)||t.setFieldsValue({CompId:e});let v=await p(by({UserId:N,AppId:E,CompId:e})).unwrap();1===(null==(n=null==v?void 0:v.data)?void 0:n.statusCode)?(await ee(null==(a=null==(i=null==v?void 0:v.data)?void 0:i.data)?void 0:a.filter((e=>"D"!==e.ActiveStatus))),0==(null==(s=null==(r=null==v?void 0:v.data)?void 0:r.data)?void 0:s.filter((e=>"D"!==e.ActiveStatus)).length)&&(null==(l=null==c?void 0:c.current)||l.setFieldsValue({BranchId:null})),1===(null==(d=null==(o=null==v?void 0:v.data)?void 0:o.data)?void 0:d.length)?0==(null==(A=null==(u=null==v?void 0:v.data)?void 0:u.data)?void 0:A.filter((e=>"D"!==e.ActiveStatus)).length)?await Le():(je(!0),await Le(null==(f=null==(h=null==v?void 0:v.data)?void 0:h.data[0])?void 0:f.BrId)):(je(!1),null==(m=null==c?void 0:c.current)||m.setFieldsValue({BranchId:null}),T())):(ee([]),T(),je(!1))},valueData:C,disabled:!("edit"!=e&&!xe)})}):null,"Super Admin User"!=V&&"Admin"!=V&&"Marketing"!=V&&"edit"!=e?Ye.jsx(I.Item,{name:"BranchId",style:{display:we||"edit"==e?"none":""},rules:[{required:!0,message:"Please Select Branch"}],children:Ye.jsx(_y,{options:null==Z?void 0:Z.map((e=>({value:e.BrId,label:e.BrName}))),placeholder:"BranchId",label:Ye.jsx("label",{className:"required",children:"Branch"}),className:"field-DropDown",isOnchanges:!!P,onChangeFunction:Le,valueData:P,disabled:!("edit"!=e&&!we)})}):null,Ye.jsx(I.Item,{name:"MobileNo",rules:[{required:!0,message:"Please Enter Mobile Number"},{pattern:/^\d{10}$/,message:"Please Enter a Valid Mobile Number"},{pattern:/^[6-9]\d{9}$/,message:"Enter a valid 10-digit mobile number starting with 6-9"},{validator:(e,t,n)=>{t&&t.length,n()}}],children:Ye.jsx(Ye.Fragment,{children:Ye.jsx(Oy,{disabled:!(P&&C&&E||"Super Admin User"===V||"Admin"===V||"Marketing"==V),field:"MobileNo",label:Ye.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"129px"},children:[Ye.jsx("label",{className:"required",style:{marginBottom:0,fontSize:"12px"},children:"Mobile Number"}),Fe&&Ye.jsx("span",{className:"otp-verified-icon",style:{color:"#52c41a",fontSize:"20px",lineHeight:1,display:"flex",alignItems:"center"},children:Ye.jsx(rg,{})})]}),fieldState:!0,maxLength:"10",fieldApi:!0,autoComplete:"off",inputMode:"numeric",isOnChange:"edit"===e,onInput:async e=>{var t,n,i,a;if(Be(!1),e.target.value=null==(n=null==(t=null==e?void 0:e.target)?void 0:t.value)?void 0:n.replace(/[^0-9]/g,""),10===(null==(i=e.target.value)?void 0:i.length))try{const{data:t}=await p(KT({MobileNo:e.target.value,BranchId:P})).unwrap();void 0!==(null==t?void 0:t.data)&&null!==(null==t?void 0:t.data)&&(null==t?void 0:t.data.length)>0&&1===(null==t?void 0:t.statusCode)&&E&&P&&C?(Ae(!0),fe(t.data[0]),ve("Please Releive the User"),null==(a=null==u?void 0:u.current)||a.setFieldsValue({requestMessage:"Please Releive the User"})):2===(null==t?void 0:t.statusCode)?(h("error"),m(null==t?void 0:t.response)):(Ie(!0),Se(e.target.value))}catch(r){}}})})}),Ye.jsx(I.Item,{name:"MailId",rules:[{validator:(e,t,n)=>{!t||/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(t)?n():n("Please enter a valid Mail Id")}}],children:Ye.jsx(Oy,{field:"MailId",label:"MailId",fieldState:!0,fieldApi:!0,autocomplete:"off",isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"UserName",rules:[{required:!0,message:"Please Enter User Name"},{pattern:/^(?!\s*$).+/,message:"Please Enter User Name"},{validator:async(e,t)=>(await lA(t),t&&t.length>30?Promise.reject("User Name should not exceed 30 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"UserName",label:Ye.jsx("label",{className:"required",children:"User Name"}),fieldState:!0,fieldApi:!0,autocomplete:"off",isOnChange:"edit"==e})}),Pe&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(I.Item,{name:"Password",rules:[{pattern:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,message:"Password must be at least 8 characters and include uppercase, lowercase, number, and special character"}],className:"user-password userPin",children:Ye.jsx(g.Password,{field:"Password",fieldState:!0,fieldApi:!0,autocomplete:"off",iconRender:e=>e?Ye.jsx(q,{}):Ye.jsx(W,{}),onIconClick:()=>{U(!L)},visibilityToggle:!0,addonBefore:Ye.jsx("label",{children:"Password"}),isOnChange:"edit"==e,style:{width:"250px"}})}),Ye.jsx(I.Item,{name:"Pin",rules:[{required:!0,message:"Pin number must be a 4-digit number",pattern:/^[0-9]{4}$/}],className:"userPin",children:Ye.jsx(g.Password,{maxLength:4,autoComplete:"off",inputMode:"numeric",iconRender:e=>e?Ye.jsx(q,{}):Ye.jsx(W,{}),placeholder:"Enter 4-digit PIN",style:{width:"250px"},addonBefore:Ye.jsx("label",{className:"required",children:"Pin"}),onKeyPress:e=>{/[0-9]/.test(e.key)||e.preventDefault()}})})]}),Ye.jsxs("div",{className:"upload_btn",children:[Ye.jsx("p",{children:"Upload Profile"}),Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>{O(e)},ImageLink:"edit"==e?_:null})]})]}),Ye.jsx("div",{className:"formAddressDiv",children:Ye.jsx("p",{children:" Address Details"})}),Ye.jsxs("div",{className:"subinputForm",children:[Ye.jsxs("div",{className:v?"showMap22":"showMap11",children:[Ye.jsx(I.Item,{name:"Address1",rules:[{required:"edit"!=e,pattern:/^(?!\s*$).+/,message:"Please Enter Address1"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Address1",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Address Line1"}),fieldState:!0,fieldApi:!0,isOnChange:!!(null==d?void 0:d.Address1)})}),Ye.jsx(I.Item,{name:"Address2",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Address2"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Address2",autoComplete:"off",label:"Address Line2",fieldState:!0,fieldApi:!0,isOnChange:!!(null==d?void 0:d.Address2)})}),Ye.jsx(I.Item,{name:"Zip",rules:[{required:"edit"!=e,validator:(e,t)=>t?/^\d{6}$/.test(t)?Promise.resolve():Promise.reject("Zipcode must be exactly 6 digits"):Promise.reject("Please enter Zipcode")}],children:Ye.jsx(Oy,{field:"Zip",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Zipcode"}),maxLength:"6",fieldState:!0,fieldApi:!0,isOnChange:!!(null==d?void 0:d.Zip),onChange:async e=>{var t,n;if((null==(t=null==e?void 0:e.target)?void 0:t.value.length)<6)return le(!1),!1;await Me(null==(n=null==e?void 0:e.target)?void 0:n.value)},inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")})}),se?Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(I.Item,{name:"City",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"City",disabled:!0,isOnChange:!0,label:"City",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"Dist",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Dist",disabled:!0,isOnChange:!0,label:"District",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"State",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"State",disabled:!0,isOnChange:!0,label:"State",fieldState:!0,fieldApi:!0})})]}):"",Ye.jsx(I.Item,{name:"Latitude",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Latitude"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Latitude",label:"Latitude",isOnChange:!(!oe&&0!=(null==d?void 0:d.Latitude)&&!(null==d?void 0:d.Latitude)),fieldState:!0,fieldApi:!0,autoComplete:"off",suffix:Ye.jsx(F,{title:"View Map",children:Ye.jsx(jv,{style:{color:"#1677ff",fontSize:"18px",cursor:"pointer"},onClick:()=>(e=>{y(e)})(!v)})})})}),Ye.jsx(I.Item,{name:"Longitude",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Longitude"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Longitude",label:"Longitude",isOnChange:!(!ce&&0!=(null==d?void 0:d.Longitude)&&!(null==d?void 0:d.Longitude)),fieldState:!0,fieldApi:!0,autoComplete:"off"})})]}),v&&Ye.jsx("div",{className:"MapDiv",children:Ye.jsx(ib,{onMarkerClick:async e=>{var t;de("function"==typeof e.lat?e.lat():oe),ue("function"==typeof e.lng?e.lng():ce),null==(t=c.current)||t.setFieldsValue({Latitude:"function"==typeof e.lat?e.lat():oe,Longitude:"function"==typeof e.lng?e.lng():ce})},prevlca:d?{lat:d.Latitude,lng:d.Longitude}:null})})]})]}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0,disabled:"Super Admin"!==x&&(ie||"N"===(null==(r=null==re?void 0:re.find((e=>"User Creation"===(null==e?void 0:e.ConfigName))))?void 0:r.AddAccess))})})]})}),pe&&E&&P&&C&&Ye.jsx(SP,{open:pe,handleCancel:()=>{Ae(!1),fe()},children:Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("h1",{children:"User Already Registered"}),Ye.jsxs("div",{className:"relieve-request-info",children:[Ye.jsxs("div",{style:{backgroundColor:"#fff3cd",textAlign:"left",border:"2px solid rgb(219 177 41)",padding:"16px",margin:"2rem 0",borderRadius:"16px",display:"flex",alignItems:"flex-start",gap:"10px"},children:[Ye.jsx(xg,{color:"rgb(209 162 11)",size:35,strokeWidth:.1}),Ye.jsx("p",{children:"This user is already registered with another company. You can send a relieving request to the concerned company to transfer the user."})]}),Ye.jsxs("div",{style:{marginBottom:"1rem"},children:[Ye.jsx("h2",{children:"User Information"}),Ye.jsxs("div",{children:[Ye.jsx("strong",{children:"Mobile No:"})," ",null==he?void 0:he.UserMobileNo]}),Ye.jsxs("div",{children:[Ye.jsx("strong",{children:"User Name:"})," ",null==he?void 0:he.UserName]})]}),Ye.jsxs("div",{style:{marginBottom:"1rem"},children:[Ye.jsx("h2",{children:"Company Contact Information"}),Ye.jsxs("div",{children:[Ye.jsx("strong",{children:"Company Name:"})," ",null==he?void 0:he.CompanyName]}),(null==he?void 0:he.AdminUserName)&&Ye.jsxs("div",{children:[Ye.jsx("strong",{children:"Proprietor:"})," ",null==he?void 0:he.AdminUserName]}),(null==he?void 0:he.AdminMobileNo)&&Ye.jsxs("div",{children:[Ye.jsx("strong",{children:"Proprietor Mobile No:"})," ",Ye.jsx("span",{style:{color:"green"},children:null==he?void 0:he.AdminMobileNo})]})]}),Ye.jsx("div",{className:"errorbyWho",children:Ye.jsxs(I,{ref:u,onFinish:async()=>{const e={AppId:E,CompId:C,BranchId:P,Message:me,UserId:null==he?void 0:he.UserId,AdminUserId:null==he?void 0:he.AdminUserId,CreatedBy:w},{data:t}=await p(GT(e)).unwrap();1===(null==t?void 0:t.statusCode)?(h("success"),m("Releive Request Sent Successfuly")):(h("error"),m("Error Sending Releive Request...")),Ae(!1),fe(),s(`${nE}setting/user-master/`,{state:{Notiffy:{messageType:1===(null==t?void 0:t.statusCode)||2===(null==t?void 0:t.statusCode)?"success":"error",messageData:1===(null==t?void 0:t.statusCode)?"Releive Request Sent Successfuly":2===(null==t?void 0:t.statusCode)?"User Relieve Info Already Exists":"Error Sending Releive Request..."}}},700)},children:[Ye.jsx(I.Item,{name:"requestMessage",children:Ye.jsx(My,{fieldState:{value:me}})}),Ye.jsx("div",{className:"userformModalBTn",style:{marginTop:"1rem"},children:Ye.jsx(Ry,{buttonText:"Send Relieving Request",color:"901D77",icon:Ye.jsx(k,{})})})]})})]})]})})]})}),Ye.jsx(tE,{open:Ne,close:Ie,mobileNo:Ce,userId:w,ChangeMobileFun:()=>{var e;null==(e=c.current)||e.setFieldsValue({MobileNo:""}),Ie(!1),Se("")},SuccessOtp:()=>{Se(!1),Ie(!1),Se(""),Be(!0)}})]})},aE="/";let rE=[{value:"Super Admin User",label:"Super Admin User"},{value:"Admin",label:"Admin"},{value:"Employee",label:"Employee"},{value:"Marketing",label:"Marketing"}],sE=[{value:"Pin",label:"Pin"},{value:"Password",label:"Password"}];const lE=[{name:"Home",link:`${aE}landing-page/home`},{name:"UserCreation",link:`${aE}setting/user-master`}];function oE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M20.2739 9.86883L16.8325 4.95392L18.4708 3.80676L21.9122 8.72167L20.2739 9.86883Z",fill:"currentColor"}},{tag:"path",attr:{d:"M18.3901 12.4086L16.6694 9.95121L8.47783 15.687L10.1985 18.1444L8.56023 19.2916L3.97162 12.7383L5.60992 11.5912L7.33068 14.0487L15.5222 8.31291L13.8015 5.8554L15.4398 4.70825L20.0284 11.2615L18.3901 12.4086Z",fill:"currentColor"}},{tag:"path",attr:{d:"M20.7651 7.08331L22.4034 5.93616L21.2562 4.29785L19.6179 5.445L20.7651 7.08331Z",fill:"currentColor"}},{tag:"path",attr:{d:"M7.16753 19.046L3.72607 14.131L2.08777 15.2782L5.52923 20.1931L7.16753 19.046Z",fill:"currentColor"}},{tag:"path",attr:{d:"M4.38208 18.5549L2.74377 19.702L1.59662 18.0637L3.23492 16.9166L4.38208 18.5549Z",fill:"currentColor"}}]})(e)}function dE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M7 14C8.10457 14 9 13.1046 9 12C9 10.8954 8.10457 10 7 10C5.89543 10 5 10.8954 5 12C5 13.1046 5.89543 14 7 14Z",fill:"currentColor"}},{tag:"path",attr:{d:"M14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12Z",fill:"currentColor"}},{tag:"path",attr:{d:"M17 14C18.1046 14 19 13.1046 19 12C19 10.8954 18.1046 10 17 10C15.8954 10 15 10.8954 15 12C15 13.1046 15.8954 14 17 14Z",fill:"currentColor"}},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",fill:"currentColor"}}]})(e)}const cE="/assets/PozomindLogoTechnologies-671f98c6.png",uE=({printingdata:e,CompanyName:t,zipcode:n,address:i,City:a})=>{var r,s,l,o,d,c;const u=Se(null==e?void 0:e.ValidityStart),p=Se(null==e?void 0:e.ValidityEnd).diff(u,"days")>30?"Yearly":"Monthly",A=e=>{const t=new Date(e);return`${String(t.getDate()).padStart(2,"0")}/${String(t.getMonth()+1).padStart(2,"0")}/${t.getFullYear()}`};return Ye.jsxs("div",{className:"pdf-body",id:"Pdfbody",children:[Ye.jsxs("div",{className:"pdf-header",children:[Ye.jsx("img",{src:cE,width:"50",height:"110",alt:"Logo",className:"pdf-logo"}),Ye.jsxs("div",{className:"pdf-title-block",children:[Ye.jsx("p",{className:"pdf-title",children:"Invoice"}),Ye.jsx("p",{className:"pdf-subtitle",children:"Pozomind Technologies Private Limited"})]})]}),Ye.jsxs("div",{className:"pdf-amount-section",children:[Ye.jsxs("p",{children:["Invoice Number:",Ye.jsx("span",{className:"pdf-value",children:(null==e?void 0:e.UniqueId)||""})]}),Ye.jsxs("p",{children:["Amount:",Ye.jsxs("span",{className:"pdf-value",children:["₹ ",(null==e?void 0:e.NetPrice)||0]})]})]}),Ye.jsxs("div",{className:"pdf-amount-section",children:[Ye.jsxs("p",{children:["Payment Method:",Ye.jsx("span",{className:"pdf-value",children:(null==e?void 0:e.PaymentModeName)||""})]}),Ye.jsxs("p",{children:["Date:",Ye.jsx("span",{className:"pdf-value",children:e?"I"===e.Type?tA(null==(r=null==e?void 0:e.PurDate)?void 0:r.split("T")[0]):tA(e.PurDate):""})]})]}),Ye.jsxs("div",{className:"pdf-billing-section",children:[Ye.jsxs("div",{className:"pdf-bill-from",children:[Ye.jsx("p",{className:"pdf-section-title",children:"Billed From"}),Ye.jsx("p",{className:"pdf-section-text",children:"Pozo"}),Ye.jsx("p",{className:"pdf-section-text",children:"Phone: 7324000011"})]}),Ye.jsxs("div",{className:"pdf-bill-to",children:[Ye.jsx("p",{className:"pdf-section-title",children:"Billed To"}),Ye.jsx("p",{className:"pdf-section-text",children:e?e.UserName||e.MobileNo:""}),Ye.jsxs("p",{className:"pdf-section-text",children:[t||""," ",i||""," ",a||""," ",n||""]}),Ye.jsxs("p",{className:"pdf-section-text",children:["Phone: ",(null==e?void 0:e.MobileNo)||""]})]})]}),Ye.jsx("hr",{className:"pdf-divider"}),Ye.jsxs("div",{className:"pdf-table-wrapper",children:[Ye.jsx("div",{className:"pdf-table-heading",children:"Statement Summary"}),"I"===(null==e?void 0:e.Type)&&Ye.jsx("div",{className:"pdf-table-subheading",children:`${e.AppName} (${e.PricingName})`}),Ye.jsxs("table",{className:"pdf-table",children:[Ye.jsx("thead",{children:Ye.jsxs("tr",{children:["I"!==(null==e?void 0:e.Type)&&Ye.jsx("th",{children:"Description"}),"I"!==(null==e?void 0:e.Type)&&Ye.jsx("th",{children:"Plan Type"}),"I"!==(null==e?void 0:e.Type)&&Ye.jsx("th",{children:"Duration"}),Ye.jsx("th",{children:"Purchase Date"}),Ye.jsx("th",{children:"Period"}),(null==(s=null==e?void 0:e.FeatAddonDetails)?void 0:s.length)>0&&Ye.jsx("th",{children:"Feature-Addon"}),Ye.jsx("th",{children:"Amount"})]})}),Ye.jsx("tbody",{children:Ye.jsxs("tr",{children:["I"!==(null==e?void 0:e.Type)&&Ye.jsx("td",{children:null==e?void 0:e.AppName}),"I"!==(null==e?void 0:e.Type)&&Ye.jsx("td",{children:null==e?void 0:e.PricingName}),"I"!==(null==e?void 0:e.Type)&&Ye.jsx("td",{children:p}),Ye.jsx("td",{children:e?"I"===e.Type?A(null==(l=null==e?void 0:e.PurDate)?void 0:l.split("T")[0]):A(e.PurDate):""}),Ye.jsxs("td",{children:[e?"I"===e.Type?A(null==(o=null==e?void 0:e.PurDate)?void 0:o.split("T")[0]):A(e.PurDate):""," ","- ",e?A(e.ValidityEnd):""]}),(null==(d=null==e?void 0:e.FeatAddonDetails)?void 0:d.length)>0&&Ye.jsx("td",{children:Ye.jsx("ul",{className:"pdf-addon-list",children:null==(c=null==e?void 0:e.FeatAddonDetails)?void 0:c.map(((e,t)=>Ye.jsxs("li",{children:[e.FeatAddonName," - ",e.Count," - ₹",e.NetPrice]},t)))})}),Ye.jsxs("td",{children:["₹",Math.abs(((null==e?void 0:e.NetPrice)||0)-((null==e?void 0:e.CommissionAmount)||0))]})]})})]})]}),Ye.jsx("hr",{className:"pdf-divider"}),Ye.jsx("div",{className:"pdf-table-wrapper",children:Ye.jsx("table",{className:"pdf-table",children:Ye.jsxs("tbody",{children:[Ye.jsxs("tr",{children:[Ye.jsx("th",{}),Ye.jsx("th",{}),Ye.jsx("th",{children:"Sub Total"}),Ye.jsxs("td",{children:["₹",Math.abs(((null==e?void 0:e.Price)||0)-((null==e?void 0:e.CommissionAmount)||0))]})]}),Ye.jsxs("tr",{children:[Ye.jsx("th",{}),Ye.jsx("th",{}),Ye.jsx("th",{children:"Commission Amount"}),Ye.jsxs("td",{children:["₹",(null==e?void 0:e.CommissionAmount)||0]})]}),Ye.jsxs("tr",{children:[Ye.jsx("td",{}),Ye.jsx("td",{}),Ye.jsx("th",{children:"Tax"}),Ye.jsxs("td",{children:["₹",(null==e?void 0:e.TaxAmount)||0]})]}),Ye.jsxs("tr",{children:[Ye.jsx("th",{}),Ye.jsx("th",{}),Ye.jsx("th",{children:"Total"}),Ye.jsxs("td",{children:["₹",Math.abs(((null==e?void 0:e.NetPrice)||0)-((null==e?void 0:e.CommissionAmount)||0))]})]})]})})}),Ye.jsx("hr",{className:"pdf-divider"})]})};function pE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"}}]})(e)}function AE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"}}]})(e)}function hE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"}}]})(e)}function fE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"}}]})(e)}function mE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"}}]})(e)}function vE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 160c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32V288c0 17.7-14.3 32-32 32s-32-14.3-32-32V205.3L342.6 374.6c-12.5 12.5-32.8 12.5-45.3 0L192 269.3 54.6 406.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0L320 306.7 466.7 160H384z"}}]})(e)}function gE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"}}]})(e)}function yE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"}}]})(e)}function xE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"}}]})(e)}function bE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"}}]})(e)}function wE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"}}]})(e)}function jE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"}}]})(e)}function CE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M352 224c53 0 96-43 96-96s-43-96-96-96s-96 43-96 96c0 4 .2 8 .7 11.9l-94.1 47C145.4 170.2 121.9 160 96 160c-53 0-96 43-96 96s43 96 96 96c25.9 0 49.4-10.2 66.6-26.9l94.1 47c-.5 3.9-.7 7.8-.7 11.9c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-25.9 0-49.4 10.2-66.6 26.9l-94.1-47c.5-3.9 .7-7.8 .7-11.9s-.2-8-.7-11.9l94.1-47C302.6 213.8 326.1 224 352 224z"}}]})(e)}function SE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"}}]})(e)}const NE=Ja("getPricingType/getPricingType",(async e=>{if(null!=e&&null!=e)return await fA.get(`/pricingType?PricingId=${e}`)})),IE=Ja("postInvoice/userAppMap",(async e=>await fA.post("/userAppMap",e))),FE=Ja("postCCAvenuePaymentDetails/payment",(async e=>await fA.post("/ccavenuePaymentDetails",e))),BE=Ja("getccavenuePaymentDetails",(async()=>await fA.get("/ccavenuePaymentDetails?activeStatus=A"))),PE=Ja("getPaymentMethod/getPaymentMethod",(async()=>await fA.get("/ccavenuePaymentDetails"))),kE=Ja("getallplanDtl",(async e=>{if(null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId))return await fA.get(`/AllDetailPlanMod?AppId=${null==e?void 0:e.AppId}&UserId=${null==e?void 0:e.UserId}`)})),TE=Ja("postDowngrade",(async e=>await fA.post("/ModifySubcription",e))),EE=Ja("putFeaturechange",(async e=>await fA.put("/ModifySubcription",e))),DE=Ja("getUsedplandata",(async e=>{if(null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.type)&&null!=(null==e?void 0:e.type))return await fA.get(`/UserAppMap?AppId=${null==e?void 0:e.AppId}&UserId=${null==e?void 0:e.UserId}&type=${null==e?void 0:e.type}`)})),LE=Ja("putPaymentMethod/putPaymentMethod",(async e=>await fA.put("/PaymentSuccess",e))),UE=Ja("postEmailApi/Email",(async e=>await mA.post("/Email",e))),_E=Ja("getEmployeRefferal",(async e=>{if(null!=e.AppId&&null!=e.AppId&&null!=e.UserId&&null!=e.UserId&&null!=e.Type&&null!=e.Type)return await fA.get(`/UserAppMap?AppId=${e.AppId}&UserId=${e.UserId}&Type=${e.Type}`)})),OE=Ja("getReferaluserdata",(async e=>await fA.get(`/ReferralSetup?referralCode=${e.referralCode}`))),ME=Ja("appAccess/getActiveAppCompanyData",(async e=>null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)?await fA.get(`/appAccess?AppId=${null==e?void 0:e.AppId}&UserId=${null==e?void 0:e.UserId}&ActiveStatus=A`):null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.AppId)?await fA.get(`/appAccess?AppId=${null==e?void 0:e.AppId}`):void 0)),RE=Ja("appAccess/getActiveAppBranchData",(async e=>{if(null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.CompId)&&null!=(null==e?void 0:e.CompId))return await fA.get(`/appAccess?AppId=${null==e?void 0:e.AppId}&UserId=${null==e?void 0:e.UserId}&CompId=${null==e?void 0:e.CompId}&ActiveStatus=A`)})),QE=Ja("appAccess/getCompanyData",(async({CompId:e})=>{if(null!=e&&null!=e)return await Ne.get(`https://www.pozo.dev/pozo-common-api/company?CompId=${e}`)})),HE=Ja("getfeatconstrains",(async e=>{if(null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UniqueId)&&null!=(null==e?void 0:e.UniqueId)&&null!=(null==e?void 0:e.PricingId)&&null!=(null==e?void 0:e.PricingId))return await fA.get(`/UserAppMap?AppId=${null==e?void 0:e.AppId}&UserId=${null==e?void 0:e.UserId}&UniqueId=${null==e?void 0:e.UniqueId}&PricingId=${null==e?void 0:e.PricingId}`)})),VE=Ja("getallplanDtl",(async e=>{if(null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId))return await fA.get(`/AllDetailPlanMod?AppId=${null==e?void 0:e.AppId}&UserId=${null==e?void 0:e.UserId}`)})),zE=Ja("postDowngrade",(async e=>await fA.post("/ModifySubcription",e))),qE=Ja("putFeaturechange",(async e=>await fA.put("/ModifySubcription",e))),WE=Ja("appAccess/getAppCompanyData",(async e=>null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.CompId)&&null!=(null==e?void 0:e.CompId)&&null!=(null==e?void 0:e.BrId)?await fA.get(`/appAccess?AppId=${null==e?void 0:e.AppId}&UserId=${null==e?void 0:e.UserId}&CompId=${null==e?void 0:e.CompId}&BrId=${null==e?void 0:e.BrId} `):null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.CompId)&&null!=(null==e?void 0:e.CompId)?await fA.get(`/appAccess?AppId=${null==e?void 0:e.AppId}&UserId=${null==e?void 0:e.UserId}&CompId=${null==e?void 0:e.CompId}`):null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.Type)?await fA.get(`/appAccess?AppId=${null==e?void 0:e.AppId}&UserId=${null==e?void 0:e.UserId}&Type=A`):null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)?await fA.get(`/appAccess?userId=${null==e?void 0:e.UserId}`):void 0)),YE=Ja("appAccess/getAppCompanyData",(async e=>{if(null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.CompId)&&null!=(null==e?void 0:e.CompId)&&null!=(null==e?void 0:e.BrId))return await fA.get(`/appAccess?AppId=${null==e?void 0:e.AppId}&CompId=${null==e?void 0:e.CompId}&BranchId=${null==e?void 0:e.BrId}`)})),KE=Ya({name:"appAccess",initialState:{appCompanyData:[],appBranchData:[]},extraReducers:e=>{e.addCase(ME.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.appCompanyData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.appCompanyData=[]})),e.addCase(RE.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.appBranchData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.appBranchData=[]}))}}),GE=e=>{var t;return null==(t=e.appAccessPage)?void 0:t.appCompanyData},$E=e=>{var t;return null==(t=e.appAccessPage)?void 0:t.appBranchData},XE=KE.reducer;function JE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M217.9 256L345 129c9.4-9.4 9.4-24.6 0-33.9-9.4-9.4-24.6-9.3-34 0L167 239c-9.1 9.1-9.3 23.7-.7 33.1L310.9 417c4.7 4.7 10.9 7 17 7s12.3-2.3 17-7c9.4-9.4 9.4-24.6 0-33.9L217.9 256z"}}]})(e)}function ZE(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M436.9 364.8c-14.7-14.7-50-36.8-67.4-45.1-20.2-9.7-27.6-9.5-41.9.8-11.9 8.6-19.6 16.6-33.3 13.6-13.7-2.9-40.7-23.4-66.9-49.5-26.2-26.2-46.6-53.2-49.5-66.9-2.9-13.8 5.1-21.4 13.6-33.3 10.3-14.3 10.6-21.7.8-41.9C184 125 162 89.8 147.2 75.1c-14.7-14.7-18-11.5-26.1-8.6 0 0-12 4.8-23.9 12.7-14.7 9.8-22.9 18-28.7 30.3-5.7 12.3-12.3 35.2 21.3 95 27.1 48.3 53.7 84.9 93.2 124.3l.1.1.1.1c39.5 39.5 76 66.1 124.3 93.2 59.8 33.6 82.7 27 95 21.3 12.3-5.7 20.5-13.9 30.3-28.7 7.9-11.9 12.7-23.9 12.7-23.9 2.9-8.1 6.2-11.4-8.6-26.1z"}}]})(e)}function eD(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M278.6 256l68.2-68.2c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-68.2-68.2c-6.2-6.2-16.4-6.2-22.6 0-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3l68.2 68.2-68.2 68.2c-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3 6.2 6.2 16.4 6.2 22.6 0l68.2-68.2 68.2 68.2c6.2 6.2 16.4 6.2 22.6 0 6.2-6.2 6.2-16.4 0-22.6L278.6 256z"}}]})(e)}function tD(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M443.5 420.2L336.7 312.4c20.9-26.2 33.5-59.4 33.5-95.5 0-84.5-68.5-153-153.1-153S64 132.5 64 217s68.5 153 153.1 153c36.6 0 70.1-12.8 96.5-34.2l106.1 107.1c3.2 3.4 7.6 5.1 11.9 5.1 4.1 0 8.2-1.5 11.3-4.5 6.6-6.3 6.8-16.7.6-23.3zm-226.4-83.1c-32.1 0-62.3-12.5-85-35.2-22.7-22.7-35.2-52.9-35.2-84.9 0-32.1 12.5-62.3 35.2-84.9 22.7-22.7 52.9-35.2 85-35.2s62.3 12.5 85 35.2c22.7 22.7 35.2 52.9 35.2 84.9 0 32.1-12.5 62.3-35.2 84.9-22.7 22.7-52.9 35.2-85 35.2z"}}]})(e)}function nD(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 456c-110.3 0-200-89.7-200-200 0-54.8 21.7-105.9 61.2-144 6.4-6.2 16.6-6 22.7.4 6.2 6.4 6 16.6-.4 22.7-33.1 32-51.3 74.9-51.3 120.9 0 92.5 75.3 167.8 167.8 167.8S423.8 348.5 423.8 256c0-87.1-66.7-159-151.8-167.1v62.6c0 8.9-7.2 16.1-16.1 16.1s-16.1-7.2-16.1-16.1V72.1c0-8.9 7.2-16.1 16.1-16.1 110.3 0 200 89.7 200 200S366.3 456 256 456z"}},{tag:"path",attr:{d:"M175.9 161.9l99.5 71.5c13.5 9.7 16.7 28.5 7 42s-28.5 16.7-42 7c-2.8-2-5.2-4.4-7-7l-71.5-99.5c-3.2-4.5-2.2-10.8 2.3-14 3.6-2.6 8.3-2.4 11.7 0z"}}]})(e)}function iD(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 277.333H277.333V416h-42.666V277.333H96v-42.666h138.667V96h42.666v138.667H416v42.666z"}}]})(e)}function aD(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z"}}]})(e)}const rD="/home/",sD=()=>{var e,t,n,i,r,s,l,o,d,c,u,p;const A=um(),h=Qt(),[f]=I.useForm(),[m,v]=a.useState([]),[g,y]=a.useState([]),[x,b]=a.useState(!1),[w,j]=a.useState(!1),[C,S]=a.useState(!1),[N,F]=a.useState(null),[B,P]=a.useState(null),[k,T]=a.useState(null),D=iA("UserId"),L=new Date,U=`${L.getFullYear()}-${String(L.getMonth()+1).padStart(2,"0")}-${String(L.getDate()).padStart(2,"0")}T${String(L.getHours()).padStart(2,"0")}:${String(L.getMinutes()).padStart(2,"0")}:${String(L.getSeconds()).padStart(2,"0")}`,_=Tf(GE),O=Tf($E),[M,H]=a.useState("list"),z=iA("UserType")?iA("UserType"):null,[q,W]=a.useState(!1),[Y,K]=a.useState(null),[G,$]=a.useState("Company"),[X,J]=a.useState(),[Z,ee]=a.useState(),[te,ne]=a.useState(),[ie,ae]=a.useState(),[re,se]=a.useState([]),[le,oe]=a.useState([]),[de,ce]=a.useState([]),[ue,pe]=a.useState([]),[Ae,he]=a.useState([]),[fe,me]=a.useState(),[ve,ge]=a.useState(1),ye=a.useCallback(((e,t)=>{b(!1),j(!1),(null==e?void 0:e.AppName)&&!1===t&&(nA("AppId",N.AppId),nA("AppName",N.AppName),h(`${N.AppUrl}`),window.location.reload()),f.resetFields()}),[N]);a.useEffect((()=>{1===(null==_?void 0:_.length)&&("Super Admin User"!=z||"Super Admin"!=z)&&(null==N?void 0:N.RemainingDays)>0&&Be(_[0].CompId)}),[_]),a.useEffect((()=>{1===(null==O?void 0:O.length)&&Pe(O[0].BrId)}),[O]),a.useEffect((()=>{!async function(){var e,t,n,i;let a;if("Employee"===z||"Super Admin User"===z?a=await A(Lg({UserId:D})).unwrap():"Super Admin"===z?a=await A(Fb()).unwrap():(a=await A(Bg({UserId:D})).unwrap(),await A(Dg({UserId:D})).unwrap()),null==(e=null==a?void 0:a.data)?void 0:e.statusCode)if("Employee"===z||"Super Admin User"===z){const e=(null==(n=null==(t=null==a?void 0:a.data)?void 0:t.data)?void 0:n.filter((e=>"A"===(null==e?void 0:e.ActiveStatus))))||[];v(e),y(e)}else{const e=(null==(i=null==a?void 0:a.data)?void 0:i.data)||[];v(e),y(e)}}()}),[]);let xe=null==(e=null==Y?void 0:Y[0])?void 0:e.CompanyCount,be=null==(t=null==Y?void 0:Y[0])?void 0:t.BranchCount,we=null==(n=null==Y?void 0:Y[0])?void 0:n.UserCount;var je=null==(s=null==(r=null==(i=null==Y?void 0:Y[0])?void 0:i.FeatureDetails)?void 0:r.find((e=>"Company"===e.FeatName)))?void 0:s.FeatConstraint,Ce=null==(d=null==(o=null==(l=null==Y?void 0:Y[0])?void 0:l.FeatureDetails)?void 0:o.find((e=>"Branch"===e.FeatName)))?void 0:d.FeatConstraint,Ne=null==(p=null==(u=null==(c=null==Y?void 0:Y[0])?void 0:c.FeatureDetails)?void 0:u.find((e=>"User"===e.FeatName)))?void 0:p.FeatConstraint;const Ie=(e,t,n)=>{const i=null==e?void 0:e.some((e=>{var t;return null==(t=e.BranchDetails)?void 0:t.some((e=>"A"===e.ActiveStatus))}));0===(null==e?void 0:e.length)&&"Admin"===z&&t>=U?(b(!1),P("warning"),T("Please create an company to further process"),setTimeout((()=>{h(`${rD}setting/company-master/new`)}),500)):i?b(!n):(b(!1),P("warning"),T("Please create or Activate a branch to further process"),setTimeout((()=>{h(`${rD}setting/branch-master`)}),500))},Fe=a.useCallback((async e=>{var t,n,i,a,r,s,l,o,d,c,u,p,f,m,v,g,y,x,w,j,C,S;let N=await A(wy({AppId:null==e?void 0:e.AppId,UserId:D})).unwrap(),I=null==(t=null==N?void 0:N.data)?void 0:t.data;if((null==I?void 0:I.some((e=>{var t;return null==(t=e.BranchDetails)?void 0:t.some((e=>"A"===e.ActiveStatus))})))||"Super Admin"==z||"Super Admin User"==z){me(null==e?void 0:e.UniqueId);let t=[],b={AppId:null==e?void 0:e.AppId,UserId:"Employee"===z?null==e?void 0:e.AdminId:null==e?void 0:e.UserId,UniqueId:null==e?void 0:e.UniqueId,PricingId:null==e?void 0:e.PricingId},N=await A(HE(b)).unwrap();null==(n=null==N?void 0:N.data)||n.statusCode,K(null==(i=null==N?void 0:N.data)?void 0:i.data),t=null==(a=null==N?void 0:N.data)?void 0:a.data;let I={AppId:null==e?void 0:e.AppId,UserId:"Employee"===z?null==e?void 0:e.AdminId:D},P=await A(VE(I)).unwrap(),T=0==(null==(r=null==P?void 0:P.data)?void 0:r.statusCode);if(ae(T),1==(null==(s=null==P?void 0:P.data)?void 0:s.statusCode)){const e=null==(l=null==P?void 0:P.data)?void 0:l.data;let t=[],n=[],i=[];null==(o=null==e?void 0:e.CompanyDetails)||o.map(((e,n)=>{t.push({...e,key:n})})),null==(d=null==e?void 0:e.BranchDetails)||d.map(((e,t)=>{n.push({...e,key:t})})),null==(c=null==e?void 0:e.UserDetails)||c.map(((e,t)=>{i.push({...e,key:t})})),ee(n),J(t),ne(i)}let L=null==(u=null==t?void 0:t[0])?void 0:u.CompanyCount,U=null==(p=null==t?void 0:t[0])?void 0:p.BranchCount,_=null==(f=null==t?void 0:t[0])?void 0:f.UserCount;var B=null==(g=null==(v=null==(m=null==t?void 0:t[0])?void 0:m.FeatureDetails)?void 0:v.find((e=>"Company"===e.FeatName)))?void 0:g.FeatConstraint,k=null==(w=null==(x=null==(y=null==t?void 0:t[0])?void 0:y.FeatureDetails)?void 0:x.find((e=>"Branch"===e.FeatName)))?void 0:w.FeatConstraint,E=null==(S=null==(C=null==(j=null==t?void 0:t[0])?void 0:j.FeatureDetails)?void 0:C.find((e=>"User"===e.FeatName)))?void 0:S.FeatConstraint;let O=B<L||k<U||E<_;(async(e,t,n,i)=>{var a,r,s,l,o,d,c,u,p;F(n);let f=await A(_g({AppId:e,UserId:D})).unwrap();if("1"==(null==(a=f.data)?void 0:a.statusCode))nA("AppId",e),nA("AppName",t),nA("CompId",null==(l=null==(s=null==(r=null==f?void 0:f.data)?void 0:r.data)?void 0:s[0])?void 0:l.CompId),nA("BranchId",null==(c=null==(d=null==(o=null==f?void 0:f.data)?void 0:o.data)?void 0:d[0])?void 0:c.BranchId),("Super Admin"!=z||"Super Admin User"!=z)&&n.ValidityEnd,h(`${n.AppUrl}`),window.location.reload();else{if("Admin"===z||"Employee"===z||"Super Admin User"===z){const t=await A(ME({AppId:e,UserId:D})).unwrap();await Ie(null==(u=null==t?void 0:t.data)?void 0:u.data,n.ValidityEnd,i)}else{const t=await A(ME({AppId:e})).unwrap();await Ie(null==(p=null==t?void 0:t.data)?void 0:p.data,n.ValidityEnd,i)}(null==n?void 0:n.RemainingDays)<0&&"Super Admin User"!==z&&"Super Admin"!==z&&(h(`${rD}${t}`,{state:{AppName:t,AdminId:(null==n?void 0:n.AdminId)?null==n?void 0:n.AdminId:D}}),nA("AppId",e),nA("AppName",t))}})(e.AppId,e.AppName,e,O)}else b(!1),P("warning"),T("Please create or Activate a branch to further process"),setTimeout((()=>{h(`${rD}setting/branch-master`)}),500)}),[]),Be=async e=>{"Employee"===z?(A(RE({AppId:N.AppId,UserId:D,CompId:e})).unwrap(),j(!0)):(nA("CompId",e),ye(N,q))},Pe=async e=>{var t;if(!1===C)N&&N.AppName&&(nA("CompId",N.CompId),nA("AppId",N.AppId),nA("AppName",N.AppName),nA("BranchId",e),h(`${N.AppUrl}`),window.location.reload());else if(N&&N.AppName){nA("CompId",N.CompId),nA("BranchId",e),nA("AppId",N.AppId),nA("AppName",N.AppName);let n=await A(Ug({CompId:N.CompId,BranchId:e,UserId:D,DefaultBranch:"Y"})).unwrap();1==(null==(t=null==n?void 0:n.data)?void 0:t.statusCode)&&(h(`${N.AppUrl}`),window.location.reload())}},ke=m.length,Te=m.filter((e=>(null==e?void 0:e.RemainingDays)>0)).length,Ee=m.filter((e=>(null==e?void 0:e.RemainingDays)<=0)).length;new Set(m.map((e=>e.AppName)));const De=null==m?void 0:m.map((e=>{var t,n,i,a,r,s,l=Se(e.ValidityStart);Se(e.ValidityEnd).diff(l,"days");return"Admin"!=z&&"Employee"!=z||((null==e?void 0:e.RemainingDays)<=5&&(null==e?void 0:e.RemainingDays)>0&&(null==e||e.RemainingDays,e.PricingName,e.PricingName,null==e||e.PricingName,e.PricingName,e.PricingName,tA(e.ValidityStart),tA(e.ValidityEnd),null==e||e.RemainingDays),(null==e?void 0:e.RemainingDays)<0&&(e.PricingName,e.PricingName,null==e||e.PricingName,e.PricingName,e.PricingName,tA(e.ValidityStart),tA(e.ValidityEnd)),0==(null==e?void 0:e.RemainingDays)&&(e.PricingName,e.PricingName,null==e||e.PricingName,e.PricingName,e.PricingName,tA(e.ValidityStart),tA(e.ValidityEnd)),(null==e?void 0:e.RemainingDays)>5&&(e.PricingName,e.PricingName,null==e||e.PricingName,e.PricingName,e.PricingName,tA(e.ValidityStart),tA(e.ValidityEnd),null==e||e.RemainingDays)),Ye.jsxs(Ye.Fragment,{children:["grid"===M&&Ye.jsxs("div",{className:`marketCard ${M}`,onClick:()=>Fe(e),children:[Ye.jsxs("div",{className:"marketCard-header",children:[Ye.jsx("img",{src:(null==(n=null==(t=null==e?void 0:e.ImageLink)?void 0:t[0])?void 0:n.ImageLink)||(null==e?void 0:e.AppLogo)||hk,alt:e.AppName,className:"bgImage"}),Ye.jsx("img",{src:(null==(a=null==(i=null==e?void 0:e.ImageLink)?void 0:i[0])?void 0:a.ImageLink)||(null==e?void 0:e.AppLogo)||hk,alt:e.AppName,className:"overlayImage"})]}),Ye.jsxs("div",{className:"marketCard-body",children:[Ye.jsxs("div",{className:"topline",children:[Ye.jsx("div",{className:"title",children:null==e?void 0:e.AppName}),Ye.jsxs("div",{className:"corner",children:[(null==e?void 0:e.RemainingDays)>5&&Ye.jsx("span",{className:"pill active",children:"Active"}),(null==e?void 0:e.RemainingDays)<=5&&(null==e?void 0:e.RemainingDays)>0&&Ye.jsx("span",{className:"pill expiring",children:"Expiring"}),(null==e?void 0:e.RemainingDays)<=0&&Ye.jsx("span",{className:"pill expired",children:"Expired"})]})]}),Ye.jsx("div",{className:"subtitle",children:`All-in-one ${null==e?void 0:e.AppName} solution to run your business`}),Ye.jsxs("div",{className:"metrics",children:[Ye.jsxs("div",{className:"card1",children:[Ye.jsx("div",{className:"k",children:"Days Remaining"}),Ye.jsx("div",{className:"v",style:{color:(null==e?void 0:e.RemainingDays)>0?"green":"red"},children:(null==e?void 0:e.RemainingDays)>0?`${null==e?void 0:e.RemainingDays}`:"0"})]}),Ye.jsxs("div",{className:"meta",children:[Ye.jsxs("div",{className:"priceRow",children:[Ye.jsxs("div",{className:"price",children:["₹",(null==e?void 0:e.NetPrice)||(null==e?void 0:e.Price)]}),Ye.jsxs("div",{className:"item1",children:[tA(e.ValidityStart)," - ",tA(e.ValidityEnd)]})]}),Ye.jsxs("div",{className:"item",children:["Plan",Ye.jsxs("div",{children:[" ",null==e?void 0:e.PricingName]})]})]})]}),Ye.jsxs("button",{className:"cta",children:["Start Billing ",Ye.jsx(mE,{})]})]})]},e.UniqueId),"list"===M&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"marketCardListMain",children:Ye.jsxs("div",{className:"cardlistmarket",onClick:()=>Fe(e),children:[Ye.jsx("div",{className:"listAppName",children:null==e?void 0:e.AppName}),Ye.jsx("div",{className:"listAppImg",children:Ye.jsx("img",{src:(null==(s=null==(r=null==e?void 0:e.ImageLink)?void 0:r[0])?void 0:s.ImageLink)||(null==e?void 0:e.AppLogo)||hk,alt:""})}),Ye.jsxs("div",{className:"listAppPrice",children:["₹",(null==e?void 0:e.NetPrice)||(null==e?void 0:e.Price)," ",Ye.jsxs("span",{children:[" / ",null==e?void 0:e.PricingName]})]}),Ye.jsx("div",{className:"listAppStatus",children:(null==e?void 0:e.RemainingDays)>5?"Active":(null==e?void 0:e.RemainingDays)<=5&&(null==e?void 0:e.RemainingDays)>0?"Expiring":"Expired"}),Ye.jsxs("div",{className:"cardAppDetails",children:[Ye.jsxs("div",{children:[Ye.jsx("div",{className:"listAppName1",children:null==e?void 0:e.AppName}),Ye.jsxs("div",{className:"listAppPrice1",children:["₹",(null==e?void 0:e.NetPrice)||(null==e?void 0:e.Price)," ",Ye.jsx("span",{children:" "})]}),Ye.jsxs("div",{className:"listAppPlan",children:["Plan : ",null==e?void 0:e.PricingName]})]}),Ye.jsx("button",{className:"listAppBtn",onClick:()=>Fe(e),children:"Start Billing"})]})]})})})]})})),Le=a.useCallback((()=>{T(null),P(null)}),[]);a.useEffect((()=>{(je<xe||Ce<be||Ne<we)&&W(!0)}),[Y]),a.useEffect((()=>{let e=null==Z?void 0:Z.filter((e=>null==ue?void 0:ue.includes(e.CompId))),t=null==e?void 0:e.map((e=>e.key));oe(t);let n=null==te?void 0:te.filter((e=>null==ue?void 0:ue.includes(e.CompId))),i=null==n?void 0:n.map((e=>e.key));ce(i)}),[ue]),a.useEffect((()=>{let e=null==te?void 0:te.filter((e=>null==Ae?void 0:Ae.includes(e.BranchId))),t=null==e?void 0:e.map((e=>e.key));ce(t)}),[Ae]);var Ue=null==X?void 0:X.length,_e=null==Z?void 0:Z.length,Oe=(null==te?void 0:te.length)+1,Me=Ue-je,Re=_e-Ce,Qe=Oe-Ne;const He=[{title:" ",width:"20px",align:"center",key:"CompName",render:(e,t,n)=>Ye.jsx(V,{onChange:e=>{((e,t,n)=>{if(t.target.checked){se([...re,n]);let t=e.CompId;pe([...ue,t])}else{let t=null==re?void 0:re.filter((e=>e!=n));se(t);let i=null==ue?void 0:ue.filter((t=>t!=e.CompId));pe(i)}})(t,e,n)},checked:re.includes(n),disabled:re.length==Me&&!re.includes(n)})},{title:"SI.NO",key:"sno",align:"center",width:"60px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(ve-1)+n+1})},{title:"Company Name",dataIndex:"CompName",key:"CompName",editable:!0},{title:"Active Status",dataIndex:"ActiveStatus",key:"ActiveStatus",editable:!0}],Ve=[{title:" ",width:"20px",align:"center",key:"CompName",render:(e,t,n)=>Ye.jsx(V,{onChange:e=>{((e,t,n)=>{if(t.target.checked){oe((e=>(e||(e=[]),[...e,n])));let t=e.BrId;he((e=>(e||(e=[]),[...e,t])))}else oe((e=>(e||(e=[]),e.filter((e=>e!==n))))),he((t=>(t||(t=[]),t.filter((t=>t!==e.BrId)))))})(t,e,n)},checked:null==le?void 0:le.includes(n),disabled:(null==le?void 0:le.length)==Re&&!(null==le?void 0:le.includes(n))||(null==ue?void 0:ue.includes(null==t?void 0:t.CompId))})},{title:"SI.NO",key:"sno",align:"center",width:"60px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(ve-1)+n+1})},{title:"Company Name",dataIndex:"CompName",key:"CompName",editable:!0},{title:"Branch Name",dataIndex:"BrName",key:"BrName",editable:!0},{title:"Branch Address",dataIndex:"Address1",key:"Address1",editable:!0},{title:"Active Status",dataIndex:"ActiveStatus",key:"ActiveStatus",editable:!0}],ze=[{title:" ",width:"20px",align:"center",key:"CompName",render:(e,t,n)=>Ye.jsx(V,{onChange:e=>{((e,t,n)=>{t&&t.target&&void 0!==t.target.checked&&(t.target.checked?0===(null==de?void 0:de.length)?ce([n]):ce((e=>Array.isArray(e)?[...e,n]:[n])):ce((e=>Array.isArray(e)?e.filter((e=>e!==n)):[])))})(0,e,n)},checked:null==de?void 0:de.includes(n),disabled:(null==de?void 0:de.length)===Qe&&!(null==de?void 0:de.includes(n))||(null==Ae?void 0:Ae.includes(null==t?void 0:t.BranchId))||(null==ue?void 0:ue.includes(null==t?void 0:t.CompId))})},{title:"SI.NO",key:"sno",align:"center",width:"60px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(ve-1)+n+1})},{title:"Company Name",dataIndex:"CompName",key:"CompName",editable:!0},{title:"Branch Name",dataIndex:"BrName",key:"BrName",editable:!0},{title:"Branch Address",dataIndex:"Address1",key:"Address1",editable:!0},{title:"User Name / User Mobile.No",dataIndex:"UserName",key:"UserName",editable:!0,render:(e,t)=>Ye.jsx("span",{children:t.UserName?null==t?void 0:t.UserName:null==t?void 0:t.MobileNo})},{title:"Active Status",dataIndex:"ActiveStatus",key:"ActiveStatus",editable:!0}],qe=[{value:"Company",label:"Company"},{value:"Branch",label:"Branch"},{value:"User",label:"User"}].filter((e=>"Company"===e.value?0==!Me&&Ue>xe-je:"Branch"===e.value?(0!==Re||Re<0)&&Re>0:"User"!==e.value||0==!Qe&&Oe>Ne-we&&Qe>0));return Ye.jsxs("div",{className:"appListComponent",children:[Ye.jsxs("div",{className:"stats-grid1",children:[Ye.jsx("div",{className:"stat-card total-apps",children:Ye.jsx("div",{className:"stat-content",children:Ye.jsxs("div",{className:"stat-info",children:[Ye.jsxs("div",{className:"numberIcon",children:[Ye.jsx("div",{className:"stat-number",children:ke}),Ye.jsx("div",{className:"stat-icon",children:Ye.jsx(iD,{})})]}),Ye.jsx("div",{className:"stat-label",children:"Total Applications"}),Ye.jsx("div",{className:"stat-subtitle",children:"All registered apps"})]})})}),Ye.jsx("div",{className:"stat-card active-apps",children:Ye.jsx("div",{className:"stat-content",children:Ye.jsxs("div",{className:"stat-info",children:[Ye.jsxs("div",{className:"numberIcon",children:[Ye.jsx("div",{className:"stat-number",children:Te}),Ye.jsx("div",{className:"stat-icon",children:Ye.jsx(vi,{})})]}),Ye.jsx("div",{className:"stat-label",children:"Active Applications"}),Ye.jsx("div",{className:"stat-subtitle",children:"Currently operational"})]})})}),Ee.length>0&&Ye.jsx("div",{className:"stat-card expired-apps",children:Ye.jsx("div",{className:"stat-content",children:Ye.jsxs("div",{className:"stat-info",children:[Ye.jsxs("div",{className:"numberIcon",children:[Ye.jsx("div",{className:"stat-number",children:Ee}),Ye.jsx("div",{className:"stat-icon",children:Ye.jsx(ry,{})})]}),Ye.jsx("div",{className:"stat-label",children:"Expired Applications"}),Ye.jsx("div",{className:"stat-subtitle",children:"Temporarily suspended"})]})})})]}),(null==m?void 0:m.length)>1&&Ye.jsx("div",{className:"apps-section-header",style:{margin:"0"},children:Ye.jsxs("div",{className:"header-actions",style:{width:"100%",justifyContent:"space-between"},children:[Ye.jsxs("div",{className:"searchBar",children:[Ye.jsx(tD,{size:20,color:"#919191"}),Ye.jsx("input",{className:"searchInput",placeholder:" Search your purchased apps",onChange:e=>{var t;const n=null==(t=e.target.value)?void 0:t.toLowerCase();if(!n)return void v(g);const i=g.filter((e=>`${e.AppName} ${e.PricingName}`.toLowerCase().includes(n)));v(i)}})]}),Ye.jsxs("button",{className:"filterBtn",children:[" ",Ye.jsx(Nn,{size:16})," Advanced Filters"]}),Ye.jsxs("div",{className:"view-controls",children:[Ye.jsx("button",{className:"view-btn "+("list"===M?"active":""),onClick:()=>H("list"),children:"☰"}),Ye.jsx("button",{className:"view-btn "+("grid"===M?"active":""),onClick:()=>H("grid"),children:"⊞"})]})]})}),Ye.jsxs("div",{className:"appListComponentSub",children:[Ye.jsx(Qy,{messageType:B,messageData:k,onComplete:Le}),m.length>0&&De,Ye.jsx(SP,{open:x,title:"Company Name",footer:!1,children:Ye.jsx(I,{form:f,children:Ye.jsxs(R,{gutter:[24,24],children:[w?Ye.jsx(Q,{className:"appCheckbox",span:24,children:Ye.jsx(V,{className:"appCheckboxText",onChange:e=>{S(e.target.checked)},children:"Default Branch"})}):null,Ye.jsx(Q,{className:"gutter-row",span:12,children:Ye.jsx(I.Item,{name:"CompanyName",rules:[{required:!0}],children:Ye.jsx(_y,{options:null==_?void 0:_.map((e=>({value:e.CompId,label:e.CompName}))),defaultValue:"Select",label:"Company Name",className:"field-DropDown appdropdown",isOnchanges:!0,onChangeFunction:Be})})}),w?Ye.jsx(Q,{className:"gutter-row",span:12,children:Ye.jsx(I.Item,{name:"BranchName",rules:[{required:!0}],children:Ye.jsx(_y,{options:null==O?void 0:O.map((e=>({value:e.BrId,label:e.BrName}))),defaultValue:"Select",label:"Branch Name",className:"field-DropDown appdropdown",isOnchanges:!0,onChangeFunction:Pe})})}):null]})}),handleCancel:()=>{f.resetFields(),b(!1),j(!1)}}),Ye.jsx(SP,{open:q,title:Ye.jsx("h3",{children:"Deactivation Of Features For Your Current plan"}),footer:!0,children:Ye.jsxs("div",{style:{display:"flex",rowGap:"1rem",flexDirection:"column"},children:[Ye.jsx("hr",{}),Ye.jsxs("div",{children:[Ue>xe-je&&0==!Me&&Ye.jsxs("div",{children:[Ye.jsxs("h4",{children:["Number of Company's Of Your Previous Plan :",Ue," "]}),Ye.jsxs("p",{children:["Your Eligible Company's For This Current Plan is :"," ",je," & Deactivate : ",Me," ","Company's"]})]}),_e>be-Ce&&0!=Re&&Ce!==be&&Re>0&&Ye.jsxs("div",{children:[Ye.jsxs("h4",{children:["Number of Branches Of Your Previous Plan:"," ",_e]}),Ye.jsxs("p",{children:["Your Eligible Branches For This Current Plan is:"," ",Ce]}),Re>0&&Ye.jsxs("p",{children:["Deactivate: ",Re," Branch's"]})]}),Ne<we&&Oe>Ne-we&&Qe>0&&Ye.jsxs("div",{children:[Ye.jsxs("h4",{children:["Number of User's Of Your Previous Plan :",Oe," & Incuding Admin : 1"]}),Ye.jsxs("p",{children:["Your Eligible User's For This Current Plan is :"," ",Ne," "]}),Qe>0&&Ye.jsxs("p",{children:["Deactivate: ",Qe," User's"]})]}),Ye.jsx("div",{children:Ye.jsx(fk,{content:qe,defaultSelect:G,onSelectFuntion:e=>{(e=>{$(e)})(e)}})}),Ye.jsxs("div",{children:["Company"===G&&Ue-je!==0&&Ue>0&&Ye.jsx(E,{columns:He,dataSource:X}),"Branch"===G&&_e-Ce!==0&&Ce!==be&&Re>0&&Ye.jsx(E,{columns:Ve,dataSource:Z}),"User"===G&&Qe>0&&Ye.jsx(E,{columns:ze,dataSource:te})]})]}),Ye.jsx("hr",{})]}),handleCancel:()=>{W(!1)},handleSubmit:()=>(async()=>{var e;let t=[],n=[],i=[];if(null==de||de.map((e=>{var t,n,a,r,s,l,o,d;return i.push({UserId:null==(n=null==(t=null==te?void 0:te.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:n.UserId,CompId:null==(r=null==(a=null==te?void 0:te.filter(((t,n)=>n===e)))?void 0:a[0])?void 0:r.CompId,BranchId:null==(l=null==(s=null==te?void 0:te.filter(((t,n)=>n===e)))?void 0:s[0])?void 0:l.BranchId,AppId:null==(d=null==(o=null==te?void 0:te.filter(((t,n)=>n===e)))?void 0:o[0])?void 0:d.AppId})})),null==le||le.map((e=>{var t,i,a,r;return n.push({BranchId:null==(i=null==(t=null==Z?void 0:Z.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:i.BrId,CompId:null==(r=null==(a=null==Z?void 0:Z.filter(((t,n)=>n===e)))?void 0:a[0])?void 0:r.CompId})})),null==re||re.map((e=>{var n,i;return t.push({CompId:null==(i=null==(n=null==X?void 0:X.filter(((t,n)=>n===e)))?void 0:n[0])?void 0:i.CompId})})),Me===(null==re?void 0:re.length)&&Re>0&&Re===(null==le?void 0:le.length)&&Qe<=(null==de?void 0:de.length)||Re===(null==le?void 0:le.length)&&Qe<=(null==de?void 0:de.length)||Me===(null==re?void 0:re.length)&&Qe<=(null==de?void 0:de.length)||Qe<=(null==de?void 0:de.length)||ie){let a={UniqueId:fe,PostData:[{User:null==i?void 0:i.map((e=>({UserId:e.UserId,CompId:e.CompId,BranchId:e.BranchId,AppId:e.AppId}))),Company:null==t?void 0:t.map((e=>({CompId:e.CompId}))),Branch:null==n?void 0:n.map((e=>({BranchId:e.BranchId,CompId:e.CompId})))}]},r=await A(zE(a)).unwrap();null==(e=null==r?void 0:r.data)||e.statusCode;{W(!1);let e={UniqueId:fe};await A(qE(e)).unwrap()}}else P("error"),T("Deactive features")})(),buttonText:"SAVE"})]})]})},lD=()=>Ye.jsxs("div",{style:{width:"100%"},children:[Ye.jsx("div",{className:"homeAppHeadder",children:Ye.jsxs("div",{children:[Ye.jsx("div",{style:{fontSize:"24px",fontWeight:"600"},children:"My Apps"}),Ye.jsx("p",{children:"Quickly access and manage all your active business applications from one screen"})]})}),Ye.jsx("div",{className:"appList",children:Ye.jsx(sD,{})})]}),oD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJ3SURBVHgBrVVJTFNRFD0tEgbLWDYsCJRKTZEFg8OCFaBxK1LYq5EFRkIMJlCk1YUUMZjQJo4ry8aURnCjJoK7Yl04QFkUa40tiR2gTaudjVz//7G1P4FfSDjJTd579+TkDefeJ0qkfhMOEOK9kDyeH9BoxjFrNB6M4JWBAWxtbmF0ZATLFsv+BP1+P3pVKoRCIW7+MxyGz+tFKpVCVZUUKyufM1yzeQ6TOp2w4PXhYchkdSgvL8eTx4+gaGjAYYkEJSUSnDh5Cvemp3H2zGm4XC60tR2HQT+DpcXF/wLso6Tj+cILqq2tpWg8QbrJO9x4+Z2VsjlsblQ9xuU8Xh89Nc5SS2srxZMpLs8T7FGp6P6Dh7Tu+Ep5eXlk/+LgiWXH5f5+unDxEsUSSZLL5fRm6S1fkE0wx6TVtTWa0RvoXHf3rmJsOJzfqLS0lNvZ1cFB0mi13HrmDgOBAPcQCsVRfPr4Ae3t7RBCTU0N8vPz4XQ6UV1dDa/Hy60fShOkUilevnrNjf9sb6OgoBC5UFhUhFgshh5VL8KMG3iCYrEYnV1dGbJIlFMPaQrzQJm1HY3NHp21Si6UlZXh17+dCQrabDYolUrkgrKxEasMV1Bw3W5HMpFAc3MLcqGjoxML8/PCgnenptDb18fcYe5LZHlsKVqy6zvbW89MJmLsQN/dG4IezA69wUDHmprI59/k5qJ0P4xGozgir0c8FkdxcRH2g2AwiFG1GtqbtyDKbrCsuSORCI98bWgIUqbLjN0Yx4bbjZ7z3TDNmVEnk/F4lZWVTAMp4R955xJzUj1TqxUVFSSRSOj2xIQgX7TXL+C91YoGhYLbiRD+Auje5m7p1IqqAAAAAElFTkSuQmCC",dD=Ja("logs/getlogData",(async e=>null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.Type)&&null!=(null==e?void 0:e.Type)?await fA.get(`/NotificationLogs?UserId=${null==e?void 0:e.UserId}&Type=${null==e?void 0:e.Type}`):null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)?await fA.get(`/NotificationLogs?UserId=${null==e?void 0:e.UserId}`):await fA.get("/NotificationLogs"))),cD=Ja("logs/getlogTypeData",(async e=>null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.Type)&&null!=(null==e?void 0:e.Type)?await fA.get(`/NotificationLogs?UserId=${null==e?void 0:e.UserId}&Type=${null==e?void 0:e.Type}`):null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)?await fA.get(`/NotificationLogs?UserId=${null==e?void 0:e.UserId}`):await fA.get("/NotificationLogs"))),uD=Ya({name:"logs",initialState:{logData:[],logTypeData:[]},extraReducers:e=>{e.addCase(dD.fulfilled,((e,t)=>{var n,i;t.payload.status?e.logData=null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.data:e.logData=[]})),e.addCase(cD.fulfilled,((e,t)=>{var n,i;t.payload.status?e.logTypeData=null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.data:e.logTypeData=[]}))}}),pD=e=>{var t;return null==(t=e.logs)?void 0:t.logData},AD=e=>{var t;return null==(t=e.logs)?void 0:t.logTypeData},hD=uD.reducer,fD=({showViewMore:e})=>{var t;const n=um(),i=iA("UserType")?iA("UserType"):null,r=iA("UserId")?iA("UserId"):null,s=Tf(pD);return e(s),a.useEffect((()=>{"Admin"===i||"Admin User"===i?n(dD({UserId:r})).unwrap():"Employee"===i?n(dD({UserId:r,Type:"E"})).unwrap():"Super Admin"!==i&&"Super Admin User"!==i||n(dD()).unwrap()}),[i,r]),Ye.jsx("div",{className:"homeNotification",children:Ye.jsx("ul",{children:null==(t=null==s?void 0:s.slice(0,5))?void 0:t.map(((e,t)=>Ye.jsx("li",{style:{marginBottom:"8px"},children:e.Message},t)))})})},mD=()=>{const e=Qt(),[t,n]=a.useState();return Ye.jsxs("div",{children:[Ye.jsxs("div",{className:"homeAppHeadder",children:[Ye.jsx("div",{className:"homePageAppIcon",children:Ye.jsx("img",{src:oD})}),Ye.jsx("div",{children:Ye.jsx("h2",{children:"Notifications"})})]}),Ye.jsx("div",{children:Ye.jsx(fD,{showViewMore:e=>{n(e)}})}),(null==t?void 0:t.length)>=5&&Ye.jsx("div",{children:Ye.jsx("p",{className:"viewdiv",onClick:()=>{e("/home/landing-page/user-account/",{state:{Notiffy:{logs:!0}}})},children:"view more"})})]})},vD=Ja("userAccount/getUserData",(async({userId:e})=>{if(null!=e&&null!=e)return fA.get(`/user?UserId=${e}`)})),gD=Ja("userAccount/updateUserData",(async e=>fA.put("/user/updateUserProfile",e))),yD=Ja("password/putPriceType",(async e=>await fA.put("/user/setPassword",e))),xD=Ja("password/putPriceType",(async e=>await fA.put("/user/setPin",e))),bD=Ja("password/getPassword",(async e=>{if(null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.ActiveStatus)&&null!=(null==e?void 0:e.ActiveStatus))return await fA.get(`/user?UserId=${null==e?void 0:e.UserId}&ActiveStatus=${null==e?void 0:e.ActiveStatus}`)})),wD=Ja("referral/postReferralSetup",(async e=>await fA.post("/ReferralSetup",e))),jD={userData:[]},CD=Ya({name:"userAccount",initialState:jD,reducers:{changeUserData:(e,t)=>{const{userData:n}=null==t?void 0:t.payload;e.userData={...e.userData,...n}}},extraReducers:e=>{e.addCase(vD.fulfilled,((e,t)=>{var n,i,a,r;(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)&&(e.userData=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data[0])}))}}),SD=e=>e.userAccount?e.userAccount.userData:jD.userData,{changeUserData:ND}=CD.actions,ID=CD.reducer,FD=({formType:e,pinUpdate:t})=>{const n=a.useRef(null),i=um(),[r,s]=a.useState(!0),[l,o]=a.useState(null),[d,c]=a.useState(null),u=a.useCallback((()=>{c(null),o(null)}),[]);return Ye.jsx("div",{className:"",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:l,messageData:d,onComplete:u}),Ye.jsx("div",{className:"formedit"}),r?null:Ye.jsx("div",{className:"ChangePW_Div",children:Ye.jsxs(R,{children:[Ye.jsx(Q,{flex:"1 1 200px",children:Ye.jsx("p",{className:"editBtn_text",children:" Set / Change PIN "})}),Ye.jsx(Q,{flex:"1 1 100px",children:Ye.jsxs("button",{className:"edit_btn",onClick:()=>(async()=>{s(!0)})(),children:["Edit ",Ye.jsx(D,{})," "]})})]})}),r?Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:n,className:"formDivAnt",onFinish:async e=>{var n,a;if(iA("UserId")){let r=e,s={};r.Pin=e.NewPin,r.UpdatedBy=iA("UserId"),r.UserId=iA("UserId"),s=await i(xD(r)).unwrap(),1==(null==(n=null==s?void 0:s.data)?void 0:n.statusCode)?t(!1):(o("error"),c(null==(a=null==s?void 0:s.data)?void 0:a.response))}else o("error"),c("Not valid user")},children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsx("div",{className:"inputForm",children:Ye.jsx(I.Item,{name:"NewPin",rules:[{required:!0,message:"Please Enter your New Pin!"},{validator:async(e,t)=>(await lA(t),t&&t.length>4?Promise.reject("Pin should not exceed 4 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"NewPin",name:"NewPin",label:"New Pin",fieldState:!0,fieldApi:!0,maxlength:"4",id:"error2",autocomplete:"off",isOnChange:"edit"==e})})})}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})})]})})}):null]})})})},BD=Ja("application/getApplicationData",(async({userId:e})=>{if(null!=e&&null!=e)return Ne.get(`https://www.pozo.dev/pozo-common-api/application?UserId=${e}&Type=H`)})),PD=Ja("application/getApplicationData",(async({userId:e})=>{if(null!=e&&null!=e)return fA.get(`/user?UserId=${e}&ActiveStatus=A`)})),kD=Ya({name:"applications",initialState:{allApplications:[]}}).reducer,TD="/assets/payprelogo1-a005f871.svg",ED="/home/";function DD(e){return Cn({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(e)}function LD(e){return Cn({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}}]})(e)}function UD(e){return Cn({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(e)}function _D(e){return Cn({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}}]})(e)}function OD(e){return Cn({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}}]})(e)}function MD(e){return Cn({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(e)}function RD(e){return Cn({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"}}]})(e)}function QD(e){return Cn({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"}}]})(e)}function HD(e){return Cn({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"}}]})(e)}function VD(e){return Cn({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"}}]})(e)}function zD(e){return Cn({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}}]})(e)}function qD(e){return Cn({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 10V3L4 14h7v7l9-11h-7z"}}]})(e)}function WD(e){return Cn({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 19v-8.93a2 2 0 01.89-1.664l7-4.666a2 2 0 012.22 0l7 4.666A2 2 0 0121 10.07V19M3 19a2 2 0 002 2h14a2 2 0 002-2M3 19l6.75-4.5M21 19l-6.75-4.5M3 10l6.75 4.5M21 10l-6.75 4.5m0 0l-1.14.76a2 2 0 01-2.22 0l-1.14-.76"}}]})(e)}function YD(e){return Cn({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}}]})(e)}function KD(e){return Cn({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"}}]})(e)}function GD(e){return Cn({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"}}]})(e)}function $D(e){return Cn({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 10h16M4 14h16M4 18h16"}}]})(e)}function XD(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12h14"}},{tag:"path",attr:{d:"m12 5 7 7-7 7"}}]})(e)}function JD(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 6 9 17 4 12"}}]})(e)}function ZD(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}},{tag:"path",attr:{d:"m10 8 4 4-4 4"}}]})(e)}function eL(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m9 9 5 12 1.774-5.226L21 14 9 9z"}},{tag:"path",attr:{d:"m16.071 16.071 4.243 4.243"}},{tag:"path",attr:{d:"m7.188 2.239.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656-2.12 2.122"}}]})(e)}function tL(e){return Cn({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M176,24H80A56.06,56.06,0,0,0,24,80v96a56.06,56.06,0,0,0,56,56h96a56.06,56.06,0,0,0,56-56V80A56.06,56.06,0,0,0,176,24ZM128,176a48,48,0,1,1,48-48A48.05,48.05,0,0,1,128,176Zm60-96a12,12,0,1,1,12-12A12,12,0,0,1,188,80Zm-28,48a32,32,0,1,1-32-32A32,32,0,0,1,160,128Z"}}]})(e)}function nL(e){return Cn({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M222.14,58.87A8,8,0,0,0,216,56H54.68L49.79,29.14A16,16,0,0,0,34.05,16H16a8,8,0,0,0,0,16h18L59.56,172.29a24,24,0,0,0,5.33,11.27,28,28,0,1,0,44.4,8.44h45.42A27.75,27.75,0,0,0,152,204a28,28,0,1,0,28-28H83.17a8,8,0,0,1-7.87-6.57L72.13,152h116a24,24,0,0,0,23.61-19.71l12.16-66.86A8,8,0,0,0,222.14,58.87ZM96,204a12,12,0,1,1-12-12A12,12,0,0,1,96,204Zm96,0a12,12,0,1,1-12-12A12,12,0,0,1,192,204Zm4-74.57A8,8,0,0,1,188.1,136H69.22L57.59,72H206.41Z"}}]})(e)}const iL="https://www.pozo.dev/pozo-common-api",aL=Ja("publicHome/pricingType",(async()=>await Ne.get(`${iL}/application?Type=A`))),rL=Ja("publicHome/getMainModuleData",(async({TypeName:e})=>{if(null!=e&&null!=e)return await fA.get(`/configMaster?TypeName=${e}`)})),sL=Ja("publicHome/getModuleData",(async({AlphaNumFId:e})=>{if(null!=e&&null!=e)return await fA.get(`/configMaster?AlphaNumFId=${e}`)})),lL=Ja("publicHome/getSubCategoryData",(async e=>{if(null!=e&&null!=e)return await Ne.get(`${iL}/application?CateId=${e}`)})),oL=Ja("publicHome/getApplicationData",(async e=>{if(null!=e&&null!=e)return await Ne.get(`${iL}/application?SubId=${e}`)})),dL=Ja("publicHome/getApplicationData",(async()=>await Ne.get(`${iL}/application`)));Ja("publicHome/getApplicationData",(async()=>await Ne.get(`${iL}/application?Type=D`))),Ja("application/postApplicationData",(async e=>await fA.post("/application",e)));const cL=Ja("publicHome/PostToken",(async e=>{const t=new URLSearchParams;for(const i in e)t.append(i,e[i]);try{const t=await Ne.post("https://www.pozo.dev/JwtToken/jwtTokenGenerator",e,{headers:{"Content-Type":"application/json",Accept:"application/json"}}),{token:n}=null==t?void 0:t.data;sessionStorage.getItem("auth")||sessionStorage.setItem("auth",n)}catch(n){}}));Ya({name:"publicHome",initialState:{homeData:[]},extraReducers:e=>{e.addCase(aL.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.homeData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.homeData=[]}))}});const uL="/",pL=()=>{const e=a.useRef(null),t=iA("UserId"),n=Qt(),i=um(),r=Mt(),[s,l]=a.useState(),[o,d]=a.useState(),[c,u]=a.useState(),[p,A]=a.useState(),[h,f]=a.useState(),[m,v]=a.useState(),[g,y]=a.useState(!1),[x,b]=a.useState(!1),[w,j]=a.useState(),[C,S]=a.useState(!1);a.useEffect((()=>{N()}),[]);const N=async()=>{var e,t,n,a,r;const s=await i(rL({TypeName:"Main Module"})).unwrap();1===(null==(e=null==s?void 0:s.data)?void 0:e.statusCode)&&l((null==(n=null==(t=null==s?void 0:s.data)?void 0:t.data)?void 0:n.length)>0?null==(r=null==(a=null==s?void 0:s.data)?void 0:a.data)?void 0:r.filter((e=>"A"===e.ActiveStatus)):[])},I=async(e,t)=>{nA("AppId",t),nA("AppName",e),n(`${uL+e}`),window.location.reload()},B=async t=>{var n,a,r,s;const l=await i(sL({AlphaNumFId:t})).unwrap();if(1===(null==(n=null==l?void 0:l.data)?void 0:n.statusCode)){let e=null==(r=null==(a=null==l?void 0:l.data)?void 0:a.data)?void 0:r.filter((e=>"A"===e.ActiveStatus));d(e),P(null==(s=null==e?void 0:e[0])?void 0:s.ConfigId),j(t)}else u(void 0),A([]),f(void 0),v([]),j(void 0);e.current&&clearTimeout(e.current),b(!0)},P=async e=>{var t,n,a,r,s;u((t=>g&&t===e?void 0:e));const l=await i(lL(e)).unwrap();if(1===(null==(t=null==l?void 0:l.data)?void 0:t.statusCode)){let e=null==(a=null==(n=null==l?void 0:l.data)?void 0:n.data)?void 0:a.filter((e=>"A"===e.ActiveStatus));A(e),k(null==(s=null==(r=null==l?void 0:l.data)?void 0:r.data[0])?void 0:s.SubCateId)}else A([]),f(void 0),v([])},k=async e=>{var t,n,a;f((t=>g&&t===e?void 0:e));const r=await i(oL(e)).unwrap();if(1===(null==(t=null==r?void 0:r.data)?void 0:t.statusCode)){let e=null==(a=null==(n=null==r?void 0:r.data)?void 0:n.data)?void 0:a.filter((e=>"A"===e.ActiveStatus));v(e)}else v([])},T=()=>{e.current=setTimeout((()=>{b(!1)}),100)},E=async()=>{let e={username:"1000000001",password:"1234"};try{await i(cL(e)).unwrap()}catch(t){}};return Ye.jsxs("div",{className:"PozoappNavbar-Master",children:[Ye.jsxs("div",{className:"PozoappNavbar-logo-and-field",children:[Ye.jsxs("div",{className:"PozoappNavbar-responsive-Toogle",children:[Ye.jsxs("div",{onClick:()=>{y(!g)},className:"responsive-Toogle-BTN",children:[!g&&Ye.jsx(li,{size:24}),g&&Ye.jsx(ey,{size:24})]}),Ye.jsx("div",{className:"PozoappNavbar-overlay "+(g?"open":""),children:Ye.jsx("div",{className:"PozoappNavbar-responsive-content "+(g?"open":""),children:Ye.jsxs("div",{className:"responsive-content",children:[null==s?void 0:s.map(((e,t)=>Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("p",{className:"PozoappNavbar-industry",onClick:()=>{B(e.ConfigId)},children:[e.ConfigName,e.ConfigId===w?Ye.jsx(Wn,{}):Ye.jsx(si,{})]},t),w===e.ConfigId&&Ye.jsx(Ye.Fragment,{children:null==o?void 0:o.map(((e,t)=>Ye.jsx("div",{className:"PozoappNavbar-industry-list",children:Ye.jsxs("div",{className:"Catlistofindustry",children:[Ye.jsxs("div",{className:"Catlistofindustry1",onClick:()=>{P(e.ConfigId)},children:[c===e.ConfigId?Ye.jsx(Wn,{}):Ye.jsx(si,{}),e.ConfigName]}),c===e.ConfigId&&(null==p?void 0:p.length)>0?null==p?void 0:p.map(((e,t)=>Ye.jsxs("div",{className:"subCatlistofindustry",children:[Ye.jsxs("div",{onClick:()=>k(e.SubCateId),className:"industrycatmain",children:[e.SubCategoryName,h==e.SubCateId?Ye.jsx(Wn,{}):Ye.jsx(si,{})]}),h===e.SubCateId&&(null==m?void 0:m.length)>0&&(null==m?void 0:m.map(((e,t)=>Ye.jsx("div",{className:"subCatlist-in",onClick:()=>{var t;return I(null==(t=null==e?void 0:e.AppName)?void 0:t.toLowerCase(),null==e?void 0:e.AppId)},children:e.AppName},t))))]},t))):Ye.jsx("div",{})]})},t)))})]}))),Ye.jsx("div",{className:"Testimonial-responsive",onClick:()=>{n(`${uL}testimonials`)},children:"Testimonials"})]})})})]}),Ye.jsx("div",{className:"pozologo-image",children:Ye.jsx("img",{src:Bm,alt:"pozologo",onClick:()=>{n(`${uL}`)}})}),Ye.jsxs("div",{className:"logo-and-fields",children:[null==s?void 0:s.map(((e,t)=>Ye.jsx("div",{className:"Industries-main",onMouseEnter:()=>{B(e.ConfigId)},onMouseLeave:T,children:e.ConfigName},t))),x&&Ye.jsxs("div",{className:"Industries-content "+(x?"show":""),onMouseEnter:()=>{B(w)},onMouseLeave:T,children:[Ye.jsx("div",{className:"Industries-cat",children:null==o?void 0:o.map(((e,t)=>Ye.jsxs("div",{style:{backgroundColor:c===e.ConfigId&&"#902578",color:c===e.ConfigId&&"#fff",fontWeight:c===e.ConfigId&&"500"},className:"Industries-cat-list "+(c===e.catData?"active":""),onClick:()=>P(e.ConfigId),children:[e.ConfigName,c===e.ConfigId&&Ye.jsx(XD,{size:18})]},t)))}),(null==o?void 0:o.length)>0&&Ye.jsx("div",{className:"Industries-SubCat",children:(null==p?void 0:p.length)>0?null==p?void 0:p.map(((e,t)=>Ye.jsxs("div",{style:{backgroundColor:h===e.SubCateId&&"#902578",color:h===e.SubCateId&&"#fff",fontWeight:h===e.SubCateId&&"500"},className:"Industries-SubCat-list "+(h===e.SubCateId?"active":""),onClick:()=>k(e.SubCateId),children:[e.SubCategoryName,h===e.SubCateId&&Ye.jsx(XD,{size:18})]},t))):Ye.jsx(X,{})}),(null==o?void 0:o.length)>0&&(null==p?void 0:p.length)>0&&Ye.jsx("div",{className:"Industries-Info",children:h?h&&(null==m?void 0:m.length)>0?null==m?void 0:m.map(((e,t)=>Ye.jsx("div",{className:"IndustriesInfoData-Restaurant",onClick:()=>{var t;return I(null==(t=null==e?void 0:e.AppName)?void 0:t.toLowerCase(),null==e?void 0:e.AppId)},children:Ye.jsxs("div",{className:"InfoData-Restaurant",children:[Ye.jsx("div",{children:Ye.jsx("img",{src:e.AppLogo,alt:e.AppName})}),Ye.jsxs("div",{children:[Ye.jsx("p",{children:e.AppName}),Ye.jsx(F,{className:"AppDescription-tooltip",placement:"bottom",title:Ye.jsxs("span",{style:{color:"#000",fontSize:"14px"},children:[e.AppDescription," "]}),color:"#fff",children:Ye.jsx("p",{children:e.AppDescription})})]})]})},t))):Ye.jsx(X,{}):Ye.jsx("div",{children:"Select a subcategory to view more information"})})]}),("/"==(null==r?void 0:r.pathname)||"/home/"==(null==r?void 0:r.pathname))&&Ye.jsx("div",{className:"offering-main",onClick:()=>{const e=document.getElementById("Offers");e&&e.scrollIntoView({behavior:"smooth"})},children:"Offerings"}),Ye.jsx("div",{className:"Testimonial-PozoNavbar",onClick:()=>{n(`${uL}testimonials`)},children:"Testimonials"})]})]}),Ye.jsx("div",{className:"PozoappNavbar-signin-and-field",children:Ye.jsxs("div",{className:"signin-and-fields",children:[Ye.jsx("a",{className:"pozo-store-btn",href:"https://pozo.app/apps/retail-public/app-page",children:"POZO STORE"}),Ye.jsx("a",{className:"pozo-store-btn1",href:"https://pozo.app/apps/retail-public/app-page",children:Ye.jsx(nL,{})}),t?Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{className:"signin-responsive",children:[Ye.jsx("div",{onClick:()=>{S((e=>!e))},children:Ye.jsx(GD,{})}),C&&Ye.jsxs("div",{className:"signin-responsive-option",children:[Ye.jsx("div",{onClick:()=>{n(`${uL}landing-page/user-account`)},children:"My Account"}),Ye.jsx("div",{onClick:async()=>{var e;const a=t,r=await i(fm({UserId:a,status:"N"})).unwrap();1===(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)&&(rA(),n(`${uL}`),sessionStorage.getItem("auth")||E())},children:"Sign Out"})]})]})}):Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{className:"PozoappNavbar-signin",onClick:()=>{n(`${uL}signin`)},children:[Ye.jsx(GD,{}),"SIGN IN"]})})]})})]})};var AL="undefined"!=typeof Element,hL="function"==typeof Map,fL="function"==typeof Set,mL="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function vL(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,i,a,r;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(i=n;0!==i--;)if(!vL(e[i],t[i]))return!1;return!0}if(hL&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(r=e.entries();!(i=r.next()).done;)if(!t.has(i.value[0]))return!1;for(r=e.entries();!(i=r.next()).done;)if(!vL(i.value[1],t.get(i.value[0])))return!1;return!0}if(fL&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(r=e.entries();!(i=r.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(mL&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(i=n;0!==i--;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=n;0!==i--;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;if(AL&&e instanceof Element)return!1;for(i=n;0!==i--;)if(("_owner"!==a[i]&&"__v"!==a[i]&&"__o"!==a[i]||!e.$$typeof)&&!vL(e[a[i]],t[a[i]]))return!1;return!0}return e!=e&&t!=t}const gL=c((function(e,t){try{return vL(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return!1;throw n}}));var yL=function(e,t,n,i,a,r,s,l){if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,i,a,r,s,l],c=0;(o=new Error(t.replace(/%s/g,(function(){return d[c++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}};const xL=c(yL);const bL=c((function(e,t,n,i){var a=n?n.call(i,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),o=0;o<r.length;o++){var d=r[o];if(!l(d))return!1;var c=e[d],u=t[d];if(!1===(a=n?n.call(i,c,u,d):void 0)||void 0===a&&c!==u)return!1}return!0}));var wL=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(wL||{}),jL={rel:["amphtml","canonical","alternate"]},CL={type:["application/ld+json"]},SL={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},NL=Object.values(wL),IL={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},FL=Object.entries(IL).reduce(((e,[t,n])=>(e[n]=t,e)),{}),BL="data-rh",PL="defaultTitle",kL="defer",TL="encodeSpecialCharacters",EL="onChangeClientState",DL="titleTemplate",LL="prioritizeSeoTags",UL=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const i=e[n];if(Object.prototype.hasOwnProperty.call(i,t))return i[t]}return null},_L=e=>{let t=UL(e,"title");const n=UL(e,DL);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(()=>t));const i=UL(e,PL);return t||i||void 0},OL=e=>UL(e,EL)||(()=>{}),ML=(e,t)=>t.filter((t=>void 0!==t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),RL=(e,t)=>t.filter((e=>void 0!==e.base)).map((e=>e.base)).reverse().reduce(((t,n)=>{if(!t.length){const i=Object.keys(n);for(let a=0;a<i.length;a+=1){const r=i[a].toLowerCase();if(-1!==e.indexOf(r)&&n[r])return t.concat(n)}}return t}),[]),QL=(e,t,n)=>{const i={};return n.filter((t=>!!Array.isArray(t[e])||(void 0!==t[e]&&(t[e],console&&console.warn),!1))).map((t=>t[e])).reverse().reduce(((e,n)=>{const a={};n.filter((e=>{let n;const r=Object.keys(e);for(let i=0;i<r.length;i+=1){const a=r[i],s=a.toLowerCase();-1===t.indexOf(s)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===s&&"stylesheet"===e[s].toLowerCase()||(n=s),-1===t.indexOf(a)||"innerHTML"!==a&&"cssText"!==a&&"itemprop"!==a||(n=a)}if(!n||!e[n])return!1;const s=e[n].toLowerCase();return i[n]||(i[n]={}),a[n]||(a[n]={}),!i[n][s]&&(a[n][s]=!0,!0)})).reverse().forEach((t=>e.push(t)));const r=Object.keys(a);for(let t=0;t<r.length;t+=1){const e=r[t],n={...i[e],...a[e]};i[e]=n}return e}),[]).reverse()},HL=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},VL=e=>Array.isArray(e)?e.join(""):e,zL=(e,t)=>Array.isArray(e)?e.reduce(((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let i=0;i<n.length;i+=1)if(t[n[i]]&&t[n[i]].includes(e[n[i]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e)),{priority:[],default:[]}):{default:e,priority:[]},qL=(e,t)=>({...e,[t]:void 0}),WL=["noscript","script","style"],YL=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),KL=e=>Object.keys(e).reduce(((t,n)=>{const i=void 0!==e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${i}`:i}),""),GL=(e,t={})=>Object.keys(e).reduce(((t,n)=>(t[IL[n]||n]=e[n],t)),t),$L=(e,t)=>t.map(((t,n)=>{const i={key:n,[BL]:!0};return Object.keys(t).forEach((e=>{const n=IL[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:e}}else i[n]=t[e]})),l.createElement(e,i)})),XL=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const i=GL(n,{key:t,[BL]:!0});return[l.createElement("title",i,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,i)=>{const a=KL(n),r=VL(t);return a?`<${e} ${BL}="true" ${a}>${YL(r,i)}</${e}>`:`<${e} ${BL}="true">${YL(r,i)}</${e}>`})(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>GL(t),toString:()=>KL(t)};default:return{toComponent:()=>$L(e,t),toString:()=>((e,t,n=!0)=>t.reduce(((t,i)=>{const a=i,r=Object.keys(a).filter((e=>!("innerHTML"===e||"cssText"===e))).reduce(((e,t)=>{const i=void 0===a[t]?t:`${t}="${YL(a[t],n)}"`;return e?`${e} ${i}`:i}),""),s=a.innerHTML||a.cssText||"",l=-1===WL.indexOf(e);return`${t}<${e} ${BL}="true" ${r}${l?"/>":`>${s}</${e}>`}`}),""))(e,t,n)}}},JL=e=>{const{baseTag:t,bodyAttributes:n,encode:i=!0,htmlAttributes:a,noscriptTags:r,styleTags:s,title:l="",titleAttributes:o,prioritizeSeoTags:d}=e;let{linkTags:c,metaTags:u,scriptTags:p}=e,A={toComponent:()=>{},toString:()=>""};return d&&({priorityMethods:A,linkTags:c,metaTags:u,scriptTags:p}=(({metaTags:e,linkTags:t,scriptTags:n,encode:i})=>{const a=zL(e,SL),r=zL(t,jL),s=zL(n,CL);return{priorityMethods:{toComponent:()=>[...$L("meta",a.priority),...$L("link",r.priority),...$L("script",s.priority)],toString:()=>`${XL("meta",a.priority,i)} ${XL("link",r.priority,i)} ${XL("script",s.priority,i)}`},metaTags:a.default,linkTags:r.default,scriptTags:s.default}})(e)),{priority:A,base:XL("base",t,i),bodyAttributes:XL("bodyAttributes",n,i),htmlAttributes:XL("htmlAttributes",a,i),link:XL("link",c,i),meta:XL("meta",u,i),noscript:XL("noscript",r,i),script:XL("script",p,i),style:XL("style",s,i),title:XL("title",{title:l,titleAttributes:o},i)}},ZL=[],eU=!("undefined"==typeof window||!window.document||!window.document.createElement),tU=class{constructor(e,t){i(this,"instances",[]),i(this,"canUseDOM",eU),i(this,"context"),i(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?ZL:this.instances,add:e=>{(this.canUseDOM?ZL:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?ZL:this.instances).indexOf(e);(this.canUseDOM?ZL:this.instances).splice(t,1)}}}),this.context=e,this.canUseDOM=t||!1,t||(e.helmet=JL({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},nU=l.createContext({}),iU=(e=class extends a.Component{constructor(t){super(t),i(this,"helmetData"),this.helmetData=new tU(this.props.context||{},e.canUseDOM)}render(){return l.createElement(nU.Provider,{value:this.helmetData.value},this.props.children)}},i(e,"canUseDOM",eU),e),aU=(e,t)=>{const n=document.head||document.querySelector("head"),i=n.querySelectorAll(`${e}[${BL}]`),a=[].slice.call(i),r=[];let s;return t&&t.length&&t.forEach((t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const i=e,a=void 0===t[i]?"":t[i];n.setAttribute(e,a)}n.setAttribute(BL,"true"),a.some(((e,t)=>(s=t,n.isEqualNode(e))))?a.splice(s,1):r.push(n)})),a.forEach((e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),r.forEach((e=>n.appendChild(e))),{oldTags:a,newTags:r}},rU=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const i=n.getAttribute(BL),a=i?i.split(","):[],r=[...a],s=Object.keys(t);for(const l of s){const e=t[l]||"";n.getAttribute(l)!==e&&n.setAttribute(l,e),-1===a.indexOf(l)&&a.push(l);const i=r.indexOf(l);-1!==i&&r.splice(i,1)}for(let l=r.length-1;l>=0;l-=1)n.removeAttribute(r[l]);a.length===r.length?n.removeAttribute(BL):n.getAttribute(BL)!==s.join(",")&&n.setAttribute(BL,s.join(","))},sU=(e,t)=>{const{baseTag:n,bodyAttributes:i,htmlAttributes:a,linkTags:r,metaTags:s,noscriptTags:l,onChangeClientState:o,scriptTags:d,styleTags:c,title:u,titleAttributes:p}=e;rU("body",i),rU("html",a),((e,t)=>{void 0!==e&&document.title!==e&&(document.title=VL(e)),rU("title",t)})(u,p);const A={baseTag:aU("base",n),linkTags:aU("link",r),metaTags:aU("meta",s),noscriptTags:aU("noscript",l),scriptTags:aU("script",d),styleTags:aU("style",c)},h={},f={};Object.keys(A).forEach((e=>{const{newTags:t,oldTags:n}=A[e];t.length&&(h[e]=t),n.length&&(f[e]=A[e].oldTags)})),t&&t(),o(e,h,f)},lU=null,oU=e=>{lU&&cancelAnimationFrame(lU),e.defer?lU=requestAnimationFrame((()=>{sU(e,(()=>{lU=null}))})):(sU(e),lU=null)},dU=class extends a.Component{constructor(){super(...arguments),i(this,"rendered",!1)}shouldComponentUpdate(e){return!bL(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const i=(a=e.get().map((e=>{const t={...e.props};return delete t.context,t})),{baseTag:RL(["href"],a),bodyAttributes:ML("bodyAttributes",a),defer:UL(a,kL),encode:UL(a,TL),htmlAttributes:ML("htmlAttributes",a),linkTags:QL("link",["rel","href"],a),metaTags:QL("meta",["name","charset","http-equiv","property","itemprop"],a),noscriptTags:QL("noscript",["innerHTML"],a),onChangeClientState:OL(a),scriptTags:QL("script",["src","innerHTML"],a),styleTags:QL("style",["cssText"],a),title:_L(a),titleAttributes:ML("titleAttributes",a),prioritizeSeoTags:HL(a,LL)});var a;iU.canUseDOM?oU(i):JL&&(n=JL(i)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},cU=(t=class extends a.Component{shouldComponentUpdate(e){return!gL(qL(this.props,"helmetData"),qL(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,i){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,i)}]}}mapObjectTypeChildren(e,t,n,i){switch(e.type){case"title":return{...t,[e.type]:i,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach((t=>{n={...n,[t]:e[t]}})),n}warnOnInvalidChildren(e,t){return xL(NL.some((t=>e.type===t)),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${NL.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),xL(!t||"string"==typeof t||Array.isArray(t)&&!t.some((e=>"string"!=typeof e)),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return l.Children.forEach(e,(e=>{if(!e||!e.props)return;const{children:i,...a}=e.props,r=Object.keys(a).reduce(((e,t)=>(e[FL[t]||t]=a[t],e)),{});let{type:s}=e;switch("symbol"==typeof s?s=s.toString():this.warnOnInvalidChildren(e,i),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,r,i);break;default:t=this.mapObjectTypeChildren(e,t,r,i)}})),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:i}=t;if(e&&(n=this.mapChildrenToProps(e,n)),i&&!(i instanceof tU)){i=new tU(i.context,!0),delete n.helmetData}return i?l.createElement(dU,{...n,context:i.value}):l.createElement(nU.Consumer,null,(e=>l.createElement(dU,{...n,context:e})))}},i(t,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),t);const uU="https://www.pozo.app/",pU="POZO",AU="@PozoApp",hU="en_US",fU="/og/home.jpg",mU="PozoApp delivers AI-powered POS and SaaS solutions for MSMEs and enterprises. Complete business management with billing, inventory, and analytics.",vU="2019",gU="https://www.pozo.app/static/brand/logo.png",yU=(e="",t=160)=>{const n=String(e).trim();if(n.length<=t)return n;const i=n.slice(0,t);return i.slice(0,i.lastIndexOf(" "))||i},xU=e=>e?/^https?:\/\//i.test(e)?e:`${uU}${e.startsWith("/")?"":"/"}${e}`:uU;function bU({title:e,description:t,keywords:n,url:i,image:a,type:r="website",noindex:s=!1,publishedTime:l,modifiedTime:o,siteName:d=pU,twitterHandle:c=AU,locale:u=hU,customJsonLd:p=null}){const A=yU(e||d,60),h=yU(t||mU,160),f=xU(i||"/"),m=xU(a||fU),v=s?"noindex,nofollow":"index,follow",g="article"===r?{"@context":"https://schema.org","@type":"Article",headline:A,description:h,image:m,datePublished:l||void 0,dateModified:o||l||void 0,mainEntityOfPage:f,author:{"@type":"Organization",name:d},publisher:{"@type":"Organization",name:d,logo:{"@type":"ImageObject",url:xU("/logo.png")}}}:null,y={"@context":"https://schema.org","@type":"WebSite",url:uU,name:d,potentialAction:{"@type":"SearchAction",target:`${uU}/search?q={search_term_string}`,"query-input":"required name=search_term_string"}},x={"@context":"https://schema.org","@type":"Organization",name:d,url:uU,logo:gU,foundingDate:vU,description:h,contactPoint:{"@type":"ContactPoint",telephone:"+91-7324000012",contactType:"customer service"},sameAs:["https://www.facebook.com/pozoapp","https://www.twitter.com/pozoapp"]};return Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs(cU,{children:[Ye.jsx("title",{children:A}),Ye.jsx("meta",{name:"description",content:h}),n&&Ye.jsx("meta",{name:"keywords",content:n}),Ye.jsx("meta",{name:"robots",content:v}),Ye.jsx("link",{rel:"canonical",href:f}),Ye.jsx("meta",{property:"og:site_name",content:d}),Ye.jsx("meta",{property:"og:locale",content:u}),Ye.jsx("meta",{property:"og:type",content:r}),Ye.jsx("meta",{property:"og:title",content:A}),Ye.jsx("meta",{property:"og:description",content:h}),Ye.jsx("meta",{property:"og:url",content:f}),m&&Ye.jsx("meta",{property:"og:image",content:m}),"article"===r&&l&&Ye.jsx("meta",{property:"article:published_time",content:l}),"article"===r&&o&&Ye.jsx("meta",{property:"article:modified_time",content:o}),Ye.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),!!c&&Ye.jsx("meta",{name:"twitter:site",content:c}),Ye.jsx("meta",{name:"twitter:title",content:A}),Ye.jsx("meta",{name:"twitter:description",content:h}),m&&Ye.jsx("meta",{name:"twitter:image",content:m})]}),Ye.jsx("script",{type:"application/ld+json",children:JSON.stringify(y)}),Ye.jsx("script",{type:"application/ld+json",children:JSON.stringify(x)}),g&&Ye.jsx("script",{type:"application/ld+json",children:JSON.stringify(g)}),p&&Array.isArray(p)?p.map(((e,t)=>Ye.jsx("script",{type:"application/ld+json",children:JSON.stringify(e)},t))):p?Ye.jsx("script",{type:"application/ld+json",children:JSON.stringify(p)}):null]})}const wU=Ja("Seo/postSeo",(async e=>await fA.post("/Seo",e))),jU=Ja("Seo/putSeo",(async e=>await fA.put("/Seo",e))),CU=Ja("Seo/getSeo",(async({PageId:e})=>await fA.get(`/Seo?pageId=${e}`)));Ja("Seo/getSeoByTitle",(async({MetaTitle:e})=>await fA.get(`/Seo?metaTitle=${e}`)));const SU=Ja("Seo/getAllSeo",(async()=>await fA.get("/Seo"))),NU=Ya({name:"seo",initialState:{seoData:[],loading:!1,error:null},reducers:{},extraReducers:e=>{e.addCase(CU.pending,(e=>{e.loading=!0})).addCase(CU.fulfilled,((e,t)=>{var n,i;e.loading=!1,e.seoData=(null==(i=null==(n=t.payload)?void 0:n.data)?void 0:i.data)||[]})).addCase(CU.rejected,((e,t)=>{e.loading=!1,e.error=t.error.message})).addCase(wU.fulfilled,((e,t)=>{e.loading=!1})).addCase(jU.fulfilled,((e,t)=>{e.loading=!1}))}}).reducer;function IU(e){return Cn({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8z"}}]})(e)}function FU(e){return Cn({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"}}]})(e)}function BU(e){return Cn({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z"}}]})(e)}function PU(e){return Cn({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M11 8h2V6h-2v2Z"}},{tag:"path",attr:{d:"M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm8.5.5a.5.5 0 0 0-1 0v7a.5.5 0 0 0 1 0v-7ZM2 5.5a.5.5 0 0 0 .5.5H6a.5.5 0 0 0 0-1H2.5a.5.5 0 0 0-.5.5ZM2.5 7a.5.5 0 0 0 0 1H6a.5.5 0 0 0 0-1H2.5ZM2 9.5a.5.5 0 0 0 .5.5H6a.5.5 0 0 0 0-1H2.5a.5.5 0 0 0-.5.5Zm8-4v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5Z"}}]})(e)}const kU=()=>{const[e,t]=a.useState(!1),[n,i]=a.useState(1),r=a.useRef(null);return Ye.jsx("div",{children:Ye.jsxs("video",{ref:r,id:"my-video",className:"video-js vjs-theme-forest",preload:"auto",width:"1366",height:"574",poster:"/assets/thumb-f7e04ff1.png","data-setup":"{}",onClick:()=>{const e=r.current;e&&(e.paused?(e.play(),t(!0)):(e.pause(),t(!1)))},onWheel:e=>{e.preventDefault();const t=r.current;if(t){const a=Math.sign(e.deltaY),r=Math.max(0,Math.min(n+.1*a,1));i(r),t.volume=r}},onDoubleClick:()=>{const e=r.current;e&&(document.fullscreenElement?document.exitFullscreen():e.requestFullscreen().catch((e=>{})))},children:[Ye.jsx("source",{src:"/assets/PozoMind-280b6496.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]})})};const TU=c(fx()),EU=({children:e,scrollSpeed:t})=>{const[n,i]=a.useState(!1),r=a.useRef(null),s=a.useRef(null);return a.useEffect((()=>{if(s.current&&r.current){const e=s.current.scrollWidth;r.current.style.setProperty("--content-width",`${e}px`)}}),[e]),Ye.jsx("div",{ref:r,className:"slider-container",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:Ye.jsxs("div",{ref:s,className:"slider-content "+(n?"paused":""),style:{animationDuration:`${t}s`},children:[e,e,e," "]})})};EU.propTypes={children:TU.node.isRequired,scrollSpeed:TU.number},EU.defaultProps={scrollSpeed:10};var DU={exports:{}};DU.exports=function(e){function t(i){if(n[i])return n[i].exports;var a=n[i]={exports:{},id:i,loaded:!1};return e[i].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=(i(n(1)),n(6)),s=i(r),l=i(n(7)),o=i(n(8)),d=i(n(9)),c=i(n(10)),u=i(n(11)),p=i(n(14)),A=[],h=!1,f={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},m=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(h=!0),h)return A=(0,u.default)(A,f),(0,c.default)(A,f.once),A},v=function(){A=(0,p.default)(),m()},g=function(){A.forEach((function(e,t){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay")}))},y=function(e){return!0===e||"mobile"===e&&d.default.mobile()||"phone"===e&&d.default.phone()||"tablet"===e&&d.default.tablet()||"function"==typeof e&&!0===e()},x=function(e){f=a(f,e),A=(0,p.default)();var t=document.all&&!window.atob;return y(f.disable)||t?g():(f.disableMutationObserver||o.default.isSupported()||(f.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",f.easing),document.querySelector("body").setAttribute("data-aos-duration",f.duration),document.querySelector("body").setAttribute("data-aos-delay",f.delay),"DOMContentLoaded"===f.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?m(!0):"load"===f.startEvent?window.addEventListener(f.startEvent,(function(){m(!0)})):document.addEventListener(f.startEvent,(function(){m(!0)})),window.addEventListener("resize",(0,l.default)(m,f.debounceDelay,!0)),window.addEventListener("orientationchange",(0,l.default)(m,f.debounceDelay,!0)),window.addEventListener("scroll",(0,s.default)((function(){(0,c.default)(A,f.once)}),f.throttleDelay)),f.disableMutationObserver||o.default.ready("[data-aos]",v),A)};e.exports={init:x,refresh:m,refreshHard:v}},function(e,t){},,,,,function(e,t){(function(t){function n(e,t,n){function i(t){var n=f,i=m;return f=m=void 0,C=t,g=e.apply(i,n)}function r(e){return C=e,y=setTimeout(c,t),S?i(e):g}function s(e){var n=t-(e-x);return N?w(n,v-(e-C)):n}function o(e){var n=e-x;return void 0===x||n>=t||n<0||N&&e-C>=v}function c(){var e=j();return o(e)?u(e):void(y=setTimeout(c,s(e)))}function u(e){return y=void 0,I&&f?i(e):(f=m=void 0,g)}function p(){void 0!==y&&clearTimeout(y),C=0,f=x=m=y=void 0}function A(){return void 0===y?g:u(j())}function h(){var e=j(),n=o(e);if(f=arguments,m=this,x=e,n){if(void 0===y)return r(x);if(N)return y=setTimeout(c,t),i(x)}return void 0===y&&(y=setTimeout(c,t)),g}var f,m,v,g,y,x,C=0,S=!1,N=!1,I=!0;if("function"!=typeof e)throw new TypeError(d);return t=l(t)||0,a(n)&&(S=!!n.leading,v=(N="maxWait"in n)?b(l(n.maxWait)||0,t):v,I="trailing"in n?!!n.trailing:I),h.cancel=p,h.flush=A,h}function i(e,t,i){var r=!0,s=!0;if("function"!=typeof e)throw new TypeError(d);return a(i)&&(r="leading"in i?!!i.leading:r,s="trailing"in i?!!i.trailing:s),n(e,t,{leading:r,maxWait:t,trailing:s})}function a(e){var t=void 0===e?"undefined":o(e);return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==(void 0===e?"undefined":o(e))}function s(e){return"symbol"==(void 0===e?"undefined":o(e))||r(e)&&x.call(e)==u}function l(e){if("number"==typeof e)return e;if(s(e))return c;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(p,"");var n=h.test(e);return n||f.test(e)?m(e.slice(2),n?2:8):A.test(e)?c:+e}var o="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},d="Expected a function",c=NaN,u="[object Symbol]",p=/^\s+|\s+$/g,A=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,f=/^0o[0-7]+$/i,m=parseInt,v="object"==(void 0===t?"undefined":o(t))&&t&&t.Object===Object&&t,g="object"==("undefined"==typeof self?"undefined":o(self))&&self&&self.Object===Object&&self,y=v||g||Function("return this")(),x=Object.prototype.toString,b=Math.max,w=Math.min,j=function(){return y.Date.now()};e.exports=i}).call(t,function(){return this}())},function(e,t){(function(t){function n(e,t,n){function a(t){var n=f,i=m;return f=m=void 0,C=t,g=e.apply(i,n)}function r(e){return C=e,y=setTimeout(c,t),S?a(e):g}function l(e){var n=t-(e-j);return N?b(n,v-(e-C)):n}function d(e){var n=e-j;return void 0===j||n>=t||n<0||N&&e-C>=v}function c(){var e=w();return d(e)?u(e):void(y=setTimeout(c,l(e)))}function u(e){return y=void 0,I&&f?a(e):(f=m=void 0,g)}function p(){void 0!==y&&clearTimeout(y),C=0,f=j=m=y=void 0}function A(){return void 0===y?g:u(w())}function h(){var e=w(),n=d(e);if(f=arguments,m=this,j=e,n){if(void 0===y)return r(j);if(N)return y=setTimeout(c,t),a(j)}return void 0===y&&(y=setTimeout(c,t)),g}var f,m,v,g,y,j,C=0,S=!1,N=!1,I=!0;if("function"!=typeof e)throw new TypeError(o);return t=s(t)||0,i(n)&&(S=!!n.leading,v=(N="maxWait"in n)?x(s(n.maxWait)||0,t):v,I="trailing"in n?!!n.trailing:I),h.cancel=p,h.flush=A,h}function i(e){var t=void 0===e?"undefined":l(e);return!!e&&("object"==t||"function"==t)}function a(e){return!!e&&"object"==(void 0===e?"undefined":l(e))}function r(e){return"symbol"==(void 0===e?"undefined":l(e))||a(e)&&y.call(e)==c}function s(e){if("number"==typeof e)return e;if(r(e))return d;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=A.test(e);return n||h.test(e)?f(e.slice(2),n?2:8):p.test(e)?d:+e}var l="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},o="Expected a function",d=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,h=/^0o[0-7]+$/i,f=parseInt,m="object"==(void 0===t?"undefined":l(t))&&t&&t.Object===Object&&t,v="object"==("undefined"==typeof self?"undefined":l(self))&&self&&self.Object===Object&&self,g=m||v||Function("return this")(),y=Object.prototype.toString,x=Math.max,b=Math.min,w=function(){return g.Date.now()};e.exports=n}).call(t,function(){return this}())},function(e,t){function n(e){var t=void 0,i=void 0;for(t=0;t<e.length;t+=1){if((i=e[t]).dataset&&i.dataset.aos)return!0;if(i.children&&n(i.children))return!0}return!1}function i(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function a(){return!!i()}function r(e,t){var n=window.document,a=new(i())(s);l=t,a.observe(n.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function s(e){e&&e.forEach((function(e){var t=Array.prototype.slice.call(e.addedNodes),i=Array.prototype.slice.call(e.removedNodes);if(n(t.concat(i)))return l()}))}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){};t.default={isSupported:a,ready:r}},function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,s=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,l=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,o=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,d=function(){function e(){n(this,e)}return a(e,[{key:"phone",value:function(){var e=i();return!(!r.test(e)&&!s.test(e.substr(0,4)))}},{key:"mobile",value:function(){var e=i();return!(!l.test(e)&&!o.test(e.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),e}();t.default=new d},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t,n){var i=e.node.getAttribute("data-aos-once");t>e.position?e.node.classList.add("aos-animate"):void 0!==i&&("false"===i||!n&&"true"!==i)&&e.node.classList.remove("aos-animate")},i=function(e,t){var i=window.pageYOffset,a=window.innerHeight;e.forEach((function(e,r){n(e,a+i,t)}))};t.default=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(12)),r=function(e,t){return e.forEach((function(e,n){e.node.classList.add("aos-init"),e.position=(0,a.default)(e.node,t.offset)})),e};t.default=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(13)),r=function(e,t){var n=0,i=0,r=window.innerHeight,s={offset:e.getAttribute("data-aos-offset"),anchor:e.getAttribute("data-aos-anchor"),anchorPlacement:e.getAttribute("data-aos-anchor-placement")};switch(s.offset&&!isNaN(s.offset)&&(i=parseInt(s.offset)),s.anchor&&document.querySelectorAll(s.anchor)&&(e=document.querySelectorAll(s.anchor)[0]),n=(0,a.default)(e).top,s.anchorPlacement){case"top-bottom":break;case"center-bottom":n+=e.offsetHeight/2;break;case"bottom-bottom":n+=e.offsetHeight;break;case"top-center":n+=r/2;break;case"bottom-center":n+=r/2+e.offsetHeight;break;case"center-center":n+=r/2+e.offsetHeight/2;break;case"top-top":n+=r;break;case"bottom-top":n+=e.offsetHeight+r;break;case"center-top":n+=e.offsetHeight/2+r}return s.anchorPlacement||s.offset||isNaN(t)||(i=t),n+i};t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),n+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:n,left:t}};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e=e||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(e,(function(e){return{node:e}}))};t.default=n}]);const LU=c(DU.exports);function UU(e){return Cn({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M8 8.707l3.646 3.647.708-.707L8.707 8l3.647-3.646-.707-.708L8 7.293 4.354 3.646l-.707.708L7.293 8l-3.646 3.646.707.708L8 8.707z"}}]})(e)}function _U(e){return Cn({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M4 15v-1c2 0 2-.6 2-1H1.5l-.5-.5v-10l.5-.5h13l.5.5v9.24l-1-1V3H2v9h5.73l-.5.5 2.5 2.5H4zm7.86 0l2.5-2.5-.71-.7L12 13.45V7h-1v6.44l-1.64-1.65-.71.71 2.5 2.5h.71z"}}]})(e)}function OU(e){return Cn({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M14.773 3.485l-.78-.184-2.108 2.096-1.194-1.216 2.056-2.157-.18-.792a4.42 4.42 0 0 0-1.347-.228 3.64 3.64 0 0 0-1.457.28 3.824 3.824 0 0 0-1.186.84 3.736 3.736 0 0 0-.875 1.265 3.938 3.938 0 0 0 0 2.966 335.341 335.341 0 0 0-6.173 6.234c-.21.275-.31.618-.284.963a1.403 1.403 0 0 0 .464.967c.124.135.272.247.437.328.17.075.353.118.538.127.316-.006.619-.126.854-.337 1.548-1.457 4.514-4.45 6.199-6.204.457.194.948.294 1.444.293a3.736 3.736 0 0 0 2.677-1.133 3.885 3.885 0 0 0 1.111-2.73 4.211 4.211 0 0 0-.196-1.378zM2.933 13.928a.31.31 0 0 1-.135.07.437.437 0 0 1-.149 0 .346.346 0 0 1-.144-.057.336.336 0 0 1-.114-.11c-.14-.143-.271-.415-.14-.568 1.37-1.457 4.191-4.305 5.955-6.046.1.132.21.258.328.376.118.123.245.237.38.341-1.706 1.75-4.488 4.564-5.98 5.994zm11.118-9.065c.002.765-.296 1.5-.832 2.048a2.861 2.861 0 0 1-4.007 0 2.992 2.992 0 0 1-.635-3.137A2.748 2.748 0 0 1 10.14 2.18a2.76 2.76 0 0 1 1.072-.214h.254L9.649 3.839v.696l1.895 1.886h.66l1.847-1.816v.258zM3.24 6.688h1.531l.705.717.678-.674-.665-.678V6.01l.057-1.649-.22-.437-2.86-1.882-.591.066-.831.849-.066.599 1.838 2.918.424.215zm-.945-3.632L4.609 4.58 4.57 5.703H3.494L2.002 3.341l.293-.285zm7.105 6.96l.674-.673 3.106 3.185a1.479 1.479 0 0 1 0 2.039 1.404 1.404 0 0 1-1.549.315 1.31 1.31 0 0 1-.437-.315l-3.142-3.203.679-.678 3.132 3.194a.402.402 0 0 0 .153.105.477.477 0 0 0 .359 0 .403.403 0 0 0 .153-.105.436.436 0 0 0 .1-.153.525.525 0 0 0 .036-.184.547.547 0 0 0-.035-.184.436.436 0 0 0-.1-.153L9.4 10.016z"}}]})(e)}const MU={height:"400px",color:"#fff",lineHeight:"160px",textAlign:"center"},RU="/home/",QU={height:"400px",color:"#fff",lineHeight:"160px",textAlign:"center"},HU=()=>Ye.jsxs(J,{autoplay:!0,children:[Ye.jsx("div",{children:Ye.jsxs("h3",{style:QU,children:[" ",Ye.jsx("img",{src:"/assets/img1-b3c2ba2f.png",style:{width:"100%"},alt:"BusinessImg"})," "]})}),Ye.jsx("div",{children:Ye.jsxs("h3",{style:QU,children:[" ",Ye.jsx("img",{src:"/assets/img2-1775404b.png",style:{width:"100%"},alt:"BusinessImg"})," "]})}),Ye.jsx("div",{children:Ye.jsxs("h3",{style:QU,children:[" ",Ye.jsx("img",{src:"/assets/img4-876e4254.png",style:{width:"100%"},alt:"BusinessImg"})," "]})}),Ye.jsx("div",{children:Ye.jsxs("h3",{style:QU,children:[" ",Ye.jsx("img",{src:"/assets/img3-6a4293a6.png",style:{width:"100%"},alt:"BusinessImg"})]})})]}),VU={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},zU={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},qU={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},WU={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},YU={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class KU{static getFirstMatch(e,t){const n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){const n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){const t=e.split(".").splice(0,2).map((e=>parseInt(e,10)||0));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){const t=e.split(".").splice(0,2).map((e=>parseInt(e,10)||0));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){const i=KU.getVersionPrecision(e),a=KU.getVersionPrecision(t);let r=Math.max(i,a),s=0;const l=KU.map([e,t],(e=>{const t=r-KU.getVersionPrecision(e),n=e+new Array(t+1).join(".0");return KU.map(n.split("."),(e=>new Array(20-e.length).join("0")+e)).reverse()}));for(n&&(s=r-Math.min(i,a)),r-=1;r>=s;){if(l[0][r]>l[1][r])return 1;if(l[0][r]===l[1][r]){if(r===s)return 0;r-=1}else if(l[0][r]<l[1][r])return-1}}static map(e,t){const n=[];let i;if(Array.prototype.map)return Array.prototype.map.call(e,t);for(i=0;i<e.length;i+=1)n.push(t(e[i]));return n}static find(e,t){let n,i;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,i=e.length;n<i;n+=1){const i=e[n];if(t(i,n))return i}}static assign(e,...t){const n=e;let i,a;if(Object.assign)return Object.assign(e,...t);for(i=0,a=t.length;i<a;i+=1){const e=t[i];if("object"==typeof e&&null!==e){Object.keys(e).forEach((t=>{n[t]=e[t]}))}}return e}static getBrowserAlias(e){return VU[e]}static getBrowserTypeByAlias(e){return zU[e]||""}}const GU=/version\/(\d+(\.?_?\d+)+)/i,$U=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=KU.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=KU.getFirstMatch(GU,e)||KU.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=KU.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=KU.getFirstMatch(GU,e)||KU.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=KU.getFirstMatch(GU,e)||KU.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=KU.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=KU.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=KU.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=KU.getFirstMatch(GU,e)||KU.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=KU.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=KU.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=KU.getFirstMatch(GU,e)||KU.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=KU.getFirstMatch(GU,e)||KU.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=KU.getFirstMatch(GU,e)||KU.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=KU.getFirstMatch(GU,e)||KU.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=KU.getFirstMatch(GU,e)||KU.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=KU.getFirstMatch(GU,e)||KU.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=KU.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=KU.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=KU.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=KU.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=KU.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=KU.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=KU.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=KU.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=KU.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=KU.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=KU.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=KU.getFirstMatch(GU,e)||KU.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=KU.getFirstMatch(GU,e)||KU.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=KU.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=KU.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=KU.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=KU.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=KU.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=KU.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=KU.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=KU.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=KU.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=KU.getFirstMatch(GU,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:KU.getFirstMatch(t,e),version:KU.getSecondMatch(t,e)}}}],XU=[{test:[/Roku\/DVP/],describe(e){const t=KU.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:WU.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=KU.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:WU.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=KU.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=KU.getWindowsVersionName(t);return{name:WU.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:WU.iOS},n=KU.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=KU.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=KU.getMacOSVersionName(t),i={name:WU.MacOS,version:t};return n&&(i.versionName=n),i}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=KU.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:WU.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=KU.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=KU.getAndroidVersionName(t),i={name:WU.Android,version:t};return n&&(i.versionName=n),i}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=KU.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:WU.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=KU.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||KU.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||KU.getFirstMatch(/\bbb(\d+)/i,e);return{name:WU.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=KU.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:WU.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=KU.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:WU.Tizen,version:t}}},{test:[/linux/i],describe:()=>({name:WU.Linux})},{test:[/CrOS/],describe:()=>({name:WU.ChromeOS})},{test:[/PlayStation 4/],describe(e){const t=KU.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:WU.PlayStation4,version:t}}}],JU=[{test:[/googlebot/i],describe:()=>({type:"bot",vendor:"Google"})},{test:[/huawei/i],describe(e){const t=KU.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:qU.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:()=>({type:qU.tablet,vendor:"Nexus"})},{test:[/ipad/i],describe:()=>({type:qU.tablet,vendor:"Apple",model:"iPad"})},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:()=>({type:qU.tablet,vendor:"Apple",model:"iPad"})},{test:[/kftt build/i],describe:()=>({type:qU.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"})},{test:[/silk/i],describe:()=>({type:qU.tablet,vendor:"Amazon"})},{test:[/tablet(?! pc)/i],describe:()=>({type:qU.tablet})},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=KU.getFirstMatch(/(ipod|iphone)/i,e);return{type:qU.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:()=>({type:qU.mobile,vendor:"Nexus"})},{test:[/[^-]mobi/i],describe:()=>({type:qU.mobile})},{test:e=>"blackberry"===e.getBrowserName(!0),describe:()=>({type:qU.mobile,vendor:"BlackBerry"})},{test:e=>"bada"===e.getBrowserName(!0),describe:()=>({type:qU.mobile})},{test:e=>"windows phone"===e.getBrowserName(),describe:()=>({type:qU.mobile,vendor:"Microsoft"})},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:()=>({type:qU.tablet})},{test:e=>"android"===e.getOSName(!0),describe:()=>({type:qU.mobile})},{test:e=>"macos"===e.getOSName(!0),describe:()=>({type:qU.desktop,vendor:"Apple"})},{test:e=>"windows"===e.getOSName(!0),describe:()=>({type:qU.desktop})},{test:e=>"linux"===e.getOSName(!0),describe:()=>({type:qU.desktop})},{test:e=>"playstation 4"===e.getOSName(!0),describe:()=>({type:qU.tv})},{test:e=>"roku"===e.getOSName(!0),describe:()=>({type:qU.tv})}],ZU=[{test:e=>"microsoft edge"===e.getBrowserName(!0),describe(e){if(/\sedg\//i.test(e))return{name:YU.Blink};const t=KU.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:YU.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){const t={name:YU.Trident},n=KU.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:e=>e.test(/presto/i),describe(e){const t={name:YU.Presto},n=KU.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:YU.Gecko},n=KU.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:()=>({name:YU.Blink})},{test:[/(apple)?webkit/i],describe(e){const t={name:YU.WebKit},n=KU.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class e_{constructor(e,t=!1){if(null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const e=KU.find($U,(e=>{if("function"==typeof e.test)return e.test(this);if(e.test instanceof Array)return e.test.some((e=>this.test(e)));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const e=KU.find(XU,(e=>{if("function"==typeof e.test)return e.test(this);if(e.test instanceof Array)return e.test.some((e=>this.test(e)));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){const{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){const{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};const e=KU.find(JU,(e=>{if("function"==typeof e.test)return e.test(this);if(e.test instanceof Array)return e.test.some((e=>this.test(e)));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const e=KU.find(ZU,(e=>{if("function"==typeof e.test)return e.test(this);if(e.test instanceof Array)return e.test.some((e=>this.test(e)));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return KU.assign({},this.parsedResult)}satisfies(e){const t={};let n=0;const i={};let a=0;if(Object.keys(e).forEach((r=>{const s=e[r];"string"==typeof s?(i[r]=s,a+=1):"object"==typeof s&&(t[r]=s,n+=1)})),n>0){const e=Object.keys(t),n=KU.find(e,(e=>this.isOS(e)));if(n){const e=this.satisfies(t[n]);if(void 0!==e)return e}const i=KU.find(e,(e=>this.isPlatform(e)));if(i){const e=this.satisfies(t[i]);if(void 0!==e)return e}}if(a>0){const e=Object.keys(i),t=KU.find(e,(e=>this.isBrowser(e,!0)));if(void 0!==t)return this.compareVersion(i[t])}}isBrowser(e,t=!1){const n=this.getBrowserName().toLowerCase();let i=e.toLowerCase();const a=KU.getBrowserTypeByAlias(i);return t&&a&&(i=a.toLowerCase()),i===n}compareVersion(e){let t=[0],n=e,i=!1;const a=this.getBrowserVersion();if("string"==typeof a)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(i=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(i=!0,n=e.substr(1)),t.indexOf(KU.compareVersions(a,n,i))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some((e=>this.is(e)))}}
|
||
/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/lancedikson/bowser
|
||
* MIT License | (c) Dustin Diaz 2012-2015
|
||
* MIT License | (c) Denis Demchenko 2015-2019
|
||
*/class t_{static getParser(e,t=!1){if("string"!=typeof e)throw new Error("UserAgent should be a string");return new e_(e,t)}static parse(e){return new e_(e).getResult()}static get BROWSER_MAP(){return zU}static get ENGINE_MAP(){return YU}static get OS_MAP(){return WU}static get PLATFORMS_MAP(){return qU}}const n_=Ja("theme/getAllApplications",(async()=>Ne.get("https://www.pozo.dev/pozo-common-api/application?ActiveStatus=A"))),i_=Ja("theme/getColors",(async()=>fA.get("/color?ActiveStatus=A"))),a_=Ja("theme/getFonts",(async()=>fA.get("/font?ActiveStatus=A"))),r_=Ja("theme/getTemplate",(async e=>{if(null!=e&&null!=e)return fA.get(`/template?AppName=${e}`)})),s_=Ja("theme/postColorData",(async e=>await fA.post("/color",e))),l_=Ja("theme/postFontData",(async e=>await fA.post("/font",e))),o_=Ja("Component/component",(async()=>await fA.get("/component"))),d_=Ja("theme/postOverAllData",(async e=>await fA.post("/template",e))),c_=Ja("theme/putOverAllData",(async e=>await fA.put("/template",e))),u_=Ya({name:"theme",initialState:{allApplications:[],allColors:[],allFonts:[],CurrentColor:{darkColor:"#37943C",lightColor:"#b2eb9b"},CurrentText:{head:"Gilroy",para:"Poppins"},OverviewData:[],Overview1Img:"",Overview2Img:"",Overview2Video:null,FaqDetails:[],navList1:[],SelectedApplication:null,AppName:"",FeatureList:[],FooterDetails:[],templateData:[],colorId:null,fontId:null,PricingData:[],PageAppId:"",showCaseDetails:[],appViewDetails:[],testimonialDetails:[],CtaData:[]},reducers:{changeShowCaseDetails:(e,t)=>{e.showCaseDetails=null==t?void 0:t.payload},changeAppViewDetails:(e,t)=>{e.appViewDetails=null==t?void 0:t.payload},changeTestimonialDetails:(e,t)=>{e.testimonialDetails=null==t?void 0:t.payload},changeCurrentColor:(e,t)=>{const{color:n}=null==t?void 0:t.payload;e.CurrentColor=n},changeCurrentText:(e,t)=>{const{text:n}=null==t?void 0:t.payload;e.CurrentText=n},changeOverviewData:(e,t)=>{const{postData:n}=null==t?void 0:t.payload;e.OverviewData=n},changeOverview1Img:(e,t)=>{const{overview1Img:n}=null==t?void 0:t.payload;e.Overview1Img=n},changeOverview2Img:(e,t)=>{const{overview2Img:n}=null==t?void 0:t.payload;e.Overview2Img=n},changeOverview2Video:(e,t)=>{const{overview2Video:n}=null==t?void 0:t.payload;e.Overview2Video=n},changeFaqDetails:(e,t)=>{const n=null==t?void 0:t.payload;e.FaqDetails=n},changeNavList1:(e,t)=>{const n=null==t?void 0:t.payload;e.navList1=n},changeSelectedApplication:(e,t)=>{const n=null==t?void 0:t.payload;e.SelectedApplication=n},changeFeatureList:(e,t)=>{const{featureList:n}=null==t?void 0:t.payload;e.FeatureList=n},changeFooterDetails:(e,t)=>{e.FooterDetails=null==t?void 0:t.payload},changeCtaDetails:(e,t)=>{e.CtaData=null==t?void 0:t.payload},changePricingData:(e,t)=>{const{postData:n}=null==t?void 0:t.payload;e.PricingData=n},changePageAppId:(e,t)=>{e.PageAppId=null==t?void 0:t.payload},emptyTemplateData:(e,t)=>{e.SelectedApplication=null,e.AppName="",e.templateData=[]},emptyPostData:(e,t)=>{e.navList1=[],e.OverviewData=[],e.FeatureList=[],e.PricingData=[],e.FaqDetails=[],e.FooterDetails=[],e.CurrentColor={darkColor:"#37943C",lightColor:"#b2eb9b"},e.CurrentText={head:"Gilroy",para:"Poppins"},e.Overview1Img="",e.Overview2Img="",e.Overview2Video=null}},extraReducers:e=>{e.addCase(n_.fulfilled,((e,t)=>{var n,i,a,r;1==(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)&&(e.allApplications=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data)})),e.addCase(i_.fulfilled,((e,t)=>{var n,i,a,r;1==(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)&&(e.allColors=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data)})),e.addCase(a_.fulfilled,((e,t)=>{var n,i,a,r;1==(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)&&(e.allFonts=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data)})),e.addCase(r_.fulfilled,((e,t)=>{var n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B,P;if(1==(null==(i=null==(n=null==t?void 0:t.payload)?void 0:n.data)?void 0:i.statusCode)){let n={};e.SelectedApplication={AppId:null==(s=null==(r=null==(a=null==t?void 0:t.payload)?void 0:a.data)?void 0:r.data[0])?void 0:s.AppId},e.AppName=null==(d=null==(o=null==(l=null==t?void 0:t.payload)?void 0:l.data)?void 0:o.data[0])?void 0:d.AppName,e.CurrentColor={darkColor:null==(p=null==(u=null==(c=null==t?void 0:t.payload)?void 0:c.data)?void 0:u.data[0])?void 0:p.DarkColor,lightColor:null==(f=null==(h=null==(A=null==t?void 0:t.payload)?void 0:A.data)?void 0:h.data[0])?void 0:f.LightColor},e.CurrentText={head:null==(g=null==(v=null==(m=null==t?void 0:t.payload)?void 0:m.data)?void 0:v.data[0])?void 0:g.HeadFont,para:null==(b=null==(x=null==(y=null==t?void 0:t.payload)?void 0:y.data)?void 0:x.data[0])?void 0:b.ParaFont},e.fontId=null==(C=null==(j=null==(w=null==t?void 0:t.payload)?void 0:w.data)?void 0:j.data[0])?void 0:C.FontId,e.colorId=null==(I=null==(N=null==(S=null==t?void 0:t.payload)?void 0:S.data)?void 0:N.data[0])?void 0:I.ColorId;for(let e of null==(P=null==(B=null==(F=null==t?void 0:t.payload)?void 0:F.data)?void 0:B.data[0])?void 0:P.ComponentDetails)n[e.SectionName]=[e.ComponentName,e.FieldDetails];e.templateData=n}else e.templateData={}}))}}),{changeCurrentColor:p_,changeCurrentText:A_,changeOverviewData:h_,changeOverview1Img:f_,changeOverview2Img:m_,changeOverview2Video:v_,changeFaqDetails:g_,changeNavList1:y_,changeSelectedApplication:x_,changeFeatureList:b_,changeFooterDetails:w_,changeCtaDetails:j_,changePricingData:C_,changePageAppId:S_,emptyTemplateData:N_,emptyPostData:I_,changeShowCaseDetails:F_,changeAppViewDetails:B_,changeTestimonialDetails:P_}=u_.actions,k_=e=>{var t;return null==(t=e.theme)?void 0:t.showCaseDetails},T_=e=>{var t;return null==(t=e.theme)?void 0:t.appViewDetails},E_=e=>{var t;return null==(t=e.theme)?void 0:t.testimonialDetails},D_=e=>{var t;return null==(t=e.theme)?void 0:t.CurrentColor},L_=e=>{var t;return null==(t=e.theme)?void 0:t.CurrentText},U_=e=>{var t;return null==(t=e.theme)?void 0:t.allApplications},__=e=>{var t;return null==(t=e.theme)?void 0:t.allColors},O_=e=>{var t;return null==(t=e.theme)?void 0:t.allFonts},M_=e=>{var t;return null==(t=e.theme)?void 0:t.OverviewData},R_=e=>{var t;return null==(t=e.theme)?void 0:t.Overview1Img},Q_=e=>{var t;return null==(t=e.theme)?void 0:t.Overview2Img},H_=e=>{var t;return null==(t=e.theme)?void 0:t.Overview2Video},V_=e=>{var t;return null==(t=e.theme)?void 0:t.navList1},z_=e=>{var t;return null==(t=null==e?void 0:e.theme)?void 0:t.FaqDetails},q_=e=>{var t;return null==(t=null==e?void 0:e.theme)?void 0:t.SelectedApplication},W_=e=>{var t;return null==(t=null==e?void 0:e.theme)?void 0:t.AppName},Y_=e=>{var t;return null==(t=null==e?void 0:e.theme)?void 0:t.fontId},K_=e=>{var t;return null==(t=null==e?void 0:e.theme)?void 0:t.colorId},G_=e=>{var t;return null==(t=null==e?void 0:e.theme)?void 0:t.FeatureList},$_=e=>{var t;return null==(t=null==e?void 0:e.theme)?void 0:t.FooterDetails},X_=e=>{var t;return null==(t=null==e?void 0:e.theme)?void 0:t.PageAppId},J_=e=>e.theme.PricingData,Z_=e=>e.theme.templateData,eO=e=>e.theme.CtaData,tO=u_.reducer,nO=[];for(let Wfe=0;Wfe<256;++Wfe)nO.push((Wfe+256).toString(16).slice(1));let iO;const aO=new Uint8Array(16);const rO={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function sO(e,t,n){var i;if(rO.randomUUID&&!t&&!e)return rO.randomUUID();const a=(e=e||{}).random??(null==(i=e.rng)?void 0:i.call(e))??function(){if(!iO){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");iO=crypto.getRandomValues.bind(crypto)}return iO(aO)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=a[e];return t}return function(e,t=0){return(nO[e[t+0]]+nO[e[t+1]]+nO[e[t+2]]+nO[e[t+3]]+"-"+nO[e[t+4]]+nO[e[t+5]]+"-"+nO[e[t+6]]+nO[e[t+7]]+"-"+nO[e[t+8]]+nO[e[t+9]]+"-"+nO[e[t+10]]+nO[e[t+11]]+nO[e[t+12]]+nO[e[t+13]]+nO[e[t+14]]+nO[e[t+15]]).toLowerCase()}(a)}const lO=Ja("Emp/getEmpRelieve",(async({CompId:e,UserId:t,AppId:n,BranchId:i})=>{if(null!=e&&null!=e&&null!=t&&null!=t&&null!=n&&null!=n&&null!=i&&null!=i)return await hA.get(`/EmployeeRelieveInfo?appId=${n}&compId=${e}&branchId=${i}&userId=${t}`)})),oO=Ja("Emp/getEmpRelieve",(async({uniqueId:e,updatedBy:t,activeStatus:n})=>{if(null!=e&&null!=e&&null!=t&&null!=t&&null!=n&&null!=n)return await hA.delete(`/EmployeeRelieveInfo?uniqueId=${e}&updatedBy=${t}&activeStatus=${n}`)})),dO=Ja("Emp/postEmpRelieve",(async e=>await hA.post("/EmployeeRelieveInfo",e))),cO=Ja("Emp/putEmpRelieve",(async e=>await hA.put("/EmployeeRelieveInfo",e)));S.extend(N);const uO=({onChange:e,canSelectPast:t,valueData:n,disabled:i,cancelFuture:a,minDate:r,dontallowfeature:s})=>{const l=e=>!!r&&(e&&e<S(r,"YYYY-MM-DDTHH:mm:ss").startOf("day"));return Ye.jsx(P,{direction:"vertical",children:Ye.jsx(T,{format:"DD-MM-YYYY",value:n?S(n,"YYYY-MM-DDTHH:mm:ss"):"",disabledDate:e=>s?e&&e>S().endOf("day"):t?a&&(e=>e&&e>S().endOf("day"))(e)||l(e):(e=>{var t=new Date;return t.setDate(t.getDate()+1),e.valueOf()<=t.setDate(t.getDate()-2)})(e)||l(e),disabled:i,onChange:e,inputReadOnly:!0})})},pO=({data:e})=>{const{CompId:t,UserId:n,AppId:i,BranchId:r}=e||{},s=um(),[l]=I.useForm(),[o,d]=a.useState({type:"",data:""}),[c,u]=a.useState(""),[p,A]=a.useState(""),[h,f]=a.useState({uniqueId:null,type:!1}),[m,v]=a.useState([]),g=a.useCallback((()=>{d({type:"",data:""})}),[]);a.useEffect((()=>{try{x()}catch(e){}}),[]);const x=async()=>{var e,a,o,d,c,p,h;const m=await s(lO({CompId:t,UserId:n,AppId:i,BranchId:r})).unwrap();if(1===(null==(e=null==m?void 0:m.data)?void 0:e.statusCode)){const e=null==(a=null==m?void 0:m.data)?void 0:a.data;if(v(e),(null==e?void 0:e.length)>0){f({uniqueId:null==(o=e[0])?void 0:o.UniqueId,type:!0});const t=(null==(d=e[0])?void 0:d.RelieveDate)?Se(null==(c=e[0])?void 0:c.RelieveDate,["YYYY-MM-DD"]).format("YYYY-MM-DDTHH:mm:ss"):null;l.setFieldsValue({RelieveDate:t,RelieveReason:(null==(p=e[0])?void 0:p.RelieveReason)||""}),u(t),A((null==(h=e[0])?void 0:h.RelieveReason)||"")}}};return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:o.type,messageData:o.data,onComplete:g}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{style:{display:"flex"},children:Ye.jsx(ab,{title:"Relieve Request"})}),Ye.jsx("div",{className:"reportTable",children:Ye.jsxs(I,{form:l,name:"relieveRequest",layout:"vertical",onFinish:async e=>{var a,l,o,c,u;try{let p={};const A=e.RelieveDate?S(e.RelieveDate).format("YYYY-MM-DD"):null,f={AppId:i,CompId:t,BranchId:r,UserId:n,RelieveDate:A,RelieveReason:e.RelieveReason};p=(null==h?void 0:h.type)?await(null==(a=s(cO({...f,UniqueId:null==h?void 0:h.uniqueId,UpdatedBy:n})))?void 0:a.unwrap()):await(null==(l=s(dO({...f,CreatedBy:n})))?void 0:l.unwrap()),1===(null==(o=null==p?void 0:p.data)?void 0:o.statusCode)?(d({type:"success",data:null==(c=null==p?void 0:p.data)?void 0:c.response}),x()):d({type:"error",data:null==(u=null==p?void 0:p.data)?void 0:u.response})}catch(p){d({type:"error",data:"Failed to submit relieve request. Please try again."})}},onFinishFailed:e=>{d({type:"error",data:"Please fill in all required fields correctly."})},children:[(null==h?void 0:h.type)?Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",fontSize:"16px",fontWeight:500},children:[Ye.jsxs("p",{children:[" RelieveStatus :",Ye.jsx("span",{style:{color:"N"===(null==m?void 0:m[0].RelieveStatus)?"red":"inherit",fontWeight:400},children:"N"===(null==m?void 0:m[0].RelieveStatus)?"Your Relieve Status is Pending":""})]}),Ye.jsxs("p",{children:["RelieveDate : ",new Date(m[0].RelieveDate).toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit",year:"numeric"})]}),Ye.jsxs("p",{children:["RelieveReason : ",null==m?void 0:m[0].RelieveReason]})]}):Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(I.Item,{label:Ye.jsx("span",{style:{fontWeight:"500",color:"#333"},children:"Relieve Date"}),name:"RelieveDate",rules:[{required:!0,message:"Please select relieve date!"}],style:{marginBottom:"25px"},children:Ye.jsx(uO,{valueData:c,canSelectPast:!1,onChange:async(e,t)=>{if(t){const e=Se(t,["DD-MM-YYYY"]).format("YYYY-MM-DDTHH:mm:ss");null==l||l.setFieldsValue({RelieveDate:e}),u(e)}else null==l||l.setFieldsValue({RelieveDate:null}),u(null)}})}),Ye.jsx("div",{style:{width:"500px"},children:Ye.jsx(I.Item,{name:"RelieveReason",rules:[{required:!0,message:"Please provide reason for relieve!"},{min:10,message:"Reason must be at least 10 characters long!"}],style:{marginBottom:"30px"},children:Ye.jsx(My,{label:Ye.jsx("label",{className:"required",children:"Please provide your reason for Relieve..."}),onChange:e=>{l.setFieldsValue({RelieveReason:e.target.value}),A(e.target.value)},fieldState:p,isOnChange:null==h?void 0:h.type,maxLength:250,showCount:!0,width:!0})})})]}),Ye.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[(null==h?void 0:h.type)&&Ye.jsx(I.Item,{style:{marginBottom:0},children:Ye.jsx(y,{type:"default",onClick:async()=>{var e,t,i;try{const a=await s(oO({uniqueId:null==h?void 0:h.uniqueId,updatedBy:n,activeStatus:"D"})).unwrap();1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)?(d({type:"success",data:null==(t=null==a?void 0:a.data)?void 0:t.response}),l.resetFields(),u(""),A(""),f(!1)):d({type:"error",data:null==(i=null==a?void 0:a.data)?void 0:i.response})}catch(a){d({type:"error",data:"Failed to delete relieve request."})}},style:{width:"170px",height:"45px",backgroundColor:"#f5222d",color:"#fff",fontFamily:"var(--HEADING_FONT_FAMILY)",fontStyle:"normal",fontWeight:500,fontSize:"14px",borderRadius:"8px",display:"flex",letterSpacing:"0.5px",justifyContent:"space-between",alignItems:"center",zIndex:2,padding:"0 16px",border:"none"},children:"DELETE REQUEST"})}),Ye.jsx(I.Item,{style:{marginBottom:0},children:Ye.jsx(Ry,{buttonText:"SUBMIT REQUEST",color:"901D77"})})]})]})})]})]})})},AO="/",hO=({getUserRole:e})=>{const t=um(),[n,i]=a.useState(Tf(Sh));return Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"moduleAccessSelectDrp",children:Ye.jsx(fk,{content:"Admin"==iA("UserType")?[{value:"Branch Admin",label:"Employee"}]:[{value:"Sadmin",label:"Super Admin User"},{value:"Company Admin",label:"Admin"},{value:"Branch Admin",label:"Employee"}],fieldState:!0,defaultSelect:n,Header:"Roles",onSelectFuntion:n=>(async n=>{i(n),e(n),t(ih()),t(KA({id:n}))})(n)})})})},fO=({UserId:e,AppId:t})=>{const n=um(),i=Tf(Nh),r=Tf(Sh),[s,l]=a.useState(null),[o,d]=a.useState([]);a.useEffect((()=>{try{null==i&&l(null)}catch(e){}}),[i]),a.useEffect((()=>{try{null!=e&&null!=e&&null!=t&&null!=t&&async function(){var i,a;const r=await n(FA({UserId:e,AppId:t})).unwrap();1===(null==(i=r.data)?void 0:i.statusCode)?await d(null==(a=r.data)?void 0:a.data):await d([])}()}catch(i){}}),[e,t]),a.useEffect((()=>{var e,t;1===o.length?(l(null==(e=o[0])?void 0:e.CompId),n($A({storeId:null==(t=o[0])?void 0:t.CompId}))):l(null)}),[o]);return Ye.jsx("div",{className:"moduleAccessSelectDrp storeSelectDiv",children:Ye.jsx(_y,{options:null==o?void 0:o.map((e=>({value:e.CompId,label:e.CompName}))),label:"Company Name",id:"StoreName",field:"CompName",fieldState:!0,fieldApi:!0,onChangeFunction:e=>(e=>{l(e),n($A({storeId:e})),"Branch Admin"==r&&(n(ZA({userId:null})),n(eh({EmpDesig:null})),n(th()),n(lh()))})(e),className:"field-DropDown",valueData:s,isOnchanges:!!s})})},mO=({AppId:e})=>{const t=um(),[n,i]=a.useState([]),r=Tf(Nh),s=Tf(Bh),l=Tf(Sh),[o,d]=a.useState(null),[c]=I.useForm();a.useEffect((()=>{try{null!=e&&null!=e&&async function(){var n,a,l,o,d,c,u;let p=await t(_A({AppId:e})).unwrap();if(1===(null==(n=p.data)?void 0:n.statusCode)){t(GA({AppName:null==(l=null==(a=null==p?void 0:p.data)?void 0:a.data[0])?void 0:l.AppName}));let e=await t(UA({AppName:null==(d=null==(o=null==p?void 0:p.data)?void 0:o.data[0])?void 0:d.AppName,CompId:r,BranchId:s})).unwrap();1===(null==(c=null==e?void 0:e.data)?void 0:c.statusCode)?await i(null==(u=e.data)?void 0:u.data):await i([])}}()}catch(n){}}),[s]),a.useEffect((()=>{var e,i;1===n.length?(d(null==(e=n[0])?void 0:e.EmpDesig),t(eh({EmpDesig:null==(i=n[0])?void 0:i.EmpDesig}))):(d(null),t(eh({EmpDesig:null})))}),[n]);return Ye.jsx(I,{form:c,children:Ye.jsx("div",{className:"moduleAccessSelectDrp",children:Ye.jsx(I.Item,{name:"EmpDesig",children:Ye.jsx(_y,{options:null==n?void 0:n.map((e=>({value:e.EmpDesig,label:e.DesignationName}))),label:"Designation",id:"Designation",field:"Designation",fieldState:!0,fieldApi:!0,onChangeFunction:e=>(async e=>{d(e),t(eh({EmpDesig:e})),"Branch Admin"==l&&(t(ZA({userId:null})),t(th()))})(e),className:"field-DropDown",valueData:o,isOnchanges:!!o})})})})},vO=({UserId:e})=>{const t=um(),n=Tf(Th),i=Tf(Ph),r=Tf(Sh),[s,l]=a.useState(null);a.useEffect((()=>{try{null!=e&&t(IA({UserId:e})).unwrap()}catch(n){}}),[e]),a.useEffect((()=>{try{null==i&&l(null)}catch(e){}}),[i]),a.useEffect((()=>{var e,i;1===n.length?(l(null==(e=n[0])?void 0:e.AppId),t(JA({AppId:null==(i=n[0])?void 0:i.AppId}))):l(null)}),[n]);return Ye.jsx("div",{className:"moduleAccessSelectDrp",children:Ye.jsx(_y,{options:null==n?void 0:n.map((e=>({value:e.AppId,label:e.AppName}))),label:"App Name",id:"AppName",field:"AppName",fieldState:!0,fieldApi:!0,onChangeFunction:e=>(e=>{l(e),t(JA({AppId:e})),t($A({storeId:null})),t(XA({BranchId:null})),"Company Admin"!=r&&"Branch Admin"!=r||(t(sh()),t(ZA({userId:null})),"Branch Admin"==r&&t(eh({EmpDesig:null})))})(e),className:"field-DropDown",valueData:s,isOnchanges:!!s})})},gO=({disabled:e})=>{const t=um(),n=Tf(Sh),i=Tf(Dh),r=Tf(kh),s=Tf(Lh),l=Tf(Uh),[o,d]=a.useState([]),c=Tf(Mh),u=Tf(Bh),p=Tf(Eh);a.useEffect((()=>{try{!c||"Branch Admin"!=n&&"Company Admin"!=n?t(CA()).unwrap():t(CA(c)).unwrap()}catch(e){}}),[c]),a.useEffect((()=>{try{"Admin"===iA("UserType")&&t(CA(iA("UserId"))).unwrap(),"Company Admin"==n&&u?t(NA({userId:"Admin"===iA("UserType")?iA("UserId"):c,BranchId:u})).unwrap():"Branch Admin"!=n&&"Sadmin"!=n||!r||t(NA({userId:r})).unwrap()}catch(e){}}),[u]),a.useEffect((()=>{try{null!=r&&"Admin"!==iA("UserType")?"Company Admin"==n&&u?t(NA({userId:r,BranchId:u})).unwrap():"Branch Admin"!=n&&"Sadmin"!=n||t(NA({userId:r})).unwrap():null!=r&&"Admin"===iA("UserType")&&"Company Admin"==n&&u?t(NA({userId:iA("UserId"),BranchId:u})).unwrap():null==r||"Admin"!==iA("UserType")||"Branch Admin"!=n&&" Sadmin"!=n?null==r&&"Branch Admin"==n&&d([]):t(NA({userId:r})).unwrap()}catch(e){}}),[r]),a.useEffect((()=>{try{async function i(){let e={};const i=await Promise.all([...null==l?void 0:l.map((async i=>{var a,r;if("Company Admin"==n&&u){let n=await t(QA({BranchType:i.SubCateId,UserId:"Admin"===iA("UserType")?iA("UserId"):c,BranchId:u})).unwrap(),s=null==(r=null==(a=null==n?void 0:n.data)?void 0:a.data)?void 0:r.filter((e=>"Y"==e.AppAccess)).map((e=>e.AppId));e[i.ConfigName]=s}return i.SubCateId}))]);t(Ah(e)),d(i)}"Company Admin"==n&&i()}catch(e){}}),[l]),a.useEffect((()=>{try{async function i(){let e={};const i=await Promise.all([...null==l?void 0:l.map((async i=>{var a,s;if("Company Admin"!=n&&r){let l;l=await t(QA({BranchType:i.SubCateId,UserId:r,Type:"Branch Admin"==n?"B":"S"})).unwrap();let o=null==(s=null==(a=null==l?void 0:l.data)?void 0:a.data)?void 0:s.filter((e=>"Y"==e.AppAccess)).map((e=>e.AppId));e[i.ConfigName]=o}return i.SubCateId}))]);t(Ah(e)),d(null!=r?i:[])}"Company Admin"!=n&&i()}catch(e){}}),[s]),a.useEffect((()=>{try{d([])}catch(e){}}),[n]),a.useEffect((()=>{0==p.length&&"Branch Admin"==n&&d([])}),[p]);const A=null==i?void 0:i.map(((e,i)=>(r&&(null==l||l.filter((t=>t.ConfigName==e.ConfigName))),Ye.jsx("div",{children:Ye.jsx(R,{children:Ye.jsx(Q,{span:10,children:Ye.jsx(V,{style:{padding:"5px",width:"max-content"},onChange:i=>(async(e,i)=>{var a,s,l;try{let o;e.target.checked?o=r&&"Company Admin"==n?await t(QA({UserId:r,BranchType:null==(a=null==e?void 0:e.target)?void 0:a.value,BranchId:u})).unwrap():("Admin"==iA("UserType")?iA("UserId"):c)&&"Branch Admin"==n?await t(QA({UserId:"Admin"==iA("UserType")?iA("UserId"):c,BranchType:null==(s=null==e?void 0:e.target)?void 0:s.value,Type:"B"})).unwrap():await t(QA({BranchType:null==(l=null==e?void 0:e.target)?void 0:l.value})).unwrap():(t(gh({subCat:i})),t(Ch({appAccessData:i})))}catch(o){}})(i,e.ConfigName),value:e.ConfigId,disabled:"Company Admin"==n&&(o.length>0&&!o.includes(e.ConfigId)),children:e.ConfigName},e.ConfigId)})})}))));return Ye.jsx("div",{className:"userAccessDiv",children:Ye.jsxs("div",{className:"userAccess",children:[Ye.jsx("div",{className:"userAccessHeader selectDrpHeading",children:"Category"}),Ye.jsx("div",{className:"userAccessBody ",style:e?{pointerEvents:"none",opacity:"0.4"}:{},children:Ye.jsx(V.Group,{style:{width:"100%"},onChange:e=>(async e=>{d(e)})(e),value:o,children:(null==i?void 0:i.length)>0&&A})})]})})},yO=({userIdValue:e})=>{const t=um(),n=Tf(Eh),i=Tf(Sh),[r,s]=a.useState(null),l=Tf(Oh),o=Tf(Fh),d=Tf(Nh),c=Tf(Bh),u=Tf(Ih),[p]=I.useForm();0==n.length&&"Sadmin"==i&&p.resetFields(),0==l.length&&"Branch Admin"==i&&p.resetFields(),a.useEffect((()=>{null!=o&&null!=o&&t(OA({AppName:u,EmpDesig:o,CompId:d,BranchId:c})).unwrap()}),[o]),a.useEffect((()=>{var a,r,l;1===n.length?"Sadmin"==i&&(e(null==(a=n[0])?void 0:a.UserId),s(null==(r=n[0])?void 0:r.UserId),t(ZA({userId:null==(l=n[0])?void 0:l.UserId}))):0==n.length&&"Sadmin"==i&&(s(null),t(ZA({userId:null})),t(sh()))}),[n]),a.useEffect((()=>{var n,a,r;1===l.length?"Branch Admin"==i&&(e(null==(n=l[0])?void 0:n.UserId),s(null==(a=l[0])?void 0:a.UserId),t(ZA({userId:null==(r=l[0])?void 0:r.UserId}))):0==l.length&&"Branch Admin"==i&&(s(null),t(ZA({userId:null})),t(sh()))}),[l]);return Ye.jsx(I,{form:p,children:Ye.jsx("div",{className:"moduleAccessSelectDrp",children:Ye.jsx(I.Item,{name:"UserName",children:Ye.jsx(_y,{options:null!=o&&null!=o?null==l?void 0:l.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?e.UserName:e.MobileNo}))):null==n?void 0:n.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?e.UserName:e.MobileNo}))),label:"User Name",id:"UserName",field:"UserName",fieldState:!0,fieldApi:!0,valueData:r,isOnchanges:!!r,onChangeFunction:n=>(n=>{e(n),s(n),t(ZA({userId:n})),t(lh())})(n),className:"field-DropDown"})})})})},xO=({storeId:e,UserId:t,AppId:n})=>{const i=um(),[r,s]=a.useState([]),[l,o]=a.useState(null),d=Tf(Sh),[c]=I.useForm();a.useEffect((()=>{try{null!=e&&null!=t&&null!=n?async function(){var a,r;const l=await i(EA({StoreId:e,UserId:t,AppId:n})).unwrap();1===(null==(a=l.data)?void 0:a.statusCode)?await s(null==(r=l.data)?void 0:r.data):await s([])}():null!=e&&async function(e){var t,n;const a=await i(yA({storeId:e})).unwrap();1===(null==(t=a.data)?void 0:t.statusCode)?await s(null==(n=a.data)?void 0:n.data):await s([])}(e)}catch(a){}}),[e]),a.useEffect((()=>{var e,t;1===r.length?(o(null==(e=r[0])?void 0:e.BrId),i(XA({BranchId:null==(t=r[0])?void 0:t.BrId}))):o(null)}),[r]);return Ye.jsx(I,{form:c,children:Ye.jsx("div",{className:"moduleAccessSelectDrp",children:Ye.jsx(I.Item,{name:"BranchName",children:Ye.jsx(_y,{options:null==r?void 0:r.map((e=>({value:e.BrId,label:e.BrName}))),label:"Branch Name",onChangeFunction:e=>(e=>{o(e),i(XA({BranchId:e})),"Branch Admin"==d&&(i(ZA({userId:null})),i(th()),i(lh()))})(e),className:"field-DropDown",valueData:l,isOnchanges:!!l})})})})},bO=({})=>{var e;const{Panel:t}=ee,n=um(),i=Tf(Sh),r=Tf(Mh),s=Tf(zh),l=Tf(Qh),o=Tf(kh),d=Tf(Wh),[c,u]=a.useState({}),[p,A]=a.useState("");a.useEffect((()=>{0==(null==d?void 0:d.length)&&A("")}),[d]),a.useEffect((()=>{try{async function t(){var e;let t={},a=await(null==(e=Object.keys(l))?void 0:e.reduce((async(e,a)=>{var d;if(t[a]=l[a].map((e=>e.CompId)),null!=s[a]){let t=await(null==(d=l[a])?void 0:d.reduce((async(e,t)=>{var a,s,l,d,c,u;"Sadmin"==i?await n(MA({CompId:t.CompId,AppId:t.AppId})).unwrap():await n(MA({CompId:t.CompId,AppId:t.AppId,UserId:"Admin"==iA("UserType")?iA("UserId"):r})).unwrap();let p=await n(DA({UserId:o,AppId:t.AppId,StoreId:t.CompId})).unwrap();return{...await e,[`${null==(s=null==(a=null==p?void 0:p.data)?void 0:a.data[0])?void 0:s.AppName}-${null==(d=null==(l=null==p?void 0:p.data)?void 0:l.data[0])?void 0:d.CompName}`]:null==(u=null==(c=null==p?void 0:p.data)?void 0:c.data)?void 0:u.map((e=>({CompId:e.CompId,AppId:e.AppId,BranchId:e.BrId})))}}),{}));return{...await e,...await t}}return await e}),{}));n(mh(a)),u(t)}"Company Admin"!=i&&t()}catch(e){}}),[l,s]);return Ye.jsx("div",{className:"userAccessDiv",children:Ye.jsxs("div",{className:"userAccess",children:[Ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"97%"},children:[Ye.jsx("div",{className:"userAccessHeader selectDrpHeading",children:" Company "}),Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{A(e)},onSearchChange:e=>{var t;A(null==(t=null==e?void 0:e.target)?void 0:t.value)},value:p})})]}),Ye.jsx(ee,{defaultActiveKey:"1",children:Ye.jsx(t,{header:"Hide / Show",children:Ye.jsxs("div",{className:"userAccessBody ",children:[0===Object.keys(s).length&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("p",{style:{color:"gray"},children:" No Companys Found "})}),null==(e=Object.keys(s))?void 0:e.map((e=>{var t,a,o,A;return Ye.jsxs("div",{className:"BranchCardList",children:[Ye.jsxs("p",{children:[" ",e]}),Ye.jsx(V.Group,{value:c[e],onChange:t=>(async(e,t)=>{let n={[t]:e};u({...c,...n})})(t,e),children:null==(A=null==(o=null==(a=null==(t=Object.values(s))?void 0:t.flat())?void 0:a.filter((e=>{var t,n;return null==(n=null==(t=null==e?void 0:e.CompName)?void 0:t.toLowerCase())?void 0:n.includes(null==p?void 0:p.toLowerCase())})))?void 0:o.filter((e=>"A"===e.ActiveStatus)))?void 0:A.map((t=>(null==t?void 0:t.AppName)===e?Ye.jsx(V,{className:"companyCard",value:null==t?void 0:t.CompId,onChange:e=>(async(e,t,a,s,o,c)=>{var u;try{if(e.target.checked){let e;e="Sadmin"==i?await n(MA({CompId:a,AppId:s})).unwrap():await n(MA({CompId:a,AppId:s,UserId:"Admin"==iA("UserType")?iA("UserId"):r})).unwrap(),n(hh([...d,{AppId:s,CompId:a,BranchId:c}]));const t={...l,[o]:[...l[o]||[],{CompId:a,AppId:s}]};n(fh(t))}else{n(bh({CompId:a,AppId:s})),n(wh({branchAccessData:`${o}-${t}`})),n(xh({CompName:`${o}-${t}`}));const e={...l,[o]:(null==(u=l[o])?void 0:u.filter((e=>!(e.CompId===a&&e.AppId===s))))||[]};n(fh(e))}}catch(p){}})(e,null==t?void 0:t.CompName,null==t?void 0:t.CompId,null==t?void 0:t.AppId,null==t?void 0:t.AppName,null==t?void 0:t.BranchId),children:null==t?void 0:t.CompName},null==t?void 0:t.CompId):null))})]})}))]})},"1")})]})})},wO=()=>{var e,t,n,i;const r=um(),s=Tf(Qh),l=Tf(qh),o=Tf(Hh),d=Tf(Wh),c=Tf(kh),u=Tf(Mh),p=Tf(Ph),A=Tf(Sh),[h,f]=a.useState({}),[m,v]=a.useState(null),[g,y]=a.useState(null),[x,b]=a.useState(""),w=a.useRef({});a.useEffect((()=>{0==(null==d?void 0:d.length)&&b("")}),[d]),a.useEffect((()=>{try{!async function(){var e,t,n,i,a,s,l,o,d,c;if("Branch Admin"==A&&null!=u&&null!=u&&null!=p&&null!=p){let A=await r(SA({UserId:u,AppId:p})).unwrap();1===(null==(e=null==A?void 0:A.data)?void 0:e.statusCode)&&(w.current.UserCount=null==(n=null==(t=null==A?void 0:A.data)?void 0:t.data[0])?void 0:n.UserCount,w.current.UserCountVal=null==(a=null==(i=null==A?void 0:A.data)?void 0:i.data[0])?void 0:a.UserCount,w.current.FeatUserCount=null==(c=null==(d=null==(o=null==(l=null==(s=null==A?void 0:A.data)?void 0:s.data[0])?void 0:l.FeatureDetails)?void 0:o.filter((e=>"User"===e.FeatName)))?void 0:d[0])?void 0:c.FeatConstraint)}}()}catch(e){}}),[c,s]),a.useEffect((()=>{try{async function t(){var e;let t={},n=[];null==(e=Object.keys(o))||e.map((e=>{var i;t[e]=null==(i=o[e])?void 0:i.map((e=>(n.push({BranchId:e.BranchId,CompId:e.CompId,AppId:e.AppId}),e.BranchId)))})),r(hh([...n])),f(t)}t()}catch(e){}}),[o]);const j=a.useCallback((()=>{y(null),v(null)}),[]);return Ye.jsxs("div",{className:"userAccessDiv",children:[Ye.jsx(Qy,{messageType:m,messageData:g,onComplete:j,duration:"5"}),Ye.jsxs("div",{className:"userAccess",children:[Ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"97%"},children:[Ye.jsx("div",{className:"userAccessHeader selectDrpHeading",children:" Branches "}),Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{b(e)},onSearchChange:e=>{var t;b(null==(t=null==e?void 0:e.target)?void 0:t.value)},value:x})})]}),Ye.jsx("div",{className:"userAccessBody ",children:Ye.jsxs("div",{className:"BranchCardListDiv",children:[0===(null==(e=Object.keys(l))?void 0:e.length)&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("p",{style:{color:"gray"},children:" No Branches Found "})}),null==(i=null==(n=null==(t=Object.keys(l))?void 0:t.flat())?void 0:n.filter((e=>{var t;return null==(t=null==e?void 0:e.toLowerCase())?void 0:t.includes(null==x?void 0:x.toLocaleLowerCase())})))?void 0:i.map((e=>{var t,n,i,a;return Ye.jsxs("div",{className:"BranchCardList",children:[Ye.jsxs("p",{children:[" ",e]}),Ye.jsx(V.Group,{value:h[e],onChange:t=>(async(e,t)=>{if("Sadmin"==A){let n={[t]:e};f({...h,...n})}else if("Branch Admin"==A)if(!h.hasOwnProperty(t)||h[t].length<e.length)if(w.current.UserCount+1<=w.current.FeatUserCount){w.current.UserCount=w.current.UserCount+1;let n={[t]:e};f({...h,...n})}else v("warning"),y("The user access limit has been exceeded. To continue using the service, please consider extending your package");else if(w.current.UserCount=w.current.UserCount-1,w.current.UserCount<=w.current.FeatUserCount){let n={[t]:e};f({...h,...n})}})(t,e),children:null==(a=null==(i=null==(n=null==(t=l[e])?void 0:t.flat())?void 0:n.filter((e=>{var t,n;return null==(n=null==(t=e.BrName)?void 0:t.toLowerCase())?void 0:n.includes(null==x?void 0:x.toLocaleLowerCase())})))?void 0:i.filter((e=>"A"===e.ActiveStatus)))?void 0:a.map((t=>Ye.jsx(V,{className:"BranchCard",value:null==t?void 0:t.BrId,onChange:n=>(async(e,t,n,i,a,s)=>{var l;if(e.target.checked){let e=d.filter((function(e){return null!=e&&null!=e}));"Sadmin"==A?r(hh([...e,{BranchId:t,CompId:n,AppId:i}])):"Branch Admin"==A&&w.current.UserCountVal+1<=w.current.FeatUserCount&&(w.current.UserCountVal=w.current.UserCountVal+1,r(hh([...e,{BranchId:t,CompId:n,AppId:i}])));const a={...o,[s]:[...o[s]||[],{CompId:n,AppId:i,BranchId:t}]};r(mh(a))}else{r(bh({CompId:n,BranchId:t})),"Branch Admin"==A&&(w.current.UserCountVal=w.current.UserCountVal-1);const e={...o,[s]:(null==(l=o[s])?void 0:l.filter((e=>!(e.BranchId===t&&e.CompId===n&&e.AppId===i))))||[]};r(mh(e))}})(n,null==t?void 0:t.BrId,null==t?void 0:t.CompId,null==t?void 0:t.AppId,null==t||t.CompName,e),children:null==t?void 0:t.BrName},null==t?void 0:t.BrId)))})]})}))]})})]})]})},jO=()=>{var e;const{Panel:t}=ee,n=um(),i=Tf(Sh),r=Tf(kh),s=Tf(Mh),l=Tf(Vh),o=Tf(Nh),d=Tf(Bh),c=Tf(Rh),u=Tf(Wh),[p,A]=a.useState({}),[h,f]=a.useState("");a.useEffect((()=>{0==(null==u?void 0:u.length)&&f("")}),[u]),a.useEffect((()=>{var e;try{async function a(){var e;let t=await(null==(e=Object.keys(c))?void 0:e.reduce((async(e,t)=>{var a;if(null!=l[t]&&null!=r){let l=await(null==(a=c[t])?void 0:a.reduce((async(e,t)=>{var a,l,o,d;"Sadmin"==i?await n(LA({AppId:t})).unwrap():await n(LA({UserId:"Admin"==iA("UserType")?iA("UserId"):s,AppId:t})).unwrap();let c=await n(TA({UserId:r,AppId:t})).unwrap();return{...await e,[null==(l=null==(a=null==c?void 0:c.data)?void 0:a.data[0])?void 0:l.AppName]:null==(d=null==(o=null==c?void 0:c.data)?void 0:o.data)?void 0:d.map((e=>({CompId:e.CompId,AppId:t})))}}),{}));return{...await e,...await l}}return await e}),{}));n(fh(t??[]))}if("Company Admin"!=i)a();else{let u=[];null==(e=Object.keys(c))||e.map((e=>{c[e].map((e=>{u.push({AppId:e,CompId:o,BranchId:d})}))})),n(hh([...u]))}A(c)}catch(t){}}),[c,l]);return Ye.jsx("div",{className:"userAccessDiv",children:Ye.jsxs("div",{className:"userAccess",children:[Ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"97%"},children:[Ye.jsx("div",{className:"userAccessHeader selectDrpHeading",children:" Apps "}),Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{f(e)},onSearchChange:e=>{var t;f(null==(t=null==e?void 0:e.target)?void 0:t.value)},value:h})})]}),Ye.jsx(ee,{defaultActiveKey:"1",children:Ye.jsx(t,{header:"Hide / Show",children:Ye.jsxs("div",{className:"userAccessBody ",children:[0===Object.keys(l).length&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("p",{style:{color:"gray"},children:" No Apps Found "})}),null==(e=Object.keys(l))?void 0:e.map((e=>{var t,a,r,f;return Ye.jsxs("div",{className:"BranchCardList",children:[Ye.jsxs("p",{children:[" ",e]}),Ye.jsx(V.Group,{value:p[e],onChange:t=>(async(e,t)=>{let n={[t]:e};A({...p,...n})})(t,e),children:null==(f=null==(r=null==(a=null==(t=Object.values(l))?void 0:t.flat())?void 0:a.filter((e=>{var t;return null==(t=e.SubCategoryName)?void 0:t.toLowerCase().includes(null==h?void 0:h.toLowerCase())})))?void 0:r.filter((e=>"A"===e.ActiveStatus)))?void 0:f.map((t=>(null==t?void 0:t.SubCategoryName)===e?Ye.jsx(V,{className:"companyCard",value:null==t?void 0:t.AppId,onChange:a=>(async(e,t,a,r)=>{var l;try{if(e.target.checked){if("Company Admin"!=i)"Sadmin"==i?await n(LA({AppId:a})).unwrap():await n(LA({AppId:a,UserId:"Admin"==iA("UserType")?iA("UserId"):s})).unwrap();else{let e=u.filter((function(e){return null!=e&&null!=e}));n(hh([...e,{AppId:a,CompId:o,BranchId:d}]))}const e={...c,[r]:[...c[r]||[],a]};n(Ah(e))}else{"Company Admin"!=i?(n(yh({AppName:t})),n(bh({AppId:a})),n(jh({companyAccessData:t}))):n(bh({AppId:a}));const e={...c,[r]:(null==(l=c[r])?void 0:l.filter((e=>e!==a)))||[]};n(Ah(e))}}catch(p){}})(a,null==t?void 0:t.AppName,null==t?void 0:t.AppId,e),children:null==t?void 0:t.AppName},null==t?void 0:t.AppId):null))})]})}))]})},"1")})]})})},CO="/assets/defaultAppImage-1225fa73.svg";function SO(e){return Cn({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"}}]})(e)}function NO(e){return Cn({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z"}}]})(e)}function IO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.22 14.78a.75.75 0 001.06 0l7.22-7.22v5.69a.75.75 0 001.5 0v-7.5a.75.75 0 00-.75-.75h-7.5a.75.75 0 000 1.5h5.69l-7.22 7.22a.75.75 0 000 1.06z",clipRule:"evenodd"}}]})(e)}function FO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M2 10a8 8 0 1116 0 8 8 0 01-16 0zm6.39-2.908a.75.75 0 01.766.027l3.5 2.25a.75.75 0 010 1.262l-3.5 2.25A.75.75 0 018 12.25v-4.5a.75.75 0 01.39-.658z",clipRule:"evenodd"}}]})(e)}function BO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M3,3 L21,21 M3,21 L21,3"}}]})(e)}function PO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M7,7 L17,17 M7,17 L17,7"}}]})(e)}function kO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M2,19 L22,19 M2,5 L22,5 M2,12 L22,12"}}]})(e)}function TO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M19,18 L5,18 L19,18 Z M12,18 L12,12 L12,18 Z M15,18 L15,14 L15,18 Z M9,18 L9,14 L9,18 Z M19,22 L19,11.3292943 C20.1651924,10.9174579 21,9.80621883 21,8.5 C21,6.84314575 19.6568542,5.5 18,5.5 C17.6192862,5.5 17.2551359,5.57091725 16.9200387,5.7002623 C16.5495238,3.87433936 14.4600194,2 12,2 C9.53998063,2 7.45047616,3.87433936 7.07996126,5.7002623 C6.74486408,5.57091725 6.38071384,5.5 6,5.5 C4.34314575,5.5 3,6.84314575 3,8.5 C3,9.80621883 3.83480763,10.9174579 5,11.3292943 L5,22 L19,22 Z"}}]})(e)}function EO(e){return Cn({tag:"svg",attr:{t:"1569683928793",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16z m-52 268H212V212h200v200zM864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16z m-52 268H612V212h200v200zM864 544H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z m-52 268H612V612h200v200zM424 712H296V584c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v128H104c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h128v128c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V776h128c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]})(e)}function DO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 0 0 0 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]})(e)}function LO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]})(e)}function UO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]})(e)}function _O(e){return Cn({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]})(e)}function OO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 0 0-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]})(e)}function MO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]})(e)}function RO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]})(e)}function QO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]})(e)}function HO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]})(e)}function VO(e){return Cn({tag:"svg",attr:{t:"1569683915274",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M368 724H252V608c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v116H72c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h116v116c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V788h116c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attr:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v352h72V232h576v560H448v72h272c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM888 625l-104-59.8V458.9L888 399v226z"}},{tag:"path",attr:{d:"M320 360c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h112z"}}]})(e)}function zO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Mobile_1"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M10,18.933h4a.5.5,0,0,0,0-1H10a.5.5,0,0,0,0,1Z"}},{tag:"path",attr:{d:"M16.727,21.937H7.273a2.384,2.384,0,0,1-2.239-2.5V4.563a2.384,2.384,0,0,1,2.239-2.5h9.454a2.384,2.384,0,0,1,2.239,2.5V19.437A2.384,2.384,0,0,1,16.727,21.937ZM7.273,3.063a1.39,1.39,0,0,0-1.239,1.5V19.437a1.39,1.39,0,0,0,1.239,1.5h9.454a1.39,1.39,0,0,0,1.239-1.5V4.563a1.39,1.39,0,0,0-1.239-1.5Z"}}]}]}]})(e)}function qO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Mobile_3"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M16.73,2.065H7.27a2.386,2.386,0,0,0-2.24,2.5v14.87a2.386,2.386,0,0,0,2.24,2.5h9.46a2.386,2.386,0,0,0,2.24-2.5V4.565A2.386,2.386,0,0,0,16.73,2.065Zm1.24,17.37a1.391,1.391,0,0,1-1.24,1.5H7.27a1.391,1.391,0,0,1-1.24-1.5V4.565a1.391,1.391,0,0,1,1.24-1.5H8.8v.51a1,1,0,0,0,1,1h4.4a1,1,0,0,0,1-1v-.51h1.53a1.391,1.391,0,0,1,1.24,1.5Z"}},{tag:"path",attr:{d:"M10,18.934h4a.5.5,0,0,0,0-1H10a.5.5,0,0,0,0,1Z"}}]}]}]})(e)}function WO(e){return Cn({tag:"svg",attr:{version:"1.1",id:"search",x:"0px",y:"0px",viewBox:"0 0 24 24",style:"enable-background:new 0 0 24 24;"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M20.031,20.79c0.46,0.46,1.17-0.25,0.71-0.7l-3.75-3.76c1.27-1.41,2.04-3.27,2.04-5.31\n\t\tc0-4.39-3.57-7.96-7.96-7.96s-7.96,3.57-7.96,7.96c0,4.39,3.57,7.96,7.96,7.96c1.98,0,3.81-0.73,5.21-1.94L20.031,20.79z\n\t\t M4.11,11.02c0-3.84,3.13-6.96,6.96-6.96c3.84,0,6.96,3.12,6.96,6.96c0,3.84-3.12,6.96-6.96,6.96C7.24,17.98,4.11,14.86,4.11,11.02\n\t\tz"}}]}]})(e)}function YO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 19.65625 4.3125 C 18.882813 4.40625 18.195313 4.953125 17.96875 5.75 L 15.3125 15.0625 L 11.96875 16.03125 C 11.730469 14.335938 10.257813 13 8.5 13 C 6.578125 13 5 14.578125 5 16.5 C 5 18.421875 6.578125 20 8.5 20 C 9.789063 20 10.925781 19.269531 11.53125 18.21875 L 14.65625 17.34375 L 13.78125 20.46875 C 12.730469 21.074219 12 22.210938 12 23.5 C 12 25.421875 13.578125 27 15.5 27 C 17.421875 27 19 25.421875 19 23.5 C 19 21.742188 17.664063 20.269531 15.96875 20.03125 L 20.4375 4.375 C 20.171875 4.300781 19.914063 4.28125 19.65625 4.3125 Z M 27.625 11.5625 L 18.90625 14.03125 L 18.25 16.3125 L 26.25 14.03125 C 27.3125 13.726563 27.929688 12.625 27.625 11.5625 Z M 8.5 15 C 9.339844 15 10 15.660156 10 16.5 C 10 17.339844 9.339844 18 8.5 18 C 7.660156 18 7 17.339844 7 16.5 C 7 15.660156 7.660156 15 8.5 15 Z M 15.5 22 C 16.339844 22 17 22.660156 17 23.5 C 17 24.339844 16.339844 25 15.5 25 C 14.660156 25 14 24.339844 14 23.5 C 14 22.660156 14.660156 22 15.5 22 Z"}}]})(e)}function KO(e){return Cn({tag:"svg",attr:{version:"1.2",baseProfile:"tiny",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 3s-6.186 5.34-9.643 8.232c-.203.184-.357.452-.357.768 0 .553.447 1 1 1h2v7c0 .553.447 1 1 1h3c.553 0 1-.448 1-1v-4h4v4c0 .552.447 1 1 1h3c.553 0 1-.447 1-1v-7h2c.553 0 1-.447 1-1 0-.316-.154-.584-.383-.768-3.433-2.892-9.617-8.232-9.617-8.232z"}}]})(e)}function GO(e){return Cn({tag:"svg",attr:{version:"1.2",baseProfile:"tiny",viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M20.756 5.345c-.191-.219-.466-.345-.756-.345h-13.819l-.195-1.164c-.08-.482-.497-.836-.986-.836h-2.25c-.553 0-1 .447-1 1s.447 1 1 1h1.403l1.86 11.164.045.124.054.151.12.179.095.112.193.13.112.065c.116.047.238.075.367.075h11.001c.553 0 1-.447 1-1s-.447-1-1-1h-10.153l-.166-1h11.319c.498 0 .92-.366.99-.858l1-7c.041-.288-.045-.579-.234-.797zm-1.909 1.655l-.285 2h-3.562v-2h3.847zm-4.847 0v2h-3v-2h3zm0 3v2h-3v-2h3zm-4-3v2h-3l-.148.03-.338-2.03h3.486zm-2.986 3h2.986v2h-2.653l-.333-2zm7.986 2v-2h3.418l-.285 2h-3.133z"}},{tag:"circle",attr:{cx:"8.5",cy:"19.5",r:"1.5"}},{tag:"circle",attr:{cx:"17.5",cy:"19.5",r:"1.5"}}]}]})(e)}function $O(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M288 16l32 16s-25.2 44.02-16 64c5 10.8 32 16 32 16-16 32-32 80-32 96 80 48 80 144 160 176 0 64-80 112-208 112S48 448 48 384c80-32 80-128 160-176 0-16-16-64-32-96 0 0 27-5.2 32-16 9.2-19.98-16-64-16-64l32-16c0 32 16 48 32 48s32-16 32-48z"}}]})(e)}function XO(e){return Cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M150.902 268.233h-42.1a23.347 23.347 0 0 1 42.1 0zm67.359-13.292a114.847 114.847 0 0 1 1.203-16.31 23.335 23.335 0 0 0-18.68 29.602h18.295a113.38 113.38 0 0 1-.77-13.292zm-94.532-86.027c-15.637-15.637-36.638-32.164-55.162-32.164h-1.54l.975 19.246c8.913-.433 23.287 8.3 39.489 24.056q1.528 1.48 2.995 2.972a42.58 42.58 0 0 1 8.083-.95 42.34 42.34 0 0 1 5.208-13.172zm24.37-18.933a68.706 68.706 0 0 0 6.928-9.743 71.172 71.172 0 0 0 7.11-16.55 70.174 70.174 0 0 0 2.706-17.695 67.72 67.72 0 0 0-1.672-16.575 69.043 69.043 0 0 0-2.01-7 63.499 63.499 0 0 0-2.236-5.594 53.963 53.963 0 0 0-1.889-3.728c-.228-.433-.469-.782-.601-1.01l-.217-.35-.36.18c-.241.121-.614.302-1.035.542a52.092 52.092 0 0 0-3.609 2.177 52.07 52.07 0 0 0-4.811 3.609 69.031 69.031 0 0 0-5.377 4.907 67.72 67.72 0 0 0-10.104 13.232 70.174 70.174 0 0 0-6.964 16.49 71.16 71.16 0 0 0-2.719 17.779 68.562 68.562 0 0 0 1.672 16.575 66.337 66.337 0 0 0 4.234 12.546c.47 1.058.927 1.96 1.336 2.718a42.713 42.713 0 0 1 19.666-12.522zm342.413-43.903c-.228-.133-.59-.35-1.022-.578a43.443 43.443 0 0 0-3.777-1.804c-1.6-.674-3.5-1.42-5.641-2.105a69.031 69.031 0 0 0-7.049-1.84 67.72 67.72 0 0 0-16.611-1.263 70.174 70.174 0 0 0-17.634 3.127 71.172 71.172 0 0 0-16.31 7.41 68.562 68.562 0 0 0-13.003 10.428l-.542.578a69.633 69.633 0 0 1 12.618 22.168 68.67 68.67 0 0 0 11.307.421 71.16 71.16 0 0 0 17.646-3.091 70.174 70.174 0 0 0 16.322-7.362 67.72 67.72 0 0 0 13.003-10.428 69.02 69.02 0 0 0 4.811-5.497c1.384-1.78 2.55-3.44 3.477-4.932.926-1.492 1.635-2.718 2.093-3.609.24-.433.409-.817.517-1.058l.18-.373zm-85.642-66.06c-.433-1.697-.854-3.296-.986-4.018l-18.981 3.488c.252 1.384.685 3.043 1.275 5.329 2.814 10.898 9.298 36.013 1.48 58.23a69.97 69.97 0 0 1 16.165 11.595c12.787-28.928 4.511-61.032.999-74.625zM180.179 476h122.618a159.112 159.112 0 0 0 159.112-159.112v-29.41H21.103V316.9A159.112 159.112 0 0 0 180.179 476zm245.163-221.059a93.545 93.545 0 0 0-26.03-64.845 50.4 50.4 0 1 0-94.05-25.26 93.822 93.822 0 0 0-66.745 103.445h185.839a94.604 94.604 0 0 0 .986-13.34zm-244.718 6.748a42.412 42.412 0 0 1 10.609-28.074 23.383 23.383 0 0 0-43.555 6.014 42.81 42.81 0 0 1 23.492 28.28 23.287 23.287 0 0 0 9.622-2.407 43.845 43.845 0 0 1-.168-3.813zm-79.388-14.963a23.383 23.383 0 0 0-41.522 21.495h28.688a42.665 42.665 0 0 1 12.822-21.495zm79.845-66.686a23.371 23.371 0 0 0-43.543 5.642 42.905 42.905 0 0 1 19.51 18.427 42.292 42.292 0 0 1 11.44-2.153 42.653 42.653 0 0 1 12.58-21.916zm29 7.819a23.383 23.383 0 0 0-22.685 17.537 42.905 42.905 0 0 1 19.534 16.924 42.316 42.316 0 0 1 16.335-3.271h.854a111.36 111.36 0 0 1 7.373-17.177 23.383 23.383 0 0 0-21.41-14.013zm-69.524 26.402a23.36 23.36 0 0 0-43.483 4.174 42.905 42.905 0 0 1 20.966 18.945 42.557 42.557 0 0 1 10.826-1.648 42.593 42.593 0 0 1 11.691-21.47z"}}]})(e)}const JO=({searchText:e})=>{const t=um(),n=Qt(),[i,r]=a.useState([]),[s,l]=a.useState([]),[o,d]=a.useState(!0),[c,u]=a.useState("name"),[p,A]=a.useState("grid"),[h,f]=a.useState("All Solutions"),[m,v]=a.useState([]),[g,y]=a.useState("");a.useEffect((()=>{!async function(){var e,n,i,a,s;d(!0);try{const o=iA("UserId"),d=await t(BD({userId:o})).unwrap();if(null==(e=null==d?void 0:d.data)?void 0:e.statusCode){r(null==(n=null==d?void 0:d.data)?void 0:n.data),l(null==(i=null==d?void 0:d.data)?void 0:i.data);const e=(null==(s=null==(a=null==d?void 0:d.data)?void 0:a.data)?void 0:s.flatMap((e=>{var t;return(null==(t=e.AppDetails)?void 0:t.map((t=>({...t,categoryName:e.SubCategoryName,categoryImage:e.subCategoryImage,rating:t.Rating||(2*Math.random()+3).toFixed(1),reviewCount:Math.floor(2e3*Math.random())+500,activeUsers:Math.floor(50*Math.random())+10,integrations:Math.floor(200*Math.random())+50,features:x(t.AppName,e.SubCategoryName),certifications:b(t.AppName),setupTime:Math.floor(4*Math.random())+1,isFavorited:Math.random()>.7,monthlyPrice:t.NetPrice||t.Price||Math.floor(500*Math.random())+99,annualPrice:Math.floor(10*(t.NetPrice||t.Price||299)),hasFreeTrial:Math.random()>.3,trialDays:Math.floor(14*Math.random())+7}))))||[]})))||[];v(e)}}catch(o){}finally{d(!1)}}()}),[]);const x=(e,t)=>({ERP:["Manufacturing","Financial Management","HR & Payroll"],Bakery:["Inventory Management","Order Processing","Customer Management"],Boating:["Fleet Management","Maintenance Tracking","Route Planning"],Saloon:["Appointment Booking","Customer Records","Payment Processing"],"Wholesale Retail":["Inventory Control","Sales Analytics","Supplier Management"]}[t]||["Core Features","Analytics","Reporting"]),b=e=>{const t=[];return Math.random()>.5&&t.push("ISO 27001"),Math.random()>.6&&t.push("SOC 2"),Math.random()>.7&&t.push("GDPR Compliant"),t},w=e=>({Bakery:Ye.jsx(TO,{}),Restaurant:Ye.jsx(ii,{}),Boating:Ye.jsx(Jg,{}),ERP:Ye.jsx(QO,{}),"Electrical & Electronics":Ye.jsx(qO,{}),Saloon:Ye.jsx(YO,{}),Wholesale:Ye.jsx(Xg,{}),Retail1:Ye.jsx(GO,{}),"Retail Store":Ye.jsx(GO,{}),"Electronic Retailer":Ye.jsx(QO,{}),"Mobile & Accessories":Ye.jsx(qO,{}),"Grocery Stores":Ye.jsx(XO,{}),"Apparels & Textiles":Ye.jsx($O,{}),"Wellness & Spa":Ye.jsx(oE,{}),Wholesale:Ye.jsx(Xg,{}),"Hardware Stores":Ye.jsx(OU,{}),"ndustrial Manufacturing":Ye.jsx(gi,{}),"Blue Metal Suppliers":Ye.jsx(NO,{})}[e]||Ye.jsx(NO,{})),j=e=>{const t=document.querySelector(".category-filters");"left"===e?t.scrollBy({left:-200,behavior:"smooth"}):t.scrollBy({left:200,behavior:"smooth"})};if(o)return Ye.jsxs("div",{className:"loading-container",children:[Ye.jsx("div",{className:"loading-spinner"}),Ye.jsx("p",{children:"Loading applications..."})]});const C=[{name:"All Solutions",count:m.length,icon:Ye.jsx(NO,{})},...[...new Set(m.map((e=>e.categoryName)))].map((e=>{const t=m.filter((t=>t.categoryName===e)).length,n=w(e);return{name:e,count:t,icon:n}}))],S=(()=>{let e=m;if("All Solutions"!==h&&(e=e.filter((e=>e.categoryName===h))),g.trim()){const t=g.toLowerCase();e=e.filter((e=>e.AppName.toLowerCase().includes(t)||e.PricingName&&e.PricingName.toLowerCase().includes(t)||e.AppDescription&&e.AppDescription.toLowerCase().includes(t)||e.categoryName.toLowerCase().includes(t)))}return e})(),N=(I=S,[...I].sort(((e,t)=>{switch(c){case"name":return e.AppName.localeCompare(t.AppName);case"date":return new Date(t.CreatedDate||0)-new Date(e.CreatedDate||0);case"rating":return(t.rating||0)-(e.rating||0);default:return 0}})));var I;const F={bakery:"https://i.pinimg.com/1200x/ae/8b/01/ae8b01cf687d513e061000f1f285cb56.jpg",agro:"https://i.pinimg.com/736x/f3/ac/93/f3ac937d72269d8c33ce5534de1abb61.jpg","biller pro":"https://i.pinimg.com/736x/db/c9/44/dbc94422cfbbb68e8d1ba3cbbacc063c.jpg",boating:"https://i.pinimg.com/1200x/64/22/f2/6422f22981ad0a1dbaae7466e2f255da.jpg"},B=e=>{if(!e)return CO;const t=e.toLowerCase().trim().replace(/\s+/g," ");return F[t]||CO};return Ye.jsxs("div",{className:"application-list-container",children:[Ye.jsxs("div",{className:"moreappsTitle",children:[Ye.jsx("div",{children:"Business Solutions Marketplace"}),Ye.jsx("p",{children:"All-in-one SaaS solutions for every industry from retail, hospitality, and more."})]}),Ye.jsxs("div",{className:"category-filter-bar",children:[Ye.jsx("div",{className:"LRScrollBTN",onClick:()=>j("left"),children:Ye.jsx(Zm,{})}),Ye.jsx("div",{className:"category-filters",children:C.map(((e,t)=>Ye.jsxs("div",{className:"category-filter-item "+(h===e.name?"active":""),onClick:()=>f(e.name),children:[Ye.jsx("div",{className:"category-icon",children:e.icon}),Ye.jsx("div",{className:"category-name",children:e.name}),Ye.jsx("div",{className:"category-count",children:e.count})]},t)))}),Ye.jsx("div",{className:"LRScrollBTN",onClick:()=>j("right"),children:Ye.jsx(ev,{})})]}),Ye.jsxs("div",{className:"apps-section-header",children:[Ye.jsxs("div",{className:"header-actions",children:[Ye.jsxs("div",{className:"searchBar",children:[Ye.jsx(tD,{size:20,color:"#919191"}),Ye.jsx("input",{className:"searchInput",placeholder:"Search applications...",value:g,onChange:e=>{y(e.target.value)}})]}),Ye.jsxs("button",{className:"filterBtn",children:[Ye.jsx(Nn,{size:16})," Advanced Filters"]})]}),Ye.jsxs("div",{className:"sort-controls",children:[Ye.jsx("label",{children:"Sort by:"}),Ye.jsxs("select",{value:c,onChange:e=>u(e.target.value),children:[Ye.jsx("option",{value:"name",children:"Name"}),Ye.jsx("option",{value:"date",children:"Date Added"}),Ye.jsx("option",{value:"rating",children:"Rating"})]})]}),Ye.jsxs("div",{className:"view-controls",children:[Ye.jsx("button",{className:"view-btn "+("grid"===p?"active":""),onClick:()=>A("grid"),children:"⊞"}),Ye.jsx("button",{className:"view-btn "+("list"===p?"active":""),onClick:()=>A("list"),children:"☰"})]})]}),Ye.jsx("div",{className:"applicationList",children:N.length>0?Ye.jsx("div",{className:`apps-grid ${p}`,children:N.map((e=>{const t=Math.floor(30*Math.random())+1,i=t>5,a=t<=5&&t>0,r=t<=0;return Ye.jsxs("div",{className:`enterprise-card ${i?"active":""} ${r?"expired":""} ${a?"expiring":""}`,children:[Ye.jsx("div",{className:"card-header",children:Ye.jsx("img",{src:B(null==e?void 0:e.AppName),alt:e.AppName,className:"header-bg-image"})}),Ye.jsxs("div",{className:"card-content",children:[Ye.jsxs("div",{children:[Ye.jsx("div",{className:"category-type",children:Ye.jsx("span",{className:"category",children:e.categoryName})}),Ye.jsx("h2",{className:"app-title",children:e.AppName}),Ye.jsx("p",{className:"app-description",children:e.AppDescription||`All-in-one ${e.AppName} solution for ${e.categoryName.toLowerCase()} companies`})]}),Ye.jsxs("div",{className:"cta-section1",children:[Ye.jsxs("button",{className:"primary-cta",onClick:()=>{var t;nA("AppId",e.AppId),nA("AppName",e.AppName),n(""+("/home/"+(null==(t=e.AppName)?void 0:t.toLowerCase()))),window.location.reload()},children:[Ye.jsx(Iv,{}),"Start Free Trial"]}),e.hasFreeTrial&&Ye.jsxs("div",{className:"trial-info",children:[Ye.jsx(te,{twoToneColor:"#52c41a"}),e.trialDays,"-day free trial • No credit card required"]})]})]})]},e.AppId)}))}):Ye.jsxs("div",{className:"no-results",children:[Ye.jsx("div",{className:"no-results-icon",children:Ye.jsx(qO,{})}),Ye.jsx("h3",{children:"No applications found"}),Ye.jsx("p",{children:"Try adjusting your search criteria or check back later for new applications."})]})})]})},ZO="/assets/defaultProfile-096cbc2d.png",eM=e=>{const t=Tf(SD),n=um(),i=iA("UserType"),[r,s]=a.useState(!0),[l,o]=a.useState(!1),[d,c]=a.useState((null==t?void 0:t.UserImage)&&""!=(null==t?void 0:t.UserImage)?null==t?void 0:t.UserImage:ZO),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState(!1),[v,x]=a.useState(!1),[b,w]=a.useState(null==t?void 0:t.MobileNo),[C,S]=a.useState(!1),[N,F]=a.useState(iA("UserId")?iA("UserId"):null),[B,P]=a.useState(),[T,E]=a.useState(!1),[D,L]=a.useState(Array(6).fill("")),[U,_]=a.useState(!1),[O,M]=a.useState(),[H,V]=a.useState(0),[z,q]=a.useState(!1),W=ne();a.useEffect((()=>{var e,n,i;w(t.MobileNo),t.MobileNo&&(P({UserName:t.UserName,MailId:t.MailId,MobileNo:t.MobileNo}),null==(e=W.current)||e.setFieldsValue({UserName:t.UserName}),null==(n=W.current)||n.setFieldsValue({MobileNo:t.MobileNo}),null==(i=W.current)||i.setFieldsValue({MailId:t.MailId}))}),[t]);a.useEffect((()=>{"edit"===(null==e?void 0:e.status)&&(async()=>{await n(vD(N)).unwrap(),s(!1),o(!0)})()}),[e]),a.useEffect((()=>{if(!H)return;const e=setInterval((()=>V((e=>e-1))),2e3);return()=>clearInterval(e)}),[H]);const Y=a.useCallback((()=>{h(null),p(null)}),[]),K=()=>E(!1);return Ye.jsxs("div",{className:"userAccountUserName",children:[r&&Ye.jsxs("div",{className:"showData",children:[Ye.jsx("div",{className:"profileImage userAccountField",children:Ye.jsx("img",{src:(null==t?void 0:t.UserImage)?null==t?void 0:t.UserImage:ZO,alt:"profile image",width:"150px",height:"150px",style:{borderRadius:"inherit"}})}),Ye.jsxs("div",{className:"userNameDiv userAccountField",children:[Ye.jsx("p",{className:"heading",children:"Full Name"}),Ye.jsx("p",{children:null==t?void 0:t.UserName})]}),Ye.jsxs("div",{className:"userEmailAddress userAccountField",children:[Ye.jsx("p",{className:"heading",children:"Email Address"}),Ye.jsx("p",{children:null==t?void 0:t.MailId})]}),Ye.jsxs("div",{className:"userAccountField",children:[Ye.jsx("p",{className:"heading",children:"Phone"}),Ye.jsx("p",{children:null==t?void 0:t.MobileNo})]}),Ye.jsx("div",{className:"userAccountButton",children:Ye.jsxs("button",{onClick:()=>{s(!1),o(!0)},children:["Edit ",Ye.jsxs("span",{children:[Ye.jsx(BU,{})," "]})]})})]}),l&&Ye.jsxs("div",{className:"editData",children:[Ye.jsxs("div",{className:"backClassUser",onClick:()=>{s(!0),o(!1)},children:[Ye.jsx(DO,{})," Back"]}),Ye.jsxs(I,{ref:W,className:"formDivAnt",onFinish:async e=>{var t,i,a,r,l,c,u,A;if(iA("UserId")){e.UserImage=d||ZO,e.UserId=iA("UserId"),e.UpdatedBy=iA("UserId");const f=await n(gD(e)).unwrap();1===(null==(t=null==f?void 0:f.data)?void 0:t.statusCode)?(h(null==(i=null==f?void 0:f.data)?void 0:i.response),p("success"),s(!0),o(!1),n(ND({userData:e})),nA("userName",null==e?void 0:e.UserName),(null==(a=null==f?void 0:f.data)?void 0:a.MobileNoUpdate)&&(sessionStorage.setItem("auth",null==(r=null==f?void 0:f.data)?void 0:r.token),nA("MobileNo",null==(l=null==f?void 0:f.data)?void 0:l.MobileNo))):2===(null==(c=null==f?void 0:f.data)?void 0:c.statusCode)?(h(null==(u=null==f?void 0:f.data)?void 0:u.response),p("warning"),s(!0),o(!1)):(h(null==(A=null==f?void 0:f.data)?void 0:A.response),p("error"))}else h("Not valid User"),p("error")},initialValues:B,children:[Ye.jsx(I.Item,{name:"UserName",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter User Name"},{validator:async(e,t)=>"9999999999"===t&&"Admin"===i?(E(!0),L(Array(6).fill("")),_(!1),V(0),(async()=>{var e,t;try{const i={MobileNo:b},a=await n(xm(i)).unwrap();1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)&&(M(null==(t=null==a?void 0:a.data)?void 0:t.OTP),V(30))}catch(i){}})(),Promise.reject()):(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"UserName",autoComplete:"off",label:"Full Name",fieldState:!0,fieldApi:!0,isOnChange:!0})}),Ye.jsx(I.Item,{name:"MailId",rules:[{pattern:/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,message:"Enter a Valid MailId"}],children:Ye.jsx(Oy,{field:"MailId",autoComplete:"off",label:"Email Address",fieldState:!0,fieldApi:!0,isOnChange:!0})}),Ye.jsx(I.Item,{name:"MobileNo",rules:[{pattern:/^[0-9]{10}$/,message:"Enter a Valid MobileNo",required:!0}],children:Ye.jsx(Oy,{field:"MobileNo",autoComplete:"off",maxLength:"10",label:Ye.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"129px"},children:[Ye.jsx("label",{className:"required",style:{marginBottom:0,fontSize:"12px"},children:"Mobile Number"}),f&&Ye.jsx("span",{className:"otp-verified-icon",style:{color:"#52c41a",fontSize:"20px",lineHeight:1,display:"flex",alignItems:"center"},children:Ye.jsx(rg,{})})]}),fieldState:!0,fieldApi:!0,isOnChange:!0,inputMode:"numeric",onInput:async e=>{var t,n,i;if(m(!1),e.target.value=null==(n=null==(t=null==e?void 0:e.target)?void 0:t.value)?void 0:n.replace(/[^0-9]/g,""),10===(null==(i=e.target.value)?void 0:i.length)&&e.target.value!==b)try{S(!0),x(e.target.value)}catch(a){}}})}),Ye.jsxs("div",{className:"upload_btn",children:[Ye.jsx("p",{children:"Upload Profile"}),Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>{c(e||null)},ImageLink:t.UserImage?t.UserImage:ZO})]}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0})})]})]}),Ye.jsx(Qy,{messageType:u,messageData:A,onComplete:Y}),Ye.jsx(tE,{open:C,close:S,mobileNo:v,userId:N,ChangeMobileFun:()=>{var e;null==(e=W.current)||e.setFieldsValue({MobileNo:""}),S(!1),x("")},SuccessOtp:()=>{x(!1),S(!1),x(""),m(!0)}}),Ye.jsx(j,{title:"Setting",open:T,onCancel:K,width:500,footer:null,children:U?Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("input",{type:"checkbox",checked:z,onChange:e=>{q(e.target.checked),nA("SalesReport",e.target.checked)}})," ","Actual Sales Report",Ye.jsx("div",{style:{marginTop:20,display:"flex",justifyContent:"space-between",alignItems:"center"},children:Ye.jsx(y,{type:"primary",onClick:K,children:"Save"})})]}):Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("p",{children:"Enter 6-digit OTP:"}),Ye.jsx(R,{gutter:10,children:D.map(((e,t)=>Ye.jsx(Q,{children:Ye.jsx(g,{id:`otp-${t}`,value:e,maxLength:1,onChange:e=>((e,t)=>{var n;if(!/^\d?$/.test(t))return;const i=[...D];i[e]=t,L(i),t&&e<D.length-1&&(null==(n=document.getElementById(`otp-${e+1}`))||n.focus())})(t,e.target.value),autoComplete:"off",style:{width:50,textAlign:"center"}})},t)))}),Ye.jsxs("div",{style:{marginTop:20,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[Ye.jsx("span",{children:H>0?`Resend OTP in ${H}s`:""}),Ye.jsx(y,{type:"primary",onClick:()=>{const e=D.join("");U?E(!1):e==O?_(!0):alert("Please enter the correct 6-digit OTP")},children:"Submit"})]})]})})]})},tM=e=>Ye.jsxs("div",{className:"userAccountCont",children:[Ye.jsx("div",{className:"myProfileHeading",children:"My Profile"}),Ye.jsx("div",{children:Ye.jsx(eM,{status:null==e?void 0:e.status})})]}),nM=({Password:e,formType:t,Mode:n,ChangeMode:i})=>{var r;let s=null==(r=null==e?void 0:e[0])?void 0:r.Password;const l=a.useRef(null),o=um(),[d,c]=a.useState(!1),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState(!1),[v,g]=a.useState(!1),[y,x]=a.useState(),[b,w]=a.useState();a.useEffect((()=>{n||c(n)}),[n]),a.useEffect((()=>{i(d)}),[d]);const j=a.useCallback((()=>{h(null),p(null)}),[]);return Ye.jsx("div",{className:"pageOverAllUser",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:u,messageData:A,onComplete:j}),Ye.jsx("div",{className:"formedit",children:Ye.jsxs("div",{className:"backBtn",children:[Ye.jsx(ab,{title:"Password"}),d?Ye.jsxs("div",{className:"backBtn2",onClick:()=>(async()=>{c(!1)})(),children:[" ",Ye.jsx($,{})," Back"," "]}):null]})}),d?null:Ye.jsx("div",{className:"ChangePW_Div",children:Ye.jsxs(R,{children:[Ye.jsx(Q,{flex:"1 1 200px",children:Ye.jsx("p",{children:"N"===s?"Set Password":"Change Password"})}),Ye.jsx(Q,{flex:"1 1 100px",children:Ye.jsxs("button",{className:"edit_btn",onClick:()=>(async()=>{c(!0)})(),children:["Edit ",Ye.jsx(D,{})," "]})})]})}),d?Ye.jsx("div",{className:"formDiv noheight",children:Ye.jsxs(I,{ref:l,className:"formDivAnt",onFinish:async e=>{var t,n;if(iA("UserId")){let i=e,a={};i.Password=e.NewPassword,i.UpdatedBy=iA("UserId"),i.UserId=iA("UserId"),a=await o(yD(i)).unwrap(),1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)?(p("success"),h("Password Updated Successfully"),c(!1)):(p("error"),h(null==(n=null==a?void 0:a.data)?void 0:n.response))}else p("error"),h("Not valid user")},children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"NewPassword",rules:[{required:!0,message:"Please Enter New Password!"},{validator:async(e,t)=>{var n;await lA(t);const i=null==(n=l.current)?void 0:n.getFieldValue("ConfirmPassword");return t&&i&&t!==i?Promise.reject("Passwords must be the same"):Promise.resolve()}}],children:Ye.jsx(Oy,{field:"NewPassword",type:f?"text":"password",name:"NewPassword",label:Ye.jsx("label",{className:"required",children:"New Password"}),fieldState:!0,fieldApi:!0,onChange:e=>{var t,n,i,a,r,s;x(null==(t=null==e?void 0:e.target)?void 0:t.value);const o=null==(n=l.current)?void 0:n.getFieldValue("ConfirmPassword");null==(a=l.current)||a.setFieldsValue({NewPassword:null==(i=null==e?void 0:e.target)?void 0:i.value}),o&&(null==(r=null==e?void 0:e.target)?void 0:r.value)===o&&(null==(s=l.current)||s.validateFields(["ConfirmPassword"]))},id:"error2",autocomplete:"off",isOnChange:"edit"==t,suffix:Ye.jsx(Ye.Fragment,{children:f?Ye.jsx(q,{onClick:()=>{m(!1)}}):Ye.jsx(W,{onClick:()=>{m(!0)}})})})}),Ye.jsx(I.Item,{name:"ConfirmPassword",rules:[{required:!0,message:"Please Enter Confirm Password!"},({getFieldValue:e})=>({async validator(t,n){await lA(n);const i=e("NewPassword");return n&&i&&n!==i?Promise.reject("Passwords must be the same"):Promise.resolve()}})],children:Ye.jsx(Oy,{field:"ConfirmPassword",type:v?"text":"password",name:"ConfirmPassword",label:Ye.jsx("label",{className:"required",children:"Confirm Password"}),fieldState:!0,onChange:e=>{var t,n,i,a,r,s;w(null==(t=null==e?void 0:e.target)?void 0:t.value);const o=null==(n=l.current)?void 0:n.getFieldValue("NewPassword");null==(a=l.current)||a.setFieldsValue({ConfirmPassword:null==(i=null==e?void 0:e.target)?void 0:i.value}),o&&(null==(r=null==e?void 0:e.target)?void 0:r.value)===o&&(null==(s=l.current)||s.validateFields(["NewPassword"]))},fieldApi:!0,id:"error2",autocomplete:"off",isOnChange:"edit"==t,suffix:Ye.jsx(Ye.Fragment,{children:v?Ye.jsx(q,{onClick:()=>{g(!1)}}):Ye.jsx(W,{onClick:()=>{g(!0)}})})})})]})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})})]})}):null]})})})},iM=({Pin:e,formType:t,Mode:n,ChangeMode:i})=>{var r;const s=a.useRef(null),l=um(),[o,d]=a.useState(!1),[c,u]=a.useState(null),[p,A]=a.useState(null),[h,f]=a.useState(!1);a.useEffect((()=>{n||d(n)}),[n]),a.useEffect((()=>{i(o)}),[o]);const m=a.useCallback((()=>{A(null),u(null)}),[]);let v=null==(r=null==e?void 0:e[0])?void 0:r.Pin;return Ye.jsx("div",{className:"pageOverAllUser",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:c,messageData:p,onComplete:m}),Ye.jsx("div",{className:"formedit",children:Ye.jsxs("div",{className:"backBtn",children:[Ye.jsx(ab,{title:"PIN"}),o?Ye.jsxs("div",{className:"backBtn2",onClick:()=>(async()=>{d(!1)})(),children:[" ",Ye.jsx($,{})," Back"," "]}):null]})}),o?null:Ye.jsx("div",{className:"ChangePW_Div",children:Ye.jsxs(R,{children:[Ye.jsx(Q,{flex:"1 1 100px",children:Ye.jsx("p",{children:"N"===v?"Set Pin":"Change Pin"})}),Ye.jsx(Q,{flex:"1 1 100px",children:Ye.jsxs("button",{className:"edit_btn",onClick:()=>(async()=>{d(!0)})(),children:["Edit ",Ye.jsx(D,{})," "]})})]})}),o?Ye.jsx("div",{className:"formDiv noheight",children:Ye.jsxs(I,{ref:s,className:"formDivAnt",onFinish:async e=>{var t,n;if(iA("UserId")){let i=e,a={};i.Pin=e.NewPin,i.UpdatedBy=iA("UserId"),i.UserId=iA("UserId"),a=await l(xD(i)).unwrap(),1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)?(u("success"),A("Pin Updated Successfully"),d(!1)):(u("error"),A(null==(n=null==a?void 0:a.data)?void 0:n.response))}else u("error"),A("Not valid user")},children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsx("div",{className:"inputForm",children:Ye.jsx(I.Item,{name:"NewPin",rules:[{required:!0,message:"Please Enter your New Pin!"},{validator:async(e,t)=>(await lA(t),t&&t.length>4?Promise.reject("Pin should not exceed 4 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"NewPin",type:h?"text":"password",name:"NewPin",label:Ye.jsx("label",{className:"required",children:"New PIN"}),fieldState:!0,fieldApi:!0,maxlength:"4",id:"error2",autocomplete:"off",isOnChange:"edit"==t,suffix:Ye.jsx(Ye.Fragment,{children:h?Ye.jsx(q,{onClick:()=>{f(!1)}}):Ye.jsx(W,{onClick:()=>{f(!0)}})}),inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")})})})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})})]})}):null]})})})},aM=()=>{const e=um(),t=iA("UserId"),[n,i]=a.useState(),[r,s]=a.useState(),[l,o]=a.useState(!0),[d,c]=a.useState(!0);a.useEffect((()=>{u()}),[]);const u=async()=>{var n,a;let r={UserId:t,ActiveStatus:"A"};const l=await e(bD(r)).unwrap();i(null==(n=null==l?void 0:l.data)?void 0:n.data),s(null==(a=null==l?void 0:l.data)?void 0:a.data)};return Ye.jsxs("div",{className:"userAccountSec",children:[Ye.jsx("div",{className:"myProfileHeading",children:"Security"}),Ye.jsxs("div",{className:"securityContentPage",children:[Ye.jsx(nM,{Password:n,Mode:l,ChangeMode:async e=>{c(!e)}}),Ye.jsx(iM,{Pin:r,Mode:d,ChangeMode:async e=>{o(!e)}})]})]})},rM=()=>{const e=um(),t=Tf(AD),[n,i]=a.useState(iA("UserType")?iA("UserType"):null),[r,s]=a.useState(iA("UserId")?iA("UserId"):null);return a.useEffect((()=>{"Admin"===n||"Admin User"===n?e(cD({UserId:r})).unwrap():"Employee"===n?e(cD({UserId:r,Type:"E"})).unwrap():"Super Admin"!==n&&"Super Admin User"!==n||e(cD()).unwrap()}),[n,r]),Ye.jsxs("div",{children:[Ye.jsxs("div",{className:"homeAppHeadder",children:[Ye.jsx("div",{className:"homePageAppIcon",children:Ye.jsx("img",{src:oD})}),Ye.jsx("div",{children:Ye.jsx("h2",{children:"Notifications"})})]}),Ye.jsx("div",{className:"homeNotification",children:Ye.jsx("ul",{children:0===(null==t?void 0:t.length)?Ye.jsx(X,{}):null==t?void 0:t.map(((e,t)=>Ye.jsx("li",{style:{marginBottom:"8px"},children:e.Message},t)))})})]})},sM=()=>{const e=um(),{Text:t}=ie,n=a.useRef(null),[i,r]=a.useState(null),[s,l]=a.useState(null),[o,d]=a.useState(null),[c,u]=a.useState(null),p=iA("UserId");iA("AppId");const A=a.useCallback((()=>{u(null),d(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:o,messageData:c,onComplete:A}),Ye.jsxs("div",{className:"userAccountSec",children:[Ye.jsx("div",{className:"myProfileHeading",children:"Referral"}),Ye.jsx("div",{className:"securityContentPage",style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"2rem",backgroundColor:"#f8f9fa"},children:Ye.jsxs("div",{style:{width:"100%",maxWidth:"600px",backgroundColor:"#fff",borderRadius:"8px",padding:"2rem",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},children:[Ye.jsx(ab,{title:"Mobile No"}),Ye.jsx(I,{ref:n,className:"formDivAnt",onFinish:async()=>{var t,n,a,r,s;let o={UserId:p,MobileNo:i,CreatedBy:p},c=await e(wD(o)).unwrap();1==(null==(t=null==c?void 0:c.data)?void 0:t.statusCode)?(l(null==(n=null==c?void 0:c.data)?void 0:n.ReferralCode),u(null==(a=null==c?void 0:c.data)?void 0:a.response),d("Referral Code Already Used"==(null==(r=null==c?void 0:c.data)?void 0:r.response)?"error":"success")):(u(null==(s=null==c?void 0:c.data)?void 0:s.response),d("error"))},style:{display:"flex",flexDirection:"column",gap:"1rem"},children:Ye.jsx("div",{className:"formDivS",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:Ye.jsxs("div",{className:"inputForm",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[Ye.jsx(I.Item,{name:"MobileNo",rules:[{required:!0,message:"Mobile number is required"},{pattern:/^[6-9]\d{9}$/,message:"Enter a valid 10-digit mobile number starting with 6-9"}],children:Ye.jsx(Oy,{field:"MobileNo",name:"Mobile No",label:Ye.jsx("label",{className:"required",style:{fontWeight:"bold"},children:"Enter Mobile"}),fieldState:!0,fieldApi:!0,maxLength:10,type:"text",onChange:e=>{r(e.target.value),l()},onKeyPress:e=>{/[0-9]/.test(e.key)||e.preventDefault()},autocomplete:"off",isOnChange:!!i,style:{borderRadius:"4px",padding:"10px",fontSize:"16px"}})}),s&&Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",margin:"0 0 1rem 1rem",border:"solid 1px gray",padding:"3px 15px",borderRadius:"5px",width:"max-content",backgroundColor:"#f5f5f5"},children:Ye.jsx(t,{copyable:{text:s,tooltips:["Click to copy","Copied!"]},style:{fontSize:"23px",display:"flex",gap:"1rem"},children:s})}),Ye.jsx("div",{style:{display:"flex",marginTop:"1.5rem"},children:Ye.jsx(Ry,{buttonText:"Generate Code",color:"901D77",disabled:!(10===(null==i?void 0:i.length)&&/^[6-9]\d{9}$/.test(i)),icon:Ye.jsx(k,{}),style:{backgroundColor:"#901d77",color:"white",border:"none",borderRadius:"4px",fontSize:"16px",padding:"10px 20px",display:"flex",alignItems:"center"}})})]})})})]})})]})]})},lM=e=>{const t=um();Qt();const n=Mt(),[i,r]=a.useState(!0),[s,l]=a.useState(!1),[o,d]=a.useState(!1),[c,u]=a.useState(!0),[p,A]=a.useState(!1);return a.useEffect((()=>{var e;!async function(){const e=iA("UserId");await t(vD({userId:e})).unwrap()}(),(null==(e=null==n?void 0:n.state)?void 0:e.Notiffy)&&(r(!1),l(!1),A(!1),d(!0))}),[]),Ye.jsxs("div",{className:"userAccount",children:[Ye.jsxs("div",{className:"optionSection "+(c?"":"userSectionClose"),children:[Ye.jsx("div",{className:"mobileViewClose",onClick:()=>u(!1),children:Ye.jsx(BO,{})}),Ye.jsx("div",{className:"userAccountHeading",children:"Account Settings"}),Ye.jsxs("div",{className:"userAccountTabDiv",children:[Ye.jsx("div",{className:"userAccountTab",onClick:()=>{r(!0),l(!1),d(!1),u(!1),A(!1)},children:"My Profile"}),Ye.jsx("div",{className:"userAccountTab",onClick:()=>{r(!1),l(!0),d(!1),u(!1),A(!1)},children:"Security"}),Ye.jsx("div",{className:"userAccountTab",onClick:()=>{r(!1),l(!1),d(!0),u(!1),A(!1)},children:"Logs"}),Ye.jsx("div",{className:"userAccountTab",onClick:()=>{r(!1),l(!1),d(!1),u(!1),A(!0)},children:"Referrals"})]})]}),i&&Ye.jsxs("div",{className:"userAccountCont "+(c?"userSectionClose":""),children:[Ye.jsx("div",{className:"menuIcon",onClick:()=>u(!0),children:Ye.jsx(RO,{})}),Ye.jsx(tM,{status:null==e?void 0:e.status})]}),s&&Ye.jsxs("div",{className:"userAccountSec "+(c?"userSectionClose":""),children:[Ye.jsx("div",{className:"menuIcon",onClick:()=>u(!0),children:Ye.jsx(RO,{})}),Ye.jsx(aM,{})]}),o&&Ye.jsxs("div",{className:"userAccountSec "+(c?"userSectionClose":""),children:[Ye.jsx("div",{className:"menuIcon",onClick:()=>u(!0),children:Ye.jsx(RO,{})}),Ye.jsx(rM,{})]}),p&&Ye.jsxs("div",{className:"userAccountSec "+(c?"userSectionClose":""),children:[Ye.jsx("div",{className:"menuIcon",onClick:()=>u(!0),children:Ye.jsx(RO,{})}),Ye.jsx(sM,{})]})]})},oM=Ja("messagetemplates/getBranchData",(async()=>await fA.get("/messagetemplates"))),dM=Ja("messagetemplates/postMessageTemplates",(async e=>await fA.post("/messagetemplates",e))),cM=Ja("messagetemplates/putMessageTemplates",(async e=>await fA.put("/messagetemplates",e))),uM=Ya({name:"messagetemplate",initialState:{MessagetemplateData:[]},extraReducers:e=>{e.addCase(oM.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.MessagetemplateData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.MessagetemplateData=[]}))}}),pM=e=>{var t;return null==(t=e.MessageTemplate)?void 0:t.MessagetemplateData},AM=uM.reducer,hM="/home/",fM=({formType:e})=>{const t=Qt(),n=um(),i=Mt(),r=a.useRef(null),s=null==i?void 0:i.state,l=null==s?void 0:s.editstate,o=V.Group,[d,c]=a.useState(null),[u,p]=a.useState(null),A=["Mail","SMS","Notification","WhatsApp"],h={Mail:"M",SMS:"S",Notification:"N",WhatsApp:"W"},[f,m]=a.useState([]),v=A.length===f.length,[g,y]=a.useState(f.length>0&&f.length<A.length),x=f.map((e=>h[e])),b=[{name:"Home",link:`${hM}landing-page/home`},{name:"MessageTemplates",link:`${hM}setting/message-template/`},{name:l?"Edit":"New",link:null}];a.useEffect((()=>{var e;if(n(Gh({items:b})),l)if(null==(e=r.current)||e.setFieldsValue({TemplateType:l.TemplateType}),(null==l?void 0:l.TemplateDetails.length)!==(null==A?void 0:A.length)){y(!1);const e=null==l?void 0:l.TemplateDetails.map((e=>{switch(null==e?void 0:e.TemplateType){case"M":return"Mail";case"S":return"SMS";case"N":return"Notification";case"W":return"WhatsApp";default:return""}}));m(e)}else{const e=null==l?void 0:l.TemplateDetails.map((e=>{switch(null==e?void 0:e.TemplateType){case"M":return"Mail";case"S":return"SMS";case"N":return"Notification";case"W":return"WhatsApp";default:return""}}));m(e)}}),[]);const w=a.useCallback((()=>{p(null),c(null)}),[]);return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:d,messageData:u,onComplete:w}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Message Templates"})}),Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:r,className:"formDivAnt",onFinish:async i=>{var a,r,s;let o=i;o.TemplateDetails=null==x?void 0:x.map((e=>({TemplateType:e}))),o.CreatedBy=iA("UserId");let d={};if("add"===e)try{d=await n(dM(o)).unwrap()}catch(u){"Request failed with status code 422"==u.message&&(d={data:{statusCode:0,response:"Please Give Required Fields",data:[]}})}else if("edit"===e){o.UniqueId=null==l?void 0:l.UniqueId,o.UpdatedBy=iA("UserId");try{d=await n(cM(o)).unwrap()}catch(u){"Request failed with status code 422"==u.message&&(d={data:{statusCode:0,response:"Please Give Required Fields",data:[]}})}}1==(null==(a=null==d?void 0:d.data)?void 0:a.statusCode)?t(`${hM}setting/message-template/`,{state:{Notiffy:{messageType:"success",messageData:null==(r=null==d?void 0:d.data)?void 0:r.response}}}):(c("error"),p(null==(s=null==d?void 0:d.data)?void 0:s.response))},initialValues:l,children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"MessageHeader",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Message Header"},{validator:async(e,t)=>(await lA(t),t&&t.length>50?Promise.reject("Message Header should not exceed 50 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"MessageHeader",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Message Header"}),fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"Subject",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Subject"},{validator:async(e,t)=>(await lA(t),t&&t.length>150?Promise.reject("Subject should not exceed 150 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"Subject",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Subject"}),fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"MessageBody",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Message Body"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(My,{field:"MessageBody",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Message Body"}),fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"Peid",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Peid"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Peid",autoComplete:"off",label:"Peid",fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"Tpid",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Tpid"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Tpid",autoComplete:"off",label:"Tpid",fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsxs("div",{children:[Ye.jsx(V,{indeterminate:g,onChange:e=>{m(e.target.checked?A:[])},checked:v,children:"All"}),Ye.jsx(o,{options:A,value:f,onChange:e=>{m(e)}})]})]})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})})]})})]})})})},mM="/home/",vM=Ja("branch/getCmpanyBranch",(async e=>{if(null!=e&&null!=e)return await fA.get(`/branch?CompId=${e}`)})),gM=Ja("getPricingMode/getPricingMode",(async()=>await fA.get("/configMaster?TypeName=Payment Mode&ActiveStatus=A"))),yM=Ja("paymentUpiDetails/getPaymentUPIDetails",(async()=>await fA.get("/paymentUpiDetails?"))),xM=Ja("paymentUpiDetails/getAdminPaymentUPIDetails",(async e=>{if(null!=e&&null!=e)return await fA.get(`/paymentUpiDetails?UserId=${e}&type=O`)})),bM=Ja("paymentUpiDetails/postPaymentUpiDetails",(async e=>await fA.post("/paymentUpiDetails",e))),wM=Ja("paymentUpiDetails/putPaymentUpiDetails",(async e=>await fA.put("/paymentUpiDetails",e))),jM=Ja("paymentUpiDetails/deletePaymentUPIDetails",(async e=>await fA.delete("/paymentUpiDetails",{params:e}))),CM=Ya({name:"messagetemplate",initialState:{CmpanyBranchData:[],PaymentUPIData:[],AdminPaymentUPIData:[]},extraReducers:e=>{e.addCase(vM.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.CmpanyBranchData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.CmpanyBranchData=[]})),e.addCase(yM.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.PaymentUPIData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.PaymentUPIData=[]})),e.addCase(xM.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.AdminPaymentUPIData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.AdminPaymentUPIData=[]}))}}),SM=e=>{var t;return null==(t=e.paymentUPIdetails)?void 0:t.CmpanyBranchData},NM=e=>{var t;return null==(t=e.paymentUPIdetails)?void 0:t.PaymentUPIData},IM=e=>{var t;return null==(t=e.paymentUPIdetails)?void 0:t.AdminPaymentUPIData},FM=CM.reducer,BM="/home/",PM=({formType:e})=>{const t=Qt(),n=um(),i=Mt(),r=a.useRef(null),s=null==i?void 0:i.state,l=null==s?void 0:s.editstate,o=Tf(wb),d=Tf(bb),c=Tf(SM),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState(null),[v,g]=a.useState(null),[y,x]=a.useState(null),[b,w]=a.useState([]),[j,C]=a.useState([]),[S,N]=a.useState("SA"),[F,B]=a.useState([]),[P,T]=a.useState(null),[E,D]=a.useState(null),L=iA("UserType");a.useEffect((()=>{var e;1===(null==d?void 0:d.length)&&M(null==(e=d[0])?void 0:e.CompId)}),[d]),a.useEffect((()=>{var e;1===(null==j?void 0:j.length)&&R(null==(e=j[0])?void 0:e.BrId)}),[c,j]);const U=[{name:"Home",link:`${BM}landing-page/home`},{name:"PaymentUPIDetails",link:`${BM}setting/PaymentUPIDetails/`},{name:l?"Edit":"New",link:l?`${BM}setting/PaymentUPIDetails/update`:`${BM}setting/PaymentUPIDetails/new`}];a.useEffect((()=>{var e;if(n(Gh({items:U})),n(hb()).unwrap(),l&&(m(null==l?void 0:l.UserId),g(null==l?void 0:l.CompId),x(null==l?void 0:l.BrId),T(null==l?void 0:l.mode),n(cb(null==l?void 0:l.UserId)).unwrap(),n(vM(null==l?void 0:l.CompId)).unwrap()),"Admin"===L){const t=iA("UserId")?parseInt(iA("UserId")):null;null==(e=r.current)||e.setFieldsValue({UserId:t}),t&&(D(t),m(t),n(cb(t)).unwrap())}else N("SA");_()}),[]);const _=async()=>{var e,t,i,a,s,l,o,d,c,u,p,A,h;let f=await n(gM()).unwrap();1===(null==(e=null==f?void 0:f.data)?void 0:e.statusCode)&&(1===(null==(i=null==(t=null==f?void 0:f.data)?void 0:t.data)?void 0:i.length)&&(T(1===(null==(s=null==(a=null==f?void 0:f.data)?void 0:a.data)?void 0:s.length)?null==(o=null==(l=null==f?void 0:f.data)?void 0:l.data[0])?void 0:o.ConfigId:null),null==(A=r.current)||A.setFieldsValue({mode:1===(null==(c=null==(d=null==f?void 0:f.data)?void 0:d.data)?void 0:c.length)?null==(p=null==(u=null==f?void 0:f.data)?void 0:u.data[0])?void 0:p.ConfigId:null})),B(null==(h=null==f?void 0:f.data)?void 0:h.data))},O=a.useCallback((()=>{h(null),p(null)}),[]),M=async e=>{var t;null==(t=r.current)||t.setFieldsValue({CompId:e}),await n(vM(e)).unwrap(),x(null),await g(e)},R=async e=>{var t;null==(t=r.current)||t.setFieldsValue({BrId:e}),await x(e)};return a.useEffect((()=>{if(f){const e=d.filter((e=>e.AdminId===f));w(e)}else w([])}),[f,d]),a.useEffect((()=>{if(v){const e=c.filter((e=>e.CompId===v));C(e)}else C([])}),[v,c]),a.useEffect((()=>{}),[v]),Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:u,messageData:A,onComplete:O}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Payment UPI Details"})}),Ye.jsx("div",{className:"formDiv",children:Ye.jsx(I,{ref:r,className:"formDivAnt",onFinish:async i=>{var a,r,s;let o=i;o.UserId="Admin"==L?iA("UserId"):i.UserId,o.CreatedBy=iA("UserId");let d={};if("add"===e){o.type="SA"===S&&"Admin"!=L?"I":"O";try{d=await n(bM(o)).unwrap()}catch(c){"Request failed with status code 422"==c.message&&(d={data:{statusCode:0,response:"Please Give Required Fields",data:[]}})}}else if("edit"===e){l&&(o.AdminId=null==l?void 0:l.UserId,o.CompId=null==l?void 0:l.CompId,o.BranchId=null==l?void 0:l.BrId,o.type=null==l?void 0:l.type),o.PaymentUPIDetailsId=null==l?void 0:l.PaymentUPIDetailsId,o.UpdatedBy=iA("UserId");try{d=await n(wM(o)).unwrap()}catch(c){"Request failed with status code 422"==c.message&&(d={data:{statusCode:0,response:"Please Give Required Fields",data:[]}})}}1==(null==(a=null==d?void 0:d.data)?void 0:a.statusCode)?t(`${BM}setting/PaymentUPIDetails/`,{state:{Notiffy:{messageType:"success",messageData:null==(r=null==d?void 0:d.data)?void 0:r.response}}}):(p("error"),h(null==(s=null==d?void 0:d.data)?void 0:s.response))},initialValues:l,children:Ye.jsxs("div",{className:"formDivS",children:[Ye.jsxs("div",{className:"inputForm",children:["A"===S||"O"===(null==l?void 0:l.type)?Ye.jsx(I.Item,{name:"UserId",rules:[{required:!0,message:"Select Admin Name "}],children:Ye.jsx(_y,{options:null==o?void 0:o.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?null==e?void 0:e.UserName:e.MobileNo}))),placeholder:"UserId",label:"Admin Name",className:"field-DropDown",isOnchanges:"edit"===e||"Admin"===L&&"A"===S||!!E&&parseInt(E),onChangeFunction:async e=>{var t;null==(t=r.current)||t.setFieldsValue({UserId:e}),await n(cb(e)).unwrap(),D(e),g(null),x(null),await m(e)},valueData:"edit"===e||"Admin"===L&&"A"===S?f:E?parseInt(E):null,disabled:"edit"===e||"Admin"===L&&"A"===S})}):null,"A"===S||"O"===(null==l?void 0:l.type)?Ye.jsx(I.Item,{name:"CompId",rules:[{required:!0,message:"Select Company Name "}],children:Ye.jsx(_y,{options:null==b?void 0:b.map((e=>({value:e.CompId,label:e.CompName}))),placeholder:"CompId",label:"Company Name",className:"field-DropDown",isOnchanges:!("edit"!=e&&!v),onChangeFunction:M,valueData:v,disabled:"edit"==e})}):null,"A"===S||"O"===(null==l?void 0:l.type)?Ye.jsx(I.Item,{name:"BrId",rules:[{required:!0,message:"Select Branch Name "}],children:Ye.jsx(_y,{options:null==j?void 0:j.map((e=>({value:e.BrId,label:e.BrName}))),placeholder:"BranchId",label:"Branch Name",className:"field-DropDown",isOnchanges:!("edit"!=e&&!y),onChangeFunction:R,valueData:y,disabled:"edit"==e})}):null,Ye.jsx(I.Item,{name:"Name",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Name"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Name",autoComplete:"off",label:"Account Name",fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"MobileNo",rules:[{pattern:/^[0-9]{10}$/,message:"Enter a Valid MobileNo",required:!0}],children:Ye.jsx(Oy,{field:"MobileNo",label:"Mobile Number",fieldState:!0,fieldApi:!0,maxLength:"10",autoComplete:"off",isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"UPIId",rules:[{pattern:/[a-zA-Z0-9_]{3,}@[a-zA-Z]{3,}/,message:"Enter a Valid UpiId",required:!0}],children:Ye.jsx(Oy,{field:"UPIId",label:"UPI Id",fieldState:!0,fieldApi:!0,maxLength:"30",autoComplete:"off",isOnChange:"edit"==e,disabled:"edit"==e})}),Ye.jsx(I.Item,{name:"MerchantCode",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Merchant Code"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"MerchantCode",label:"Merchant Code",fieldState:!0,fieldApi:!0,maxLength:"50",autoComplete:"off",isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"MerchantId",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Merchant Id"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"MerchantId",label:"Merchant Id",fieldState:!0,fieldApi:!0,maxLength:"10",autoComplete:"off",isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"mode",rules:[{required:!0,message:"Select Payment Mode "}],children:Ye.jsx(_y,{options:null==F?void 0:F.map((e=>({value:e.ConfigId,label:e.ConfigName}))),field:"mode",placeholder:"Mode",label:"Payment Mode",className:"field-DropDown",isOnchanges:!("edit"!=e&&!P),onChangeFunction:async e=>{var t;null==(t=r.current)||t.setFieldsValue({mode:e}),T(e)},valueData:P?parseInt(P):null,disabled:"edit"==e})}),Ye.jsx(I.Item,{name:"orgid",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Org Id"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"orgid",label:"Org Id",fieldState:!0,fieldApi:!0,maxLength:"15",autoComplete:"off",isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"sign",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Sign"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"sign",label:"Sign",fieldState:!0,fieldApi:!0,maxLength:"100",autoComplete:"off",isOnChange:"edit"==e})}),Ye.jsx(I.Item,{name:"url",rules:[{validator:(e,t)=>!t||/^(https?:\/\/)?([\w.-]+)\.([a-z]{2,})(\/\S*)?$/.test(t)?Promise.resolve():Promise.reject("Please enter a valid URL")}],children:Ye.jsx(Oy,{field:"url",label:"Url",fieldState:!0,fieldApi:!0,maxLength:"100",autoComplete:"off",isOnChange:"edit"==e})})]}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})})]})})})]})})})},kM="/home/",TM=Ja("getUserMappDetails/getUserMappDetails",(async e=>{if(null!=e&&null!=e)return await fA.get(`/userAppMap?UniqueId=${e}`)}));Ya({name:"getUserMappDetails",initialState:{UserMappDetails:[]},extraReducers:e=>{e.addCase(TM.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.priceData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.UserMappDetails=[]}))}});const EM="/assets/giftimg-c37dc325.png",DM="/home/",LM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAbCAYAAACJISRoAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANhSURBVHgB7ZZdaBxVFMd/987szuyyIZY0yZoQm0YLQUuglIrSqlgR0SqK0IogiAFpnqQqRFCQ+CL0sS+KFEF8qy/aBwMFo09RIsVQqKamUGyaplHTpNF87Mfcez0zWTbZZqtbxNIHD3Pn8875nfs/594Z5cT4j01zC+z2hLikOW5GY7/RjrFTJe2XP2c48/tPBH5A75YeunOdyQP17yGOZVNk6LtjfDU7tn7bwoHuh3m972W2hndwI5S6cXVZ4idOXlSyf3/8OJ9dOLXJTSzcnZmtHO49xIGeR0krv1GI5eTpVU58H9HSpHjs/t8YOjNYN4Mx5J7LKzwyucqObJ59B18jt2cvSqm/h0wvRPR/tMKqURSNkRZRbh4l1XkC5RVqALsnF3nr5Cyh75FO+3ipFMHAEZqef1FiWgNtis05y4cjBSKTwsq5Fd3LTlGa20vh0nMbAODZiHfuPku2vYD2JGKtxKGj+OlxbHE9mE2QH2cixs57IpjFWIcRkGwJLDKZGqEOhVP0tM+Tf/UKfijOKhLplSXM9KV6EEchMhwbLsgIFFECQSBKrgWiVsl2DFd7d7HIQO58cu41RfitBq11RQ0pljCsP5IvThe5MJdOtDaSKiPHSI6RUMK2r/Eyv1Zz8UZugmZdSq7Liz5uLqj68XftIdXRVR8y+nO8VwIQ98aJRC6RCm+JID9S7dfnX+WhYK4ChOXRNrT1KoIoMv0DNdWl18VyzC+vJT5OeJyLeBRWWpAfRqWWKh0tg7lz+GqtKM18luIPMhFjp3Irtf8Jwt6dG2PfOBJFV4tbS3gsE8mExgWXSbd9U9Ha8XQ4w05voRr14qlWvMrCYTMZsq8McP3M1+sIxQsPSp0rk8gU58FYxWDPUZ4ML9KultnvT3MkezaeXck7S5NZSudyMgidjCKUueHnO7neataAXXf5vLSvzAcjkajikvZ4yxj92YuUpGuacjVG6zVRCvohGBWAQd3bR+aZg3VXr7ozfmK2zLufLzA+JRX3wFPc1zy+SQKz7W387e9Rnr+KvXaN9Lbtshp40CiEyvfiy/E/mJr4hMMdb9aUoc3sQO3+Fu1voRFT//SNj3Njr3yMnjoq3qX8Wp9Fdw+h0+00aqqxHwmXlLZKEq652Q+q+v9v5baD3BL7CxiYfU3MORkJAAAAAElFTkSuQmCC",UM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAAYCAYAAACx4w6bAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAARSSURBVHgB7VZtbFNVGH7u19qu22i30bHVjX3KMpkymBoFFRZNIFkYwURQiMzEqJFASJguaiJqHFGSmRATIWJMapCA+0FckMkykeAQAmyDmOFYsnYyCoOutFvX74/rufdubS9tbVg20Ybn17nvue8553nf57znpUDA87wJqYUd7NSgGKkFDY0UxQNicw3DTT+OjQUxW/hPEDtpC+KtKx502UKYLbDxjBbbJLr7jDIbQ9NYskiPonxt2PbLuatwewLimOMYlDyUjYqi+aAoCsbrY7g8eEOcW1VbDk1WOjp/H4DT44M2U4XniK3TzqN3IohWkxcewsnk4XHcGsKabApnJ3hc8wEqEvolagonrAGoGQrPahnoOKCdZNfi5fGEhsWyTArUXRzEb1Lu+Wij4cfzeP3DQzGEFRyLPU3r8PbGFRgZtaGyvgU+f0A2v6m+Fvt3bcCm5u/QdqJPtB/8fAs2rK6BurZJ/D9HkwFT18fI73ZjPMDH7DNRl4HlF1z4wyFlUM0AzimVpnM0itKAAac0pyBkm4oV+LSUi16i8Z6k6CWH+mRfB8Yd7oTz3x49h8G/LDFzgcDM748zytXlD4VJiXsGebQMeWB0ywPEIglWLC1DVWkevj/eA6fLC6vdidGxCSLJbOx9bz0cxCbgh44+XOy/Jo57rlyPWYem5WIhgcYOEvqLkzx+svgF2WDpPBYrtTSU0f8SWW8tTIPNF8ShUUkdBSoGb+g5HDD7YHZLJPsJsVJVxC9pxlY/U4Uvmtejujw/bBNik0bulF6nwajFgWGzHeOTkSzepewpYvKthCN8VJaG7YWR2D6tZdFaoQAjd0RLGYdtCxUiSQE1GRR2lXB4WZc4L0kzJkSSD/GyuyRg556j+OpId1wSAhgmEr0zU4UoGJxZ1aMS2H18Yp+kGdv9dSfyVn6A3j8ledEUjRu3x7G/7UyEFBW79bKqovB43+HfsLnZgGBo9sp5MiQl5iLl2eX2hb+rF+WDIndgOvpPProQpw3b0VBXLfPbTKpjsT4H9wtJpZiVqURWupJIi8biigK0vrMOljuT4fnCBVo89VgJygpzZX652gx0fbMVhvYLGLl5Bx5vAIc7evBvISmxd197Hju31Ilj4d4Ij280MTOR5eDwLfIgW2N8TWYrVAoWDxfrxCeCJr4hIl+KwpwjefEgp2BZuWJzNGooFRzJgh9nL5nwSMNnkGqlHHsPnsKxU/0x9sqSPLDM3HZzM1pdkN2bLy0X5SkhmhSFXEI8EYTW6sv3XxQzfy+g4/yf9g9LxG2phkbGcORnqR1au6oai8sXxDgKLpcGzDjdaxSfg2los1R4de3j4sHbf+3H5auRx1qtUmDjmhoU6OaFbbfJ27zb6BXXqydN4AvZ0ivWZglhiPSOKlKotulp2Ml/B25JLUgleYgbcmicd/A4aZeK2CvzSaulDDNtjEssBdA4t0K/j3hA7P+G6XI/jNSC/W/8IoeYeaooAwAAAABJRU5ErkJggg==",_M=({printingdata:e,CompanyName:t,zipcode:n,address:i,City:a})=>Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{className:"Pdf-body",id:"Pdfbody",children:[Ye.jsxs("div",{className:"Pdf-Div",children:[Ye.jsxs("div",{className:"Pdf-head-div",children:[Ye.jsx("img",{src:cE,className:"headlogo-img"}),Ye.jsxs("div",{children:[Ye.jsx("p",{className:"Pdf-head",children:" Invoice "}),Ye.jsx("p",{style:{fontFamily:"Poppins",color:"#52C41A"},children:" Pozomind Technologies "})]}),Ye.jsx("span",{className:"square"})]}),Ye.jsxs("div",{className:"Pdf-amt-details",children:[Ye.jsxs("p",{children:[" Invoice Number : ",Ye.jsxs("span",{className:"Pdf-amt-digit",children:[" ",e.length>0?e[0].UniqueId:null," "]})," "]}),Ye.jsxs("p",{children:[" Amount: ",Ye.jsxs("span",{className:"Pdf-amt-digit",children:["₹ ",e.length>0?e[0].NetPrice:null," "]})," "]})]}),Ye.jsxs("div",{className:"Pdf-amt-details",children:[Ye.jsxs("p",{children:[" Payment Method : ",Ye.jsxs("span",{className:"Pdf-amt-digit",children:[" ",e.length>0?e[0].PaymentModeName:null," "]})]}),Ye.jsxs("p",{children:[" Date : ",Ye.jsxs("span",{className:"Pdf-amt-digit",children:[" ",e.length>0?tA(e[0].PurDate):null," "]})," "]})]})]}),Ye.jsx("div",{className:"Pdf-Cont-Div",children:Ye.jsxs("div",{className:"Pdf-cont",children:[Ye.jsxs("div",{className:"Pdf-cont-txt",children:[Ye.jsx("p",{className:"Pdf-cont-subhead",children:" Billed From"}),Ye.jsxs("p",{className:"Pdf-cont-text",children:["Pozomind Technologies Private Limited",Ye.jsx("p",{children:"Phone : 7324000011"})]})]}),Ye.jsxs("div",{className:"Pdf-cont-txt",children:[Ye.jsx("p",{className:"Pdf-cont-subhead",children:" Billed To "}),Ye.jsxs("p",{className:"Pdf-cont-text",children:[e.length>0?null!=e[0].UserName?e[0].UserName:e[0].MobileNo:"",",",Ye.jsx("br",{}),Ye.jsx("p",{className:"Pdf-cont-text",children:null!=t?t:null}),null!=i?i:null," ",null!=a?a:null," ",null!=n?n:null,Ye.jsxs("p",{children:["Phone : ",e.length>0?e[0].MobileNo:null]})]})]})]})}),Ye.jsx("hr",{className:"new3"}),Ye.jsx("div",{className:"Pdf-Table-Div",children:Ye.jsxs("table",{children:[Ye.jsx("caption",{children:"Statement Summary"}),Ye.jsx("thead",{children:Ye.jsxs("tr",{children:[Ye.jsx("th",{scope:"col",children:"Description"}),Ye.jsx("th",{scope:"col",children:"Purchase Date"}),Ye.jsx("th",{scope:"col",children:"Period"}),Ye.jsx("th",{scope:"col",children:"Amount"})]})}),Ye.jsx("tbody",{children:Ye.jsxs("tr",{children:[Ye.jsx("td",{"data-label":"Account",children:e.length>0?e[0].AppName:null}),Ye.jsx("td",{"data-label":"Due Date",children:e.length>0?tA(e[0].PurDate):null}),Ye.jsxs("td",{"data-label":"Period",children:[e.length>0?tA(e[0].ValidityStart):null," - ",e.length>0?tA(e[0].ValidityEnd):null]}),Ye.jsxs("td",{"data-label":"Amount",children:["₹",e.length>0?e[0].NetPrice:null]})]})})]})}),Ye.jsx("hr",{className:"new3"}),Ye.jsx("div",{className:"Pdf-Table-Div",children:Ye.jsx("table",{children:Ye.jsxs("tbody",{children:[Ye.jsxs("tr",{children:[Ye.jsx("th",{children:" "}),Ye.jsx("th",{children:" "}),Ye.jsx("th",{"data-label":"Sub Total",children:"Sub Total"}),Ye.jsxs("td",{children:["₹",e.length>0?e[0].Price:null]})]}),Ye.jsxs("tr",{children:[Ye.jsx("td",{children:" "}),Ye.jsx("td",{children:" "}),Ye.jsx("th",{"data-label":"Tax",children:"Tax "}),Ye.jsxs("td",{children:["₹",e.length>0?e[0].TaxAmount:0]})]}),Ye.jsxs("tr",{children:[Ye.jsx("th",{children:" "}),Ye.jsx("th",{children:" "}),Ye.jsx("th",{"data-label":"Total",children:"Total"}),Ye.jsxs("td",{children:["₹",e.length>0?e[0].NetPrice:null]})]})]})})}),Ye.jsx("hr",{className:"new4"})]})}),OM=e=>{const[t,n]=a.useState({body:{backgroundcolor:"#f3f3f3",buttonActivebackgroundColor:"#F97068",buttonbgColor:"#D9D9D9",contColor:"#CCCCCC",textColor:"#333",tmpbtnheight:"10px",activetmpbtnheight:"20px",fontSize:"16px",fontFamily:"Poppins",display:"flex",flexWrap:"wrap",textAlign:"left",flexDirection:"row",columnGap:"2rem",margin:"0px 0px"},footer:{fontSize:"16px",fontFamily:"Poppins",padding:"3rem 1rem"}}),i=e.hasOwnProperty("data")?e.data:[{FieldName:"Header1",FieldValue:"",FieldAddData:""},{FieldName:"Header1Footer1",FieldValue:"",FieldAddData:""},{FieldName:"Header1Footer2",FieldValue:"",FieldAddData:""},{FieldName:"Header1Footer3",FieldValue:"",FieldAddData:""},{FieldName:"Header2",FieldValue:"",FieldAddData:""},{FieldName:"Header2Footer1",FieldValue:"",FieldAddData:""},{FieldName:"Header2Footer2",FieldValue:"",FieldAddData:""},{FieldName:"Header2Footer3",FieldValue:"",FieldAddData:""},{FieldName:"Header3",FieldValue:"",FieldAddData:""},{FieldName:"Header3Footer1",FieldValue:"",FieldAddData:""},{FieldName:"Header3Footer2",FieldValue:"",FieldAddData:""},{FieldName:"Header3Footer3",FieldValue:"",FieldAddData:""}];Tf(L_);const[r,s]=a.useState(),[l,o]=a.useState(),[d,c]=a.useState(),[u,p]=a.useState();a.useEffect((()=>{var t;null==(t=null==e?void 0:e.data)||t.map((e=>{"FaceBookLinkSub"==e.FieldName&&s(e.FieldValue),"YoutubeLinkSub"===e.FieldName&&o(e.FieldValue),"InstagramLinkSub"==e.FieldName&&c(e.FieldValue),"TwiterLinkSub"==e.FieldName&&p(e.FieldValue)}),[])}),[e.data]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:e.hasOwnProperty("data")?"maindiv":"maindivempdata",children:[Ye.jsxs("div",{style:{width:"20rem",lineHeight:"2rem"},children:[Ye.jsx("img",{src:Bm,alt:"logo",width:90,className:"footer-logo"}),Ye.jsx("p",{className:"footer-content-text",children:"Enabling Business Expansion with Limited Staff, Basic Skills, and Reliable Solutions inspired the inception of Pozo as an extension of this core principle."})]}),Ye.jsxs("div",{style:t.body,children:[(()=>{let e=i.filter((e=>e.FieldName.includes("Header")&&!e.FieldName.includes("Footer")));return Ye.jsx(Ye.Fragment,{children:e.map((e=>{var t;return Ye.jsxs("div",{style:{display:"flex","flex-direction":"column",rowGap:"0.5rem"},children:[Ye.jsx("p",{className:(null==(t=e.FieldValue)?void 0:t.length)>0?"ftrtmplthdr":"ftrtmplthdrWithoutData",children:0==e.FieldValue.length?" ":e.FieldValue}),i.filter((t=>t.FieldName.includes(e.FieldName)&&t.FieldName.includes("Footer"))).map((e=>{var t,n;return Ye.jsx("div",{className:(null==(t=e.FieldValue)?void 0:t.length)>0?"ftrtmpltlist":"ftrtmpltlistwithoutData",children:Ye.jsx(An,{className:(null==(n=e.FieldAddData)?void 0:n.length)>0?"ftrlink":"ftrlinkwithOutData",to:e.FieldAddData,children:e.FieldValue})})}))]})}))})})()," "]}),Ye.jsx("div",{className:"newdivstc2",children:Ye.jsxs("div",{className:e.hasOwnProperty("data")?"oftrlinkdiv3":"oftrlinkdiv2",children:[Ye.jsx("div",{className:"oftrlinks2",style:{display:"flex",alignitems:"flexstart"}}),Ye.jsxs("div",{style:{float:"right",display:"flex",flexDirection:"row",fontSize:"16px",gap:e.hasOwnProperty("data")?"2rem":"1rem",flexWrap:"wrap"},children:[r&&Ye.jsx("a",{href:r,target:"_blank",style:{color:"black"},children:Ye.jsx(re,{})}),l&&Ye.jsx("a",{href:l,target:"_blank",style:{color:"black"},children:Ye.jsx(se,{})}),d&&Ye.jsx("a",{href:d,target:"_blank",style:{color:"black"},children:Ye.jsx(le,{})}),u&&Ye.jsx("a",{href:u,target:"_blank",style:{color:"black"},children:Ye.jsx(oe,{})})]})]})}),Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",flex:"wrap"},children:[Ye.jsx("p",{className:"footer-bigText",children:"PHONE"}),Ye.jsxs("div",{className:"footer-contact-div",children:[Ye.jsx(ZE,{style:{color:"black",fontSize:"25px"}}),Ye.jsx("p",{className:"footer-contact-text",children:"73 24 00 00 11"})]}),Ye.jsxs("div",{className:"footer-contact-div",children:[Ye.jsx("div",{children:Ye.jsx(pg,{style:{color:"#228e32",fontSize:"25px"}})}),Ye.jsx("p",{className:"footer-contact-text",children:"73 24 00 00 12"})]})]})]}),Ye.jsx("div",{className:"footer-contact-container",children:Ye.jsx("p",{style:{textAlign:"center",padding:"5px"},className:"footer-bigText",children:"© 2025 POZO All Rights Reserved."})})]})},MM=Object.freeze(Object.defineProperty({__proto__:null,default:OM},Symbol.toStringTag,{value:"Module"})),RM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAWCAYAAAAxSueLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIcSURBVHgB7ZTPTxNBFMe/u8t2aSulauiFcCIpRhJ+JHrjYo+SaPQgkmgEekGj/4JG/wF/HPQkctD44wZ/ARR/JGisP8KlvXHalsC2lLK7bHeHfdN020KblKQcSPgkM/Pm7c68ee/NG+CUk4ZAHbNtVvj4CfpKwtWIaBfMMOCPxRC6ewcCQcr82zkG5qBrchJCIIB2Qca25+chnj2H0O0JbgvqvSlG3h0H9s4OU6emGdnpoE7wdwJiNXyF9x9ga1rdKUMz09iee8flQOwKfIODMP/8dUO/wnXd8RkYv5Mwk0mEHz301onBICCV9+5o5D4tKKkq5P7+akiKRehLS5UZN6YnlmF8/wFmWeiauAUrleL/1BqrpaEx/qGvD+efPfXmdjbLR3kgCvPnr/Kh/v2HHI1ib20NrdD06lnpNLL3H/C2l0p7ev+ly3BcLwufv8DJ56EMD6NVmnvW24szN29wWQp3V/UXBngeigsLUIaGICg+tErzopIkSD09vNkbG55akGX4RkfATBP+sTEchaaeldbXsfn4iTePvHntyZ0jozC+fnMvyUUYq6s4EpnZ2fra0DRWymTqGkGjo+ueTDhuHTWSa1Hj8WqdwSqB7e56r4cYDjc8lBSJHJIFN38S1dIBuQKlgELP96UueP0aci9f1eWmHdhbW9Cev3AfgVj5MNSRq8XFRejLCdi5HNqFoCgIjl912zgq7/ApJ4t9GXxftI2kpoAAAAAASUVORK5CYII=",QM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAATCAYAAACKsM07AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGjSURBVHgBtZXbUcJQEIb/PTn6HCswHUgBjmIHWgGvPjjEdKAVQKAAoQOogIvO+ChWYDowzwK7bg6TCM6IGOI3k8nt5N+z1xBKcP3cCuwcNQICGO+EWOogBETUjk+b0fpa2iZ0O2r5C6tCgpoTEqkhEwX8n74xCz5qX0Rpfm9zoY9DBN4SNaNCLLobSJ1VyOTbEMEuLDzU9TQoDITTTotJbi2vhESFCOWhlYcFVlR8/YFAxroqQVkE6YbBcBq/Ca2ssvCViqeGnZt7oZrpfImBFfBEU6Mxx8yJi3kQ4nvsj394YEZWXUqywDEk1WoJINzvnkc9VIBGJ9QcINlIqjFhcxo3UAFZ6K2W5pjtxnNfPfJREW7zzcf4XatnpjXaB3kN4uUEVaDRyPeeFBZVvHMe3aECNAcN16ia2Ff8E84DyUoUOEZJwiedBtm8ypHlsHsWtdcNJPuMB+3QS6KvESGGkvzahchqJe01HrbgDGTj1ZtLhJKw4VhnWq84WIb5u6IDMiM301ZK+HsPdE9X8f6ONpq/EfrsvyCeedlt8v+Ca1bufwLUtafqasJy1QAAAABJRU5ErkJggg==",HM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAATCAYAAACKsM07AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFGSURBVHgB1VXLUcMwEH2yXYA7wCVABZgbBzOoASCuIEMFGSpgqEB8GhBDhmtSAiWYDpw7iniLnRmTQ2I79iHvIK/W+7HerlfAyFCyZPpNB8DMw5+28Cna2Hiop7m9sepKv06oMICno1qiP2IGjUVQWCdcEw93EVF5R0URYn1mbV5iAGhtEodgoRDOAgWfyJcPFVzAWKQI7xTTqNalpMrUcslarNATCqp0jMHinsheEiT1u0nDCIcgbMibEzx/2Nt8l5Pwig5wCB/FLWrrILyiAzL9shImAoyM40/wrwYyMvhfTLeNHNz9p82/0DcB+/672v5QjmImiZtGPGaMfig3J/gLMLe55cNiOJQBZ9GS7XR92bHPdyHVhiyoc4qFyrRJOZQWqMZw0bAr0B8pqgmR1/eB0SzHtBp8e7HXhqxIQzzIfYCx8Qu3XmJsV9yj0QAAAABJRU5ErkJggg==",VM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAWCAYAAADafVyIAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKaSURBVHgBtVVNchJREO5+8/JjVnMD5waCu2jFgr0J4w2gCqzKKnoC5QSyFpF4AZlY7hlLQ5ZyAycnyLiKFea9tntgkDATQlVMV8H76ff65+uv3wDcs+AqZX/ou3+2wdVJ4iFplxR4yqFHfMs1BtsvnwZjuEXUKqXdootNol+onTfNZ0EABGP+1cGCjzZxYQ1Rq6LnIWKD8QSwIXutvSAEwgYB3Bp5JrrQ+Mg/skRvLWBb78DxYTmI/2kNR8VxcVa9U9+zloOABHSix43q4rmCDLrfn1e6P/xXE4JvjPcYkyRqlK9fIsASZ1AiAu9KQShZKeUMBM4Po4Og0MH7oV/6eFYbKscZAiVjKV5z96RKqHMRIQJZi6/VAywf7gaR7FnE9sx7BEUQoQaXI6rwNGrtfQ3nxgjSQko97KbxrXUia5KT1t6XcNFI60nQ6Y58QINRYQaSJgF9MoQvrik1XrBxj9P/Caj6StFAsIYC4QDDyUa++PMaWFKdjat8ihx5hQdvtgyKCplma8HNICt0ILgnGkrZWiI3ZKqWnDnfGf7fMvZO9+u9s1pfxrluBueNDkSYObHgnWK+RUOl8KF2QBosjdpYG/RHB+8ErrTheEzXchehOLPlDeZ2XbiOqI5YG9O02VxmjxBBjJR4nu6xzmUDMRuXDnchc4IUq0vVFjhzjSaNo5QayGWSpwEZfxQGpuFk3e3BrC40/ZtCSxkUCMmWOedZJ+dAGNUb1aZ4bjt+8/Hn83yW+yk8sEoIUxt61Rm8NGN2lsf2hoIWyUoHM0jcgv21RcE9i4a7CjNLHsaMRbhAgP/hIFI7WF5+ceXhzBh1J4ikH5aNi9iFpivMgGkcwhoiQfI34BiJQnlSFJrYguPxy+fyRymSM38Bo+4zY336mNkAAAAASUVORK5CYII=",zM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAWCAYAAADafVyIAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAG6SURBVHgB7VW9TgJBEJ7ZO38ahMrQQWUsESo73wDeQP4aK3kD4QnU1giHj+ATQG0EpLE+CksTiCaCuDvOHhyIOeBMjs4vucve7PzuzjeH4BOF28cMCGHxsk9ElVohVfdjh+sUslYnbhCwYzpZtMS6HA4r9bNje5W9WLVZsDrnBlHHdf6lyHkcEGWNnZ1GvtrKwl8r8Mp6OJbQ7g2cAIfRkL2/tx0HH9WIdVm7eH0fz7IffHxGFozm1ZRgWQXZm4eEaZoWu0iAB7Tz55c37Q0OoiHY3Vp6uk05GuXcapCPI8KqF0hUggBBiOVa7qiCxWqrTELEYANApbrOEekeJ2FcQpAgdc1cuTL1WihlS8Q7Lz0hRJjvJcKZ9JVSg1l206pJqd5PPWePdUGqp+l6jkKtPW1yuK/mkxm9yNXadb6jU0eqIF4tJnu69xHRWpR1WEaOjJmec5m+rBXCsBpx8AkBG4Z3AEQbNhogQPwHWAvz13dTv5g8XVfAM8rmS29yc/elIVyi2a6uNHAw0ZN9Zp8j08Sd2euXnv+CoAEBAkExWVOlyTRVSjMzDcGiJ6XUU4DnTPDONWL8f0l/A9VzzP+6tUMBAAAAAElFTkSuQmCC",qM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAXCAYAAADk3wSdAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJ8SURBVHgBpVVNchJBFH6v+QnlanICxxNkcoKQsiSgC+AEhhMEqgy4UxZWhbiQnIBwggwLhZAFkxPIDRxvMFkYRZh+vtcO1piQSoZ8VT39O1+//0a4A2f1vFXtesG4VZoQQICaBmEKvNLRyId7gKsWh2+LdorwGyDVgLB3Y9vn3zzQ+vKuS9Qq0lQIee4CrdGSntt0rhfbRFDVAAMgckBhTy5mTb6eNwuV+P/pVaSosBwCXSrEMgC5hc6oFm1NubkyGB8W94WYh86CyL+XlG2YJ4QGD3ohQm1pEqVhf0Gh++rjxTQzz7nzjdlrPmvL/BapOCWbydiKUlZaqR0CstgES+N4xiQaz9gDTgbTBzzd3O26wUWrJKbx5cK4bdORUybR3NdANoqaCh1R999hNLYVLYK4RvzxFeBk3Hrp/ZhdNyRiVIrUO0LqFzrDZ9x2OXTaIVIDNE3ZMe0lgeyJo65nP7dlPqlXLCI6CRVVs7MNXiP7STZXN/ez9yiVRvv5hy/fI6l7kBjoy1eD3ix2RpX/HCWqMnEbEgI1OArhk5L4hRXeZ2IPksM7bxYtRNxZSfpQDN8U80qZJDHgmN7ixLDFhGuRShZx58TXOBJMzkskKUgIk0kRIUt2whHQv3EkuaSSwmQIacCeNiE0bpa2JDGWZxKTaqIrdggnGz4V+5lFAjt+JrH6WsFpNHSkSpkSCWA9ilRCTjKLTF29Dc7O9lre3zseSvlzpRDlcjkjJWqscAKU945G79eOU4EUD4gKDEdFAPj3IUlDrOo8BhrllaArGStTaRZ0+vnwhQNrwmQXwgEXdvMqoJSw39lfXRZ9h4W3YT1MNUG/eDzsyuQPVO0ZDiZgp4YAAAAASUVORK5CYII=",WM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAdCAYAAACqhkzFAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHnSURBVHgBpZa/TwIxFMff63GADqaOJg43GqPxHEx0soxO6ICrDO7coAm64Mjof8C/4mjiwuLOYGKiJhAXIMLVtuGO9n7BwXe59l3fJ6/vte8OIEM/94f1qG3z4ewyy4dkvUTA1vfdAQvm5eapwwE61GM0N/DL23fFw7EQW+FiRGmjo/LIyw0ktiWdgQOyT2/PkWMfeVVFjthIizIdCFANxkXbVlEiRzYz0fHGuJ7ilyw+d5aoy9rjiUqBtqSxNFAVAkHfEq1M/U5kmSOKxJYCCrMbtVz4E3dLZFQXagXLBFqz5OuSsFv/L2pm0SgTgbKySfZbfwKLoowB9YO8SpQxIHKSebWu+SRmI4TcpAIJ4UeQoV3O4do3oZzzenDQDWDfc2la/nTVEqIMrqMBnFpTBkvojE9hF3zDJopTjQGRQHUR7BcRalYZPkzXntj2lRwUjNVcdBNcDHuPwyqj9mvPiFB1FAR3HZgBtG2brQszgGKn5+vCDCAkHJe8sBAYtPt1YSEwaPeaBjdY6uaFzYFauxfJ7BGLHL8Ri+aFhcCw3UsYIZUdKMuZkxemgCp/st3PYNvtrnRkq8AUEAsFFoGpeyk+8t3SsHScB6aABPmRDgtUHBYrg+eXAeRVv+k6+pw+MZr1q7FI/5q12czMpUQzAAAAAElFTkSuQmCC",YM=e=>{const[t,n]=a.useState({body:{buttonActivebackgroundColor:"#F97068",buttonbgColor:"#D9D9D9",contColor:"#CCCCCC",textColor:"#333",tmpbtnheight:"10px",activetmpbtnheight:"20px",fontSize:"18px",fontFamily:"Poppins",display:"flex",flexWrap:"wrap",textAlign:"left",flexDirection:"row",columnGap:e.hasOwnProperty("data")?"4rem":"1rem",margin:"17px 0",fontWeight:"600"},footer:{fontSize:"16px",fontFamily:"Poppins",padding:"3rem 1rem"}}),i=Tf(L_),r=e.hasOwnProperty("data")?e.data:[{FieldName:"Header1",FieldValue:"",FieldAddData:""},{FieldName:"Header1Footer1",FieldValue:"",FieldAddData:""},{FieldName:"Header1Footer2",FieldValue:"",FieldAddData:""},{FieldName:"Header1Footer3",FieldValue:"",FieldAddData:""},{FieldName:"Header2",FieldValue:"",FieldAddData:""},{FieldName:"Header2Footer1",FieldValue:"",FieldAddData:""},{FieldName:"Header2Footer2",FieldValue:"",FieldAddData:""},{FieldName:"Header2Footer3",FieldValue:"",FieldAddData:""},{FieldName:"Header3",FieldValue:"",FieldAddData:""},{FieldName:"Header3Footer1",FieldValue:"",FieldAddData:""},{FieldName:"Header3Footer2",FieldValue:"",FieldAddData:""},{FieldName:"Header3Footer3",FieldValue:"",FieldAddData:""}],[s,l]=a.useState(""),[o,d]=a.useState(""),[c,u]=a.useState(""),[p,A]=a.useState("");return Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:e.hasOwnProperty("data")?"maindiv":"maindivempdata",children:[Ye.jsxs("div",{style:{width:"20rem",lineHeight:"2rem"},children:[Ye.jsx("img",{src:Bm,alt:"logo",width:90,className:"footer-logo"}),Ye.jsx("p",{className:"footer-content-text",children:"Enabling Business Expansion with Limited Staff, Basic Skills, and Reliable Solutions inspired the inception of Pozo as an extension of this core principle."})]}),Ye.jsx("div",{style:t.body,children:(()=>{let t=r.filter((e=>e.FieldName.includes("Header")&&!e.FieldName.includes("Footer")));return a.useEffect((()=>{var t;null==(t=null==e?void 0:e.data)||t.map((e=>{"FacebookLink"==e.FieldName&&l(e.FieldValue),"YoutubeLink"===e.FieldName&&d(e.FieldValue),"InstagramLink"==e.FieldName&&A(e.FieldValue),"TwiterLink"==e.FieldName&&u(e.FieldValue)}))}),[e.data]),Ye.jsxs(Ye.Fragment,{children:[t.map((e=>{var t,n;return Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{style:{display:"flex","flex-direction":"column",rowGap:"0.5rem"},children:[(""!==s||""!==o||""!==p||""!==c)&&Ye.jsx("p",{style:{fontFamily:`${i.head}`},className:(null==(t=e.FieldValue)?void 0:t.length)>0?"ftrtmplthdr":"ftrtmplthdrWithoutData",children:0==(null==(n=null==e?void 0:e.FieldValue)?void 0:n.length)?" ":null==e?void 0:e.FieldValue}),"HeaderSocial1"==e.FieldName&&Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"2rem",flexWrap:"wrap"},children:[null!==s&&Ye.jsx("a",{href:s,target:"_blank",style:{color:"black"},children:Ye.jsx(re,{})}),null!==o&&Ye.jsx("a",{href:o,target:"_blank",style:{color:"black"},children:Ye.jsx(se,{})}),null!==p&&Ye.jsx("a",{href:p,target:"_blank",style:{color:"black"},children:Ye.jsx(le,{})}),null!==c&&Ye.jsx("a",{href:c,target:"_blank",style:{color:"black"},children:Ye.jsx(oe,{})})]}),r.filter((t=>t.FieldName.includes(e.FieldName)&&t.FieldName.includes("Footer"))).map((e=>{var t,n;return Ye.jsx("div",{className:(null==(t=e.FieldValue)?void 0:t.length)>0?"ftrtmpltlist":"ftrtmpltlistwithoutData",children:Ye.jsx(An,{style:{fontFamily:`${i.para}`},className:(null==(n=e.FieldAddData)?void 0:n.length)>0?"":"ftrlinkwithOutData",to:e.FieldAddData,children:e.FieldValue})})}))]})})})),Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.5rem",flexWrap:"wrap"},children:[Ye.jsx("div",{style:{fontFamily:`${i.para}`},className:e.hasOwnProperty("data")?null:"ftrtmplthdrWithoutData"}),!e.hasOwnProperty("data")&&Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"1rem",flexWrap:"wrap",fontSize:"16px"},children:[Ye.jsx(re,{}),Ye.jsx(se,{}),Ye.jsx(le,{}),Ye.jsx(oe,{})]})]})]})})()}),Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",flex:"wrap"},children:[Ye.jsx("p",{className:"footer-bigText",children:"PHONE"}),Ye.jsxs("div",{className:"footer-contact-div",children:[Ye.jsx(ZE,{style:{color:"black",fontSize:"25px"}}),Ye.jsx("p",{className:"footer-contact-text",children:"73 24 00 00 11"})]}),Ye.jsxs("div",{className:"footer-contact-div",children:[Ye.jsx("div",{children:Ye.jsx(pg,{style:{color:"#228e32",fontSize:"25px"}})}),Ye.jsx("p",{className:"footer-contact-text",children:"73 24 00 00 12"})]})]})]}),Ye.jsx("div",{className:"footer-contact-container",children:Ye.jsx("p",{style:{textAlign:"center",padding:"5px"},className:"footer-bigText",children:"© 2025 POZO All Rights Reserved."})})]})},KM=Object.freeze(Object.defineProperty({__proto__:null,default:YM},Symbol.toStringTag,{value:"Module"})),GM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHoAAABZCAYAAADxYTB8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA5wSURBVHgB7Z3361RHF8ZHY3o0iaYnikkglTQCaZAEAgnBAiqIIqj4iw3BP0VQUey9YO+99967sffee3v9zMuznL3u7nfr3XYfXXa/d2+dZ06Zc87M1rp+/foTF6HiUdtFqApERFcJIqKrBBHRVYI6yb64ceOGO3jwoLty5Yp7+PChe/z4sYtQmqhVq5Z7+eWXXePGjV2jRo3830E8Q/STJ0/c9u3b3Zw5c9zFixdd7dqR0Jc6JIQvvPCC++yzz1yLFi1c/fr14/apZYdX9IRt27a58ePHu/v373uSIT5CaQOO4E6S/NZbb7nu3bu7unXrxvaJk+hHjx656dOne5I56MMPP3S//vqrq1OnjotQ2rh06ZJbvXq1u3nzpv+8du1a9/fff8fIj2MQm/xUwv3nhg0buq5du7oXX3zR7xxJdunCSvKECRO8wG7cuNETLcQZYGyyDsSwv/LKK+65555zEUofCOLXX3/tXnrpJW+zb9++Hfd9neDOesc+420n8uAilB7gCc6s82y5S+lSR+q6cpDSy4qkuTxgBdJ63xbRILlKEBFdJYiIrhLUSHTkkFUGEhIdDJBEZJc/ItVdJQg1iC1NwaD+3r177vz58+7OnTt+O1G4Bg0a+AxMhPwjXKKf/rt957YPvpMlO3v2rN9OyI7Eyfvvv+9++OEH9+OPP8ZlXiLkjtCIRmr/O/SfGz16tLt27Vp8eO6phEP2iRMn3OnTp92SJUtcx44d3aeffuoi5Aeh2ej9+/e7wYMH+zRasoib8t8E5IcPH+6PiaJz+UHBiYa4q1evunHjxmVUknT37l1/DBk1jok8/9wQCtEkwW/dupXRcUgykr1161ZXalBFRzl1vlCIXrlyZezvTFXxunXrSqJuTckCRgs4kRRp8P7gwYOyIL3gztiFCxd8Y1iyMmkU1D7OW7169VwxgW8xc+ZMt3fvXq9pZIIYHfz222/uzz//9NU4pYqCE40E0OMpb8mm53MMjfz666+7YuHUqVNuyJAh/j7sfQHKoufPn+82bdrkRwrU2ZUiCq4T6eWQDLLxoOkYxQyinDt3LjYklBTbag6pdOrfGVVIldtXKaDgRFNfTB0ThGUzCQCS33zzTRc2IAjSpkyZ4s1P0oS+IRyJHzVqVElOdghFor/99ts4KUjnJfzyyy9FK1Bcvny5O3ToUOxvddZkL7B79263atUqV2oIxZ396aefsnJUnn/+effzzz8XxeuG4Llz52Z0jOL48+bN83a9lBDK8Orjjz92TZo0ychmsV/Tpk3de++9F/rQ5fLly27kyJFZ+xQ4oGPHjvWxg1IZdoUmKsz4+Pfff2Oet6Jdwby3OkPz5s39sAWE6dBwDxTBQ1LQ3GRyH2Tmpk2b5u18KZAdWlKDhvrnn3/cF1984Rvg8OHD3htXA4pkEhnNmjXzmaywPVaut3DhQh9jT0RsJoTRkTds2OA+//xz9/333xd9IkSoaUp69wcffOC6devmAyFHjx71wxcaFGIbNWzk6tarG7PJYUsC0a5ly5b5lKmdzJAtIBftgOkKzm4MG0WbPffGG2/4nm7VdTGHJQQ+Zs2aFRsHg1w7mgJF2PuePXsWdUxdlCBysoBCsQIMssvkwguBkydPutmzZ1cf0RaW3GIRzbiXGHahQEdaunRpUTNxoRMtTzvVKyxgQ8+cOeMdMGCDHzXdB/uwnITiA6k6qDowTihDt2KgaqtAaXiGUMSxKXLI5Dj8C5IXEE1WDUcSB66mDkLWa9iwYX6hgbBRtURDCqs74PVnAtKSSLEqXyANKaWCNZ3RAjnsFStWhO6bVC3RVKGyKkAm4VWIpSyZTBVpU0imPIptSCsSDmpS45gKYuKJgkaFQsGIzjZbFQawy9hLBWrSbWiex0bKqEmHaH2HzU9HMrke12dIFxYKQjQPwniURuC9lMA9seoSJGXqAEIkUozq5njVnpN80QoR6YKA0aRJk+LG7cFhZz7VeV6JtjdM4/HgpbJOmQhFbTJeTkfbkAu3nYBnQQpfe+01Ty7nePXVV30eGoeOZEYmINS6YMGC2P0VEgWTaCGZHUr1YOk8dDrHB99ZKI8cczrnhkAkGEItkGhSkNIIEI99hmR7vXSGjGwn5HrkyJG4dioE6XkJgUp6ZZdtiY1VP6gpvldWiCEJnzlWtWVsp4Ht2maEEdUAtpwHEmy4kvNIfXIOzQDheIZSRKdU1hTXCE+vhTpmf76HPIVkkV6dUyXI7APROF+yzbo/tICGWnQKPqsUKljyrGMnTpzo2rdv7+Phev58e+E5S7TssRqGRlAhoFXlPLSyVdoGIFjkqyfLttseLrK1nxpXsN8DSYjemQwQvA4QyRAHwSKK+0Qd42Gz9ho1Y7YaFa+be+dvnQ+brY7CseoI/M2x0hLan47KMaQ0KVbQBAcJTT4lO2eJtiqHRpSUAt2oGtgST0MQA2ZcyTj0nXfecR999JF7991347JHenhLsl0ai8ZiGx0JkqwnLelfv36997QBDW3tM2QgaQyROC8Sq2tS68Z2q5IhPphPV5SMe+D8BFTYhu2mE1HzpmP5DkeM/Tg/HQCyaYctW7b40ik6UNBk5IqciZZ06cHV2PK2bZ2VSNq1a5fPFNGokMqLRqJR6fXt2rVzb7/9tj+ec6sunM+8rNNjVbU8YlV50FgHDhzwC9hybgiFEDsSkJnhWF5WKwCO0Xap5ER5as6jsmQkmGvTFlyPJRshlWfj2tyrTAimgW3sj1SzOi+dPpnqzlbK8+KMSW0HbbO9Wd3gokWLfJkNjSE1xnFSnzRsr169YgkAqwVktyWRUun+QUwBg8a5XAOSdW/6zsL6FakqSSAJMpBIPZttdPkXOqfVQID7VCdJ1FY8O51x8uTJsZBsPtV3zkRz05IQPQQSIDKs6sXjZW60zT8rZ8vDQTyqjPPxwFRoSAJoGD7LFgPrpOn6AtdlZoUtugfBEYE0hTUv9v40xKKTWQL0HvSW7f2k8qKtj6LzoNrx6ClKlL+Tr7XSc1bdNECw8a2NlrrF44U4bRfBSApSLNtOrwYQQCyaxqUS1EqHVLmkKJEEMmdr586dXnXaY/XOdQGOlsbC+l4OprxwpFgSZ9fYTESwlWYhUSzBOot6do3NsdUURfLcul+eI5eYRM4SHXSyrIrSMAHJwi6jnq3a1ThUBfo0Jg3Juxwb7BbOlFXbuqa2WZXNOyVBmzdvjgt4WMnTfkgT5MkGW80gr5lt6ogawul8WmBVQ0WthKz74XjVitlOL8KszyCzpf0XL17svfFEmiIb5MVG6wGs7QE8PDMdmE2JxCgJYHs7x2gmBA1Fw9OAcpD4HjuLbZc9RgLVoAo/qnE1rxoHiG1y3DgX3q0dttERaOBkES1GA1yTa3A8nVCNrVJe3rm+OgP7qMPzGY1hx9ncn20nxbvl4ev+uC/ajv3l4IJsyc5ZdesGRLZA4xEIUIZIkp6sGjJRY9sxMZLNef7666/Y9QSRxn5oD9vYkh6NzXVOGlCfFVgJQn6B9UF0PfkidptsuK4ZnIfF90GHUG1jAzn6nlAtlSmtW7fO2SnLawhUN0MDkJ2xNtnuk+oVPJ9Vp8xaRLqDiRI5TpQEYZuT3Veic2ejEhMNr9JxyJJtS3U8JgibnWukLK9VoKraICuDIxR0StJp0FT70OtZyAai+YEQ62QRfMFbtcOlJwEHLBFB2SKTc+VyHTQRKpxfRKC4IVvC8yrRqN8xY8a4HTt25KxqUgHJpTNZdS+HSgiSXM7g2WhXG4TKFHkjGrtI/TKRqEIDiV2zZo0PvCiL9Mknn/jfAGEoJKku1cKHbKBlubJFXoimp0Hyvn37QpEgOTeYB0k21yV8SPiUsGI+hiSlBhyzbJfkyplohk2DBg3yc6mCkaVcHYhU0Did2i86mTxtJLtTp04+5hwMU5YrbBkyKjybWZo5Ec1wAZJJnIcNK7EU37PSgKJyzHVifhfOS7p12uUCTBUlyo8fZfZcWRNNr+rTp0/RJ3wrEUE0rHfv3r4haAAyQN26/p9sUElqnGedv2B+RjM0syKaaA6STIgu03nD+YaNd9PpBg4cGFPj9RvUdz169PAzOLVvJYAOi2O2Z8+etI+pnexEyTIuZJf69esXk+RiOj2Jrs3CsZBNCBRgqzt37uwaN24cah11ISHfY8aMGT7Emk4HTirRiRqDWQ19+/b1semaolphINm16YRDhw71aT+AF05NFl55qVSl5grIpTPLN6kJaUk0J4VcvFskuhwai3Fn//79Y1NhGV8j2Thqttyo3HHs2DGfNKqJkxoZo1GQZNShFlIvB/Dg9PgRI0bEsmNkvbp06eK+/PLLmBRUghqnLAuTlUqF10j08ePH3YABA4o23TMXYJMhm07Kc0AqqcQ2bdrEVluoBEAwE/mD1TQWKYlGkhmgW4NfTqFF3TPmhumqBHUgF5vNup3fffddWXvilgtM1NSpU5Nyk/TnkCiPZQglh6acwcPTWVmrkzGocsIdOnTwv+Gh2Hg52204I3CkQoggEhLNjhh5/SxCOXuqNhSLXUaymbKq7W3btvXrmVXKGDtZ6LloqxKFCVsFolQqUSXWPKMTt2zZ0n/HLwVUKhKKaqIS1kqACiEgm/GnrR1v1aqV+/3338tSslNVqAhJdXImC7eUC/QcmldFPpuaNoA3zip/dr9ygSVXnAU7bJzqVvmsen4lQ3VmFDAyzv7qq69iif1KePbg3K04olmHMzgJrdKBg0YNNa9C59DDAoLKBACLONVNIb3UV6UjUZFEpWgxTNMff/wRv83+gTRTikPFYTWgEklGZWsVZYtaTwMJz3ge5JspvmMpCOyX37HCbXa5A/+KMirma33zzTfPfJ+QaO91Pv3/4OGD2G88VYrnXYmAGySZpI1dEsQiIdERygtBIUykfat25cBqQ1WEQCsdOZUSRagsRERXCf4HHFsSeoUuigYAAAAASUVORK5CYII=",{Panel:$M}=ee;function XM(e){const t=Tf(L_),[n,i]=a.useState(),[r,s]=a.useState();let l=null==n?void 0:n.filter((e=>"faqQuestion"==(null==e?void 0:e.FieldName)));a.useEffect((()=>{null==l||l.map((e=>{"faqQuestion"==e.FieldName&&s(e.FieldValue)}))}),[n]);const o=[{FieldName:"faqTitle",FieldValue:"",FieldAddData:""},{FieldName:"faqImage",FieldValue:"",FieldAddData:""},{FieldName:"faqQuestion",FieldValue:" ",FieldAddData:""},{FieldName:"faqQuestion",FieldValue:" ",FieldAddData:""},{FieldName:"faqQuestion",FieldValue:" ",FieldAddData:""},{FieldName:"faqQuestion",FieldValue:"",FieldAddData:""}];a.useEffect((()=>{i(e.hasOwnProperty("data")?e.data:o)}),[e.data]);const d={background:"transparent",borderRadius:0,border:"none",fontSize:"16px",fontFamily:null==t?void 0:t.para},c={background:"transparent",borderRadius:0,border:"solid 0.5px #f3f3f3",fontSize:"16px",display:"flex",flexDirection:"column",fontFamily:"poppins"};return Ye.jsxs("div",{className:"modalContainer",style:{},children:[Ye.jsxs("div",{children:[null==n?void 0:n.map((e=>{var n;return"faqTitle"==e.FieldName?Ye.jsx("div",{className:(null==(n=e.FieldValue)?void 0:n.length)>0?"preTitleData":"FaqempTitleData",children:Ye.jsx("p",{style:{fontFamily:null==t?void 0:t.head},children:e.FieldValue.length>0?e.FieldValue:""})}):null})),null==n?void 0:n.map(((e,t)=>{var n,i;return"faqImage"==e.FieldName?Ye.jsx("div",{className:"faqimgContainer",children:Ye.jsx("img",{className:(null==(n=e.FieldValue)?void 0:n.length)>0?"FaqImageData":"FaqempImageData",src:(null==(i=e.FieldValue)?void 0:i.length)>0?e.FieldValue:GM,width:"100%",height:"100%"},t)}):null}))]}),Ye.jsx("div",{children:Ye.jsx("div",{className:"faqCollapseContainer",style:{display:"flex",flexDirection:"column",justifyContent:"space-evenly"},children:""!==r?null==n?void 0:n.map(((e,n)=>"faqQuestion"==e.FieldName&&Ye.jsx(ee,{modalShow:!0,style:c,defaultActiveKey:[""],children:Ye.jsx($M,{header:e.FieldValue,style:d,children:Ye.jsx("div",{className:"faqlistcont",children:Ye.jsx("p",{style:{fontFamily:null==t?void 0:t.para},className:e.FieldAddData?"Faq1Box":"Faq1EmptyBox",children:e.FieldAddData})})},"")}))):Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[Ye.jsx("div",{className:"firstFaqList",children:Ye.jsx("div",{className:"subfirstFaqList"})}),Ye.jsx("div",{className:"seconfFaqList",children:Ye.jsx("div",{className:"subfirstFaqList"})}),Ye.jsx("div",{className:"thirdfaqList"}),Ye.jsx("div",{className:"thirdfaqList"}),Ye.jsx("div",{className:"thirdfaqList"})]})})})]})}const JM=Object.freeze(Object.defineProperty({__proto__:null,default:XM},Symbol.toStringTag,{value:"Module"})),{Panel:ZM}=ee;function eR(e){const t=Tf(L_),[n,i]=a.useState(),[r,s]=a.useState();let l=null==n?void 0:n.filter((e=>"faqQuestion"==(null==e?void 0:e.FieldName)));a.useEffect((()=>{null==l||l.map((e=>{"faqQuestion"==e.FieldName&&s(e.FieldValue)}))}),[l]);const o=[{FieldName:"faqTitle",FieldValue:"",FieldAddData:""},{FieldName:"faqImage",FieldValue:"",FieldAddData:""},{FieldName:"faqQuestion",FieldValue:"",FieldAddData:""},{FieldName:"faqQuestion",FieldValue:"",FieldAddData:""},{FieldName:"faqQuestion",FieldValue:"",FieldAddData:""},{FieldName:"faqQuestion",FieldValue:"",FieldAddData:""}];a.useEffect((()=>{i(e.hasOwnProperty("data")?e.data:o)}),[e.data]);const d={background:"transparent",borderRadius:0,border:"none",fontSize:"16px",fontFamily:null==t?void 0:t.para},c={background:"transparent",borderRadius:0,border:"solid 0.5px #f3f3f3",fontSize:"16px",display:"flex",flexDirection:"column",fontFamily:"poppins"};return Ye.jsxs("div",{className:"modalContainer2",children:[Ye.jsx("div",{className:"swaiper-div-one",children:null==n?void 0:n.map((e=>{var n;return"faqTitle"==e.FieldName?Ye.jsx("div",{className:(null==(n=e.FieldValue)?void 0:n.length)>0?"preTitleData2":"FaqempTitleData",children:Ye.jsx("p",{style:{fontFamily:null==t?void 0:t.head},children:e.FieldValue.length>0?e.FieldValue:""})}):null}))}),Ye.jsx("div",{className:"faqCollapseContainer",style:{display:"flex",flexDirection:"column",justifyContent:"space-evenly"},children:""!==r?null==n?void 0:n.map(((e,n)=>"faqQuestion"==e.FieldName&&Ye.jsx(ee,{modalShow:!0,style:c,defaultActiveKey:[""],children:Ye.jsx(ZM,{header:e.FieldValue,style:d,children:Ye.jsx("p",{style:{fontFamily:null==t?void 0:t.para},className:e.FieldAddData?"Faq2Box":"Faq1EmptyBox",children:e.FieldAddData})},"")}))):Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[Ye.jsx("div",{className:"firstFaqList",children:Ye.jsx("div",{className:"subfirstFaqList"})}),Ye.jsx("div",{className:"seconfFaqList",children:Ye.jsx("div",{className:"subfirstFaqList"})}),Ye.jsx("div",{className:"thirdfaqList"}),Ye.jsx("div",{className:"thirdfaqList"}),Ye.jsx("div",{className:"thirdfaqList"})]})})]})}const tR=Object.freeze(Object.defineProperty({__proto__:null,default:eR},Symbol.toStringTag,{value:"Module"}));function nR(e){return Cn({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M17 3.34a10 10 0 1 1 -15 8.66l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 3.66h-6c-1.287 0 -1.332 1.864 -.133 1.993l.133 .007h1a2 2 0 0 1 1.732 1h-2.732a1 1 0 0 0 0 2l2.732 .001a2 2 0 0 1 -1.732 .999h-1c-.89 0 -1.337 1.077 -.707 1.707l3 3a1 1 0 0 0 1.414 0l.083 -.094a1 1 0 0 0 -.083 -1.32l-1.484 -1.485l.113 -.037a4.009 4.009 0 0 0 2.538 -2.77l1.126 -.001a1 1 0 0 0 0 -2h-1.126a3.973 3.973 0 0 0 -.33 -.855l-.079 -.145h1.535a1 1 0 0 0 1 -1l-.007 -.117a1 1 0 0 0 -.993 -.883z",strokeWidth:"0",fill:"currentColor"}}]})(e)}const iR="/home/",aR="https://www.pozo.dev",rR="https://pozo.app/CustomPaymentGateway/CustomPaymentGateway";var sR={},lR={},oR="object"==typeof d&&d&&d.Object===Object&&d,dR=oR,cR="object"==typeof self&&self&&self.Object===Object&&self,uR=dR||cR||Function("return this")(),pR=uR.Symbol,AR=pR,hR=Object.prototype,fR=hR.hasOwnProperty,mR=hR.toString,vR=AR?AR.toStringTag:void 0;var gR=function(e){var t=fR.call(e,vR),n=e[vR];try{e[vR]=void 0;var i=!0}catch(Ou){}var a=mR.call(e);return i&&(t?e[vR]=n:delete e[vR]),a},yR=Object.prototype.toString;var xR=gR,bR=function(e){return yR.call(e)},wR=pR?pR.toStringTag:void 0;var jR=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":wR&&wR in Object(e)?xR(e):bR(e)},CR=Array.isArray;var SR=function(e){return null!=e&&"object"==typeof e},NR=jR,IR=CR,FR=SR;var BR=function(e){return"string"==typeof e||!IR(e)&&FR(e)&&"[object String]"==NR(e)};var PR=function(e){return function(t,n,i){for(var a=-1,r=Object(t),s=i(t),l=s.length;l--;){var o=s[e?l:++a];if(!1===n(r[o],o,r))break}return t}},kR=PR();var TR=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},ER=jR,DR=SR;var LR,UR,_R,OR,MR,RR,QR,HR,VR=function(e){return DR(e)&&"[object Arguments]"==ER(e)},zR=SR,qR=Object.prototype,WR=qR.hasOwnProperty,YR=qR.propertyIsEnumerable,KR=VR(function(){return arguments}())?VR:function(e){return zR(e)&&WR.call(e,"callee")&&!YR.call(e,"callee")},GR={exports:{}};LR=GR,_R=uR,OR=function(){return!1},MR=(UR=GR.exports)&&!UR.nodeType&&UR,RR=MR&&LR&&!LR.nodeType&&LR,QR=RR&&RR.exports===MR?_R.Buffer:void 0,HR=(QR?QR.isBuffer:void 0)||OR,LR.exports=HR;var $R=GR.exports,XR=/^(?:0|[1-9]\d*)$/;var JR=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&XR.test(e))&&e>-1&&e%1==0&&e<t};var ZR=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},eQ=jR,tQ=ZR,nQ=SR,iQ={};iQ["[object Float32Array]"]=iQ["[object Float64Array]"]=iQ["[object Int8Array]"]=iQ["[object Int16Array]"]=iQ["[object Int32Array]"]=iQ["[object Uint8Array]"]=iQ["[object Uint8ClampedArray]"]=iQ["[object Uint16Array]"]=iQ["[object Uint32Array]"]=!0,iQ["[object Arguments]"]=iQ["[object Array]"]=iQ["[object ArrayBuffer]"]=iQ["[object Boolean]"]=iQ["[object DataView]"]=iQ["[object Date]"]=iQ["[object Error]"]=iQ["[object Function]"]=iQ["[object Map]"]=iQ["[object Number]"]=iQ["[object Object]"]=iQ["[object RegExp]"]=iQ["[object Set]"]=iQ["[object String]"]=iQ["[object WeakMap]"]=!1;var aQ=function(e){return nQ(e)&&tQ(e.length)&&!!iQ[eQ(e)]};var rQ=function(e){return function(t){return e(t)}},sQ={exports:{}};!function(e,t){var n=oR,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,r=a&&a.exports===i&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||r&&r.binding&&r.binding("util")}catch(Ou){}}();e.exports=s}(sQ,sQ.exports);var lQ=sQ.exports,oQ=aQ,dQ=rQ,cQ=lQ&&lQ.isTypedArray,uQ=cQ?dQ(cQ):oQ,pQ=TR,AQ=KR,hQ=CR,fQ=$R,mQ=JR,vQ=uQ,gQ=Object.prototype.hasOwnProperty;var yQ=function(e,t){var n=hQ(e),i=!n&&AQ(e),a=!n&&!i&&fQ(e),r=!n&&!i&&!a&&vQ(e),s=n||i||a||r,l=s?pQ(e.length,String):[],o=l.length;for(var d in e)!t&&!gQ.call(e,d)||s&&("length"==d||a&&("offset"==d||"parent"==d)||r&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||mQ(d,o))||l.push(d);return l},xQ=Object.prototype;var bQ=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||xQ)};var wQ=function(e,t){return function(n){return e(t(n))}},jQ=wQ(Object.keys,Object),CQ=bQ,SQ=jQ,NQ=Object.prototype.hasOwnProperty;var IQ=function(e){if(!CQ(e))return SQ(e);var t=[];for(var n in Object(e))NQ.call(e,n)&&"constructor"!=n&&t.push(n);return t};var FQ=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},BQ=jR,PQ=FQ;var kQ=function(e){if(!PQ(e))return!1;var t=BQ(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},TQ=kQ,EQ=ZR;var DQ=function(e){return null!=e&&EQ(e.length)&&!TQ(e)},LQ=yQ,UQ=IQ,_Q=DQ;var OQ=function(e){return _Q(e)?LQ(e):UQ(e)},MQ=kR,RQ=OQ;var QQ=function(e,t){return e&&MQ(e,t,RQ)};var HQ=function(e){return e},VQ=HQ;var zQ=QQ,qQ=function(e){return"function"==typeof e?e:VQ};var WQ=function(e,t){return e&&zQ(e,qQ(t))},YQ=wQ(Object.getPrototypeOf,Object),KQ=jR,GQ=YQ,$Q=SR,XQ=Function.prototype,JQ=Object.prototype,ZQ=XQ.toString,eH=JQ.hasOwnProperty,tH=ZQ.call(Object);var nH=function(e){if(!$Q(e)||"[object Object]"!=KQ(e))return!1;var t=GQ(e);if(null===t)return!0;var n=eH.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ZQ.call(n)==tH};var iH=function(e,t){for(var n=-1,i=null==e?0:e.length,a=Array(i);++n<i;)a[n]=t(e[n],n,e);return a};var aH=function(){this.__data__=[],this.size=0};var rH=function(e,t){return e===t||e!=e&&t!=t},sH=rH;var lH=function(e,t){for(var n=e.length;n--;)if(sH(e[n][0],t))return n;return-1},oH=lH,dH=Array.prototype.splice;var cH=lH;var uH=lH;var pH=lH;var AH=aH,hH=function(e){var t=this.__data__,n=oH(t,e);return!(n<0)&&(n==t.length-1?t.pop():dH.call(t,n,1),--this.size,!0)},fH=function(e){var t=this.__data__,n=cH(t,e);return n<0?void 0:t[n][1]},mH=function(e){return uH(this.__data__,e)>-1},vH=function(e,t){var n=this.__data__,i=pH(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function gH(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}gH.prototype.clear=AH,gH.prototype.delete=hH,gH.prototype.get=fH,gH.prototype.has=mH,gH.prototype.set=vH;var yH=gH,xH=yH;var bH=function(){this.__data__=new xH,this.size=0};var wH=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var jH=function(e){return this.__data__.get(e)};var CH,SH=function(e){return this.__data__.has(e)},NH=uR["__core-js_shared__"],IH=(CH=/[^.]+$/.exec(NH&&NH.keys&&NH.keys.IE_PROTO||""))?"Symbol(src)_1."+CH:"";var FH=function(e){return!!IH&&IH in e},BH=Function.prototype.toString;var PH=function(e){if(null!=e){try{return BH.call(e)}catch(Ou){}try{return e+""}catch(Ou){}}return""},kH=kQ,TH=FH,EH=FQ,DH=PH,LH=/^\[object .+?Constructor\]$/,UH=Function.prototype,_H=Object.prototype,OH=UH.toString,MH=_H.hasOwnProperty,RH=RegExp("^"+OH.call(MH).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var QH=function(e,t){return null==e?void 0:e[t]},HH=function(e){return!(!EH(e)||TH(e))&&(kH(e)?RH:LH).test(DH(e))},VH=QH;var zH=function(e,t){var n=VH(e,t);return HH(n)?n:void 0},qH=zH(uR,"Map"),WH=zH(Object,"create"),YH=WH;var KH=function(){this.__data__=YH?YH(null):{},this.size=0};var GH=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$H=WH,XH=Object.prototype.hasOwnProperty;var JH=function(e){var t=this.__data__;if($H){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return XH.call(t,e)?t[e]:void 0},ZH=WH,eV=Object.prototype.hasOwnProperty;var tV=WH;var nV=KH,iV=GH,aV=JH,rV=function(e){var t=this.__data__;return ZH?void 0!==t[e]:eV.call(t,e)},sV=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=tV&&void 0===t?"__lodash_hash_undefined__":t,this};function lV(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}lV.prototype.clear=nV,lV.prototype.delete=iV,lV.prototype.get=aV,lV.prototype.has=rV,lV.prototype.set=sV;var oV=lV,dV=yH,cV=qH;var uV=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var pV=function(e,t){var n=e.__data__;return uV(t)?n["string"==typeof t?"string":"hash"]:n.map},AV=pV;var hV=pV;var fV=pV;var mV=pV;var vV=function(){this.size=0,this.__data__={hash:new oV,map:new(cV||dV),string:new oV}},gV=function(e){var t=AV(this,e).delete(e);return this.size-=t?1:0,t},yV=function(e){return hV(this,e).get(e)},xV=function(e){return fV(this,e).has(e)},bV=function(e,t){var n=mV(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function wV(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}wV.prototype.clear=vV,wV.prototype.delete=gV,wV.prototype.get=yV,wV.prototype.has=xV,wV.prototype.set=bV;var jV=wV,CV=yH,SV=qH,NV=jV;var IV=yH,FV=bH,BV=wH,PV=jH,kV=SH,TV=function(e,t){var n=this.__data__;if(n instanceof CV){var i=n.__data__;if(!SV||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new NV(i)}return n.set(e,t),this.size=n.size,this};function EV(e){var t=this.__data__=new IV(e);this.size=t.size}EV.prototype.clear=FV,EV.prototype.delete=BV,EV.prototype.get=PV,EV.prototype.has=kV,EV.prototype.set=TV;var DV=EV;var LV=jV,UV=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},_V=function(e){return this.__data__.has(e)};function OV(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new LV;++t<n;)this.add(e[t])}OV.prototype.add=OV.prototype.push=UV,OV.prototype.has=_V;var MV=OV,RV=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1},QV=function(e,t){return e.has(t)};var HV=function(e,t,n,i,a,r){var s=1&n,l=e.length,o=t.length;if(l!=o&&!(s&&o>l))return!1;var d=r.get(e),c=r.get(t);if(d&&c)return d==t&&c==e;var u=-1,p=!0,A=2&n?new MV:void 0;for(r.set(e,t),r.set(t,e);++u<l;){var h=e[u],f=t[u];if(i)var m=s?i(f,h,u,t,e,r):i(h,f,u,e,t,r);if(void 0!==m){if(m)continue;p=!1;break}if(A){if(!RV(t,(function(e,t){if(!QV(A,t)&&(h===e||a(h,e,n,i,r)))return A.push(t)}))){p=!1;break}}else if(h!==f&&!a(h,f,n,i,r)){p=!1;break}}return r.delete(e),r.delete(t),p},VV=uR.Uint8Array;var zV=VV,qV=rH,WV=HV,YV=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n},KV=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},GV=pR?pR.prototype:void 0,$V=GV?GV.valueOf:void 0;var XV=function(e,t,n,i,a,r,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new zV(e),new zV(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return qV(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=YV;case"[object Set]":var o=1&i;if(l||(l=KV),e.size!=t.size&&!o)return!1;var d=s.get(e);if(d)return d==t;i|=2,s.set(e,t);var c=WV(l(e),l(t),i,a,r,s);return s.delete(e),c;case"[object Symbol]":if($V)return $V.call(e)==$V.call(t)}return!1};var JV=function(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e},ZV=JV,ez=CR;var tz=function(e,t,n){var i=t(e);return ez(e)?i:ZV(i,n(e))};var nz=function(){return[]},iz=function(e,t){for(var n=-1,i=null==e?0:e.length,a=0,r=[];++n<i;){var s=e[n];t(s,n,e)&&(r[a++]=s)}return r},az=nz,rz=Object.prototype.propertyIsEnumerable,sz=Object.getOwnPropertySymbols,lz=sz?function(e){return null==e?[]:(e=Object(e),iz(sz(e),(function(t){return rz.call(e,t)})))}:az,oz=lz,dz=tz,cz=oz,uz=OQ;var pz=function(e){return dz(e,uz,cz)},Az=pz,hz=Object.prototype.hasOwnProperty;var fz=function(e,t,n,i,a,r){var s=1&n,l=Az(e),o=l.length;if(o!=Az(t).length&&!s)return!1;for(var d=o;d--;){var c=l[d];if(!(s?c in t:hz.call(t,c)))return!1}var u=r.get(e),p=r.get(t);if(u&&p)return u==t&&p==e;var A=!0;r.set(e,t),r.set(t,e);for(var h=s;++d<o;){var f=e[c=l[d]],m=t[c];if(i)var v=s?i(m,f,c,t,e,r):i(f,m,c,e,t,r);if(!(void 0===v?f===m||a(f,m,n,i,r):v)){A=!1;break}h||(h="constructor"==c)}if(A&&!h){var g=e.constructor,y=t.constructor;g==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y||(A=!1)}return r.delete(e),r.delete(t),A},mz=zH(uR,"DataView"),vz=qH,gz=zH(uR,"Promise"),yz=zH(uR,"Set"),xz=zH(uR,"WeakMap"),bz=jR,wz=PH,jz="[object Map]",Cz="[object Promise]",Sz="[object Set]",Nz="[object WeakMap]",Iz="[object DataView]",Fz=wz(mz),Bz=wz(vz),Pz=wz(gz),kz=wz(yz),Tz=wz(xz),Ez=bz;(mz&&Ez(new mz(new ArrayBuffer(1)))!=Iz||vz&&Ez(new vz)!=jz||gz&&Ez(gz.resolve())!=Cz||yz&&Ez(new yz)!=Sz||xz&&Ez(new xz)!=Nz)&&(Ez=function(e){var t=bz(e),n="[object Object]"==t?e.constructor:void 0,i=n?wz(n):"";if(i)switch(i){case Fz:return Iz;case Bz:return jz;case Pz:return Cz;case kz:return Sz;case Tz:return Nz}return t});var Dz=Ez,Lz=DV,Uz=HV,_z=XV,Oz=fz,Mz=Dz,Rz=CR,Qz=$R,Hz=uQ,Vz="[object Arguments]",zz="[object Array]",qz="[object Object]",Wz=Object.prototype.hasOwnProperty;var Yz=function(e,t,n,i,a,r){var s=Rz(e),l=Rz(t),o=s?zz:Mz(e),d=l?zz:Mz(t),c=(o=o==Vz?qz:o)==qz,u=(d=d==Vz?qz:d)==qz,p=o==d;if(p&&Qz(e)){if(!Qz(t))return!1;s=!0,c=!1}if(p&&!c)return r||(r=new Lz),s||Hz(e)?Uz(e,t,n,i,a,r):_z(e,t,o,n,i,a,r);if(!(1&n)){var A=c&&Wz.call(e,"__wrapped__"),h=u&&Wz.call(t,"__wrapped__");if(A||h){var f=A?e.value():e,m=h?t.value():t;return r||(r=new Lz),a(f,m,n,i,r)}}return!!p&&(r||(r=new Lz),Oz(e,t,n,i,a,r))},Kz=Yz,Gz=SR;var $z=function e(t,n,i,a,r){return t===n||(null==t||null==n||!Gz(t)&&!Gz(n)?t!=t&&n!=n:Kz(t,n,i,a,e,r))},Xz=DV,Jz=$z;var Zz=function(e,t,n,i){var a=n.length,r=a,s=!i;if(null==e)return!r;for(e=Object(e);a--;){var l=n[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<r;){var o=(l=n[a])[0],d=e[o],c=l[1];if(s&&l[2]){if(void 0===d&&!(o in e))return!1}else{var u=new Xz;if(i)var p=i(d,c,o,e,t,u);if(!(void 0===p?Jz(c,d,3,i,u):p))return!1}}return!0},eq=FQ;var tq=function(e){return e==e&&!eq(e)},nq=tq,iq=OQ;var aq=function(e){for(var t=iq(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,nq(a)]}return t};var rq=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},sq=Zz,lq=aq,oq=rq;var dq=function(e){var t=lq(e);return 1==t.length&&t[0][2]?oq(t[0][0],t[0][1]):function(n){return n===e||sq(n,e,t)}},cq=jR,uq=SR;var pq=function(e){return"symbol"==typeof e||uq(e)&&"[object Symbol]"==cq(e)},Aq=CR,hq=pq,fq=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mq=/^\w*$/;var vq=function(e,t){if(Aq(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!hq(e))||(mq.test(e)||!fq.test(e)||null!=t&&e in Object(t))},gq=jV;function yq(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,a=t?t.apply(this,i):i[0],r=n.cache;if(r.has(a))return r.get(a);var s=e.apply(this,i);return n.cache=r.set(a,s)||r,s};return n.cache=new(yq.Cache||gq),n}yq.Cache=gq;var xq=yq;var bq=function(e){var t=xq(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},wq=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jq=/\\(\\)?/g,Cq=bq((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(wq,(function(e,n,i,a){t.push(i?a.replace(jq,"$1"):n||e)})),t})),Sq=iH,Nq=CR,Iq=pq,Fq=pR?pR.prototype:void 0,Bq=Fq?Fq.toString:void 0;var Pq=function e(t){if("string"==typeof t)return t;if(Nq(t))return Sq(t,e)+"";if(Iq(t))return Bq?Bq.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},kq=Pq;var Tq=CR,Eq=vq,Dq=Cq,Lq=function(e){return null==e?"":kq(e)};var Uq=function(e,t){return Tq(e)?e:Eq(e,t)?[e]:Dq(Lq(e))},_q=pq;var Oq=function(e){if("string"==typeof e||_q(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Mq=Uq,Rq=Oq;var Qq=function(e,t){for(var n=0,i=(t=Mq(t,e)).length;null!=e&&n<i;)e=e[Rq(t[n++])];return n&&n==i?e:void 0},Hq=Qq;var Vq=function(e,t,n){var i=null==e?void 0:Hq(e,t);return void 0===i?n:i};var zq=function(e,t){return null!=e&&t in Object(e)},qq=Uq,Wq=KR,Yq=CR,Kq=JR,Gq=ZR,$q=Oq;var Xq=function(e,t,n){for(var i=-1,a=(t=qq(t,e)).length,r=!1;++i<a;){var s=$q(t[i]);if(!(r=null!=e&&n(e,s)))break;e=e[s]}return r||++i!=a?r:!!(a=null==e?0:e.length)&&Gq(a)&&Kq(s,a)&&(Yq(e)||Wq(e))},Jq=zq,Zq=Xq;var eW=function(e,t){return null!=e&&Zq(e,t,Jq)},tW=$z,nW=Vq,iW=eW,aW=vq,rW=tq,sW=rq,lW=Oq;var oW=function(e,t){return aW(e)&&rW(t)?sW(lW(e),t):function(n){var i=nW(n,e);return void 0===i&&i===t?iW(n,e):tW(t,i,3)}};var dW=function(e){return function(t){return null==t?void 0:t[e]}},cW=Qq;var uW=function(e){return function(t){return cW(t,e)}},pW=dW,AW=uW,hW=vq,fW=Oq;var mW=dq,vW=oW,gW=HQ,yW=CR,xW=function(e){return hW(e)?pW(fW(e)):AW(e)};var bW=function(e){return"function"==typeof e?e:null==e?gW:"object"==typeof e?yW(e)?vW(e[0],e[1]):mW(e):xW(e)},wW=DQ;var jW=function(e,t){return function(n,i){if(null==n)return n;if(!wW(n))return e(n,i);for(var a=n.length,r=t?a:-1,s=Object(n);(t?r--:++r<a)&&!1!==i(s[r],r,s););return n}},CW=jW(QQ),SW=DQ;var NW=iH,IW=bW,FW=function(e,t){var n=-1,i=SW(e)?Array(e.length):[];return CW(e,(function(e,a,r){i[++n]=t(e,a,r)})),i},BW=CR;var PW=function(e,t){return(BW(e)?NW:FW)(e,IW(t))};Object.defineProperty(lR,"__esModule",{value:!0}),lR.flattenNames=void 0;var kW=LW(BR),TW=LW(WQ),EW=LW(nH),DW=LW(PW);function LW(e){return e&&e.__esModule?e:{default:e}}var UW=lR.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,DW.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,EW.default)(t)?(0,TW.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,kW.default)(t)&&n.push(t)})),n};lR.default=UW;var _W={};var OW=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e},MW=zH,RW=function(){try{var e=MW(Object,"defineProperty");return e({},"",{}),e}catch(Ou){}}(),QW=RW;var HW=function(e,t,n){"__proto__"==t&&QW?QW(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},VW=HW,zW=rH,qW=Object.prototype.hasOwnProperty;var WW=function(e,t,n){var i=e[t];qW.call(e,t)&&zW(i,n)&&(void 0!==n||t in e)||VW(e,t,n)},YW=WW,KW=HW;var GW=function(e,t,n,i){var a=!n;n||(n={});for(var r=-1,s=t.length;++r<s;){var l=t[r],o=i?i(n[l],e[l],l,n,e):void 0;void 0===o&&(o=e[l]),a?KW(n,l,o):YW(n,l,o)}return n},$W=GW,XW=OQ;var JW=function(e,t){return e&&$W(t,XW(t),e)};var ZW=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eY=FQ,tY=bQ,nY=ZW,iY=Object.prototype.hasOwnProperty;var aY=function(e){if(!eY(e))return nY(e);var t=tY(e),n=[];for(var i in e)("constructor"!=i||!t&&iY.call(e,i))&&n.push(i);return n},rY=yQ,sY=aY,lY=DQ;var oY=function(e){return lY(e)?rY(e,!0):sY(e)},dY=GW,cY=oY;var uY=function(e,t){return e&&dY(t,cY(t),e)},pY={exports:{}};!function(e,t){var n=uR,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,r=a&&a.exports===i?n.Buffer:void 0,s=r?r.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=s?s(n):new e.constructor(n);return e.copy(i),i}}(pY,pY.exports);var AY=pY.exports;var hY=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},fY=GW,mY=oz;var vY=function(e,t){return fY(e,mY(e),t)},gY=JV,yY=YQ,xY=oz,bY=nz,wY=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)gY(t,xY(e)),e=yY(e);return t}:bY,jY=GW,CY=wY;var SY=function(e,t){return jY(e,CY(e),t)},NY=tz,IY=wY,FY=oY;var BY=function(e){return NY(e,FY,IY)},PY=Object.prototype.hasOwnProperty;var kY=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&PY.call(e,"index")&&(n.index=e.index,n.input=e.input),n},TY=VV;var EY=function(e){var t=new e.constructor(e.byteLength);return new TY(t).set(new TY(e)),t},DY=EY;var LY=function(e,t){var n=t?DY(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},UY=/\w*$/;var _Y=function(e){var t=new e.constructor(e.source,UY.exec(e));return t.lastIndex=e.lastIndex,t},OY=pR?pR.prototype:void 0,MY=OY?OY.valueOf:void 0;var RY=EY;var QY=EY,HY=LY,VY=_Y,zY=function(e){return MY?Object(MY.call(e)):{}},qY=function(e,t){var n=t?RY(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var WY=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return QY(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return HY(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return qY(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return VY(e);case"[object Symbol]":return zY(e)}},YY=FQ,KY=Object.create,GY=function(){function e(){}return function(t){if(!YY(t))return{};if(KY)return KY(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),$Y=GY,XY=YQ,JY=bQ;var ZY=function(e){return"function"!=typeof e.constructor||JY(e)?{}:$Y(XY(e))},eK=Dz,tK=SR;var nK=function(e){return tK(e)&&"[object Map]"==eK(e)},iK=rQ,aK=lQ&&lQ.isMap,rK=aK?iK(aK):nK,sK=Dz,lK=SR;var oK=function(e){return lK(e)&&"[object Set]"==sK(e)},dK=rQ,cK=lQ&&lQ.isSet,uK=cK?dK(cK):oK,pK=DV,AK=OW,hK=WW,fK=JW,mK=uY,vK=AY,gK=hY,yK=vY,xK=SY,bK=pz,wK=BY,jK=Dz,CK=kY,SK=WY,NK=ZY,IK=CR,FK=$R,BK=rK,PK=FQ,kK=uK,TK=OQ,EK=oY,DK="[object Arguments]",LK="[object Function]",UK="[object Object]",_K={};_K[DK]=_K["[object Array]"]=_K["[object ArrayBuffer]"]=_K["[object DataView]"]=_K["[object Boolean]"]=_K["[object Date]"]=_K["[object Float32Array]"]=_K["[object Float64Array]"]=_K["[object Int8Array]"]=_K["[object Int16Array]"]=_K["[object Int32Array]"]=_K["[object Map]"]=_K["[object Number]"]=_K[UK]=_K["[object RegExp]"]=_K["[object Set]"]=_K["[object String]"]=_K["[object Symbol]"]=_K["[object Uint8Array]"]=_K["[object Uint8ClampedArray]"]=_K["[object Uint16Array]"]=_K["[object Uint32Array]"]=!0,_K["[object Error]"]=_K[LK]=_K["[object WeakMap]"]=!1;var OK=function e(t,n,i,a,r,s){var l,o=1&n,d=2&n,c=4&n;if(i&&(l=r?i(t,a,r,s):i(t)),void 0!==l)return l;if(!PK(t))return t;var u=IK(t);if(u){if(l=CK(t),!o)return gK(t,l)}else{var p=jK(t),A=p==LK||"[object GeneratorFunction]"==p;if(FK(t))return vK(t,o);if(p==UK||p==DK||A&&!r){if(l=d||A?{}:NK(t),!o)return d?xK(t,mK(l,t)):yK(t,fK(l,t))}else{if(!_K[p])return r?t:{};l=SK(t,p,o)}}s||(s=new pK);var h=s.get(t);if(h)return h;s.set(t,l),kK(t)?t.forEach((function(a){l.add(e(a,n,i,a,t,s))})):BK(t)&&t.forEach((function(a,r){l.set(r,e(a,n,i,r,t,s))}));var f=u?void 0:(c?d?wK:bK:d?EK:TK)(t);return AK(f||t,(function(a,r){f&&(a=t[r=a]),hK(l,r,e(a,n,i,r,t,s))})),l},MK=OK;var RK=function(e){return MK(e,5)};Object.defineProperty(_W,"__esModule",{value:!0}),_W.mergeClasses=void 0;var QK=zK(WQ),HK=zK(RK),VK=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function zK(e){return e&&e.__esModule?e:{default:e}}var qK=_W.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,HK.default)(e.default)||{};return t.map((function(t){var i=e[t];return i&&(0,QK.default)(i,(function(e,t){n[t]||(n[t]={}),n[t]=VK({},n[t],i[t])})),t})),n};_W.default=qK;var WK={};Object.defineProperty(WK,"__esModule",{value:!0}),WK.autoprefix=void 0;var YK,KK=(YK=WQ)&&YK.__esModule?YK:{default:YK},GK=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};var $K={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},XK=WK.autoprefix=function(e){var t={};return(0,KK.default)(e,(function(e,n){var i={};(0,KK.default)(e,(function(e,t){var n=$K[t];n?i=GK({},i,n(e)):i[t]=e})),t[n]=i})),t};WK.default=XK;var JK={};Object.defineProperty(JK,"__esModule",{value:!0}),JK.hover=void 0;var ZK=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},eG=function(e){return e&&e.__esModule?e:{default:e}}(a);function tG(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var nG=JK.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(){function n(){var i,a,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var s=arguments.length,l=Array(s),o=0;o<s;o++)l[o]=arguments[o];return a=r=tG(this,(i=n.__proto__||Object.getPrototypeOf(n)).call.apply(i,[this].concat(l))),r.state={hover:!1},r.handleMouseOver=function(){return r.setState({hover:!0})},r.handleMouseOut=function(){return r.setState({hover:!1})},r.render=function(){return eG.default.createElement(t,{onMouseOver:r.handleMouseOver,onMouseOut:r.handleMouseOut},eG.default.createElement(e,ZK({},r.props,r.state)))},tG(r,a)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,eG.default.Component),n}()};JK.default=nG;var iG={};Object.defineProperty(iG,"__esModule",{value:!0}),iG.active=void 0;var aG=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},rG=function(e){return e&&e.__esModule?e:{default:e}}(a);function sG(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var lG=iG.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(){function n(){var i,a,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var s=arguments.length,l=Array(s),o=0;o<s;o++)l[o]=arguments[o];return a=r=sG(this,(i=n.__proto__||Object.getPrototypeOf(n)).call.apply(i,[this].concat(l))),r.state={active:!1},r.handleMouseDown=function(){return r.setState({active:!0})},r.handleMouseUp=function(){return r.setState({active:!1})},r.render=function(){return rG.default.createElement(t,{onMouseDown:r.handleMouseDown,onMouseUp:r.handleMouseUp},rG.default.createElement(e,aG({},r.props,r.state)))},sG(r,a)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,rG.default.Component),n}()};iG.default=lG;var oG={};Object.defineProperty(oG,"__esModule",{value:!0});oG.default=function(e,t){var n={},i=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&i("first-child"),e===t-1&&i("last-child"),(0===e||e%2==0)&&i("even"),1===Math.abs(e%2)&&i("odd"),i("nth-child",e),n},Object.defineProperty(sR,"__esModule",{value:!0}),sR.ReactCSS=sR.loop=sR.handleActive=mG=sR.handleHover=sR.hover=void 0;var dG=fG(lR),cG=fG(_W),uG=fG(WK),pG=fG(JK),AG=fG(iG),hG=fG(oG);function fG(e){return e&&e.__esModule?e:{default:e}}sR.hover=pG.default;var mG=sR.handleHover=pG.default;sR.handleActive=AG.default,sR.loop=hG.default;var vG=sR.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var a=(0,dG.default)(n),r=(0,cG.default)(e,a);return(0,uG.default)(r)},gG=sR.default=vG,yG={},xG=function(e,t,n,i){var a=e+"-"+t+"-"+n+(i?"-server":"");if(yG[a])return yG[a];var r=function(e,t,n,i){if("undefined"==typeof document&&!i)return null;var a=i?new i:document.createElement("canvas");a.width=2*n,a.height=2*n;var r=a.getContext("2d");return r?(r.fillStyle=e,r.fillRect(0,0,a.width,a.height),r.fillStyle=t,r.fillRect(0,0,n,n),r.translate(n,n),r.fillRect(0,0,n,n),a.toDataURL()):null}(e,t,n,i);return yG[a]=r,r},bG=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},wG=function(e){var t=e.white,n=e.grey,i=e.size,r=e.renderers,s=e.borderRadius,o=e.boxShadow,d=e.children,c=gG({default:{grid:{borderRadius:s,boxShadow:o,absolute:"0px 0px 0px 0px",background:"url("+xG(t,n,i,r.canvas)+") center left"}}});return a.isValidElement(d)?l.cloneElement(d,bG({},d.props,{style:bG({},d.props.style,c.grid)})):l.createElement("div",{style:c.grid})};wG.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var jG=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},CG=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function SG(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var NG=function(){function e(){var t,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var a=arguments.length,r=Array(a),s=0;s<a;s++)r[s]=arguments[s];return n=i=SG(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(r))),i.handleChange=function(e){var t=function(e,t,n,i,a){var r=a.clientWidth,s=a.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,o="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,d=l-(a.getBoundingClientRect().left+window.pageXOffset),c=o-(a.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var u=void 0;if(u=c<0?0:c>s?1:Math.round(100*c/s)/100,t.a!==u)return{h:t.h,s:t.s,l:t.l,a:u,source:"rgb"}}else{var p=void 0;if(i!==(p=d<0?0:d>r?1:Math.round(100*d/r)/100))return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}return null}(e,i.props.hsl,i.props.direction,i.props.a,i.container);t&&"function"==typeof i.props.onChange&&i.props.onChange(t,e)},i.handleMouseDown=function(e){i.handleChange(e),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},SG(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,a.PureComponent||a.Component),CG(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=gG({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:jG({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return l.createElement("div",{style:n.alpha},l.createElement("div",{style:n.checkboard},l.createElement(wG,{renderers:this.props.renderers})),l.createElement("div",{style:n.gradient}),l.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},l.createElement("div",{style:n.pointer},this.props.pointer?l.createElement(this.props.pointer,this.props):l.createElement("div",{style:n.slider}))))}}]),e}(),IG=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var FG=[38,40],BG=1,PG=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,i=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(i)&&(t=e.keyCode,FG.indexOf(t)>-1)){var a=n.getArrowOffset(),r=38===e.keyCode?i+a:i-a;n.setUpdatedValue(r,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(t.value).toUpperCase(),blurValue:String(t.value).toUpperCase()},n.inputId="rc-editable-input-"+BG++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,a.PureComponent||a.Component),IG(e,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=gG({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return l.createElement("div",{style:t.wrap},l.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?l.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(),kG=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function TG(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var EG=function(){function e(){var t,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var a=arguments.length,r=Array(a),s=0;s<a;s++)r[s]=arguments[s];return n=i=TG(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(r))),i.handleChange=function(e){var t=function(e,t,n,i){var a=i.clientWidth,r=i.clientHeight,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,o=s-(i.getBoundingClientRect().left+window.pageXOffset),d=l-(i.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(c=d<0?359:d>r?0:360*(-100*d/r+100)/100,n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var u=void 0;if(u=o<0?0:o>a?359:100*o/a*360/100,n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,i.props.direction,i.props.hsl,i.container);t&&"function"==typeof i.props.onChange&&i.props.onChange(t,e)},i.handleMouseDown=function(e){i.handleChange(e),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},TG(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,a.PureComponent||a.Component),kG(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,i=gG({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return l.createElement("div",{style:i.hue},l.createElement("div",{className:"hue-"+n,style:i.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},l.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),l.createElement("div",{style:i.pointer},this.props.pointer?l.createElement(this.props.pointer,this.props):l.createElement("div",{style:i.slider}))))}}]),e}();function DG(e,t){return e===t||e!=e&&t!=t}function LG(e,t){for(var n=e.length;n--;)if(DG(e[n][0],t))return n;return-1}var UG=Array.prototype.splice;function _G(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}_G.prototype.clear=function(){this.__data__=[],this.size=0},_G.prototype.delete=function(e){var t=this.__data__,n=LG(t,e);return!(n<0)&&(n==t.length-1?t.pop():UG.call(t,n,1),--this.size,!0)},_G.prototype.get=function(e){var t=this.__data__,n=LG(t,e);return n<0?void 0:t[n][1]},_G.prototype.has=function(e){return LG(this.__data__,e)>-1},_G.prototype.set=function(e,t){var n=this.__data__,i=LG(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};const OG="object"==typeof global&&global&&global.Object===Object&&global;var MG="object"==typeof self&&self&&self.Object===Object&&self;const RG=OG||MG||Function("return this")();const QG=RG.Symbol;var HG=Object.prototype,VG=HG.hasOwnProperty,zG=HG.toString,qG=QG?QG.toStringTag:void 0;var WG=Object.prototype.toString;var YG=QG?QG.toStringTag:void 0;function KG(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":YG&&YG in Object(e)?function(e){var t=VG.call(e,qG),n=e[qG];try{e[qG]=void 0;var i=!0}catch(Ou){}var a=zG.call(e);return i&&(t?e[qG]=n:delete e[qG]),a}(e):function(e){return WG.call(e)}(e)}function GG(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function $G(e){if(!GG(e))return!1;var t=KG(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const XG=RG["__core-js_shared__"];var JG=function(){var e=/[^.]+$/.exec(XG&&XG.keys&&XG.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var ZG=Function.prototype.toString;function e$(e){if(null!=e){try{return ZG.call(e)}catch(Ou){}try{return e+""}catch(Ou){}}return""}var t$=/^\[object .+?Constructor\]$/,n$=Function.prototype,i$=Object.prototype,a$=n$.toString,r$=i$.hasOwnProperty,s$=RegExp("^"+a$.call(r$).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l$(e){return!(!GG(e)||(t=e,JG&&JG in t))&&($G(e)?s$:t$).test(e$(e));var t}function o$(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return l$(n)?n:void 0}const d$=o$(RG,"Map");const c$=o$(Object,"create");var u$=Object.prototype.hasOwnProperty;var p$=Object.prototype.hasOwnProperty;function A$(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function h$(e,t){var n,i,a=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function f$(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}A$.prototype.clear=function(){this.__data__=c$?c$(null):{},this.size=0},A$.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},A$.prototype.get=function(e){var t=this.__data__;if(c$){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return u$.call(t,e)?t[e]:void 0},A$.prototype.has=function(e){var t=this.__data__;return c$?void 0!==t[e]:p$.call(t,e)},A$.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=c$&&void 0===t?"__lodash_hash_undefined__":t,this},f$.prototype.clear=function(){this.size=0,this.__data__={hash:new A$,map:new(d$||_G),string:new A$}},f$.prototype.delete=function(e){var t=h$(this,e).delete(e);return this.size-=t?1:0,t},f$.prototype.get=function(e){return h$(this,e).get(e)},f$.prototype.has=function(e){return h$(this,e).has(e)},f$.prototype.set=function(e,t){var n=h$(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function m$(e){var t=this.__data__=new _G(e);this.size=t.size}m$.prototype.clear=function(){this.__data__=new _G,this.size=0},m$.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},m$.prototype.get=function(e){return this.__data__.get(e)},m$.prototype.has=function(e){return this.__data__.has(e)},m$.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _G){var i=n.__data__;if(!d$||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new f$(i)}return n.set(e,t),this.size=n.size,this};var v$=function(){try{var e=o$(Object,"defineProperty");return e({},"",{}),e}catch(Ou){}}();const g$=v$;function y$(e,t,n){"__proto__"==t&&g$?g$(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function x$(e,t,n){(void 0!==n&&!DG(e[t],n)||void 0===n&&!(t in e))&&y$(e,t,n)}var b$,w$=function(e,t,n){for(var i=-1,a=Object(e),r=n(e),s=r.length;s--;){var l=r[b$?s:++i];if(!1===t(a[l],l,a))break}return e};const j$=w$;var C$="object"==typeof exports&&exports&&!exports.nodeType&&exports,S$=C$&&"object"==typeof module&&module&&!module.nodeType&&module,N$=S$&&S$.exports===C$?RG.Buffer:void 0,I$=N$?N$.allocUnsafe:void 0;const F$=RG.Uint8Array;function B$(e,t){var n,i,a=t?(n=e.buffer,i=new n.constructor(n.byteLength),new F$(i).set(new F$(n)),i):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}var P$=Object.create,k$=function(){function e(){}return function(t){if(!GG(t))return{};if(P$)return P$(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const T$=k$;function E$(e,t){return function(n){return e(t(n))}}const D$=E$(Object.getPrototypeOf,Object);var L$=Object.prototype;function U$(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||L$)}function _$(e){return null!=e&&"object"==typeof e}function O$(e){return _$(e)&&"[object Arguments]"==KG(e)}var M$=Object.prototype,R$=M$.hasOwnProperty,Q$=M$.propertyIsEnumerable;const H$=O$(function(){return arguments}())?O$:function(e){return _$(e)&&R$.call(e,"callee")&&!Q$.call(e,"callee")};const V$=Array.isArray;function z$(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function q$(e){return null!=e&&z$(e.length)&&!$G(e)}var W$="object"==typeof exports&&exports&&!exports.nodeType&&exports,Y$=W$&&"object"==typeof module&&module&&!module.nodeType&&module,K$=Y$&&Y$.exports===W$?RG.Buffer:void 0;const G$=(K$?K$.isBuffer:void 0)||function(){return!1};var $$=Function.prototype,X$=Object.prototype,J$=$$.toString,Z$=X$.hasOwnProperty,eX=J$.call(Object);var tX={};tX["[object Float32Array]"]=tX["[object Float64Array]"]=tX["[object Int8Array]"]=tX["[object Int16Array]"]=tX["[object Int32Array]"]=tX["[object Uint8Array]"]=tX["[object Uint8ClampedArray]"]=tX["[object Uint16Array]"]=tX["[object Uint32Array]"]=!0,tX["[object Arguments]"]=tX["[object Array]"]=tX["[object ArrayBuffer]"]=tX["[object Boolean]"]=tX["[object DataView]"]=tX["[object Date]"]=tX["[object Error]"]=tX["[object Function]"]=tX["[object Map]"]=tX["[object Number]"]=tX["[object Object]"]=tX["[object RegExp]"]=tX["[object Set]"]=tX["[object String]"]=tX["[object WeakMap]"]=!1;var nX="object"==typeof exports&&exports&&!exports.nodeType&&exports,iX=nX&&"object"==typeof module&&module&&!module.nodeType&&module,aX=iX&&iX.exports===nX&&OG.process,rX=function(){try{var e=iX&&iX.require&&iX.require("util").types;return e||aX&&aX.binding&&aX.binding("util")}catch(Ou){}}();var sX,lX=rX&&rX.isTypedArray;const oX=lX?(sX=lX,function(e){return sX(e)}):function(e){return _$(e)&&z$(e.length)&&!!tX[KG(e)]};function dX(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var cX=Object.prototype.hasOwnProperty;function uX(e,t,n){var i=e[t];cX.call(e,t)&&DG(i,n)&&(void 0!==n||t in e)||y$(e,t,n)}var pX=/^(?:0|[1-9]\d*)$/;function AX(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&pX.test(e))&&e>-1&&e%1==0&&e<t}var hX=Object.prototype.hasOwnProperty;function fX(e,t){var n=V$(e),i=!n&&H$(e),a=!n&&!i&&G$(e),r=!n&&!i&&!a&&oX(e),s=n||i||a||r,l=s?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],o=l.length;for(var d in e)!t&&!hX.call(e,d)||s&&("length"==d||a&&("offset"==d||"parent"==d)||r&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||AX(d,o))||l.push(d);return l}var mX=Object.prototype.hasOwnProperty;function vX(e){if(!GG(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=U$(e),n=[];for(var i in e)("constructor"!=i||!t&&mX.call(e,i))&&n.push(i);return n}function gX(e){return q$(e)?fX(e,!0):vX(e)}function yX(e){return function(e,t,n,i){var a=!n;n||(n={});for(var r=-1,s=t.length;++r<s;){var l=t[r],o=i?i(n[l],e[l],l,n,e):void 0;void 0===o&&(o=e[l]),a?y$(n,l,o):uX(n,l,o)}return n}(e,gX(e))}function xX(e,t,n,i,a,r,s){var l=dX(e,n),o=dX(t,n),d=s.get(o);if(d)x$(e,n,d);else{var c,u=r?r(l,o,n+"",e,t,s):void 0,p=void 0===u;if(p){var A=V$(o),h=!A&&G$(o),f=!A&&!h&&oX(o);u=o,A||h||f?V$(l)?u=l:_$(c=l)&&q$(c)?u=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}(l):h?(p=!1,u=function(e,t){if(t)return e.slice();var n=e.length,i=I$?I$(n):new e.constructor(n);return e.copy(i),i}(o,!0)):f?(p=!1,u=B$(o,!0)):u=[]:function(e){if(!_$(e)||"[object Object]"!=KG(e))return!1;var t=D$(e);if(null===t)return!0;var n=Z$.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&J$.call(n)==eX}(o)||H$(o)?(u=l,H$(l)?u=yX(l):GG(l)&&!$G(l)||(u=function(e){return"function"!=typeof e.constructor||U$(e)?{}:T$(D$(e))}(o))):p=!1}p&&(s.set(o,u),a(u,o,i,r,s),s.delete(o)),x$(e,n,u)}}function bX(e,t,n,i,a){e!==t&&j$(t,(function(r,s){if(a||(a=new m$),GG(r))xX(e,t,s,n,bX,i,a);else{var l=i?i(dX(e,s),r,s+"",e,t,a):void 0;void 0===l&&(l=r),x$(e,s,l)}}),gX)}function wX(e){return e}var jX=Math.max;var CX=g$?function(e,t){return g$(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:wX;const SX=CX;var NX=Date.now;var IX=function(e){var t=0,n=0;return function(){var i=NX(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(SX);const FX=IX;function BX(e,t){return FX(function(e,t,n){return t=jX(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,r=jX(i.length-t,0),s=Array(r);++a<r;)s[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=n(s),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,l)}}(e,t,wX),e+"")}var PX,kX=(PX=function(e,t,n){bX(e,t,n)},BX((function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,r=i>2?t[2]:void 0;for(a=PX.length>3&&"function"==typeof a?(i--,a):void 0,r&&function(e,t,n){if(!GG(n))return!1;var i=typeof t;return!!("number"==i?q$(n)&&AX(t,n.length):"string"==i&&t in n)&&DG(n[t],e)}(t[0],t[1],r)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var s=t[n];s&&PX(e,s,n,a)}return e})));const TX=kX;var EX=function(e){var t=e.zDepth,n=e.radius,i=e.background,a=e.children,r=e.styles,s=gG(TX({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},void 0===r?{}:r),{"zDepth-1":1===t});return l.createElement("div",{style:s.wrap},l.createElement("div",{style:s.bg}),l.createElement("div",{style:s.content},a))};EX.propTypes={background:TU.string,zDepth:TU.oneOf([0,1,2,3,4,5]),radius:TU.number,styles:TU.object},EX.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};const DX=function(){return RG.Date.now()};var LX=/\s/;var UX=/^\s+/;function _X(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&LX.test(e.charAt(t)););return t}(e)+1).replace(UX,""):e}function OX(e){return"symbol"==typeof e||_$(e)&&"[object Symbol]"==KG(e)}var MX=/^[-+]0x[0-9a-f]+$/i,RX=/^0b[01]+$/i,QX=/^0o[0-7]+$/i,HX=parseInt;function VX(e){if("number"==typeof e)return e;if(OX(e))return NaN;if(GG(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=GG(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=_X(e);var n=RX.test(e);return n||QX.test(e)?HX(e.slice(2),n?2:8):MX.test(e)?NaN:+e}var zX=Math.max,qX=Math.min;function WX(e,t,n){var i,a,r,s,l,o,d=0,c=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function A(t){var n=i,r=a;return i=a=void 0,d=t,s=e.apply(r,n)}function h(e){var n=e-o;return void 0===o||n>=t||n<0||u&&e-d>=r}function f(){var e=DX();if(h(e))return m(e);l=setTimeout(f,function(e){var n=t-(e-o);return u?qX(n,r-(e-d)):n}(e))}function m(e){return l=void 0,p&&i?A(e):(i=a=void 0,s)}function v(){var e=DX(),n=h(e);if(i=arguments,a=this,o=e,n){if(void 0===l)return function(e){return d=e,l=setTimeout(f,t),c?A(e):s}(o);if(u)return clearTimeout(l),l=setTimeout(f,t),A(o)}return void 0===l&&(l=setTimeout(f,t)),s}return t=VX(t)||0,GG(n)&&(c=!!n.leading,r=(u="maxWait"in n)?zX(VX(n.maxWait)||0,t):r,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==l&&clearTimeout(l),d=0,i=o=a=l=void 0},v.flush=function(){return void 0===l?s:m(DX())},v}var YX=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var KX=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,function(e,t,n){var i=n.getBoundingClientRect(),a=i.width,r=i.height,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,o=s-(n.getBoundingClientRect().left+window.pageXOffset),d=l-(n.getBoundingClientRect().top+window.pageYOffset);o<0?o=0:o>a&&(o=a),d<0?d=0:d>r&&(d=r);var c=o/a,u=1-d/r;return{h:t.h,s:c,v:u,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return GG(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),WX(e,t,{leading:i,maxWait:t,trailing:a})}((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,a.PureComponent||a.Component),YX(e,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,i=t.white,a=t.black,r=t.pointer,s=t.circle,o=gG({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:i,black:a,pointer:r,circle:s}},{custom:!!this.props.style});return l.createElement("div",{style:o.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},l.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),l.createElement("div",{style:o.white,className:"saturation-white"},l.createElement("div",{style:o.black,className:"saturation-black"}),l.createElement("div",{style:o.pointer},this.props.pointer?l.createElement(this.props.pointer,this.props):l.createElement("div",{style:o.circle}))))}}]),e}();function GX(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}const $X=E$(Object.keys,Object);var XX=Object.prototype.hasOwnProperty;function JX(e){return q$(e)?fX(e):function(e){if(!U$(e))return $X(e);var t=[];for(var n in Object(e))XX.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var ZX=function(e,t){return function(n,i){if(null==n)return n;if(!q$(n))return e(n,i);for(var a=n.length,r=t?a:-1,s=Object(n);(t?r--:++r<a)&&!1!==i(s[r],r,s););return n}}((function(e,t){return e&&j$(e,t,JX)}));const eJ=ZX;function tJ(e,t){var n;return(V$(e)?GX:eJ)(e,"function"==typeof(n=t)?n:wX)}function nJ(e){return(nJ="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 iJ=/^\s+/,aJ=/\s+$/;function rJ(e,t){if(t=t||{},(e=e||"")instanceof rJ)return e;if(!(this instanceof rJ))return new rJ(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,i=null,a=null,r=null,s=!1,l=!1;"string"==typeof e&&(e=function(e){e=e.replace(iJ,"").replace(aJ,"").toLowerCase();var t,n=!1;if(wJ[e])e=wJ[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=LJ.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=LJ.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=LJ.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=LJ.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=LJ.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=LJ.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=LJ.hex8.exec(e))return{r:IJ(t[1]),g:IJ(t[2]),b:IJ(t[3]),a:kJ(t[4]),format:n?"name":"hex8"};if(t=LJ.hex6.exec(e))return{r:IJ(t[1]),g:IJ(t[2]),b:IJ(t[3]),format:n?"name":"hex"};if(t=LJ.hex4.exec(e))return{r:IJ(t[1]+""+t[1]),g:IJ(t[2]+""+t[2]),b:IJ(t[3]+""+t[3]),a:kJ(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=LJ.hex3.exec(e))return{r:IJ(t[1]+""+t[1]),g:IJ(t[2]+""+t[2]),b:IJ(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==nJ(e)&&(UJ(e.r)&&UJ(e.g)&&UJ(e.b)?(o=e.r,d=e.g,c=e.b,t={r:255*SJ(o,255),g:255*SJ(d,255),b:255*SJ(c,255)},s=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):UJ(e.h)&&UJ(e.s)&&UJ(e.v)?(i=BJ(e.s),a=BJ(e.v),t=function(e,t,n){e=6*SJ(e,360),t=SJ(t,100),n=SJ(n,100);var i=Math.floor(e),a=e-i,r=n*(1-t),s=n*(1-a*t),l=n*(1-(1-a)*t),o=i%6,d=[n,s,r,r,l,n][o],c=[l,n,n,s,r,r][o],u=[r,r,l,n,n,s][o];return{r:255*d,g:255*c,b:255*u}}(e.h,i,a),s=!0,l="hsv"):UJ(e.h)&&UJ(e.s)&&UJ(e.l)&&(i=BJ(e.s),r=BJ(e.l),t=function(e,t,n){var i,a,r;function s(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=SJ(e,360),t=SJ(t,100),n=SJ(n,100),0===t)i=a=r=n;else{var l=n<.5?n*(1+t):n+t-n*t,o=2*n-l;i=s(o,l,e+1/3),a=s(o,l,e),r=s(o,l,e-1/3)}return{r:255*i,g:255*a,b:255*r}}(e.h,i,r),s=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a));var o,d,c;return n=CJ(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function sJ(e,t,n){e=SJ(e,255),t=SJ(t,255),n=SJ(n,255);var i,a,r=Math.max(e,t,n),s=Math.min(e,t,n),l=(r+s)/2;if(r==s)i=a=0;else{var o=r-s;switch(a=l>.5?o/(2-r-s):o/(r+s),r){case e:i=(t-n)/o+(t<n?6:0);break;case t:i=(n-e)/o+2;break;case n:i=(e-t)/o+4}i/=6}return{h:i,s:a,l:l}}function lJ(e,t,n){e=SJ(e,255),t=SJ(t,255),n=SJ(n,255);var i,a,r=Math.max(e,t,n),s=Math.min(e,t,n),l=r,o=r-s;if(a=0===r?0:o/r,r==s)i=0;else{switch(r){case e:i=(t-n)/o+(t<n?6:0);break;case t:i=(n-e)/o+2;break;case n:i=(e-t)/o+4}i/=6}return{h:i,s:a,v:l}}function oJ(e,t,n,i){var a=[FJ(Math.round(e).toString(16)),FJ(Math.round(t).toString(16)),FJ(Math.round(n).toString(16))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function dJ(e,t,n,i){return[FJ(PJ(i)),FJ(Math.round(e).toString(16)),FJ(Math.round(t).toString(16)),FJ(Math.round(n).toString(16))].join("")}function cJ(e,t){t=0===t?0:t||10;var n=rJ(e).toHsl();return n.s-=t/100,n.s=NJ(n.s),rJ(n)}function uJ(e,t){t=0===t?0:t||10;var n=rJ(e).toHsl();return n.s+=t/100,n.s=NJ(n.s),rJ(n)}function pJ(e){return rJ(e).desaturate(100)}function AJ(e,t){t=0===t?0:t||10;var n=rJ(e).toHsl();return n.l+=t/100,n.l=NJ(n.l),rJ(n)}function hJ(e,t){t=0===t?0:t||10;var n=rJ(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),rJ(n)}function fJ(e,t){t=0===t?0:t||10;var n=rJ(e).toHsl();return n.l-=t/100,n.l=NJ(n.l),rJ(n)}function mJ(e,t){var n=rJ(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,rJ(n)}function vJ(e){var t=rJ(e).toHsl();return t.h=(t.h+180)%360,rJ(t)}function gJ(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=rJ(e).toHsl(),i=[rJ(e)],a=360/t,r=1;r<t;r++)i.push(rJ({h:(n.h+r*a)%360,s:n.s,l:n.l}));return i}function yJ(e){var t=rJ(e).toHsl(),n=t.h;return[rJ(e),rJ({h:(n+72)%360,s:t.s,l:t.l}),rJ({h:(n+216)%360,s:t.s,l:t.l})]}function xJ(e,t,n){t=t||6,n=n||30;var i=rJ(e).toHsl(),a=360/n,r=[rJ(e)];for(i.h=(i.h-(a*t>>1)+720)%360;--t;)i.h=(i.h+a)%360,r.push(rJ(i));return r}function bJ(e,t){t=t||6;for(var n=rJ(e).toHsv(),i=n.h,a=n.s,r=n.v,s=[],l=1/t;t--;)s.push(rJ({h:i,s:a,v:r})),r=(r+l)%1;return s}rJ.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,i=this.toRgb();return e=i.r/255,t=i.g/255,n=i.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=CJ(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=lJ(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=lJ(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=sJ(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=sJ(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return oJ(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,i,a){var r=[FJ(Math.round(e).toString(16)),FJ(Math.round(t).toString(16)),FJ(Math.round(n).toString(16)),FJ(PJ(i))];if(a&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1))return r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0);return r.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*SJ(this._r,255))+"%",g:Math.round(100*SJ(this._g,255))+"%",b:Math.round(100*SJ(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*SJ(this._r,255))+"%, "+Math.round(100*SJ(this._g,255))+"%, "+Math.round(100*SJ(this._b,255))+"%)":"rgba("+Math.round(100*SJ(this._r,255))+"%, "+Math.round(100*SJ(this._g,255))+"%, "+Math.round(100*SJ(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(jJ[oJ(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+dJ(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var a=rJ(e);n="#"+dJ(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,i=this._a<1&&this._a>=0;return t||!i||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return rJ(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(AJ,arguments)},brighten:function(){return this._applyModification(hJ,arguments)},darken:function(){return this._applyModification(fJ,arguments)},desaturate:function(){return this._applyModification(cJ,arguments)},saturate:function(){return this._applyModification(uJ,arguments)},greyscale:function(){return this._applyModification(pJ,arguments)},spin:function(){return this._applyModification(mJ,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(xJ,arguments)},complement:function(){return this._applyCombination(vJ,arguments)},monochromatic:function(){return this._applyCombination(bJ,arguments)},splitcomplement:function(){return this._applyCombination(yJ,arguments)},triad:function(){return this._applyCombination(gJ,[3])},tetrad:function(){return this._applyCombination(gJ,[4])}},rJ.fromRatio=function(e,t){if("object"==nJ(e)){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]="a"===i?e[i]:BJ(e[i]));e=n}return rJ(e,t)},rJ.equals=function(e,t){return!(!e||!t)&&rJ(e).toRgbString()==rJ(t).toRgbString()},rJ.random=function(){return rJ.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},rJ.mix=function(e,t,n){n=0===n?0:n||50;var i=rJ(e).toRgb(),a=rJ(t).toRgb(),r=n/100;return rJ({r:(a.r-i.r)*r+i.r,g:(a.g-i.g)*r+i.g,b:(a.b-i.b)*r+i.b,a:(a.a-i.a)*r+i.a})},rJ.readability=function(e,t){var n=rJ(e),i=rJ(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},rJ.isReadable=function(e,t,n){var i,a,r=rJ.readability(e,t);switch(a=!1,(i=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7}return a},rJ.mostReadable=function(e,t,n){var i,a,r,s,l=null,o=0;a=(n=n||{}).includeFallbackColors,r=n.level,s=n.size;for(var d=0;d<t.length;d++)(i=rJ.readability(e,t[d]))>o&&(o=i,l=rJ(t[d]));return rJ.isReadable(e,l,{level:r,size:s})||!a?l:(n.includeFallbackColors=!1,rJ.mostReadable(e,["#fff","#000"],n))};var wJ=rJ.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},jJ=rJ.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(wJ);function CJ(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function SJ(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function NJ(e){return Math.min(1,Math.max(0,e))}function IJ(e){return parseInt(e,16)}function FJ(e){return 1==e.length?"0"+e:""+e}function BJ(e){return e<=1&&(e=100*e+"%"),e}function PJ(e){return Math.round(255*parseFloat(e)).toString(16)}function kJ(e){return IJ(e)/255}var TJ,EJ,DJ,LJ=(EJ="[\\s|\\(]+("+(TJ="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+TJ+")[,|\\s]+("+TJ+")\\s*\\)?",DJ="[\\s|\\(]+("+TJ+")[,|\\s]+("+TJ+")[,|\\s]+("+TJ+")[,|\\s]+("+TJ+")\\s*\\)?",{CSS_UNIT:new RegExp(TJ),rgb:new RegExp("rgb"+EJ),rgba:new RegExp("rgba"+DJ),hsl:new RegExp("hsl"+EJ),hsla:new RegExp("hsla"+DJ),hsv:new RegExp("hsv"+EJ),hsva:new RegExp("hsva"+DJ),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function UJ(e){return!!LJ.CSS_UNIT.exec(e)}var _J=function(e){var t=0,n=0;return tJ(["r","g","b","a","h","s","l","v"],(function(i){if(e[i]&&(t+=1,isNaN(e[i])||(n+=1),"s"===i||"l"===i)){/^\d+%$/.test(e[i])&&(n+=1)}})),t===n&&e},OJ=function(e,t){var n=e.hex?rJ(e.hex):rJ(e),i=n.toHsl(),a=n.toHsv(),r=n.toRgb(),s=n.toHex();return 0===i.s&&(i.h=t||0,a.h=t||0),{hsl:i,hex:"000000"===s&&0===r.a?"transparent":"#"+s,rgb:r,hsv:a,oldHue:e.h||t||i.h,source:e.source}},MJ=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&rJ(e).isValid()},RJ=function(e){if(!e)return"#fff";var t=OJ(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},QJ=function(e,t){return rJ(t+" ("+e.replace("°","")+")")._ok},HJ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},VJ=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var zJ=function(e){var t=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleChange=function(e,t){if(_J(e)){var i=OJ(e,e.h||n.state.oldHue);n.setState(i),n.props.onChangeComplete&&n.debounce(n.props.onChangeComplete,i,t),n.props.onChange&&n.props.onChange(i,t)}},n.handleSwatchHover=function(e,t){if(_J(e)){var i=OJ(e,e.h||n.state.oldHue);n.props.onSwatchHover&&n.props.onSwatchHover(i,t)}},n.state=HJ({},OJ(e.color,0)),n.debounce=WX((function(e,t,n){e(t,n)}),100),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.PureComponent||a.Component),VJ(t,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),l.createElement(e,HJ({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return HJ({},OJ(e.color,t.oldHue))}}]),t}();return t.propTypes=HJ({},e.propTypes),t.defaultProps=HJ({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t},qJ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},WJ=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function YJ(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var KJ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};const GJ=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(){function n(){var e,t,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var a=arguments.length,r=Array(a),s=0;s<a;s++)r[s]=arguments[s];return t=i=YJ(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(r))),i.state={focus:!1},i.handleFocus=function(){return i.setState({focus:!0})},i.handleBlur=function(){return i.setState({focus:!1})},YJ(i,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,l.Component),WJ(n,[{key:"render",value:function(){return l.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},l.createElement(e,qJ({},this.props,this.state)))}}]),n}()}((function(e){var t=e.color,n=e.style,i=e.onClick,a=void 0===i?function(){}:i,r=e.onHover,s=e.title,o=void 0===s?t:s,d=e.children,c=e.focus,u=e.focusStyle,p="transparent"===t,A=gG({default:{swatch:KJ({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?void 0===u?{}:u:{})}}),h={};return r&&(h.onMouseOver=function(e){return r(t,e)}),l.createElement("div",KJ({style:A.swatch,onClick:function(e){return a(t,e)},title:o,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&a(t,e)}},h),d,p&&l.createElement(wG,{borderRadius:A.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))}));var $J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},XJ=function(e){var t=e.rgb,n=e.hsl,i=e.width,a=e.height,r=e.onChange,s=e.direction,o=e.style,d=e.renderers,c=e.pointer,u=e.className,p=void 0===u?"":u,A=gG({default:{picker:{position:"relative",width:i,height:a},alpha:{radius:"2px",style:o}}});return l.createElement("div",{style:A.picker,className:"alpha-picker "+p},l.createElement(NG,$J({},A.alpha,{rgb:t,hsl:n,pointer:c,renderers:d,onChange:r,direction:s})))};function JJ(e,t){for(var n=-1,i=null==e?0:e.length,a=Array(i);++n<i;)a[n]=t(e[n],n,e);return a}XJ.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var t=e.direction,n=gG({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return l.createElement("div",{style:n.picker})}},zJ(XJ);function ZJ(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new f$;++t<n;)this.add(e[t])}function eZ(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}ZJ.prototype.add=ZJ.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ZJ.prototype.has=function(e){return this.__data__.has(e)};function tZ(e,t,n,i,a,r){var s=1&n,l=e.length,o=t.length;if(l!=o&&!(s&&o>l))return!1;var d=r.get(e),c=r.get(t);if(d&&c)return d==t&&c==e;var u=-1,p=!0,A=2&n?new ZJ:void 0;for(r.set(e,t),r.set(t,e);++u<l;){var h=e[u],f=t[u];if(i)var m=s?i(f,h,u,t,e,r):i(h,f,u,e,t,r);if(void 0!==m){if(m)continue;p=!1;break}if(A){if(!eZ(t,(function(e,t){if(s=t,!A.has(s)&&(h===e||a(h,e,n,i,r)))return A.push(t);var s}))){p=!1;break}}else if(h!==f&&!a(h,f,n,i,r)){p=!1;break}}return r.delete(e),r.delete(t),p}function nZ(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function iZ(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var aZ=QG?QG.prototype:void 0,rZ=aZ?aZ.valueOf:void 0;var sZ=Object.prototype.propertyIsEnumerable,lZ=Object.getOwnPropertySymbols,oZ=lZ?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,a=0,r=[];++n<i;){var s=e[n];t(s,n,e)&&(r[a++]=s)}return r}(lZ(e),(function(t){return sZ.call(e,t)})))}:function(){return[]};const dZ=oZ;function cZ(e){return function(e,t,n){var i=t(e);return V$(e)?i:function(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e}(i,n(e))}(e,JX,dZ)}var uZ=Object.prototype.hasOwnProperty;const pZ=o$(RG,"DataView");const AZ=o$(RG,"Promise");const hZ=o$(RG,"Set");const fZ=o$(RG,"WeakMap");var mZ="[object Map]",vZ="[object Promise]",gZ="[object Set]",yZ="[object WeakMap]",xZ="[object DataView]",bZ=e$(pZ),wZ=e$(d$),jZ=e$(AZ),CZ=e$(hZ),SZ=e$(fZ),NZ=KG;(pZ&&NZ(new pZ(new ArrayBuffer(1)))!=xZ||d$&&NZ(new d$)!=mZ||AZ&&NZ(AZ.resolve())!=vZ||hZ&&NZ(new hZ)!=gZ||fZ&&NZ(new fZ)!=yZ)&&(NZ=function(e){var t=KG(e),n="[object Object]"==t?e.constructor:void 0,i=n?e$(n):"";if(i)switch(i){case bZ:return xZ;case wZ:return mZ;case jZ:return vZ;case CZ:return gZ;case SZ:return yZ}return t});const IZ=NZ;var FZ="[object Arguments]",BZ="[object Array]",PZ="[object Object]",kZ=Object.prototype.hasOwnProperty;function TZ(e,t,n,i,a,r){var s=V$(e),l=V$(t),o=s?BZ:IZ(e),d=l?BZ:IZ(t),c=(o=o==FZ?PZ:o)==PZ,u=(d=d==FZ?PZ:d)==PZ,p=o==d;if(p&&G$(e)){if(!G$(t))return!1;s=!0,c=!1}if(p&&!c)return r||(r=new m$),s||oX(e)?tZ(e,t,n,i,a,r):function(e,t,n,i,a,r,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new F$(e),new F$(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return DG(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=nZ;case"[object Set]":var o=1&i;if(l||(l=iZ),e.size!=t.size&&!o)return!1;var d=s.get(e);if(d)return d==t;i|=2,s.set(e,t);var c=tZ(l(e),l(t),i,a,r,s);return s.delete(e),c;case"[object Symbol]":if(rZ)return rZ.call(e)==rZ.call(t)}return!1}(e,t,o,n,i,a,r);if(!(1&n)){var A=c&&kZ.call(e,"__wrapped__"),h=u&&kZ.call(t,"__wrapped__");if(A||h){var f=A?e.value():e,m=h?t.value():t;return r||(r=new m$),a(f,m,n,i,r)}}return!!p&&(r||(r=new m$),function(e,t,n,i,a,r){var s=1&n,l=cZ(e),o=l.length;if(o!=cZ(t).length&&!s)return!1;for(var d=o;d--;){var c=l[d];if(!(s?c in t:uZ.call(t,c)))return!1}var u=r.get(e),p=r.get(t);if(u&&p)return u==t&&p==e;var A=!0;r.set(e,t),r.set(t,e);for(var h=s;++d<o;){var f=e[c=l[d]],m=t[c];if(i)var v=s?i(m,f,c,t,e,r):i(f,m,c,e,t,r);if(!(void 0===v?f===m||a(f,m,n,i,r):v)){A=!1;break}h||(h="constructor"==c)}if(A&&!h){var g=e.constructor,y=t.constructor;g==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y||(A=!1)}return r.delete(e),r.delete(t),A}(e,t,n,i,a,r))}function EZ(e,t,n,i,a){return e===t||(null==e||null==t||!_$(e)&&!_$(t)?e!=e&&t!=t:TZ(e,t,n,i,EZ,a))}function DZ(e){return e==e&&!GG(e)}function LZ(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function UZ(e){var t=function(e){for(var t=JX(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,DZ(a)]}return t}(e);return 1==t.length&&t[0][2]?LZ(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,i){var a=n.length,r=a,s=!i;if(null==e)return!r;for(e=Object(e);a--;){var l=n[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<r;){var o=(l=n[a])[0],d=e[o],c=l[1];if(s&&l[2]){if(void 0===d&&!(o in e))return!1}else{var u=new m$;if(i)var p=i(d,c,o,e,t,u);if(!(void 0===p?EZ(c,d,3,i,u):p))return!1}}return!0}(n,e,t)}}var _Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,OZ=/^\w*$/;function MZ(e,t){if(V$(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!OX(e))||(OZ.test(e)||!_Z.test(e)||null!=t&&e in Object(t))}function RZ(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,a=t?t.apply(this,i):i[0],r=n.cache;if(r.has(a))return r.get(a);var s=e.apply(this,i);return n.cache=r.set(a,s)||r,s};return n.cache=new(RZ.Cache||f$),n}RZ.Cache=f$;var QZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,HZ=/\\(\\)?/g,VZ=function(e){var t=RZ(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(QZ,(function(e,n,i,a){t.push(i?a.replace(HZ,"$1"):n||e)})),t}));const zZ=VZ;var qZ=QG?QG.prototype:void 0,WZ=qZ?qZ.toString:void 0;function YZ(e){if("string"==typeof e)return e;if(V$(e))return JJ(e,YZ)+"";if(OX(e))return WZ?WZ.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function KZ(e,t){return V$(e)?e:MZ(e,t)?[e]:zZ(function(e){return null==e?"":YZ(e)}(e))}function GZ(e){if("string"==typeof e||OX(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function $Z(e,t){for(var n=0,i=(t=KZ(t,e)).length;null!=e&&n<i;)e=e[GZ(t[n++])];return n&&n==i?e:void 0}function XZ(e,t){return null!=e&&t in Object(e)}function JZ(e,t){return null!=e&&function(e,t,n){for(var i=-1,a=(t=KZ(t,e)).length,r=!1;++i<a;){var s=GZ(t[i]);if(!(r=null!=e&&n(e,s)))break;e=e[s]}return r||++i!=a?r:!!(a=null==e?0:e.length)&&z$(a)&&AX(s,a)&&(V$(e)||H$(e))}(e,t,XZ)}function ZZ(e,t){return MZ(e)&&DZ(t)?LZ(GZ(e),t):function(n){var i=function(e,t,n){var i=null==e?void 0:$Z(e,t);return void 0===i?n:i}(n,e);return void 0===i&&i===t?JZ(n,e):EZ(t,i,3)}}function e0(e){return MZ(e)?(t=GZ(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return $Z(t,e)}}(e);var t}function t0(e,t){var n=-1,i=q$(e)?Array(e.length):[];return eJ(e,(function(e,a,r){i[++n]=t(e,a,r)})),i}function n0(e,t){var n;return(V$(e)?JJ:t0)(e,"function"==typeof(n=t)?n:null==n?wX:"object"==typeof n?V$(n)?ZZ(n[0],n[1]):UZ(n):e0(n))}var i0=function(e){var t=e.colors,n=e.onClick,i=e.onSwatchHover,a=gG({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return l.createElement("div",{style:a.swatches},n0(t,(function(e){return l.createElement(GJ,{key:e,color:e,style:a.swatch,onClick:n,onHover:i,focusStyle:{boxShadow:"0 0 4px "+e}})})),l.createElement("div",{style:a.clear}))},a0=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.hex,a=e.colors,r=e.width,s=e.triangle,o=e.styles,d=void 0===o?{}:o,c=e.className,u=void 0===c?"":c,p="transparent"===i,A=function(e,n){MJ(e)&&t({hex:e,source:"hex"},n)},h=gG(TX({default:{card:{width:r,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:RJ(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},d),{"hide-triangle":"hide"===s});return l.createElement("div",{style:h.card,className:"block-picker "+u},l.createElement("div",{style:h.triangle}),l.createElement("div",{style:h.head},p&&l.createElement(wG,{borderRadius:"6px 6px 0 0"}),l.createElement("div",{style:h.label},i)),l.createElement("div",{style:h.body},l.createElement(i0,{colors:a,onClick:A,onSwatchHover:n}),l.createElement(PG,{style:{input:h.input},value:i,onChange:A})))};a0.propTypes={width:TU.oneOfType([TU.string,TU.number]),colors:TU.arrayOf(TU.string),triangle:TU.oneOf(["top","hide"]),styles:TU.object},a0.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},zJ(a0);var r0="#ffcdd2",s0="#e57373",l0="#f44336",o0="#d32f2f",d0="#b71c1c",c0="#f8bbd0",u0="#f06292",p0="#e91e63",A0="#c2185b",h0="#880e4f",f0="#e1bee7",m0="#ba68c8",v0="#9c27b0",g0="#7b1fa2",y0="#4a148c",x0="#d1c4e9",b0="#9575cd",w0="#673ab7",j0="#512da8",C0="#311b92",S0="#c5cae9",N0="#7986cb",I0="#3f51b5",F0="#303f9f",B0="#1a237e",P0="#bbdefb",k0="#64b5f6",T0="#2196f3",E0="#1976d2",D0="#0d47a1",L0="#b3e5fc",U0="#4fc3f7",_0="#03a9f4",O0="#0288d1",M0="#01579b",R0="#b2ebf2",Q0="#4dd0e1",H0="#00bcd4",V0="#0097a7",z0="#006064",q0="#b2dfdb",W0="#4db6ac",Y0="#009688",K0="#00796b",G0="#004d40",$0="#c8e6c9",X0="#81c784",J0="#4caf50",Z0="#388e3c",e1="#dcedc8",t1="#aed581",n1="#8bc34a",i1="#689f38",a1="#33691e",r1="#f0f4c3",s1="#dce775",l1="#cddc39",o1="#afb42b",d1="#827717",c1="#fff9c4",u1="#fff176",p1="#ffeb3b",A1="#fbc02d",h1="#f57f17",f1="#ffecb3",m1="#ffd54f",v1="#ffc107",g1="#ffa000",y1="#ff6f00",x1="#ffe0b2",b1="#ffb74d",w1="#ff9800",j1="#f57c00",C1="#e65100",S1="#ffccbc",N1="#ff8a65",I1="#ff5722",F1="#e64a19",B1="#bf360c",P1="#d7ccc8",k1="#a1887f",T1="#795548",E1="#5d4037",D1="#3e2723",L1="#cfd8dc",U1="#90a4ae",_1="#607d8b",O1="#455a64",M1="#263238",R1=function(e){var t=e.color,n=e.onClick,i=e.onSwatchHover,a=e.hover,r=e.active,s=e.circleSize,o=e.circleSpacing,d=gG({default:{swatch:{width:s,height:s,marginRight:o,marginBottom:o,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:a,active:r});return l.createElement("div",{style:d.swatch},l.createElement(GJ,{style:d.Swatch,color:t,onClick:n,onHover:i,focusStyle:{boxShadow:d.Swatch.boxShadow+", 0 0 5px "+t}}))};R1.defaultProps={circleSize:28,circleSpacing:14};const Q1=mG(R1);var H1=function(e){var t=e.width,n=e.onChange,i=e.onSwatchHover,a=e.colors,r=e.hex,s=e.circleSize,o=e.styles,d=void 0===o?{}:o,c=e.circleSpacing,u=e.className,p=void 0===u?"":u,A=gG(TX({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},d)),h=function(e,t){return n({hex:e,source:"hex"},t)};return l.createElement("div",{style:A.card,className:"circle-picker "+p},n0(a,(function(e){return l.createElement(Q1,{key:e,color:e,onClick:h,onSwatchHover:i,active:r===e.toLowerCase(),circleSize:s,circleSpacing:c})})))};function V1(e){return void 0===e}H1.propTypes={width:TU.oneOfType([TU.string,TU.number]),circleSize:TU.number,circleSpacing:TU.number,styles:TU.object},H1.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[l0,p0,v0,w0,I0,T0,_0,H0,Y0,J0,n1,l1,p1,v1,w1,I1,T1,_1],styles:{}},zJ(H1);var z1={};Object.defineProperty(z1,"__esModule",{value:!0});var q1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},W1=function(e){return e&&e.__esModule?e:{default:e}}(a);var Y1=z1.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,i=e.width,a=void 0===i?24:i,r=e.height,s=void 0===r?24:r,l=e.style,o=void 0===l?{}:l,d=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["fill","width","height","style"]);return W1.default.createElement("svg",q1({viewBox:"0 0 24 24",style:q1({fill:n,width:a,height:s},o)},d),W1.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},K1=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var G1=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?MJ(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(V1(e.s)?n.props.hsl.s:e.s),l:Number(V1(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==t.hsl.a&&"hex"===t.view?n.state={view:"rgb"}:n.state={view:t.view},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,l.Component),K1(e,[{key:"render",value:function(){var e=this,t=gG({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=l.createElement("div",{style:t.fields,className:"flexbox-fix"},l.createElement("div",{style:t.field},l.createElement(PG,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=l.createElement("div",{style:t.fields,className:"flexbox-fix"},l.createElement("div",{style:t.field},l.createElement(PG,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),l.createElement("div",{style:t.field},l.createElement(PG,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),l.createElement("div",{style:t.field},l.createElement(PG,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),l.createElement("div",{style:t.alpha},l.createElement(PG,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=l.createElement("div",{style:t.fields,className:"flexbox-fix"},l.createElement("div",{style:t.field},l.createElement(PG,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),l.createElement("div",{style:t.field},l.createElement(PG,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),l.createElement("div",{style:t.field},l.createElement(PG,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),l.createElement("div",{style:t.alpha},l.createElement(PG,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),l.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,l.createElement("div",{style:t.toggle},l.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},l.createElement(Y1,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),e}();G1.defaultProps={view:"hex"};var $1=function(){var e=gG({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return l.createElement("div",{style:e.picker})},X1=function(){var e=gG({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return l.createElement("div",{style:e.picker})},J1=function(e){var t=e.width,n=e.onChange,i=e.disableAlpha,a=e.rgb,r=e.hsl,s=e.hsv,o=e.hex,d=e.renderers,c=e.styles,u=void 0===c?{}:c,p=e.className,A=void 0===p?"":p,h=e.defaultView,f=gG(TX({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},u),{disableAlpha:i});return l.createElement("div",{style:f.picker,className:"chrome-picker "+A},l.createElement("div",{style:f.saturation},l.createElement(KX,{style:f.Saturation,hsl:r,hsv:s,pointer:X1,onChange:n})),l.createElement("div",{style:f.body},l.createElement("div",{style:f.controls,className:"flexbox-fix"},l.createElement("div",{style:f.color},l.createElement("div",{style:f.swatch},l.createElement("div",{style:f.active}),l.createElement(wG,{renderers:d}))),l.createElement("div",{style:f.toggles},l.createElement("div",{style:f.hue},l.createElement(EG,{style:f.Hue,hsl:r,pointer:$1,onChange:n})),l.createElement("div",{style:f.alpha},l.createElement(NG,{style:f.Alpha,rgb:a,hsl:r,pointer:$1,renderers:d,onChange:n})))),l.createElement(G1,{rgb:a,hsl:r,hex:o,view:h,onChange:n,disableAlpha:i})))};J1.propTypes={width:TU.oneOfType([TU.string,TU.number]),disableAlpha:TU.bool,styles:TU.object,defaultView:TU.oneOf(["hex","rgb","hsl"])},J1.defaultProps={width:225,disableAlpha:!1,styles:{}},zJ(J1);var Z1=function(e){var t=e.color,n=e.onClick,i=void 0===n?function(){}:n,a=e.onSwatchHover,r=e.active,s=gG({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:RJ(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:r,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return l.createElement(GJ,{style:s.color,color:t,onClick:i,onHover:a,focusStyle:{boxShadow:"0 0 4px "+t}},l.createElement("div",{style:s.dot}))},e2=function(e){var t=e.hex,n=e.rgb,i=e.onChange,a=gG({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),r=function(e,t){e.r||e.g||e.b?i({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):i({hex:e.hex,source:"hex"},t)};return l.createElement("div",{style:a.fields,className:"flexbox-fix"},l.createElement("div",{style:a.active}),l.createElement(PG,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:t,onChange:r}),l.createElement(PG,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:r}),l.createElement(PG,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:r}),l.createElement(PG,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:r}))},t2=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.colors,a=e.hex,r=e.rgb,s=e.styles,o=void 0===s?{}:s,d=e.className,c=void 0===d?"":d,u=gG(TX({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},o)),p=function(e,n){e.hex?MJ(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return l.createElement(EX,{style:u.Compact,styles:o},l.createElement("div",{style:u.compact,className:"compact-picker "+c},l.createElement("div",null,n0(i,(function(e){return l.createElement(Z1,{key:e,color:e,active:e.toLowerCase()===a,onClick:p,onSwatchHover:n})})),l.createElement("div",{style:u.clear})),l.createElement(e2,{hex:a,rgb:r,onChange:p})))};t2.propTypes={colors:TU.arrayOf(TU.string),styles:TU.object},t2.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},zJ(t2);const n2=mG((function(e){var t=e.hover,n=e.color,i=e.onClick,a=e.onSwatchHover,r={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=gG({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:r}},{hover:t});return l.createElement("div",{style:s.swatch},l.createElement(GJ,{color:n,onClick:i,onHover:a,focusStyle:r}))}));var i2=function(e){var t=e.width,n=e.colors,i=e.onChange,a=e.onSwatchHover,r=e.triangle,s=e.styles,o=void 0===s?{}:s,d=e.className,c=void 0===d?"":d,u=gG(TX({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},o),{"hide-triangle":"hide"===r,"top-left-triangle":"top-left"===r,"top-right-triangle":"top-right"===r,"bottom-left-triangle":"bottom-left"===r,"bottom-right-triangle":"bottom-right"===r}),p=function(e,t){return i({hex:e,source:"hex"},t)};return l.createElement("div",{style:u.card,className:"github-picker "+c},l.createElement("div",{style:u.triangleShadow}),l.createElement("div",{style:u.triangle}),n0(n,(function(e){return l.createElement(n2,{color:e,key:e,onClick:p,onSwatchHover:a})})))};i2.propTypes={width:TU.oneOfType([TU.string,TU.number]),colors:TU.arrayOf(TU.string),triangle:TU.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:TU.object},i2.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},zJ(i2);var a2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r2=function(e){var t=e.width,n=e.height,i=e.onChange,a=e.hsl,r=e.direction,s=e.pointer,o=e.styles,d=void 0===o?{}:o,c=e.className,u=void 0===c?"":c,p=gG(TX({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},d));return l.createElement("div",{style:p.picker,className:"hue-picker "+u},l.createElement(EG,a2({},p.hue,{hsl:a,pointer:s,onChange:function(e){return i({a:1,h:e.h,l:.5,s:1})},direction:r})))};r2.propTypes={styles:TU.object},r2.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var t=e.direction,n=gG({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return l.createElement("div",{style:n.picker})},styles:{}},zJ(r2);zJ((function(e){var t=e.onChange,n=e.hex,i=e.rgb,a=e.styles,r=void 0===a?{}:a,s=e.className,o=void 0===s?"":s,d=gG(TX({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},r)),c=function(e,n){e.hex?MJ(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||i.r,g:e.g||i.g,b:e.b||i.b,source:"rgb"},n)};return l.createElement(EX,{styles:r},l.createElement("div",{style:d.material,className:"material-picker "+o},l.createElement(PG,{style:{wrap:d.HEXwrap,input:d.HEXinput,label:d.HEXlabel},label:"hex",value:n,onChange:c}),l.createElement("div",{style:d.split,className:"flexbox-fix"},l.createElement("div",{style:d.third},l.createElement(PG,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"r",value:i.r,onChange:c})),l.createElement("div",{style:d.third},l.createElement(PG,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"g",value:i.g,onChange:c})),l.createElement("div",{style:d.third},l.createElement(PG,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"b",value:i.b,onChange:c})))))}));var s2=function(e){var t=e.onChange,n=e.rgb,i=e.hsv,a=e.hex,r=gG({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(e,a){e["#"]?MJ(e["#"])&&t({hex:e["#"],source:"hex"},a):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},a):(e.h||e.s||e.v)&&t({h:e.h||i.h,s:e.s||i.s,v:e.v||i.v,source:"hsv"},a)};return l.createElement("div",{style:r.fields},l.createElement(PG,{style:{wrap:r.RGBwrap,input:r.RGBinput,label:r.RGBlabel},label:"h",value:Math.round(i.h),onChange:s}),l.createElement(PG,{style:{wrap:r.RGBwrap,input:r.RGBinput,label:r.RGBlabel},label:"s",value:Math.round(100*i.s),onChange:s}),l.createElement(PG,{style:{wrap:r.RGBwrap,input:r.RGBinput,label:r.RGBlabel},label:"v",value:Math.round(100*i.v),onChange:s}),l.createElement("div",{style:r.divider}),l.createElement(PG,{style:{wrap:r.RGBwrap,input:r.RGBinput,label:r.RGBlabel},label:"r",value:n.r,onChange:s}),l.createElement(PG,{style:{wrap:r.RGBwrap,input:r.RGBinput,label:r.RGBlabel},label:"g",value:n.g,onChange:s}),l.createElement(PG,{style:{wrap:r.RGBwrap,input:r.RGBinput,label:r.RGBlabel},label:"b",value:n.b,onChange:s}),l.createElement("div",{style:r.divider}),l.createElement(PG,{style:{wrap:r.HEXwrap,input:r.HEXinput,label:r.HEXlabel},label:"#",value:a.replace("#",""),onChange:s}),l.createElement("div",{style:r.fieldSymbols},l.createElement("div",{style:r.symbol},"°"),l.createElement("div",{style:r.symbol},"%"),l.createElement("div",{style:r.symbol},"%")))},l2=function(e){var t=e.hsl,n=gG({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return l.createElement("div",{style:n.picker})},o2=function(){var e=gG({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return l.createElement("div",{style:e.pointer},l.createElement("div",{style:e.left},l.createElement("div",{style:e.leftInside})),l.createElement("div",{style:e.right},l.createElement("div",{style:e.rightInside})))},d2=function(e){var t=e.onClick,n=e.label,i=e.children,a=e.active,r=gG({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return l.createElement("div",{style:r.button,onClick:t},n||i)},c2=function(e){var t=e.rgb,n=e.currentColor,i=gG({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return l.createElement("div",null,l.createElement("div",{style:i.label},"new"),l.createElement("div",{style:i.swatches},l.createElement("div",{style:i.new}),l.createElement("div",{style:i.current})),l.createElement("div",{style:i.label},"current"))},u2=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var p2=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.state={currentColor:t.hex},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,l.Component),u2(e,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,i=e.className,a=void 0===i?"":i,r=gG(TX({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return l.createElement("div",{style:r.picker,className:"photoshop-picker "+a},l.createElement("div",{style:r.head},this.props.header),l.createElement("div",{style:r.body,className:"flexbox-fix"},l.createElement("div",{style:r.saturation},l.createElement(KX,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:l2,onChange:this.props.onChange})),l.createElement("div",{style:r.hue},l.createElement(EG,{direction:"vertical",hsl:this.props.hsl,pointer:o2,onChange:this.props.onChange})),l.createElement("div",{style:r.controls},l.createElement("div",{style:r.top,className:"flexbox-fix"},l.createElement("div",{style:r.previews},l.createElement(c2,{rgb:this.props.rgb,currentColor:this.state.currentColor})),l.createElement("div",{style:r.actions},l.createElement(d2,{label:"OK",onClick:this.props.onAccept,active:!0}),l.createElement(d2,{label:"Cancel",onClick:this.props.onCancel}),l.createElement(s2,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),e}();p2.propTypes={header:TU.string,styles:TU.object},p2.defaultProps={header:"Color Picker",styles:{}},zJ(p2);var A2=function(e){var t=e.onChange,n=e.rgb,i=e.hsl,a=e.hex,r=e.disableAlpha,s=gG({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:r}),o=function(e,a){e.hex?MJ(e.hex)&&t({hex:e.hex,source:"hex"},a):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},a):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:i.h,s:i.s,l:i.l,a:e.a,source:"rgb"},a))};return l.createElement("div",{style:s.fields,className:"flexbox-fix"},l.createElement("div",{style:s.double},l.createElement(PG,{style:{input:s.input,label:s.label},label:"hex",value:a.replace("#",""),onChange:o})),l.createElement("div",{style:s.single},l.createElement(PG,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:o,dragLabel:"true",dragMax:"255"})),l.createElement("div",{style:s.single},l.createElement(PG,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:o,dragLabel:"true",dragMax:"255"})),l.createElement("div",{style:s.single},l.createElement(PG,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:o,dragLabel:"true",dragMax:"255"})),l.createElement("div",{style:s.alpha},l.createElement(PG,{style:{input:s.input,label:s.label},label:"a",value:Math.round(100*n.a),onChange:o,dragLabel:"true",dragMax:"100"})))},h2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},f2=function(e){var t=e.colors,n=e.onClick,i=void 0===n?function(){}:n,a=e.onSwatchHover,r=gG({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),s=function(e,t){i({hex:e,source:"hex"},t)};return l.createElement("div",{style:r.colors,className:"flexbox-fix"},t.map((function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return l.createElement("div",{key:n,style:r.swatchWrap},l.createElement(GJ,h2({},t,{style:r.swatch,onClick:s,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};f2.propTypes={colors:TU.arrayOf(TU.oneOfType([TU.string,TU.shape({color:TU.string,title:TU.string})])).isRequired};var m2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},v2=function(e){var t=e.width,n=e.rgb,i=e.hex,a=e.hsv,r=e.hsl,s=e.onChange,o=e.onSwatchHover,d=e.disableAlpha,c=e.presetColors,u=e.renderers,p=e.styles,A=void 0===p?{}:p,h=e.className,f=void 0===h?"":h,m=gG(TX({default:m2({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},A),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},A),{disableAlpha:d});return l.createElement("div",{style:m.picker,className:"sketch-picker "+f},l.createElement("div",{style:m.saturation},l.createElement(KX,{style:m.Saturation,hsl:r,hsv:a,onChange:s})),l.createElement("div",{style:m.controls,className:"flexbox-fix"},l.createElement("div",{style:m.sliders},l.createElement("div",{style:m.hue},l.createElement(EG,{style:m.Hue,hsl:r,onChange:s})),l.createElement("div",{style:m.alpha},l.createElement(NG,{style:m.Alpha,rgb:n,hsl:r,renderers:u,onChange:s}))),l.createElement("div",{style:m.color},l.createElement(wG,null),l.createElement("div",{style:m.activeColor}))),l.createElement(A2,{rgb:n,hsl:r,hex:i,onChange:s,disableAlpha:d}),l.createElement(f2,{colors:c,onClick:s,onSwatchHover:o}))};v2.propTypes={disableAlpha:TU.bool,width:TU.oneOfType([TU.string,TU.number]),styles:TU.object},v2.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},zJ(v2);var g2=function(e){var t=e.hsl,n=e.offset,i=e.onClick,a=void 0===i?function(){}:i,r=e.active,s=e.first,o=e.last,d=gG({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:r,first:s,last:o});return l.createElement("div",{style:d.swatch,onClick:function(e){return a({h:t.h,s:.5,l:n,source:"hsl"},e)}})},y2=function(e){var t=e.onClick,n=e.hsl,i=gG({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),a=.1;return l.createElement("div",{style:i.swatches},l.createElement("div",{style:i.swatch},l.createElement(g2,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<a&&Math.abs(n.s-.5)<a,onClick:t,first:!0})),l.createElement("div",{style:i.swatch},l.createElement(g2,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<a&&Math.abs(n.s-.5)<a,onClick:t})),l.createElement("div",{style:i.swatch},l.createElement(g2,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<a&&Math.abs(n.s-.5)<a,onClick:t})),l.createElement("div",{style:i.swatch},l.createElement(g2,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<a&&Math.abs(n.s-.5)<a,onClick:t})),l.createElement("div",{style:i.swatch},l.createElement(g2,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<a&&Math.abs(n.s-.5)<a,onClick:t,last:!0})),l.createElement("div",{style:i.clear}))},x2=function(e){var t=e.hsl,n=e.onChange,i=e.pointer,a=e.styles,r=void 0===a?{}:a,s=e.className,o=void 0===s?"":s,d=gG(TX({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},r));return l.createElement("div",{style:d.wrap||{},className:"slider-picker "+o},l.createElement("div",{style:d.hue},l.createElement(EG,{style:d.Hue,hsl:t,pointer:i,onChange:n})),l.createElement("div",{style:d.swatches},l.createElement(y2,{hsl:t,onClick:n})))};x2.propTypes={styles:TU.object},x2.defaultProps={pointer:function(){var e=gG({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return l.createElement("div",{style:e.picker})},styles:{}},zJ(x2);var b2={};Object.defineProperty(b2,"__esModule",{value:!0});var w2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},j2=function(e){return e&&e.__esModule?e:{default:e}}(a);var C2=b2.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,i=e.width,a=void 0===i?24:i,r=e.height,s=void 0===r?24:r,l=e.style,o=void 0===l?{}:l,d=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["fill","width","height","style"]);return j2.default.createElement("svg",w2({viewBox:"0 0 24 24",style:w2({fill:n,width:a,height:s},o)},d),j2.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},S2=function(e){var t=e.color,n=e.onClick,i=void 0===n?function(){}:n,a=e.onSwatchHover,r=e.first,s=e.last,o=e.active,d=gG({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:RJ(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:r,last:s,active:o,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return l.createElement(GJ,{color:t,style:d.color,onClick:i,onHover:a,focusStyle:{boxShadow:"0 0 4px "+t}},l.createElement("div",{style:d.check},l.createElement(C2,null)))},N2=function(e){var t=e.onClick,n=e.onSwatchHover,i=e.group,a=e.active,r=gG({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return l.createElement("div",{style:r.group},n0(i,(function(e,r){return l.createElement(S2,{key:e,color:e,active:e.toLowerCase()===a,first:0===r,last:r===i.length-1,onClick:t,onSwatchHover:n})})))},I2=function(e){var t=e.width,n=e.height,i=e.onChange,a=e.onSwatchHover,r=e.colors,s=e.hex,o=e.styles,d=void 0===o?{}:o,c=e.className,u=void 0===c?"":c,p=gG(TX({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},d)),A=function(e,t){return i({hex:e,source:"hex"},t)};return l.createElement("div",{style:p.picker,className:"swatches-picker "+u},l.createElement(EX,null,l.createElement("div",{style:p.overflow},l.createElement("div",{style:p.body},n0(r,(function(e){return l.createElement(N2,{key:e.toString(),group:e,active:s,onClick:A,onSwatchHover:a})})),l.createElement("div",{style:p.clear})))))};I2.propTypes={width:TU.oneOfType([TU.string,TU.number]),height:TU.oneOfType([TU.string,TU.number]),colors:TU.arrayOf(TU.arrayOf(TU.string)),styles:TU.object},I2.defaultProps={width:320,height:240,colors:[[d0,o0,l0,s0,r0],[h0,A0,p0,u0,c0],[y0,g0,v0,m0,f0],[C0,j0,w0,b0,x0],[B0,F0,I0,N0,S0],[D0,E0,T0,k0,P0],[M0,O0,_0,U0,L0],[z0,V0,H0,Q0,R0],[G0,K0,Y0,W0,q0],["#194D33",Z0,J0,X0,$0],[a1,i1,n1,t1,e1],[d1,o1,l1,s1,r1],[h1,A1,p1,u1,c1],[y1,g1,v1,m1,f1],[C1,j1,w1,b1,x1],[B1,F1,I1,N1,S1],[D1,E1,T1,k1,P1],[M1,O1,_1,U1,L1],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};const F2=zJ(I2);var B2=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.hex,a=e.colors,r=e.width,s=e.triangle,o=e.styles,d=void 0===o?{}:o,c=e.className,u=void 0===c?"":c,p=gG(TX({default:{card:{width:r,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},d),{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s}),A=function(e,n){MJ(e)&&t({hex:e,source:"hex"},n)};return l.createElement("div",{style:p.card,className:"twitter-picker "+u},l.createElement("div",{style:p.triangleShadow}),l.createElement("div",{style:p.triangle}),l.createElement("div",{style:p.body},n0(a,(function(e,t){return l.createElement(GJ,{key:t,color:e,hex:e,style:p.swatch,onClick:A,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),l.createElement("div",{style:p.hash},"#"),l.createElement(PG,{label:null,style:{input:p.input},value:i.replace("#",""),onChange:A}),l.createElement("div",{style:p.clear})))};B2.propTypes={width:TU.oneOfType([TU.string,TU.number]),triangle:TU.oneOf(["hide","top-left","top-right"]),colors:TU.arrayOf(TU.string),styles:TU.object},B2.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},zJ(B2);var P2=function(e){var t=gG({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return l.createElement("div",{style:t.picker})};P2.propTypes={hsl:TU.shape({h:TU.number,s:TU.number,l:TU.number,a:TU.number})},P2.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var k2=function(e){var t=gG({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return l.createElement("div",{style:t.picker})};k2.propTypes={hsl:TU.shape({h:TU.number,s:TU.number,l:TU.number,a:TU.number})},k2.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var T2=function(e){var t=e.onChange,n=e.rgb,i=e.hsl,a=e.hex,r=e.hsv,s=function(e,n){if(e.hex)MJ(e.hex)&&t({hex:e.hex,source:"hex"},n);else if(e.rgb){var i=e.rgb.split(",");QJ(e.rgb,"rgb")&&t({r:i[0],g:i[1],b:i[2],a:1,source:"rgb"},n)}else if(e.hsv){var a=e.hsv.split(",");QJ(e.hsv,"hsv")&&(a[2]=a[2].replace("%",""),a[1]=a[1].replace("%",""),a[0]=a[0].replace("°",""),1==a[1]?a[1]=.01:1==a[2]&&(a[2]=.01),t({h:Number(a[0]),s:Number(a[1]),v:Number(a[2]),source:"hsv"},n))}else if(e.hsl){var r=e.hsl.split(",");QJ(e.hsl,"hsl")&&(r[2]=r[2].replace("%",""),r[1]=r[1].replace("%",""),r[0]=r[0].replace("°",""),1==u[1]?u[1]=.01:1==u[2]&&(u[2]=.01),t({h:Number(r[0]),s:Number(r[1]),v:Number(r[2]),source:"hsl"},n))}},o=gG({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),d=n.r+", "+n.g+", "+n.b,c=Math.round(i.h)+"°, "+Math.round(100*i.s)+"%, "+Math.round(100*i.l)+"%",u=Math.round(r.h)+"°, "+Math.round(100*r.s)+"%, "+Math.round(100*r.v)+"%";return l.createElement("div",{style:o.wrap,className:"flexbox-fix"},l.createElement("div",{style:o.fields},l.createElement("div",{style:o.double},l.createElement(PG,{style:{input:o.input,label:o.label},label:"hex",value:a,onChange:s})),l.createElement("div",{style:o.column},l.createElement("div",{style:o.single},l.createElement(PG,{style:{input:o.input2,label:o.label2},label:"rgb",value:d,onChange:s})),l.createElement("div",{style:o.single},l.createElement(PG,{style:{input:o.input2,label:o.label2},label:"hsv",value:u,onChange:s})),l.createElement("div",{style:o.single},l.createElement(PG,{style:{input:o.input2,label:o.label2},label:"hsl",value:c,onChange:s})))))},E2=function(e){var t=e.width,n=e.onChange,i=e.rgb,a=e.hsl,r=e.hsv,s=e.hex,o=e.header,d=e.styles,c=void 0===d?{}:d,u=e.className,p=void 0===u?"":u,A=gG(TX({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+i.r+", "+i.g+", "+i.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return l.createElement("div",{style:A.picker,className:"google-picker "+p},l.createElement("div",{style:A.head},o),l.createElement("div",{style:A.swatch}),l.createElement("div",{style:A.saturation},l.createElement(KX,{hsl:a,hsv:r,pointer:P2,onChange:n})),l.createElement("div",{style:A.body},l.createElement("div",{style:A.controls,className:"flexbox-fix"},l.createElement("div",{style:A.hue},l.createElement(EG,{style:A.Hue,hsl:a,radius:"4px",pointer:k2,onChange:n}))),l.createElement(T2,{rgb:i,hsl:a,hex:s,hsv:r,onChange:n})))};E2.propTypes={width:TU.oneOfType([TU.string,TU.number]),styles:TU.object,header:TU.string},E2.defaultProps={width:652,styles:{},header:"Color picker"},zJ(E2);const D2="/assets/logo-e932ed68.svg",L2=[{FieldName:"SideNavimage",FieldValue:"",FieldAddData:""},{FieldName:"SideNavHeader",FieldValue:"",FieldAddData:""},{FieldName:"SideNavHeader",FieldValue:"",FieldAddData:""},{FieldName:"SideNavHeader",FieldValue:"",FieldAddData:""}],U2=e=>{const t=Tf(V_),[n,i]=a.useState((null==e?void 0:e.hasOwnProperty("data"))?null==e?void 0:e.data:!1===(null==e?void 0:e.apiCall)?L2:t),r=Tf(D_),s=Tf(L_),[l,o]=a.useState(!1);a.useEffect((()=>{(null==e?void 0:e.apiCall)?i(t):i((null==e?void 0:e.hasOwnProperty("data"))?null==e?void 0:e.data:!1===(null==e?void 0:e.apiCall)?L2:t)}),[t,null==e?void 0:e.data]);const d=e=>{const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})},[c,u]=a.useState({nvlinks:{fontFamily:"Poppins",padding:"3rem 1rem"},actColor:{color:"#F97068",fontWeight:"600"}}),p=(null==e?void 0:e.disabledValue)?null==e?void 0:e.disabledValue:"",A=async()=>{navigate("/user-account")};a.useEffect((()=>{const e=()=>{o(window.innerWidth<900)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);return Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{className:"PreviewNav1",style:{background:r?r.lightColor:null,color:"#000",pointerEvents:p,fontFamily:s?s.para:null},children:[l&&Ye.jsx("img",{src:Bm,alt:"Logo",onClick:()=>{navigate("/"),window.location.reload()},style:{width:"5.5vw",height:"auto",cursor:"pointer",marginLeft:"0.5rem"}}),null==n?void 0:n.map(((e,t)=>Ye.jsx(Ye.Fragment,{children:"SideNavimage"===e.FieldName&&Ye.jsx("div",{className:"sidenavpaypreLogoDiv",children:Ye.jsx("img",{style:{width:"50px"},src:""!=e.FieldValue?e.FieldValue:D2,alt:"pozo logo"})})}))),Ye.jsx("div",{className:"preVlink",style:c.nvlinks,children:null==n?void 0:n.map(((e,t)=>{var n;return Ye.jsx(Ye.Fragment,{children:"SideNavimage"!=e.FieldName&&Ye.jsxs("p",{style:{fontFamily:s?s.para:null,color:r?r.darkColor:null,cursor:"pointer"},onClick:()=>{return t=e.FieldAddData,void d(t);var t},className:(null==(n=null==e?void 0:e.FieldValue)?void 0:n.length)>0!=""?"nvlink":"nvlinkWOData",onMouseOver:e=>{e.target.style.color=r?r.lightColor:null,e.target.style.fontWeight=c.actColor.fontWeight},onMouseLeave:e=>{e.target.style.color=r?r.darkColor:null,e.target.style.fontWeight="400"},children:[" ",e.FieldValue.split("-")[1]]})})}))}),iA("UserId")&&Ye.jsx("div",{children:Ye.jsx(h,{onClick:()=>A})})]})})},_2=Ja("navbar/getNavlist",(async()=>await fA.get("/configMaster?ActiveStatus=A&TypeName=Navbar")));Ya({name:"Navlist",initialState:{Navlist:[]},extraReducers:e=>{e.addCase(getMessagetemplateData.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.MessagetemplateData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.MessagetemplateData=[]}))}});const O2=()=>{const e=a.useRef(null),t=um(),n=Mt(),i=Tf(V_),r=null==n?void 0:n.state,s=null==r?void 0:r.editstate,[l,o]=a.useState("Add"),[d,c]=a.useState(null),[u,p]=a.useState(null),[A,h]=a.useState([]),[f,m]=a.useState([]),[v,g]=a.useState(A),[y,x]=a.useState(s?s.AppData:{}),[b,w]=a.useState(0),[S,N]=a.useState(""),[T,E]=a.useState(!1),[D,L]=a.useState(!1);a.useEffect((()=>{_()}),[]),a.useEffect((()=>{!1===D&&(m([]),x({}),U(""))}),[D]),a.useEffect((()=>{var t,n;if((null==i?void 0:i.length)>0&&!0===D){o("edit"),w((null==i?void 0:i.length)-2);let a=i.filter((e=>"SideNavimage"===e.FieldName));N(a[0].FieldValue);let r=i.filter((e=>"SideNavHeader"===e.FieldName));m(r.map((e=>e.FieldValue.split("-")[0])));let s=[];r.map(((e,t)=>{s.push({[`Navlink-${t}`]:null==e?void 0:e.FieldAddData,[`Navlist-${t}`]:null==e?void 0:e.FieldValue.split("-")[0]})}));let l={};for(let i=0;i<(null==s?void 0:s.length);i++)null==(t=null==e?void 0:e.current)||t.setFieldsValue({[`Navlink-${i}`]:s[i][`Navlink-${i}`]}),null==(n=null==e?void 0:e.current)||n.setFieldsValue({[`Navlist-${i}`]:s[i][`Navlist-${i}`]}),l[`Navlist-${i}`]=parseInt(s[i][`Navlist-${i}`]);x(l)}else w(0)}),[i,D]),a.useEffect((()=>{g(A)}),[A]);const U=e=>{N(e)},_=async()=>{var e,n,i;let a=await t(_2()).unwrap();1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)&&(await g(null==(n=null==a?void 0:a.data)?void 0:n.data),await h(null==(i=null==a?void 0:a.data)?void 0:i.data))},O=async(t,n)=>{var i;y[n]=parseInt(t),null==(i=e.current)||i.setFieldsValue({[n]:t}),await x({...y,[n]:t})},M=async(e,t)=>{let n=y;n[e]=t,x(n)},R=a.useCallback((()=>{var t,n,i;let a=[];for(let r=0;r<=b;r++)a.push(Ye.jsxs(P,{style:{display:"flex",flexDirection:"column",marginBottom:2,gap:0},align:"baseline",children:[Ye.jsx(I.Item,{name:`Navlist-${r}`,rules:[{message:"Please select Navlist",required:!0}],children:Ye.jsx(_y,{options:null==v?void 0:v.map((e=>({value:e.ConfigId,label:e.ConfigName,disabled:!!(null==Object?void 0:Object.values(y).map((e=>parseInt(e))).includes(parseInt(e.ConfigId)))}))),label:"NavList",id:`Navlist-${r}}`,field:`Navlist-${r}`,fieldState:!0,fieldApi:!0,onChangeFunction:e=>O(e,`Navlist-${r}`),isOnchanges:null!=(null==(t=null==e?void 0:e.current)?void 0:t.getFieldValue([`Navlist-${r}`])),valueData:y[`Navlist-${r}`],className:"field-DropDown"})}),Ye.jsx(I.Item,{name:`Navlink-${r}`,rules:[{message:"Please Enter Navlink",required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",name:"",fieldState:!0,fieldApi:!0,onChange:e=>{var t;return M([`Navlink-${r}`],null==(t=null==e?void 0:e.target)?void 0:t.value)},isOnChange:null!=(null==(n=null==e?void 0:e.current)?void 0:n.getFieldValue([`Navlink-${r}`])),label:"Navlink",field:"",id:"",suffix:Ye.jsx(F,{title:`Nav Link${r}`,children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),r>0&&Ye.jsx(de,{onClick:()=>Q(r,`Navlist-${r}`)})]},r));return null==(i=null==e?void 0:e.current)||i.setFieldsValue(y),a}),[b,v]),Q=async(t,n)=>{var i,a;let r=e.current.getFieldValue([n]),s=f.filter((e=>e!=r));m(s);let l=e.current.getFieldsValue(),o=Object.keys(l).filter((e=>!e.includes(t))),d=0,c={};e.current.resetFields();for(let u=0;u<=(null==o?void 0:o.length);u+=2)c[`Navlist-${d}`]=l[o[u]],c[`Navlink-${d}`]=l[o[u+1]],null==(i=null==e?void 0:e.current)||i.setFieldsValue({[`Navlink-${d}`]:l[o[u+1]]}),null==(a=null==e?void 0:e.current)||a.setFieldsValue({[`Navlist-${d}`]:l[o[u]]}),d++;w(b-1),g(A),x(c)},H=a.useCallback((()=>{p(null),c(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:d,messageData:u,onComplete:H}),Ye.jsxs("div",{className:"sidenavTempOverall",children:[Ye.jsx(U2,{apiCall:!1}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>L(!0)}),Ye.jsx(ce,{onClick:()=>(async()=>{(null==i?void 0:i.length)>0?E(!0):(p("Please add a navbar data to open the preview"),c("warning"))})()})]}),Ye.jsx(j,{centered:!0,open:D,onOk:()=>L(!1),onCancel:()=>L(!1),children:Ye.jsx("div",{children:Ye.jsxs(I,{ref:e,className:"formDivAnt",onFinish:async n=>{var i,a,r,s;let l=[];for(let e=0;e<=(null==(i=Object.keys(n))?void 0:i.length)/2-1;e++)l.push({FieldName:"SideNavHeader",FieldValue:n[`Navlist-${e}`]+"-"+(null==(r=null==(a=null==v?void 0:v.filter((t=>t.ConfigId===n[`Navlist-${e}`])))?void 0:a[0])?void 0:r.ConfigName),FieldAddData:n[`Navlink-${e}`]});l.push({FieldName:"SideNavimage",FieldValue:S,FieldAddData:""}),await t(y_(l)),null==(s=null==e?void 0:e.current)||s.resetFields(),c("success"),p("NavBar Data Added Successfully"),L(!1)},initialValues:{...s},children:[Ye.jsxs("div",{className:"upload_btn",children:[Ye.jsx("p",{children:"Upload Logo"}),Ye.jsx(Yy,{singleImage:!0,updateImageUrl:U,ImageLink:S})]}),Ye.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[Ye.jsxs("div",{children:[Ye.jsx(Ye.Fragment,{children:0!=(null==v?void 0:v.length)&&R()}),(null==A?void 0:A.length)>b+1&&Ye.jsx(I.Item,{children:Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(C,{style:{backgroundColor:"#37943C",color:"white",borderRadius:"50px",padding:"5px"},onClick:()=>w(b+1)})})})]}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(Ry,{buttonText:"SAVE",color:"901D77",icon:Ye.jsx(k,{})})})]})]})})}),Ye.jsx(j,{centered:!0,destroyOnClose:!0,open:T,onOk:()=>E(!1),onCancel:()=>E(!1),children:Ye.jsx(U2,{disabledValue:"none",apiCall:!0})})]})]})},M2=[{FieldName:"SideNavimage",FieldValue:"",FieldAddData:""},{FieldName:"SideNavHeader",FieldValue:"",FieldAddData:""},{FieldName:"SideNavHeader",FieldValue:"",FieldAddData:""},{FieldName:"SideNavHeader",FieldValue:"",FieldAddData:""}],R2=e=>{const t=Qt(),n=um(),i=Tf(V_),r=Tf(q_),s=Tf(U_),l=Tf(W_),[o,d]=a.useState((null==e?void 0:e.hasOwnProperty("data"))?null==e?void 0:e.data:!1===(null==e?void 0:e.apiCall)?M2:i),c=Tf(D_),u=Tf(L_),p=(null==e?void 0:e.disabledValue)?null==e?void 0:e.disabledValue:"",[A,h]=a.useState(null),[f,m]=a.useState(!1);a.useState(!!iA("UserId"));const[v,g]=a.useState(!1),[y,x]=a.useState(!1),[b,w]=a.useState(!1),[j,C]=a.useState(window.innerWidth),[S,N]=a.useState(!0),[I,B]=a.useState(!1),P=iA("UserId");a.useEffect((()=>{j>900&&(N(!0),B(!1)),j<900&&(N(!1),B(!0))}),[j]),a.useEffect((()=>{function e(){C(window.innerWidth)}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[j]),a.useEffect((()=>{let e=null==s?void 0:s.filter((e=>(null==e?void 0:e.AppId)===(null==r?void 0:r.AppId)));h(e.length>0?e[0].AppName:l.length>0?l:null)}),[r]),a.useEffect((()=>{(null==e?void 0:e.apiCall)?d(i):d((null==e?void 0:e.hasOwnProperty("data"))?null==e?void 0:e.data:!1===(null==e?void 0:e.apiCall)?M2:i)}),[i,null==e?void 0:e.data]),a.useEffect((()=>{const e=()=>{m(!1),x(!1),g(!1),w(window.innerWidth<899&&!(window.innerWidth<260))};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const k=e=>{T(e)},T=e=>{const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})},E=async()=>{t("/landing-page/user-account")},D=async()=>{var e;const i=P,a=await n(fm({UserId:i,status:"N"})).unwrap();1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)&&(rA(),t("/"))};return Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"dispflex",style:{background:c?c.lightColor:null,color:"#000",fontFamily:u?u.para:null,pointerEvents:p},children:[I&&Ye.jsx("img",{src:Bm,alt:"Logo",onClick:()=>{t("/"),window.location.reload()},style:{width:"5.5vw",height:"auto",cursor:"pointer",marginLeft:"0.5rem"}}),Ye.jsxs("div",{className:"divApplogo",style:{display:"flex",alignItems:"center"},children:[null==o?void 0:o.map(((e,t)=>Ye.jsx(Ye.Fragment,{children:"SideNavimage"===e.FieldName&&Ye.jsx("img",{style:{width:"50px",mixBlendMode:"darken"},src:""!=e.FieldValue?e.FieldValue:D2,alt:"App logo"})}))),Ye.jsxs("div",{className:"divAppname",children:[Ye.jsx("p",{className:0!=(null==e?void 0:e.apiCall)?"PayPreFont":"honavPayPreFontwodata",style:{fontFamily:"Manrope",fontSize:"12px"},children:0!=(null==e?void 0:e.apiCall)?"POZO":""}),Ye.jsx("p",{className:0!=(null==e?void 0:e.apiCall)?"":"honavPayPreFontwodata",style:{fontFamily:u?u.para:null,whiteSpace:"nowrap"},children:0!=(null==e?void 0:e.apiCall)?A:""})]})]}),Ye.jsxs("div",{className:"upmenuList",children:[o.map((e=>{var t;return Ye.jsx(Ye.Fragment,{children:"SideNavimage"!=e.FieldName&&Ye.jsx("div",{onClick:()=>k(e.FieldAddData),style:{color:"black",fontWeight:400,cursor:"pointer"},className:(null==(t=e.FieldValue)?void 0:t.length)>0?"honavlink":"honavlinkWOData",onMouseLeave:e=>{e.target.style.color="black",e.target.style.fontWeight="400"},children:e.FieldValue.split("-")[1]},e.FieldValue)})})),P&&Ye.jsx("div",{className:"myTooltipbigscreen",onClick:()=>{g(!v),m(!1)},children:S?Ye.jsxs(F,{color:"#fff",overlayInnerStyle:{backgroundColor:"#fff"},trigger:"click",placement:"bottom",title:Ye.jsx("div",{className:"nav-user-fullview",children:Ye.jsxs("div",{className:"user-nav-opt-fullview",style:{backgroundColor:"#fff"},children:[P&&Ye.jsx("li",{className:"usr-acc",style:{cursor:"pointer",color:"black"},onMouseLeave:e=>{e.target.style.color="black",e.target.style.fontWeight="400"},onClick:()=>E(),children:" My Account "}),Ye.jsx("li",{className:"usr-acc",style:{cursor:"pointer",color:"black"},onMouseLeave:e=>{e.target.style.color="black",e.target.style.fontWeight="400"},onClick:()=>D(),children:" Sign Out "})]})}),children:[Ye.jsx(HO,{style:{cursor:"pointer",fontSize:"19px"}})," "]}):""})]}),Ye.jsxs("div",{className:"toggleuppernav",children:[Ye.jsx("div",{onClick:()=>{m(!f),x(!1),g(!1)},children:f?Ye.jsx(PO,{style:{fontSize:"19px",cursor:"pointer"}}):Ye.jsx(kO,{style:{fontSize:"19px",cursor:"pointer"}})}),P&&Ye.jsx("div",{className:"myTooltipsmallscreen",onClick:()=>{x(!y),m(!1)},children:I?Ye.jsxs(F,{color:"#fff",overlayInnerStyle:{backgroundColor:"#fff"},trigger:"click",placement:"bottom",title:Ye.jsx("div",{className:"nav-user-toggle",children:Ye.jsxs("div",{className:"user-nav-opt",children:[P&&Ye.jsx("li",{className:"usr-acc",onClick:()=>E(),style:{color:"black"},onMouseLeave:e=>{e.target.style.color="black",e.target.style.fontWeight="400"},children:" My Account "}),Ye.jsx("li",{className:"usr-acc",onClick:()=>D(),style:{color:"black"},onMouseLeave:e=>{e.target.style.color="black",e.target.style.fontWeight="400"},children:" Sign Out "})]})}),children:[" ",Ye.jsx(HO,{style:{cursor:"pointer"}})," "]}):""})]}),f&&b&&Ye.jsx("div",{className:"nav-toggle",children:Ye.jsx("div",{className:"rt-nav-list",children:o.map((e=>Ye.jsx(Ye.Fragment,{children:"SideNavimage"!=e.FieldName&&Ye.jsx(Ye.Fragment,{children:Ye.jsxs("li",{className:"rt-list",onClick:()=>k(e.FieldValue.replace(/^\d+-/,"")),children:[" ",e.FieldValue.replace(/^\d+-/,"")," "]},e.FieldValue)})})))})})]}),v&&Ye.jsx("div",{className:"nav-user-fullview"})]})},Q2=()=>{const e=a.useRef(null),t=um(),n=Mt(),i=Tf(V_),r=null==n?void 0:n.state,s=null==r?void 0:r.editstate,[l,o]=a.useState("Add"),[d,c]=a.useState(null),[u,p]=a.useState(null),[A,h]=a.useState([]),[f,m]=a.useState([]),[v,g]=a.useState(A),[y,x]=a.useState(s?s.AppData:{}),[b,w]=a.useState(0),[S,N]=a.useState(""),[T,E]=a.useState(!1),[D,L]=a.useState(!1);a.useEffect((()=>{_()}),[]),a.useEffect((()=>{!1===D&&(m([]),x({}),U(""))}),[D]),a.useEffect((()=>{var t,n;if((null==i?void 0:i.length)>0&&!0===D){o("edit"),w((null==i?void 0:i.length)-2);let a=i.filter((e=>"SideNavimage"===e.FieldName));N(a[0].FieldValue);let r=i.filter((e=>"SideNavHeader"===e.FieldName));m(r.map((e=>e.FieldValue.split("-")[0])));let s=[];r.map(((e,t)=>{s.push({[`Navlink-${t}`]:e.FieldAddData,[`Navlist-${t}`]:e.FieldValue.split("-")[0]})}));let l={};for(let i=0;i<(null==s?void 0:s.length);i++)null==(t=null==e?void 0:e.current)||t.setFieldsValue({[`Navlink-${i}`]:s[i][`Navlink-${i}`]}),null==(n=null==e?void 0:e.current)||n.setFieldsValue({[`Navlist-${i}`]:s[i][`Navlist-${i}`]}),l[`Navlist-${i}`]=parseInt(s[i][`Navlist-${i}`]);x(l)}else w(0)}),[i,D]),a.useEffect((()=>{g(A)}),[A]);const U=e=>{N(e)},_=async()=>{var e,n,i;let a=await t(_2()).unwrap();1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)&&(await g(null==(n=null==a?void 0:a.data)?void 0:n.data),await h(null==(i=null==a?void 0:a.data)?void 0:i.data))},O=async(t,n)=>{var i;y[n]=parseInt(t),null==(i=e.current)||i.setFieldsValue({[n]:t}),await x({...y,[n]:t})},M=async(e,t)=>{let n=y;n[e]=t,x(n)},R=a.useCallback((()=>{var t,n,i;let a=[];for(let r=0;r<=b;r++)a.push(Ye.jsxs(P,{style:{display:"flex",flexDirection:"column",marginBottom:2,gap:0},align:"baseline",children:[Ye.jsx(I.Item,{name:`Navlist-${r}`,rules:[{message:"Please select Navlist",required:!0}],children:Ye.jsx(_y,{options:null==v?void 0:v.map((e=>({value:e.ConfigId,label:e.ConfigName,disabled:!!Object.values(y).map((e=>parseInt(e))).includes(parseInt(e.ConfigId))}))),label:"NavList",id:`Navlist-${r}}`,field:`Navlist-${r}`,fieldState:!0,fieldApi:!0,onChangeFunction:e=>O(e,`Navlist-${r}`),isOnchanges:null!=(null==(t=null==e?void 0:e.current)?void 0:t.getFieldValue([`Navlist-${r}`])),valueData:y[`Navlist-${r}`],className:"field-DropDown"})}),Ye.jsx(I.Item,{name:`Navlink-${r}`,rules:[{message:"Please Enter Navlink",required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",name:"",fieldState:!0,fieldApi:!0,onChange:e=>{var t;return M([`Navlink-${r}`],null==(t=null==e?void 0:e.target)?void 0:t.value)},isOnChange:null!=(null==(n=null==e?void 0:e.current)?void 0:n.getFieldValue([`Navlink-${r}`])),label:"Navlink",field:"",id:"",suffix:Ye.jsx(F,{title:`Nav Link${r}`,children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),r>0&&Ye.jsx(de,{onClick:()=>Q(r,`Navlist-${r}`)})]},r));return null==(i=null==e?void 0:e.current)||i.setFieldsValue(y),a}),[b,v]),Q=async(t,n)=>{var i,a;let r=e.current.getFieldValue([n]),s=f.filter((e=>e!=r));m(s);let l=e.current.getFieldsValue(),o=Object.keys(l).filter((e=>!e.includes(t))),d=0,c={};e.current.resetFields();for(let u=0;u<=(null==o?void 0:o.length);u+=2)c[`Navlist-${d}`]=l[o[u]],c[`Navlink-${d}`]=l[o[u+1]],null==(i=null==e?void 0:e.current)||i.setFieldsValue({[`Navlink-${d}`]:l[o[u+1]]}),null==(a=null==e?void 0:e.current)||a.setFieldsValue({[`Navlist-${d}`]:l[o[u]]}),d++;w(b-1),g(A),x(c)},H=a.useCallback((()=>{p(null),c(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:d,messageData:u,onComplete:H}),Ye.jsxs("div",{style:{},children:[Ye.jsx(Ye.Fragment,{children:Ye.jsx(R2,{apiCall:!1})}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>L(!0)})," ",Ye.jsx(ce,{onClick:()=>(async()=>{(null==i?void 0:i.length)>0?E(!0):(p("Please add a navbar data to open the preview"),c("warning"))})()})]}),Ye.jsx(j,{centered:!0,open:D,onOk:()=>L(!1),onCancel:()=>L(!1),children:Ye.jsx("div",{children:Ye.jsxs(I,{ref:e,className:"formDivAnt",onFinish:async n=>{var i,a,r,s;let l=[];for(let e=0;e<=(null==(i=Object.keys(n))?void 0:i.length)/2-1;e++)l.push({FieldName:"SideNavHeader",FieldValue:n[`Navlist-${e}`]+"-"+(null==(r=null==(a=null==v?void 0:v.filter((t=>t.ConfigId===n[`Navlist-${e}`])))?void 0:a[0])?void 0:r.ConfigName),FieldAddData:n[`Navlink-${e}`]});l.push({FieldName:"SideNavimage",FieldValue:S,FieldAddData:""}),await t(y_(l)),null==(s=null==e?void 0:e.current)||s.resetFields(),c("success"),p("NavBar Data Added Successfully"),L(!1)},initialValues:{...s},children:[Ye.jsxs("div",{className:"upload_btn",children:[Ye.jsx("p",{children:"Upload Logo"}),Ye.jsx(Yy,{singleImage:!0,updateImageUrl:U,ImageLink:S})]}),Ye.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[Ye.jsxs("div",{style:{},children:[Ye.jsx(Ye.Fragment,{children:0!=(null==v?void 0:v.length)&&R()}),(null==A?void 0:A.length)>b+1&&Ye.jsx(I.Item,{children:Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(C,{style:{backgroundColor:"#37943C",color:"white",borderRadius:"50px",padding:"5px"},onClick:()=>w(b+1)})})})]}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(Ry,{buttonText:"SAVE",color:"901D77",icon:Ye.jsx(k,{})})})]})]})})}),Ye.jsx(j,{centered:!0,open:T,onOk:()=>E(!1),onCancel:()=>E(!1),width:1e3,children:Ye.jsx("div",{className:" ","aria-disabled":!0,children:Ye.jsx(R2,{disabledValue:"none",apiCall:!0})})})]})]})},H2="/assets/playstr1-7c406729.png",V2="/assets/appstr1-ddbd2c0c.png",z2="/assets/android1-3733951f.png",q2=e=>{const t=Qt(),n=Tf(D_),i=Tf(L_),[r,s]=a.useState(),[l,o]=a.useState(),d=e.hasOwnProperty("data")?e.data:[{FieldName:"Overview1Title",FieldValue:"",FieldAddData:""},{FieldName:"Overview1SubTitle",FieldValue:"",FieldAddData:""},{FieldName:"Overview1ButtonText",FieldValue:"",FieldAddData:""},{FieldName:"Overview1AppLinkText",FieldValue:"",FieldAddData:""},{FieldName:"Overview1PlayStoreLink",FieldValue:"",FieldAddData:""},{FieldName:"Overview1AppStoreLink",FieldValue:"",FieldAddData:""},{FieldName:"Overview1PosLink",FieldValue:"",FieldAddData:""},{FieldName:"Overview1BannerImage",FieldValue:"",FieldAddData:""}],c=e=>{e.target.style.color=n.darkColor,e.target.style.border=`1.8px solid ${n.darkColor}`},u=e=>{e.target.style.color="white"},p=a.useCallback((()=>{s(null),o(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:l,messageData:r,onComplete:p}),Ye.jsx("div",{className:"overview1subdivdata",style:{background:n.lightColor},children:Ye.jsxs("div",{className:(null==e?void 0:e.Preview)?"overviewmainDIV":"overviewmain",children:[Ye.jsxs("div",{className:"overview1subdiv",style:{width:(null==e?void 0:e.Preview)&&"60%"},children:[null==d?void 0:d.map(((e,t)=>{var n;return"Overview1Title"==e.FieldName&&Ye.jsx("div",{className:(null==(n=e.FieldValue)?void 0:n.length)>0?"overviewpreTitleData gradient- btn-shine":"empTitleData",style:e.FieldValue.length>0?{fontFamily:i.head,width:"50vw"}:null,children:e.FieldValue.length>0?e.FieldValue:""},t)})),null==d?void 0:d.map(((e,a)=>{var r,l,d,p,A;return"Overview1SubTitle"==e.FieldName?Ye.jsx("div",{className:(null==(r=e.FieldValue)?void 0:r.length)>0?"preSubTitleData":"empSubTitleData",style:e.FieldValue.length>0?{fontFamily:i.para}:null,children:e.FieldValue.length>0?e.FieldValue:""},a):"Overview1ButtonText"==e.FieldName?Ye.jsx("div",{className:(null==(l=e.FieldValue)?void 0:l.length)>0?null:"empButtonTextData",style:0==(null==(d=e.FieldValue)?void 0:d.length)?{backgroundColor:n.darkColor}:null,children:(null==(p=e.FieldValue)?void 0:p.length)>0?Ye.jsxs(y,{type:"primary",className:"preButtonTextData",style:{backgroundColor:n.darkColor,fontFamily:i.head},onFocus:c,onBlur:u,onClick:()=>{iA("UserId")?(s("User Already Logged in"),o("success")):t("/signin/")},children:[e.FieldValue,Ye.jsx(k,{})]}):""},a):"Overview1AppLinkText"==e.FieldName?Ye.jsx("div",{className:(null==(A=e.FieldValue)?void 0:A.length)>0?"preAppLinkTextData":"empSubTitleData",style:e.FieldValue.length>0?{fontFamily:i.para}:null,children:e.FieldValue.length>0?e.FieldValue:""},a):null})),Ye.jsx("div",{className:"overviewsubdiv",children:null==d?void 0:d.map(((e,t)=>{var n,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g;return"Overview1PlayStoreLink"==e.FieldName?Ye.jsxs("div",{className:(null==(n=e.FieldValue)?void 0:n.length)>0&&"preLinkData",children:[(null==(a=e.FieldValue)?void 0:a.length)>0&&Ye.jsx("div",{children:(null==(r=e.FieldValue)?void 0:r.length)>0&&Ye.jsx("img",{style:{width:"2rem"},src:(null==(s=e.FieldValue)?void 0:s.length)>0?H2:D2})}),Ye.jsx("div",{className:"Hide-on-smallScreen1",style:(null==(l=e.FieldValue)?void 0:l.length)>0?{fontFamily:i.para}:null,children:(null==(o=e.FieldValue)?void 0:o.length)>0?Ye.jsx("a",{href:e.FieldValue,style:{color:"black",textDecoration:"none",fontFamily:"poppins",fontSize:"14px"},children:"Playstore"}):""})]},t):"Overview1AppStoreLink"==e.FieldName?Ye.jsxs("div",{className:(null==(d=e.FieldValue)?void 0:d.length)>0&&"preLinkData",children:[(null==(c=e.FieldValue)?void 0:c.length)>0&&Ye.jsx("div",{children:Ye.jsx("img",{style:{width:"2rem"},src:(null==(u=e.FieldValue)?void 0:u.length)>0?V2:D2})}),Ye.jsx("div",{className:"Hide-on-smallScreen1",style:(null==(p=e.FieldValue)?void 0:p.length)>0?{fontFamily:i.para}:null,children:(null==(A=e.FieldValue)?void 0:A.length)>0?Ye.jsx("a",{href:e.FieldValue,style:{color:"black",textDecoration:"none",fontSize:"14px"},children:"Appstore"}):""})]},t):"Overview1PosLink"==e.FieldName?Ye.jsxs("div",{className:(null==(h=e.FieldValue)?void 0:h.length)>0&&"preLinkData",children:[(null==(f=e.FieldValue)?void 0:f.length)>0&&Ye.jsx("div",{children:Ye.jsx("img",{style:{width:"2rem"},src:(null==(m=e.FieldValue)?void 0:m.length)>0?z2:D2})}),Ye.jsx("div",{className:"Hide-on-smallScreen1",style:(null==(v=e.FieldValue)?void 0:v.length)>0?{fontFamily:i.para}:null,children:(null==(g=e.FieldValue)?void 0:g.length)>0?Ye.jsx("a",{href:e.FieldValue,style:{color:"black",textDecoration:"none",fontSize:"14px"},children:"Playstore(Pos)"}):""})]},t):null}))})]}),Ye.jsx("div",{className:"RightsectionDiv",children:null==d?void 0:d.map(((t,n)=>{var i,a,r;return"Overview1BannerImage"==t.FieldName?Ye.jsx("div",{className:(null==(i=t.FieldValue)?void 0:i.length)>0?(null==e?void 0:e.Preview)?"Overview1ImagePreview":"Overview1ImageDiv":"",children:Ye.jsx("img",{className:(null==(a=t.FieldValue)?void 0:a.length)>0?"preBannerImageData":"empBannerImageData",src:(null==(r=t.FieldValue)?void 0:r.length)>0?t.FieldValue:D2,width:"100%"},n)}):null}))})]})})]})},W2=()=>{const e=a.useRef(null),t=um(),n=Tf(M_),i=Tf(R_),[r,s]=a.useState(null),[l,o]=a.useState(null),[d,c]=a.useState(!1),[u,p]=a.useState(!1),[A,h]=a.useState(!1);a.useEffect((()=>{null==n||n.map((n=>{var i,a,r,s,l,o,d;"Overview1Title"==(null==n?void 0:n.FieldName)?null==(i=null==e?void 0:e.current)||i.setFieldsValue({Title:null==n?void 0:n.FieldValue}):"Overview1SubTitle"==(null==n?void 0:n.FieldName)?null==(a=null==e?void 0:e.current)||a.setFieldsValue({STitle:null==n?void 0:n.FieldValue}):"Overview1ButtonText"==(null==n?void 0:n.FieldName)?null==(r=null==e?void 0:e.current)||r.setFieldsValue({BText:null==n?void 0:n.FieldValue}):"Overview1AppLinkText"==(null==n?void 0:n.FieldName)?null==(s=null==e?void 0:e.current)||s.setFieldsValue({AText:null==n?void 0:n.FieldValue}):"Overview1PlayStoreLink"==(null==n?void 0:n.FieldName)?null==(l=null==e?void 0:e.current)||l.setFieldsValue({Pal:null==n?void 0:n.FieldValue}):"Overview1AppStoreLink"==(null==n?void 0:n.FieldName)?null==(o=null==e?void 0:e.current)||o.setFieldsValue({Asl:null==n?void 0:n.FieldValue}):"Overview1PosLink"==(null==n?void 0:n.FieldName)?null==(d=null==e?void 0:e.current)||d.setFieldsValue({Pos:null==n?void 0:n.FieldValue}):"Overview1BannerImage"==(null==n?void 0:n.FieldName)&&t(f_({overview1Img:null==n?void 0:n.FieldValue}))}))}),[A]);const f=a.useCallback((()=>{o(null),s(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:r,messageData:l,onComplete:f}),Ye.jsx(q2,{}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>(()=>{(null==n?void 0:n.length)>0?(n.filter((e=>e.FieldName.includes("Overview1"))).length>0&&h(!0),null==n||n.map(((n,i)=>{var a,r,s,l,o,d,c;return"Overview1Title"==(null==n?void 0:n.FieldName)?null==(a=null==e?void 0:e.current)?void 0:a.setFieldsValue({Title:null==n?void 0:n.FieldValue}):"Overview1SubTitle"==(null==n?void 0:n.FieldName)?null==(r=null==e?void 0:e.current)?void 0:r.setFieldsValue({STitle:null==n?void 0:n.FieldValue}):"Overview1ButtonText"==(null==n?void 0:n.FieldName)?null==(s=null==e?void 0:e.current)?void 0:s.setFieldsValue({BText:null==n?void 0:n.FieldValue}):"Overview1AppLinkText"==(null==n?void 0:n.FieldName)?null==(l=null==e?void 0:e.current)?void 0:l.setFieldsValue({AText:null==n?void 0:n.FieldValue}):"Overview1PlayStoreLink"==(null==n?void 0:n.FieldName)?null==(o=null==e?void 0:e.current)?void 0:o.setFieldsValue({Pal:null==n?void 0:n.FieldValue}):"Overview1AppStoreLink"==(null==n?void 0:n.FieldName)?null==(d=null==e?void 0:e.current)?void 0:d.setFieldsValue({Asl:null==n?void 0:n.FieldValue}):"Overview1PosLink"==(null==n?void 0:n.FieldName)?null==(c=null==e?void 0:e.current)?void 0:c.setFieldsValue({Pos:null==n?void 0:n.FieldValue}):"Overview1BannerImage"==(null==n?void 0:n.FieldName)?t(f_({overview1Img:null==n?void 0:n.FieldValue})):null}))):h(!1);p(!0)})()}),Ye.jsx(ce,{onClick:()=>{n.length>0&&n.filter((e=>e.FieldName.includes("Overview1"))).length>0?c(!0):(o("Please add a overview data to open the preview"),s("warning"))}})]}),Ye.jsx(j,{centered:!0,open:u,onOk:()=>p(!1),closeIcon:Ye.jsx(M,{onClick:()=>{var n;p(!1),t(f_({overview1Img:""})),null==(n=e.current)||n.resetFields()}}),width:900,children:Ye.jsxs(I,{ref:e,onFinish:n=>{var a;const r=[{FieldName:"Overview1Title",FieldValue:null==n?void 0:n.Title,FieldAddData:""},{FieldName:"Overview1SubTitle",FieldValue:null==n?void 0:n.STitle,FieldAddData:""},{FieldName:"Overview1ButtonText",FieldValue:null==n?void 0:n.BText,FieldAddData:""},{FieldName:"Overview1AppLinkText",FieldValue:null==n?void 0:n.AText,FieldAddData:""},{FieldName:"Overview1PlayStoreLink",FieldValue:null==n?void 0:n.Pal,FieldAddData:""},{FieldName:"Overview1AppStoreLink",FieldValue:null==n?void 0:n.Asl,FieldAddData:""},{FieldName:"Overview1PosLink",FieldValue:null==n?void 0:n.Pos,FieldAddData:""},{FieldName:"Overview1BannerImage",FieldValue:i,FieldAddData:""}];i?(t(h_({postData:r})),o("Data Added Successfully"),s("success"),p(!1),null==(a=e.current)||a.resetFields(),t(f_({overview1Img:""}))):(o("Please Upoload Banner Image"),s("warning"))},children:[Ye.jsxs("div",{className:"overviewmainmodal",children:[Ye.jsxs("div",{className:"overviewmaindiv",children:[Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"Title",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Title",label:"Title",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!A,autoComplete:"off",suffix:Ye.jsx(F,{title:"POS App For Restaurant with & without GST fastest e-bill & normal Billing + KOT and Stock Management\r\n ",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"STitle",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Sub Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"STitle",label:"Sub Title",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!A,autoComplete:"off",suffix:Ye.jsx(F,{title:"Restaurant POS Smart Ordering via QR Code and Send Bill Via through SMS or Whatsapp very fast within min.\r\n\r\n ",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"BText",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Button Text"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"BText",label:"Button Text",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!A,autoComplete:"off",suffix:Ye.jsx(F,{title:"Get Started",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"AText",rules:[{required:!1,pattern:/^(?!\s*$).+/,message:"Please Enter App Link Text"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"AText",label:"App Link Text",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!A,autoComplete:"off",suffix:Ye.jsx(F,{title:"Download Pozo Apps From",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})})]}),Ye.jsxs("div",{className:"overviewImg",children:[Ye.jsx("p",{children:"Upload Banner Image"}),Ye.jsx("br",{}),Ye.jsx(Yy,{updateImageUrl:e=>{t(f_({overview1Img:e}))},singleImage:!0,ImageLink:i})]})]}),Ye.jsxs("div",{className:"overviewsubdiv",children:[Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"Pal",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Pal",label:"Playstore App Link",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!A,autoComplete:"off",suffix:Ye.jsx(F,{title:"https://playstore.com/",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"Asl",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Asl",label:"Appstore Link",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!A,autoComplete:"off",suffix:Ye.jsx(F,{title:"https://appstore.com",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"Pos",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Pos",label:"POS App Link",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!A,autoComplete:"off",suffix:Ye.jsx(F,{title:"https://pozo.app",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})})]}),Ye.jsx("div",{className:"overviewbtn",children:Ye.jsx(Ry,{type:"submit",buttonText:"SAVE",icon:Ye.jsx(k,{})})})]})}),Ye.jsx(j,{destroyOnClose:!0,centered:!0,open:d,onOk:()=>c(!1),onCancel:()=>c(!1),width:1e3,className:"overview1Modal",children:Ye.jsx("div",{className:"pointerModal",children:Ye.jsx(q2,{data:n,Preview:!0})})})]})};function Y2({updateVideoUrl:e,videoUrl:t}){const n=a.useRef(),i=um(),[r,s]=a.useState();a.useEffect((()=>{t?s(t):(n.current&&(n.current.value=null),s())}),[t]);return Ye.jsxs("div",{children:[Ye.jsx("input",{ref:n,className:"VideoInput_input",type:"file",onChange:async t=>{var n,a,r;let l=t.target.files[0];if(t.target.files.length>0){let t=await i(zy(l)).unwrap();(null==(n=null==t?void 0:t.data)?void 0:n.status)&&(e(null==(a=null==t?void 0:t.data)?void 0:a.image),s(null==(r=null==t?void 0:t.data)?void 0:r.image))}else e(""),s("")},accept:".mov,.mp4"}),!r&&Ye.jsx("button",{type:"button",style:{backgroundColor:"#cfcfcf",borderColor:"#cfcfcf"},onClick:e=>{n.current.click()},children:Ye.jsx("img",{src:"/assets/videobg-8bcfb43a.svg",style:{width:"150px",height:"85px"}})}),r&&Ye.jsx("video",{className:"VideoInput_video",controls:!0,src:r})]})}const K2=e=>{const t=Qt(),n=Tf(D_),i=Tf(D_),r=Tf(L_),[s,l]=a.useState(),[o,d]=a.useState(),c=e.hasOwnProperty("data")?e.data:[{FieldName:"Overview2Title",FieldValue:"",FieldAddData:""},{FieldName:"Overview2SubTitle",FieldValue:"",FieldAddData:""},{FieldName:"Overview2ButtonText",FieldValue:"",FieldAddData:""},{FieldName:"Overview2AppLinkText",FieldValue:"",FieldAddData:""},{FieldName:"Overview2PlayStoreLink",FieldValue:"",FieldAddData:""},{FieldName:"Overview2AppStoreLink",FieldValue:"",FieldAddData:""},{FieldName:"Overview2PosLink",FieldValue:"",FieldAddData:""},{FieldName:"Overview2BannerImage",FieldValue:"",FieldAddData:""},{FieldName:"Overview2BannerVideo",FieldValue:"",FieldAddData:""}],u=e=>{e.target.style.color=i.darkColor,e.target.style.border=`1.8px solid ${i.darkColor}`},p=e=>{e.target.style.color="white"},A=a.useCallback((()=>{l(null),d(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:o,messageData:s,onComplete:A}),Ye.jsxs("div",{style:{backgroundColor:n.lightColor?n.lightColor:"#000",color:n.lightColor?n.lightColor:"#fff"},className:e.hasOwnProperty("data")?"background-video-container":"background-video-container1",children:[null==c?void 0:c.map(((e,t)=>{var n;return"Overview2BannerVideo"==e.FieldName&&(null==(n=e.FieldValue)?void 0:n.length)>0?Ye.jsx(Ye.Fragment,{children:Ye.jsxs("video",{className:"background-video",autoPlay:!0,loop:!0,muted:!0,children:[Ye.jsx("source",{src:e.FieldValue,type:"video/mp4"}),"Your browser does not support the video tag."]})}):null})),null==c?void 0:c.map(((e,t)=>{var n;return"Overview2BannerImage"==e.FieldName&&(null==(n=e.FieldValue)?void 0:n.length)>0?Ye.jsx("img",{src:e.FieldValue,className:"background-video"}):null})),Ye.jsx("div",{className:e.hasOwnProperty("data")?"overview2subdiv2":"overview2subdivwithout",children:Ye.jsxs("div",{className:"overview2subdivdata",children:[null==c?void 0:c.map(((e,n)=>{var a,s,o,c,A;return"Overview2Title"==e.FieldName?Ye.jsx("div",{className:(null==(a=e.FieldValue)?void 0:a.length)>0?"pre2TitleData btn-shine1 ":"emp2TitleData",style:e.FieldValue.length>0?{fontFamily:r.head,color:"white"}:null,children:e.FieldValue.length>0?e.FieldValue:""},n):"Overview2SubTitle"==e.FieldName?Ye.jsx("div",{className:(null==(s=e.FieldValue)?void 0:s.length)>0?"pre2SubTitleData":"emp2SubTitleData",style:e.FieldValue.length>0?{fontFamily:r.para,color:"white"}:null,children:e.FieldValue.length>0?e.FieldValue:""},n):"Overview2ButtonText"==e.FieldName?Ye.jsx("div",{className:(null==(o=e.FieldValue)?void 0:o.length)>0?"pre2ButtonTextData":"emp2ButtonTextData",style:0==(null==(c=e.FieldValue)?void 0:c.length)?{backgroundColor:i.darkColor}:null,children:e.FieldValue.length>0?Ye.jsxs(y,{type:"primary",className:"preButtonTextData",style:{backgroundColor:i.darkColor,fontFamily:r.head},onFocus:u,onBlur:p,onClick:()=>{iA("UserId")?(l("User Already Logged in"),d("success")):t("/signin/")},children:[e.FieldValue,Ye.jsx(k,{})]}):""},n):"Overview2AppLinkText"==e.FieldName?Ye.jsx("div",{className:(null==(A=null==e?void 0:e.FieldValue)?void 0:A.length)||[]>0?"pre2AppLinkTextData":"emp2SubTitleData",style:(e.FieldValue.length,{fontFamily:r.para,color:"white"}),children:e.FieldValue.length||[]>0?e.FieldValue:""},n):null})),Ye.jsx("div",{className:"overview2subdiv",children:null==c?void 0:c.map(((e,t)=>{var n,i,a,s,l,o,d,c,u,p,A,h,f,m,v;return"Overview2PlayStoreLink"==e.FieldName?Ye.jsxs("div",{className:(null==(n=e.FieldValue)?void 0:n.length)>0&&"pre2LinkData",children:[(null==(i=e.FieldValue)?void 0:i.length)>0&&Ye.jsx("div",{children:Ye.jsx("img",{style:{width:"2rem"},src:(null==(a=e.FieldValue)?void 0:a.length)>0?H2:D2})}),Ye.jsx("div",{style:(null==(s=e.FieldValue)?void 0:s.length)>0?{fontFamily:r.para}:null,children:(null==(l=e.FieldValue)?void 0:l.length)>0?Ye.jsx("a",{href:e.FieldValue,style:{color:"black",textDecoration:"none"},children:"Playstore"}):""})]},t):"Overview2AppStoreLink"==e.FieldName?Ye.jsxs("div",{className:(null==(o=e.FieldValue)?void 0:o.length)>0&&"pre2LinkData",children:[(null==(d=e.FieldValue)?void 0:d.length)>0&&Ye.jsx("div",{children:Ye.jsx("img",{style:{width:"2rem"},src:(null==(c=e.FieldValue)?void 0:c.length)>0?V2:D2})}),Ye.jsx("div",{style:(null==(u=e.FieldValue)?void 0:u.length)>0?{fontFamily:r.para}:null,children:(null==(p=e.FieldValue)?void 0:p.length)>0?Ye.jsx("a",{href:e.FieldValue,style:{color:"black",textDecoration:"none"},children:"Appstore"}):""})]},t):"Overview2PosLink"==e.FieldName?Ye.jsxs("div",{className:(null==(A=e.FieldValue)?void 0:A.length)>0&&"pre2LinkData",children:[(null==(h=e.FieldValue)?void 0:h.length)>0&&Ye.jsx("div",{children:Ye.jsx("img",{style:{width:"2rem"},src:(null==(f=e.FieldValue)?void 0:f.length)>0?z2:D2})}),Ye.jsx("div",{style:(null==(m=e.FieldValue)?void 0:m.length)>0?{fontFamily:r.para}:null,children:(null==(v=e.FieldValue)?void 0:v.length)>0?Ye.jsx("a",{href:e.FieldValue,style:{color:"black",textDecoration:"none"},children:"Playstore(Pos)"}):""})]},t):null}))})]})})]})]})},G2=()=>{const e=a.useRef(null),t=um(),n=Tf(M_),i=Tf(Q_),r=Tf(H_),[s,l]=a.useState(null),[o,d]=a.useState(null),[c,u]=a.useState(!1),[p,A]=a.useState(!1),[h,f]=a.useState(!1),[m,v]=a.useState("video");a.useEffect((()=>{var i;null==n||n.map(((n,i)=>{var a,r,s,l,o,d,c;return"Overview2Title"==(null==n?void 0:n.FieldName)?null==(a=null==e?void 0:e.current)?void 0:a.setFieldsValue({Title:null==n?void 0:n.FieldValue}):"Overview2SubTitle"==(null==n?void 0:n.FieldName)?null==(r=null==e?void 0:e.current)?void 0:r.setFieldsValue({STitle:null==n?void 0:n.FieldValue}):"Overview2ButtonText"==(null==n?void 0:n.FieldName)?null==(s=null==e?void 0:e.current)?void 0:s.setFieldsValue({BText:null==n?void 0:n.FieldValue}):"Overview2AppLinkText"==(null==n?void 0:n.FieldName)?null==(l=null==e?void 0:e.current)?void 0:l.setFieldsValue({AText:null==n?void 0:n.FieldValue}):"Overview2PlayStoreLink"==(null==n?void 0:n.FieldName)?null==(o=null==e?void 0:e.current)?void 0:o.setFieldsValue({Pal:null==n?void 0:n.FieldValue}):"Overview2AppStoreLink"==(null==n?void 0:n.FieldName)?null==(d=null==e?void 0:e.current)?void 0:d.setFieldsValue({Asl:null==n?void 0:n.FieldValue}):"Overview2PosLink"==(null==n?void 0:n.FieldName)?null==(c=null==e?void 0:e.current)?void 0:c.setFieldsValue({Pos:null==n?void 0:n.FieldValue}):"Overview2BannerImage"==(null==n?void 0:n.FieldName)?t(m_({overview2Img:null==n?void 0:n.FieldValue})):"Overview2BannerVideo"==(null==n?void 0:n.FieldName)?t(v_({overview2Video:null==n?void 0:n.FieldValue})):null})),(null==(i=Object.keys((null==n?void 0:n.find((e=>"Overview2BannerImage"==(null==e?void 0:e.FieldName))))||{}))?void 0:i.length)>0?v("image"):v("video")}),[h]);const g=a.useCallback((()=>{d(null),l(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:s,messageData:o,onComplete:g}),Ye.jsx(K2,{}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>(()=>{(null==n?void 0:n.length)>0&&(n.filter((e=>e.FieldName.includes("Overview2"))).length>0&&f(!0),null==n||n.map(((n,i)=>{var a,r,s,l,o,d,c;return"Overview2Title"==(null==n?void 0:n.FieldName)?null==(a=null==e?void 0:e.current)?void 0:a.setFieldsValue({Title:null==n?void 0:n.FieldValue}):"Overview2SubTitle"==(null==n?void 0:n.FieldName)?null==(r=null==e?void 0:e.current)?void 0:r.setFieldsValue({STitle:null==n?void 0:n.FieldValue}):"Overview2ButtonText"==(null==n?void 0:n.FieldName)?null==(s=null==e?void 0:e.current)?void 0:s.setFieldsValue({BText:null==n?void 0:n.FieldValue}):"Overview2AppLinkText"==(null==n?void 0:n.FieldName)?null==(l=null==e?void 0:e.current)?void 0:l.setFieldsValue({AText:null==n?void 0:n.FieldValue}):"Overview2PlayStoreLink"==(null==n?void 0:n.FieldName)?null==(o=null==e?void 0:e.current)?void 0:o.setFieldsValue({Pal:null==n?void 0:n.FieldValue}):"Overview2AppStoreLink"==(null==n?void 0:n.FieldName)?null==(d=null==e?void 0:e.current)?void 0:d.setFieldsValue({Asl:null==n?void 0:n.FieldValue}):"Overview2PosLink"==(null==n?void 0:n.FieldName)?null==(c=null==e?void 0:e.current)?void 0:c.setFieldsValue({Pos:null==n?void 0:n.FieldValue}):"Overview2BannerImage"==(null==n?void 0:n.FieldName)?t(m_({overview2Img:null==n?void 0:n.FieldValue})):"Overview2BannerVideo"==(null==n?void 0:n.FieldName)?t(v_({overview2Video:null==n?void 0:n.FieldValue})):null})));A(!0)})()}),Ye.jsx(ce,{onClick:()=>{n.length>0&&n.filter((e=>e.FieldName.includes("Overview2"))).length>0?u(!0):(d("Please add a overview data to open the preview"),l("warning"))}})]}),Ye.jsx(j,{centered:!0,open:p,onOk:()=>A(!1),closeIcon:Ye.jsx(M,{onClick:()=>{var n;A(!1),t(m_({overview2Img:""})),t(v_({overview2Video:null})),null==(n=e.current)||n.resetFields()}}),width:900,children:Ye.jsxs(I,{ref:e,onFinish:n=>{var a;const s=[{FieldName:"Overview2Title",FieldValue:null==n?void 0:n.Title,FieldAddData:""},{FieldName:"Overview2SubTitle",FieldValue:null==n?void 0:n.STitle,FieldAddData:""},{FieldName:"Overview2ButtonText",FieldValue:null==n?void 0:n.BText,FieldAddData:""},{FieldName:"Overview2AppLinkText",FieldValue:null==n?void 0:n.AText,FieldAddData:""},{FieldName:"Overview2PlayStoreLink",FieldValue:null==n?void 0:n.Pal,FieldAddData:""},{FieldName:"Overview2AppStoreLink",FieldValue:null==n?void 0:n.Asl,FieldAddData:""},{FieldName:"Overview2PosLink",FieldValue:null==n?void 0:n.Pos,FieldAddData:""}];r||i?(i&&s.push({FieldName:"Overview2BannerImage",FieldValue:i,FieldAddData:""}),r&&s.push({FieldName:"Overview2BannerVideo",FieldValue:r,FieldAddData:""}),t(h_({postData:s})),d("Data Added Successfully"),l("success"),A(!1),null==(a=e.current)||a.resetFields(),t(m_({overview2Img:""})),t(v_({overview2Video:null}))):(d("Please Upoload Banner Image or Video"),l("warning"))},children:[Ye.jsxs("div",{className:"overview2main",children:[Ye.jsxs("div",{className:"overview2maindiv",children:[Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"Title",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Title",label:"Title",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!h,autoComplete:"off",suffix:Ye.jsx(F,{title:"POS App For Restaurant with & without GST fastest e-bill & normal Billing + KOT and Stock Management",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"STitle",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Sub Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"STitle",label:"Sub Title",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!h,autoComplete:"off",suffix:Ye.jsx(F,{title:"Restaurant POS Smart Ordering via QR Code and Send Bill Via through SMS or Whatsapp very fast within min.",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"BText",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Button Text"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"BText",label:"Button Text",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!h,autoComplete:"off",suffix:Ye.jsx(F,{title:"Get Started",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"AText",rules:[{required:!1,pattern:/^(?!\s*$).+/,message:"Please Enter App Link Text"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"AText",label:"App Link Text",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!h,autoComplete:"off",suffix:Ye.jsx(F,{title:"Download Pozo Apps From",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})})]}),Ye.jsxs("div",{className:"overview2Img",children:[Ye.jsx(ue,{options:[{label:"Video",value:"video",icon:Ye.jsx(VO,{})},{label:"Image",value:"image",icon:Ye.jsx(Xv,{})}],value:m,onChange:e=>v(e)}),Ye.jsx("div",{className:"overview2SubImg",children:"video"===m?Ye.jsxs("div",{className:"overviewVideo",style:{position:"relative"},children:[Ye.jsx("p",{children:"Upload Background Video"}),Ye.jsx("br",{}),Ye.jsx(Y2,{updateVideoUrl:e=>{t(v_({overview2Video:e}))},videoUrl:r}),r&&Ye.jsxs(y,{style:{marginTop:"1rem"},type:"dashed",onClick:()=>{t(v_({overview2Video:""}))},danger:!0,children:["Delete Video",Ye.jsx(L,{})]})]}):Ye.jsxs("div",{children:[Ye.jsx("p",{children:"Upload Banner Image"}),Ye.jsx("br",{}),Ye.jsx(Yy,{updateImageUrl:e=>{t(m_({overview2Img:e}))},singleImage:!0,ImageLink:i})]})})]})]}),Ye.jsxs("div",{className:"overview2subdiv",children:[Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"Pal",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Pal",label:"Playstore App Link",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!h,autoComplete:"off",suffix:Ye.jsx(F,{title:"https://playstore.com/",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"Asl",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Asl",label:"Appstore Link",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!h,autoComplete:"off",suffix:Ye.jsx(F,{title:"https://appstore.com",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"Pos",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Pos",label:"POS App Link",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!h,autoComplete:"off",suffix:Ye.jsx(F,{title:"https://pozo.app",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})})]}),Ye.jsx("div",{className:"overview2btn",children:Ye.jsx(Ry,{type:"submit",buttonText:"SAVE",icon:Ye.jsx(k,{})})})]})}),Ye.jsx(j,{destroyOnClose:!0,centered:!0,open:c,onOk:()=>u(!1),onCancel:()=>u(!1),width:1e3,children:Ye.jsx("div",{className:"pointerModal",children:Ye.jsx(K2,{data:n})})})]})};function $2(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,i)=>"create"===i?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const X2=$2(bP);function J2(e,t){[...t].reverse().forEach((n=>{const i=e.getVariant(n);i&&CN(e,i),e.variantChildren&&e.variantChildren.forEach((e=>{J2(e,t)}))}))}function Z2(){const e=new Set,t={subscribe:t=>(e.add(t),()=>{e.delete(t)}),start(t,n){const i=[];return e.forEach((e=>{i.push(MN(e,t,{transitionOverride:n}))})),Promise.all(i)},set:t=>e.forEach((e=>{!function(e,t){Array.isArray(t)?J2(e,t):"string"==typeof t?J2(e,[t]):CN(e,t)}(e,t)})),stop(){e.forEach((e=>{!function(e){e.values.forEach((e=>e.stop()))}(e)}))},mount:()=>()=>{t.stop()}};return t}const e5=function(){const e=iP(Z2);return kB(e.mount,[]),e},t5={some:0,all:1};function n5(e,{root:t,margin:n,amount:i,once:r=!1,initial:s=!1}={}){const[l,o]=a.useState(s);return a.useEffect((()=>{if(!e.current||r&&l)return;const a={root:t&&t.current||void 0,margin:n,amount:i};return function(e,t,{root:n,margin:i,amount:a="some"}={}){const r=tN(e),s=new WeakMap,l=new IntersectionObserver((e=>{e.forEach((e=>{const n=s.get(e.target);if(e.isIntersecting!==Boolean(n))if(e.isIntersecting){const n=t(e.target,e);"function"==typeof n?s.set(e.target,n):l.unobserve(e.target)}else"function"==typeof n&&(n(e),s.delete(e.target))}))}),{root:n,rootMargin:i,threshold:"number"==typeof a?a:t5[a]});return r.forEach((e=>l.observe(e))),()=>l.disconnect()}(e.current,(()=>(o(!0),r?void 0:()=>o(!1))),a)}),[t,e,n,r,i]),l}var i5={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function i(e,a,r){return(i=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var a=Date.now||function(){return+new Date};function r(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var s=!!window.FontFace;function l(e,t,n,i){if(t=e.c.createElement(t),n)for(var a in n)n.hasOwnProperty(a)&&("style"==a?t.style.cssText=n[a]:t.setAttribute(a,n[a]));return i&&t.appendChild(e.c.createTextNode(i)),t}function o(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function c(e,t,n){t=t||[],n=n||[];for(var i=e.className.split(/\s+/),a=0;a<t.length;a+=1){for(var r=!1,s=0;s<i.length;s+=1)if(t[a]===i[s]){r=!0;break}r||i.push(t[a])}for(t=[],a=0;a<i.length;a+=1){for(r=!1,s=0;s<n.length;s+=1)if(i[a]===n[s]){r=!0;break}r||t.push(i[a])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function u(e,t){for(var n=e.className.split(/\s+/),i=0,a=n.length;i<a;i++)if(n[i]==t)return!0;return!1}function p(e,t,n){function i(){c&&a&&r&&(c(d),c=null)}t=l(e,"link",{rel:"stylesheet",href:t,media:"all"});var a=!1,r=!0,d=null,c=n||null;s?(t.onload=function(){a=!0,i()},t.onerror=function(){a=!0,d=Error("Stylesheet failed to load"),i()}):setTimeout((function(){a=!0,i()}),0),o(e,"head",t)}function A(e,t,n,i){var a=e.c.getElementsByTagName("head")[0];if(a){var r=l(e,"script",{src:t}),s=!1;return r.onload=r.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,n&&n(null),r.onload=r.onreadystatechange=null,"HEAD"==r.parentNode.tagName&&a.removeChild(r))},a.appendChild(r),setTimeout((function(){s||(s=!0,n&&n(Error("Script load timeout")))}),i||5e3),r}return null}function h(){this.a=0,this.c=null}function f(e){return e.a++,function(){e.a--,v(e)}}function m(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function g(e){this.a=e||"-"}function y(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function x(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var i=e[n].replace(/['"]/g,"");-1!=i.indexOf(" ")||/^\d/.test(i)?t.push("'"+i+"'"):t.push(i)}return t.join(",")}function b(e){return e.a+e.f}function w(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function j(e){var t=4,n="n",i=null;return e&&((i=e.match(/(normal|oblique|italic)/i))&&i[1]&&(n=i[1].substr(0,1).toLowerCase()),(i=e.match(/([1-9]00|normal|bold)/i))&&i[1]&&(/bold/i.test(i[1])?t=7:/[1-9]00/.test(i[1])&&(t=parseInt(i[1].substr(0,1),10)))),n+t}function C(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new g("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function S(e){if(e.g){var t=u(e.f,e.a.c("wf","active")),n=[],i=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),c(e.f,n,i)}N(e,"inactive")}function N(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,b(n)):e.h[t]())}function I(){this.c={}}function F(e,t){this.c=e,this.f=t,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function B(e){o(e.c,"body",e.a)}function P(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+x(e.c)+";font-style:"+w(e)+";font-weight:"+e.f+"00;"}function k(e,t,n,i,a,r){this.g=e,this.j=t,this.a=i,this.c=n,this.f=a||3e3,this.h=r||void 0}function T(e,t,n,i,a,r,s){this.v=e,this.B=t,this.c=n,this.a=i,this.s=s||"BESbswy",this.f={},this.w=a||3e3,this.u=r||null,this.m=this.j=this.h=this.g=null,this.g=new F(this.c,this.s),this.h=new F(this.c,this.s),this.j=new F(this.c,this.s),this.m=new F(this.c,this.s),e=P(e=new y(this.a.c+",serif",b(this.a))),this.g.a.style.cssText=e,e=P(e=new y(this.a.c+",sans-serif",b(this.a))),this.h.a.style.cssText=e,e=P(e=new y("serif",b(this.a))),this.j.a.style.cssText=e,e=P(e=new y("sans-serif",b(this.a))),this.m.a.style.cssText=e,B(this.g),B(this.h),B(this.j),B(this.m)}g.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},k.prototype.start=function(){var e=this.c.o.document,t=this,n=a(),i=new Promise((function(i,r){!function s(){a()-n>=t.f?r():e.fonts.load(function(e){return w(e)+" "+e.f+"00 300px "+x(e.c)}(t.a),t.h).then((function(e){1<=e.length?i():setTimeout(s,25)}),(function(){r()}))}()})),r=null,s=new Promise((function(e,n){r=setTimeout(n,t.f)}));Promise.race([s,i]).then((function(){r&&(clearTimeout(r),r=null),t.g(t.a)}),(function(){t.j(t.a)}))};var E={D:"serif",C:"sans-serif"},D=null;function L(){if(null===D){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);D=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return D}function U(e,t,n){for(var i in E)if(E.hasOwnProperty(i)&&t===e.f[E[i]]&&n===e.f[E[i]])return!0;return!1}function _(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=L()&&U(e,n,r)),t?a()-e.A>=e.w?L()&&U(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?O(e,e.v):O(e,e.B):function(e){setTimeout(i((function(){_(this)}),e),50)}(e):O(e,e.v)}function O(e,t){setTimeout(i((function(){d(this.g.a),d(this.h.a),d(this.j.a),d(this.m.a),t(this.a)}),e),0)}function M(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}T.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=a(),_(this)};var R=null;function Q(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&c(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),N(e,"active")):S(e.a))}function H(e){this.j=e,this.a=new I,this.h=0,this.f=this.g=!0}function V(e,t,n,a,r){var s=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=r||null,l=a||{};if(0===n.length&&s)S(t.a);else{t.f+=n.length,s&&(t.j=s);var o,d=[];for(o=0;o<n.length;o++){var u=n[o],p=l[u.c],A=t.a,h=u;if(A.g&&c(A.f,[A.a.c("wf",h.c,b(h).toString(),"loading")]),N(A,"fontloading",h),A=null,null===R)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var f=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);R=h?42<parseInt(h[1],10):!f}else R=!1;A=R?new k(i(t.g,t),i(t.h,t),t.c,u,t.s,p):new T(i(t.g,t),i(t.h,t),t.c,u,t.s,e,p),d.push(A)}for(o=0;o<d.length;o++)d[o].start()}}),0)}function z(e,t){this.c=e,this.a=t}function q(e,t){this.c=e,this.a=t}function W(e,t){this.c=e||Y,this.a=[],this.f=[],this.g=t||""}M.prototype.g=function(e){var t=this.a;t.g&&c(t.f,[t.a.c("wf",e.c,b(e).toString(),"active")],[t.a.c("wf",e.c,b(e).toString(),"loading"),t.a.c("wf",e.c,b(e).toString(),"inactive")]),N(t,"fontactive",e),this.m=!0,Q(this)},M.prototype.h=function(e){var t=this.a;if(t.g){var n=u(t.f,t.a.c("wf",e.c,b(e).toString(),"active")),i=[],a=[t.a.c("wf",e.c,b(e).toString(),"loading")];n||i.push(t.a.c("wf",e.c,b(e).toString(),"inactive")),c(t.f,i,a)}N(t,"fontinactive",e),Q(this)},H.prototype.load=function(e){this.c=new r(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var i=[],a=n.timeout;!function(e){e.g&&c(e.f,[e.a.c("wf","loading")]),N(e,"loading")}(t);i=function(e,t,n){var i,a=[];for(i in t)if(t.hasOwnProperty(i)){var r=e.c[i];r&&a.push(r(t[i],n))}return a}(e.a,n,e.c);var r=new M(e.c,t,a);for(e.h=i.length,t=0,n=i.length;t<n;t++)i[t].load((function(t,n,i){V(e,r,t,n,i)}))}(this,new C(this.c,e),e)},z.prototype.load=function(e){function t(){if(r["__mti_fntLst"+i]){var n,a=r["__mti_fntLst"+i](),s=[];if(a)for(var l=0;l<a.length;l++){var o=a[l].fontfamily;null!=a[l].fontStyle&&null!=a[l].fontWeight?(n=a[l].fontStyle+a[l].fontWeight,s.push(new y(o,n))):s.push(new y(o))}e(s)}else setTimeout((function(){t()}),50)}var n=this,i=n.a.projectId,a=n.a.version;if(i){var r=n.c.o;A(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+i+".js"+(a?"?v="+a:""),(function(a){a?e([]):(r["__MonotypeConfiguration__"+i]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+i}else e([])},q.prototype.load=function(e){var t,n,i=this.a.urls||[],a=this.a.families||[],r=this.a.testStrings||{},s=new h;for(t=0,n=i.length;t<n;t++)p(this.c,i[t],f(s));var l=[];for(t=0,n=a.length;t<n;t++)if((i=a[t].split(":"))[1])for(var o=i[1].split(","),d=0;d<o.length;d+=1)l.push(new y(i[0],o[d]));else l.push(new y(i[0]));m(s,(function(){e(l,r)}))};var Y="https://fonts.googleapis.com/css";function K(e){this.f=e,this.a=[],this.c={}}var G={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},$={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Z(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Z.prototype.load=function(e){var t=new h,n=this.c,i=new W(this.a.api,this.a.text),a=this.a.families;!function(e,t){for(var n=t.length,i=0;i<n;i++){var a=t[i].split(":");3==a.length&&e.f.push(a.pop());var r="";2==a.length&&""!=a[1]&&(r=":"),e.a.push(a.join(r))}}(i,a);var r=new K(a);!function(e){for(var t=e.f.length,n=0;n<t;n++){var i=e.f[n].split(":"),a=i[0].replace(/\+/g," "),r=["n4"];if(2<=i.length){var s;if(s=[],l=i[1])for(var l,o=(l=l.split(",")).length,d=0;d<o;d++){var c;if((c=l[d]).match(/^[\w-]+$/))if(null==(u=J.exec(c.toLowerCase())))c="";else{if(c=null==(c=u[2])||""==c?"n":X[c],null==(u=u[1])||""==u)u="4";else var u=$[u]||(isNaN(u)?"4":u.substr(0,1));c=[c,u].join("")}else c="";c&&s.push(c)}0<s.length&&(r=s),3==i.length&&(s=[],0<(i=(i=i[2])?i.split(","):s).length&&(i=G[i[0]])&&(e.c[a]=i))}for(e.c[a]||(i=G[a])&&(e.c[a]=i),i=0;i<r.length;i+=1)e.a.push(new y(a,r[i]))}}(r),p(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],i=0;i<t;i++)n.push(e.a[i].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(i),f(t)),m(t,(function(){e(r.a,r.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?A(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var i=[],a=0;a<t.length;a+=2)for(var r=t[a],s=t[a+1],l=0;l<s.length;l++)i.push(new y(r,s[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(o){}e(i)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,i=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var a=0,r=n.fonts.length;a<r;++a){var s=n.fonts[a];i.a.push(new y(s.name,j("font-weight:"+s.weight+";font-style:"+s.style)))}e(i.a)},A(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ie=new H(window);ie.a.c.custom=function(e,t){return new q(t,e)},ie.a.c.fontdeck=function(e,t){return new ne(t,e)},ie.a.c.monotype=function(e,t){return new z(t,e)},ie.a.c.typekit=function(e,t){return new te(t,e)},ie.a.c.google=function(e,t){return new Z(t,e)};var ae={load:i(ie.load,ie)};e.exports?e.exports=ae:(window.WebFont=ae,window.WebFontConfig&&ie.load(window.WebFontConfig))}()}(i5);const a5=c(i5.exports),r5=e=>{const t=Qt(),[n,i]=a.useState([]);a.useEffect((()=>{e.data&&e.data.length>0?i(e.data):i([])}),[e.data]);const r=n.find((e=>"Overview3BannerVideo"===e.FieldName));r&&r.FieldValue&&r.FieldValue;const s=Tf(D_),l=Tf(L_),o=Tf(q_),d=Tf(U_),c=Tf(W_),[u,p]=a.useState(null),A=a.useRef(null),h=n5(A,{once:!1,amount:.3}),f=e5();return a.useEffect((()=>{let e,t=0;const n=A.current;if(n){const i=n.scrollHeight-n.clientHeight;e=setInterval((()=>{t+=1,t>i?(n.scrollTo({top:0,behavior:"smooth"}),t=0):n.scrollTo({top:t,behavior:"auto"})}),30)}return()=>clearInterval(e)}),[]),a.useEffect((()=>{h&&f.start("visible")}),[f,h]),a.useEffect((()=>{let e=null==d?void 0:d.filter((e=>(null==e?void 0:e.AppId)===(null==o?void 0:o.AppId)));p(e.length>0?e[0].AppName:c.length>0?c:null)}),[o]),a.useEffect((()=>{l.head,l.para&&a5.load({google:{families:[l.head,l.para]}})}),[l.head,l.para]),Ye.jsxs("div",{className:"hero-section",id:"overview",children:[null==n?void 0:n.map(((e,t)=>{var n;return"Overview3BannerVideo"===e.FieldName&&(null==(n=e.FieldValue)?void 0:n.length)>0?Ye.jsxs("video",{className:"video-background",autoPlay:!0,loop:!0,muted:!0,children:[Ye.jsx("source",{src:e.FieldValue,type:"video/mp4"}),"Your browser does not support the video tag."]},t):null})),Ye.jsx("div",{className:"overlay"}),Ye.jsx("div",{className:"content-wrapper",children:Ye.jsx("div",{className:"container",style:{backgroundColor:"transparent"},children:Ye.jsxs(X2.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"hero-content",children:[null==n?void 0:n.map(((e,n)=>"Overview3Title"===e.FieldName?Ye.jsxs("h1",{style:{fontFamily:(null==l?void 0:l.head)?null==l?void 0:l.head:""},children:[e.FieldValue," ",Ye.jsx("span",{style:{color:s.darkColor?s.darkColor:"#fff",fontFamily:(null==l?void 0:l.head)?null==l?void 0:l.head:""},children:u})]},n):"Overview3SubTitle"===e.FieldName?Ye.jsx("p",{style:{fontFamily:(null==l?void 0:l.para)?null==l?void 0:l.para:""},children:e.FieldValue},n):"Overview3ButtonText"===e.FieldName?Ye.jsxs("div",{className:"button-group",children:[Ye.jsxs(X2.button,{whileHover:{scale:1.05},whileTap:{scale:.95},className:"primary-button",style:{fontFamily:"Inter",backgroundColor:s.darkColor?s.darkColor:"#000",color:"#fff",fontFamily:(null==l?void 0:l.para)?null==l?void 0:l.para:""},onClick:()=>t("/signin"),children:[e.FieldValue,Ye.jsx(ri,{className:"icon"})]}),Ye.jsx(X2.button,{whileHover:{scale:1.05},whileTap:{scale:.95},className:"secondary-button",style:{fontFamily:(null==l?void 0:l.para)?null==l?void 0:l.para:""},children:"Watch Demo"})]},n):null)),Ye.jsx("div",{className:"overview2subdiv",children:null==n?void 0:n.map(((e,t)=>{var n,i,a,r,s,l,o,d,c,u,p,A,h,f,m;return"Overview3PlayStoreLink"===e.FieldName?Ye.jsxs("div",{className:(null==(n=e.FieldValue)?void 0:n.length)>0?"pre2LinkData":"",children:[(null==(i=e.FieldValue)?void 0:i.length)>0&&Ye.jsx("div",{children:Ye.jsx("img",{style:{width:"2rem"},src:(null==(a=e.FieldValue)?void 0:a.length)>0?H2:D2,alt:"playstore"})}),Ye.jsx("div",{style:(null==(r=e.FieldValue)?void 0:r.length)>0?{fontFamily:"Inter"}:null,children:(null==(s=e.FieldValue)?void 0:s.length)>0?Ye.jsx("a",{href:e.FieldValue,style:{color:"black",textDecoration:"none"},children:"Playstore"}):""})]},t):"Overview3AppStoreLink"===e.FieldName?Ye.jsxs("div",{className:(null==(l=e.FieldValue)?void 0:l.length)>0?"pre2LinkData":"",children:[(null==(o=e.FieldValue)?void 0:o.length)>0&&Ye.jsx("div",{children:Ye.jsx("img",{style:{width:"2rem"},src:(null==(d=e.FieldValue)?void 0:d.length)>0?V2:D2,alt:"appstore"})}),Ye.jsx("div",{style:(null==(c=e.FieldValue)?void 0:c.length)>0?{fontFamily:"Inter"}:null,children:(null==(u=e.FieldValue)?void 0:u.length)>0?Ye.jsx("a",{href:e.FieldValue,style:{color:"black",textDecoration:"none"},children:"Appstore"}):""})]},t):"Overview3PosLink"===e.FieldName?Ye.jsxs("div",{className:(null==(p=e.FieldValue)?void 0:p.length)>0?"pre2LinkData":"",children:[(null==(A=e.FieldValue)?void 0:A.length)>0&&Ye.jsx("div",{children:Ye.jsx("img",{style:{width:"2rem"},src:(null==(h=e.FieldValue)?void 0:h.length)>0?z2:D2,alt:"pos"})}),Ye.jsx("div",{style:(null==(f=e.FieldValue)?void 0:f.length)>0?{fontFamily:"Inter"}:null,children:(null==(m=e.FieldValue)?void 0:m.length)>0?Ye.jsx("a",{href:e.FieldValue,style:{color:"black",textDecoration:"none"},children:"Playstore(Pos)"}):""})]},t):null}))})]})})}),Ye.jsx("div",{className:"scroll-indicator",children:Ye.jsx(X2.div,{animate:{y:[0,10,0]},transition:{duration:1.5,repeat:1/0,repeatType:"loop"},className:"scroll-box",children:Ye.jsx(X2.div,{animate:{y:[0,12,0]},transition:{duration:1.5,repeat:1/0,repeatType:"loop"},className:"scroll-dot"})})})]})},s5=()=>{const e=a.useRef(null),t=um(),n=Tf(M_),i=Tf(H_),[r,s]=a.useState(null),[l,o]=a.useState(null),[d,c]=a.useState(!1),[u,p]=a.useState(!1),[A,h]=a.useState(!1);a.useEffect((()=>{(null==n?void 0:n.length)>0&&n.forEach((n=>{var i,a,r,s;switch(n.FieldName){case"Overview3Title":null==(i=null==e?void 0:e.current)||i.setFieldsValue({Title:n.FieldValue});break;case"Overview3SubTitle":null==(a=null==e?void 0:e.current)||a.setFieldsValue({STitle:n.FieldValue});break;case"Overview3ButtonText":null==(r=null==e?void 0:e.current)||r.setFieldsValue({BText:n.FieldValue});break;case"Overview3BannerVideo":t(v_({overview2Video:n.FieldValue}));break;case"Overview3Stats":null==(s=null==e?void 0:e.current)||s.setFieldsValue({Stats:n.FieldValue})}}))}),[A,n]);const f=a.useCallback((()=>{o(null),s(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:r,messageData:l,onComplete:f}),Ye.jsx(K2,{}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>(()=>{(null==n?void 0:n.length)>0&&n.filter((e=>e.FieldName.includes("Overview3"))).length>0&&h(!0);p(!0)})()}),Ye.jsx(ce,{onClick:()=>{n.length>0&&n.filter((e=>e.FieldName.includes("Overview3"))).length>0?c(!0):(o("Please add overview data to open the preview"),s("warning"))}})]}),Ye.jsx(j,{centered:!0,open:u,onOk:()=>p(!1),closeIcon:Ye.jsx(M,{onClick:()=>{var n;p(!1),t(v_({overview2Video:null})),null==(n=e.current)||n.resetFields()}}),width:900,children:Ye.jsxs(I,{ref:e,onFinish:n=>{var a;const r=[{FieldName:"Overview3Title",FieldValue:null==n?void 0:n.Title,FieldAddData:""},{FieldName:"Overview3SubTitle",FieldValue:null==n?void 0:n.STitle,FieldAddData:""},{FieldName:"Overview3ButtonText",FieldValue:null==n?void 0:n.BText,FieldAddData:""},{FieldName:"Overview3BannerVideo",FieldValue:i,FieldAddData:""},{FieldName:"Overview3Stats",FieldValue:null==n?void 0:n.Stats,FieldAddData:""}];i?(t(h_({postData:r})),o("Data Added Successfully"),s("success"),p(!1),null==(a=e.current)||a.resetFields(),t(v_({overview2Video:null}))):(o("Please Upload Background Video"),s("warning"))},children:[Ye.jsxs("div",{className:"overview2main",children:[Ye.jsxs("div",{className:"overview2maindiv",children:[Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"Title",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Title",label:"Title",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!A,autoComplete:"off",suffix:Ye.jsx(F,{title:"Enter your main heading",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"STitle",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Sub Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"STitle",label:"Sub Title",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!A,autoComplete:"off",suffix:Ye.jsx(F,{title:"Enter your subtitle or description",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"BText",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Button Text"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"BText",label:"Button Text",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!A,autoComplete:"off",suffix:Ye.jsx(F,{title:"Enter text for the main button",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"Stats",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Statistics"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Stats",label:"Statistics",className:"Input",fieldState:!0,fieldApi:!0,isOnChange:!!A,autoComplete:"off",suffix:Ye.jsx(F,{title:"Enter statistics in format: value1,label1;value2,label2;...",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})})]}),Ye.jsx("div",{className:"overview2Img",children:Ye.jsx("div",{className:"overview2SubImg",children:Ye.jsxs("div",{className:"overviewVideo",style:{position:"relative"},children:[Ye.jsx("p",{children:"Upload Background Video"}),Ye.jsx("br",{}),Ye.jsx(Y2,{updateVideoUrl:e=>{t(v_({overview2Video:e}))},videoUrl:i}),i&&Ye.jsxs(y,{style:{marginTop:"1rem"},type:"dashed",onClick:async()=>{await t(v_({overview2Video:""}))},danger:!0,children:["Delete Video",Ye.jsx(L,{})]})]})})})]}),Ye.jsx("div",{className:"overview2btn",children:Ye.jsx(Ry,{type:"submit",buttonText:"SAVE",icon:Ye.jsx(k,{})})})]})}),Ye.jsx(j,{destroyOnClose:!0,centered:!0,open:d,onOk:()=>c(!1),onCancel:()=>c(!1),width:1e3,children:Ye.jsx("div",{className:"pointerModal",children:Ye.jsx(r5,{data:n})})})]})},l5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAANCAYAAACkTj4ZAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFqSURBVHgBpVO7isJAFD2JgoIWoiJYaWHhByj4E36F/6KlrT8gKIiVhYiCaOWmtbFQEWzzIC/Ie72zJGx2k0YPXIY7c+fMmblnOFVVg+fzCc/z8A6CIECj0QC32WyCSqUCnufxLq7XK7K6rqPX6+ET3G43xGTIsozRaITxeMwk/4WiKKlkMSJRFCFJEjRNg23bscL9fo/hcIjtdptIlP2dtFotDAYDlMtl5HK5aJ7Id7sdU7ler9FsNlltqiIqbLfbqNVq0Rwpm0wmsCwL+XweHMdhPp//u2ZE5Loui1cXIXwJcByHkVBODclkMmydyEzTxGw2i71jdDUqXCwWOJ1O7FRRElGtVnE8HiO1vu+zkeJ+v2O1WqHf78cVTadTRhJuokd9PB6o1+vMrEQSKqec4nA4MA8RuOVyyZx9Pp+RhG63i5f7cblcEtcLhQI6nQ74YrGYSkIQBCHRUyEMw/hpAv01MuInKJVK+AZCkc+8fXU9fwAAAABJRU5ErkJggg==",o5=({children:e,showLeftButton:t,showRightButton:n})=>{const i=a.useRef(null),[r,s]=a.useState(!1),[l,o]=a.useState(!0),[d,c]=a.useState(!1),[u,p]=a.useState(0),[A,h]=a.useState(window.innerWidth);a.useEffect((()=>{function e(){h(window.innerWidth)}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[A]);const f=()=>{c(!1)};return a.useEffect((()=>{const e=i.current;if(e){const t=e.scrollWidth>e.clientWidth;s(t),o(t)}}),[e,A]),Ye.jsxs("div",{className:"AppSliderDiv",children:[Ye.jsx("div",{style:{width:"2rem"},children:r&&Ye.jsx("button",{className:"swipee-icon",onClick:()=>{i.current&&(i.current.scrollLeft-=200)},children:Ye.jsx(IU,{})})}),Ye.jsx("div",{style:{overflowX:"hidden",overflowY:"hidden",display:"flex",alignItems:"center",justifyContent:"start",flexDirection:"row",columnGap:"0.5rem",cursor:"grab"},ref:i,onScroll:()=>{const e=i.current;e&&(s(e.scrollLeft>0),o(e.scrollWidth-e.clientWidth-e.scrollLeft>1))},onMouseDown:e=>{c(!0),p(e.pageX-i.current.offsetLeft)},onTouchStart:e=>{c(!0),p(e.touches[0].clientX)},onMouseMove:e=>{if(!d)return;const t=i.current;if(!t)return;const n=e.clientX-u;t.scrollLeft-=n,p(e.clientX)},onTouchMove:e=>{if(!d)return;const t=i.current;if(!t)return;const n=e.touches[0].clientX-u;t.scrollLeft-=n,p(e.touches[0].clientX)},onMouseUp:f,onTouchEnd:()=>{c(!1)},onMouseLeave:f,children:e}),Ye.jsx("div",{style:{width:"2rem"},children:l&&Ye.jsx("button",{className:"swipee-icon",onClick:()=>{i.current&&(i.current.scrollLeft+=200)},children:Ye.jsx(FU,{})})})]})};o5.propTypes={children:TU.node.isRequired},o5.propTypes={children:TU.node.isRequired,showLeftButton:TU.bool,showRightButton:TU.bool},o5.defaultProps={showLeftButton:!0,showRightButton:!0};const d5=e=>{a.useEffect((()=>{LU.init({duration:1e3})}),[]);const t=Tf(L_),n=e.hasOwnProperty("data")?null==e?void 0:e.data:[{FieldName:"Feature1Image",FieldValue:""},{FieldName:"Feature1Link",FieldValue:""},{FieldName:"Feature1subImage1",FieldValue:""},{FieldName:"Feature1subName1",FieldValue:""},{FieldName:"Feature1subImage2",FieldValue:""},{FieldName:"Feature1subName2",FieldValue:""}];return Ye.jsx("div",{className:e.hasOwnProperty("data")?"features1Body":"features1Body feature1SingleGrid",children:Ye.jsx(o5,{children:(()=>{var e,i,r,s,l,o;a.useEffect((()=>{LU.init({duration:1e3})}),[]);let d={};null==n||n.map((e=>{d[e.FieldName]=e.FieldValue}));let c=[];for(let a=1;a<=Math.ceil((null==n?void 0:n.length)/6);a++)c.push(Ye.jsxs("div",{className:"feature1Card",children:[Ye.jsx("div",{className:"feature1mainImage",children:Ye.jsx("img",{style:{borderRadius:"10px"},src:(null==(e=d[`Feature${a}Image`])?void 0:e.length)>0?d[`Feature${a}Image`]:GM,alt:"feature Image",width:"100%",height:"100%"})}),Ye.jsx("p",{className:(null==(i=d[`Feature${a}Link`])?void 0:i.length)>0?"feature1Des":"feature1EmptyBox feature1DesEmpty",style:{fontSize:"22px",fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},children:d[`Feature${a}Link`]??""}),Ye.jsxs("div",{className:"feature1SubCatP",children:[Ye.jsxs("div",{className:"feature1SubCat",children:[Ye.jsx("div",{className:"feature1subImage",children:Ye.jsx("img",{src:(null==(r=d[`Feature${a}subImage1`])?void 0:r.length)>0?d[`Feature${a}subImage1`]:l5,alt:"subFeature Image",width:"100%",height:"100%"})}),Ye.jsx("p",{className:(null==(s=d[`Feature${a}subName1`])?void 0:s.length)>0?"feature1Des":"feature1EmptyBox",style:{fontSize:"14px",textTransform:"capitalize",fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},children:d[`Feature${a}subName1`]??""})]}),Ye.jsxs("div",{className:"feature1SubCat",children:[Ye.jsx("div",{className:"feature1subImage",children:Ye.jsx("img",{src:(null==(l=d[`Feature${a}subImage2`])?void 0:l.length)>0?d[`Feature${a}subImage2`]:l5,alt:"subFeature Image",width:"100%",height:"100%"})}),Ye.jsx("p",{className:(null==(o=d[`Feature${a}subName2`])?void 0:o.length)>0?"":"feature1EmptyBox",style:{fontSize:"14px",textTransform:"capitalize",fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},children:d[`Feature${a}subName2`]??""})]})]})]},a));return c})()})})},c5=Object.freeze(Object.defineProperty({__proto__:null,default:d5},Symbol.toStringTag,{value:"Module"})),u5=e=>{const t=um(),n=Tf(G_),i=a.useRef(),[r,s]=a.useState(1),[l,o]=a.useState({});a.useEffect((()=>{var t,a,r,l,d,c,u,p,A,h,f,m;if((null==n?void 0:n.length)>0&&!0===(null==e?void 0:e.ModelOpen)){let e={};var v=null==n?void 0:n.filter(((e,t)=>e.FieldName.includes("subName")||e.FieldName.includes("Link")));s(v.length/3);for(let n=0;n<(null==v?void 0:v.length);n+=3)null==(a=null==i?void 0:i.current)||a.setFieldsValue({[`Feature${n/3+1}Link`]:null==(t=v[n])?void 0:t.FieldValue}),null==(l=null==i?void 0:i.current)||l.setFieldsValue({[`Feature${n/3+1}subName1`]:null==(r=v[n+1])?void 0:r.FieldValue}),null==(c=null==i?void 0:i.current)||c.setFieldsValue({[`Feature${n/3+1}subName2`]:null==(d=v[n+2])?void 0:d.FieldValue});var g=null==n?void 0:n.filter(((e,t)=>e.FieldName.includes("Image")));for(let t=0;t<(null==g?void 0:g.length);t+=3){let n=Math.round(t/3+1);const i=[`Feature${n}Image`,`Feature${n}subImage1`,`Feature${n}subImage2`];e[i[0]]=(null==(u=g[t])?void 0:u.FieldName)===i[0]?null==(p=g[t])?void 0:p.FieldValue:null,e[i[1]]=(null==(A=g[t+1])?void 0:A.FieldName)===i[1]?null==(h=g[t+1])?void 0:h.FieldValue:null,e[i[2]]=(null==(f=g[t+2])?void 0:f.FieldName)===i[2]?null==(m=g[t+2])?void 0:m.FieldValue:null}o(e)}}),[n,e]);const d=(e,t)=>{o({...l,[e]:t})},c=e=>{var t;let n={...l},a=i.current.getFieldsValue();if(e==Math.ceil(Object.keys(l).length/3))delete n[`Feature${e}Image`],delete n[`Feature${e}subImage1`],delete n[`Feature${e}subImage2`];else if(e<Math.ceil(Object.keys(l).length/3)){for(let t=e;t<r;t++)n[`Feature${t}Image`]=n[`Feature${t+1}Image`],n[`Feature${t}subImage1`]=n[`Feature${t+1}subImage1`],n[`Feature${t}subImage2`]=n[`Feature${t+1}subImage2`],a[`Feature${t}Link`]=a[`Feature${t+1}Link`],a[`Feature${t}subName1`]=a[`Feature${t+1}subName1`],a[`Feature${t}subName2`]=a[`Feature${t+1}subName2`];delete n[`Feature${r}Image`],delete n[`Feature${r}subImage1`],delete n[`Feature${r}subImage2`],delete a[`Feature${r}Link`],delete a[`Feature${r}subName1`],delete a[`Feature${r}subName2`]}o(n),s(r-1),null==(t=null==i?void 0:i.current)||t.resetFields(),i.current.setFieldsValue(a)};return Ye.jsx("div",{children:Ye.jsxs(I,{ref:i,onFinish:async n=>{let i=[],a=Object.values(n),r=Object.keys(n);for(let e=0;e<r.length;e++)i.push({FieldName:r[e],FieldValue:a[e],FieldAddData:""});a=Object.values(l),r=Object.keys(l);for(let e=0;e<r.length;e++)i.push({FieldName:r[e],FieldValue:a[e],FieldAddData:""});await t(b_({featureList:i})),e.hasOwnProperty("closeForm")&&e.closeForm()},initialValues:"",children:[Ye.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:(()=>{var e,t,n,a,o;!(null==(e=null==i?void 0:i.current)?void 0:e.getFieldsValue())||null==(t=null==i?void 0:i.current)||t.getFieldsValue();let u=[];for(let p=1;p<=r;p++)u.push(Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",alignItems:"flex-start"},children:[Ye.jsxs("div",{style:{display:"flex",fontWeight:"bolder",gap:"1rem"},children:[Ye.jsxs("p",{className:"Feature",children:["Feature - ",p," "]}),1==p?Ye.jsx(C,{onClick:()=>s(r+1)}):Ye.jsx(de,{onClick:()=>c(p)})]}),Ye.jsxs("div",{style:{display:"flex",gap:"1rem",alignItems:"center"},children:[Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>d(`Feature${p}Image`,e),ImageLink:l[`Feature${p}Image`]?l[`Feature${p}Image`]:""}),Ye.jsx(I.Item,{name:`Feature${p}Link`,rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Feature1Link",autoComplete:"off",label:"Feature Description",fieldState:!0,fieldApi:!0,isOnChange:null!=(null==(n=null==i?void 0:i.current)?void 0:n.getFieldValue([`Feature${p}Link`])),suffix:Ye.jsx(F,{title:`Create 2x speed fast bill send e-bill via Whatsapp & SMS\n ${p}`,children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]}),Ye.jsxs("div",{style:{display:"flex",gap:"1rem",alignItems:"center"},children:[Ye.jsxs("div",{style:{display:"flex",gap:"1rem",alignItems:"center"},children:[Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>d(`Feature${p}subImage1`,e),ImageLink:l[`Feature${p}subImage1`]?l[`Feature${p}subImage1`]:""}),Ye.jsx(I.Item,{name:`Feature${p}subName1`,rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Feature1Link",autoComplete:"off",label:"Image Description",fieldState:!0,fieldApi:!0,isOnChange:null!=(null==(a=null==i?void 0:i.current)?void 0:a.getFieldValue([`Feature${p}subName1`])),suffix:Ye.jsx(F,{title:`Message Data\n ${p}`,children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]}),Ye.jsxs("div",{style:{display:"flex",gap:"1rem",alignItems:"center"},children:[Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>d(`Feature${p}subImage2`,e),ImageLink:l[`Feature${p}subImage2`]?l[`Feature${p}subImage2`]:""}),Ye.jsx(I.Item,{name:`Feature${p}subName2`,rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Feature1Link",autoComplete:"off",label:"Image Description",fieldState:!0,fieldApi:!0,isOnChange:null!=(null==(o=null==i?void 0:i.current)?void 0:o.getFieldValue([`Feature${p}subName2`])),suffix:Ye.jsx(F,{title:`Buying Data\n ${p}`,children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]})]})]}));return u})()}),Ye.jsx("div",{className:"featureButton",children:Ye.jsx(Ry,{buttonText:"SAVE",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0})})]})})},p5=()=>{const[e,t]=a.useState(!1),[n,i]=a.useState(!1),[r,s]=a.useState(null),[l,o]=a.useState(null),d=Tf(G_),c=a.useCallback((()=>{o(null),s(null)}),[]);return Ye.jsxs("div",{children:[Ye.jsx(Qy,{messageType:r,messageData:l,onComplete:c}),Ye.jsx(d5,{}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>i(!0)})," ",Ye.jsx(ce,{onClick:()=>{(null==d?void 0:d.length)>0?t(!0):(o("Please add a Feature data to open the preview"),s("warning"))}})]}),Ye.jsx(SP,{centered:!0,open:e,handleCancel:()=>t(!1),width:1e3,children:Ye.jsx("div",{className:"pointerModal",children:Ye.jsx(d5,{data:d})})}),Ye.jsx(SP,{centered:!0,open:n,handleCancel:()=>i(!1),width:1e3,children:Ye.jsx(u5,{closeForm:()=>{i(!1),o("Data Added Successfully"),s("success")},ModelOpen:n})})]})},A5=({PreData:e})=>{Tf(G_);const t=Tf(L_),n=[{FieldName:"Feature1Image",FieldValue:""},{FieldName:"Feature1Link",FieldValue:""},{FieldName:"Feature1subImage1",FieldValue:""},{FieldName:"Feature1subName1",FieldValue:""},{FieldName:"Feature1subImage2",FieldValue:""},{FieldName:"Feature1subName2",FieldValue:""}],[i,r]=a.useState((null==e?void 0:e.length)>0?e:n);a.useEffect((()=>{r((null==e?void 0:e.length)>0?e:n)}),[e]);return Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"featureMaindiv",children:(()=>{var e,n,a,r,s,l,o,d,c;let u={};null==i||i.map((e=>{u[e.FieldName]=e.FieldValue}));let p=[];for(let A=1;A<=Math.ceil((null==i?void 0:i.length)/6);A++)p.push(Ye.jsxs("div",{className:"overallfeaturediv",children:[Ye.jsxs("div",{className:"feature-demo-div1",children:[Ye.jsx("img",{className:(null==(e=u[`Feature${A}Image`])?void 0:e.length)>0?"ImageWithData":"ImageWithOutData",src:(null==(n=u[`Feature${A}Image`])?void 0:n.length)>0?u[`Feature${A}Image`]:D2}),Ye.jsx("div",{className:(null==(a=u[`Feature${A}Link`])?void 0:a.length)>0?"feature-rally-range1":"feature-demo-range1",style:{fontFamily:`${t.head}`},children:u[`Feature${A}Link`]??""})]}),Ye.jsxs("div",{className:"feature-demo-master-div2",children:[Ye.jsxs("div",{className:"feature-demo-div2",children:[Ye.jsx("div",{children:Ye.jsx("img",{className:(null==(r=u[`Feature${A}subImage1`])?void 0:r.length)>0?"SubImageWithData":"SubImageWithOutData",src:(null==(s=u[`Feature${A}subImage1`])?void 0:s.length)>0?u[`Feature${A}subImage1`]:D2})}),Ye.jsx("div",{className:(null==(l=u[`Feature${A}subName1`])?void 0:l.length)>0?"feature-real-lightgray-range":"feature-demo-lightgray-range",style:{fontFamily:`${t.para}`},children:u[`Feature${A}subName1`]??""})]}),Ye.jsxs("div",{className:"feature-demo-div3",children:[Ye.jsx("div",{children:Ye.jsx("img",{className:(null==(o=u[`Feature${A}subImage2`])?void 0:o.lenght)>0?"SubImageWithData":"SubImageWithOutData",src:(null==(d=u[`Feature${A}subImage2`])?void 0:d.length)>0?u[`Feature${A}subImage2`]:D2})}),Ye.jsx("div",{className:(null==(c=u[`Feature${A}subName2`])?void 0:c.length)>0?"feature-real-lightgray-range":"feature-demo-lightgray-range",style:{fontFamily:`${t.para}`},children:u[`Feature${A}subName2`]??""})]})]})]},A));return p})()})})},h5=Object.freeze(Object.defineProperty({__proto__:null,default:A5},Symbol.toStringTag,{value:"Module"})),f5=e=>{const t=um(),n=Tf(G_),i=a.useRef(),[r,s]=a.useState(1),[l,o]=a.useState(null),[d,c]=a.useState(null),[u,p]=a.useState({}),[A,h]=a.useState(!1),[f,m]=a.useState(!1);a.useEffect((()=>{var e,t,a,r,l,o,d,c,u,h,f,m;if((null==n?void 0:n.length)>0&&1==A){let A={};var v=null==n?void 0:n.filter((e=>e.FieldName.includes("subName")||e.FieldName.includes("Link")));s(v.length/3);for(let n=0;n<(null==v?void 0:v.length);n+=3)null==(t=null==i?void 0:i.current)||t.setFieldsValue({[`Feature${n/3+1}Link`]:null==(e=v[n])?void 0:e.FieldValue}),null==(r=null==i?void 0:i.current)||r.setFieldsValue({[`Feature${n/3+1}subName1`]:null==(a=v[n+1])?void 0:a.FieldValue}),null==(o=null==i?void 0:i.current)||o.setFieldsValue({[`Feature${n/3+1}subName2`]:null==(l=v[n+2])?void 0:l.FieldValue});var g=null==n?void 0:n.filter((e=>e.FieldName.includes("Image")));for(let e=0;e<(null==g?void 0:g.length);e+=3){let t=Math.round(e/3+1);const n=[`Feature${t}Image`,`Feature${t}subImage1`,`Feature${t}subImage2`];A[n[0]]=(null==(d=g[e])?void 0:d.FieldName)===n[0]?null==(c=g[e])?void 0:c.FieldValue:null,A[n[1]]=(null==(u=g[e+1])?void 0:u.FieldName)===n[1]?null==(h=g[e+1])?void 0:h.FieldValue:null,A[n[2]]=(null==(f=g[e+2])?void 0:f.FieldName)===n[2]?null==(m=g[e+2])?void 0:m.FieldValue:null}p(A)}}),[n,A]);const v=(e,t)=>{p({...u,[e]:t})},g=e=>{var t;let n={...u},a=i.current.getFieldsValue();if(e==Math.ceil(Object.keys(u).length/3))delete n[`Feature${e}Image`],delete n[`Feature${e}subImage1`],delete n[`Feature${e}subImage2`];else if(e<Math.ceil(Object.keys(u).length/3)){for(let t=e;t<r;t++)n[`Feature${t}Image`]=n[`Feature${t+1}Image`],n[`Feature${t}subImage1`]=n[`Feature${t+1}subImage1`],n[`Feature${t}subImage2`]=n[`Feature${t+1}subImage2`],a[`Feature${t}Link`]=a[`Feature${t+1}Link`],a[`Feature${t}subName1`]=a[`Feature${t+1}subName1`],a[`Feature${t}subName2`]=a[`Feature${t+1}subName2`];delete n[`Feature${r}Image`],delete n[`Feature${r}subImage1`],delete n[`Feature${r}subImage2`],delete a[`Feature${r}Link`],delete a[`Feature${r}subName1`],delete a[`Feature${r}subName2`]}p(n),s(r-1),null==(t=null==i?void 0:i.current)||t.resetFields(),i.current.setFieldsValue(a)},y=a.useCallback((()=>{o(null),c(null)}),[]);return Ye.jsxs("div",{className:"model1-submit",children:[Ye.jsxs("div",{children:[Ye.jsx(A5,{DataShow:!1}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>h(!0)}),Ye.jsx(ce,{onClick:()=>(async()=>{(null==n?void 0:n.length)>0?m(!0):(o("Please Add a Features data to open the Preview"),c("warning"))})()})]})]}),Ye.jsxs(j,{centered:!0,open:A,onOk:()=>h(!1),onCancel:()=>h(!1),width:1e3,children:[Ye.jsx(Qy,{messageType:d,messageData:l,onComplete:y}),Ye.jsxs(I,{ref:i,onFinish:async n=>{var a;let r=[],s=Object.values(n),l=Object.keys(n);for(let e=0;e<l.length;e++)r.push({FieldName:l[e],FieldValue:s[e]});s=Object.values(u),l=Object.keys(u);for(let e=0;e<l.length;e++)r.push({FieldName:l[e],FieldValue:s[e]});await t(b_({featureList:r})),e.hasOwnProperty("closeForm")&&e.closeForm(),h(!1),null==(a=i.current)||a.resetFields()},initialValues:"",children:[(()=>{var e,t,n,a,l;!(null==(e=null==i?void 0:i.current)?void 0:e.getFieldsValue())||null==(t=null==i?void 0:i.current)||t.getFieldsValue();let o=[];for(let d=1;d<=r;d++)o.push(Ye.jsxs("div",{children:[Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsxs("p",{className:"Feature",children:["Feature - ",d]}),1==d?Ye.jsx(C,{onClick:()=>s(r+1)}):Ye.jsx(de,{onClick:()=>g(d)})]}),Ye.jsxs("div",{className:"feature-model1-div1",children:[Ye.jsx("div",{className:"feature-model1-div1-img",children:Ye.jsx(Yy,{singleImage:!0,required:!0,updateImageUrl:e=>v(`Feature${d}Image`,e),ImageLink:u[`Feature${d}Image`]?u[`Feature${d}Image`]:""})}),Ye.jsx("div",{className:"feature-model1-div1-input",children:Ye.jsx(I.Item,{name:`Feature${d}Link`,rules:[{required:!0,message:"Please Enter Feature Description"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Feature1Link",autoComplete:"off",label:"Feature Description",fieldState:!0,fieldApi:!0,isOnChange:null!=(null==(n=null==i?void 0:i.current)?void 0:n.getFieldValue([`Feature${d}Link`])),suffix:Ye.jsx(F,{title:`Product adding and selling via QR Code Scanner with very fast\n ${d}`,children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})})]}),Ye.jsxs("div",{className:"feature-model1-div2",children:[Ye.jsxs("div",{className:"feature-model1-subdiv2",children:[Ye.jsx("div",{className:"feature-model1-subdiv2-img",children:Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>v(`Feature${d}subImage1`,e),ImageLink:u[`Feature${d}subImage1`]?u[`Feature${d}subImage1`]:"",required:!0})}),Ye.jsx("div",{className:"feature-model1-subdiv2-input",children:Ye.jsx(I.Item,{name:`Feature${d}subName1`,rules:[{required:!0,message:"Please Enter Image Description"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Feature1Link",autoComplete:"off",label:"Image Description",fieldState:!0,fieldApi:!0,isOnChange:null!=(null==(a=null==i?void 0:i.current)?void 0:a.getFieldValue([`Feature${d}subName1`])),suffix:Ye.jsx(F,{title:`Message Data${d}`,children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})})]}),Ye.jsxs("div",{className:"feature-model1-subdiv2",children:[Ye.jsx("div",{className:"feature-model1-subdiv2-img",children:Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>v(`Feature${d}subImage2`,e),ImageLink:u[`Feature${d}subImage2`]?u[`Feature${d}subImage2`]:""})}),Ye.jsx("div",{className:"feature-model1-subdiv2-input",children:Ye.jsx(I.Item,{name:`Feature${d}subName2`,rules:[{required:!0,message:"Please Enter Image Description"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Feature1Link",autoComplete:"off",label:"Image Description",fieldState:!0,fieldApi:!0,isOnChange:null!=(null==(l=null==i?void 0:i.current)?void 0:l.getFieldValue([`Feature${d}subName2`])),suffix:Ye.jsx(F,{title:`Buying Data${d}`,children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})})]})]})]},d));return o})(),Ye.jsx("div",{className:"model1-submit",children:Ye.jsx(Ry,{type:"submit",buttonText:"SAVE",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0,onClick:()=>h(!1)})})]})]}),Ye.jsx(j,{open:f,onOk:()=>m(!1),onCancel:()=>m(!1),width:1e3,children:Ye.jsx(A5,{DataShow:!0,PreData:n})})]})},m5="/assets/curvearrow-942dc9bf.png";var v5={},g5={},y5={},x5={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};e.default=t}(x5);var b5=/^\s+|\s+$/g,w5=/^[-+]0x[0-9a-f]+$/i,j5=/^0b[01]+$/i,C5=/^0o[0-7]+$/i,S5=parseInt,N5="object"==typeof d&&d&&d.Object===Object&&d,I5="object"==typeof self&&self&&self.Object===Object&&self,F5=N5||I5||Function("return this")(),B5=Object.prototype.toString,P5=Math.max,k5=Math.min,T5=function(){return F5.Date.now()};function E5(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function D5(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==B5.call(e)}(e))return NaN;if(E5(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=E5(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(b5,"");var n=j5.test(e);return n||C5.test(e)?S5(e.slice(2),n?2:8):w5.test(e)?NaN:+e}var L5=function(e,t,n){var i,a,r,s,l,o,d=0,c=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function A(t){var n=i,r=a;return i=a=void 0,d=t,s=e.apply(r,n)}function h(e){var n=e-o;return void 0===o||n>=t||n<0||u&&e-d>=r}function f(){var e=T5();if(h(e))return m(e);l=setTimeout(f,function(e){var n=t-(e-o);return u?k5(n,r-(e-d)):n}(e))}function m(e){return l=void 0,p&&i?A(e):(i=a=void 0,s)}function v(){var e=T5(),n=h(e);if(i=arguments,a=this,o=e,n){if(void 0===l)return function(e){return d=e,l=setTimeout(f,t),c?A(e):s}(o);if(u)return l=setTimeout(f,t),A(o)}return void 0===l&&(l=setTimeout(f,t)),s}return t=D5(t)||0,E5(n)&&(c=!!n.leading,r=(u="maxWait"in n)?P5(D5(n.maxWait)||0,t):r,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==l&&clearTimeout(l),d=0,i=o=a=l=void 0},v.flush=function(){return void 0===l?s:m(T5())},v},U5={};Object.defineProperty(U5,"__esModule",{value:!0}),U5.checkSpecKeys=U5.checkNavigable=U5.changeSlide=U5.canUseDOM=U5.canGoNext=void 0,U5.clamp=Q5,U5.swipeStart=U5.swipeMove=U5.swipeEnd=U5.slidesOnRight=U5.slidesOnLeft=U5.slideHandler=U5.siblingDirection=U5.safePreventDefault=U5.lazyStartIndex=U5.lazySlidesOnRight=U5.lazySlidesOnLeft=U5.lazyEndIndex=U5.keyHandler=U5.initializedState=U5.getWidth=U5.getTrackLeft=U5.getTrackCSS=U5.getTrackAnimateCSS=U5.getTotalSlides=U5.getSwipeDirection=U5.getSlideCount=U5.getRequiredLazySlides=U5.getPreClones=U5.getPostClones=U5.getOnDemandLazySlides=U5.getNavigableIndexes=U5.getHeight=U5.extractObject=void 0;var _5=function(e){return e&&e.__esModule?e:{default:e}}(a);function O5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function M5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O5(Object(n),!0).forEach((function(t){R5(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q5(e,t,n){return Math.max(t,Math.min(e,n))}var H5=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()};U5.safePreventDefault=H5;var V5=function(e){for(var t=[],n=z5(e),i=q5(e),a=n;a<i;a++)e.lazyLoadedList.indexOf(a)<0&&t.push(a);return t};U5.getOnDemandLazySlides=V5;U5.getRequiredLazySlides=function(e){for(var t=[],n=z5(e),i=q5(e),a=n;a<i;a++)t.push(a);return t};var z5=function(e){return e.currentSlide-W5(e)};U5.lazyStartIndex=z5;var q5=function(e){return e.currentSlide+Y5(e)};U5.lazyEndIndex=q5;var W5=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0};U5.lazySlidesOnLeft=W5;var Y5=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow};U5.lazySlidesOnRight=Y5;var K5=function(e){return e&&e.offsetWidth||0};U5.getWidth=K5;var G5=function(e){return e&&e.offsetHeight||0};U5.getHeight=G5;var $5=function(e){var t,n,i,a,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,i=Math.atan2(n,t),(a=Math.round(180*i/Math.PI))<0&&(a=360-Math.abs(a)),a<=45&&a>=0||a<=360&&a>=315?"left":a>=135&&a<=225?"right":!0===r?a>=35&&a<=135?"up":"down":"vertical"};U5.getSwipeDirection=$5;var X5=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};U5.canGoNext=X5;U5.extractObject=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n};U5.initializedState=function(e){var t,n=_5.default.Children.count(e.children),i=e.listRef,a=Math.ceil(K5(i)),r=e.trackRef&&e.trackRef.node,s=Math.ceil(K5(r));if(e.vertical)t=a;else{var l=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(l*=a/100),t=Math.ceil((a-l)/e.slidesToShow)}var o=i&&G5(i.querySelector('[data-index="0"]')),d=o*e.slidesToShow,c=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(c=n-1-e.initialSlide);var u=e.lazyLoadedList||[],p=V5(M5(M5({},e),{},{currentSlide:c,lazyLoadedList:u})),A={slideCount:n,slideWidth:t,listWidth:a,trackWidth:s,currentSlide:c,slideHeight:o,listHeight:d,lazyLoadedList:u=u.concat(p)};return null===e.autoplaying&&e.autoplay&&(A.autoplaying="playing"),A};U5.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,i=e.fade,a=e.infinite,r=e.index,s=e.slideCount,l=e.lazyLoad,o=e.currentSlide,d=e.centerMode,c=e.slidesToScroll,u=e.slidesToShow,p=e.useCSS,A=e.lazyLoadedList;if(t&&n)return{};var h,f,m,v=r,g={},y={},x=a?r:Q5(r,0,s-1);if(i){if(!a&&(r<0||r>=s))return{};r<0?v=r+s:r>=s&&(v=r-s),l&&A.indexOf(v)<0&&(A=A.concat(v)),g={animating:!0,currentSlide:v,lazyLoadedList:A,targetSlide:v},y={animating:!1,targetSlide:v}}else h=v,v<0?(h=v+s,a?s%c!==0&&(h=s-s%c):h=0):!X5(e)&&v>o?v=h=o:d&&v>=s?(v=a?s:s-1,h=a?0:s-1):v>=s&&(h=v-s,a?s%c!==0&&(h=0):h=s-u),!a&&v+u>=s&&(h=s-u),f=a4(M5(M5({},e),{},{slideIndex:v})),m=a4(M5(M5({},e),{},{slideIndex:h})),a||(f===m&&(v=h),f=m),l&&(A=A.concat(V5(M5(M5({},e),{},{currentSlide:v})))),p?(g={animating:!0,currentSlide:h,trackStyle:i4(M5(M5({},e),{},{left:f})),lazyLoadedList:A,targetSlide:x},y={animating:!1,currentSlide:h,trackStyle:n4(M5(M5({},e),{},{left:m})),swipeLeft:null,targetSlide:x}):g={currentSlide:h,trackStyle:n4(M5(M5({},e),{},{left:m})),lazyLoadedList:A,targetSlide:x};return{state:g,nextState:y}};U5.changeSlide=function(e,t){var n,i,a,r,s=e.slidesToScroll,l=e.slidesToShow,o=e.slideCount,d=e.currentSlide,c=e.targetSlide,u=e.lazyLoad,p=e.infinite;if(n=o%s!==0?0:(o-d)%s,"previous"===t.message)r=d-(a=0===n?s:l-n),u&&!p&&(r=-1===(i=d-a)?o-1:i),p||(r=c-s);else if("next"===t.message)r=d+(a=0===n?s:n),u&&!p&&(r=(d+s)%o+n),p||(r=c+s);else if("dots"===t.message)r=t.index*t.slidesToScroll;else if("children"===t.message){if(r=t.index,p){var A=o4(M5(M5({},e),{},{targetSlide:r}));r>t.currentSlide&&"left"===A?r-=o:r<t.currentSlide&&"right"===A&&(r+=o)}}else"index"===t.message&&(r=Number(t.index));return r};U5.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""};U5.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&H5(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}};U5.swipeMove=function(e,t){var n=t.scrolling,i=t.animating,a=t.vertical,r=t.swipeToSlide,s=t.verticalSwiping,l=t.rtl,o=t.currentSlide,d=t.edgeFriction,c=t.edgeDragged,u=t.onEdge,p=t.swiped,A=t.swiping,h=t.slideCount,f=t.slidesToScroll,m=t.infinite,v=t.touchObject,g=t.swipeEvent,y=t.listHeight,x=t.listWidth;if(!n){if(i)return H5(e);a&&r&&s&&H5(e);var b,w={},j=a4(t);v.curX=e.touches?e.touches[0].pageX:e.clientX,v.curY=e.touches?e.touches[0].pageY:e.clientY,v.swipeLength=Math.round(Math.sqrt(Math.pow(v.curX-v.startX,2)));var C=Math.round(Math.sqrt(Math.pow(v.curY-v.startY,2)));if(!s&&!A&&C>10)return{scrolling:!0};s&&(v.swipeLength=C);var S=(l?-1:1)*(v.curX>v.startX?1:-1);s&&(S=v.curY>v.startY?1:-1);var N=Math.ceil(h/f),I=$5(t.touchObject,s),F=v.swipeLength;return m||(0===o&&("right"===I||"down"===I)||o+1>=N&&("left"===I||"up"===I)||!X5(t)&&("left"===I||"up"===I))&&(F=v.swipeLength*d,!1===c&&u&&(u(I),w.edgeDragged=!0)),!p&&g&&(g(I),w.swiped=!0),b=a?j+F*(y/x)*S:l?j-F*S:j+F*S,s&&(b=j+F*S),w=M5(M5({},w),{},{touchObject:v,swipeLeft:b,trackStyle:n4(M5(M5({},t),{},{left:b}))}),Math.abs(v.curX-v.startX)<.8*Math.abs(v.curY-v.startY)?w:(v.swipeLength>10&&(w.swiping=!0,H5(e)),w)}};U5.swipeEnd=function(e,t){var n=t.dragging,i=t.swipe,a=t.touchObject,r=t.listWidth,s=t.touchThreshold,l=t.verticalSwiping,o=t.listHeight,d=t.swipeToSlide,c=t.scrolling,u=t.onSwipe,p=t.targetSlide,A=t.currentSlide,h=t.infinite;if(!n)return i&&H5(e),{};var f=l?o/s:r/s,m=$5(a,l),v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(c)return v;if(!a.swipeLength)return v;if(a.swipeLength>f){var g,y;H5(e),u&&u(m);var x=h?A:p;switch(m){case"left":case"up":y=x+e4(t),g=d?Z5(t,y):y,v.currentDirection=0;break;case"right":case"down":y=x-e4(t),g=d?Z5(t,y):y,v.currentDirection=1;break;default:g=x}v.triggerSlideHandler=g}else{var b=a4(t);v.trackStyle=i4(M5(M5({},t),{},{left:b}))}return v};var J5=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,i=e.infinite?-1*e.slidesToShow:0,a=[];n<t;)a.push(n),n=i+e.slidesToScroll,i+=Math.min(e.slidesToScroll,e.slidesToShow);return a};U5.getNavigableIndexes=J5;var Z5=function(e,t){var n=J5(e),i=0;if(t>n[n.length-1])t=n[n.length-1];else for(var a in n){if(t<n[a]){t=i;break}i=n[a]}return t};U5.checkNavigable=Z5;var e4=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,i=e.listRef,a=i.querySelectorAll&&i.querySelectorAll(".slick-slide")||[];if(Array.from(a).every((function(i){if(e.vertical){if(i.offsetTop+G5(i)/2>-1*e.swipeLeft)return n=i,!1}else if(i.offsetLeft-t+K5(i)/2>-1*e.swipeLeft)return n=i,!1;return!0})),!n)return 0;var r=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-r)||1}return e.slidesToScroll};U5.getSlideCount=e4;var t4=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:void 0};U5.checkSpecKeys=t4;var n4=function(e){var t,n;t4(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var i=e.slideCount+2*e.slidesToShow;e.vertical?n=i*e.slideHeight:t=l4(e)*e.slideWidth;var a={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var r=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";a=M5(M5({},a),{},{WebkitTransform:r,transform:s,msTransform:l})}else e.vertical?a.top=e.left:a.left=e.left;return e.fade&&(a={opacity:1}),t&&(a.width=t),n&&(a.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?a.marginTop=e.left+"px":a.marginLeft=e.left+"px"),a};U5.getTrackCSS=n4;var i4=function(e){t4(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=n4(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t};U5.getTrackAnimateCSS=i4;var a4=function(e){if(e.unslick)return 0;t4(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,i=e.slideIndex,a=e.trackRef,r=e.infinite,s=e.centerMode,l=e.slideCount,o=e.slidesToShow,d=e.slidesToScroll,c=e.slideWidth,u=e.listWidth,p=e.variableWidth,A=e.slideHeight,h=e.fade,f=e.vertical;if(h||1===e.slideCount)return 0;var m=0;if(r?(m=-r4(e),l%d!==0&&i+d>l&&(m=-(i>l?o-(i-l):l%d)),s&&(m+=parseInt(o/2))):(l%d!==0&&i+d>l&&(m=o-l%d),s&&(m=parseInt(o/2))),t=f?i*A*-1+m*A:i*c*-1+m*c,!0===p){var v,g=a&&a.node;if(v=i+r4(e),t=(n=g&&g.childNodes[v])?-1*n.offsetLeft:0,!0===s){v=r?i+r4(e):i,n=g&&g.children[v],t=0;for(var y=0;y<v;y++)t-=g&&g.children[y]&&g.children[y].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(u-n.offsetWidth)/2}}return t};U5.getTrackLeft=a4;var r4=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)};U5.getPreClones=r4;var s4=function(e){return e.unslick||!e.infinite?0:e.slideCount};U5.getPostClones=s4;var l4=function(e){return 1===e.slideCount?1:r4(e)+e.slideCount+s4(e)};U5.getTotalSlides=l4;var o4=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+d4(e)?"left":"right":e.targetSlide<e.currentSlide-c4(e)?"right":"left"};U5.siblingDirection=o4;var d4=function(e){var t=e.slidesToShow,n=e.centerMode,i=e.rtl,a=e.centerPadding;if(n){var r=(t-1)/2+1;return parseInt(a)>0&&(r+=1),i&&t%2==0&&(r+=1),r}return i?0:t-1};U5.slidesOnRight=d4;var c4=function(e){var t=e.slidesToShow,n=e.centerMode,i=e.rtl,a=e.centerPadding;if(n){var r=(t-1)/2+1;return parseInt(a)>0&&(r+=1),i||t%2!=0||(r+=1),r}return i?t-1:0};U5.slidesOnLeft=c4;U5.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)};var u4={};function p4(e){return(p4="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)}Object.defineProperty(u4,"__esModule",{value:!0}),u4.Track=void 0;var A4=m4(a),h4=m4(pe),f4=U5;function m4(e){return e&&e.__esModule?e:{default:e}}function v4(){return v4=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},v4.apply(this,arguments)}function g4(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function y4(e,t){return(y4=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x4(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Ou){return!1}}();return function(){var n,i=w4(e);if(t){var a=w4(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===p4(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b4(e)}(this,n)}}function b4(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w4(e){return(w4=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function C4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j4(Object(n),!0).forEach((function(t){S4(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j4(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N4=function(e){var t,n,i,a,r;return i=(r=e.rtl?e.slideCount-1-e.index:e.index)<0||r>=e.slideCount,e.centerMode?(a=Math.floor(e.slidesToShow/2),n=(r-e.currentSlide)%e.slideCount===0,r>e.currentSlide-a-1&&r<=e.currentSlide+a&&(t=!0)):t=e.currentSlide<=r&&r<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":i,"slick-current":r===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},I4=function(e,t){return e.key||t},F4=function(e){var t,n=[],i=[],a=[],r=A4.default.Children.count(e.children),s=(0,f4.lazyStartIndex)(e),l=(0,f4.lazyEndIndex)(e);return A4.default.Children.forEach(e.children,(function(o,d){var c,u={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};c=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?o:A4.default.createElement("div",null);var p=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(C4(C4({},e),{},{index:d})),A=c.props.className||"",h=N4(C4(C4({},e),{},{index:d}));if(n.push(A4.default.cloneElement(c,{key:"original"+I4(c,d),"data-index":d,className:(0,h4.default)(h,A),tabIndex:"-1","aria-hidden":!h["slick-active"],style:C4(C4({outline:"none"},c.props.style||{}),p),onClick:function(t){c.props&&c.props.onClick&&c.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(u)}})),e.infinite&&!1===e.fade){var f=r-d;f<=(0,f4.getPreClones)(e)&&r!==e.slidesToShow&&((t=-f)>=s&&(c=o),h=N4(C4(C4({},e),{},{index:t})),i.push(A4.default.cloneElement(c,{key:"precloned"+I4(c,t),"data-index":t,tabIndex:"-1",className:(0,h4.default)(h,A),"aria-hidden":!h["slick-active"],style:C4(C4({},c.props.style||{}),p),onClick:function(t){c.props&&c.props.onClick&&c.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(u)}}))),r!==e.slidesToShow&&((t=r+d)<l&&(c=o),h=N4(C4(C4({},e),{},{index:t})),a.push(A4.default.cloneElement(c,{key:"postcloned"+I4(c,t),"data-index":t,tabIndex:"-1",className:(0,h4.default)(h,A),"aria-hidden":!h["slick-active"],style:C4(C4({},c.props.style||{}),p),onClick:function(t){c.props&&c.props.onClick&&c.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(u)}})))}})),e.rtl?i.concat(n,a).reverse():i.concat(n,a)},B4=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y4(e,t)}(a,A4["default"].PureComponent);var e,t,n,i=x4(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S4(b4(e=i.call.apply(i,[this].concat(n))),"node",null),S4(b4(e),"handleRef",(function(t){e.node=t})),e}return e=a,(t=[{key:"render",value:function(){var e=F4(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return A4.default.createElement("div",v4({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}])&&g4(e.prototype,t),n&&g4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();u4.Track=B4;var P4={};function k4(e){return(k4="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)}Object.defineProperty(P4,"__esModule",{value:!0}),P4.Dots=void 0;var T4=L4(a),E4=L4(pe),D4=U5;function L4(e){return e&&e.__esModule?e:{default:e}}function U4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O4(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function M4(e,t){return(M4=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R4(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Ou){return!1}}();return function(){var n,i=Q4(e);if(t){var a=Q4(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===k4(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Q4(e){return(Q4=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var H4=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M4(e,t)}(a,T4["default"].PureComponent);var e,t,n,i=R4(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,t=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,i=t.onMouseOver,a=t.onMouseLeave,r=t.infinite,s=t.slidesToScroll,l=t.slidesToShow,o=t.slideCount,d=t.currentSlide,c=(e={slideCount:o,slidesToScroll:s,slidesToShow:l,infinite:r}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,u={onMouseEnter:n,onMouseOver:i,onMouseLeave:a},p=[],A=0;A<c;A++){var h=(A+1)*s-1,f=r?h:(0,D4.clamp)(h,0,o-1),m=f-(s-1),v=r?m:(0,D4.clamp)(m,0,o-1),g=(0,E4.default)({"slick-active":r?d>=v&&d<=f:d===v}),y={message:"dots",index:A,slidesToScroll:s,currentSlide:d},x=this.clickHandler.bind(this,y);p=p.concat(T4.default.createElement("li",{key:A,className:g},T4.default.cloneElement(this.props.customPaging(A),{onClick:x})))}return T4.default.cloneElement(this.props.appendDots(p),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U4(Object(n),!0).forEach((function(t){_4(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U4(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:this.props.dotsClass},u))}}],t&&O4(e.prototype,t),n&&O4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();P4.Dots=H4;var V4={};function z4(e){return(z4="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)}Object.defineProperty(V4,"__esModule",{value:!0}),V4.PrevArrow=V4.NextArrow=void 0;var q4=K4(a),W4=K4(pe),Y4=U5;function K4(e){return e&&e.__esModule?e:{default:e}}function G4(){return G4=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},G4.apply(this,arguments)}function $4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function X4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$4(Object(n),!0).forEach((function(t){J4(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$4(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e3(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t3(e,t,n){return t&&e3(e.prototype,t),n&&e3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function n3(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i3(e,t)}function i3(e,t){return(i3=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a3(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Ou){return!1}}();return function(){var n,i=r3(e);if(t){var a=r3(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===z4(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function r3(e){return(r3=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s3=function(){n3(t,q4["default"].PureComponent);var e=a3(t);function t(){return Z4(this,t),e.apply(this,arguments)}return t3(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,W4.default)(e),style:{display:"block"},onClick:t},i={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?q4.default.cloneElement(this.props.prevArrow,X4(X4({},n),i)):q4.default.createElement("button",G4({key:"0",type:"button"},n)," ","Previous")}}]),t}();V4.PrevArrow=s3;var l3=function(){n3(t,q4["default"].PureComponent);var e=a3(t);function t(){return Z4(this,t),e.apply(this,arguments)}return t3(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,Y4.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,W4.default)(e),style:{display:"block"},onClick:t},i={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?q4.default.cloneElement(this.props.nextArrow,X4(X4({},n),i)):q4.default.createElement("button",G4({key:"1",type:"button"},n)," ","Next")}}]),t}();V4.NextArrow=l3;const o3=o(Ae);Object.defineProperty(y5,"__esModule",{value:!0}),y5.InnerSlider=void 0;var d3=g3(a),c3=g3(x5),u3=g3(L5),p3=g3(pe),A3=U5,h3=u4,f3=P4,m3=V4,v3=g3(o3);function g3(e){return e&&e.__esModule?e:{default:e}}function y3(e){return(y3="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)}function x3(){return x3=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},x3.apply(this,arguments)}function b3(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n,i,a={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function w3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function j3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w3(Object(n),!0).forEach((function(t){B3(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w3(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C3(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function S3(e,t){return(S3=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N3(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Ou){return!1}}();return function(){var n,i=F3(e);if(t){var a=F3(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===y3(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return I3(e)}(this,n)}}function I3(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F3(e){return(F3=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P3=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S3(e,t)}(a,d3["default"].Component);var e,t,n,i=N3(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),B3(I3(t=i.call(this,e)),"listRefHandler",(function(e){return t.list=e})),B3(I3(t),"trackRefHandler",(function(e){return t.track=e})),B3(I3(t),"adaptHeight",(function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,A3.getHeight)(e)+"px"}})),B3(I3(t),"componentDidMount",(function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,A3.getOnDemandLazySlides)(j3(j3({},t.props),t.state));e.length>0&&(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var n=j3({listRef:t.list,trackRef:t.track},t.props);t.updateState(n,!0,(function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")})),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new v3.default((function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout((function(){return t.onWindowResized()}),t.props.speed))):t.onWindowResized()})),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)})),B3(I3(t),"componentWillUnmount",(function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach((function(e){return clearTimeout(e)})),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()})),B3(I3(t),"componentDidUpdate",(function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var n=(0,A3.getOnDemandLazySlides)(j3(j3({},t.props),t.state));n.length>0&&(t.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(n)}})),t.props.onLazyLoad&&t.props.onLazyLoad(n))}t.adaptHeight();var i=j3(j3({listRef:t.list,trackRef:t.track},t.props),t.state),a=t.didPropsChange(e);a&&t.updateState(i,a,(function(){t.state.currentSlide>=d3.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:d3.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")}))})),B3(I3(t),"onWindowResized",(function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,u3.default)((function(){return t.resizeWindow(e)}),50),t.debouncedResize()})),B3(I3(t),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(t.track&&t.track.node)){var n=j3(j3({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(n,e,(function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")})),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}})),B3(I3(t),"updateState",(function(e,n,i){var a=(0,A3.initializedState)(e);e=j3(j3(j3({},e),a),{},{slideIndex:a.currentSlide});var r=(0,A3.getTrackLeft)(e);e=j3(j3({},e),{},{left:r});var s=(0,A3.getTrackCSS)(e);(n||d3.default.Children.count(t.props.children)!==d3.default.Children.count(e.children))&&(a.trackStyle=s),t.setState(a,i)})),B3(I3(t),"ssrInit",(function(){if(t.props.variableWidth){var e=0,n=0,i=[],a=(0,A3.getPreClones)(j3(j3(j3({},t.props),t.state),{},{slideCount:t.props.children.length})),r=(0,A3.getPostClones)(j3(j3(j3({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach((function(t){i.push(t.props.style.width),e+=t.props.style.width}));for(var s=0;s<a;s++)n+=i[i.length-1-s],e+=i[i.length-1-s];for(var l=0;l<r;l++)e+=i[l];for(var o=0;o<t.state.currentSlide;o++)n+=i[o];var d={width:e+"px",left:-n+"px"};if(t.props.centerMode){var c="".concat(i[t.state.currentSlide],"px");d.left="calc(".concat(d.left," + (100% - ").concat(c,") / 2 ) ")}return{trackStyle:d}}var u=d3.default.Children.count(t.props.children),p=j3(j3(j3({},t.props),t.state),{},{slideCount:u}),A=(0,A3.getPreClones)(p)+(0,A3.getPostClones)(p)+u,h=100/t.props.slidesToShow*A,f=100/A,m=-f*((0,A3.getPreClones)(p)+t.state.currentSlide)*h/100;return t.props.centerMode&&(m+=(100-f*h/100)/2),{slideWidth:f+"%",trackStyle:{width:h+"%",left:m+"%"}}})),B3(I3(t),"checkImagesLoad",(function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],n=e.length,i=0;Array.prototype.forEach.call(e,(function(e){var a=function(){return++i&&i>=n&&t.onWindowResized()};if(e.onclick){var r=e.onclick;e.onclick=function(){r(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=a,e.onerror=function(){a(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))}))})),B3(I3(t),"progressiveLazyLoad",(function(){for(var e=[],n=j3(j3({},t.props),t.state),i=t.state.currentSlide;i<t.state.slideCount+(0,A3.getPostClones)(n);i++)if(t.state.lazyLoadedList.indexOf(i)<0){e.push(i);break}for(var a=t.state.currentSlide-1;a>=-(0,A3.getPreClones)(n);a--)if(t.state.lazyLoadedList.indexOf(a)<0){e.push(a);break}e.length>0?(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)})),B3(I3(t),"slideHandler",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.props,a=i.asNavFor,r=i.beforeChange,s=i.onLazyLoad,l=i.speed,o=i.afterChange,d=t.state.currentSlide,c=(0,A3.slideHandler)(j3(j3(j3({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!n})),u=c.state,p=c.nextState;if(u){r&&r(d,u.currentSlide);var A=u.lazyLoadedList.filter((function(e){return t.state.lazyLoadedList.indexOf(e)<0}));s&&A.length>0&&s(A),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),o&&o(d),delete t.animationEndCallback),t.setState(u,(function(){a&&t.asNavForIndex!==e&&(t.asNavForIndex=e,a.innerSlider.slideHandler(e)),p&&(t.animationEndCallback=setTimeout((function(){var e=p.animating,n=b3(p,["animating"]);t.setState(n,(function(){t.callbackTimers.push(setTimeout((function(){return t.setState({animating:e})}),10)),o&&o(u.currentSlide),delete t.animationEndCallback}))}),l))}))}})),B3(I3(t),"changeSlide",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=j3(j3({},t.props),t.state),a=(0,A3.changeSlide)(i,e);if((0===a||a)&&(!0===n?t.slideHandler(a,n):t.slideHandler(a),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var r=t.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}})),B3(I3(t),"clickHandler",(function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0})),B3(I3(t),"keyHandler",(function(e){var n=(0,A3.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==n&&t.changeSlide({message:n})})),B3(I3(t),"selectHandler",(function(e){t.changeSlide(e)})),B3(I3(t),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),B3(I3(t),"enableBodyScroll",(function(){window.ontouchmove=null})),B3(I3(t),"swipeStart",(function(e){t.props.verticalSwiping&&t.disableBodyScroll();var n=(0,A3.swipeStart)(e,t.props.swipe,t.props.draggable);""!==n&&t.setState(n)})),B3(I3(t),"swipeMove",(function(e){var n=(0,A3.swipeMove)(e,j3(j3(j3({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));n&&(n.swiping&&(t.clickable=!1),t.setState(n))})),B3(I3(t),"swipeEnd",(function(e){var n=(0,A3.swipeEnd)(e,j3(j3(j3({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(n){var i=n.triggerSlideHandler;delete n.triggerSlideHandler,t.setState(n),void 0!==i&&(t.slideHandler(i),t.props.verticalSwiping&&t.enableBodyScroll())}})),B3(I3(t),"touchEnd",(function(e){t.swipeEnd(e),t.clickable=!0})),B3(I3(t),"slickPrev",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"previous"})}),0))})),B3(I3(t),"slickNext",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"next"})}),0))})),B3(I3(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},n)}),0))})),B3(I3(t),"play",(function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,A3.canGoNext)(j3(j3({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)})),B3(I3(t),"autoPlay",(function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var n=t.state.autoplaying;if("update"===e){if("hovered"===n||"focused"===n||"paused"===n)return}else if("leave"===e){if("paused"===n||"focused"===n)return}else if("blur"===e&&("paused"===n||"hovered"===n))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})})),B3(I3(t),"pause",(function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var n=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==n&&"playing"!==n||t.setState({autoplaying:"focused"}):"playing"===n&&t.setState({autoplaying:"hovered"})})),B3(I3(t),"onDotsOver",(function(){return t.props.autoplay&&t.pause("hovered")})),B3(I3(t),"onDotsLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),B3(I3(t),"onTrackOver",(function(){return t.props.autoplay&&t.pause("hovered")})),B3(I3(t),"onTrackLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),B3(I3(t),"onSlideFocus",(function(){return t.props.autoplay&&t.pause("focused")})),B3(I3(t),"onSlideBlur",(function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")})),B3(I3(t),"render",(function(){var e,n,i,a=(0,p3.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),r=j3(j3({},t.props),t.state),s=(0,A3.extractObject)(r,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),l=t.props.pauseOnHover;if(s=j3(j3({},s),{},{onMouseEnter:l?t.onTrackOver:null,onMouseLeave:l?t.onTrackLeave:null,onMouseOver:l?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var o=(0,A3.extractObject)(r,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),d=t.props.pauseOnDotsHover;o=j3(j3({},o),{},{clickHandler:t.changeSlide,onMouseEnter:d?t.onDotsLeave:null,onMouseOver:d?t.onDotsOver:null,onMouseLeave:d?t.onDotsLeave:null}),e=d3.default.createElement(f3.Dots,o)}var c=(0,A3.extractObject)(r,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);c.clickHandler=t.changeSlide,t.props.arrows&&(n=d3.default.createElement(m3.PrevArrow,c),i=d3.default.createElement(m3.NextArrow,c));var u=null;t.props.vertical&&(u={height:t.state.listHeight});var p=null;!1===t.props.vertical?!0===t.props.centerMode&&(p={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(p={padding:t.props.centerPadding+" 0px"});var A=j3(j3({},u),p),h=t.props.touchMove,f={className:"slick-list",style:A,onClick:t.clickHandler,onMouseDown:h?t.swipeStart:null,onMouseMove:t.state.dragging&&h?t.swipeMove:null,onMouseUp:h?t.swipeEnd:null,onMouseLeave:t.state.dragging&&h?t.swipeEnd:null,onTouchStart:h?t.swipeStart:null,onTouchMove:t.state.dragging&&h?t.swipeMove:null,onTouchEnd:h?t.touchEnd:null,onTouchCancel:t.state.dragging&&h?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},m={className:a,dir:"ltr",style:t.props.style};return t.props.unslick&&(f={className:"slick-list"},m={className:a}),d3.default.createElement("div",m,t.props.unslick?"":n,d3.default.createElement("div",x3({ref:t.listRefHandler},f),d3.default.createElement(h3.Track,x3({ref:t.trackRefHandler},s),t.props.children)),t.props.unslick?"":i,t.props.unslick?"":e)})),t.list=null,t.track=null,t.state=j3(j3({},c3.default),{},{currentSlide:t.props.initialSlide,slideCount:d3.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var n=t.ssrInit();return t.state=j3(j3({},t.state),n),t}return e=a,(t=[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,i=Object.keys(this.props);n<i.length;n++){var a=i[n];if(!e.hasOwnProperty(a)){t=!0;break}if("object"!==y3(e[a])&&"function"!=typeof e[a]&&e[a]!==this.props[a]){t=!0;break}}return t||d3.default.Children.count(this.props.children)!==d3.default.Children.count(e.children)}}])&&C3(e.prototype,t),n&&C3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();y5.InnerSlider=P3;var k3,T3,E3,D3,L3,U3,_3,O3,M3,R3,Q3={};function H3(){if(D3)return E3;return D3=1,E3={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,i=e.length;n<i&&!1!==t(e[n],n);n++);}},E3}function V3(){if(U3)return L3;U3=1;var e=function(){if(T3)return k3;function e(e){this.options=e,!e.deferSetup&&this.setup()}return T3=1,e.prototype={constructor:e,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},k3=e}(),t=H3().each;function n(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}return n.prototype={constuctor:n,addHandler:function(t){var n=new e(t);this.handlers.push(n),this.matches()&&n.on()},removeHandler:function(e){var n=this.handlers;t(n,(function(t,i){if(t.equals(e))return t.destroy(),!n.splice(i,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";t(this.handlers,(function(t){t[e]()}))}},L3=n}function z3(){if(R3)return M3;R3=1;var e=function(){if(O3)return _3;O3=1;var e=V3(),t=H3(),n=t.each,i=t.isFunction,a=t.isArray;function r(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return r.prototype={constructor:r,register:function(t,r,s){var l=this.queries,o=s&&this.browserIsIncapable;return l[t]||(l[t]=new e(t,o)),i(r)&&(r={match:r}),a(r)||(r=[r]),n(r,(function(e){i(e)&&(e={match:e}),l[t].addHandler(e)})),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},_3=r}();return M3=new e}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(e){return e&&e.__esModule?e:{default:e}}(a);var n={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return t.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return t.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0};e.default=n}(Q3),function(e){function t(e){return(t="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)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(a),i=y5,r=o(he),s=o(Q3),l=U5;function o(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},d.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Ou){return!1}}();return function(){var i,a=m(e);if(n){var r=m(this).constructor;i=Reflect.construct(a,arguments,r)}else i=a.apply(this,arguments);return function(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}(this,i)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,l.canUseDOM)()&&z3(),y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(m,e);var t,a,o,c=h(m);function m(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),v(f(t=c.call(this,e)),"innerSliderRefHandler",(function(e){return t.innerSlider=e})),v(f(t),"slickPrev",(function(){return t.innerSlider.slickPrev()})),v(f(t),"slickNext",(function(){return t.innerSlider.slickNext()})),v(f(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,n)})),v(f(t),"slickPause",(function(){return t.innerSlider.pause("paused")})),v(f(t),"slickPlay",(function(){return t.innerSlider.autoPlay("play")})),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return t=m,a=[{key:"media",value:function(e,t){g.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,i){var a;a=0===i?(0,r.default)({minWidth:0,maxWidth:n}):(0,r.default)({minWidth:t[i-1]+1,maxWidth:n}),(0,l.canUseDOM)()&&e.media(a,(function(){e.setState({breakpoint:n})}))}));var n=(0,r.default)({minWidth:t.slice(-1)[0]});(0,l.canUseDOM)()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){g.unregister(e.query,e.handler)}))}},{key:"render",value:function(){var e,t,a=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===a.state.breakpoint})))[0].settings?"unslick":u(u(u({},s.default),this.props),t[0].settings):u(u({},s.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var r=n.default.Children.toArray(this.props.children);r=r.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(e.variableWidth=!1);for(var l=[],o=null,c=0;c<r.length;c+=e.rows*e.slidesPerRow){for(var p=[],A=c;A<c+e.rows*e.slidesPerRow;A+=e.slidesPerRow){for(var h=[],f=A;f<A+e.slidesPerRow&&(e.variableWidth&&r[f].props.style&&(o=r[f].props.style.width),!(f>=r.length));f+=1)h.push(n.default.cloneElement(r[f],{key:100*c+10*A+f,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));p.push(n.default.createElement("div",{key:10*c+A},h))}e.variableWidth?l.push(n.default.createElement("div",{key:c,style:{width:o}},p)):l.push(n.default.createElement("div",{key:c},p))}if("unslick"===e){var m="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:m},r)}return l.length<=e.slidesToShow&&(e.unslick=!0),n.default.createElement(i.InnerSlider,d({style:this.props.style,ref:this.innerSliderRefHandler},e),l)}}],a&&p(t.prototype,a),o&&p(t,o),Object.defineProperty(t,"prototype",{writable:!1}),m}(n.default.Component);e.default=y}(g5),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(e){return e&&e.__esModule?e:{default:e}}(g5);var n=t.default;e.default=n}(v5);const q3=c(v5),W3={dots:!0,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1},Y3={textColor:"#000",fontSize:"13px"},K3=[{AppId:"",Status:"skeleton",PricingName:"",Price:"",PricingId:"",DisplayPrice:"",NetPrice:"000",PriceTag:"",NoOfDays:"",PriceTagName:"",FeatureDetails:[{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""}]},{AppId:"",Status:"skeleton",PricingName:"",Price:"",PricingId:"",DisplayPrice:"",NetPrice:"000",PriceTag:"",NoOfDays:"",PriceTagName:"",FeatureDetails:[{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""}]},{AppId:"",Status:"skeleton",PricingName:"",Price:"",PricingId:"",DisplayPrice:"",NetPrice:"000",PriceTag:"",NoOfDays:"",PriceTagName:"",FeatureDetails:[{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""}]}],G3="/home/",$3=({appPurchases:e,newplan:t,...n})=>{var i,r,s,l;const o=null==n?void 0:n.data,d=null==n?void 0:n.AdminId,c=Tf(q_),u=Tf(U_),p=Tf(W_),A=Tf(q_),h=Tf(D_),f=Tf(L_),m=Tf(X_),[v,g]=a.useState(h?h.darkColor:null),[y,x]=a.useState(f?f.head:null),[b,w]=a.useState(f?f.para:null),[j,C]=a.useState("Y"),[S,N]=a.useState(null),[I,F]=a.useState(null),[B,P]=a.useState([]),[T,E]=a.useState(null),[D,L]=a.useState(null),[U,_]=a.useState(null!=A?A.AppId:m),O=Qt(),M=um(),R=n.hasOwnProperty("apiCall")?K3:Tf((e=>{var t;return(null==(t=null==e?void 0:e.pricingType)?void 0:t.PricingType)||[]}));let Q=(null==(r=null==(i=null==R?void 0:R.filter((e=>{var t;return"FREE"!==(null==(t=e.PricingName)?void 0:t.toUpperCase())})))?void 0:i.filter((e=>"Extend Pack"==(null==e?void 0:e.Status))))?void 0:r.length)>0;const H=null==R?void 0:R.filter((e=>"Extend Pack"===(null==e?void 0:e.Status))),V=null==B?void 0:B.filter((e=>(null==e?void 0:e.AppName)===D)),z=window.location.href,q=iA("UserType"),W="Super Admin"==q||"Super Admin User"==q?(null==(s=null==e?void 0:e[0])?void 0:s.UserId)||t:"Employee"==q?d:iA("UserId"),Y=Tf(Aw),[K,G]=a.useState(),[$,X]=a.useState(0);a.useEffect((()=>{let e=null==V?void 0:V.filter((e=>"Free"!=e.PricingName)),t=null==e?void 0:e.reduce(((e,t)=>e+t.RemainingDays),0);X(t)}),[V]),a.useEffect((()=>{let e=null==u?void 0:u.filter((e=>(null==e?void 0:e.AppId)===(null==c?void 0:c.AppId)));L((null==e?void 0:e.length)>0?e[0].AppName:p.length>0?p:null)}),[c]),a.useEffect((()=>{var e;null===A&&async function(e){var t,n;let i=await M(n_()).unwrap();1===(null==(t=null==i?void 0:i.data)?void 0:t.statusCode)&&await ee(null==(n=null==i?void 0:i.data)?void 0:n.data,e)}(null==(e=new URL(z).pathname.split("/"))?void 0:e.filter(Boolean).pop()),Z(),J(),re()}),[U,W]);const J=async()=>{var e,t,n;let i=await M(sw({UserId:W,AppId:U})).unwrap();1==(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&E(null==(n=null==(t=null==i?void 0:i.data)?void 0:t.data)?void 0:n[0])},Z=async()=>{var e;let t=await M(lw({UserId:W,AppId:U})).unwrap();P(null==(e=null==t?void 0:t.data)?void 0:e.data)};a.useEffect((()=>{_(null!=A?A.AppId:m)}),[A]);const ee=async(e,t)=>{var n,i;const a=null==e?void 0:e.filter((e=>{var n;return(null==(n=null==e?void 0:e.AppName)?void 0:n.toUpperCase())===(null==t?void 0:t.toUpperCase())}));a.length>0&&(M(S_(null==(n=a[0])?void 0:n.AppId)),_(null==(i=a[0])?void 0:i.AppId))},te=a.useCallback((()=>{F(null),N(null)}),[]);a.useEffect((()=>{M(W?Wb({toggleValue:j,AppId:U,UserId:W}):Kb({toggleValue:j,AppId:U})),M(rw({toggleValue:j,AppId:U})).unwrap()}),[j,U,W,M]);const ne=()=>{O(`${G3}landing-page/home`),window.location.reload()},ie=()=>{O(`${G3}signin`),window.location.reload()},ae=a.useCallback((async(t,n)=>{var i,a,r,s,l;(e=>{const t=iA("UserId"),n=iA("AppId"),i=JSON.parse(localStorage.getItem("visitLogFormat")||"null"),a={VisitTime:(new Date).toISOString(),Location:window.location.pathname};let r;if(i){const n=Array.isArray(i.LocationVistDtl)?i.LocationVistDtl:[];r={...i,PricingId:(null==e?void 0:e.PricingId)||i.PricingId||null,LocationVistDtl:[...n,a],CreatedBy:t}}else r={UserId:t,AppId:n,CreatedBy:t,PricingId:(null==e?void 0:e.PricingId)||null,LocationVistDtl:[a]};localStorage.setItem("visitLogFormat",JSON.stringify(r))})(t);let o=(e=>{const t=new Set,n=[];for(const i of e.LocationVistDtl){const e=i.Location.toLowerCase();t.has(e)||(t.add(e),n.push(i))}return{...e,LocationVistDtl:n}})(JSON.parse(localStorage.getItem("visitLogFormat")||"null"));await M(lT(o)),localStorage.removeItem("visitLogFormat"),nA("AppId",t.AppId),nA("PricingId",t.PricingId);const d=new Date,c=Se(d).format("YYYY-MM-DD HH:mm:ss"),u=Se(d).format("YYYY-MM-DD HH:mm:ss"),p=Se(d).add(t.NoOfDays,"days").format("YYYY-MM-DD HH:mm:ss");var A=new Date(p);A.setDate(A.getDate()-1);const h=A.toISOString().slice(0,19).replace("T"," ");W?Y?"Newplan"==(null==(i=null==e?void 0:e[0])?void 0:i.Sadmin)?(await M(uw(!1)),await M(pw(t))):"Extend Pack"!=(null==t?void 0:t.Status)&&"Free"!=(null==(a=null==e?void 0:e[0])?void 0:a.PricingName)?(O(`${G3}invoice-detail`,{state:{pricingData:t,PackName:null==t?void 0:t.Status,purchasedAmt:T,differenceDays:$,AppExpDate:V,locationpathname:null==(r=window.location)?void 0:r.pathname,Exist:K,SAdmin:Y,UserId:W,lastappPurchase:e}}),window.location.reload()):(await M(uw(!1)),await M(pw(t))):(O(`${G3}invoice-detail`,{state:{pricingData:t,PackName:null==t?void 0:t.Status,purchasedAmt:T,differenceDays:$,AppExpDate:V,locationpathname:null==(s=window.location)?void 0:s.pathname,Exist:K,SAdmin:Y,UserId:W,lastappPurchase:e}}),window.location.reload()):O(`${G3}signin`,{state:{pricingData:t,AppId:iA("AppId"),PricingId:t.PricingId,PurDate:c,PaymentStatus:"S",LicenseStatus:"A",Price:t.Price,ValidityStart:u,ValidityEnd:h,PackName:null==t?void 0:t.Status,purchasedAmt:T,differenceDays:$,AppExpDate:V,locationpathname:null==(l=window.location)?void 0:l.pathname,Exist:K}})}),[H]),re=async()=>{var e,t;let n={AppId:U,UserId:W,type:"L"},i=await M(ow(n)).unwrap();1==(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&G(null==(t=i.data)?void 0:t.data)};return Ye.jsx("div",{className:(null==n?void 0:n.hasOwnProperty("apiCall"))?"Pricing1PageWOD":"Pricing1Page",children:Ye.jsxs("div",{className:"pricingfull",children:[Ye.jsx(Qy,{messageType:S,messageData:I,onComplete:te}),Ye.jsxs("div",{children:[Ye.jsxs("div",{style:{margin:"0 0rem"},children:[null==o?void 0:o.map((e=>{var t;return"Pricing2Title"===e.FieldName&&!Y&&Ye.jsx("p",{className:(null==(t=null==e?void 0:e.FieldValue)?void 0:t.length)>0?"PricingHeader":"PricingHeaderwod",style:{color:Y3.textColor,fontSize:Y3.fontSize,letterSpacing:"30px",fontFamily:y,textTransform:"uppercase"},children:e.FieldValue})})),null==o?void 0:o.map((e=>{var t;return"Pricing2Header"===e.FieldName&&!Y&&Ye.jsx("div",{children:Ye.jsx("p",{className:(null==(t=null==e?void 0:e.FieldValue)?void 0:t.length)>0?"pricingtext":"pricingtextwod",style:{fontSize:"40px",fontWeight:"600",fontFamily:y},children:e.FieldValue})})})),Ye.jsxs("div",{className:"pricing1toggle",children:[null==o?void 0:o.map((e=>{var t;return"Pricing2Description"===e.FieldName&&!Y&&Ye.jsx("div",{className:(null==(t=null==e?void 0:e.FieldValue)?void 0:t.length)>0?"pricingsubtext":"pricingsubtextwod",children:Ye.jsx("p",{style:{fontSize:"16px",fontFamily:b},children:e.FieldValue})})})),Ye.jsx("div",{children:Ye.jsxs("div",{style:{display:"flex",gap:"0.2rem",justifyContent:"flex-end"},children:[Ye.jsxs("div",{className:"pricing11subtoggle",children:[Ye.jsx("div",{className:n.hasOwnProperty("apiCall")?"pricing1subtextwod":"pricing1subtext",children:!n.hasOwnProperty("apiCall")&&"Monthly "}),Ye.jsx(Hy,{defaultChecked:!0,functionName:e=>{const t=e?"Y":"M";C(t),M(W?Wb({toggleValue:t,AppId:U,UserId:W}):Kb({toggleValue:t,AppId:U}))}}),Ye.jsx("div",{className:n.hasOwnProperty("apiCall")?"pricing1subtextwod":"pricing1subtext",children:!n.hasOwnProperty("apiCall")&&"Yearly"})]}),Ye.jsxs("div",{className:"savepercentage",style:{marginBottom:"3rem"},children:[Ye.jsx("div",{className:"subsavepercentage",children:"Save 17 %"}),Ye.jsx("img",{className:"curvearrow",src:m5})]})]})})]})]}),Ye.jsx("div",{className:"pricing1pricingcont",children:Ye.jsx(q3,{...W3,children:Ye.jsx(o5,{children:Ye.jsx("div",{className:n.hasOwnProperty("apiCall")?"pricingdivWOD":"pricing1div",children:Ye.jsx("div",{className:n.hasOwnProperty("apiCall")?"pricingcardsdivWOD":"pricing1cardsdiv",children:null==(l=[null==R?void 0:R.find((e=>{var t;return"FREE"===(null==(t=e.PricingName)?void 0:t.toUpperCase())})),...null==R?void 0:R.filter((e=>{var t;return"FREE"!==(null==(t=e.PricingName)?void 0:t.toUpperCase())}))])?void 0:l.map(((e,t)=>{var i,a,r,s,l,o,d,c;return e?Ye.jsxs("div",{className:"pricing1cardstemp",children:[Ye.jsx("div",{className:"pricing1name",children:Ye.jsx("p",{className:(null==(i=e.PricingName)?void 0:i.length)>0?"PriceWD":"PriceWOD",children:null==(a=e.PricingName)?void 0:a.toUpperCase()})}),Ye.jsx("div",{className:"FREE"==e.PricingName.toUpperCase()?"pricing1content":"Pricing1freeWOD",children:Ye.jsx("div",{children:"FREE"==(null==(r=e.PricingName)?void 0:r.toUpperCase())?Ye.jsx("img",{className:"gitfimg1",src:EM}):Ye.jsxs("div",{className:"netprice1",children:[Ye.jsxs("span",{className:"net-price",style:{display:"flex",alignItems:"center"},children:[Ye.jsx("sup",{style:{fontSize:"35px"},children:"₹"}),e.DisplayPrice]}),!n.hasOwnProperty("apiCall")&&Ye.jsx("div",{style:{display:"flex",alignItems:"center",gap:"1rem"},children:Ye.jsxs("span",{style:{fontSize:"14px",color:"#5d5d66",display:"flex",alignItems:"center",gap:"0.2rem"},children:[" ","Y"==j?"/month billed annually":"/month billed monthly"," "]})})]})})}),Ye.jsx("div",{className:"feature",children:null==(s=e.FeatureDetails)?void 0:s.map(((e,t)=>{var n,i,a;return Ye.jsx("div",{className:"featureDetailsDiv",children:Ye.jsxs("p",{className:(null==(n=e.FeatName)?void 0:n.length)>0?"DetailWD":"DetailsWOD",children:[(null==(i=e.FeatName)?void 0:i.length)>0&&Ye.jsx($m,{style:{color:"#52C41A",marginRight:"0.6rem",fontSize:"14px",width:"15px",height:"15px",marginTop:"3px"}}),(null==(a=e.FeatName)?void 0:a.length)>0?0!=e.FeatConstraint?e.FeatName+"-"+e.FeatConstraint:e.FeatName:""]})})}))}),Ye.jsx("div",{className:"pricing1start",children:"FREE"===(null==(l=e.PricingName)?void 0:l.toUpperCase())?Ye.jsx("div",{className:"freebtn1fullpage "+("Already Used"===e.Status?"disabled":""),onClick:()=>(async e=>{var t,n,i,a;const r=new Date,s=Se(r).format("YYYY-MM-DD HH:mm:ss"),l=Se(r).format("YYYY-MM-DD HH:mm:ss"),o=Se(r).add(e.NoOfDays,"days").format("YYYY-MM-DD HH:mm:ss");var d=new Date(o);d.setDate(d.getDate()-1);const c=d.toISOString().slice(0,19).replace("T"," ");if(W)if("Start Free"===e.Status){const a={UserId:W,AppId:iA("AppId"),PricingId:e.PricingId,PurDate:s,PaymentStatus:"S",LicenseStatus:"A",Price:e.Price,ValidityStart:l,ValidityEnd:c,CreatedBy:iA("UserId")},r=await M(Gb(a)).unwrap();1==(null==(t=null==r?void 0:r.data)?void 0:t.statusCode)?(N("success"),F(null==(n=null==r?void 0:r.data)?void 0:n.response),W?await ne():await ie()):(N("error"),F(null==(i=null==r?void 0:r.data)?void 0:i.response))}else F("Free Already Used"),N("warning");else O(`${G3}signin`,{state:{AppId:iA("AppId"),PricingId:e.PricingId,PurDate:s,PaymentStatus:"S",LicenseStatus:"A",Price:e.Price,ValidityStart:l,ValidityEnd:c,PricingName:"Free",locationpathname:null==(a=window.location)?void 0:a.pathname}}),window.location.reload()})(e),children:Ye.jsxs("div",{style:{display:"flex",columnGap:"1rem"},children:[Ye.jsx("p",{children:"Already Used"===e.Status||Q?"Already Used":"Start Now"}),Ye.jsx(k,{})]})}):"skeleton"!==e.Status?Ye.jsx("div",{className:"btntextfullpage",style:{background:v,color:"white",border:`1px solid ${v}`,":hover":{border:`1px solid ${v}`,color:"red"}},onClick:()=>{var t,n,i;return ae(e,(null==(t=null==V?void 0:V[0])?void 0:t.RemainingDays)>0?"Extend Pack"===e.Status?"Extend Pack":"Extend Pack"==(null==(n=null==H?void 0:H[0])?void 0:n.Status)?(null==e?void 0:e.DisplayPrice)<(null==(i=null==H?void 0:H[0])?void 0:i.DisplayPrice)?"Switch":"Upgrade":"Switch":"Extend Pack"===e.Status?"Extend Pack":"Start Now")},onMouseOver:e=>{e.target.style.color=v,e.target.style.background="white",e.target.style.border="1px solid"},onMouseLeave:e=>{e.target.style.color="white",e.target.style.background=v,e.target.style.border="none"},children:(null==(o=null==V?void 0:V[0])?void 0:o.RemainingDays)>0?"Extend Pack"===e.Status?"Extend Pack":"Extend Pack"==(null==(d=null==H?void 0:H[0])?void 0:d.Status)?(null==e?void 0:e.DisplayPrice)<(null==(c=null==H?void 0:H[0])?void 0:c.DisplayPrice)?"Switch":`Upgrade to ${null==e?void 0:e.PricingName}`:"Switch":"Extend Pack"===e.Status?"Extend Pack":"Start Now"}):Ye.jsx("div",{className:"btntextskeleton",disabled:!0})})]},t):null}))})})})})}),Ye.jsx("div",{style:{fontWeight:"500",fontSize:"16px"},children:"Note : All prices mentioned above are inclusive of GST."})]})]})})},X3=Object.freeze(Object.defineProperty({__proto__:null,default:$3},Symbol.toStringTag,{value:"Module"})),J3=()=>{const e=a.useRef(null),t=um(),n=Tf(J_),[i,r]=a.useState(!1),[s,l]=a.useState(!1),[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState(!1);a.useEffect((()=>{!async function(){await t(Wb({Type:"Y",AppId:16,UserId:1})).unwrap}()}),[]);const h=a.useCallback((()=>{u(null),d(null)}),[]);a.useEffect((()=>{if((null==n?void 0:n.length)>0){let t=n.filter((e=>e.FieldName.includes("Pricing2")));(null==t?void 0:t.length)>0&&A(!0),null==n||n.map(((t,n)=>{var i,a,r;return"Pricing2Title"==(null==t?void 0:t.FieldName)?null==(i=null==e?void 0:e.current)?void 0:i.setFieldsValue({Title:null==t?void 0:t.FieldValue}):"Pricing2Header"==(null==t?void 0:t.FieldName)?null==(a=null==e?void 0:e.current)?void 0:a.setFieldsValue({Header:null==t?void 0:t.FieldValue}):"Pricing2Description"==(null==t?void 0:t.FieldName)?null==(r=null==e?void 0:e.current)?void 0:r.setFieldsValue({Description:null==t?void 0:t.FieldValue}):null}))}else A(!1)}),[s,n]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:o,messageData:c,onComplete:h}),Ye.jsxs("div",{style:{flexdirection:"row",flexWrap:"wrap",columnGap:"1.2rem"},children:[Ye.jsx($3,{data:[{FieldName:"Pricing2Title",FieldValue:"",FieldAddData:""},{FieldName:"Pricing2Header",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"Pricing2Description",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"PricingCatFeatures",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"PricingDescription",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"Monthly",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"Yearly",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"PricfreeBtn",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"PricBtn",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"PricPopName",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"PricPopPrice",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"PricPrimeName",FieldValue:"",FieldAddData:"https://paypre.in"}],apiCall:"data"}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>{l(!0)}}),Ye.jsx(ce,{onClick:()=>(async()=>{(null==n?void 0:n.length)>0?r(!0):(u("Please Add a Pricing data to open the Preview"),d("warning"))})()})]}),Ye.jsxs(j,{centered:!0,open:s,onOk:()=>l(!1),closeIcon:Ye.jsx(M,{onClick:()=>{var t;l(!1),null==(t=e.current)||t.resetFields()}}),width:600,children:[Ye.jsx("h1",{children:" Pricing"}),Ye.jsxs(I,{ref:e,onFinish:n=>{var i;let a=[{FieldName:"Pricing2Title",FieldValue:null==n?void 0:n.Title,FieldAddData:""},{FieldName:"Pricing2Header",FieldValue:null==n?void 0:n.Header,FieldAddData:""},{FieldName:"Pricing2Description",FieldValue:null==n?void 0:n.Description,FieldAddData:""},{FieldName:"PricingCatName",FieldValue:"FREE",FieldAddData:"https://paypre.in"},{FieldName:"PricingCatFeatures",FieldValue:"Company",FieldAddData:"https://paypre.in"},{FieldName:"Monthly",FieldValue:"Monthly",FieldAddData:"https://paypre.in"},{FieldName:"Yearly",FieldValue:"Yearly",FieldAddData:"https://paypre.in"},{FieldName:"PricfreeBtn",FieldValue:"TRY FREE",FieldAddData:"https://paypre.in"},{FieldName:"PricBtn",FieldValue:"BUY NOW",FieldAddData:"https://paypre.in"},{FieldName:"PricPopName",FieldValue:"LITE",FieldAddData:"https://paypre.in"},{FieldName:"PricPopPrice",FieldValue:"$856",FieldAddData:"https://paypre.in"},{FieldName:"PricPrimeName",FieldValue:"PRIME",FieldAddData:"https://paypre.in"}];t(C_({postData:a})),u("Data Added Successfully"),d("success"),l(!1),null==(i=e.current)||i.resetFields()},children:[Ye.jsx("div",{style:{padding:"2rem 0rem"},children:Ye.jsxs("div",{style:{},children:[Ye.jsx(I.Item,{name:"Title",rules:[{required:!0,message:"Please Enter Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",fieldState:!0,fieldApi:!0,label:"Title",isOnChange:!!p,suffix:Ye.jsx(F,{title:"e.g Pricing",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx(I.Item,{name:"Header",rules:[{required:!0,message:"Please Enter Header"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",fieldState:!0,fieldApi:!0,label:"Header",isOnChange:!!p,suffix:Ye.jsx(F,{title:"e.g SIMPLE, TRANSPARENT PRICING",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx(I.Item,{name:"Description",rules:[{required:!0,message:"Please Enter Description"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",fieldState:!0,fieldApi:!0,label:"Description",isOnChange:!!p,suffix:Ye.jsx(F,{title:"e.g Choose the package that suits you.No Contracts. No surprise fees.",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]})}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(Ry,{type:"submit",buttonText:"SUBMIT",icon:Ye.jsx(k,{})})})]})]})]}),Ye.jsx(j,{destroyOnClose:!0,centered:!0,open:i,onOk:()=>r(!1),onCancel:()=>r(!1),width:1e3,children:Ye.jsx($3,{data:n})})]})},Z3={dots:!0,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1},e6={textColor:"#000",fontSize:"13px"},t6=[{AppId:"",Status:"skeleton",PricingName:"",Price:"",PricingId:"",DisplayPrice:"",NetPrice:"000",PriceTag:"",NoOfDays:"",PriceTagName:"",FeatureDetails:[{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""}]},{AppId:"",Status:"skeleton",PricingName:"",Price:"",PricingId:"",DisplayPrice:"",NetPrice:"000",PriceTag:"",NoOfDays:"",PriceTagName:"",FeatureDetails:[{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""}]},{AppId:"",Status:"skeleton",PricingName:"",Price:"",PricingId:"",DisplayPrice:"",NetPrice:"000",PriceTag:"",NoOfDays:"",PriceTagName:"",FeatureDetails:[{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""},{FeatName:"",FeatConstraint:""}]}],n6="/home/",i6=({appPurchases:e,newplan:t,...n})=>{var i,r,s;const l=null==n?void 0:n.data,o=null==n?void 0:n.AdminId,d=Tf(q_),c=Tf(U_),u=Tf(W_),p=Tf(q_),A=Tf(D_),h=Tf(L_),f=Tf(X_),[m,v]=a.useState(A?A.darkColor:null),[g,y]=a.useState(h?h.head:null),[x,b]=a.useState(h?h.para:null),[w,j]=a.useState("Y"),[C,S]=a.useState(null),[N,I]=a.useState(null),[F,B]=a.useState([]),[P,T]=a.useState(null),[E,D]=a.useState(null),[L,U]=a.useState(null!=p?p.AppId:f),_=Qt(),O=um(),M=n.hasOwnProperty("apiCall")?t6:Tf((e=>{var t;return(null==(t=null==e?void 0:e.pricingType)?void 0:t.PricingType)||[]}));let R=(null==(i=null==M?void 0:M.filter((e=>{var t;return"FREE"!==(null==(t=e.PricingName)?void 0:t.toUpperCase())})))?void 0:i.filter((e=>"Extend Pack"==(null==e?void 0:e.Status))).length)>0;const Q=null==M?void 0:M.filter((e=>"Extend Pack"===(null==e?void 0:e.Status))),H=null==F?void 0:F.filter((e=>(null==e?void 0:e.AppName)===E)),V=window.location.href,z=iA("UserType"),q="Super Admin"==z||"Super Admin User"==z?(null==(r=null==e?void 0:e[0])?void 0:r.UserId)||t:"Employee"==z?o:iA("UserId"),W=Tf(Aw),[Y,K]=a.useState(),[G,$]=a.useState(0);a.useEffect((()=>{let e=null==H?void 0:H.filter((e=>"Free"!=e.PricingName)),t=null==e?void 0:e.reduce(((e,t)=>e+t.RemainingDays),0);$(t)}),[H]),a.useEffect((()=>{let e=null==c?void 0:c.filter((e=>(null==e?void 0:e.AppId)===(null==d?void 0:d.AppId)));D(e.length>0?e[0].AppName:u.length>0?u:null)}),[d]),a.useEffect((()=>{var e;null===p&&async function(e){var t,n;let i=await O(n_()).unwrap();1===(null==(t=null==i?void 0:i.data)?void 0:t.statusCode)&&await Z(null==(n=null==i?void 0:i.data)?void 0:n.data,e)}(null==(e=new URL(V).pathname.split("/"))?void 0:e.filter(Boolean).pop()),J(),X(),ae()}),[L,q]);const X=async()=>{var e,t,n;let i=await O(sw({UserId:q,AppId:L})).unwrap();1==(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&T(null==(n=null==(t=null==i?void 0:i.data)?void 0:t.data)?void 0:n[0])},J=async()=>{var e;let t=await O(lw({UserId:q,AppId:L})).unwrap();B(null==(e=null==t?void 0:t.data)?void 0:e.data)};a.useEffect((()=>{U(null!=p?p.AppId:f)}),[p]);const Z=async(e,t)=>{var n,i;const a=null==e?void 0:e.filter((e=>{var n;return(null==(n=null==e?void 0:e.AppName)?void 0:n.toUpperCase())===(null==t?void 0:t.toUpperCase())}));a.length>0&&(O(S_(null==(n=a[0])?void 0:n.AppId)),U(null==(i=a[0])?void 0:i.AppId))},ee=a.useCallback((()=>{I(null),S(null)}),[]);a.useEffect((()=>{O(q?Wb({toggleValue:w,AppId:L,UserId:q}):Kb({toggleValue:w,AppId:L})),O(rw({toggleValue:w,AppId:L})).unwrap()}),[w,L,q,O]);const te=()=>{_(`${n6}landing-page/home`),window.location.reload()},ne=()=>{_(`${n6}signin`),window.location.reload()},ie=a.useCallback((async(t,n)=>{var i,a,r,s,l;(e=>{const t=iA("UserId"),n=iA("AppId"),i=JSON.parse(localStorage.getItem("visitLogFormat")||"null"),a={VisitTime:(new Date).toISOString(),Location:window.location.pathname};let r;if(i){const n=Array.isArray(i.LocationVistDtl)?i.LocationVistDtl:[];r={...i,PricingId:(null==e?void 0:e.PricingId)||i.PricingId||null,LocationVistDtl:[...n,a],CreatedBy:t}}else r={UserId:t,AppId:n,CreatedBy:t,PricingId:(null==e?void 0:e.PricingId)||null,LocationVistDtl:[a]};localStorage.setItem("visitLogFormat",JSON.stringify(r))})(t);let o=(e=>{const t=new Set,n=[];for(const i of e.LocationVistDtl){const e=i.Location.toLowerCase();t.has(e)||(t.add(e),n.push(i))}return{...e,LocationVistDtl:n}})(JSON.parse(localStorage.getItem("visitLogFormat")||"null"));await O(lT(o)),localStorage.removeItem("visitLogFormat"),nA("AppId",t.AppId),nA("PricingId",t.PricingId);const d=new Date,c=Se(d).format("YYYY-MM-DD HH:mm:ss"),u=Se(d).format("YYYY-MM-DD HH:mm:ss"),p=Se(d).add(t.NoOfDays,"days").format("YYYY-MM-DD HH:mm:ss");var A=new Date(p);A.setDate(A.getDate()-1);const h=A.toISOString().slice(0,19).replace("T"," ");q?W?"Newplan"==(null==(i=null==e?void 0:e[0])?void 0:i.Sadmin)?(await O(uw(!1)),await O(pw(t))):"Extend Pack"!=(null==t?void 0:t.Status)&&"Free"!=(null==(a=null==e?void 0:e[0])?void 0:a.PricingName)?(_(`${n6}invoice-detail`,{state:{pricingData:t,PackName:null==t?void 0:t.Status,purchasedAmt:P,differenceDays:G,AppExpDate:H,locationpathname:null==(r=window.location)?void 0:r.pathname,Exist:Y,SAdmin:W,UserId:q,lastappPurchase:e}}),window.location.reload()):(await O(uw(!1)),await O(pw(t))):(_(`${n6}invoice-detail`,{state:{pricingData:t,PackName:null==t?void 0:t.Status,purchasedAmt:P,differenceDays:G,AppExpDate:H,locationpathname:null==(s=window.location)?void 0:s.pathname,Exist:Y,SAdmin:W,UserId:q,lastappPurchase:e}}),window.location.reload()):_(`${n6}signin`,{state:{pricingData:t,AppId:iA("AppId"),PricingId:t.PricingId,PurDate:c,PaymentStatus:"S",LicenseStatus:"A",Price:t.Price,ValidityStart:u,ValidityEnd:h,PackName:null==t?void 0:t.Status,purchasedAmt:P,differenceDays:G,AppExpDate:H,locationpathname:null==(l=window.location)?void 0:l.pathname,Exist:Y}})}),[Q]),ae=async()=>{var e,t;let n={AppId:L,UserId:q,type:"L"},i=await O(ow(n)).unwrap();1==(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&K(null==(t=i.data)?void 0:t.data)};return Ye.jsx("div",{className:(null==n?void 0:n.hasOwnProperty("apiCall"))?"Pricing1PageWOD":"Pricing1Page",children:Ye.jsxs("div",{className:"pricingfull",children:[Ye.jsx(Qy,{messageType:C,messageData:N,onComplete:ee}),Ye.jsxs("div",{children:[Ye.jsxs("div",{style:{margin:"0 0rem"},children:[null==l?void 0:l.map((e=>"Pricing2Title"===e.FieldName&&!W&&Ye.jsx("p",{className:(null==e?void 0:e.FieldValue.length)>0?"PricingHeader":"PricingHeaderwod",style:{color:e6.textColor,fontSize:e6.fontSize,letterSpacing:"30px",fontFamily:g,textTransform:"uppercase"},children:e.FieldValue}))),null==l?void 0:l.map((e=>"Pricing2Header"===e.FieldName&&!W&&Ye.jsx("div",{children:Ye.jsx("p",{className:(null==e?void 0:e.FieldValue.length)>0?"pricingtext":"pricingtextwod",style:{fontSize:"40px",fontWeight:"600",fontFamily:g},children:e.FieldValue})}))),Ye.jsxs("div",{className:"pricing1toggle",children:[null==l?void 0:l.map((e=>"Pricing2Description"===e.FieldName&&!W&&Ye.jsx("div",{className:(null==e?void 0:e.FieldValue.length)>0?"pricingsubtext":"pricingsubtextwod",children:Ye.jsx("p",{style:{fontSize:"16px",fontFamily:x},children:e.FieldValue})}))),Ye.jsx("div",{children:Ye.jsxs("div",{style:{display:"flex",gap:"0.2rem",justifyContent:"flex-end"},children:[Ye.jsxs("div",{className:"pricing11subtoggle",children:[Ye.jsx("div",{className:n.hasOwnProperty("apiCall")?"pricing1subtextwod":"pricing1subtext",children:!n.hasOwnProperty("apiCall")&&"Monthly "}),Ye.jsx(Hy,{defaultChecked:!0,functionName:e=>{const t=e?"Y":"M";j(t),O(q?Wb({toggleValue:t,AppId:L,UserId:q}):Kb({toggleValue:t,AppId:L}))}}),Ye.jsx("div",{className:n.hasOwnProperty("apiCall")?"pricing1subtextwod":"pricing1subtext",children:!n.hasOwnProperty("apiCall")&&"Yearly"})]}),Ye.jsxs("div",{className:"savepercentage",style:{marginBottom:"3rem"},children:[Ye.jsx("div",{className:"subsavepercentage",children:"Save 17 %"}),Ye.jsx("img",{className:"curvearrow",src:m5})]})]})})]})]}),Ye.jsx("div",{className:"pricing1pricingcont",children:Ye.jsx(q3,{...Z3,children:Ye.jsx(o5,{children:Ye.jsx("div",{className:n.hasOwnProperty("apiCall")?"pricingdivWOD":"pricing1div",children:Ye.jsx("div",{className:n.hasOwnProperty("apiCall")?"pricingcardsdivWOD":"pricing1cardsdiv",children:null==(s=[null==M?void 0:M.find((e=>{var t;return"FREE"===(null==(t=e.PricingName)?void 0:t.toUpperCase())})),...null==M?void 0:M.filter((e=>{var t;return"FREE"!==(null==(t=e.PricingName)?void 0:t.toUpperCase())}))])?void 0:s.map(((e,t)=>{var i,a,r,s,l,o,d;return e?Ye.jsxs("div",{className:"pricing1cardstemp",children:[Ye.jsx("div",{className:"pricing1name",children:Ye.jsx("p",{className:e.PricingName.length>0?"PriceWD":"PriceWOD",children:null==(i=e.PricingName)?void 0:i.toUpperCase()})}),Ye.jsx("div",{className:"FREE"==e.PricingName.toUpperCase()?"pricing1content":"Pricing1freeWOD",children:Ye.jsx("div",{children:"FREE"==(null==(a=e.PricingName)?void 0:a.toUpperCase())?Ye.jsx("img",{className:"gitfimg1",src:EM}):Ye.jsxs("div",{className:"netprice1",children:[Ye.jsxs("span",{className:"net-price",style:{display:"flex",alignItems:"center"},children:[Ye.jsx("sup",{style:{fontSize:"35px"},children:"₹"}),e.DisplayPrice]}),!n.hasOwnProperty("apiCall")&&Ye.jsx("div",{style:{display:"flex",alignItems:"center",gap:"1rem"},children:Ye.jsxs("span",{style:{fontSize:"14px",color:"#5d5d66",display:"flex",alignItems:"center",gap:"0.2rem"},children:[" ","Y"==w?"/month billed annually":"/month billed monthly"," "]})})]})})}),Ye.jsx("div",{className:"feature",children:null==(r=e.FeatureDetails)?void 0:r.map(((e,t)=>Ye.jsx("div",{className:"featureDetailsDiv",children:Ye.jsxs("p",{className:e.FeatName.length>0?"DetailWD":"DetailsWOD",children:[e.FeatName.length>0&&Ye.jsx($m,{style:{color:"#52C41A",marginRight:"0.6rem",fontSize:"14px",width:"15px",height:"15px",marginTop:"3px"}}),e.FeatName.length>0?0!=e.FeatConstraint?e.FeatName+"-"+e.FeatConstraint:e.FeatName:""]})})))}),Ye.jsx("div",{className:"pricing1start",children:"FREE"===(null==(s=e.PricingName)?void 0:s.toUpperCase())?Ye.jsx("div",{className:"freebtn1fullpage "+("Already Used"===e.Status?"disabled":""),onClick:()=>(async e=>{var t,n,i,a;const r=new Date,s=Se(r).format("YYYY-MM-DD HH:mm:ss"),l=Se(r).format("YYYY-MM-DD HH:mm:ss"),o=Se(r).add(e.NoOfDays,"days").format("YYYY-MM-DD HH:mm:ss");var d=new Date(o);d.setDate(d.getDate()-1);const c=d.toISOString().slice(0,19).replace("T"," ");if(q)if("Start Free"===e.Status){const a={UserId:q,AppId:iA("AppId"),PricingId:e.PricingId,PurDate:s,PaymentStatus:"S",LicenseStatus:"A",Price:e.Price,ValidityStart:l,ValidityEnd:c,CreatedBy:iA("UserId")},r=await O(Gb(a)).unwrap();1==(null==(t=null==r?void 0:r.data)?void 0:t.statusCode)?(S("success"),I(null==(n=null==r?void 0:r.data)?void 0:n.response),q?await te():await ne()):(S("error"),I(null==(i=null==r?void 0:r.data)?void 0:i.response))}else I("Free Already Used"),S("warning");else _(`${n6}signin`,{state:{AppId:iA("AppId"),PricingId:e.PricingId,PurDate:s,PaymentStatus:"S",LicenseStatus:"A",Price:e.Price,ValidityStart:l,ValidityEnd:c,PricingName:"Free",locationpathname:null==(a=window.location)?void 0:a.pathname}}),window.location.reload()})(e),children:Ye.jsxs("div",{style:{display:"flex",columnGap:"1rem"},children:[Ye.jsx("p",{children:"Already Used"===e.Status||R?"Already Used":"Start Now"}),Ye.jsx(k,{})]})}):"skeleton"!==e.Status?Ye.jsx("div",{className:"btntextfullpage",style:{background:m,color:"white",border:`1px solid ${m}`,":hover":{border:`1px solid ${m}`,color:"red"}},onClick:()=>{var t,n,i;return ie(e,(null==(t=null==H?void 0:H[0])?void 0:t.RemainingDays)>0?"Extend Pack"===e.Status?"Extend Pack":"Extend Pack"==(null==(n=null==Q?void 0:Q[0])?void 0:n.Status)?(null==e?void 0:e.DisplayPrice)<(null==(i=null==Q?void 0:Q[0])?void 0:i.DisplayPrice)?"Switch":"Upgrade":"Switch":"Extend Pack"===e.Status?"Extend Pack":"Start Now")},onMouseOver:e=>{e.target.style.color=m,e.target.style.background="white",e.target.style.border="1px solid"},onMouseLeave:e=>{e.target.style.color="white",e.target.style.background=m,e.target.style.border="none"},children:(null==(l=null==H?void 0:H[0])?void 0:l.RemainingDays)>0?"Extend Pack"===e.Status?"Extend Pack":"Extend Pack"==(null==(o=null==Q?void 0:Q[0])?void 0:o.Status)?(null==e?void 0:e.DisplayPrice)<(null==(d=null==Q?void 0:Q[0])?void 0:d.DisplayPrice)?"Switch":`Upgrade to ${null==e?void 0:e.PricingName}`:"Switch":"Extend Pack"===e.Status?"Extend Pack":"Start Now"}):Ye.jsx("div",{className:"btntextskeleton",disabled:!0})})]},t):null}))})})})})}),Ye.jsx("div",{style:{fontWeight:"500",fontSize:"16px"},children:"Note : All prices mentioned above are inclusive of GST."})]})]})})},a6=Object.freeze(Object.defineProperty({__proto__:null,default:i6},Symbol.toStringTag,{value:"Module"})),r6=()=>{const e=a.useRef(null),t=um(),n=Tf(J_),[i,r]=a.useState(!1),[s,l]=a.useState(!1),[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState(!1),h=a.useCallback((()=>{u(null),d(null)}),[]);a.useEffect((()=>{if((null==n?void 0:n.length)>0){let t=n.filter((e=>e.FieldName.includes("Pricing2")));(null==t?void 0:t.length)>0&&A(!0),null==n||n.map(((t,n)=>{var i,a,r;return"Pricing2Title"==(null==t?void 0:t.FieldName)?null==(i=null==e?void 0:e.current)?void 0:i.setFieldsValue({Title:null==t?void 0:t.FieldValue}):"Pricing2Header"==(null==t?void 0:t.FieldName)?null==(a=null==e?void 0:e.current)?void 0:a.setFieldsValue({Header:null==t?void 0:t.FieldValue}):"Pricing2Description"==(null==t?void 0:t.FieldName)?null==(r=null==e?void 0:e.current)?void 0:r.setFieldsValue({Description:null==t?void 0:t.FieldValue}):null}))}else A(!1)}),[n,s]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:o,messageData:c,onComplete:h}),Ye.jsx(i6,{data:[{FieldName:"Pricing2Title",FieldValue:"",FieldAddData:""},{FieldName:"Pricing2Header",FieldValue:"",FieldAddData:"https://pozo.app"},{FieldName:"Pricing2Description",FieldValue:"",FieldAddData:"https://pozo.app"}],apiCall:"data"}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>{l(!0)}}),Ye.jsx(ce,{onClick:()=>(async()=>{(null==n?void 0:n.length)>0?r(!0):(u("Please Add a Features data to open the Preview"),d("warning"))})()})]}),Ye.jsxs(j,{centered:!0,open:s,onOk:()=>l(!1),closeIcon:Ye.jsx(M,{onClick:()=>{var t;l(!1),null==(t=e.current)||t.resetFields()}}),width:600,children:[Ye.jsx("h1",{children:" Pricing"}),Ye.jsxs(I,{ref:e,onFinish:n=>{var i;let a=[{FieldName:"Pricing2Title",FieldValue:null==n?void 0:n.Title,FieldAddData:""},{FieldName:"Pricing2Header",FieldValue:null==n?void 0:n.Header,FieldAddData:""},{FieldName:"Pricing2Description",FieldValue:null==n?void 0:n.Description,FieldAddData:""}];t(C_({postData:a})),u("Data Added Successfully"),d("success"),l(!1),null==(i=e.current)||i.resetFields()},children:[Ye.jsx("div",{style:{padding:"2rem 0rem"},children:Ye.jsxs("div",{style:{},children:[Ye.jsx(I.Item,{name:"Title",rules:[{required:!0,message:"Please Enter Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",fieldState:!0,fieldApi:!0,label:"Title",isOnChange:!!p,suffix:Ye.jsx(F,{title:"e.g Pricing",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx(I.Item,{name:"Header",rules:[{required:!0,message:"Please Enter Header"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",fieldState:!0,fieldApi:!0,label:"Header",isOnChange:!!p,suffix:Ye.jsx(F,{title:"e.g SIMPLE, TRANSPARENT PRICING",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx(I.Item,{name:"Description",rules:[{required:!0,message:"Please Enter Description"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",fieldState:!0,fieldApi:!0,label:"Description",isOnChange:!!p,suffix:Ye.jsx(F,{title:"e.g Choose the package that suits you.No Contracts. No surprise fees.",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]})}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(Ry,{type:"submit",buttonText:"SUBMIT",icon:Ye.jsx(k,{})})})]})]}),Ye.jsx(j,{destroyOnClose:!0,centered:!0,open:i,onOk:()=>r(!1),onCancel:()=>r(!1),width:1e3,children:Ye.jsx(i6,{data:n})})]})},s6="/home/",l6=({appPurchases:e,newplan:t,...n})=>{var i,r,s,l;const o=um(),[d,c]=a.useState(!0);a.useState(0);const[u,p]=a.useState(window.innerWidth<768),A=null==n?void 0:n.data,h=null==n?void 0:n.AdminId,f=Tf(q_),m=Tf(U_),v=Tf(W_),g=Tf(q_),y=Tf(D_),x=Tf(L_),b=Tf(X_);a.useState(y?y.darkColor:null);const[w,j]=a.useState(x?x.head:null);a.useState(x?x.para:null);const[C,S]=a.useState("Y"),[N,I]=a.useState(null),[F,B]=a.useState(null),[P,k]=a.useState([]),[T,E]=a.useState(null),[D,L]=a.useState(null),[U,_]=a.useState(null!=g?g.AppId:b),O=Qt(),M=n.hasOwnProperty("apiCall")?[{AppId:"",Status:"skeleton",PricingName:"",Price:"",PricingId:"",DisplayPrice:"",NetPrice:"000",PriceTag:"",NoOfDays:"",PriceTagName:"",FeatureDetails:[{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""}]},{AppId:"",Status:"skeleton",PricingName:"",Price:"",PricingId:"",DisplayPrice:"",NetPrice:"000",PriceTag:"",NoOfDays:"",PriceTagName:"",FeatureDetails:[{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""}]},{AppId:"",Status:"skeleton",PricingName:"",Price:"",PricingId:"",DisplayPrice:"",NetPrice:"000",PriceTag:"",NoOfDays:"",PriceTagName:"",FeatureDetails:[{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""},{FeatName:"",FeatConstraint:"",FeatDescription:""}]}]:Tf((e=>{var t;return(null==(t=null==e?void 0:e.pricingType)?void 0:t.PricingType)||[]}));null==(i=null==M?void 0:M.filter((e=>{var t;return"FREE"!==(null==(t=e.PricingName)?void 0:t.toUpperCase())})))||i.filter((e=>"Extend Pack"==(null==e?void 0:e.Status))).length;const R=null==M?void 0:M.filter((e=>"Extend Pack"===(null==e?void 0:e.Status))),Q=null==P?void 0:P.filter((e=>(null==e?void 0:e.AppName)===D)),H=window.location.href,V=iA("UserType"),z="Super Admin"==V||"Super Admin User"==V?(null==(r=null==e?void 0:e[0])?void 0:r.UserId)||t:"Employee"==V?h:iA("UserId"),q=Tf(Aw),[W,Y]=a.useState(),[K,G]=a.useState(0),$=Tf(D_);a.useEffect((()=>{let e=null==Q?void 0:Q.filter((e=>"Free"!=e.PricingName)),t=null==e?void 0:e.reduce(((e,t)=>e+t.RemainingDays),0);G(t)}),[Q]),a.useEffect((()=>{let e=null==m?void 0:m.filter((e=>(null==e?void 0:e.AppId)===(null==f?void 0:f.AppId)));L(e.length>0?e[0].AppName:v.length>0?v:null)}),[f]),a.useEffect((()=>{var e;null===g&&async function(e){var t,n;let i=await o(n_()).unwrap();1===(null==(t=null==i?void 0:i.data)?void 0:t.statusCode)&&await Z(null==(n=null==i?void 0:i.data)?void 0:n.data,e)}(null==(e=new URL(H).pathname.split("/"))?void 0:e.filter(Boolean).pop()),J(),X(),ae()}),[U,z]);const X=async()=>{var e,t,n;let i=await o(sw({UserId:z,AppId:U})).unwrap();1==(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&E(null==(n=null==(t=null==i?void 0:i.data)?void 0:t.data)?void 0:n[0])},J=async()=>{var e;let t=await o(lw({UserId:z,AppId:U})).unwrap();k(null==(e=null==t?void 0:t.data)?void 0:e.data)};a.useEffect((()=>{_(null!=g?g.AppId:b)}),[g]);const Z=async(e,t)=>{var n,i;const a=null==e?void 0:e.filter((e=>{var n;return(null==(n=null==e?void 0:e.AppName)?void 0:n.toUpperCase())===(null==t?void 0:t.toUpperCase())}));a.length>0&&(o(S_(null==(n=a[0])?void 0:n.AppId)),_(null==(i=a[0])?void 0:i.AppId))};a.useCallback((()=>{B(null),I(null)}),[]);const ee=e=>{const t="Y"==e?"Y":"M";S(t),o(z?Wb({toggleValue:t,AppId:U,UserId:z}):Kb({toggleValue:t,AppId:U}))};a.useEffect((()=>{o(z?Wb({toggleValue:C,AppId:U,UserId:z}):Kb({toggleValue:C,AppId:U})),o(rw({toggleValue:C,AppId:U})).unwrap()}),[C,U,z,o]);const te=()=>{O(`${s6}landing-page/home`),window.location.reload()},ne=()=>{O(`${s6}signin`),window.location.reload()},ie=a.useCallback((async(t,n)=>{var i,a,r,s,l;(e=>{const t=iA("UserId"),n=iA("AppId"),i=JSON.parse(localStorage.getItem("visitLogFormat")||"null"),a={VisitTime:(new Date).toISOString(),Location:window.location.pathname};let r;if(i){const n=Array.isArray(i.LocationVistDtl)?i.LocationVistDtl:[];r={...i,PricingId:(null==e?void 0:e.PricingId)||i.PricingId||null,LocationVistDtl:[...n,a],CreatedBy:t}}else r={UserId:t,AppId:n,CreatedBy:t,PricingId:(null==e?void 0:e.PricingId)||null,LocationVistDtl:[a]};localStorage.setItem("visitLogFormat",JSON.stringify(r))})(t);let d=(e=>{const t=new Set,n=[];for(const i of e.LocationVistDtl){const e=i.Location.toLowerCase();t.has(e)||(t.add(e),n.push(i))}return{...e,LocationVistDtl:n}})(JSON.parse(localStorage.getItem("visitLogFormat")||"null"));await o(lT(d)),localStorage.removeItem("visitLogFormat"),nA("AppId",t.AppId),nA("PricingId",t.PricingId);const c=new Date,u=Se(c).format("YYYY-MM-DD HH:mm:ss"),p=Se(c).format("YYYY-MM-DD HH:mm:ss"),A=Se(c).add(t.NoOfDays,"days").format("YYYY-MM-DD HH:mm:ss");var h=new Date(A);h.setDate(h.getDate()-1);const f=h.toISOString().slice(0,19).replace("T"," ");z?q?"Newplan"==(null==(i=null==e?void 0:e[0])?void 0:i.Sadmin)?(await o(uw(!1)),await o(pw(t))):"Extend Pack"!=(null==t?void 0:t.Status)&&"Free"!=(null==(a=null==e?void 0:e[0])?void 0:a.PricingName)?(O(`${s6}invoice-detail`,{state:{pricingData:t,PackName:null==t?void 0:t.Status,purchasedAmt:T,differenceDays:K,AppExpDate:Q,locationpathname:null==(r=window.location)?void 0:r.pathname,Exist:W,SAdmin:q,UserId:z,lastappPurchase:e}}),window.location.reload()):(await o(uw(!1)),await o(pw(t))):(O(`${s6}invoice-detail`,{state:{pricingData:t,PackName:null==t?void 0:t.Status,purchasedAmt:T,differenceDays:K,AppExpDate:Q,locationpathname:null==(s=window.location)?void 0:s.pathname,Exist:W,SAdmin:q,UserId:z,lastappPurchase:e}}),window.location.reload()):O(`${s6}signin`,{state:{pricingData:t,AppId:iA("AppId"),PricingId:t.PricingId,PurDate:u,PaymentStatus:"S",LicenseStatus:"A",Price:t.Price,ValidityStart:p,ValidityEnd:f,PackName:null==t?void 0:t.Status,purchasedAmt:T,differenceDays:K,AppExpDate:Q,locationpathname:null==(l=window.location)?void 0:l.pathname,Exist:W}})}),[R]),ae=async()=>{var e,t;let n={AppId:U,UserId:z,type:"L"},i=await o(ow(n)).unwrap();1==(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&Y(null==(t=i.data)?void 0:t.data)},re=(Array.isArray(M)&&M.length>0?M:[]).map((e=>{var t;return{...e,popular:"PRO"===(null==(t=e.PricingName)?void 0:t.toUpperCase())}}));let se="Already Used"===(null==(s=null==re?void 0:re.find((e=>{var t;return"FREE"===(null==(t=e.PricingName)?void 0:t.toUpperCase())})))?void 0:s.Status),le=null==re?void 0:re.some((e=>{var t;return"FREE"===(null==(t=e.PricingName)?void 0:t.toUpperCase())}));return a.useEffect((()=>{c(!0),U&&z?o(Wb({toggleValue:C,AppId:U,UserId:z})).finally((()=>c(!1))):c(!1)}),[C,U,z,o]),a.useEffect((()=>{const e=()=>p(window.innerWidth<768);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),Ye.jsx("section",{id:"pricing",className:"pricing-section",children:Ye.jsxs("div",{className:"pricing-container",children:[Ye.jsxs("div",{className:"pricing-header",children:[null==A?void 0:A.map((e=>"Pricing3Header"===e.FieldName&&!q&&Ye.jsx("div",{children:Ye.jsx("p",{className:(null==e?void 0:e.FieldValue.length)>0?"pricingtext":"pricingtextwod",style:{fontSize:"40px",fontWeight:"600",fontFamily:w},children:e.FieldValue})},e.FieldName))),le&&Ye.jsxs("p",{className:"pricing-subtitle "+("Already Used"===re.Status?"disabled":""),style:{cursor:"Already Used"===re.Status?"not-allowed":"pointer"},children:[null==A?void 0:A.map((e=>"Pricing3Description"===e.FieldName&&!q&&Ye.jsx("div",{children:Ye.jsx("p",{className:(null==e?void 0:e.FieldValue.length)>0?"pricing-subtitl":"pricingtextwod",children:e.FieldValue})},e.FieldName))),Ye.jsx("button",{className:"free-button",onClick:e=>{e.stopPropagation(),"Already Used"!==re.Status&&(async e=>{var t,n,i,a;let r=null==e?void 0:e.find((e=>"Free"===e.PricingName));const s=new Date,l=Se(s).format("YYYY-MM-DD HH:mm:ss"),d=Se(s).format("YYYY-MM-DD HH:mm:ss"),c=Se(s).add(r.NoOfDays,"days").format("YYYY-MM-DD HH:mm:ss");var u=new Date(c);u.setDate(u.getDate()-1);const p=u.toISOString().slice(0,19).replace("T"," ");if(z)if("Start Free"===r.Status){const e={UserId:z,AppId:iA("AppId"),PricingId:r.PricingId,PurDate:l,PaymentStatus:"S",LicenseStatus:"A",Price:r.Price,ValidityStart:d,ValidityEnd:p,CreatedBy:iA("UserId")},a=await o(Gb(e)).unwrap();1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)?(I("success"),B(null==(n=null==a?void 0:a.data)?void 0:n.response),z?await te():await ne()):(I("error"),B(null==(i=null==a?void 0:a.data)?void 0:i.response))}else B("Free Already Used"),I("warning");else O(`${s6}signin`,{state:{AppId:iA("AppId"),PricingId:r.PricingId,PurDate:l,PaymentStatus:"S",LicenseStatus:"A",Price:r.Price,ValidityStart:d,ValidityEnd:p,PricingName:"Free",locationpathname:null==(a=window.location)?void 0:a.pathname}}),window.location.reload()})(re)},disabled:se,style:{border:"none",background:"transparent",color:"blue",textDecoration:"underline",cursor:se?"not-allowed":"pointer",padding:0,fontSize:"inherit",fontFamily:"inherit",margin:"auto"},children:"Free"})," ","trial."]}),Ye.jsx("div",{className:"pricing-toggle-wrapper",children:Ye.jsxs("div",{className:"pricing-toggle-bg",children:[Ye.jsx("button",{className:"pricing-toggle-btn"+("M"===C?" active":""),onClick:()=>ee("M"),defaultChecked:!0,children:"Monthly"}),Ye.jsxs("button",{className:"pricing-toggle-btn"+("Y"===C?" active":""),onClick:()=>ee("Y"),children:["Annual",Ye.jsx("span",{className:"pricing-save-badge",children:"Save 20%"})]})]})})]}),Ye.jsx("div",{className:"pricing-grid-wrapper",children:!n.hasOwnProperty("apiCall")&&Ye.jsx("div",{className:"pricing-grid",children:null==(l=null==re?void 0:re.filter((e=>{var t;return"FREE"!==(null==(t=e.PricingName)?void 0:t.toUpperCase())})))?void 0:l.map(((e,t)=>{var n,i,a,r,s;return Ye.jsxs("div",{className:"pricing-card"+((null==e?void 0:e.popular)?" popular":""),style:{borderColor:(null==e?void 0:e.popular)?$.darkColor:"",border:(null==e?void 0:e.popular)?`2px solid ${$.darkColor}`:"1px solid rgb(214 214 214)"},children:[(null==e?void 0:e.popular)&&Ye.jsx("div",{className:"pricing-popular-badge",style:{backgroundColor:$.darkColor?$.darkColor:""},children:"Most Popular"}),Ye.jsxs("div",{className:"pricing-card-content",children:[Ye.jsx("h3",{className:"pricing-plan-name",children:e.PricingName}),Ye.jsxs("p",{className:"planslogan",children:["Ideal for growing ",D]}),Ye.jsx("p",{className:"pricing-plan-desc",children:e.Description}),Ye.jsxs("div",{className:"pricing-price-row",children:[Ye.jsxs("span",{className:"pricing-price",children:["₹",e.DisplayPrice]}),"FREE"!==(null==(n=e.PricingName)?void 0:n.toUpperCase())&&Ye.jsxs("span",{className:"pricing-per-month",children:["/ ","Monthly"]})]}),Ye.jsx("button",{className:`pricing-plan-btn${(null==e?void 0:e.popular)?" popular":""} ${"Already Used"===e.Status?"disabled":""}`,onClick:()=>{var t,n,i;return ie(e,(null==(t=null==Q?void 0:Q[0])?void 0:t.RemainingDays)>0?"Extend Pack"===e.Status?"Extend Pack":"Extend Pack"==(null==(n=null==R?void 0:R[0])?void 0:n.Status)?(null==e?void 0:e.DisplayPrice)<(null==(i=null==R?void 0:R[0])?void 0:i.DisplayPrice)?"Switch":"Upgrade":"Switch":"Extend Pack"===e.Status?"Extend Pack":"Start Now")},style:{backgroundColor:(null==e?void 0:e.popular)?$.darkColor:""},children:(null==(i=null==Q?void 0:Q[0])?void 0:i.RemainingDays)>0?"Extend Pack"===e.Status?"Extend-Pack":"Extend Pack"===(null==(a=null==R?void 0:R[0])?void 0:a.Status)?(null==e?void 0:e.DisplayPrice)<(null==(r=null==R?void 0:R[0])?void 0:r.DisplayPrice)?"Switch":"Upgrade":"Switch":"Extend Pack"===e.Status?"Extend-Pack":"Start-Now"}),Ye.jsx("div",{className:"pricing-features-list",children:(null==(s=e.FeatureDetails)?void 0:s.length)>0?e.FeatureDetails.map(((e,t)=>Ye.jsxs("div",{className:"pricing-feature",children:[Ye.jsx(Gv,{className:"pricing-feature-icon included"}),Ye.jsxs("span",{children:[e.FeatDescription,e.FeatConstraint&&0!==e.FeatConstraint?` - ${e.FeatConstraint}`:""]})]},t))):Ye.jsx("div",{className:"pricing-feature no-features",children:"No features listed"})})]})]},t)}))})}),Ye.jsxs("div",{className:"pricing-footer",children:[Ye.jsx("p",{className:"pricing-footer-text",children:"One platform. All your branches. Fully customizable."}),Ye.jsx("button",{className:"pricing-footer-btn",style:{backgroundColor:$.darkColor?$.darkColor:"",color:$.lightcolor?"white":"#fff"},children:"Contact Our Sales Team"})]})]})})},o6=Object.freeze(Object.defineProperty({__proto__:null,default:l6},Symbol.toStringTag,{value:"Module"})),d6=({appPurchases:e,newplan:t,...n})=>{const i=a.useRef(null),r=um(),s=Tf(J_),[l,o]=a.useState(!1),[d,c]=a.useState(!1),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState(!1),v=a.useCallback((()=>{h(null),p(null)}),[]);a.useEffect((()=>{if((null==s?void 0:s.length)>0){let e=s.filter((e=>e.FieldName.includes("PreviewPricing3")));(null==e?void 0:e.length)>0&&m(!0),null==s||s.map((e=>{var t,n;return"Pricing3Header"==(null==e?void 0:e.FieldName)?null==(t=null==i?void 0:i.current)?void 0:t.setFieldsValue({Header:null==e?void 0:e.FieldValue}):"Pricing3Description"==(null==e?void 0:e.FieldName)?null==(n=null==i?void 0:i.current)?void 0:n.setFieldsValue({Description:null==e?void 0:e.FieldValue}):null}))}else m(!1)}),[s,d]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:u,messageData:A,onComplete:v}),Ye.jsx(l6,{data:[{FieldName:"Pricing2Title",FieldValue:"",FieldAddData:""},{FieldName:"Pricing2Header",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"Pricing2Description",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"PricingCatFeatures",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"PricingDescription",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"Monthly",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"Yearly",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"PricfreeBtn",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"PricBtn",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"PricPopName",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"PricPopPrice",FieldValue:"",FieldAddData:"https://paypre.in"},{FieldName:"PricPrimeName",FieldValue:"",FieldAddData:"https://paypre.in"}],apiCall:"data"}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>{c(!0)}}),Ye.jsx(ce,{onClick:()=>(async()=>{(null==s?void 0:s.length)>0?o(!0):(h("Please Add a Features data to open the Preview"),p("warning"))})()})]}),Ye.jsxs(j,{centered:!0,open:d,onOk:()=>c(!1),closeIcon:Ye.jsx(M,{onClick:()=>{var e;c(!1),null==(e=i.current)||e.resetFields()}}),width:600,children:[Ye.jsx("h1",{children:" Pricing"}),Ye.jsxs(I,{ref:i,onFinish:e=>{var t;let n=[{FieldName:"Pricing3Header",FieldValue:null==e?void 0:e.Header,FieldAddData:""},{FieldName:"Pricing3Description",FieldValue:null==e?void 0:e.Description,FieldAddData:""}];r(C_({postData:n})),h("Data Added Successfully"),p("success"),c(!1),null==(t=i.current)||t.resetFields()},children:[Ye.jsx("div",{style:{padding:"2rem 0rem"},children:Ye.jsxs("div",{style:{},children:[Ye.jsx(I.Item,{name:"Header",rules:[{required:!0,message:"Please Enter Header"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",fieldState:!0,fieldApi:!0,label:"Header",isOnChange:f,suffix:Ye.jsx(F,{title:"e.g SIMPLE, TRANSPARENT PRICING",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx(I.Item,{name:"Description",rules:[{required:!0,message:"Please Enter Description"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",fieldState:!0,fieldApi:!0,label:"Description",isOnChange:f,suffix:Ye.jsx(F,{title:"e.g Choose the package that suits you.No Contracts. No surprise fees.",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]})}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(Ry,{type:"submit",buttonText:"SUBMIT",icon:Ye.jsx(k,{})})})]})]}),Ye.jsx(j,{destroyOnClose:!0,centered:!0,open:l,onOk:()=>o(!1),onCancel:()=>o(!1),width:1e3,children:Ye.jsx(l6,{data:s})})]})},c6=()=>{const e=a.useRef(null),t=um(),[n,i]=a.useState(null),r=Tf(z_),[s,l]=a.useState(""),[o,d]=a.useState(!1),[c,u]=a.useState(!1),[p,A]=a.useState(!1),[h,f]=a.useState([]),[m,v]=a.useState(!1),[g,y]=a.useState(!1),[x,b]=a.useState(!1),[w,S]=a.useState(""),[N,T]=a.useState("");a.useEffect((()=>{L()}),[]);const E=e=>{i(e)},D=[{faqLists:[{faqQus:"",faqAns:""}]}],L=async()=>{await l(D)};a.useEffect((()=>{A(!0)}),[]);const U=()=>{var e,t;const n=r.filter(((e,t)=>"faqQuestion"==(null==e?void 0:e.FieldName))).map((e=>({faqQus:e.FieldValue,faqAns:e.FieldAddData})));l(n);let i=null==(e=r.filter(((e,t)=>"faqTitle"==(null==e?void 0:e.FieldName)))[0])?void 0:e.FieldValue;S(i);let a=null==(t=r.filter(((e,t)=>"faqImage"==(null==e?void 0:e.FieldName)))[0])?void 0:t.FieldValue;T(a),E(a)},_=a.useCallback((()=>{y(null),b(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:x,messageData:g,onComplete:_}),Ye.jsx("div",{className:"faqtemp1",children:Ye.jsx(XM,{})}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>((null==r?void 0:r.length)>0?(U(),v(!0),r.map(((t,n)=>{var i,a;return"faqTitle"==(null==t?void 0:t.FieldName)?null==(i=null==e?void 0:e.current)?void 0:i.setFieldsValue({faqtitle:null==t?void 0:t.FieldValue}):"faqImage"==(null==t?void 0:t.FieldName)?null==(a=null==e?void 0:e.current)?void 0:a.setFieldsValue({image:null==t?void 0:t.FieldValue}):null}))):v(!1),void u(!0))})," ",Ye.jsx(ce,{onClick:()=>(async()=>{(null==r?void 0:r.length)>0?d(!0):(y("Please add a faq data to open the preview"),b("warning"))})()})]}),Ye.jsx(j,{centered:!0,open:c,onOk:()=>u(!1),onCancel:()=>{return u(!1),void(null==(t=e.current)||t.resetFields());var t},width:1e3,children:Ye.jsx("div",{children:Ye.jsxs(I,{ref:e,onFinish:async e=>{var i;if(n){const a=e;a.faqImage=n;let r=[];(null==(i=[e])?void 0:i.map((e=>e.faqlists)))[0].map((e=>{r.push({FieldName:"faqQuestion",FieldValue:e.faqQus,FieldAddData:e.faqAns})})),r.push({FieldName:"faqTitle",FieldValue:e.faqtitle,FieldAddData:""}),r.push({FieldName:"faqImage",FieldValue:e.faqImage,FieldAddData:""}),f(a),await t(g_(r)),u(!1),d(!1),y("Data Added Successfully"),b("success")}else y("Please add a faq image"),b("warning")},children:[Ye.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-around"},children:[Ye.jsxs("div",{style:{},children:[Ye.jsx(I.Item,{initialValue:w,name:"faqtitle",rules:[{required:!0,message:"Please Enter Faq Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",name:"faqtitle",fieldState:!0,fieldApi:!0,isOnChange:!!m,label:"Faq Title",autoComplete:"off",field:"",id:"",suffix:Ye.jsx(F,{title:"Frequently asked questions about your application",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsxs("div",{className:"upload_btn",children:[Ye.jsx("p",{children:"Upload Faq Banner"}),Ye.jsx(Yy,{singleImage:!0,updateImageUrl:E,ImageLink:N})]})]}),Ye.jsx("div",{style:{},children:Ye.jsx(I.List,{name:"faqlists",initialValue:s,children:(e,{add:t,remove:n})=>Ye.jsxs(Ye.Fragment,{children:[e.map((t=>Ye.jsx(P,{style:{display:"flex",flexDirection:"column",marginBottom:2,rowGap:0},align:"baseline",children:Ye.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[Ye.jsx(I.Item,{...t,name:[t.name,"faqQus"],fieldKey:[t.fieldKey,"faqQus"],rules:[{required:!0,message:"Please Enter Faq Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",name:"",fieldState:!0,fieldApi:!0,isOnChange:!!m,label:"FAQ Question",field:"",id:"",suffix:Ye.jsx(F,{title:"How to signin?",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx(I.Item,{...t,name:[t.name,"faqAns"],fieldKey:[t.fieldKey,"faqAns"],rules:[{required:!0,message:"Please Enter Faq Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",name:"",fieldState:!0,fieldApi:!0,isOnChange:!!m,label:"FAQ Answer",field:"",id:"",suffix:Ye.jsx(F,{title:"How to buy a application",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]}),1!==e.length&&Ye.jsx(de,{style:{color:"#FF4D4F",fontSize:"20px",padding:"10px",alignContent:"center"},onClick:()=>n(t.name)})]})},t.key))),Ye.jsx(I.Item,{children:Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(C,{style:{color:"white",backgroundColor:"#37943C",borderRadius:50,fontSize:"20px"},onClick:()=>t()})})})]})})})]}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(Ry,{type:"submit",buttonText:"SAVE",icon:Ye.jsx(k,{})})})]})})}),Ye.jsx(j,{centered:!0,open:o,onOk:()=>d(!1),onCancel:()=>d(!1),width:"1000",children:Ye.jsx(XM,{data:r})})]})},u6=()=>{const e=a.useRef(null),t=um(),n=Tf(z_),[i,r]=a.useState([]),[s,l]=a.useState(!1),[o,d]=a.useState(!1),[c,u]=a.useState(!1),[p,A]=a.useState(!1),[h,f]=a.useState(!1),[m,v]=a.useState(!1),[g,y]=a.useState("");a.useEffect((()=>{b()}),[]);const x=[{faqLists:[{faqQus:"",faqAns:""}]}],b=async()=>{await r(x)};a.useEffect((()=>{f(!0)}),[n]);const w=()=>{(null==n?void 0:n.length)>0?(!function(){var e;let t=n.filter(((e,t)=>"faqQuestion"==(null==e?void 0:e.FieldName)));const i=null==t?void 0:t.map((e=>({faqQus:e.FieldValue,faqAns:e.FieldAddData})));r(i);let a=n.filter(((e,t)=>"faqTitle"==(null==e?void 0:e.FieldName))),s=null==(e=a[0])?void 0:e.FieldValue;y(s)}(),v(!0),null==n||n.map(((t,n)=>{var i;return null==(i=null==e?void 0:e.current)?void 0:i.setFieldsValue({[null==t?void 0:t.FieldName]:null==t?void 0:t.FieldValue})}))):v(!1),A(!0)};const S=a.useCallback((()=>{l(null),d(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:o,messageData:s,onComplete:S}),Ye.jsx(eR,{}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>w()})," ",Ye.jsx(ce,{onClick:()=>(async()=>{(null==n?void 0:n.length)>0?u(!0):(l("Please add a faq data to open the preview"),d("warning"))})()})]}),Ye.jsx(j,{centered:!0,open:p,onOk:()=>A(!1),onCancel:()=>{return A(!1),void(null==(t=e.current)||t.resetFields());var t},width:1e3,children:Ye.jsx("div",{children:Ye.jsxs(I,{ref:e,onFinish:async e=>{var n,i;let a=[];null==(i=(null==(n=[e])?void 0:n.map((e=>e.faqlists)))[0])||i.map((e=>{a.push({FieldName:"faqQuestion",FieldValue:e.faqQus,FieldAddData:e.faqAns})})),a.push({FieldName:"faqTitle",FieldValue:e.faqtitle,FieldAddData:""}),a.push({FieldName:"faqImage",FieldValue:"",FieldAddData:""}),await t(g_(a)),A(!1),u(!1),l("Data Added Successfully"),d("success")},children:[Ye.jsx("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center"},children:Ye.jsxs("div",{style:{},children:[Ye.jsx(I.Item,{initialValue:g,name:"faqtitle",rules:[{required:!0,message:"Please Enter Faq Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",name:"faqtitle",autoComplete:"off",fieldState:!0,fieldApi:!0,isOnChange:!!m,label:"Faq Title",field:"",id:"",suffix:Ye.jsx(F,{title:"Frequently asked questions about your application",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx("div",{style:{},children:Ye.jsx(I.List,{name:"faqlists",initialValue:i,children:(e,{add:t,remove:n})=>Ye.jsxs(Ye.Fragment,{children:[null==e?void 0:e.map((t=>Ye.jsxs(P,{style:{display:"flex",flexWrap:"wrap",marginBottom:2,rowGap:0},align:"baseline",children:[Ye.jsx(I.Item,{...t,name:[t.name,"faqQus"],fieldKey:[t.fieldKey,"faqQus"],rules:[{required:!0,message:"Please Enter FAQ Qus"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",name:"",fieldState:!0,fieldApi:!0,isOnChange:!!m,label:"FAQ Question",field:"",id:"",suffix:Ye.jsx(F,{title:"How to signin?",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx(I.Item,{...t,name:[t.name,"faqAns"],fieldKey:[t.fieldKey,"faqAns"],rules:[{required:!0,message:"Please Enter FAQ Answer"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",name:"",fieldState:!0,fieldApi:!0,isOnChange:!!m,label:"FAQ Answer",field:"",id:"",suffix:Ye.jsx(F,{title:"How to buy a application",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),1!==(null==e?void 0:e.length)&&Ye.jsx(de,{style:{color:"#FF4D4F",fontSize:"20px",padding:"10px",alignContent:"center"},onClick:()=>n(t.name)})]},t.key))),Ye.jsx(I.Item,{children:Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(C,{style:{color:"white",backgroundColor:"#37943C",borderRadius:50,fontSize:"20px"},onClick:()=>t()})})})]})})})]})}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(Ry,{type:"submit",buttonText:"SAVE",icon:Ye.jsx(k,{})})})]})})}),Ye.jsx(j,{centered:!0,open:c,onOk:()=>u(!1),onCancel:()=>u(!1),width:"1500",children:Ye.jsx(eR,{data:n})})]})},p6=()=>{const e=a.useRef(null),t=um(),n=Tf($_),[i,r]=a.useState(!1),[s,l]=a.useState(!1),[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState(!1),[h,f]=a.useState(),[m,v]=a.useState(),[g,y]=a.useState(),[x,b]=a.useState(),[w,S]=a.useState(),[N,T]=a.useState([{fieldName:""}]),[E,D]=a.useState([[{footerList:"",footerSublist:""}]]),L=a.useCallback((()=>{u(null),d(null)}),[]),U=()=>{(null==n?void 0:n.length)>0?((()=>{let e=n.filter((e=>{var t,n,i;return(null==(t=null==e?void 0:e.FieldName)?void 0:t.includes("Header"))&&!((null==(n=null==e?void 0:e.FieldName)?void 0:n.includes("Footer"))||(null==(i=null==e?void 0:e.FieldName)?void 0:i.includes("Social")))})).map((e=>({fieldName:null==e?void 0:e.FieldValue}))),t=e.map(((e,t)=>n.filter((e=>{var n;return e.FieldName.includes(`Header${t+1}`)&&(null==(n=null==e?void 0:e.FieldName)?void 0:n.includes("Footer"))})).map((e=>({footerList:null==e?void 0:e.FieldValue,footerSublist:null==e?void 0:e.FieldAddData})))));e.length>0&&T(e),t.length>0&&D(t),null==n||n.map((e=>{"FacebookLink1"==e.FieldName&&f(e.FieldValue),"YoutubeLink1"===e.FieldName&&v(e.FieldValue),"InstagramLink1"==e.FieldName&&b(e.FieldValue),"TwiterLink1"==e.FieldName&&y(e.FieldValue),"HeaderSocial1"==e.FieldName&&S(e.FieldValue)}))})(),A(!0),null==n||n.map(((e,t)=>{}))):A(!1),r(!0)};return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:o,messageData:c,onComplete:L}),Ye.jsx(YM,{}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>U()}),Ye.jsx(ce,{onClick:()=>{n.length>0&&n.filter((e=>!e.FieldName.includes("Sub"))).length>0?l(!0):(u("Please add a footer data to open the preview"),d("warning"))}})]}),Ye.jsx(j,{centered:!0,open:i,onOk:()=>r(!1),onCancel:()=>r(!1),children:Ye.jsxs(I,{ref:e,onFinish:async e=>{var n,i;const a=e=>""===e||null==e,s=!(null==(i=null==(n=null==e?void 0:e.TitleNames)?void 0:n.items)?void 0:i.some((e=>{var t;return!!(null==e?void 0:e.fieldName)&&(null==(t=null==e?void 0:e.Items)?void 0:t.some((e=>!a(null==e?void 0:e.footerList)||!a(null==e?void 0:e.footerSublist))))}))),l=a(e.socialTitle)&&a(e.FacebookLink)&&a(e.youtubeLink)&&a(e.instagramLink)&&a(e.twiterLink);if(s&&l)return u("All fields are empty. Please fill out the form."),void d("error");let o=[];e.TitleNames.items.map(((e,t)=>{o.push({FieldName:`Header${t+1}`,FieldValue:e.fieldName,FieldAddData:""}),e.Items.map(((e,n)=>{o.push({FieldName:`Header${t+1}Footer${n+1}`,FieldValue:e.footerList,FieldAddData:e.footerSublist})}))})),o.push({FieldName:"HeaderSocial1",FieldValue:e.socialTitle,FieldAddData:""},{FieldName:"FacebookLink1",FieldValue:e.FacebookLink,FieldAddData:""},{FieldName:"YoutubeLink1",FieldValue:e.youtubeLink,FieldAddData:""},{FieldName:"InstagramLink1",FieldValue:e.instagramLink,FieldAddData:""},{FieldName:"TwiterLink1",FieldValue:e.twiterLink,FieldAddData:""}),await t(w_(o)),u("Data Added Successfully"),d("success"),r(!1)},children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"1rem",flexWrap:"wrap"},className:"footerForm",children:[Ye.jsx("div",{style:{display:"flex",flexDirection:"row",gap:"2rem",flexWrap:"wrap"},children:Ye.jsx(I.List,{name:["TitleNames","items"],initialValue:N,children:(e,{add:t,remove:n})=>Ye.jsx(Ye.Fragment,{children:e.map((({key:i,name:a})=>Ye.jsxs(P,{style:{display:"flex"},align:"baseline",children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[Ye.jsx(I.Item,{name:[a,"fieldName"],rules:[{message:"Please Enter Footer Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{name:`${a}.footerTitle`,fieldState:!0,isOnChange:!!p,label:"Footer Title",autocomplete:"off",suffix:Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(F,{title:"Eg.Explore(Title)",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})}),Ye.jsx(C,{onClick:()=>t()})]})})}),Ye.jsx("div",{style:{margin:"1rem 1rem"},children:e.length>1&&Ye.jsx(de,{onClick:()=>n(a)})})]}),Ye.jsx(I.List,{name:[a,"Items"],initialValue:E[i]?E[i]:[{footerList:"",footerSublist:""}],children:(e,{add:t,remove:n})=>Ye.jsx(Ye.Fragment,{children:e.map((({key:i,name:a})=>Ye.jsxs(P,{style:{display:"flex"},align:"baseline",children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[Ye.jsx(I.Item,{name:[a,"footerList"],fieldKey:[a,"footerList"],rules:[{message:"Please Enter Footer List"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{name:`${a}.footerList`,fieldState:!0,isOnChange:!!p,label:"Footer List",autocomplete:"off",suffix:Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(F,{title:"Eg.What is POZO ?(List of Titles)",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})}),Ye.jsx(C,{onClick:()=>t()})]})})}),Ye.jsx("div",{style:{margin:"1rem 1rem"},children:e.length>1&&Ye.jsx(de,{onClick:()=>n(a)})})]}),Ye.jsx(I.Item,{name:[a,"footerSublist"],fieldKey:[a,"footerSublist"],rules:[{message:"Please Enter Footer Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{name:`${a}.footerSublist`,fieldState:!0,isOnChange:!!p,label:"Footer Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.Want Access(List of Titles)",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]},i)))})})]},i)))})})}),Ye.jsxs("div",{children:[Ye.jsx(I.Item,{name:"socialTitle",initialValue:w,rules:[{message:"Please Enter Footer Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"Footer Title",autocomplete:"off",suffix:Ye.jsx(F,{title:"Join the conversation(Social media's)",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsxs("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:"column",gap:"0.5rem"},children:[Ye.jsxs("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:"row",gap:"1rem"},children:[Ye.jsx(I.Item,{name:"FacebookLink",initialValue:h,rules:[{message:"Please Enter Facebook Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"Facebook Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.Facebook(https://www.facebook.com/ )",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx(I.Item,{name:"youtubeLink",initialValue:m,rules:[{message:"Please Enter YouTube Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"YouTube Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.YouTube( https://www.youtube.com/ )",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]}),Ye.jsxs("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:"row",gap:"1rem"},children:[Ye.jsx(I.Item,{name:"instagramLink",initialValue:x,rules:[{message:"Please Enter Instagram Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"Instagram Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.Instagram( https://www.instagram.com/ )",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx(I.Item,{name:"twiterLink",initialValue:g,rules:[{message:"Please Enter Twiter Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"Twiter Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.Twitter( https://twitter.com/ )",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]})]})]})]}),Ye.jsx("div",{style:{float:"right"},children:Ye.jsx(Ry,{type:"submit",buttonText:"SAVE",icon:Ye.jsx(k,{})})})]})}),Ye.jsx(j,{destroyOnClose:!0,centered:!0,open:s,onOk:()=>l(!1),onCancel:()=>l(!1),width:1300,children:Ye.jsx("div",{className:"pointerModal",children:Ye.jsx(YM,{data:n})})})]})},A6=()=>{const e=a.useRef(null),t=Tf($_),n=um(),[i,r]=a.useState(!1),[s,l]=a.useState(!1),[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState(!1),[h,f]=a.useState(),[m,v]=a.useState(),[g,y]=a.useState(),[x,b]=a.useState(),[w,S]=a.useState([{fieldName:""}]),[N,T]=a.useState([[{footerList:"",footerSublist:""}]]),E=a.useCallback((()=>{u(null),d(null)}),[]);const D=()=>{(null==t?void 0:t.length)>0?((()=>{let e=t.filter((e=>{var t,n,i;return(null==(t=null==e?void 0:e.FieldName)?void 0:t.includes("Header"))&&!((null==(n=null==e?void 0:e.FieldName)?void 0:n.includes("Footer"))||(null==(i=null==e?void 0:e.FieldName)?void 0:i.includes("Social")))})).map((e=>({fieldName:null==e?void 0:e.FieldValue}))),n=e.map(((e,n)=>t.filter((e=>{var t;return e.FieldName.includes(`Header${n+1}`)&&(null==(t=null==e?void 0:e.FieldName)?void 0:t.includes("Footer"))})).map((e=>({footerList:null==e?void 0:e.FieldValue,footerSublist:null==e?void 0:e.FieldAddData})))));e.length>0&&S(e),n.length>0&&T(n),null==t||t.map((e=>{"FacebookLink1"==e.FieldName&&f(e.FieldValue),"YoutubeLink1"===e.FieldName&&v(e.FieldValue),"InstagramLink1"==e.FieldName&&b(e.FieldValue),"TwiterLink1"==e.FieldName&&y(e.FieldValue)}))})(),A(!0),null==t||t.map(((e,t)=>{}))):A(!1),r(!0)};return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:o,messageData:c,onComplete:E}),Ye.jsx(OM,{}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>D()}),Ye.jsx(ce,{onClick:()=>{t.length>0&&t.filter((e=>e.FieldName.includes("Sub"))).length>0?l(!0):(u("Please Add Data"),d("warning"))}})]}),Ye.jsx(j,{centered:!0,open:i,onOk:()=>r(!1),onCancel:()=>r(!1),children:Ye.jsxs(I,{ref:e,onFinish:async e=>{var t,i;const a=e=>""===e||null==e,s=!(null==(i=null==(t=null==e?void 0:e.TitleNames)?void 0:t.items)?void 0:i.some((e=>{var t;return!!(null==e?void 0:e.fieldName)&&(null==(t=null==e?void 0:e.Items)?void 0:t.some((e=>!a(null==e?void 0:e.footerList)||!a(null==e?void 0:e.footerSublist))))}))),l=a(e.facbookLink)&&a(e.youtubeLink)&&a(e.instagramLink)&&a(e.twiterLink);if(s&&l)return u("All fields are empty. Please fill out the form."),void d("error");let o=[];e.TitleNames.items.map(((e,t)=>{o.push({FieldName:`HeaderSub${t+1}`,FieldValue:e.fieldName,FieldAddData:""}),e.Items.map(((e,n)=>{o.push({FieldName:`HeaderSub${t+1}FooterSub${n+1}`,FieldValue:e.footerList,FieldAddData:e.footerSublist})}))})),o.push({FieldName:"FaceBookLinkSub",FieldValue:e.facbookLink,FieldAddData:""},{FieldName:"YoutubeLinkSub",FieldValue:e.youtubeLink,FieldAddData:""},{FieldName:"InstagramLinkSub",FieldValue:e.instagramLink,FieldAddData:""},{FieldName:"TwiterLinkSub",FieldValue:e.twiterLink,FieldAddData:""}),await n(w_(o)),u("Data Added Successfully"),d("success"),r(!1)},children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"1rem",flexWrap:"wrap"},className:"footerForm",children:[Ye.jsx("div",{style:{display:"flex",flexDirection:"row",gap:"2rem",flexWrap:"wrap"},children:Ye.jsx(I.List,{name:["TitleNames","items"],initialValue:w,children:(e,{add:t,remove:n})=>Ye.jsx(Ye.Fragment,{children:e.map((({key:i,name:a})=>Ye.jsxs(P,{style:{display:"flex"},align:"baseline",children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[Ye.jsx(I.Item,{name:[a,"fieldName"],rules:[{message:"Please Enter Footer Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{name:`${a}.footerTitle`,fieldState:!0,isOnChange:!!p,label:"Footer Title",autocomplete:"off",suffix:Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(F,{title:"Eg.Explore(Title)",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})}),Ye.jsx(C,{onClick:()=>t()})]})})}),Ye.jsx("div",{style:{margin:"1rem 1rem"},children:e.length>1&&Ye.jsx(de,{onClick:()=>n(a)})})]}),Ye.jsx(I.List,{name:[a,"Items"],initialValue:N[i]?N[i]:[{footerList:"",footerSublist:""}],children:(e,{add:t,remove:n})=>Ye.jsx(Ye.Fragment,{children:e.map((({key:i,name:a})=>Ye.jsxs(P,{style:{display:"flex"},align:"baseline",children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[Ye.jsx(I.Item,{name:[a,"footerList"],fieldKey:[a,"footerList"],rules:[{message:"Please Enter Footer List"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{name:`${a}.footerList`,fieldState:!0,isOnChange:!!p,label:"Footer List",autocomplete:"off",suffix:Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(F,{title:"Eg.What is Pozo ?(List of Titles)",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})}),Ye.jsx(C,{onClick:()=>t()})]})})}),Ye.jsx("div",{style:{margin:"1rem 1rem"},children:e.length>1&&Ye.jsx(de,{onClick:()=>n(a)})})]}),Ye.jsx(I.Item,{name:[a,"footerSublist"],fieldKey:[a,"footerSublist"],rules:[{message:"Please Enter Footer Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{name:`${a}.footerSublist`,fieldState:!0,isOnChange:!!p,label:"Footer Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.Want Access(List of Titles)",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]},i)))})})]},i)))})})}),Ye.jsx("div",{children:Ye.jsxs("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:"column",gap:"0.5rem"},children:[Ye.jsxs("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:"row",gap:"1rem"},children:[Ye.jsx(I.Item,{initialValue:h,name:"facbookLink",rules:[{message:"Please Enter Whatsup Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"Facebook Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.Facebook( https://www.facebook.com/ )",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx(I.Item,{name:"youtubeLink",initialValue:m,rules:[{message:"Please Enter YouTube Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"YouTube Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.YouTube( https://www.youtube.com/ )",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]}),Ye.jsxs("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:"row",gap:"1rem"},children:[Ye.jsx(I.Item,{name:"instagramLink",initialValue:x,rules:[{message:"Please Enter Instagram Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"Instagram Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.Instagram( https://www.instagram.com/ )",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx(I.Item,{name:"twiterLink",initialValue:g,rules:[{message:"Please Enter Twiter Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"Twitter Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.Twitter( https://twitter.com/ )",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]})]})})]}),Ye.jsx("div",{style:{float:"right"},children:Ye.jsx(Ry,{type:"submit",buttonText:"SAVE",icon:Ye.jsx(k,{})})})]})}),Ye.jsx(j,{destroyOnClose:!0,centered:!0,open:s,onOk:()=>l(!1),onCancel:()=>l(!1),width:1e3,children:Ye.jsx("div",{className:"pointerModal",children:Ye.jsx(OM,{data:t})})})]})},h6=e=>{const t=Tf(L_),[n,i]=a.useState({body:{backgroundcolor:"#f3f3f3",buttonActivebackgroundColor:"#F97068",buttonbgColor:"#D9D9D9",contColor:"#CCCCCC",textColor:"#333",tmpbtnheight:"10px",activetmpbtnheight:"20px",fontSize:"16px",fontFamily:"Poppins",display:"flex",flexWrap:"wrap",textAlign:"left",flexDirection:"row",columnGap:"2rem",margin:"0px 0px"},footer:{fontSize:"16px",fontFamily:"Poppins",padding:"3rem 1rem"}}),r=e.hasOwnProperty("data")?e.data:[{FieldName:"Header1",FieldValue:"",FieldAddData:""},{FieldName:"Header1Footer1",FieldValue:"",FieldAddData:""},{FieldName:"Header1Footer2",FieldValue:"",FieldAddData:""},{FieldName:"Header1Footer3",FieldValue:"",FieldAddData:""},{FieldName:"Header2",FieldValue:"",FieldAddData:""},{FieldName:"Header2Footer1",FieldValue:"",FieldAddData:""},{FieldName:"Header2Footer2",FieldValue:"",FieldAddData:""},{FieldName:"Header2Footer3",FieldValue:"",FieldAddData:""},{FieldName:"Header3",FieldValue:"",FieldAddData:""},{FieldName:"Header3Footer1",FieldValue:"",FieldAddData:""},{FieldName:"Header3Footer2",FieldValue:"",FieldAddData:""},{FieldName:"Header3Footer3",FieldValue:"",FieldAddData:""}];Tf(L_);const[s,l]=a.useState(),[o,d]=a.useState(),[c,u]=a.useState(),[p,A]=a.useState(),h=Tf(D_);a.useEffect((()=>{var t;null==(t=null==e?void 0:e.data)||t.map((e=>{"FaceBookLinkSub"==e.FieldName&&l(e.FieldValue),"YoutubeLinkSub"===e.FieldName&&d(e.FieldValue),"InstagramLinkSub"==e.FieldName&&u(e.FieldValue),"TwiterLinkSub"==e.FieldName&&A(e.FieldValue)}),[])}),[e.data]);return Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:e.hasOwnProperty("data")?"maindiv":"maindivempdata",children:Ye.jsxs("footer",{className:"footer-section",children:[Ye.jsxs("div",{className:"footer-main",children:[Ye.jsxs("div",{className:"footer-brand-col",children:[Ye.jsx("div",{className:"footer-logo-row",children:Ye.jsx("span",{className:"footer-logo",children:Ye.jsx("img",{src:Bm,alt:"POZO LOGO"})})}),Ye.jsx("p",{style:{fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},className:"footer-desc",children:"Modern POS solution for restaurants of all sizes. Streamline operations, boost sales, and delight customers."}),Ye.jsxs("div",{className:"footer-socials",children:[Ye.jsx("a",{href:"#",className:"footer-social",children:Ye.jsx(km,{})}),Ye.jsx("a",{href:"#",className:"footer-social",children:Ye.jsx(Lm,{})}),Ye.jsx("a",{href:"#",className:"footer-social",children:Ye.jsx(Tm,{})}),Ye.jsx("a",{href:"#",className:"footer-social",children:Ye.jsx(Em,{})})]})]}),Ye.jsxs("div",{style:n.body,children:[(()=>{let e=r.filter((e=>e.FieldName.includes("Header")&&!e.FieldName.includes("Footer")));return a.useEffect((()=>{t.head,t.para&&a5.load({google:{families:[t.head,t.para]}})}),[t.head,t.para]),Ye.jsx(Ye.Fragment,{children:e.map((e=>{var n;return Ye.jsxs("div",{style:{display:"flex","flex-direction":"column",rowGap:"0.5rem"},children:[Ye.jsx("p",{className:(null==(n=e.FieldValue)?void 0:n.length)>0?"ftrtmplthdr":"ftrtmplthdrWithoutData",style:{fontFamily:(null==t?void 0:t.head)?null==t?void 0:t.head:""},children:0==e.FieldValue.length?" ":e.FieldValue}),r.filter((t=>t.FieldName.includes(e.FieldName)&&t.FieldName.includes("Footer"))).map((e=>{var n,i;return Ye.jsx("div",{className:(null==(n=e.FieldValue)?void 0:n.length)>0?"footer-links-list":"ftrtmpltlistwithoutData",children:Ye.jsx(An,{className:(null==(i=e.FieldAddData)?void 0:i.length)>0?"ftrlink":"ftrlinkwithOutData",to:e.FieldAddData,style:{fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},children:e.FieldValue})})}))]})}))})})()," "]}),Ye.jsxs("div",{className:"footer-links-col",children:[Ye.jsx("h3",{style:{fontFamily:(null==t?void 0:t.head)?null==t?void 0:t.head:""},className:"footer-links-title",children:"Resources"}),Ye.jsxs("ul",{className:"footer-links-list",children:[Ye.jsx("li",{children:Ye.jsx("a",{style:{fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},href:"#",children:"Blog"})}),Ye.jsx("li",{children:Ye.jsx("a",{style:{fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},href:"#",children:"Documentation"})}),Ye.jsx("li",{children:Ye.jsx("a",{style:{fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},href:"#",children:"Support Center"})}),Ye.jsx("li",{children:Ye.jsx("a",{style:{fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},href:"#faq",children:"FAQ"})}),Ye.jsx("li",{children:Ye.jsx("a",{style:{fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},href:"#",children:"Community"})})]})]}),Ye.jsxs("div",{className:"footer-links-col",children:[Ye.jsx("h3",{style:{fontFamily:(null==t?void 0:t.head)?null==t?void 0:t.head:""},className:"footer-links-title",children:"Contact"}),Ye.jsxs("ul",{className:"footer-contact-list",children:[Ye.jsxs("li",{style:{fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},children:[Ye.jsx(uv,{className:"footer-contact-icon"})," support@pozoapp.com"]}),Ye.jsxs("li",{style:{fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},children:[Ye.jsx(Nv,{className:"footer-contact-icon"})," 73 24 00 00 11"]})]}),Ye.jsx("button",{className:"footer-contact-btn",style:{backgroundColor:h.darkColor?h.darkColor:"#000",color:"#fff",fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},children:"Contact Sales"})]})]}),Ye.jsxs("div",{className:"footer-bottom",children:[Ye.jsx("p",{style:{fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},className:"footer-copy",children:"© 2025 PozoApp. All rights reserved."}),Ye.jsxs("div",{className:"footer-bottom-links",children:[Ye.jsx("a",{style:{fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},href:"#",children:"Privacy Policy"}),Ye.jsx("a",{style:{fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},href:"#",children:"Terms of Service"}),Ye.jsx("a",{style:{fontFamily:(null==t?void 0:t.para)?null==t?void 0:t.para:""},href:"#",children:"Cookies"})]})]})]})})})},f6=Object.freeze(Object.defineProperty({__proto__:null,default:h6},Symbol.toStringTag,{value:"Module"})),m6=()=>{const e=a.useRef(null),t=Tf($_),n=um(),[i,r]=a.useState(!1),[s,l]=a.useState(!1),[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState(!1),[h,f]=a.useState(),[m,v]=a.useState(),[g,y]=a.useState(),[x,b]=a.useState(),[w,S]=a.useState([{fieldName:""}]),[N,T]=a.useState([[{footerList:"",footerSublist:""}]]),E=a.useCallback((()=>{u(null),d(null)}),[]);const D=()=>{(null==t?void 0:t.length)>0?((()=>{let e=t.filter((e=>{var t,n,i;return(null==(t=null==e?void 0:e.FieldName)?void 0:t.includes("Header"))&&!((null==(n=null==e?void 0:e.FieldName)?void 0:n.includes("Footer"))||(null==(i=null==e?void 0:e.FieldName)?void 0:i.includes("Social")))})).map((e=>({fieldName:null==e?void 0:e.FieldValue}))),n=e.map(((e,n)=>t.filter((e=>{var t;return e.FieldName.includes(`Header${n+1}`)&&(null==(t=null==e?void 0:e.FieldName)?void 0:t.includes("Footer"))})).map((e=>({footerList:null==e?void 0:e.FieldValue,footerSublist:null==e?void 0:e.FieldAddData})))));e.length>0&&S(e),n.length>0&&T(n),null==t||t.map((e=>{"FacebookLink1"==e.FieldName&&f(e.FieldValue),"YoutubeLink1"===e.FieldName&&v(e.FieldValue),"InstagramLink1"==e.FieldName&&b(e.FieldValue),"TwiterLink1"==e.FieldName&&y(e.FieldValue)}))})(),A(!0),null==t||t.map(((e,t)=>{}))):A(!1),r(!0)};return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:o,messageData:c,onComplete:E}),Ye.jsx(h6,{}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>D()}),Ye.jsx(ce,{onClick:()=>{t.length>0&&t.filter((e=>e.FieldName.includes("Sub"))).length>0?l(!0):(u("Please Add Data"),d("warning"))}})]}),Ye.jsx(j,{centered:!0,open:i,onOk:()=>r(!1),onCancel:()=>r(!1),children:Ye.jsxs(I,{ref:e,onFinish:async e=>{var t,i;const a=e=>""===e||null==e,s=!(null==(i=null==(t=null==e?void 0:e.TitleNames)?void 0:t.items)?void 0:i.some((e=>{var t;return!!(null==e?void 0:e.fieldName)&&(null==(t=null==e?void 0:e.Items)?void 0:t.some((e=>!a(null==e?void 0:e.footerList))))}))),l=a(e.facbookLink)&&a(e.youtubeLink)&&a(e.instagramLink)&&a(e.twiterLink);if(s&&l)return u("All fields are empty. Please fill out the form."),void d("error");let o=[];e.TitleNames.items.map(((e,t)=>{o.push({FieldName:`HeaderSub${t+1}`,FieldValue:e.fieldName,FieldAddData:""}),e.Items.map(((e,n)=>{o.push({FieldName:`HeaderSub${t+1}FooterSub${n+1}`,FieldValue:e.footerList,FieldAddData:""})}))})),o.push({FieldName:"FaceBookLinkSub",FieldValue:e.facbookLink,FieldAddData:""},{FieldName:"YoutubeLinkSub",FieldValue:e.youtubeLink,FieldAddData:""},{FieldName:"InstagramLinkSub",FieldValue:e.instagramLink,FieldAddData:""},{FieldName:"TwiterLinkSub",FieldValue:e.twiterLink,FieldAddData:""}),await n(w_(o)),u("Data Added Successfully"),d("success"),r(!1)},children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"1rem",flexWrap:"wrap"},className:"footerForm",children:[Ye.jsx("div",{style:{display:"flex",flexDirection:"row",gap:"2rem",flexWrap:"wrap"},children:Ye.jsx(I.List,{name:["TitleNames","items"],initialValue:w,children:(e,{add:t,remove:n})=>Ye.jsx(Ye.Fragment,{children:e.map((({key:i,name:a})=>Ye.jsxs(P,{style:{display:"flex"},align:"baseline",children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[Ye.jsx(I.Item,{name:[a,"fieldName"],rules:[{message:"Please Enter Footer Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{name:`${a}.footerTitle`,fieldState:!0,isOnChange:!!p,label:"Footer Title",autocomplete:"off",suffix:Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(F,{title:"Eg.Explore(Title)",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})}),Ye.jsx(C,{onClick:()=>t()})]})})}),Ye.jsx("div",{style:{margin:"1rem 1rem"},children:e.length>1&&Ye.jsx(de,{onClick:()=>n(a)})})]}),Ye.jsx(I.List,{name:[a,"Items"],initialValue:N[i]?N[i]:[{footerList:"",footerSublist:""}],children:(e,{add:t,remove:n})=>Ye.jsx(Ye.Fragment,{children:e.map((({key:i,name:a})=>Ye.jsxs(P,{style:{display:"flex"},align:"baseline",children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[Ye.jsx(I.Item,{name:[a,"footerList"],fieldKey:[a,"footerList"],rules:[{message:"Please Enter Footer List"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{name:`${a}.footerList`,fieldState:!0,isOnChange:!!p,label:"Footer List",autocomplete:"off",suffix:Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(F,{title:"Eg.What is Pozo ?(List of Titles)",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})}),Ye.jsx(C,{onClick:()=>t()})]})})}),Ye.jsx("div",{style:{margin:"1rem 1rem"},children:e.length>1&&Ye.jsx(de,{onClick:()=>n(a)})})]}),Ye.jsx(I.Item,{name:[a,"footerSublist"],fieldKey:[a,"footerSublist"],rules:[{message:"Please Enter Footer Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{name:`${a}.footerSublist`,fieldState:!0,isOnChange:!!p,label:"Footer Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.Want Access(List of Titles)",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]},i)))})})]},i)))})})}),Ye.jsx("div",{children:Ye.jsxs("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:"column",gap:"0.5rem"},children:[Ye.jsxs("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:"row",gap:"1rem"},children:[Ye.jsx(I.Item,{initialValue:h,name:"facbookLink",rules:[{message:"Please Enter Whatsup Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"Facebook Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.Facebook( https://www.facebook.com/ )",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx(I.Item,{name:"youtubeLink",initialValue:m,rules:[{message:"Please Enter YouTube Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"YouTube Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.YouTube( https://www.youtube.com/ )",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]}),Ye.jsxs("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:"row",gap:"1rem"},children:[Ye.jsx(I.Item,{name:"instagramLink",initialValue:x,rules:[{message:"Please Enter Instagram Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"Instagram Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.Instagram( https://www.instagram.com/ )",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx(I.Item,{name:"twiterLink",initialValue:g,rules:[{message:"Please Enter Twiter Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"Twitter Link",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.Twitter( https://twitter.com/ )",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]})]})})]}),Ye.jsx("div",{style:{float:"right"},children:Ye.jsx(Ry,{type:"submit",buttonText:"SAVE",icon:Ye.jsx(k,{})})})]})}),Ye.jsx(j,{destroyOnClose:!0,centered:!0,open:s,onOk:()=>l(!1),onCancel:()=>l(!1),width:1e3,children:Ye.jsx("div",{className:"pointerModal",children:Ye.jsx(h6,{data:t})})})]})},v6=e=>{const[t,n]=a.useState(!1),[i,r]=a.useState(!1),[s,l]=a.useState(!1),o=Tf(L_),d=(e,t)=>{l(t),r(e),n(!0)};a.useEffect((()=>{LU.init({duration:1e3})}),[]);const c=e.hasOwnProperty("data")?null==e?void 0:e.data:[{FieldName:"Feature1Link",FieldValue:"",FieldAddData:""},{FieldName:"Feature1subName1",FieldValue:"",FieldAddData:""},{FieldName:"Feature1Image",FieldValue:"",FieldAddData:""}];const u=function(e){let t=0;for(const n of e)n.FieldName.includes("subName1")&&t++;return t}(c),[p,A]=a.useState(!1);return a.useEffect((()=>{null==o||o.head,(null==o?void 0:o.para)&&a5.load({google:{families:[null==o?void 0:o.head,null==o?void 0:o.para]}})}),[null==o?void 0:o.head,null==o?void 0:o.para]),Ye.jsxs("div",{className:e.hasOwnProperty("data")?"features3Body":"features3Body feature3SingleGrid",id:"features",children:[(()=>{var e,t,n,i;a.useEffect((()=>{LU.init({duration:1e3})}),[]);let r={};null==c||c.map((e=>{r[e.FieldName]=e.FieldValue}));let s=[];for(let a=1;a<=u;a++)s.push(Ye.jsx("div",{className:"feature3Card",children:Ye.jsxs("div",{style:{display:"flex",columnGap:"1rem",flexDirection:"column",rowGap:"1rem"},children:[Ye.jsx("img",{style:{borderRadius:"10px",width:"4rem",height:"4rem"},src:(null==(e=r[`Feature${a}Image`])?void 0:e.length)>0?r[`Feature${a}Image`]:GM,alt:"feature Image",width:"100%",height:"100%"}),Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:"1rem"},children:[Ye.jsx("p",{className:(null==(t=r[`Feature${a}Link`])?void 0:t.length)>0?"feature3Des":"feature3EmptyBox feature3DesEmpty",style:{fontSize:"22px",fontFamily:(null==o?void 0:o.para)?null==o?void 0:o.para:""},children:r[`Feature${a}Link`]??""}),Ye.jsxs("p",{className:(null==(n=r[`Feature${a}subName1`])?void 0:n.length)>0?"feature3Des":"feature3EmptyBox",style:{fontSize:"14px",textTransform:"capitalize",fontFamily:(null==o?void 0:o.para)?null==o?void 0:o.para:"",height:r[`Feature${a}subName1`]&&"5rem",overflow:"hidden"},children:[p?r[`Feature${a}subName1`]??"":(null==(i=r[`Feature${a}subName1`]??"")?void 0:i.slice(0,100))+"..."," ",r[`Feature${a}subName1`]&&Ye.jsx("span",{style:{cursor:"pointer",color:"#1292EE"},onClick:()=>d(r[`Feature${a}subName1`],r[`Feature${a}Link`]),children:"more"})]})]})]})},a));return s})(),Ye.jsx(SP,{title:s,open:t,width:800,children:Ye.jsx("div",{className:"",children:Ye.jsx("p",{children:i})}),handleCancel:()=>{n(!1)}})]})},g6=Object.freeze(Object.defineProperty({__proto__:null,default:v6},Symbol.toStringTag,{value:"Module"})),y6=e=>{const t=um(),n=Tf(G_),i=Tf(L_),r=a.useRef(),[s,l]=a.useState(1),[o,d]=a.useState({});a.useEffect((()=>{var t,i,a,s,o,c,u,p,A,h;if((null==n?void 0:n.length)>0&&!0===(null==e?void 0:e.ModelOpen)){var f=n.filter((e=>e.FieldName.includes("Link"))),m=n.filter((e=>e.FieldName.includes("subName1")));l(f.length);for(let e=0;e<(null==f?void 0:f.length)+1;e++)null==(i=null==r?void 0:r.current)||i.setFieldsValue({[`Feature${e}Link`]:null==(t=f[e-1])?void 0:t.FieldValue}),null==(s=null==r?void 0:r.current)||s.setFieldsValue({[`Feature${e}subName1`]:null==(a=m[e-1])?void 0:a.FieldValue});var v=null==n?void 0:n.filter(((e,t)=>e.FieldName.includes("Image")));for(let e=0;e<(null==v?void 0:v.length);e+=3){const t=[`Feature${Math.round(e)}Image`];(null==(o=v[e])?void 0:o.FieldName)===t[0]&&(null==(c=v[e])||c.FieldValue),(null==(u=v[e+1])?void 0:u.FieldName)===t[1]&&(null==(p=v[e+1])||p.FieldValue),(null==(A=v[e+2])?void 0:A.FieldName)===t[2]&&(null==(h=v[e+2])||h.FieldValue)}d(v)}}),[n,e]),a.useEffect((()=>{i.head,i.para&&a5.load({google:{families:[i.head,i.para]}})}),[i.head,i.para]);const c=(e,t)=>{let n={...o};void 0!==n[e]?n[e].FieldValue=t:n[e]={FieldName:e,FieldValue:t,FieldAddData:""},d(n)},u=e=>{var t;let n={...o},i=r.current.getFieldsValue();delete n[e-1],delete i[`Feature${e}subName1`],delete i[`Feature${e}Link`],d(n),l(s-1),null==(t=null==r?void 0:r.current)||t.resetFields(),r.current.setFieldsValue(i)};return Ye.jsx("div",{children:Ye.jsxs(I,{ref:r,onFinish:async n=>{var i,a;let r=[],s=Object.values(n),l=Object.keys(n);for(let e=0;e<l.length;e++)r.push({FieldName:l[e],FieldValue:s[e],FieldAddData:""});s=Object.values(o),l=Object.values(o);for(let e=0;e<l.length;e++)r.push({FieldName:null==(i=l[e])?void 0:i.FieldName,FieldValue:null==(a=s[e])?void 0:a.FieldValue,FieldAddData:""});await t(b_({featureList:r.filter((e=>void 0!==e.FieldValue))})),e.hasOwnProperty("closeForm")&&e.closeForm()},initialValues:"",children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[" ",(()=>{var e,t,n,i;let a=[];for(let d=1;d<=s;d++)a.push(Ye.jsxs("div",{style:{display:"flex",gap:"1rem",alignItems:"center"},children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[Ye.jsxs("p",{style:{fontWeight:"bolder"},children:["Feature - ",d," ",1==d?Ye.jsx(C,{onClick:()=>l(s+1)}):Ye.jsx(de,{onClick:()=>u(d)})]}),Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>c(`Feature${d}Image`,e),ImageLink:null==(e=null==o?void 0:o[d-1])?void 0:e.FieldValue})]}),Ye.jsx(I.Item,{name:`Feature${d}Link`,rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Feature1Link",autoComplete:"off",label:"Heading",fieldState:!0,fieldApi:!0,isOnChange:null!=(null==(t=null==r?void 0:r.current)?void 0:t.getFieldValue([`Feature${d}Link`])),suffix:Ye.jsx(F,{title:`Create 2x speed fast bill send e-bill via Whatsapp & SMS\n ${d}`,children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsxs("div",{className:"formSubDiv",children:[Ye.jsx("div",{style:{display:"none"},children:Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>c(`Feature${d}subImage1`,e),ImageLink:o[`Feature${d}subImage1`]?o[`Feature${d}subImage1`]:""})}),Ye.jsx(I.Item,{name:`Feature${d}subName1`,rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Feature1Link",autoComplete:"off",label:"Description",fieldState:!0,fieldApi:!0,isOnChange:null!=(null==(n=null==r?void 0:r.current)?void 0:n.getFieldValue([`Feature${d}subName1`])),suffix:Ye.jsx(F,{title:`Message Data\n ${d}`,children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]}),Ye.jsxs("div",{className:"formSubDiv",style:{display:"none"},children:[Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>c(`Feature${d}subImage2`,e),ImageLink:o[`Feature${d}subImage2`]?o[`Feature${d}subImage2`]:""}),Ye.jsx(I.Item,{name:`Feature${d}subName2`,rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Feature1Link",autoComplete:"off",label:"Image Description",fieldState:!0,fieldApi:!0,isOnChange:null!=(null==(i=null==r?void 0:r.current)?void 0:i.getFieldValue([`Feature${d}subName2`])),suffix:Ye.jsx(F,{title:`Buying Data\n ${d}`,children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]})]}));return a})()]}),Ye.jsx("div",{className:"featureButton",children:Ye.jsx(Ry,{buttonText:"SAVE",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0})})]})})},x6=()=>{const[e,t]=a.useState(!1),[n,i]=a.useState(!1),[r,s]=a.useState(null),[l,o]=a.useState(null),d=Tf(G_),c=a.useCallback((()=>{o(null),s(null)}),[]);return Ye.jsxs("div",{children:[Ye.jsx(Qy,{messageType:r,messageData:l,onComplete:c}),Ye.jsx(v6,{}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>i(!0)})," ",Ye.jsx(ce,{onClick:()=>{(null==d?void 0:d.length)>0?t(!0):(o("Please add a Feature data to open the preview"),s("warning"))}})]}),Ye.jsx(SP,{centered:!0,open:e,handleCancel:()=>t(!1),width:1e3,children:Ye.jsx("div",{className:"pointerModal",children:Ye.jsx(v6,{data:d})})}),Ye.jsx(SP,{centered:!0,open:n,handleCancel:()=>i(!1),width:1e3,children:Ye.jsx(y6,{closeForm:()=>{i(!1),o("Data Added Successfully"),s("success")},ModelOpen:n})})]})},b6=[{FieldName:"SideNavimage",FieldValue:"",FieldAddData:""},{FieldName:"SideNavHeader",FieldValue:"",FieldAddData:""},{FieldName:"SideNavHeader",FieldValue:"",FieldAddData:""},{FieldName:"SideNavHeader",FieldValue:"",FieldAddData:""}],w6="/",j6=e=>{const t=Qt();um();const n=Tf(V_),i=Tf(q_),r=Tf(U_),s=Tf(W_),[l,o]=a.useState((null==e?void 0:e.hasOwnProperty("data"))?null==e?void 0:e.data:!1===(null==e?void 0:e.apiCall)?b6:n),d=Tf(D_),c=Tf(L_),u=(null==e?void 0:e.disabledValue)?null==e?void 0:e.disabledValue:"",[p,A]=a.useState(null),[h,f]=a.useState(!1);a.useState(!!iA("UserId"));const[m,v]=a.useState(!1),[g,y]=a.useState(!1),[x,b]=a.useState(!1),[w,j]=a.useState(window.innerWidth),[C,S]=a.useState(!0),[N,I]=a.useState(!1),F=Tf(D_),B=Tf(L_);iA("UserId"),a.useEffect((()=>{w>900&&(S(!0),I(!1)),w<900&&(S(!1),I(!0))}),[w]),a.useEffect((()=>{function e(){j(window.innerWidth)}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[w]),a.useEffect((()=>{let e=null==r?void 0:r.filter((e=>(null==e?void 0:e.AppId)===(null==i?void 0:i.AppId)));A(e.length>0?e[0].AppName:s.length>0?s:null)}),[i]),a.useEffect((()=>{(null==e?void 0:e.apiCall)?o(n):o((null==e?void 0:e.hasOwnProperty("data"))?null==e?void 0:e.data:!1===(null==e?void 0:e.apiCall)?b6:n)}),[n,null==e?void 0:e.data]),a.useEffect((()=>{const e=()=>{f(!1),y(!1),v(!1),b(window.innerWidth<899&&!(window.innerWidth<260))};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const[P,k]=a.useState(!1);a.useEffect((()=>{const e=()=>{window.scrollY>10?k(!0):k(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)}),[]),a.useEffect((()=>{B.head,B.para&&a5.load({google:{families:[B.head,B.para]}})}),[B.head,B.para]);return Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"dispflex",style:{background:d?d[""]:null,color:"#000",fontFamily:c?c.para:null,pointerEvents:u},children:Ye.jsxs("nav",{className:"navbar "+(P?"scroll":""),children:[Ye.jsxs("div",{className:"Navcontainer",style:e.modelpreview?{backgroundColor:"#c6c6c6",padding:"0.5rem"}:{backgroundColor:"transparent",padding:0},children:[Ye.jsxs("div",{className:"logo",children:[Ye.jsx("div",{className:"templatetoHome",onClick:()=>{t(`${w6}`)},children:Ye.jsx(KO,{size:20})}),Ye.jsx("span",{className:0!=(null==e?void 0:e.apiCall)?"":" ",style:{fontFamily:(null==B?void 0:B.head)?null==B?void 0:B.head:""},children:0!=(null==e?void 0:e.apiCall)?p:""})]}),Ye.jsx("div",{className:"nav-links",children:l.filter((e=>"SideNavimage"!==e.FieldName)).map((t=>Ye.jsxs("a",{style:{fontFamily:(null==B?void 0:B.para)?null==B?void 0:B.para:""},onClick:()=>{var n,i;return null==e?void 0:e.onNavigate(`${null==(i=null==(n=null==t?void 0:t.FieldValue)?void 0:n.replace(/^\d+-/,""))?void 0:i.toLowerCase()}`)},children:[" ",t.FieldValue.replace(/^\d+-/,"")]})))}),Ye.jsxs("div",{className:"auth-buttons",children:[!P&&Ye.jsxs("button",{style:{fontFamily:(null==B?void 0:B.para)?null==B?void 0:B.para:""},className:"login",onClick:()=>t(`${w6}signin`),children:[" ","Sign In"]}),P&&Ye.jsx("button",{className:"login",style:{border:`1px solid ${F.darkColor?F.darkColor:"#000"}`,color:F.darkColor?F.darkColor:"#000",fontFamily:(null==B?void 0:B.para)?null==B?void 0:B.para:"",fontWeight:"500"},onClick:()=>t(`${w6}signin`),children:"Sign In"}),Ye.jsx("button",{style:{backgroundColor:F.darkColor?F.darkColor:"#000",color:"#fff"},className:"signup",onClick:()=>t(`${w6}signin`),children:"Get Started"})]}),Ye.jsx("button",{className:"mobile-menu-button",onClick:()=>f(!h),children:h?Ye.jsx(MD,{}):Ye.jsx(OD,{})})]}),Ye.jsxs("div",{className:"mobile-menu "+(h?"open":""),children:[Ye.jsxs("div",{className:"logo",style:{margin:"0rem 16px 1.5rem 16px",display:"flex",justifyContent:"space-between"},children:[Ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[null==l?void 0:l.map(((e,t)=>Ye.jsx(Ye.Fragment,{children:"SideNavimage"===e.FieldName&&Ye.jsx("img",{style:{width:"50px",mixBlendMode:"darken"},src:""!=e.FieldValue?e.FieldValue:D2,alt:"App logo"})}))),Ye.jsx("span",{className:0!=(null==e?void 0:e.apiCall)?"":" ",style:{color:"#000"},children:0!=(null==e?void 0:e.apiCall)?p:""})]}),Ye.jsxs("div",{style:{fontSize:"25px",fontWeight:"400",cursor:"pointer",color:"#000"},onClick:()=>f(!h),children:[" ","×"," "]})]}),Ye.jsx("div",{className:"mobile-nav-links",children:l.filter((e=>"SideNavimage"!==e.FieldName)).map((e=>{const t=e.FieldValue.replace(/^\d+-/,""),n=t.toLowerCase();return Ye.jsx("a",{style:{fontFamily:(null==B?void 0:B.para)?null==B?void 0:B.para:""},href:`#${n}`,onClick:()=>f(!1),children:t},n)}))}),Ye.jsxs("div",{className:"mobile-auth-buttons",children:[Ye.jsx("button",{className:"login",onClick:()=>t(`${w6}signin`),style:{fontSize:"16px",fontFamily:"Poppins"},children:"Sign In"}),Ye.jsx("button",{className:"signup",onClick:()=>t(`${w6}signin`),style:{backgroundColor:F.darkColor?F.darkColor:"#000",color:"#fff",fontFamily:(null==B?void 0:B.para)?B.para:"Poppins"},children:"Get Started"})]})]})]})})})},C6=()=>{const e=a.useRef(null),t=um(),n=Mt(),i=Tf(V_),r=null==n?void 0:n.state,s=null==r?void 0:r.editstate,[l,o]=a.useState("Add"),[d,c]=a.useState(null),[u,p]=a.useState(null),[A,h]=a.useState([]),[f,m]=a.useState([]),[v,g]=a.useState(A),[y,x]=a.useState(s?s.AppData:{}),[b,w]=a.useState(0),[S,N]=a.useState(""),[T,E]=a.useState(!1),[D,L]=a.useState(!1);a.useEffect((()=>{_()}),[]),a.useEffect((()=>{!1===D&&(m([]),x({}),U(""))}),[D]),a.useEffect((()=>{var t,n,a;if((null==i?void 0:i.length)>0&&!0===D){o("edit"),w((null==i?void 0:i.length)-2);let r=i.filter((e=>"SideNavimage"===e.FieldName));N(null==(t=null==r?void 0:r[0])?void 0:t.FieldValue);let s=i.filter((e=>"SideNavHeader"===e.FieldName));m(s.map((e=>e.FieldValue.split("-")[0])));let l=[];s.map(((e,t)=>{l.push({[`Navlink-${t}`]:e.FieldAddData,[`Navlist-${t}`]:e.FieldValue.split("-")[0]})}));let d={};for(let t=0;t<(null==l?void 0:l.length);t++)null==(n=null==e?void 0:e.current)||n.setFieldsValue({[`Navlink-${t}`]:l[t][`Navlink-${t}`]}),null==(a=null==e?void 0:e.current)||a.setFieldsValue({[`Navlist-${t}`]:l[t][`Navlist-${t}`]}),d[`Navlist-${t}`]=parseInt(l[t][`Navlist-${t}`]);x(d)}else w(0)}),[i,D]),a.useEffect((()=>{g(A)}),[A]);const U=e=>{N(e)},_=async()=>{var e,n,i;let a=await t(_2()).unwrap();1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)&&(await g(null==(n=null==a?void 0:a.data)?void 0:n.data),await h(null==(i=null==a?void 0:a.data)?void 0:i.data))},O=async(t,n)=>{var i;y[n]=parseInt(t),null==(i=e.current)||i.setFieldsValue({[n]:t}),await x({...y,[n]:t})},M=async(e,t)=>{let n=y;n[e]=t,x(n)},R=a.useCallback((()=>{var t,n,i;let a=[];for(let r=0;r<=b;r++)a.push(Ye.jsxs(P,{style:{display:"flex",flexDirection:"column",marginBottom:2,gap:0},align:"baseline",children:[Ye.jsx(I.Item,{name:`Navlist-${r}`,rules:[{message:"Please select Navlist",required:!0}],children:Ye.jsx(_y,{options:null==v?void 0:v.map((e=>({value:e.ConfigId,label:e.ConfigName,disabled:!!Object.values(y).map((e=>parseInt(e))).includes(parseInt(e.ConfigId))}))),label:"NavList",id:`Navlist-${r}}`,field:`Navlist-${r}`,fieldState:!0,fieldApi:!0,onChangeFunction:e=>O(e,`Navlist-${r}`),isOnchanges:null!=(null==(t=null==e?void 0:e.current)?void 0:t.getFieldValue([`Navlist-${r}`])),valueData:y[`Navlist-${r}`],className:"field-DropDown"})}),Ye.jsx(I.Item,{name:`Navlink-${r}`,rules:[{message:"Please Enter Navlink",required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",name:"",fieldState:!0,fieldApi:!0,onChange:e=>{var t;return M([`Navlink-${r}`],null==(t=null==e?void 0:e.target)?void 0:t.value)},isOnChange:null!=(null==(n=null==e?void 0:e.current)?void 0:n.getFieldValue([`Navlink-${r}`])),label:"Navlink",field:"",id:"",suffix:Ye.jsx(F,{title:`Nav Link${r}`,children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),r>0&&Ye.jsx(de,{onClick:()=>Q(r,`Navlist-${r}`)})]},r));return null==(i=null==e?void 0:e.current)||i.setFieldsValue(y),a}),[b,v]),Q=async(t,n)=>{var i,a;let r=e.current.getFieldValue([n]),s=f.filter((e=>e!=r));m(s);let l=e.current.getFieldsValue(),o=Object.keys(l).filter((e=>!e.includes(t))),d=0,c={};e.current.resetFields();for(let u=0;u<=(null==o?void 0:o.length);u+=2)c[`Navlist-${d}`]=l[o[u]],c[`Navlink-${d}`]=l[o[u+1]],null==(i=null==e?void 0:e.current)||i.setFieldsValue({[`Navlink-${d}`]:l[o[u+1]]}),null==(a=null==e?void 0:e.current)||a.setFieldsValue({[`Navlist-${d}`]:l[o[u]]}),d++;w(b-1),g(A),x(c)},H=a.useCallback((()=>{p(null),c(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:d,messageData:u,onComplete:H}),Ye.jsxs("div",{style:{},children:[Ye.jsx("div",{children:Ye.jsx(j6,{apiCall:!1})}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>L(!0)})," ",Ye.jsx(ce,{onClick:()=>(async()=>{(null==i?void 0:i.length)>0?E(!0):(p("Please add a navbar data to open the preview"),c("warning"))})()})]}),Ye.jsx(j,{centered:!0,open:D,onOk:()=>L(!1),onCancel:()=>L(!1),children:Ye.jsx("div",{children:Ye.jsxs(I,{ref:e,className:"formDivAnt",onFinish:async n=>{var i,a,r,s;let l=[];for(let e=0;e<=(null==(i=Object.keys(n))?void 0:i.length)/2-1;e++)l.push({FieldName:"SideNavHeader",FieldValue:n[`Navlist-${e}`]+"-"+(null==(r=null==(a=null==v?void 0:v.filter((t=>t.ConfigId===n[`Navlist-${e}`])))?void 0:a[0])?void 0:r.ConfigName),FieldAddData:n[`Navlink-${e}`]});l.push({FieldName:"SideNavimage",FieldValue:S,FieldAddData:""}),await t(y_(l)),null==(s=null==e?void 0:e.current)||s.resetFields(),c("success"),p("NavBar Data Added Successfully"),L(!1)},initialValues:{...s},children:[Ye.jsxs("div",{className:"upload_btn",children:[Ye.jsx("p",{children:"Upload Logo"}),Ye.jsx(Yy,{singleImage:!0,updateImageUrl:U,ImageLink:S})]}),Ye.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[Ye.jsxs("div",{style:{},children:[Ye.jsx(Ye.Fragment,{children:0!=(null==v?void 0:v.length)&&R()}),(null==A?void 0:A.length)>b+1&&Ye.jsx(I.Item,{children:Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(C,{style:{backgroundColor:"#37943C",color:"white",borderRadius:"50px",padding:"5px"},onClick:()=>w(b+1)})})})]}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(Ry,{buttonText:"SAVE",color:"901D77",icon:Ye.jsx(k,{})})})]})]})})}),Ye.jsx(j,{centered:!0,open:T,onOk:()=>E(!1),onCancel:()=>E(!1),width:1e3,children:Ye.jsx("div",{className:"navclass","aria-disabled":!0,style:{overflow:"scroll"},children:Ye.jsx(j6,{disabledValue:"none",apiCall:!0,modelpreview:!0})})})]})]})},S6=e=>{const[t,n]=a.useState(null),i=Tf(L_),[r,s]=a.useState(),[l,o]=a.useState(),d=Tf(D_),c=Tf(q_),u=Tf(U_),[p,A]=a.useState(null),h=Tf(W_),f=[{FieldName:"faqTitle",FieldValue:"",FieldAddData:""},{FieldName:"faqImage",FieldValue:"",FieldAddData:""},{FieldName:"faqQuestion",FieldValue:"How do I get started?",FieldAddData:"Click the + button to add your first FAQ."},{FieldName:"faqQuestion",FieldValue:"What can I customize?",FieldAddData:"You can customize the title, questions, and answers."},{FieldName:"faqQuestion",FieldValue:"Need more help?",FieldAddData:"Contact our support team for assistance."}];a.useEffect((()=>{var t;s(e.hasOwnProperty("data")&&(null==(t=e.data)?void 0:t.length)>0?e.data:f)}),[e.data]),a.useEffect((()=>{if(r){const e=r.filter((e=>"faqQuestion"===e.FieldName));o(e&&e.length>0?e:[])}}),[r]);return a.useEffect((()=>{let e=null==u?void 0:u.filter((e=>(null==e?void 0:e.AppId)===(null==c?void 0:c.AppId)));A(e.length>0?e[0].AppName:h.length>0?h:null)}),[c]),a.useEffect((()=>{i.head,i.para&&a5.load({google:{families:[i.head,i.para]}})}),[i.head,i.para]),Ye.jsx("section",{className:"faq-section",id:"faq",children:Ye.jsxs("div",{className:"faq-container",children:[Ye.jsxs("div",{className:"faq-header",children:[r&&r.map(((e,t)=>{var n;return"faqTitle"===e.FieldName?Ye.jsx("h2",{style:{fontFamily:(null==i?void 0:i.head)?null==i?void 0:i.head:""},children:(null==(n=e.FieldValue)?void 0:n.length)>0?e.FieldValue:"Frequently Asked Questions"},t):null})),Ye.jsxs("p",{style:{fontFamily:(null==i?void 0:i.para)?null==i?void 0:i.para:""},children:["Have questions about ",p,"? We've got answers."]})]}),Ye.jsx("div",{className:"faq-content",children:l&&l.length>0?l.map(((e,a)=>Ye.jsxs("div",{className:"faq-item "+(t===a?"active":""),children:[Ye.jsxs("button",{className:"faq-button",onClick:()=>(e=>{n(t===e?null:e)})(a),style:{fontFamily:(null==i?void 0:i.head)?null==i?void 0:i.head:""},children:[e.FieldValue,t===a?Ye.jsx(_D,{className:"icon"}):Ye.jsx(UD,{className:"icon"})]}),Ye.jsx("div",{className:"faq-answer "+(t===a?"open":""),children:Ye.jsx("p",{style:{fontFamily:(null==i?void 0:i.para)?null==i?void 0:i.para:""},children:e.FieldAddData})})]},a))):Ye.jsxs("div",{className:"faq-placeholder-list",children:[Ye.jsx("div",{className:"faq-item placeholder"}),Ye.jsx("div",{className:"faq-item placeholder"}),Ye.jsx("div",{className:"faq-item placeholder"})]})}),Ye.jsxs("div",{className:"faq-footer",children:[Ye.jsx("h3",{style:{fontFamily:(null==i?void 0:i.head)?null==i?void 0:i.head:""},children:"Still have questions?"}),Ye.jsx("p",{style:{fontFamily:(null==i?void 0:i.para)?null==i?void 0:i.para:""},children:"Our support team is ready to help you with any questions you may have."}),Ye.jsx("div",{className:"faq-actions",children:Ye.jsx("button",{className:"btn-primary",style:{fontFamily:(null==i?void 0:i.para)?null==i?void 0:i.para:"",backgroundColor:d.darkColor?d.darkColor:"#000",color:"#fff"},children:"Contact Support"})})]})]})})},N6=Object.freeze(Object.defineProperty({__proto__:null,default:S6},Symbol.toStringTag,{value:"Module"})),I6=()=>{const e=a.useRef(null),t=um(),n=Tf(z_),[i,r]=a.useState([]),[s,l]=a.useState(!1),[o,d]=a.useState(!1),[c,u]=a.useState(!1),[p,A]=a.useState(!1),[h,f]=a.useState(!1),[m,v]=a.useState(!1),[g,y]=a.useState("");a.useEffect((()=>{b()}),[]);const x=[{faqLists:[{faqQus:"",faqAns:""}]}],b=async()=>{await r(x)};a.useEffect((()=>{f(!0)}),[n]);const w=()=>{(null==n?void 0:n.length)>0?(!function(){var e;let t=n.filter(((e,t)=>"faqQuestion"==(null==e?void 0:e.FieldName)));const i=null==t?void 0:t.map((e=>({faqQus:e.FieldValue,faqAns:e.FieldAddData})));r(i);let a=n.filter(((e,t)=>"faqTitle"==(null==e?void 0:e.FieldName))),s=null==(e=a[0])?void 0:e.FieldValue;y(s)}(),v(!0),null==n||n.map(((t,n)=>{var i;return null==(i=null==e?void 0:e.current)?void 0:i.setFieldsValue({[null==t?void 0:t.FieldName]:null==t?void 0:t.FieldValue})}))):v(!1),A(!0)};const S=a.useCallback((()=>{l(null),d(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:o,messageData:s,onComplete:S}),Ye.jsx(eR,{}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>w()})," ",Ye.jsx(ce,{onClick:()=>(async()=>{(null==n?void 0:n.length)>0?u(!0):(l("Please add a faq data to open the preview"),d("warning"))})()})]}),Ye.jsx(j,{centered:!0,open:p,onOk:()=>A(!1),onCancel:()=>{return A(!1),void(null==(t=e.current)||t.resetFields());var t},width:1e3,children:Ye.jsx("div",{children:Ye.jsxs(I,{ref:e,onFinish:async e=>{var n,i;let a=[];null==(i=(null==(n=[e])?void 0:n.map((e=>e.faqlists)))[0])||i.map((e=>{a.push({FieldName:"faqQuestion",FieldValue:e.faqQus,FieldAddData:e.faqAns})})),a.push({FieldName:"faqTitle",FieldValue:e.faqtitle,FieldAddData:""}),a.push({FieldName:"faqImage",FieldValue:"",FieldAddData:""}),await t(g_(a)),A(!1),u(!1),l("Data Added Successfully"),d("success")},children:[Ye.jsx("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center"},children:Ye.jsxs("div",{style:{},children:[Ye.jsx(I.Item,{initialValue:g,name:"faqtitle",rules:[{required:!0,message:"Please Enter Faq Title"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",name:"faqtitle",autoComplete:"off",fieldState:!0,fieldApi:!0,isOnChange:!!m,label:"Faq Title",field:"",id:"",suffix:Ye.jsx(F,{title:"Frequently asked questions about your application",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx("div",{style:{},children:Ye.jsx(I.List,{name:"faqlists",initialValue:i,children:(e,{add:t,remove:n})=>Ye.jsxs(Ye.Fragment,{children:[null==e?void 0:e.map((t=>Ye.jsxs(P,{style:{display:"flex",flexWrap:"wrap",marginBottom:2,rowGap:0},align:"baseline",children:[Ye.jsx(I.Item,{...t,name:[t.name,"faqQus"],fieldKey:[t.fieldKey,"faqQus"],rules:[{required:!0,message:"Please Enter FAQ Qus"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",name:"",fieldState:!0,fieldApi:!0,isOnChange:!!m,label:"FAQ Question",field:"",id:"",suffix:Ye.jsx(F,{title:"How to signin?",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),Ye.jsx(I.Item,{...t,name:[t.name,"faqAns"],fieldKey:[t.fieldKey,"faqAns"],rules:[{required:!0,message:"Please Enter FAQ Answer"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",name:"",fieldState:!0,fieldApi:!0,isOnChange:!!m,label:"FAQ Answer",field:"",id:"",suffix:Ye.jsx(F,{title:"How to buy a application",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})}),1!==(null==e?void 0:e.length)&&Ye.jsx(de,{style:{color:"#FF4D4F",fontSize:"20px",padding:"10px",alignContent:"center"},onClick:()=>n(t.name)})]},t.key))),Ye.jsx(I.Item,{children:Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(C,{style:{color:"white",backgroundColor:"#37943C",borderRadius:50,fontSize:"20px"},onClick:()=>t()})})})]})})})]})}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(Ry,{type:"submit",buttonText:"SAVE",icon:Ye.jsx(k,{})})})]})})}),Ye.jsx(j,{centered:!0,open:c,onOk:()=>u(!1),onCancel:()=>{u(!1),f(!0)},width:"1500",children:Ye.jsx(S6,{data:n})})]})},F6=Object.freeze(Object.defineProperty({__proto__:null,default:I6},Symbol.toStringTag,{value:"Module"}));function B6(e){const[t,n]=a.useState(!1),i=a.useRef(null);return a.useEffect((()=>{const e=new IntersectionObserver((([e])=>{e.intersectionRatio>=.75&&n(!0)}),{threshold:.75,root:null,rootMargin:"0px"});return i.current&&e.observe(i.current),()=>{i.current&&e.unobserve(i.current)}}),[]),Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{ref:i,className:"showcase-section "+(t?"visible":""),children:Ye.jsx("div",{className:"showcase-image",children:Ye.jsx("div",{className:"image-container",children:Ye.jsx("img",{src:e.data||hk,alt:"Restaurant management in action",style:{opacity:t?1:0,transform:t?"perspective(1000px) rotateX(0deg) scale(1) translateY(0)":"perspective(1000px) rotateX(30deg) scale(0.7) translateY(100px)",transition:"all 0.8s cubic-bezier(0.4, 0, 0.2, 1)",transformOrigin:"bottom",willChange:"transform, opacity"}})})})})})}const P6=Object.freeze(Object.defineProperty({__proto__:null,default:B6},Symbol.toStringTag,{value:"Module"})),k6=()=>{var e;const t=a.useRef(),n=Tf(k_),i=um(),[r,s]=a.useState((null==n?void 0:n.length)>0&&(null==(e=n[0])?void 0:e.FieldValue)?n[0].FieldValue:""),[l,o]=a.useState({viewData:!1,viewForm:!1});a.useEffect((()=>{var e;s((null==n?void 0:n.length)>0&&(null==(e=n[0])?void 0:e.FieldValue)?n[0].FieldValue:"")}),[n]);const[d,c]=a.useState({type:null,data:null}),u=()=>{o({viewData:!1,viewForm:!1})},p=a.useCallback((()=>{c({type:null,data:null})}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:d.type,messageData:d.data,onComplete:p}),Ye.jsx(B6,{}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>{var e;o({viewData:!1,viewForm:!0}),s((null==n?void 0:n.length)>0?null==(e=null==n?void 0:n[0])?void 0:e.FieldValue:"")}}),Ye.jsx(ce,{onClick:()=>{var e;o({viewData:!0,viewForm:!1}),s((null==n?void 0:n.length)>0?null==(e=null==n?void 0:n[0])?void 0:e.FieldValue:"")}})]}),Ye.jsx(j,{centered:!0,open:null==l?void 0:l.viewForm,onOk:u,closeIcon:Ye.jsx(M,{onClick:u}),width:400,children:Ye.jsxs(I,{ref:t,onFinish:()=>{i(F_([{FieldName:"ShowCaseUrl",FieldValue:r,FieldAddData:""}])),o({viewData:!1,viewForm:!1})},children:[Ye.jsxs("div",{children:[Ye.jsx("p",{children:"Upload Image"}),Ye.jsx("br",{}),Ye.jsx(Yy,{updateImageUrl:e=>{s(e||"")},singleImage:!0,ImageLink:r})]}),Ye.jsx("div",{className:"overviewbtn",children:Ye.jsx(Ry,{type:"submit",buttonText:"SAVE",icon:Ye.jsx(k,{})})})]})}),Ye.jsx(j,{destroyOnClose:!0,centered:!0,open:null==l?void 0:l.viewData,onOk:u,onCancel:u,width:1e3,className:"overview1Modal",children:Ye.jsx(B6,{data:r||""})})]})},T6=()=>{const e=a.useRef(),t=Tf(T_),n=um(),[i,r]=a.useState((null==t?void 0:t.length)>0?null==t?void 0:t[0]:""),[s,l]=a.useState({viewData:!1,viewForm:!1}),[o,d]=a.useState({type:null,data:null}),c=()=>{l({viewData:!1,viewForm:!1})},u=a.useCallback((()=>{d({type:null,data:null})}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:o.type,messageData:o.data,onComplete:u}),Ye.jsx(B6,{}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>{return l({viewData:!1,viewForm:!0}),void r((null==t?void 0:t.length)>0?null==(e=null==t?void 0:t[0])?void 0:e.FieldValue:"");var e}}),Ye.jsx(ce,{onClick:()=>{return l({viewData:!0,viewForm:!1}),void r((null==t?void 0:t.length)>0?null==(e=null==t?void 0:t[0])?void 0:e.FieldValue:"");var e}})]}),Ye.jsx(j,{centered:!0,open:null==s?void 0:s.viewForm,onOk:c,closeIcon:Ye.jsx(M,{onClick:c}),width:400,children:Ye.jsxs(I,{ref:e,onFinish:()=>{n(B_([{FieldName:"AppviewUrl",FieldValue:i,FieldAddData:""}])),l({viewData:!1,viewForm:!1})},children:[Ye.jsxs("div",{children:[Ye.jsx("p",{children:"Upload Image"}),Ye.jsx("br",{}),Ye.jsx(Yy,{updateImageUrl:e=>{r(e)},singleImage:!0,ImageLink:i})]}),Ye.jsx("div",{className:"overviewbtn",children:Ye.jsx(Ry,{type:"submit",buttonText:"SAVE",icon:Ye.jsx(k,{})})})]})}),Ye.jsx(j,{destroyOnClose:!0,centered:!0,open:null==s?void 0:s.viewData,onOk:c,onCancel:c,width:1e3,className:"overview1Modal",children:Ye.jsx(B6,{data:i||""})})]})},E6=({isDefault:e=!1})=>{const t=Tf(E_),n=Tf(D_),i=Tf(L_),r=Tf(q_),s=Tf(U_),l=Tf(W_),[o,d]=a.useState(null),c=[{customerName:"Emily Rodriguez",designation:"Owner, Cafe Delish",customerImage:hk,customerReview:"PozoResto transformed how we run our café. Orders are processed faster, and the analytics help us make better business decisions. Our staff loves the intuitive interface!",rating:5},{customerName:"Michael Chen",designation:"Manager, Fusion Bistro",customerImage:hk,customerReview:"We've tried several POS systems, but PozoResto stands out for its reliability and excellent customer support. The inventory management features save us hours every week.",rating:5},{customerName:"Sarah Johnson",designation:"Owner, The Grill House",customerImage:hk,customerReview:"Since implementing PozoResto, our table turnover has increased by 20%. The system is so efficient that our staff can focus more on customer service than manual processes.",rating:4}],u=(()=>{var n,i;if(e)return{header:"Trusted by Restaurant Owners",subheader:"Hear what our customers have to say about PozoResto.",testimonials:c};if(!(null==t?void 0:t.length))return{header:"Trusted by Restaurant Owners",subheader:"Hear what our customers have to say about PozoResto.",testimonials:c};const a=(null==(n=null==t?void 0:t.find((e=>"Header1"===(null==e?void 0:e.FieldName))))?void 0:n.FieldValue)||{},r=(null==(i=null==t?void 0:t.find((e=>"SubHeader1"===(null==e?void 0:e.FieldName))))?void 0:i.FieldValue)||{},s=null==t?void 0:t.reduce(((e,t)=>{var n,i,a,r,s,l;if(null==(n=null==t?void 0:t.FieldName)?void 0:n.startsWith("customer")){const n=null==(i=t.FieldName.match(/\d+$/))?void 0:i[0];n&&(e[n]||(e[n]={}),t.FieldName.includes("Image")&&(e[n].customerImage=t.FieldValue),t.FieldName.includes("Name")&&(e[n].customerName=t.FieldValue),t.FieldName.includes("Review")&&(e[n].customerReview=t.FieldValue))}if(null==(a=null==t?void 0:t.FieldName)?void 0:a.startsWith("designation")){const n=null==(r=t.FieldName.match(/\d+$/))?void 0:r[0];n&&e[n]&&(e[n].designation=t.FieldValue)}if(null==(s=null==t?void 0:t.FieldName)?void 0:s.startsWith("rating")){const n=null==(l=t.FieldName.match(/\d+$/))?void 0:l[0];n&&e[n]&&(e[n].rating=t.FieldValue)}return e}),{});return{header:a,subheader:r,testimonials:Object.values(s).filter((e=>e.customerName&&e.customerReview))}})();return a.useEffect((()=>{let e=null==s?void 0:s.filter((e=>(null==e?void 0:e.AppId)===(null==r?void 0:r.AppId)));d(e.length>0?e[0].AppName:l.length>0?l:null)}),[r]),a.useEffect((()=>{i.head,i.para&&a5.load({google:{families:[i.head,i.para]}})}),[i.head,i.para]),Ye.jsxs("div",{className:"testimonial-section",children:[Ye.jsxs("div",{className:"testimonial-header",children:[Ye.jsx("h2",{style:{fontFamily:(null==i?void 0:i.head)?null==i?void 0:i.head:""},children:u.header}),Ye.jsx("p",{style:{fontFamily:(null==i?void 0:i.para)?null==i?void 0:i.para:""},children:u.subheader})]}),Ye.jsx("div",{children:Ye.jsx("div",{className:"testimonials-grid",children:u.testimonials.map(((e,t)=>Ye.jsxs("div",{className:"testimonial-card",children:[Ye.jsx("div",{className:"stars",children:[...Array(5)].map(((t,n)=>Ye.jsx("span",{className:"star "+(n<(e.rating||5)?"filled":""),children:Ye.jsx(SE,{color:"rgb(245, 158, 11);"})},n)))}),Ye.jsx("p",{className:"quote",style:{fontFamily:(null==i?void 0:i.para)?null==i?void 0:i.para:""},children:e.customerReview}),Ye.jsxs("div",{className:"user-info",children:[Ye.jsx("img",{src:e.customerImage||hk,alt:e.customerName,className:"avatar"}),Ye.jsxs("div",{className:"user-details",children:[Ye.jsx("h4",{style:{fontFamily:(null==i?void 0:i.head)?null==i?void 0:i.head:""},children:e.customerName}),Ye.jsx("p",{style:{fontFamily:(null==i?void 0:i.para)?null==i?void 0:i.para:""},children:e.designation})]})]})]},t)))})}),Ye.jsxs("div",{className:"cta-banner",children:[Ye.jsxs("p",{children:["Join over 2,000+ ",o," already using Pozo"]}),Ye.jsx("button",{style:{backgroundColor:n.darkColor?n.darkColor:"#000",color:"#fff",fontFamily:i||"Poppins"},children:"Get Started Today"})]})]})},D6=Object.freeze(Object.defineProperty({__proto__:null,default:E6},Symbol.toStringTag,{value:"Module"})),L6=()=>{const e=a.useRef(),t=Tf(E_),n=um(),[i,r]=a.useState({header:"",subheader:"",testimonials:[{customerName:"",designation:"",customerReview:"",customerImage:"",rating:5}]});a.useEffect((()=>{var n;0===(null==t?void 0:t.length)&&(null==(n=null==e?void 0:e.current)||n.resetFields())}),[t]);const[s,l]=a.useState({viewData:!1,viewForm:!1}),[o,d]=a.useState({type:null,data:null}),c=()=>{l({viewData:!1,viewForm:!1})},u=a.useCallback((()=>{d({type:null,data:null})}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:o.type,messageData:o.data,onComplete:u}),Ye.jsx(E6,{isDefault:!0}),Ye.jsxs("div",{className:"tempOptions",children:[Ye.jsx(C,{onClick:()=>{var e,n;if(l({viewData:!1,viewForm:!0}),(null==t?void 0:t.length)>0){const i=(null==(e=t.find((e=>"Header1"===e.FieldName)))?void 0:e.FieldValue)||"",a=(null==(n=t.find((e=>"SubHeader1"===e.FieldName)))?void 0:n.FieldValue)||"",s=t.reduce(((e,t)=>{var n,i,a;if(t.FieldName.startsWith("customer")){const i=null==(n=t.FieldName.match(/\d+$/))?void 0:n[0];i&&(e[i]||(e[i]={rating:5}),t.FieldName.includes("Image")&&(e[i].customerImage=t.FieldValue),t.FieldName.includes("Name")&&(e[i].customerName=t.FieldValue),t.FieldName.includes("Review")&&(e[i].customerReview=t.FieldValue))}if(t.FieldName.startsWith("designation")){const n=null==(i=t.FieldName.match(/\d+$/))?void 0:i[0];n&&(e[n].designation=t.FieldValue)}if(t.FieldName.startsWith("rating")){const n=null==(a=t.FieldName.match(/\d+$/))?void 0:a[0];n&&(e[n].rating=Number(t.FieldValue))}return e}),{}),l=Object.values(s).filter((e=>e.customerName||e.customerReview));r({header:i,subheader:a,testimonials:l.length>0?l:[{customerName:"",designation:"",customerReview:"",customerImage:"",rating:5}]})}}}),Ye.jsx(ce,{onClick:()=>{l({viewData:!0,viewForm:!1})}})]}),Ye.jsx(j,{centered:!0,open:null==s?void 0:s.viewForm,footer:null,closeIcon:Ye.jsx(M,{onClick:c}),width:800,title:"Edit Testimonial Section",children:Ye.jsxs(I,{ref:e,onFinish:e=>{var t;e.header,e.subheader,e.testimonials;const a=[];a.push({FieldAddData:"",FieldName:"Header1",FieldValue:e.header},{FieldAddData:"",FieldName:"SubHeader1",FieldValue:e.subheader});const r=null==(t=e.testimonials)?void 0:t.flatMap(((e,t)=>{var n,a;const{customerName:r,customerReview:s,designation:l,rating:o}=e;return[{FieldName:`customerImage${t}`,FieldValue:null==(a=null==(n=null==i?void 0:i.testimonials)?void 0:n[t])?void 0:a.customerImage,FieldAddData:""},{FieldAddData:"",FieldName:`customerName${t}`,FieldValue:r},{FieldAddData:"",FieldName:`customerReview${t}`,FieldValue:s},{FieldAddData:"",FieldName:`designation${t}`,FieldValue:l},{FieldAddData:"",FieldName:`rating${t}`,FieldValue:o}]})),s=[...a,...r];n(P_(s)),l({viewData:!1,viewForm:!1})},layout:"vertical",initialValues:i,className:"testimonial-form",children:[Ye.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[Ye.jsx(I.Item,{name:"header",rules:[{required:!0,message:"Please enter section header"}],label:Ye.jsx("div",{children:"Section Header"}),children:Ye.jsx(Oy,{placeholder:"Enter section header",className:"form-input",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"subheader",rules:[{required:!0,message:"Please enter section subheader"}],label:Ye.jsx("div",{children:"Section Subheader"}),children:Ye.jsx(Oy,{placeholder:"Enter section subheader",className:"form-input",fieldState:!0,fieldApi:!0})})]}),Ye.jsx(I.List,{name:"testimonials",initialValue:i.testimonials,children:(e,{add:t,remove:n})=>Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("div",{style:{width:"100%",display:"flex",justifyContent:"flex-end"},children:Ye.jsx(C,{style:{border:"1px solid #000",padding:"5px",borderRadius:"50%"},onClick:()=>t({customerName:"",designation:"",customerReview:"",customerImage:"",rating:5})})}),e.map((({key:t,name:a,...s},l)=>{var o;return Ye.jsxs("div",{className:"form-section testimonial-item",children:[Ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"1rem"},children:[Ye.jsxs("h3",{children:["Testimonial #",l+1]}),e.length>1&&Ye.jsx(de,{className:"delete-testimonial",onClick:()=>n(a)})]}),Ye.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.5rem"},children:[Ye.jsx(I.Item,{...s,name:[a,"rating"],label:"Rating",initialValue:5,children:Ye.jsx(fe,{})}),Ye.jsx(I.Item,{...s,name:[a,"customerImage"],children:Ye.jsx(Yy,{label:"Customer Image",updateImageUrl:e=>((e,t)=>{const n=e.split(".");r((i=>{if(1===n.length)return{...i,[e]:t};{const[e,a,r]=n,s=[...i[e]];return s[parseInt(a)]={...s[parseInt(a)],[r]:t},{...i,[e]:s}}}))})(`testimonials.${l}.customerImage`,e),singleImage:!0,ImageLink:null==(o=i.testimonials[l])?void 0:o.customerImage})}),Ye.jsx(I.Item,{...s,rules:[{required:!0,message:"Please enter customer name"}],name:[a,"customerName"],label:Ye.jsx("div",{children:"Customer Name"}),children:Ye.jsx(Oy,{placeholder:"Enter customer name",className:"form-input",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{...s,rules:[{required:!0,message:"Please enter designation"}],name:[a,"designation"],label:Ye.jsx("div",{children:"Designation"}),children:Ye.jsx(Oy,{placeholder:"Enter designation",className:"form-input",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{...s,name:[a,"customerReview"],rules:[{required:!0,message:"Please enter customer review"}],label:Ye.jsx("div",{children:"Customer Review"}),children:Ye.jsx(My,{placeholder:"Enter customer review",className:"form-input",rows:4,fieldState:!0,fieldApi:!0})})]})]},t)}))]})}),Ye.jsx("div",{style:{width:"100%",display:"flex",justifyContent:"flex-end"},children:Ye.jsx(Ry,{type:"submit",buttonText:"Save Changes",icon:Ye.jsx(k,{}),className:"submit-button"})})]})}),Ye.jsx(j,{destroyOnClose:!0,centered:!0,open:null==s?void 0:s.viewData,onOk:c,onCancel:c,width:1e3,className:"testimonial-preview-modal",children:Ye.jsx(E6,{isDefault:!1})})]})},U6=Object.freeze(Object.defineProperty({__proto__:null,default:L6},Symbol.toStringTag,{value:"Module"})),_6=e=>{var t,n,i;const[r,s]=a.useState(),l=Tf(D_),o=Tf(L_),d=[{FieldName:"faqTitle",FieldValue:"",FieldAddData:""},{FieldName:"faqImage",FieldValue:"",FieldAddData:""},{FieldName:"faqQuestion",FieldValue:" ",FieldAddData:""},{FieldName:"faqQuestion",FieldValue:" ",FieldAddData:""},{FieldName:"faqQuestion",FieldValue:" ",FieldAddData:""},{FieldName:"faqQuestion",FieldValue:"",FieldAddData:""}];return a.useEffect((()=>{s(e.hasOwnProperty("data")?e.data:d)}),[e.data]),a.useEffect((()=>{o.head,o.para&&a5.load({google:{families:[o.head,o.para]}})}),[o.head,o.para]),Ye.jsx(Ye.Fragment,{children:Ye.jsx("section",{style:{backgroundColor:l.darkColor?l.darkColor:"cta-section",color:l.lightColor?l.lightColor:"cta-section"},children:Ye.jsx("div",{className:"cta-container",children:Ye.jsxs("div",{className:"cta-content",children:[Ye.jsx("h2",{className:"cta-title",style:{fontFamily:(null==o?void 0:o.head)?null==o?void 0:o.head:""},children:null==(t=null==r?void 0:r[0])?void 0:t.FieldValue}),Ye.jsx("p",{className:"cta-description",style:{color:"white",fontFamily:(null==o?void 0:o.para)?null==o?void 0:o.para:""},children:null==(n=null==r?void 0:r[1])?void 0:n.FieldValue}),Ye.jsx("div",{className:"stats-panel",children:Ye.jsx("div",{className:"stats-grid",children:null==(i=null==r?void 0:r.filter((e=>"BussinessDetails"===e.FieldName)))?void 0:i.map(((e,t)=>Ye.jsxs("div",{className:"stat-item",children:[Ye.jsxs("h3",{className:"stat-value",children:[e.FieldValue,"%"]}),Ye.jsx("p",{className:"stat-label",style:{color:"white",fontFamily:null==o?void 0:o.head},children:e.FieldAddData})]},t)))})}),Ye.jsxs("div",{className:"cta-buttons",children:[Ye.jsxs("button",{className:"btn-primary",style:{color:l.darkColor?l.darkColor:"btn-primary",fontFamily:(null==o?void 0:o.para)?null==o?void 0:o.para:""},children:["Start Your Free Trial",Ye.jsx(Rm,{className:"arrow-icon"})]}),Ye.jsx("button",{style:{fontFamily:(null==o?void 0:o.para)?null==o?void 0:o.para:""},className:"btn-secondary",children:"Schedule a Demo"})]})]})})})})},O6=Object.freeze(Object.defineProperty({__proto__:null,default:_6},Symbol.toStringTag,{value:"Module"})),M6=()=>{const e=a.useRef(null),t=um(),n=Tf(eO),[i,r]=a.useState(!1),[s,l]=a.useState(!1),[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState(!1);a.useState();const[h,f]=a.useState([{fieldName:""}]),[m,v]=a.useState([[{footerList:"",footerSublist:""}]]);a.useEffect((()=>{var t;0===(null==n?void 0:n.length)&&(null==(t=null==e?void 0:e.current)||t.resetFields())}),[n,i]);const g=a.useCallback((()=>{u(null),d(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:o,messageData:c,onComplete:g}),Ye.jsx(_6,{}),Ye.jsxs("div",{className:"tempOptions",style:{width:"50rem"},children:[Ye.jsx(C,{onClick:()=>(n.length>0?(A(!0),setTimeout((()=>{const t={},i=[];null==n||n.forEach((e=>{"CTAHeader"!==(null==e?void 0:e.FieldName)&&"CTADescription"!==(null==e?void 0:e.FieldName)||(t[e.FieldName]=e.FieldValue),"BussinessDetails"===(null==e?void 0:e.FieldName)&&i.push({Items:[{BussinessValue:e.FieldValue,BussinessDesc:e.FieldAddData}]})})),0===i.length&&i.push({Items:[{BussinessValue:"",BussinessDesc:""}]}),t.TitleNames={items:i},(null==e?void 0:e.current)&&e.current.setFieldsValue(t)}),0)):A(!1),void r(!0))}),Ye.jsx(ce,{onClick:()=>{n.length>0&&n.filter((e=>!e.FieldName.includes("Sub"))).length>0?l(!0):(u("Please add a footer data to open the preview"),d("warning"))}})]}),Ye.jsx(j,{centered:!0,open:i,onOk:()=>r(!1),onCancel:()=>r(!1),children:Ye.jsxs(I,{ref:e,onFinish:async e=>{var n,i,a;let s=[];s.push({FieldName:"CTAHeader",FieldValue:e.CTAHeader,FieldAddData:e.CTAHeader}),s.push({FieldName:"CTADescription",FieldValue:e.CTADescription,FieldAddData:e.CTADescription});((null==(a=null==(i=null==(n=null==e?void 0:e.TitleNames)?void 0:n.items)?void 0:i[0])?void 0:a.Items)||[]).forEach(((e,t)=>{s.push({FieldName:"BussinessDetails",FieldValue:e.BussinessValue||"",FieldAddData:e.BussinessDesc||""})})),await t(j_(s)),u("Data Added Successfully"),d("success"),r(!1)},children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"1rem",flexWrap:"wrap"},className:"footerForm",children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"2rem",flexWrap:"wrap"},children:[Ye.jsx(I.Item,{name:"CTAHeader",rules:[{message:"Please Enter CTA Header"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"CTA Header",autocomplete:"off"})}),Ye.jsx(I.Item,{name:"CTADescription",rules:[{message:"Please Enter CTA Description"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,isOnChange:!!p,label:"CTA Description",autocomplete:"off"})}),Ye.jsx(I.List,{name:["TitleNames","items"],initialValue:h,children:(e,{add:t,remove:n})=>Ye.jsx(Ye.Fragment,{children:e.map((({key:e,name:t})=>Ye.jsx(P,{style:{display:"flex"},align:"baseline",children:Ye.jsx(I.List,{name:[t,"Items"],initialValue:m[e]?m[e]:[{footerList:"",footerSublist:""}],children:(e,{add:t,remove:n})=>Ye.jsx(Ye.Fragment,{children:e.map((({key:i,name:a})=>Ye.jsxs(P,{style:{display:"flex"},align:"baseline",children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[Ye.jsx(I.Item,{name:[a,"BussinessValue"],fieldKey:[a,"BussinessValue"],rules:[{message:"Please Enter Bussiness Value"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{name:`${a}.BussinessValue`,fieldState:!0,isOnChange:!!p,label:"Bussiness Value",autocomplete:"off",suffix:Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(F,{title:"Eg.What is POZO ?(List of Titles)",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})}),Ye.jsx(C,{onClick:()=>t()})]})})}),Ye.jsx("div",{style:{margin:"1rem 1rem"},children:e.length>1&&Ye.jsx(de,{onClick:()=>n(a)})})]}),Ye.jsx(I.Item,{name:[a,"BussinessDesc"],fieldKey:[a,"Bussiness Desc"],rules:[{message:"Please Enter Footer Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{name:`${a}.footerSublist`,fieldState:!0,isOnChange:!!p,label:"Bussiness Desc",autocomplete:"off",suffix:Ye.jsx(F,{title:"Eg.Want Access(List of Titles)",children:Ye.jsx(B,{style:{color:"rgba(0,0,0,.45)"}})})})})]},i)))})})},e)))})})]}),Ye.jsx("div",{})]}),Ye.jsx("div",{style:{float:"right"},children:Ye.jsx(Ry,{type:"submit",buttonText:"SAVE",icon:Ye.jsx(k,{})})})]})}),Ye.jsx(j,{destroyOnClose:!0,centered:!0,open:s,onOk:()=>l(!1),onCancel:()=>l(!1),width:1300,children:Ye.jsx("div",{children:Ye.jsx(_6,{data:n||""})})})]})},R6="/home/",Q6=()=>Ye.jsx("div",{className:"loader-wrapper",children:Ye.jsxs("div",{className:"spinner",children:[Ye.jsx("div",{className:"wheel"}),Ye.jsx("div",{className:"wheel"})]})}),H6=Ja("login/getAdminNames",(async()=>await fA.get("/login?Type=Admin"))),V6=Ja("userAppMap/getApplications",(async e=>{if(null!=e&&null!=e)return await fA.get(`/userAppMap?UserId=${e}`)})),z6=Ja("appAccess/getActiveAppCompanyData",(async e=>{if(null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.UserId)&&null!=(null==e?void 0:e.UserId))return await fA.get(`/appAccess?AppId=${null==e?void 0:e.AppId}&UserId=${null==e?void 0:e.UserId}&ActiveStatus=A`)})),q6=Ja("company/postCompanyData",(async e=>{if(e)return await fA.post("/CustomerTestimonials",e)})),W6=Ja("appAccess/getActiveAppCompanyData",(async()=>await fA.get("/CustomerTestimonials"))),Y6=Ja("company/postCompanyData",(async e=>{if(e)return await fA.put("/CustomerTestimonials",e)})),K6=Ja("company/deleteCompanyData",(async e=>await fA.delete(`/CustomerTestimonials?activeStatus=${null==e?void 0:e.activeStatus}&uniqueId=${null==e?void 0:e.uniqueId}&updatedBy=${null==e?void 0:e.updatedBy}`))),G6=a.lazy((()=>pr((()=>Promise.resolve().then((()=>c5))),void 0))),$6=a.lazy((()=>pr((()=>Promise.resolve().then((()=>h5))),void 0))),X6=a.lazy((()=>pr((()=>Promise.resolve().then((()=>g6))),void 0))),J6=a.lazy((()=>pr((()=>Promise.resolve().then((()=>X3))),void 0))),Z6=a.lazy((()=>pr((()=>Promise.resolve().then((()=>a6))),void 0))),e8=a.lazy((()=>pr((()=>Promise.resolve().then((()=>o6))),void 0))),t8=a.lazy((()=>pr((()=>Promise.resolve().then((()=>JM))),void 0))),n8=a.lazy((()=>pr((()=>Promise.resolve().then((()=>tR))),void 0)));a.lazy((()=>pr((()=>Promise.resolve().then((()=>F6))),void 0)));const i8=a.lazy((()=>pr((()=>Promise.resolve().then((()=>N6))),void 0)));a.lazy((()=>pr((()=>import("./CommonFaq-4d7cc6fa.js")),["assets/CommonFaq-4d7cc6fa.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js"])));const a8=a.lazy((()=>pr((()=>Promise.resolve().then((()=>KM))),void 0))),r8=a.lazy((()=>pr((()=>Promise.resolve().then((()=>MM))),void 0)));a.lazy((()=>pr((()=>Promise.resolve().then((()=>f6))),void 0)));const s8=a.lazy((()=>pr((()=>Promise.resolve().then((()=>f6))),void 0)));a.lazy((()=>pr((()=>import("./downloadSource-be3513a9.js")),["assets/downloadSource-be3513a9.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js","assets/downloadSource-d4a822a3.css"]))),a.lazy((()=>pr((()=>import("./contact-a97f3490.js")),["assets/contact-a97f3490.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js","assets/contact-92588c0e.css"])));const l8=a.lazy((()=>pr((()=>Promise.resolve().then((()=>O6))),void 0))),o8=a.lazy((()=>pr((()=>Promise.resolve().then((()=>P6))),void 0)));a.lazy((()=>pr((()=>Promise.resolve().then((()=>U6))),void 0)));const d8=a.lazy((()=>pr((()=>Promise.resolve().then((()=>D6))),void 0))),c8=()=>{var e,t,n,i,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B,P,k,T,E,D,L,U,_,O,M,R,Q,H,V,z,q,W,Y,K,G,$,X,J,Z,ee,te,ne,ie,ae,re,se,le,oe,de,ce,ue,pe,Ae,he,fe,me,ve,ge,ye,xe,be,we,je,Ce,Se,Ne,Ie,Fe,Be,Pe,ke,Te,Ee,De,Le,Ue,_e;const Oe=Vt(),Me=um(),Re=Qt(),Qe=a.useRef(),He=Tf(Z_),Ve=iA("AdminId"),ze=Tf(L_),[qe,We]=a.useState(!0);Tf(D_),a.useEffect((()=>{(async()=>{We(!0);try{const e=sessionStorage.getItem("auth"),t=Oe.appName.split("-").map(((e,t,n)=>"and"===e&&t>0&&t<n.length-1?"and":e.charAt(0).toUpperCase()+e.slice(1))).join(" "),n=[];e||n.push(Me(cL({username:"1000000001",password:"1234"})).unwrap()),n.push(Me(r_(t)).unwrap()),await Promise.all(n)}catch(e){}finally{We(!1)}})()}),[Oe.appName,Me]),a.useEffect((()=>{let e=!1;const t=()=>{const t=null==Qe?void 0:Qe.current;if(!t)return;const{top:n}=t.getBoundingClientRect();0===n?t.classList.add("navBarHover"):t.classList.remove("navBarHover"),e=!1},n=()=>{e||(window.requestAnimationFrame(t),e=!0)};return window.addEventListener("scroll",n,{passive:!0}),()=>{window.removeEventListener("scroll",n)}}),[]),a.useEffect((()=>{var e;Me(P_(null==(e=He.Testimonials)?void 0:e[1]))}),[He]);const Ke=Mt(),Ge=e=>{setTimeout((()=>{const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})}),300)};a.useEffect((()=>{null!=(null==Ke?void 0:Ke.state)&&Ge("Pricing")}),[null==Ke?void 0:Ke.state]);const[$e,Xe]=a.useState([]),Je=a.useCallback((async()=>{var e,t;try{const n=await Me(W6()).unwrap();1===(null==(e=null==n?void 0:n.data)?void 0:e.statusCode)&&Xe(null==(t=null==n?void 0:n.data)?void 0:t.data)}catch(n){}}),[Me]);return a.useEffect((()=>{Je()}),[Je]),a.useEffect((()=>{var e;(null==(e=null==Ke?void 0:Ke.state)?void 0:e.scrollToId)&&Ge(Ke.state.scrollToId)}),[null==Ke?void 0:Ke.state]),qe||0===Object.keys(He).length?Ye.jsx(Q6,{}):Ye.jsx(Ye.Fragment,{children:Object.keys(He).length>0?Ye.jsxs(Ye.Fragment,{children:["Navbar3"!==(null==(e=null==He?void 0:He.Navbar)?void 0:e[0])&&Ye.jsx("div",{className:"homeNavdiv",children:Ye.jsx(pL,{})}),"Navbar2"===(null==(t=null==He?void 0:He.Navbar)?void 0:t[0])&&Ye.jsxs("div",{children:[Ye.jsxs("div",{id:"Navbar",style:{position:"sticky",top:"0px",zIndex:"3"},ref:Qe,children:["Navbar1"==(null==(n=He.Navbar)?void 0:n[0])&&Ye.jsx(U2,{data:He.Navbar[1]}),"Navbar2"==(null==(i=He.Navbar)?void 0:i[0])&&Ye.jsx(R2,{data:He.Navbar[1]}),"Navbar3"==(null==(r=He.Navbar)?void 0:r[0])&&Ye.jsx(j6,{onNavigate:Ge,data:He.Navbar[1]})]}),Ye.jsxs("div",{id:"Overview",children:["Overview1"==(null==(s=He.Overview)?void 0:s[0])&&Ye.jsx(q2,{data:He.Overview[1]}),"Overview2"==(null==(l=He.Overview)?void 0:l[0])&&Ye.jsx(K2,{data:He.Overview[1]}),"Overview3"==(null==(o=He.Overview)?void 0:o[0])&&Ye.jsx(r5,{data:He.Overview[1]})]}),Ye.jsxs(a.Suspense,{fallback:null,children:[Ye.jsx("div",{id:"ShowCase",children:"Showcase1"==(null==(d=He.Showcase)?void 0:d[0])&&Ye.jsx(o8,{data:null==(u=null==(c=He.Showcase[1])?void 0:c[0])?void 0:u.FieldValue},"ShowCase")}),Ye.jsx("div",{id:"Appview",children:"Appview1"==(null==(p=He.Appview)?void 0:p[0])&&Ye.jsx(o8,{data:null==(h=null==(A=He.Appview[1])?void 0:A[0])?void 0:h.FieldValue},"Appview")}),Ye.jsx("div",{id:"Testimonials",children:"Testimonials1"==(null==(f=He.Testimonials)?void 0:f[0])&&Ye.jsx(d8,{isDefault:!1})}),Ye.jsxs("div",{id:"Features",children:["Features1"==(null==(m=He.Features)?void 0:m[0])&&Ye.jsx(G6,{data:He.Features[1]}),"Features2"==(null==(v=He.Features)?void 0:v[0])&&Ye.jsx($6,{data:He.Features[1]}),"Features3"==(null==(g=He.Features)?void 0:g[0])&&Ye.jsx(X6,{data:He.Features[1]})]}),Ye.jsxs("div",{id:"Pricing",children:["Pricing1"==(null==(y=He.Pricing)?void 0:y[0])&&Ye.jsx(J6,{data:He.Pricing[1],AdminId:Ve||(null==(x=null==Ke?void 0:Ke.state)?void 0:x.AdminId)}),"Pricing2"==(null==(b=He.Pricing)?void 0:b[0])&&Ye.jsx(Z6,{data:He.Pricing[1],AdminId:Ve||(null==(w=null==Ke?void 0:Ke.state)?void 0:w.AdminId)}),"Pricing3"==(null==(j=He.Pricing)?void 0:j[0])&&Ye.jsx(e8,{data:He.Pricing[1],AdminId:Ve||(null==(C=null==Ke?void 0:Ke.state)?void 0:C.AdminId)})]}),Ye.jsxs("div",{id:"Faq",children:["Faq1"==(null==(S=He.Faq)?void 0:S[0])&&Ye.jsx(t8,{data:He.Faq[1]}),"Faq2"==(null==(N=He.Faq)?void 0:N[0])&&Ye.jsx(n8,{data:He.Faq[1]}),"Faq3"==(null==(I=He.Faq)?void 0:I[0])&&Ye.jsx(i8,{data:He.Faq[1]})]}),Ye.jsx("div",{id:"CTA",children:"CTA1"==(null==(F=He.CTA)?void 0:F[0])&&Ye.jsx(l8,{data:He.CTA[1]})}),Ye.jsxs("div",{id:"Footer",children:["Footer1"==(null==(B=He.Footer)?void 0:B[0])&&Ye.jsx(a8,{data:He.Footer[1]}),"Footer2"==(null==(P=He.Footer)?void 0:P[0])&&Ye.jsx(r8,{data:He.Footer[1]}),"Footer3"==(null==(k=He.Footer)?void 0:k[0])&&Ye.jsx(s8,{data:He.Footer[1]})]})]})]}),"Navbar1"===(null==(T=null==He?void 0:He.Navbar)?void 0:T[0])&&Ye.jsxs("div",{children:[Ye.jsxs("div",{id:"Navbar",style:{position:"sticky",top:"0px",zIndex:"3"},ref:Qe,children:["Navbar1"==(null==(E=He.Navbar)?void 0:E[0])&&Ye.jsx(U2,{data:He.Navbar[1]}),"Navbar2"==(null==(D=He.Navbar)?void 0:D[0])&&Ye.jsx(R2,{data:He.Navbar[1]}),"Navbar3"==(null==(L=He.Navbar)?void 0:L[0])&&Ye.jsx(j6,{data:He.Navbar[1]})]}),Ye.jsxs("div",{id:"Overview",children:["Overview1"==(null==(U=He.Overview)?void 0:U[0])&&Ye.jsx(q2,{data:He.Overview[1]}),"Overview2"==(null==(_=He.Overview)?void 0:_[0])&&Ye.jsx(K2,{data:He.Overview[1]}),"Overview3"==(null==(O=He.Overview)?void 0:O[0])&&Ye.jsx(r5,{data:He.Overview[1]})]}),Ye.jsxs(a.Suspense,{fallback:null,children:[Ye.jsx("div",{id:"ShowCase",children:"Showcase1"==(null==(M=He.Showcase)?void 0:M[0])&&Ye.jsx(o8,{data:null==(Q=null==(R=He.Showcase[1])?void 0:R[0])?void 0:Q.FieldValue},"ShowCase")}),Ye.jsx("div",{id:"Appview",children:"Appview1"==(null==(H=He.Appview)?void 0:H[0])&&Ye.jsx(o8,{data:null==(z=null==(V=He.Appview[1])?void 0:V[0])?void 0:z.FieldValue},"Appview")}),Ye.jsx("div",{id:"Testimonials",children:"Testimonials1"==(null==(q=He.Testimonials)?void 0:q[0])&&Ye.jsx(d8,{isDefault:!1})}),Ye.jsxs("div",{id:"Features",children:["Features1"==(null==(W=He.Features)?void 0:W[0])&&Ye.jsx(G6,{data:He.Features[1]}),"Features2"==(null==(Y=He.Features)?void 0:Y[0])&&Ye.jsx($6,{data:He.Features[1]}),"Features3"==(null==(K=He.Features)?void 0:K[0])&&Ye.jsx(X6,{data:He.Features[1]})]}),Ye.jsxs("div",{id:"Pricing",children:["Pricing1"==(null==(G=He.Pricing)?void 0:G[0])&&Ye.jsx(J6,{data:He.Pricing[1],AdminId:Ve||(null==($=null==Ke?void 0:Ke.state)?void 0:$.AdminId)}),"Pricing2"==(null==(X=He.Pricing)?void 0:X[0])&&Ye.jsx(Z6,{data:He.Pricing[1],AdminId:Ve||(null==(J=null==Ke?void 0:Ke.state)?void 0:J.AdminId)}),"Pricing3"==(null==(Z=He.Pricing)?void 0:Z[0])&&Ye.jsx(e8,{data:He.Pricing[1],AdminId:Ve||(null==(ee=null==Ke?void 0:Ke.state)?void 0:ee.AdminId)})]}),Ye.jsxs("div",{id:"Faq",children:["Faq1"==(null==(te=He.Faq)?void 0:te[0])&&Ye.jsx(t8,{data:He.Faq[1]}),"Faq2"==(null==(ne=He.Faq)?void 0:ne[0])&&Ye.jsx(n8,{data:He.Faq[1]}),"Faq3"==(null==(ie=He.Faq)?void 0:ie[0])&&Ye.jsx(i8,{data:He.Faq[1]})]}),Ye.jsx("div",{id:"CTA",children:"CTA1"==(null==(ae=He.CTA)?void 0:ae[0])&&Ye.jsx(l8,{data:He.CTA[1]})}),Ye.jsxs("div",{id:"Footer",children:["Footer1"==(null==(re=He.Footer)?void 0:re[0])&&Ye.jsx(a8,{data:He.Footer[1]}),"Footer2"==(null==(se=He.Footer)?void 0:se[0])&&Ye.jsx(r8,{data:He.Footer[1]}),"Footer3"==(null==(le=He.Footer)?void 0:le[0])&&Ye.jsx(s8,{data:He.Footer[1]})]})]})]}),"Navbar3"===(null==(oe=null==He?void 0:He.Navbar)?void 0:oe[0])&&Ye.jsxs("div",{children:[Ye.jsxs("div",{id:"Navbar",style:{position:"sticky",top:"0px",zIndex:"3"},ref:Qe,children:["Navbar1"==(null==(de=He.Navbar)?void 0:de[0])&&Ye.jsx(U2,{data:He.Navbar[1]}),"Navbar2"==(null==(ce=He.Navbar)?void 0:ce[0])&&Ye.jsx(R2,{data:He.Navbar[1]}),"Navbar3"==(null==(ue=He.Navbar)?void 0:ue[0])&&Ye.jsx(j6,{onNavigate:Ge,data:He.Navbar[1]})]}),Ye.jsxs("div",{id:"Overview",children:["Overview1"==(null==(pe=He.Overview)?void 0:pe[0])&&Ye.jsx(q2,{data:He.Overview[1]}),"Overview2"==(null==(Ae=He.Overview)?void 0:Ae[0])&&Ye.jsx(K2,{data:He.Overview[1]}),"Overview3"==(null==(he=He.Overview)?void 0:he[0])&&Ye.jsx(r5,{data:He.Overview[1]})]}),Ye.jsxs(a.Suspense,{fallback:null,children:[Ye.jsx("div",{id:"ShowCase",children:"Showcase1"==(null==(fe=He.Showcase)?void 0:fe[0])&&Ye.jsx(o8,{data:null==(ve=null==(me=He.Showcase[1])?void 0:me[0])?void 0:ve.FieldValue},"ShowCase")}),Ye.jsx("div",{id:"Appview",children:"Appview1"==(null==(ge=He.Appview)?void 0:ge[0])&&Ye.jsx(o8,{data:null==(xe=null==(ye=He.Appview[1])?void 0:ye[0])?void 0:xe.FieldValue},"Appview")}),Ye.jsx("div",{id:"Testimonials",children:"Testimonials1"==(null==(be=He.Testimonials)?void 0:be[0])&&Ye.jsx(d8,{isDefault:!1})}),Ye.jsxs("div",{id:"Features",children:["Features1"==(null==(we=He.Features)?void 0:we[0])&&Ye.jsx(G6,{data:He.Features[1]}),"Features2"==(null==(je=He.Features)?void 0:je[0])&&Ye.jsx($6,{data:He.Features[1]}),"Features3"==(null==(Ce=He.Features)?void 0:Ce[0])&&Ye.jsx(X6,{data:He.Features[1]})]}),Ye.jsxs("div",{id:"Pricing",children:["Pricing1"==(null==(Se=He.Pricing)?void 0:Se[0])&&Ye.jsx(J6,{data:He.Pricing[1],AdminId:Ve||(null==(Ne=null==Ke?void 0:Ke.state)?void 0:Ne.AdminId)}),"Pricing2"==(null==(Ie=He.Pricing)?void 0:Ie[0])&&Ye.jsx(Z6,{data:He.Pricing[1],AdminId:Ve||(null==(Fe=null==Ke?void 0:Ke.state)?void 0:Fe.AdminId)}),"Pricing3"==(null==(Be=He.Pricing)?void 0:Be[0])&&Ye.jsx(e8,{data:He.Pricing[1],AdminId:Ve||(null==(Pe=null==Ke?void 0:Ke.state)?void 0:Pe.AdminId)})]}),Ye.jsxs("div",{id:"Faq",children:["Faq1"==(null==(ke=He.Faq)?void 0:ke[0])&&Ye.jsx(t8,{data:He.Faq[1]}),"Faq2"==(null==(Te=He.Faq)?void 0:Te[0])&&Ye.jsx(n8,{data:He.Faq[1]}),"Faq3"===(null==(Ee=He.Faq)?void 0:Ee[0])&&Ye.jsxs("div",{style:{margin:"0 0 2rem 0",width:"100%",display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center",gap:"1rem"},children:[Ye.jsx("div",{style:{fontSize:"16px",fontWeight:"600",margin:"1rem 0",fontFamily:(null==ze?void 0:ze.head)?null==ze?void 0:ze.head:""},children:"View complete FAQ list"}),Ye.jsxs("button",{scrollToId:"backFaq",onClick:()=>Re("/home/Faq",{state:{faqData:He.Faq[1],from:Ke.pathname}}),style:{fontFamily:(null==ze?void 0:ze.para)?null==ze?void 0:ze.para:"",gap:"10px",border:"none",backgroundColor:"unset",display:"flex",alignItems:"center",color:"#000",cursor:"pointer",borderBottom:"1px solid #000"},children:["See all FAQs ",Ye.jsx(eL,{size:24})]})]})]}),Ye.jsx("div",{id:"CTA",children:"CTA1"==(null==(De=He.CTA)?void 0:De[0])&&Ye.jsx(l8,{data:He.CTA[1]})}),Ye.jsxs("div",{id:"Footer",children:["Footer1"==(null==(Le=He.Footer)?void 0:Le[0])&&Ye.jsx(a8,{data:He.Footer[1]}),"Footer2"==(null==(Ue=He.Footer)?void 0:Ue[0])&&Ye.jsx(r8,{data:He.Footer[1]}),"Footer3"==(null==(_e=He.Footer)?void 0:_e[0])&&Ye.jsx(s8,{data:He.Footer[1]})]})]})]})]}):Ye.jsx("div",{children:Ye.jsx(Q6,{})})})},u8="/home/",p8="/home/";var A8=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function h8(){A8.console&&"function"==typeof A8.console.log&&A8.console.log.apply(A8.console,arguments)}var f8={log:h8,warn:function(e){A8.console&&("function"==typeof A8.console.warn?A8.console.warn.apply(A8.console,arguments):h8.call(null,arguments))},error:function(e){A8.console&&("function"==typeof A8.console.error?A8.console.error.apply(A8.console,arguments):h8(e))}};function m8(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){b8(i.response,t,n)},i.onerror=function(){f8.error("could not download file")},i.send()}function v8(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(n){}return t.status>=200&&t.status<=299}function g8(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var y8,x8,b8=A8.saveAs||("object"!==("undefined"==typeof window?"undefined":p(window))||window!==A8?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var i=A8.URL||A8.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener","string"==typeof e?(a.href=e,a.origin!==location.origin?v8(a.href)?m8(e,t,n):g8(a,a.target="_blank"):g8(a)):(a.href=i.createObjectURL(e),setTimeout((function(){i.revokeObjectURL(a.href)}),4e4),setTimeout((function(){g8(a)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"==typeof e)if(v8(e))m8(e,t,n);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){g8(i)}))}else navigator.msSaveOrOpenBlob((a=e,void 0===(r=n)?r={autoBom:!1}:"object"!==p(r)&&(f8.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob([String.fromCharCode(65279),a],{type:a.type}):a),t);var a,r}:function(e,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return m8(e,t,n);var a="application/octet-stream"===e.type,r=/constructor/i.test(A8.HTMLElement)||A8.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||a&&r)&&"object"===("undefined"==typeof FileReader?"undefined":p(FileReader))){var l=new FileReader;l.onloadend=function(){var e=l.result;e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},l.readAsDataURL(e)}else{var o=A8.URL||A8.webkitURL,d=o.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout((function(){o.revokeObjectURL(d)}),4e4)}});
|
||
/**
|
||
* A class to parse color values
|
||
* @author Stoyan Stefanov <sstoo@gmail.com>
|
||
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
||
* @license Use it if you like it
|
||
*/function w8(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],i=0;i<n.length;i++){var a=n[i].re,r=n[i].process,s=a.exec(e);s&&(t=r(s),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}}
|
||
/**
|
||
* @license
|
||
* Joseph Myers does not specify a particular license for his work.
|
||
*
|
||
* Author: Joseph Myers
|
||
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
|
||
*
|
||
* Modified by: Owen Leong
|
||
*/function j8(e,t){var n=e[0],i=e[1],a=e[2],r=e[3];n=S8(n,i,a,r,t[0],7,-680876936),r=S8(r,n,i,a,t[1],12,-389564586),a=S8(a,r,n,i,t[2],17,606105819),i=S8(i,a,r,n,t[3],22,-1044525330),n=S8(n,i,a,r,t[4],7,-176418897),r=S8(r,n,i,a,t[5],12,1200080426),a=S8(a,r,n,i,t[6],17,-1473231341),i=S8(i,a,r,n,t[7],22,-45705983),n=S8(n,i,a,r,t[8],7,1770035416),r=S8(r,n,i,a,t[9],12,-1958414417),a=S8(a,r,n,i,t[10],17,-42063),i=S8(i,a,r,n,t[11],22,-1990404162),n=S8(n,i,a,r,t[12],7,1804603682),r=S8(r,n,i,a,t[13],12,-40341101),a=S8(a,r,n,i,t[14],17,-1502002290),n=N8(n,i=S8(i,a,r,n,t[15],22,1236535329),a,r,t[1],5,-165796510),r=N8(r,n,i,a,t[6],9,-1069501632),a=N8(a,r,n,i,t[11],14,643717713),i=N8(i,a,r,n,t[0],20,-373897302),n=N8(n,i,a,r,t[5],5,-701558691),r=N8(r,n,i,a,t[10],9,38016083),a=N8(a,r,n,i,t[15],14,-660478335),i=N8(i,a,r,n,t[4],20,-405537848),n=N8(n,i,a,r,t[9],5,568446438),r=N8(r,n,i,a,t[14],9,-1019803690),a=N8(a,r,n,i,t[3],14,-187363961),i=N8(i,a,r,n,t[8],20,1163531501),n=N8(n,i,a,r,t[13],5,-1444681467),r=N8(r,n,i,a,t[2],9,-51403784),a=N8(a,r,n,i,t[7],14,1735328473),n=I8(n,i=N8(i,a,r,n,t[12],20,-1926607734),a,r,t[5],4,-378558),r=I8(r,n,i,a,t[8],11,-2022574463),a=I8(a,r,n,i,t[11],16,1839030562),i=I8(i,a,r,n,t[14],23,-35309556),n=I8(n,i,a,r,t[1],4,-1530992060),r=I8(r,n,i,a,t[4],11,1272893353),a=I8(a,r,n,i,t[7],16,-155497632),i=I8(i,a,r,n,t[10],23,-1094730640),n=I8(n,i,a,r,t[13],4,681279174),r=I8(r,n,i,a,t[0],11,-358537222),a=I8(a,r,n,i,t[3],16,-722521979),i=I8(i,a,r,n,t[6],23,76029189),n=I8(n,i,a,r,t[9],4,-640364487),r=I8(r,n,i,a,t[12],11,-421815835),a=I8(a,r,n,i,t[15],16,530742520),n=F8(n,i=I8(i,a,r,n,t[2],23,-995338651),a,r,t[0],6,-198630844),r=F8(r,n,i,a,t[7],10,1126891415),a=F8(a,r,n,i,t[14],15,-1416354905),i=F8(i,a,r,n,t[5],21,-57434055),n=F8(n,i,a,r,t[12],6,1700485571),r=F8(r,n,i,a,t[3],10,-1894986606),a=F8(a,r,n,i,t[10],15,-1051523),i=F8(i,a,r,n,t[1],21,-2054922799),n=F8(n,i,a,r,t[8],6,1873313359),r=F8(r,n,i,a,t[15],10,-30611744),a=F8(a,r,n,i,t[6],15,-1560198380),i=F8(i,a,r,n,t[13],21,1309151649),n=F8(n,i,a,r,t[4],6,-145523070),r=F8(r,n,i,a,t[11],10,-1120210379),a=F8(a,r,n,i,t[2],15,718787259),i=F8(i,a,r,n,t[9],21,-343485551),e[0]=U8(n,e[0]),e[1]=U8(i,e[1]),e[2]=U8(a,e[2]),e[3]=U8(r,e[3])}function C8(e,t,n,i,a,r){return t=U8(U8(t,e),U8(i,r)),U8(t<<a|t>>>32-a,n)}function S8(e,t,n,i,a,r,s){return C8(t&n|~t&i,e,t,a,r,s)}function N8(e,t,n,i,a,r,s){return C8(t&i|n&~i,e,t,a,r,s)}function I8(e,t,n,i,a,r,s){return C8(t^n^i,e,t,a,r,s)}function F8(e,t,n,i,a,r,s){return C8(n^(t|~i),e,t,a,r,s)}function B8(e){var t,n=e.length,i=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)j8(i,P8(e.substring(t-64,t)));e=e.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(j8(i,a),t=0;t<16;t++)a[t]=0;return a[14]=8*n,j8(i,a),i}function P8(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}y8=A8.atob.bind(A8),x8=A8.btoa.bind(A8);var k8="0123456789abcdef".split("");function T8(e){for(var t="",n=0;n<4;n++)t+=k8[e>>8*n+4&15]+k8[e>>8*n&15];return t}function E8(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function D8(e){return B8(e).map(E8).join("")}var L8="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t<e.length;t++)e[t]=T8(e[t]);return e.join("")}(B8("hello"));function U8(e,t){if(L8){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}
|
||
/**
|
||
* @license
|
||
* FPDF is released under a permissive license: there is no usage restriction.
|
||
* You may embed it freely in your application (commercial or not), with or
|
||
* without modifications.
|
||
*
|
||
* Reference: http://www.fpdf.org/en/script/script37.php
|
||
*/function _8(e,t){var n,i,a,r;if(e!==n){for(var s=(a=e,r=1+(256/e.length|0),new Array(r+1).join(a)),l=[],o=0;o<256;o++)l[o]=o;var d=0;for(o=0;o<256;o++){var c=l[o];d=(d+c+s.charCodeAt(o))%256,l[o]=l[d],l[d]=c}n=e,i=l}else l=i;var u=t.length,p=0,A=0,h="";for(o=0;o<u;o++)A=(A+(c=l[p=(p+1)%256]))%256,l[p]=l[A],l[A]=c,s=l[(l[p]+l[A])%256],h+=String.fromCharCode(t.charCodeAt(o)^s);return h}
|
||
/**
|
||
* @license
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
* Author: Owen Leong (@owenl131)
|
||
* Date: 15 Oct 2020
|
||
* References:
|
||
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
||
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
||
* http://www.fpdf.org/en/script/script37.php
|
||
*/var O8={print:4,modify:8,copy:16,"annot-forms":32};function M8(e,t,n,i){this.v=1,this.r=2;var a=192;e.forEach((function(e){if(void 0!==O8.perm)throw new Error("Invalid permission: "+e);a+=O8[e]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var r=(t+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(r,s),this.P=-(1+(255^a)),this.encryptionKey=D8(r+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=_8(this.encryptionKey,this.padding)}function R8(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,i=0;i<n;i++){var a=e.charCodeAt(i);t+=a<33||35===a||37===a||40===a||41===a||47===a||60===a||62===a||91===a||93===a||123===a||125===a||a>126?"#"+("0"+a.toString(16)).slice(-2):e[i]}return t}function Q8(e){if("object"!==p(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,i){if(i=i||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof i)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var a=Math.random().toString(35);return t[e][a]=[n,!!i],a},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),a=[];for(var r in t[n]){var s=t[n][r];try{s[0].apply(e,i)}catch(l){A8.console&&f8.error("jsPDF PubSub Error",l.message,l)}s[1]&&a.push(r)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function H8(e){if(!(this instanceof H8))return new H8(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function V8(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function z8(e,t,n,i,a){if(!(this instanceof z8))return new z8(e,t,n,i,a);this.type="axial"===e?2:3,this.coords=t,this.colors=n,V8.call(this,i,a)}function q8(e,t,n,i,a){if(!(this instanceof q8))return new q8(e,t,n,i,a);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,V8.call(this,i,a)}function W8(e){var t,n="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],a=arguments[2],r=arguments[3],s=[],l=1,o=16,d="S",c=null;"object"===p(e=e||{})&&(n=e.orientation,i=e.unit||i,a=e.format||a,r=e.compress||e.compressPdf||r,null!==(c=e.encryption||null)&&(c.userPassword=c.userPassword||"",c.ownerPassword=c.ownerPassword||"",c.userPermissions=c.userPermissions||[]),l="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(o=e.floatPrecision),d=e.defaultPathOperation||"S"),s=e.filters||(!0===r?["FlateEncode"]:s),i=i||"mm",n=(""+(n||"P")).toLowerCase();var u=e.putOnlyUsedFonts||!1,A={},h={internal:{},__private__:{}};h.__private__.PubSub=Q8;var f="1.3",m=h.__private__.getPdfVersion=function(){return f};h.__private__.setPdfVersion=function(e){f=e};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return v};var g=h.__private__.getPageFormat=function(e){return v[e]};a=a||"a4";var y="compat",x="advanced",b=y;function w(){this.saveGraphicsState(),J(new Te(Ae,0,0,-Ae,0,cn()*Ae).toString()+" cm"),this.setFontSize(this.getFontSize()/Ae),d="n",b=x}function j(){this.restoreGraphicsState(),d="S",b=y}var C=h.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};h.advancedAPI=function(e){var t=b===y;return t&&w.call(this),"function"!=typeof e||(e(this),t&&j.call(this)),this},h.compatAPI=function(e){var t=b===x;return t&&j.call(this),"function"!=typeof e||(e(this),t&&w.call(this)),this},h.isAdvancedAPI=function(){return b===x};var S,N=function(e){if(b!==x)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},I=h.roundToPrecision=h.__private__.roundToPrecision=function(e,n){var i=t||n;if(isNaN(e)||isNaN(i))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(i).replace(/0+$/,"")};S=h.hpf=h.__private__.hpf="number"==typeof o?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,o)}:"smart"===o?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,16)};var F=h.f2=h.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return I(e,2)},B=h.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return I(e,3)},P=h.scale=h.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return b===y?e*Ae:b===x?e:void 0},k=function(e){return P(function(e){return b===y?cn()-e:b===x?e:void 0}(e))};h.__private__.setPrecision=h.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var T,E="00000000000000000000000000000000",D=h.__private__.getFileId=function(){return E},L=h.__private__.setFileId=function(e){return E=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():E.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==c&&(yt=new M8(c.userPermissions,c.userPassword,c.ownerPassword,E)),E};h.setFileId=function(e){return L(e),this},h.getFileId=function(){return D()};var U=h.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",i=Math.floor(Math.abs(t/60)),a=Math.abs(t%60),r=[n,Q(i),"'",Q(a),"'"].join("");return["D:",e.getFullYear(),Q(e.getMonth()+1),Q(e.getDate()),Q(e.getHours()),Q(e.getMinutes()),Q(e.getSeconds()),r].join("")},_=h.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,i=parseInt(e.substr(8,2),10),a=parseInt(e.substr(10,2),10),r=parseInt(e.substr(12,2),10),s=parseInt(e.substr(14,2),10);return new Date(t,n,i,a,r,s,0)},O=h.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=U(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return T=t},M=h.__private__.getCreationDate=function(e){var t=T;return"jsDate"===e&&(t=_(T)),t};h.setCreationDate=function(e){return O(e),this},h.getCreationDate=function(e){return M(e)};var R,Q=h.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},H=h.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},V=0,z=[],q=[],W=0,Y=[],K=[],G=!1,$=q;h.__private__.setCustomOutputDestination=function(e){G=!0,$=e};var X=function(e){G||($=e)};h.__private__.resetCustomOutputDestination=function(){G=!1,$=q};var J=h.__private__.out=function(e){return e=e.toString(),W+=e.length+1,$.push(e),$},Z=h.__private__.write=function(e){return J(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},ee=h.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),i=new Uint8Array(n);t--;)i[t]=e.charCodeAt(t);return n},te=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return te};var ne=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(e){return ne=b===x?e/Ae:e,this};var ie,ae=h.__private__.getFontSize=h.getFontSize=function(){return b===y?ne:ne*Ae},re=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(e){return re=e,this},h.__private__.getR2L=h.getR2L=function(){return re};var se,le=h.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))ie=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');ie=e}else ie=parseInt(e,10)};h.__private__.getZoomMode=function(){return ie};var oe,de=h.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');se=e};h.__private__.getPageMode=function(){return se};var ce=h.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');oe=e};h.__private__.getLayoutMode=function(){return oe},h.__private__.setDisplayMode=h.setDisplayMode=function(e,t,n){return le(e),ce(t),de(n),this};var ue={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(e){if(-1===Object.keys(ue).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ue[e]},h.__private__.getDocumentProperties=function(){return ue},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(e){for(var t in ue)ue.hasOwnProperty(t)&&e[t]&&(ue[t]=e[t]);return this},h.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(ue).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ue[e]=t};var pe,Ae,he,fe,me,ve={},ge={},ye=[],xe={},be={},we={},je={},Ce=null,Se=0,Ne=[],Ie=new Q8(h),Fe=e.hotfixes||[],Be={},Pe={},ke=[],Te=function e(t,n,i,a,r,s){if(!(this instanceof e))return new e(t,n,i,a,r,s);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(i)&&(i=0),isNaN(a)&&(a=1),isNaN(r)&&(r=0),isNaN(s)&&(s=0),this._matrix=[t,n,i,a,r,s]};Object.defineProperty(Te.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Te.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Te.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Te.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Te.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Te.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Te.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Te.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Te.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Te.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Te.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Te.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Te.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Te.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Te.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Te.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Te.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(S).join(e)},Te.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,n=e.sx*this.shy+e.shy*this.sy,i=e.shx*this.sx+e.sy*this.shx,a=e.shx*this.shy+e.sy*this.sy,r=e.tx*this.sx+e.ty*this.shx+this.tx,s=e.tx*this.shy+e.ty*this.sy+this.ty;return new Te(t,n,i,a,r,s)},Te.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,i=this.sy,a=this.tx,r=this.ty,s=Math.sqrt(e*e+t*t),l=(e/=s)*n+(t/=s)*i;n-=e*l,i-=t*l;var o=Math.sqrt(n*n+i*i);return l/=o,e*(i/=o)<t*(n/=o)&&(e=-e,t=-t,l=-l,s=-s),{scale:new Te(s,0,0,o,0,0),translate:new Te(1,0,0,1,a,r),rotate:new Te(e,t,-t,e,0,0),skew:new Te(1,0,l,1,0,0)}},Te.prototype.toString=function(e){return this.join(" ")},Te.prototype.inversed=function(){var e=this.sx,t=this.shy,n=this.shx,i=this.sy,a=this.tx,r=this.ty,s=1/(e*i-t*n),l=i*s,o=-t*s,d=-n*s,c=e*s;return new Te(l,o,d,c,-l*a-d*r,-o*a-c*r)},Te.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,n=e.x*this.shy+e.y*this.sy+this.ty;return new nn(t,n)},Te.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new nn(e.x+e.w,e.y+e.h));return new an(t.x,t.y,n.x-t.x,n.y-t.y)},Te.prototype.clone=function(){var e=this.sx,t=this.shy,n=this.shx,i=this.sy,a=this.tx,r=this.ty;return new Te(e,t,n,i,a,r)},h.Matrix=Te;var Ee=h.matrixMult=function(e,t){return t.multiply(e)},De=new Te(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=De;var Le=function(e,t){if(!be[e]){var n=(t instanceof z8?"Sh":"P")+(Object.keys(xe).length+1).toString(10);t.id=n,be[e]=n,xe[n]=t,Ie.publish("addPattern",t)}};h.ShadingPattern=z8,h.TilingPattern=q8,h.addShadingPattern=function(e,t){return N("addShadingPattern()"),Le(e,t),this},h.beginTilingPattern=function(e){N("beginTilingPattern()"),sn(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},h.endTilingPattern=function(e,t){N("endTilingPattern()"),t.stream=K[R].join("\n"),Le(e,t),Ie.publish("endTilingPattern",t),ke.pop().restore()};var Ue=h.__private__.newObject=function(){var e=_e();return Oe(e,!0),e},_e=h.__private__.newObjectDeferred=function(){return V++,z[V]=function(){return W},V},Oe=function(e,t){return t="boolean"==typeof t&&t,z[e]=W,t&&J(e+" 0 obj"),e},Me=h.__private__.newAdditionalObject=function(){var e={objId:_e(),content:""};return Y.push(e),e},Re=_e(),Qe=_e(),He=h.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var n=parseFloat(t[0]);t=[n,n,n,"r"]}for(var i="#",a=0;a<3;a++)i+=("0"+Math.floor(255*parseFloat(t[a])).toString(16)).slice(-2);return i},Ve=h.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var n=e.ch1,i=e.ch2,a=e.ch3,r=e.ch4,s="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var l=new w8(n);if(l.ok)n=l.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var o=parseInt(n.substr(1),16);n=o>>16&255,i=o>>8&255,a=255&o}if(void 0===i||void 0===r&&n===i&&i===a)if("string"==typeof n)t=n+" "+s[0];else if(2===e.precision)t=F(n/255)+" "+s[0];else t=B(n/255)+" "+s[0];else if(void 0===r||"object"===p(r)){if(r&&!isNaN(r.a)&&0===r.a)return["1.","1.","1.",s[1]].join(" ");if("string"==typeof n)t=[n,i,a,s[1]].join(" ");else if(2===e.precision)t=[F(n/255),F(i/255),F(a/255),s[1]].join(" ");else t=[B(n/255),B(i/255),B(a/255),s[1]].join(" ")}else if("string"==typeof n)t=[n,i,a,r,s[2]].join(" ");else if(2===e.precision)t=[F(n),F(i),F(a),F(r),s[2]].join(" ");else t=[B(n),B(i),B(a),B(r),s[2]].join(" ");return t},ze=h.__private__.getFilters=function(){return s},qe=h.__private__.putStream=function(e){var t=(e=e||{}).data||"",n=e.filters||ze(),i=e.alreadyAppliedFilters||[],a=e.addLength1||!1,r=t.length,s=e.objectId,l=function(e){return e};if(null!==c&&void 0===s)throw new Error("ObjectId must be passed to putStream for file encryption");null!==c&&(l=yt.encryptor(s,0));var o={};!0===n&&(n=["FlateEncode"]);var d=e.additionalKeyValues||[],u=(o=void 0!==W8.API.processDataByFilters?W8.API.processDataByFilters(t,n):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(i)?i.join(" "):i.toString());if(0!==o.data.length&&(d.push({key:"Length",value:o.data.length}),!0===a&&d.push({key:"Length1",value:r})),0!=u.length)if(u.split("/").length-1==1)d.push({key:"Filter",value:u});else{d.push({key:"Filter",value:"["+u+"]"});for(var p=0;p<d.length;p+=1)if("DecodeParms"===d[p].key){for(var A=[],h=0;h<o.reverseChain.split("/").length-1;h+=1)A.push("null");A.push(d[p].value),d[p].value="["+A.join(" ")+"]"}}J("<<");for(var f=0;f<d.length;f++)J("/"+d[f].key+" "+d[f].value);J(">>"),0!==o.data.length&&(J("stream"),J(l(o.data)),J("endstream"))},We=h.__private__.putPage=function(e){var t=e.number,n=e.data,i=e.objId,a=e.contentsObjId;Oe(i,!0),J("<</Type /Page"),J("/Parent "+e.rootDictionaryObjId+" 0 R"),J("/Resources "+e.resourceDictionaryObjId+" 0 R"),J("/MediaBox ["+parseFloat(S(e.mediaBox.bottomLeftX))+" "+parseFloat(S(e.mediaBox.bottomLeftY))+" "+S(e.mediaBox.topRightX)+" "+S(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&J("/CropBox ["+S(e.cropBox.bottomLeftX)+" "+S(e.cropBox.bottomLeftY)+" "+S(e.cropBox.topRightX)+" "+S(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&J("/BleedBox ["+S(e.bleedBox.bottomLeftX)+" "+S(e.bleedBox.bottomLeftY)+" "+S(e.bleedBox.topRightX)+" "+S(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&J("/TrimBox ["+S(e.trimBox.bottomLeftX)+" "+S(e.trimBox.bottomLeftY)+" "+S(e.trimBox.topRightX)+" "+S(e.trimBox.topRightY)+"]"),null!==e.artBox&&J("/ArtBox ["+S(e.artBox.bottomLeftX)+" "+S(e.artBox.bottomLeftY)+" "+S(e.artBox.topRightX)+" "+S(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&J("/UserUnit "+e.userUnit),Ie.publish("putPage",{objId:i,pageContext:Ne[t],pageNumber:t,page:n}),J("/Contents "+a+" 0 R"),J(">>"),J("endobj");var r=n.join("\n");return b===x&&(r+="\nQ"),Oe(a,!0),qe({data:r,filters:ze(),objectId:a}),J("endobj"),i},Ye=h.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=Se;e++)Ne[e].objId=_e(),Ne[e].contentsObjId=_e();for(e=1;e<=Se;e++)n.push(We({number:e,data:K[e],objId:Ne[e].objId,contentsObjId:Ne[e].contentsObjId,mediaBox:Ne[e].mediaBox,cropBox:Ne[e].cropBox,bleedBox:Ne[e].bleedBox,trimBox:Ne[e].trimBox,artBox:Ne[e].artBox,userUnit:Ne[e].userUnit,rootDictionaryObjId:Re,resourceDictionaryObjId:Qe}));Oe(Re,!0),J("<</Type /Pages");var i="/Kids [";for(t=0;t<Se;t++)i+=n[t]+" 0 R ";J(i+"]"),J("/Count "+Se),J(">>"),J("endobj"),Ie.publish("postPutPages")},Ke=function(e){Ie.publish("putFont",{font:e,out:J,newObject:Ue,putStream:qe}),!0!==e.isAlreadyPutted&&(e.objectNumber=Ue(),J("<<"),J("/Type /Font"),J("/BaseFont /"+R8(e.postScriptName)),J("/Subtype /Type1"),"string"==typeof e.encoding&&J("/Encoding /"+e.encoding),J("/FirstChar 32"),J("/LastChar 255"),J(">>"),J("endobj"))},Ge=function(e){e.objectNumber=Ue();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[S(e.x),S(e.y),S(e.x+e.width),S(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var n=e.pages[1].join("\n");qe({data:n,additionalKeyValues:t,objectId:e.objectNumber}),J("endobj")},$e=function(e,t){t||(t=21);var n=Ue(),i=function(e,t){var n,i=[],a=1/(t-1);for(n=0;n<1;n+=a)i.push(n);if(i.push(1),0!=e[0].offset){var r={offset:0,color:e[0].color};e.unshift(r)}if(1!=e[e.length-1].offset){var s={offset:1,color:e[e.length-1].color};e.push(s)}for(var l="",o=0,d=0;d<i.length;d++){for(n=i[d];n>e[o+1].offset;)o++;var c=e[o].offset,u=(n-c)/(e[o+1].offset-c),p=e[o].color,A=e[o+1].color;l+=H(Math.round((1-u)*p[0]+u*A[0]).toString(16))+H(Math.round((1-u)*p[1]+u*A[1]).toString(16))+H(Math.round((1-u)*p[2]+u*A[2]).toString(16))}return l.trim()}(e.colors,t),a=[];a.push({key:"FunctionType",value:"0"}),a.push({key:"Domain",value:"[0.0 1.0]"}),a.push({key:"Size",value:"["+t+"]"}),a.push({key:"BitsPerSample",value:"8"}),a.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),a.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),qe({data:i,additionalKeyValues:a,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),J("endobj"),e.objectNumber=Ue(),J("<< /ShadingType "+e.type),J("/ColorSpace /DeviceRGB");var r="/Coords ["+S(parseFloat(e.coords[0]))+" "+S(parseFloat(e.coords[1]))+" ";2===e.type?r+=S(parseFloat(e.coords[2]))+" "+S(parseFloat(e.coords[3])):r+=S(parseFloat(e.coords[2]))+" "+S(parseFloat(e.coords[3]))+" "+S(parseFloat(e.coords[4]))+" "+S(parseFloat(e.coords[5])),J(r+="]"),e.matrix&&J("/Matrix ["+e.matrix.toString()+"]"),J("/Function "+n+" 0 R"),J("/Extend [true true]"),J(">>"),J("endobj")},Xe=function(e,t){var n=_e(),i=Ue();t.push({resourcesOid:n,objectOid:i}),e.objectNumber=i;var a=[];a.push({key:"Type",value:"/Pattern"}),a.push({key:"PatternType",value:"1"}),a.push({key:"PaintType",value:"1"}),a.push({key:"TilingType",value:"1"}),a.push({key:"BBox",value:"["+e.boundingBox.map(S).join(" ")+"]"}),a.push({key:"XStep",value:S(e.xStep)}),a.push({key:"YStep",value:S(e.yStep)}),a.push({key:"Resources",value:n+" 0 R"}),e.matrix&&a.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),qe({data:e.stream,additionalKeyValues:a,objectId:e.objectNumber}),J("endobj")},Je=function(e){for(var t in e.objectNumber=Ue(),J("<<"),e)switch(t){case"opacity":J("/ca "+F(e[t]));break;case"stroke-opacity":J("/CA "+F(e[t]))}J(">>"),J("endobj")},Ze=function(e){Oe(e.resourcesOid,!0),J("<<"),J("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var e in J("/Font <<"),ve)ve.hasOwnProperty(e)&&(!1===u||!0===u&&A.hasOwnProperty(e))&&J("/"+e+" "+ve[e].objectNumber+" 0 R");J(">>")}(),function(){if(Object.keys(xe).length>0){for(var e in J("/Shading <<"),xe)xe.hasOwnProperty(e)&&xe[e]instanceof z8&&xe[e].objectNumber>=0&&J("/"+e+" "+xe[e].objectNumber+" 0 R");Ie.publish("putShadingPatternDict"),J(">>")}}(),function(e){if(Object.keys(xe).length>0){for(var t in J("/Pattern <<"),xe)xe.hasOwnProperty(t)&&xe[t]instanceof h.TilingPattern&&xe[t].objectNumber>=0&&xe[t].objectNumber<e&&J("/"+t+" "+xe[t].objectNumber+" 0 R");Ie.publish("putTilingPatternDict"),J(">>")}}(e.objectOid),function(){if(Object.keys(we).length>0){var e;for(e in J("/ExtGState <<"),we)we.hasOwnProperty(e)&&we[e].objectNumber>=0&&J("/"+e+" "+we[e].objectNumber+" 0 R");Ie.publish("putGStateDict"),J(">>")}}(),function(){for(var e in J("/XObject <<"),Be)Be.hasOwnProperty(e)&&Be[e].objectNumber>=0&&J("/"+e+" "+Be[e].objectNumber+" 0 R");Ie.publish("putXobjectDict"),J(">>")}(),J(">>"),J("endobj")},et=function(){var e=[];(function(){for(var e in ve)ve.hasOwnProperty(e)&&(!1===u||!0===u&&A.hasOwnProperty(e))&&Ke(ve[e])})(),function(){var e;for(e in we)we.hasOwnProperty(e)&&Je(we[e])}(),function(){for(var e in Be)Be.hasOwnProperty(e)&&Ge(Be[e])}(),function(e){var t;for(t in xe)xe.hasOwnProperty(t)&&(xe[t]instanceof z8?$e(xe[t]):xe[t]instanceof q8&&Xe(xe[t],e))}(e),Ie.publish("putResources"),e.forEach(Ze),Ze({resourcesOid:Qe,objectOid:Number.MAX_SAFE_INTEGER}),Ie.publish("postPutResources")},tt=function(e){ge[e.fontName]=ge[e.fontName]||{},ge[e.fontName][e.fontStyle]=e.id},nt=function(e,t,n,i,a){var r={id:"F"+(Object.keys(ve).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:n,encoding:i,isStandardFont:a||!1,metadata:{}};return Ie.publish("addFont",{font:r,instance:this}),ve[r.id]=r,tt(r),r.id},it=h.__private__.pdfEscape=h.pdfEscape=function(e,t){return function(e,t){var n,i,a,r,s,l,o,d,c;if(a=(t=t||{}).sourceEncoding||"Unicode",s=t.outputEncoding,(t.autoencode||s)&&ve[pe].metadata&&ve[pe].metadata[a]&&ve[pe].metadata[a].encoding&&(r=ve[pe].metadata[a].encoding,!s&&ve[pe].encoding&&(s=ve[pe].encoding),!s&&r.codePages&&(s=r.codePages[0]),"string"==typeof s&&(s=r[s]),s)){for(o=!1,l=[],n=0,i=e.length;n<i;n++)(d=s[e.charCodeAt(n)])?l.push(String.fromCharCode(d)):l.push(e[n]),l[n].charCodeAt(0)>>8&&(o=!0);e=l.join("")}for(n=e.length;void 0===o&&0!==n;)e.charCodeAt(n-1)>>8&&(o=!0),n--;if(!o)return e;for(l=t.noBOM?[]:[254,255],n=0,i=e.length;n<i;n++){if((c=(d=e.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");l.push(c),l.push(d-(c<<8))}return String.fromCharCode.apply(void 0,l)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},at=h.__private__.beginPage=function(e){K[++Se]=[],Ne[Se]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},lt(Se),X(K[R])},rt=function(e,t){var i,r,s;switch(n=t||n,"string"==typeof e&&(i=g(e.toLowerCase()),Array.isArray(i)&&(r=i[0],s=i[1])),Array.isArray(e)&&(r=e[0]*Ae,s=e[1]*Ae),isNaN(r)&&(r=a[0],s=a[1]),(r>14400||s>14400)&&(f8.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),r=Math.min(14400,r),s=Math.min(14400,s)),a=[r,s],n.substr(0,1)){case"l":s>r&&(a=[s,r]);break;case"p":r>s&&(a=[s,r])}at(a),Mt(_t),J(Yt),0!==Zt&&J(Zt+" J"),0!==en&&J(en+" j"),Ie.publish("addPage",{pageNumber:Se})},st=function(e){e>0&&e<=Se&&(K.splice(e,1),Ne.splice(e,1),Se--,R>Se&&(R=Se),this.setPage(R))},lt=function(e){e>0&&e<=Se&&(R=e)},ot=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return K.length-1},dt=function(e,t,n){var i,a=void 0;return n=n||{},e=void 0!==e?e:ve[pe].fontName,t=void 0!==t?t:ve[pe].fontStyle,i=e.toLowerCase(),void 0!==ge[i]&&void 0!==ge[i][t]?a=ge[i][t]:void 0!==ge[e]&&void 0!==ge[e][t]?a=ge[e][t]:!1===n.disableWarning&&f8.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),a||n.noFallback||null==(a=ge.times[t])&&(a=ge.times.normal),a},ct=h.__private__.putInfo=function(){var e=Ue(),t=function(e){return e};for(var n in null!==c&&(t=yt.encryptor(e,0)),J("<<"),J("/Producer ("+it(t("jsPDF "+W8.version))+")"),ue)ue.hasOwnProperty(n)&&ue[n]&&J("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+it(t(ue[n]))+")");J("/CreationDate ("+it(t(T))+")"),J(">>"),J("endobj")},ut=h.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Re;switch(Ue(),J("<<"),J("/Type /Catalog"),J("/Pages "+t+" 0 R"),ie||(ie="fullwidth"),ie){case"fullwidth":J("/OpenAction [3 0 R /FitH null]");break;case"fullheight":J("/OpenAction [3 0 R /FitV null]");break;case"fullpage":J("/OpenAction [3 0 R /Fit]");break;case"original":J("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+ie;"%"===n.substr(n.length-1)&&(ie=parseInt(ie)/100),"number"==typeof ie&&J("/OpenAction [3 0 R /XYZ null null "+F(ie)+"]")}switch(oe||(oe="continuous"),oe){case"continuous":J("/PageLayout /OneColumn");break;case"single":J("/PageLayout /SinglePage");break;case"two":case"twoleft":J("/PageLayout /TwoColumnLeft");break;case"tworight":J("/PageLayout /TwoColumnRight")}se&&J("/PageMode /"+se),Ie.publish("putCatalog"),J(">>"),J("endobj")},pt=h.__private__.putTrailer=function(){J("trailer"),J("<<"),J("/Size "+(V+1)),J("/Root "+V+" 0 R"),J("/Info "+(V-1)+" 0 R"),null!==c&&J("/Encrypt "+yt.oid+" 0 R"),J("/ID [ <"+E+"> <"+E+"> ]"),J(">>")},At=h.__private__.putHeader=function(){J("%PDF-"+f),J("%ºß¬à")},ht=h.__private__.putXRef=function(){var e="0000000000";J("xref"),J("0 "+(V+1)),J("0000000000 65535 f ");for(var t=1;t<=V;t++)"function"==typeof z[t]?J((e+z[t]()).slice(-10)+" 00000 n "):void 0!==z[t]?J((e+z[t]).slice(-10)+" 00000 n "):J("0000000000 00000 n ")},ft=h.__private__.buildDocument=function(){V=0,W=0,q=[],z=[],Y=[],Re=_e(),Qe=_e(),X(q),Ie.publish("buildDocument"),At(),Ye(),function(){Ie.publish("putAdditionalObjects");for(var e=0;e<Y.length;e++){var t=Y[e];Oe(t.objId,!0),J(t.content),J("endobj")}Ie.publish("postPutAdditionalObjects")}(),et(),null!==c&&(yt.oid=Ue(),J("<<"),J("/Filter /Standard"),J("/V "+yt.v),J("/R "+yt.r),J("/U <"+yt.toHexString(yt.U)+">"),J("/O <"+yt.toHexString(yt.O)+">"),J("/P "+yt.P),J(">>"),J("endobj")),ct(),ut();var e=W;return ht(),pt(),J("startxref"),J(""+e),J("%%EOF"),X(K[R]),q.join("\n")},mt=h.__private__.getBlob=function(e){return new Blob([ee(e)],{type:"application/pdf"})},vt=h.output=h.__private__.output=function(e){return e.foo=function(){try{return e.apply(this,arguments)}catch(i){var t=i.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var n="Error in function "+t.split("\n")[0].split("<")[0]+": "+i.message;if(!A8.console)throw new Error(n);A8.console.error(n,i),A8.alert&&alert(n)}},e.foo.bar=e,e.foo}((function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return ft();case"save":h.save(t.filename);break;case"arraybuffer":return ee(ft());case"blob":return mt(ft());case"bloburi":case"bloburl":if(void 0!==A8.URL&&"function"==typeof A8.URL.createObjectURL)return A8.URL&&A8.URL.createObjectURL(mt(ft()))||void 0;f8.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",i=ft();try{n=x8(i)}catch(A){n=x8(unescape(encodeURIComponent(i)))}return"data:application/pdf;filename="+t.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(A8)){var a="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",r=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(a=t.pdfObjectUrl,r="");var s='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+a+'"'+r+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",l=A8.open();return null!==l&&l.document.write(s),l}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(A8)){var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',d=A8.open();if(null!==d){d.document.write(o);var c=this;d.document.documentElement.querySelector("#pdfViewer").onload=function(){d.document.title=t.filename,d.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(c.output("bloburl"))}}return d}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(A8))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var u='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',p=A8.open();if(null!==p&&(p.document.write(u),p.document.title=t.filename),p||"undefined"==typeof safari)return p;break;case"datauri":case"dataurl":return A8.document.location.href=this.output("datauristring",t);default:return null}})),gt=function(e){return!0===Array.isArray(Fe)&&Fe.indexOf(e)>-1};switch(i){case"pt":Ae=1;break;case"mm":Ae=72/25.4;break;case"cm":Ae=72/2.54;break;case"in":Ae=72;break;case"px":Ae=1==gt("px_scaling")?.75:96/72;break;case"pc":case"em":Ae=12;break;case"ex":Ae=6;break;default:if("number"!=typeof i)throw new Error("Invalid unit: "+i);Ae=i}var yt=null;O(),L();var xt=h.__private__.getPageInfo=h.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ne[e].objId,pageNumber:e,pageContext:Ne[e]}},bt=h.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in Ne)if(Ne[t].objId===e)break;return xt(t)},wt=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:Ne[R].objId,pageNumber:R,pageContext:Ne[R]}};h.addPage=function(){return rt.apply(this,arguments),this},h.setPage=function(){return lt.apply(this,arguments),X.call(this,K[R]),this},h.insertPage=function(e){return this.addPage(),this.movePage(R,e),this},h.movePage=function(e,t){var n,i;if(e>t){n=K[e],i=Ne[e];for(var a=e;a>t;a--)K[a]=K[a-1],Ne[a]=Ne[a-1];K[t]=n,Ne[t]=i,this.setPage(t)}else if(e<t){n=K[e],i=Ne[e];for(var r=e;r<t;r++)K[r]=K[r+1],Ne[r]=Ne[r+1];K[t]=n,Ne[t]=i,this.setPage(t)}return this},h.deletePage=function(){return st.apply(this,arguments),this},h.__private__.text=h.text=function(e,t,n,i,a){var r,s,l,o,d,c,u,h,f,m=(i=i||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof n||Array.isArray(n))){var v=n;n=t,t=e,e=v}if(arguments[3]instanceof Te==0?(l=arguments[4],o=arguments[5],"object"===p(u=arguments[3])&&null!==u||("string"==typeof l&&(o=l,l=null),"string"==typeof u&&(o=u,u=null),"number"==typeof u&&(l=u,u=null),i={flags:u,angle:l,align:o})):(N("The transform parameter of text() with a Matrix value"),f=a),isNaN(t)||isNaN(n)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return m;var g,y="",w="number"==typeof i.lineHeightFactor?i.lineHeightFactor:Ut,j=m.internal.scaleFactor;function C(e){return e=e.split("\t").join(Array(i.TabLen||9).join(" ")),it(e,u)}function I(e){for(var t,n=e.concat(),i=[],a=n.length;a--;)"string"==typeof(t=n.shift())?i.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?i.push(t[0]):i.push([t[0],t[1],t[2]]);return i}function F(e,t){var n;if("string"==typeof e)n=t(e)[0];else if(Array.isArray(e)){for(var i,a,r=e.concat(),s=[],l=r.length;l--;)"string"==typeof(i=r.shift())?s.push(t(i)[0]):Array.isArray(i)&&"string"==typeof i[0]&&(a=t(i[0],i[1],i[2]),s.push([a[0],a[1],a[2]]));n=s}return n}var B=!1,k=!0;if("string"==typeof e)B=!0;else if(Array.isArray(e)){var T=e.concat();s=[];for(var E,D=T.length;D--;)("string"!=typeof(E=T.shift())||Array.isArray(E)&&"string"!=typeof E[0])&&(k=!1);B=k}if(!1===B)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var L=ne/m.internal.scaleFactor,U=L*(w-1);switch(i.baseline){case"bottom":n-=U;break;case"top":n+=L-U;break;case"hanging":n+=L-2*U;break;case"middle":n+=L/2-U}if((c=i.maxWidth||0)>0&&("string"==typeof e?e=m.splitTextToSize(e,c):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(m.splitTextToSize(t,c))}),[]))),r={text:e,x:t,y:n,options:i,mutex:{pdfEscape:it,activeFontKey:pe,fonts:ve,activeFontSize:ne}},Ie.publish("preProcessText",r),e=r.text,l=(i=r.options).angle,f instanceof Te==0&&l&&"number"==typeof l){l*=Math.PI/180,0===i.rotationDirection&&(l=-l),b===x&&(l=-l);var _=Math.cos(l),O=Math.sin(l);f=new Te(_,O,-O,_,0,0)}else l&&l instanceof Te&&(f=l);b!==x||f||(f=De),void 0!==(d=i.charSpace||Xt)&&(y+=S(P(d))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(h=i.horizontalScale)&&(y+=S(100*h)+" Tz\n"),i.lang;var M=-1,R=void 0!==i.renderingMode?i.renderingMode:i.stroke,Q=m.internal.getCurrentPageInfo().pageContext;switch(R){case 0:case!1:case"fill":M=0;break;case 1:case!0:case"stroke":M=1;break;case 2:case"fillThenStroke":M=2;break;case 3:case"invisible":M=3;break;case 4:case"fillAndAddForClipping":M=4;break;case 5:case"strokeAndAddPathForClipping":M=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":M=6;break;case 7:case"addToPathForClipping":M=7}var H=void 0!==Q.usedRenderingMode?Q.usedRenderingMode:-1;-1!==M?y+=M+" Tr\n":-1!==H&&(y+="0 Tr\n"),-1!==M&&(Q.usedRenderingMode=M),o=i.align||"left";var V,z=ne*w,q=m.internal.pageSize.getWidth(),W=ve[pe];d=i.charSpace||Xt,c=i.maxWidth||0,u=Object.assign({autoencode:!0,noBOM:!0},i.flags);var Y=[],K=function(e){return m.getStringUnitWidth(e,{font:W,charSpace:d,fontSize:ne,doKerning:!1})*ne/j};if("[object Array]"===Object.prototype.toString.call(e)){var G;s=I(e),"left"!==o&&(V=s.map(K));var $,X=0;if("right"===o){t-=V[0],e=[],D=s.length;for(var Z=0;Z<D;Z++)0===Z?($=Vt(t),G=zt(n)):($=P(X-V[Z]),G=-z),e.push([s[Z],$,G]),X=V[Z]}else if("center"===o){t-=V[0]/2,e=[],D=s.length;for(var ee=0;ee<D;ee++)0===ee?($=Vt(t),G=zt(n)):($=P((X-V[ee])/2),G=-z),e.push([s[ee],$,G]),X=V[ee]}else if("left"===o){e=[],D=s.length;for(var te=0;te<D;te++)e.push(s[te])}else if("justify"===o&&"Identity-H"===W.encoding){e=[],D=s.length,c=0!==c?c:q;for(var ie=0,ae=0;ae<D;ae++)if(G=0===ae?zt(n):-z,$=0===ae?Vt(t):ie,ae<D-1){var se=P((c-V[ae])/(s[ae].split(" ").length-1)),le=s[ae].split(" ");e.push([le[0]+" ",$,G]),ie=0;for(var oe=1;oe<le.length;oe++){var de=(K(le[oe-1]+" "+le[oe])-K(le[oe]))*j+se;oe==le.length-1?e.push([le[oe],de,0]):e.push([le[oe]+" ",de,0]),ie-=de}}else e.push([s[ae],$,G]);e.push(["",ie,0])}else{if("justify"!==o)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(e=[],D=s.length,c=0!==c?c:q,ae=0;ae<D;ae++)G=0===ae?zt(n):-z,$=0===ae?Vt(t):0,ae<D-1?Y.push(S(P((c-V[ae])/(s[ae].split(" ").length-1)))):Y.push(0),e.push([s[ae],$,G])}}!0===("boolean"==typeof i.R2L?i.R2L:re)&&(e=F(e,(function(e,t,n){return[e.split("").reverse().join(""),t,n]}))),r={text:e,x:t,y:n,options:i,mutex:{pdfEscape:it,activeFontKey:pe,fonts:ve,activeFontSize:ne}},Ie.publish("postProcessText",r),e=r.text,g=r.mutex.isHex||!1;var ce=ve[pe].encoding;"WinAnsiEncoding"!==ce&&"StandardEncoding"!==ce||(e=F(e,(function(e,t,n){return[C(e),t,n]}))),s=I(e),e=[];for(var ue,Ae,he,fe=Array.isArray(s[0])?1:0,me="",ge=function(e,t,n){var a="";return n instanceof Te?(n="number"==typeof i.angle?Ee(n,new Te(1,0,0,1,e,t)):Ee(new Te(1,0,0,1,e,t),n),b===x&&(n=Ee(new Te(1,0,0,-1,0,0),n)),a=n.join(" ")+" Tm\n"):a=S(e)+" "+S(t)+" Td\n",a},ye=0;ye<s.length;ye++){switch(me="",fe){case 1:he=(g?"<":"(")+s[ye][0]+(g?">":")"),ue=parseFloat(s[ye][1]),Ae=parseFloat(s[ye][2]);break;case 0:he=(g?"<":"(")+s[ye]+(g?">":")"),ue=Vt(t),Ae=zt(n)}void 0!==Y&&void 0!==Y[ye]&&(me=Y[ye]+" Tw\n"),0===ye?e.push(me+ge(ue,Ae,f)+he):0===fe?e.push(me+he):1===fe&&e.push(me+ge(ue,Ae,f)+he)}e=0===fe?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var xe="BT\n/";return xe+=pe+" "+ne+" Tf\n",xe+=S(ne*w)+" TL\n",xe+=Gt+"\n",xe+=y,xe+=e,J(xe+="ET"),A[pe]=!0,m};var jt=h.__private__.clip=h.clip=function(e){return J("evenodd"===e?"W*":"W"),this};h.clipEvenOdd=function(){return jt("evenodd")},h.__private__.discardPath=h.discardPath=function(){return J("n"),this};var Ct=h.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(e){return Ct(e)&&(d=e),this};var St=h.__private__.getStyle=h.getStyle=function(e){var t=d;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},Nt=h.close=function(){return J("h"),this};h.stroke=function(){return J("S"),this},h.fill=function(e){return It("f",e),this},h.fillEvenOdd=function(e){return It("f*",e),this},h.fillStroke=function(e){return It("B",e),this},h.fillStrokeEvenOdd=function(e){return It("B*",e),this};var It=function(e,t){"object"===p(t)?Pt(t,e):J(e)},Ft=function(e){null===e||b===x&&void 0===e||(e=St(e),J(e))};function Bt(e,t,n,i,a){var r=new q8(t||this.boundingBox,n||this.xStep,i||this.yStep,this.gState,a||this.matrix);r.stream=this.stream;var s=e+"$$"+this.cloneIndex+++"$$";return Le(s,r),r}var Pt=function(e,t){var n=be[e.key],i=xe[n];if(i instanceof z8)J("q"),J(kt(t)),i.gState&&h.setGState(i.gState),J(e.matrix.toString()+" cm"),J("/"+n+" sh"),J("Q");else if(i instanceof q8){var a=new Te(1,0,0,-1,0,cn());e.matrix&&(a=a.multiply(e.matrix||De),n=Bt.call(i,e.key,e.boundingBox,e.xStep,e.yStep,a).id),J("q"),J("/Pattern cs"),J("/"+n+" scn"),i.gState&&h.setGState(i.gState),J(t),J("Q")}},kt=function(e){switch(e){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Tt=h.moveTo=function(e,t){return J(S(P(e))+" "+S(k(t))+" m"),this},Et=h.lineTo=function(e,t){return J(S(P(e))+" "+S(k(t))+" l"),this},Dt=h.curveTo=function(e,t,n,i,a,r){return J([S(P(e)),S(k(t)),S(P(n)),S(k(i)),S(P(a)),S(k(r)),"c"].join(" ")),this};h.__private__.line=h.line=function(e,t,n,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||!Ct(a))throw new Error("Invalid arguments passed to jsPDF.line");return b===y?this.lines([[n-e,i-t]],e,t,[1,1],a||"S"):this.lines([[n-e,i-t]],e,t,[1,1]).stroke()},h.__private__.lines=h.lines=function(e,t,n,i,a,r){var s,l,o,d,c,u,p,A,h,f,m,v;if("number"==typeof e&&(v=n,n=t,t=e,e=v),i=i||[1,1],r=r||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(i)||!Ct(a)||"boolean"!=typeof r)throw new Error("Invalid arguments passed to jsPDF.lines");for(Tt(t,n),s=i[0],l=i[1],d=e.length,f=t,m=n,o=0;o<d;o++)2===(c=e[o]).length?(f=c[0]*s+f,m=c[1]*l+m,Et(f,m)):(u=c[0]*s+f,p=c[1]*l+m,A=c[2]*s+f,h=c[3]*l+m,f=c[4]*s+f,m=c[5]*l+m,Dt(u,p,A,h,f,m));return r&&Nt(),Ft(a),this},h.path=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=n.c;switch(n.op){case"m":Tt(i[0],i[1]);break;case"l":Et(i[0],i[1]);break;case"c":Dt.apply(this,i);break;case"h":Nt()}}return this},h.__private__.rect=h.rect=function(e,t,n,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||!Ct(a))throw new Error("Invalid arguments passed to jsPDF.rect");return b===y&&(i=-i),J([S(P(e)),S(k(t)),S(P(n)),S(P(i)),"re"].join(" ")),Ft(a),this},h.__private__.triangle=h.triangle=function(e,t,n,i,a,r,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(a)||isNaN(r)||!Ct(s))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-e,i-t],[a-n,r-i],[e-a,t-r]],e,t,[1,1],s,!0),this},h.__private__.roundedRect=h.roundedRect=function(e,t,n,i,a,r,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(a)||isNaN(r)||!Ct(s))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var l=4/3*(Math.SQRT2-1);return a=Math.min(a,.5*n),r=Math.min(r,.5*i),this.lines([[n-2*a,0],[a*l,0,a,r-r*l,a,r],[0,i-2*r],[0,r*l,-a*l,r,-a,r],[2*a-n,0],[-a*l,0,-a,-r*l,-a,-r],[0,2*r-i],[0,-r*l,a*l,-r,a,-r]],e+a,t,[1,1],s,!0),this},h.__private__.ellipse=h.ellipse=function(e,t,n,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||!Ct(a))throw new Error("Invalid arguments passed to jsPDF.ellipse");var r=4/3*(Math.SQRT2-1)*n,s=4/3*(Math.SQRT2-1)*i;return Tt(e+n,t),Dt(e+n,t-s,e+r,t-i,e,t-i),Dt(e-r,t-i,e-n,t-s,e-n,t),Dt(e-n,t+s,e-r,t+i,e,t+i),Dt(e+r,t+i,e+n,t+s,e+n,t),Ft(a),this},h.__private__.circle=h.circle=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||!Ct(i))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,n,n,i)},h.setFont=function(e,t,n){return n&&(t=C(t,n)),pe=dt(e,t,{disableWarning:!1}),this};var Lt=h.__private__.getFont=h.getFont=function(){return ve[dt.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var e,t,n={};for(e in ge)if(ge.hasOwnProperty(e))for(t in n[e]=[],ge[e])ge[e].hasOwnProperty(t)&&n[e].push(t);return n},h.addFont=function(e,t,n,i,a){var r=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==r.indexOf(arguments[3])?a=arguments[3]:arguments[3]&&-1==r.indexOf(arguments[3])&&(n=C(n,i)),nt.call(this,e,t,n,a=a||"Identity-H")};var Ut,_t=e.lineWidth||.200025,Ot=h.__private__.getLineWidth=h.getLineWidth=function(){return _t},Mt=h.__private__.setLineWidth=h.setLineWidth=function(e){return _t=e,J(S(P(e))+" w"),this};h.__private__.setLineDash=W8.API.setLineDash=W8.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map((function(e){return S(P(e))})).join(" "),t=S(P(t)),J("["+e+"] "+t+" d"),this};var Rt=h.__private__.getLineHeight=h.getLineHeight=function(){return ne*Ut};h.__private__.getLineHeight=h.getLineHeight=function(){return ne*Ut};var Qt=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(Ut=e),this},Ht=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return Ut};Qt(e.lineHeight);var Vt=h.__private__.getHorizontalCoordinate=function(e){return P(e)},zt=h.__private__.getVerticalCoordinate=function(e){return b===x?e:Ne[R].mediaBox.topRightY-Ne[R].mediaBox.bottomLeftY-P(e)},qt=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(e){return S(Vt(e))},Wt=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(e){return S(zt(e))},Yt=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return He(Yt)},h.__private__.setStrokeColor=h.setDrawColor=function(e,t,n,i){return Yt=Ve({ch1:e,ch2:t,ch3:n,ch4:i,pdfColorType:"draw",precision:2}),J(Yt),this};var Kt=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return He(Kt)},h.__private__.setFillColor=h.setFillColor=function(e,t,n,i){return Kt=Ve({ch1:e,ch2:t,ch3:n,ch4:i,pdfColorType:"fill",precision:2}),J(Kt),this};var Gt=e.textColor||"0 g",$t=h.__private__.getTextColor=h.getTextColor=function(){return He(Gt)};h.__private__.setTextColor=h.setTextColor=function(e,t,n,i){return Gt=Ve({ch1:e,ch2:t,ch3:n,ch4:i,pdfColorType:"text",precision:3}),this};var Xt=e.charSpace,Jt=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(Xt||0)};h.__private__.setCharSpace=h.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Xt=e,this};var Zt=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(e){var t=h.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Zt=t,J(t+" J"),this};var en=0;h.__private__.setLineJoin=h.setLineJoin=function(e){var t=h.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return en=t,J(t+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return J(S(P(e))+" M"),this},h.GState=H8,h.setGState=function(e){(e="string"==typeof e?we[je[e]]:tn(null,e)).equals(Ce)||(J("/"+e.id+" gs"),Ce=e)};var tn=function(e,t){if(!e||!je[e]){var n=!1;for(var i in we)if(we.hasOwnProperty(i)&&we[i].equals(t)){n=!0;break}if(n)t=we[i];else{var a="GS"+(Object.keys(we).length+1).toString(10);we[a]=t,t.id=a}return e&&(je[e]=t.id),Ie.publish("addGState",t),t}};h.addGState=function(e,t){return tn(e,t),this},h.saveGraphicsState=function(){return J("q"),ye.push({key:pe,size:ne,color:Gt}),this},h.restoreGraphicsState=function(){J("Q");var e=ye.pop();return pe=e.key,ne=e.size,Gt=e.color,Ce=null,this},h.setCurrentTransformationMatrix=function(e){return J(e.toString()+" cm"),this},h.comment=function(e){return J("#"+e),this};var nn=function(e,t){var n=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var i=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}});var a="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return a},set:function(e){a=e.toString()}}),this},an=function(e,t,n,i){nn.call(this,e,t),this.type="rect";var a=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return a},set:function(e){isNaN(e)||(a=parseFloat(e))}});var r=i||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}}),this},rn=function(){this.page=Se,this.currentPage=R,this.pages=K.slice(0),this.pagesContext=Ne.slice(0),this.x=he,this.y=fe,this.matrix=me,this.width=on(R),this.height=cn(R),this.outputDestination=$,this.id="",this.objectNumber=-1};rn.prototype.restore=function(){Se=this.page,R=this.currentPage,Ne=this.pagesContext,K=this.pages,he=this.x,fe=this.y,me=this.matrix,dn(R,this.width),un(R,this.height),$=this.outputDestination};var sn=function(e,t,n,i,a){ke.push(new rn),Se=R=0,K=[],he=e,fe=t,me=a,at([n,i])};for(var ln in h.beginFormObject=function(e,t,n,i,a){return sn(e,t,n,i,a),this},h.endFormObject=function(e){return function(e){if(Pe[e])ke.pop().restore();else{var t=new rn,n="Xo"+(Object.keys(Be).length+1).toString(10);t.id=n,Pe[e]=n,Be[n]=t,Ie.publish("addFormObject",t),ke.pop().restore()}}(e),this},h.doFormObject=function(e,t){var n=Be[Pe[e]];return J("q"),J(t.toString()+" cm"),J("/"+n.id+" Do"),J("Q"),this},h.getFormObject=function(e){var t=Be[Pe[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},h.save=function(e,t){return e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(b8(mt(ft()),e),"function"==typeof b8.unload&&A8.setTimeout&&setTimeout(b8.unload,911),this):new Promise((function(t,n){try{var i=b8(mt(ft()),e);"function"==typeof b8.unload&&A8.setTimeout&&setTimeout(b8.unload,911),t(i)}catch(a){n(a.message)}}))},W8.API)W8.API.hasOwnProperty(ln)&&("events"===ln&&W8.API.events.length?function(e,t){var n,i,a;for(a=t.length-1;-1!==a;a--)n=t[a][0],i=t[a][1],e.subscribe.apply(e,[n].concat("function"==typeof i?[i]:i))}(Ie,W8.API.events):h[ln]=W8.API[ln]);var on=h.getPageWidth=function(e){return(Ne[e=e||R].mediaBox.topRightX-Ne[e].mediaBox.bottomLeftX)/Ae},dn=h.setPageWidth=function(e,t){Ne[e].mediaBox.topRightX=t*Ae+Ne[e].mediaBox.bottomLeftX},cn=h.getPageHeight=function(e){return(Ne[e=e||R].mediaBox.topRightY-Ne[e].mediaBox.bottomLeftY)/Ae},un=h.setPageHeight=function(e,t){Ne[e].mediaBox.topRightY=t*Ae+Ne[e].mediaBox.bottomLeftY};return h.internal={pdfEscape:it,getStyle:St,getFont:Lt,getFontSize:ae,getCharSpace:Jt,getTextColor:$t,getLineHeight:Rt,getLineHeightFactor:Ht,getLineWidth:Ot,write:Z,getHorizontalCoordinate:Vt,getVerticalCoordinate:zt,getCoordinateString:qt,getVerticalCoordinateString:Wt,collections:{},newObject:Ue,newAdditionalObject:Me,newObjectDeferred:_e,newObjectDeferredBegin:Oe,getFilters:ze,putStream:qe,events:Ie,scaleFactor:Ae,pageSize:{getWidth:function(){return on(R)},setWidth:function(e){dn(R,e)},getHeight:function(){return cn(R)},setHeight:function(e){un(R,e)}},encryptionOptions:c,encryption:yt,getEncryptor:function(e){return null!==c?yt.encryptor(e,0):function(e){return e}},output:vt,getNumberOfPages:ot,pages:K,out:J,f2:F,f3:B,getPageInfo:xt,getPageInfoByObjId:bt,getCurrentPageInfo:wt,getPDFVersion:m,Point:nn,Rectangle:an,Matrix:Te,hasHotfix:gt},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return on(R)},set:function(e){dn(R,e)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return cn(R)},set:function(e){un(R,e)},enumerable:!0,configurable:!0}),function(e){for(var t=0,n=te.length;t<n;t++){var i=nt.call(this,e[t][0],e[t][1],e[t][2],te[t][3],!0);!1===u&&(A[i]=!0);var a=e[t][0].split("-");tt({id:i,fontName:a[0],fontStyle:a[1]||""})}Ie.publish("addFonts",{fonts:ve,dictionary:ge})}.call(h,te),pe="F1",rt(a,n),Ie.publish("initialized"),h}M8.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},M8.prototype.toHexString=function(e){return e.split("").map((function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)})).join("")},M8.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},M8.prototype.processOwnerPassword=function(e,t){return _8(D8(t).substr(0,5),e)},M8.prototype.encryptor=function(e,t){var n=D8(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return _8(n,e)}},H8.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||p(e)!==p(this))return!1;var i=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;i++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&i--;return 0===i},W8.API={events:[]},W8.version="2.5.2";var Y8=W8.API,K8=1,G8=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},$8=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},X8=function(e){return e.toFixed(2)},J8=function(e){return e.toFixed(5)};Y8.__acroform__={};var Z8=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},e7=function(e){return e*K8},t7=function(e){var t=new g7,n=T7.internal.getHeight(e)||0,i=T7.internal.getWidth(e)||0;return t.BBox=[0,0,Number(X8(i)),Number(X8(n))],t},n7=Y8.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},i7=Y8.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},a7=Y8.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},r7=Y8.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return a7(e,t-1)},s7=Y8.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return n7(e,t-1)},l7=Y8.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return i7(e,t-1)},o7=Y8.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,i=t.internal.getVerticalCoordinate,a=e[0],r=e[1],s=e[2],l=e[3],o={};return o.lowerLeft_X=n(a)||0,o.lowerLeft_Y=i(r+l)||0,o.upperRight_X=n(a+s)||0,o.upperRight_Y=i(r)||0,[Number(X8(o.lowerLeft_X)),Number(X8(o.lowerLeft_Y)),Number(X8(o.upperRight_X)),Number(X8(o.upperRight_Y))]},d7=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,i=c7(e,n),a=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+a+" "+X8(i.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC");var r=t7(e);return r.scope=e.scope,r.stream=t.join("\n"),r}},c7=function(e,t){var n=0===e.fontSize?e.maxFontSize:e.fontSize,i={text:"",fontSize:""},a=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");a=e.multiline?a.map((function(e){return e.split("\n")})):a.map((function(e){return[e]}));var r=n,s=T7.internal.getHeight(e)||0;s=s<0?-s:s;var l=T7.internal.getWidth(e)||0;l=l<0?-l:l;var o=function(t,n,i){if(t+1<a.length){var r=n+" "+a[t+1][0];return u7(r,e,i).width<=l-4}return!1};r++;e:for(;r>0;){t="",r--;var d,c,u=u7("3",e,r).height,p=e.multiline?s-r:(s-u)/2,A=p+=2,h=0,f=0,m=0;if(r<=0){t="(...) Tj\n",t+="% Width of Text: "+u7(t,e,r=12).width+", FieldWidth:"+l+"\n";break}for(var v="",g=0,y=0;y<a.length;y++)if(a.hasOwnProperty(y)){var x=!1;if(1!==a[y].length&&m!==a[y].length-1){if((u+2)*(g+2)+2>s)continue e;v+=a[y][m],x=!0,f=y,y--}else{v=" "==(v+=a[y][m]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var b=parseInt(y),w=o(b,v,r),j=y>=a.length-1;if(w&&!j){v+=" ",m=0;continue}if(w||j){if(j)f=b;else if(e.multiline&&(u+2)*(g+2)+2>s)continue e}else{if(!e.multiline)continue e;if((u+2)*(g+2)+2>s)continue e;f=b}}for(var C="",S=h;S<=f;S++){var N=a[S];if(e.multiline){if(S===f){C+=N[m]+" ",m=(m+1)%N.length;continue}if(S===h){C+=N[N.length-1]+" ";continue}}C+=N[0]+" "}switch(C=" "==C.substr(C.length-1)?C.substr(0,C.length-1):C,c=u7(C,e,r).width,e.textAlign){case"right":d=l-c-2;break;case"center":d=(l-c)/2;break;default:d=2}t+=X8(d)+" "+X8(A)+" Td\n",t+="("+G8(C)+") Tj\n",t+=-X8(d)+" 0 Td\n",A=-(r+2),c=0,h=x?f:f+1,g++,v=""}break}return i.text=t,i.fontSize=r,i},u7=function(e,t,n){var i=t.scope.internal.getFont(t.fontName,t.fontStyle),a=t.scope.getStringUnitWidth(e,{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:a}},p7={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},A7=function(e,t){var n={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===n.type&&e.object===n.object}))&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},h7=function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(x7.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(p7)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");K8=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new y7,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){!function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0}(e)})),e.internal.events.subscribe("buildDocument",(function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];i.objId=void 0,i.hasAnnotation&&A7(i,e)}}(e)})),e.internal.events.subscribe("putCatalog",(function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)})),e.internal.events.subscribe("postPutPages",(function(t){!function(e,t){var n=!e;for(var i in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(i)){var a=e[i],r=[],s=a.Rect;if(a.Rect&&(a.Rect=o7(a.Rect,t)),t.internal.newObjectDeferredBegin(a.objId,!0),a.DA=T7.createDefaultAppearanceStream(a),"object"===p(a)&&"function"==typeof a.getKeyValueListForStream&&(r=a.getKeyValueListForStream()),a.Rect=s,a.hasAppearanceStream&&!a.appearanceStreamContent){var l=d7(a);r.push({key:"AP",value:"<</N "+l+">>"}),t.internal.acroformPlugin.xForms.push(l)}if(a.appearanceStreamContent){var o="";for(var d in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(d)){var c=a.appearanceStreamContent[d];if(o+="/"+d+" ",o+="<<",Object.keys(c).length>=1||Array.isArray(c)){for(var i in c)if(c.hasOwnProperty(i)){var u=c[i];"function"==typeof u&&(u=u.call(t,a)),o+="/"+i+" "+u+" ",t.internal.acroformPlugin.xForms.indexOf(u)>=0||t.internal.acroformPlugin.xForms.push(u)}}else"function"==typeof(u=c)&&(u=u.call(t,a)),o+="/"+i+" "+u,t.internal.acroformPlugin.xForms.indexOf(u)>=0||t.internal.acroformPlugin.xForms.push(u);o+=">>"}r.push({key:"AP",value:"<<\n"+o+">>"})}t.internal.putStream({additionalKeyValues:r,objectId:a.objId}),t.internal.out("endobj")}n&&function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=n,a=e[n];t.internal.newObjectDeferredBegin(a.objId,!0),"object"===p(a)&&"function"==typeof a.putStream&&a.putStream(),delete e[i]}}(t.internal.acroformPlugin.xForms,t)}(t,e)})),e.internal.acroformPlugin.isInitialized=!0}},f7=Y8.__acroform__.arrayToPdfArray=function(e,t,n){var i=function(e){return e};if(Array.isArray(e)){for(var a="[",r=0;r<e.length;r++)switch(0!==r&&(a+=" "),p(e[r])){case"boolean":case"number":case"object":a+=e[r].toString();break;case"string":"/"!==e[r].substr(0,1)?(void 0!==t&&n&&(i=n.internal.getEncryptor(t)),a+="("+G8(i(e[r].toString()))+")"):a+=e[r].toString()}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},m7=function(e,t,n){var i=function(e){return e};return void 0!==t&&n&&(i=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+G8(i(e))+")"},v7=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};v7.prototype.toString=function(){return this.objId+" 0 R"},v7.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},v7.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter((function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)}));for(var n in t)if(!1===Object.getOwnPropertyDescriptor(this,t[n]).configurable){var i=t[n],a=this[i];a&&(Array.isArray(a)?e.push({key:i,value:f7(a,this.objId,this.scope)}):a instanceof v7?(a.scope=this.scope,e.push({key:i,value:a.objId+" 0 R"})):"function"!=typeof a&&e.push({key:i,value:a}))}return e};var g7=function(){v7.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};Z8(g7,v7);var y7=function(){v7.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+G8(t(e))+")"}},set:function(t){e=t}})};Z8(y7,v7);var x7=function e(){v7.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(t,3))},set:function(e){!0===Boolean(e)?this.F=s7(t,3):this.F=l7(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');n=e}});var i=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==i.length)return i},set:function(e){i=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[0])?0:i[0]},set:function(e){i[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[1])?0:i[1]},set:function(e){i[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[2])?0:i[2]},set:function(e){i[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[3])?0:i[3]},set:function(e){i[3]=e}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var r=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!r||r.length<1){if(this instanceof F7)return;r="FieldObject"+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+G8(t(r))+")"},set:function(e){r=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return r},set:function(e){r=e}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var o=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(e){o=e}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===d?50/K8:d},set:function(e){d=e}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var u="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof F7||this instanceof P7))return m7(u,this.objId,this.scope)},set:function(e){e=e.toString(),u=e}});var p=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof S7==0?m7(p,this.objId,this.scope):p},set:function(e){e=e.toString(),p=this instanceof S7==0?"("===e.substr(0,1)?$8(e.substr(1,e.length-2)):$8(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof S7==1?$8(p.substr(1,p.length-1)):p},set:function(e){e=e.toString(),p=this instanceof S7==1?"/"+e:e}});var A=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(A)return A},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(A)return this instanceof S7==0?m7(A,this.objId,this.scope):A},set:function(e){e=e.toString(),A=this instanceof S7==0?"("===e.substr(0,1)?$8(e.substr(1,e.length-2)):$8(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof S7==1?$8(A.substr(1,A.length-1)):A},set:function(e){e=e.toString(),A=this instanceof S7==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var h,f=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return f},set:function(e){e=Boolean(e),f=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(h)return h},set:function(e){h=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,1):this.Ff=l7(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,2):this.Ff=l7(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,3):this.Ff=l7(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');m=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(m){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:m=2;break;case"center":case 1:m=1;break;default:m=0}}})};Z8(x7,v7);var b7=function(){x7.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return f7(t,this.objId,this.scope)},set:function(e){var n,i;i=[],"string"==typeof(n=e)&&(i=function(e,t,n){n||(n=1);for(var i,a=[];i=t.exec(e);)a.push(i[n]);return a}(n,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n=n||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,18):this.Ff=l7(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=s7(this.Ff,19):this.Ff=l7(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=s7(this.Ff,20),t.sort()):this.Ff=l7(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,22):this.Ff=l7(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,23):this.Ff=l7(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,27):this.Ff=l7(this.Ff,27)}}),this.hasAppearanceStream=!1};Z8(b7,x7);var w7=function(){b7.call(this),this.fontName="helvetica",this.combo=!1};Z8(w7,b7);var j7=function(){w7.call(this),this.combo=!0};Z8(j7,w7);var C7=function(){j7.call(this),this.edit=!0};Z8(C7,j7);var S7=function(){x7.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,15):this.Ff=l7(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,16):this.Ff=l7(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,17):this.Ff=l7(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,26):this.Ff=l7(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var n,i=[];for(n in i.push("<<"),t)i.push("/"+n+" ("+G8(e(t[n]))+")");return i.push(">>"),i.join("\n")}},set:function(e){"object"===p(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};Z8(S7,x7);var N7=function(){S7.call(this),this.pushButton=!0};Z8(N7,S7);var I7=function(){S7.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};Z8(I7,S7);var F7=function(){var e,t;x7.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,n=[];for(t in n.push("<<"),i)n.push("/"+t+" ("+G8(e(i[t]))+")");return n.push(">>"),n.join("\n")},set:function(e){"object"===p(e)&&(i=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(e){"string"==typeof e&&(i.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=T7.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Z8(F7,x7),I7.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},I7.prototype.createOption=function(e){var t=new F7;return t.Parent=this,t.optionName=e,this.Kids.push(t),E7.call(this.scope,t),t};var B7=function(){S7.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=T7.CheckBox.createAppearanceStream()};Z8(B7,S7);var P7=function(){x7.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,13):this.Ff=l7(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,21):this.Ff=l7(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,23):this.Ff=l7(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,24):this.Ff=l7(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,25):this.Ff=l7(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,26):this.Ff=l7(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Z8(P7,x7);var k7=function(){P7.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(r7(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=s7(this.Ff,14):this.Ff=l7(this.Ff,14)}}),this.password=!0};Z8(k7,P7);var T7={CheckBox:{createAppearanceStream:function(){return{N:{On:T7.CheckBox.YesNormal},D:{On:T7.CheckBox.YesPushDown,Off:T7.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=t7(e);t.scope=e.scope;var n=[],i=e.scope.internal.getFont(e.fontName,e.fontStyle).id,a=e.scope.__private__.encodeColorString(e.color),r=c7(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+X8(T7.internal.getWidth(e))+" "+X8(T7.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+i+" "+X8(r.fontSize)+" Tf "+a),n.push("BT"),n.push(r.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join("\n"),t},YesNormal:function(e){var t=t7(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=[],r=T7.internal.getHeight(e),s=T7.internal.getWidth(e),l=c7(e,e.caption);return a.push("1 g"),a.push("0 0 "+X8(s)+" "+X8(r)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+X8(s-1)+" "+X8(r-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+n+" "+X8(l.fontSize)+" Tf "+i),a.push(l.text),a.push("ET"),a.push("Q"),t.stream=a.join("\n"),t},OffPushDown:function(e){var t=t7(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+X8(T7.internal.getWidth(e))+" "+X8(T7.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:T7.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=T7.RadioButton.Circle.YesNormal,t.D[e]=T7.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=t7(e);t.scope=e.scope;var n=[],i=T7.internal.getWidth(e)<=T7.internal.getHeight(e)?T7.internal.getWidth(e)/4:T7.internal.getHeight(e)/4;i=Number((.9*i).toFixed(5));var a=T7.internal.Bezier_C,r=Number((i*a).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+J8(T7.internal.getWidth(e)/2)+" "+J8(T7.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+r+" "+r+" "+i+" 0 "+i+" c"),n.push("-"+r+" "+i+" -"+i+" "+r+" -"+i+" 0 c"),n.push("-"+i+" -"+r+" -"+r+" -"+i+" 0 -"+i+" c"),n.push(r+" -"+i+" "+i+" -"+r+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=t7(e);t.scope=e.scope;var n=[],i=T7.internal.getWidth(e)<=T7.internal.getHeight(e)?T7.internal.getWidth(e)/4:T7.internal.getHeight(e)/4;i=Number((.9*i).toFixed(5));var a=Number((2*i).toFixed(5)),r=Number((a*T7.internal.Bezier_C).toFixed(5)),s=Number((i*T7.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+J8(T7.internal.getWidth(e)/2)+" "+J8(T7.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+r+" "+r+" "+a+" 0 "+a+" c"),n.push("-"+r+" "+a+" -"+a+" "+r+" -"+a+" 0 c"),n.push("-"+a+" -"+r+" -"+r+" -"+a+" 0 -"+a+" c"),n.push(r+" -"+a+" "+a+" -"+r+" "+a+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+J8(T7.internal.getWidth(e)/2)+" "+J8(T7.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),n.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),n.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),n.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=t7(e);t.scope=e.scope;var n=[],i=T7.internal.getWidth(e)<=T7.internal.getHeight(e)?T7.internal.getWidth(e)/4:T7.internal.getHeight(e)/4;i=Number((.9*i).toFixed(5));var a=Number((2*i).toFixed(5)),r=Number((a*T7.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+J8(T7.internal.getWidth(e)/2)+" "+J8(T7.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+r+" "+r+" "+a+" 0 "+a+" c"),n.push("-"+r+" "+a+" -"+a+" "+r+" -"+a+" 0 c"),n.push("-"+a+" -"+r+" -"+r+" -"+a+" 0 -"+a+" c"),n.push(r+" -"+a+" "+a+" -"+r+" "+a+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:T7.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=T7.RadioButton.Cross.YesNormal,t.D[e]=T7.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=t7(e);t.scope=e.scope;var n=[],i=T7.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+X8(T7.internal.getWidth(e)-2)+" "+X8(T7.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(X8(i.x1.x)+" "+X8(i.x1.y)+" m"),n.push(X8(i.x2.x)+" "+X8(i.x2.y)+" l"),n.push(X8(i.x4.x)+" "+X8(i.x4.y)+" m"),n.push(X8(i.x3.x)+" "+X8(i.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=t7(e);t.scope=e.scope;var n=T7.internal.calculateCross(e),i=[];return i.push("0.749023 g"),i.push("0 0 "+X8(T7.internal.getWidth(e))+" "+X8(T7.internal.getHeight(e))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+X8(T7.internal.getWidth(e)-2)+" "+X8(T7.internal.getHeight(e)-2)+" re"),i.push("W"),i.push("n"),i.push(X8(n.x1.x)+" "+X8(n.x1.y)+" m"),i.push(X8(n.x2.x)+" "+X8(n.x2.y)+" l"),i.push(X8(n.x4.x)+" "+X8(n.x4.y)+" m"),i.push(X8(n.x3.x)+" "+X8(n.x3.y)+" l"),i.push("s"),i.push("Q"),t.stream=i.join("\n"),t},OffPushDown:function(e){var t=t7(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+X8(T7.internal.getWidth(e))+" "+X8(T7.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};T7.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=T7.internal.getWidth(e),n=T7.internal.getHeight(e),i=Math.min(t,n);return{x1:{x:(t-i)/2,y:(n-i)/2+i},x2:{x:(t-i)/2+i,y:(n-i)/2},x3:{x:(t-i)/2,y:(n-i)/2},x4:{x:(t-i)/2+i,y:(n-i)/2+i}}}},T7.internal.getWidth=function(e){var t=0;return"object"===p(e)&&(t=e7(e.Rect[2])),t},T7.internal.getHeight=function(e){var t=0;return"object"===p(e)&&(t=e7(e.Rect[3])),t};var E7=Y8.addField=function(e){if(h7(this,e),!(e instanceof x7))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};function D7(e){return e.reduce((function(e,t,n){return e[t]=n,e}),{})}Y8.AcroFormChoiceField=b7,Y8.AcroFormListBox=w7,Y8.AcroFormComboBox=j7,Y8.AcroFormEditBox=C7,Y8.AcroFormButton=S7,Y8.AcroFormPushButton=N7,Y8.AcroFormRadioButton=I7,Y8.AcroFormCheckBox=B7,Y8.AcroFormTextField=P7,Y8.AcroFormPasswordField=k7,Y8.AcroFormAppearance=T7,Y8.AcroForm={ChoiceField:b7,ListBox:w7,ComboBox:j7,EditBox:C7,Button:S7,PushButton:N7,RadioButton:I7,CheckBox:B7,TextField:P7,PasswordField:k7,Appearance:T7},W8.AcroForm={ChoiceField:b7,ListBox:w7,ComboBox:j7,EditBox:C7,Button:S7,PushButton:N7,RadioButton:I7,CheckBox:B7,TextField:P7,PasswordField:k7,Appearance:T7},function(e){e.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.__addimage__.getImageFileTypeByImageData=function(e,i){var a,r,s,l,o,d=t;if("RGBA"===(i=i||t)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(j(e))for(o in n)for(s=n[o],a=0;a<s.length;a+=1){for(l=!0,r=0;r<s[a].length;r+=1)if(void 0!==s[a][r]&&s[a][r]!==e[r]){l=!1;break}if(!0===l){d=o;break}}else for(o in n)for(s=n[o],a=0;a<s.length;a+=1){for(l=!0,r=0;r<s[a].length;r+=1)if(void 0!==s[a][r]&&s[a][r]!==e.charCodeAt(r)){l=!1;break}if(!0===l){d=o;break}}return d===t&&i!==t&&(d=i),d},a=function e(t){for(var n=this.internal.write,i=this.internal.putStream,a=(0,this.internal.getFilters)();-1!==a.indexOf("FlateEncode");)a.splice(a.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var r=[];if(r.push({key:"Type",value:"/XObject"}),r.push({key:"Subtype",value:"/Image"}),r.push({key:"Width",value:t.width}),r.push({key:"Height",value:t.height}),t.colorSpace===v.INDEXED?r.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(r.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===v.DEVICE_CMYK&&r.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),r.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&r.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var s="",l=0,o=t.transparency.length;l<o;l++)s+=t.transparency[l]+" "+t.transparency[l]+" ";r.push({key:"Mask",value:"["+s+"]"})}void 0!==t.sMask&&r.push({key:"SMask",value:t.objectId+1+" 0 R"});var d=void 0!==t.filter?["/"+t.filter]:void 0;if(i({data:t.data,additionalKeyValues:r,alreadyAppliedFilters:d,objectId:t.objectId}),n("endobj"),"sMask"in t&&void 0!==t.sMask){var c="/Predictor "+t.predictor+" /Colors 1 /BitsPerComponent "+t.bitsPerComponent+" /Columns "+t.width,u={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:t.bitsPerComponent,decodeParameters:c,data:t.sMask};"filter"in t&&(u.filter=t.filter),e.call(this,u)}if(t.colorSpace===v.INDEXED){var p=this.internal.newObject();i({data:S(new Uint8Array(t.palette)),objectId:p}),n("endobj")}},r=function(){var e=this.internal.collections.addImage_images;for(var t in e)a.call(this,e[t])},s=function(){var e,t=this.internal.collections.addImage_images,n=this.internal.write;for(var i in t)n("/I"+(e=t[i]).index,e.objectId,"0","R")},l=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",r),this.internal.events.subscribe("putXobjectDict",s))},o=function(){var e=this.internal.collections.addImage_images;return l.call(this),e},d=function(){return Object.keys(this.internal.collections.addImage_images).length},c=function(t){return"function"==typeof e["process"+t.toUpperCase()]},u=function(e){return"object"===p(e)&&1===e.nodeType},A=function(t,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var i=""+t.getAttribute("src");if(0===i.indexOf("data:image/"))return y8(unescape(i).split("base64,").pop());var a=e.loadFile(i,!0);if(void 0!==a)return a}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var r;switch(n){case"PNG":r="image/png";break;case"WEBP":r="image/webp";break;default:r="image/jpeg"}return y8(t.toDataURL(r,1).split("base64,").pop())}},h=function(e){var t=this.internal.collections.addImage_images;if(t)for(var n in t)if(e===t[n].alias)return t[n]},f=function(e,t,n){return e||t||(e=-96,t=-96),e<0&&(e=-1*n.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.height*72/t/this.internal.scaleFactor),0===e&&(e=t*n.width/n.height),0===t&&(t=e*n.height/n.width),[e,t]},m=function(e,t,n,i,a,r){var s=f.call(this,n,i,a),l=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString,c=o.call(this);if(n=s[0],i=s[1],c[a.index]=a,r){r*=Math.PI/180;var u=Math.cos(r),p=Math.sin(r),A=function(e){return e.toFixed(4)},h=[A(u),A(p),A(-1*p),A(u),0,0,"cm"]}this.internal.write("q"),r?(this.internal.write([1,"0","0",1,l(e),d(t+i),"cm"].join(" ")),this.internal.write(h.join(" ")),this.internal.write([l(n),"0","0",l(i),"0","0","cm"].join(" "))):this.internal.write([l(n),"0","0",l(i),l(e),d(t+i),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+a.index+" Do"),this.internal.write("Q")},v=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var g=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},y=e.__addimage__.sHashCode=function(e){var t,n,i=0;if("string"==typeof e)for(n=e.length,t=0;t<n;t++)i=(i<<5)-i+e.charCodeAt(t),i|=0;else if(j(e))for(n=e.byteLength/2,t=0;t<n;t++)i=(i<<5)-i+e[t],i|=0;return i},x=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},b=e.__addimage__.extractImageFromDataUrl=function(e){var t=(e=e||"").split("base64,"),n=null;if(2===t.length){var i=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(t[0]);Array.isArray(i)&&(n={mimeType:i[1],charset:i[2],data:t[1]})}return n},w=e.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};e.__addimage__.isArrayBuffer=function(e){return w()&&e instanceof ArrayBuffer};var j=e.__addimage__.isArrayBufferView=function(e){return w()&&"undefined"!=typeof Uint32Array&&(e instanceof Int8Array||e instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)},C=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),i=0;i<t;i++)n[i]=e.charCodeAt(i);return n},S=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t="",n=j(e)?e:new Uint8Array(e),i=0;i<n.length;i+=8192)t+=String.fromCharCode.apply(null,n.subarray(i,i+8192));return t};e.addImage=function(){var e,n,i,a,r,s,o,d,c;if("number"==typeof arguments[1]?(n=t,i=arguments[1],a=arguments[2],r=arguments[3],s=arguments[4],o=arguments[5],d=arguments[6],c=arguments[7]):(n=arguments[1],i=arguments[2],a=arguments[3],r=arguments[4],s=arguments[5],o=arguments[6],d=arguments[7],c=arguments[8]),"object"===p(e=arguments[0])&&!u(e)&&"imageData"in e){var A=e;e=A.imageData,n=A.format||n||t,i=A.x||i||0,a=A.y||a||0,r=A.w||A.width||r,s=A.h||A.height||s,o=A.alias||o,d=A.compression||d,c=A.rotation||A.angle||c}var h=this.internal.getFilters();if(void 0===d&&-1!==h.indexOf("FlateEncode")&&(d="SLOW"),isNaN(i)||isNaN(a))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var f=N.call(this,e,n,o,d);return m.call(this,i,a,r,s,f,c),this};var N=function(n,a,r,s){var l,o,p,f;if("string"==typeof n&&i(n)===t){n=unescape(n);var m=I(n,!1);(""!==m||void 0!==(m=e.loadFile(n,!0)))&&(n=m)}if(u(n)&&(n=A(n,a)),a=i(n,a),!c(a))throw new Error("addImage does not support files of type '"+a+"', please ensure that a plugin for '"+a+"' support is added.");if((null==(p=r)||0===p.length)&&(r="string"==typeof(f=n)||j(f)?y(f):j(f.data)?y(f.data):null),(l=h.call(this,r))||(w()&&(n instanceof Uint8Array||"RGBA"===a||(o=n,n=C(n))),l=this["process"+a.toUpperCase()](n,d.call(this),r,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:g.NONE}(s),o)),!l)throw new Error("An unknown error occurred whilst processing the image.");return l},I=e.__addimage__.convertBase64ToBinaryString=function(e,t){var n;t="boolean"!=typeof t||t;var i,a="";if("string"==typeof e){i=null!==(n=b(e))?n.data:e;try{a=y8(i)}catch(r){if(t)throw x(i)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+r.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return a};e.getImageProperties=function(n){var a,r,s="";if(u(n)&&(n=A(n)),"string"==typeof n&&i(n)===t&&(""===(s=I(n,!1))&&(s=e.loadFile(n)||""),n=s),r=i(n),!c(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(!w()||n instanceof Uint8Array||(n=C(n)),!(a=this["process"+r.toUpperCase()](n)))throw new Error("An unknown error occurred whilst processing the image");return a.fileType=r,a}}(W8.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t=function(e){if(void 0!==e&&""!=e)return!0};W8.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(e){for(var n,i,a,r=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(e.objId),o=e.pageContext.annotations,d=!1,c=0;c<o.length&&!d;c++)switch((n=o[c]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(0!=d){this.internal.write("/Annots [");for(var u=0;u<o.length;u++){n=o[u];var p=this.internal.pdfEscape,A=this.internal.getEncryptor(e.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var h=this.internal.newAdditionalObject(),f=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(h.objId),v=n.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+r(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+r(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+p(m(n.contents))+")",a+=" /Popup "+f.objId+" 0 R",a+=" /P "+l.objId+" 0 R",a+=" /T ("+p(m(v))+") >>",h.content=a;var g=h.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+r(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+r(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+g,n.open&&(a+=" /Open true"),a+=" >>",f.content=a,this.internal.write(h.objId,"0 R",f.objId,"0 R");break;case"freetext":i="/Rect ["+r(n.bounds.x)+" "+s(n.bounds.y)+" "+r(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var y=n.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+p(A(n.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(n.options.name){var x=this.annotations._nameMap[n.options.name];n.options.pageNumber=x.page,n.options.top=x.y}else n.options.top||(n.options.top=0);if(i="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",a="",n.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+p(A(n.options.url))+") >>";else if(n.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,a+=" /FitV "+n.options.left+"]";break;default:var b=s(n.options.top);n.options.left=n.options.left||0,void 0===n.options.zoom&&(n.options.zoom=0),a+=" /XYZ "+n.options.left+" "+b+" "+n.options.zoom+"]"}""!=a&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),e.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},e.link=function(e,t,n,i,a){var r=this.internal.getCurrentPageInfo(),s=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;r.pageContext.annotations.push({finalBounds:{x:s(e),y:l(t),w:s(e+n),h:l(t+i)},options:a,type:"link"})},e.textWithLink=function(e,t,n,i){var a,r,s=this.getTextWidth(e),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==i.maxWidth){r=i.maxWidth;var o=this.splitTextToSize(e,r).length;a=Math.ceil(l*o)}else r=s,a=l;return this.text(e,t,n,i),n+=.2*l,"center"===i.align&&(t-=s/2),"right"===i.align&&(t-=s),this.link(t,n-l,r,a,i),s},e.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor}}(W8.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];e.__arabicParser__={};var r=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},s=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},l=e.__arabicParser__.isArabicEndLetter=function(e){return s(e)&&r(e)&&t[e.charCodeAt(0)].length<=2},o=e.__arabicParser__.isArabicAlfLetter=function(e){return s(e)&&a.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return s(e)&&r(e)&&t[e.charCodeAt(0)].length>=1};var d=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return s(e)&&r(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return s(e)&&r(e)&&t[e.charCodeAt(0)].length>=3};var c=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return s(e)&&r(e)&&4==t[e.charCodeAt(0)].length},u=e.__arabicParser__.resolveLigatures=function(e){var t=0,i=n,a="",r=0;for(t=0;t<e.length;t+=1)void 0!==i[e.charCodeAt(t)]?(r++,"number"==typeof(i=i[e.charCodeAt(t)])&&(a+=String.fromCharCode(i),i=n,r=0),t===e.length-1&&(i=n,a+=e.charAt(t-(r-1)),t-=r-1,r=0)):(i=n,a+=e.charAt(t-r),t-=r,r=0);return a};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==i[e.charCodeAt(0)]};var p=e.__arabicParser__.getCorrectForm=function(e,t,n){return s(e)?!1===r(e)?-1:!d(e)||!s(t)&&!s(n)||!s(n)&&l(t)||l(e)&&!s(t)||l(e)&&o(t)||l(e)&&l(t)?0:c(e)&&s(t)&&!l(t)&&s(n)&&d(n)?3:l(e)||!s(n)?1:2:-1},A=function(e){var n=0,i=0,a=0,r="",l="",o="",d=(e=e||"").split("\\s+"),c=[];for(n=0;n<d.length;n+=1){for(c.push(""),i=0;i<d[n].length;i+=1)r=d[n][i],l=d[n][i-1],o=d[n][i+1],s(r)?(a=p(r,l,o),c[n]+=-1!==a?String.fromCharCode(t[r.charCodeAt(0)][a]):r):c[n]+=r;c[n]=u(c[n])}return c.join(" ")},h=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(t)){var i=0;for(n=[],i=0;i<t.length;i+=1)Array.isArray(t[i])?n.push([A(t[i][0]),t[i][1],t[i][2]]):n.push([A(t[i])]);e=n}else e=A(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",h])}(W8.API),W8.API.autoPrint=function(e){var t;if("javascript"===((e=e||{}).variant=e.variant||"non-conform",e.variant))this.addJS("print({});");else this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}));return this},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(e){i=e}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(e){a=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var n;if("2d"!==(e=e||"2d"))return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(W8.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,i=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new r,this.internal.__cell__.pages=1},r=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var i=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var a=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return a},set:function(e){a=e}});var r=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var s=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return s},set:function(e){s=e}}),this};r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},r.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return i.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){i.call(this);var n=(t=t||{}).fontSize||this.getFontSize(),a=t.font||this.getFont(),r=t.scaleFactor||this.internal.scaleFactor,s=0,l=0,o=0,d=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}var c=t.maxWidth;c>0?"string"==typeof e?e=this.splitTextToSize(e,c):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(d.splitTextToSize(t,c))}),[])):e=Array.isArray(e)?e:[e];for(var u=0;u<e.length;u++)s<(o=this.getStringUnitWidth(e[u],{font:a})*n)&&(s=o);return 0!==s&&(l=e.length),{w:s/=r,h:Math.max((l*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/r,0)}},e.cellAddPage=function(){i.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new r(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var e;e=arguments[0]instanceof r?arguments[0]:new r(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),i.call(this);var a=this.internal.__cell__.lastCell,s=this.internal.__cell__.padding,l=this.internal.__cell__.margins||t,o=this.internal.__cell__.tableHeaderRow,d=this.internal.__cell__.printHeaders;return void 0!==a.lineNumber&&(a.lineNumber===e.lineNumber?(e.x=(a.x||0)+(a.width||0),e.y=a.y||0):a.y+a.height+e.height+l.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=l.top,d&&o&&(this.printHeaderRow(e.lineNumber,!0),e.y+=o[0].height)):e.y=a.y+a.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===n?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-s,e.y+s,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+s,{align:"center",baseline:"top",maxWidth:e.width-s-s}):this.text(e.text,e.x+s,e.y+s,{align:"left",baseline:"top",maxWidth:e.width-s-s})),this.internal.__cell__.lastCell=e,this};e.table=function(e,n,o,d,c){if(i.call(this),!o)throw new Error("No data for PDF table.");var u,A,h,f,m=[],v=[],g=[],y={},x={},b=[],w=[],j=(c=c||{}).autoSize||!1,C=!1!==c.printHeaders,S=c.css&&void 0!==c.css["font-size"]?16*c.css["font-size"]:c.fontSize||12,N=c.margins||Object.assign({width:this.getPageWidth()},t),I="number"==typeof c.padding?c.padding:3,F=c.headerBackgroundColor||"#c8c8c8",B=c.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=C,this.internal.__cell__.margins=N,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=I,this.internal.__cell__.headerBackgroundColor=F,this.internal.__cell__.headerTextColor=B,this.setFontSize(S),null==d)v=m=Object.keys(o[0]),g=m.map((function(){return"left"}));else if(Array.isArray(d)&&"object"===p(d[0]))for(m=d.map((function(e){return e.name})),v=d.map((function(e){return e.prompt||e.name||""})),g=d.map((function(e){return e.align||"left"})),u=0;u<d.length;u+=1)x[d[u].name]=d[u].width*(19.049976/25.4);else Array.isArray(d)&&"string"==typeof d[0]&&(v=m=d,g=m.map((function(){return"left"})));if(j||Array.isArray(d)&&"string"==typeof d[0])for(u=0;u<m.length;u+=1){for(y[f=m[u]]=o.map((function(e){return e[f]})),this.setFont(void 0,"bold"),b.push(this.getTextDimensions(v[u],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),A=y[f],this.setFont(void 0,"normal"),h=0;h<A.length;h+=1)b.push(this.getTextDimensions(A[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);x[f]=Math.max.apply(null,b)+I+I,b=[]}if(C){var P={};for(u=0;u<m.length;u+=1)P[m[u]]={},P[m[u]].text=v[u],P[m[u]].align=g[u];var k=l.call(this,P,x);w=m.map((function(t){return new r(e,n,x[t],k,P[t].text,void 0,P[t].align)})),this.setTableHeaderRow(w),this.printHeaderRow(1,!1)}var T=d.reduce((function(e,t){return e[t.name]=t.align,e}),{});for(u=0;u<o.length;u+=1){"rowStart"in c&&c.rowStart instanceof Function&&c.rowStart({row:u,data:o[u]},this);var E=l.call(this,o[u],x);for(h=0;h<m.length;h+=1){var D=o[u][m[h]];"cellStart"in c&&c.cellStart instanceof Function&&c.cellStart({row:u,col:h,data:D},this),s.call(this,new r(e,n,x[m[h]],E,D,u+2,T[m[h]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=n,this};var l=function(e,t){var n=this.internal.__cell__.padding,i=this.internal.__cell__.table_font_size,a=this.internal.scaleFactor;return Object.keys(e).map((function(i){var a=e[i];return this.splitTextToSize(a.hasOwnProperty("text")?a.text:a,t[i]-n-n)}),this).map((function(e){return this.getLineHeightFactor()*e.length*i/a+n+n}),this).reduce((function(e,t){return Math.max(e,t)}),0)};e.setTableHeaderRow=function(e){i.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var a;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var l=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new r(l[0],l[1],l[2],l[3],void 0,-1)}this.setFont(void 0,"bold");for(var o=[],d=0;d<this.internal.__cell__.tableHeaderRow.length;d+=1){a=this.internal.__cell__.tableHeaderRow[d].clone(),t&&(a.y=this.internal.__cell__.margins.top||0,o.push(a)),a.lineNumber=e;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,a),this.setTextColor(c)}o.length>0&&this.setTableHeaderRow(o),this.setFont(void 0,"normal"),n=!1}}(W8.API);var L7={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},U7=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],_7=D7(U7),O7=[100,200,300,400,500,600,700,800,900],M7=D7(O7);function R7(e){var t,n=e.family.replace(/"|'/g,"").toLowerCase(),i=(t=e.style,L7[t=t||"normal"]?t:"normal"),a=function(e){return e?"number"==typeof e?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):"bold"===e?700:400:400}(e.weight),r=function(e){return"number"==typeof _7[e=e||"normal"]?e:"normal"}(e.stretch);return{family:n,style:i,weight:a,stretch:r,src:e.src||[],ref:e.ref||{name:n,style:[r,i,a].join(" ")}}}function Q7(e,t,n,i){var a;for(a=n;a>=0&&a<t.length;a+=i)if(e[t[a]])return e[t[a]];for(a=n;a>=0&&a<t.length;a-=i)if(e[t[a]])return e[t[a]]}var H7={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},V7={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function z7(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function q7(e){return e.trimLeft()}function W7(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function Y7(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var K7,G7,$7,X7=["times"];!function(e){var t,n,i,a,r,s,l,o,d,c=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new o,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new s,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new s,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new u(this),t=this.internal.f2,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,r=this.internal.getVerticalCoordinate,s=this.internal.Point,l=this.internal.Rectangle,o=this.internal.Matrix,d=new c}]);var u=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var i=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return i},set:function(e){i=Boolean(e)}});var a=0;Object.defineProperty(this,"posX",{get:function(){return a},set:function(e){isNaN(e)||(a=e)}});var r=0;Object.defineProperty(this,"posY",{get:function(){return r},set:function(e){isNaN(e)||(r=e)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(e){var t;"number"==typeof e?t=[e,e,e,e]:((t=new Array(4))[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),d.margin=t}});var s=!1;Object.defineProperty(this,"autoPaging",{get:function(){return s},set:function(e){s=e}});var l=0;Object.defineProperty(this,"lastBreak",{get:function(){return l},set:function(e){l=e}});var o=[];Object.defineProperty(this,"pageBreaks",{get:function(){return o},set:function(e){o=e}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(e){e instanceof c&&(d=e)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(e){d.path=e}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(e){u=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=A(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=A(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var p=null;var h=null;Object.defineProperty(this,"fontFaces",{get:function(){return h},set:function(e){p=null,h=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(e))){var n=t[1],i=(t[2],t[3]),a=t[4],r=(t[5],t[6]),s=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(a)[2];a="px"===s?Math.floor(parseFloat(a)*this.pdf.internal.scaleFactor):"em"===s?Math.floor(parseFloat(a)*this.pdf.getFontSize()):Math.floor(parseFloat(a)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(a);var l=function(e){var t,n,i=[],a=e.trim();if(""===a)return X7;if(a in V7)return[V7[a]];for(;""!==a;){switch(n=null,t=(a=q7(a)).charAt(0)){case'"':case"'":n=W7(a.substring(1),t);break;default:n=Y7(a)}if(null===n)return X7;if(i.push(n[0]),""!==(a=q7(n[1]))&&","!==a.charAt(0))return X7;a=a.replace(/^,/,"")}return i}(r);if(this.fontFaces){var o=function(e,t,n){for(var i=(n=n||{}).defaultFontFamily||"times",a=Object.assign({},H7,n.genericFontFamilies||{}),r=null,s=null,l=0;l<t.length;++l)if(a[(r=R7(t[l])).family]&&(r.family=a[r.family]),e.hasOwnProperty(r.family)){s=e[r.family];break}if(!(s=s||e[i]))throw new Error("Could not find a font-family for the rule '"+z7(r)+"' and default family '"+i+"'.");if(s=function(e,t){if(t[e])return t[e];var n=_7[e],i=n<=_7.normal?-1:1,a=Q7(t,U7,n,i);if(!a)throw new Error("Could not find a matching font-stretch value for "+e);return a}(r.stretch,s),s=function(e,t){if(t[e])return t[e];for(var n=L7[e],i=0;i<n.length;++i)if(t[n[i]])return t[n[i]];throw new Error("Could not find a matching font-style for "+e)}(r.style,s),!(s=function(e,t){if(t[e])return t[e];if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var n=M7[e],i=Q7(t,O7,n,e<400?-1:1);if(!i)throw new Error("Could not find a matching font-weight for value "+e);return i}(r.weight,s)))throw new Error("Failed to resolve a font for the rule '"+z7(r)+"'.");return s}(function(e,t){if(null===p){var n=(i=e.getFontList(),a=[],Object.keys(i).forEach((function(e){i[e].forEach((function(t){var n=null;switch(t){case"bold":n={family:e,weight:"bold"};break;case"italic":n={family:e,style:"italic"};break;case"bolditalic":n={family:e,weight:"bold",style:"italic"};break;case"":case"normal":n={family:e}}null!==n&&(n.ref={name:e,style:t},a.push(n))}))})),a);p=function(e){for(var t={},n=0;n<e.length;++n){var i=R7(e[n]),a=i.family,r=i.stretch,s=i.style,l=i.weight;t[a]=t[a]||{},t[a][r]=t[a][r]||{},t[a][r][s]=t[a][r][s]||{},t[a][r][s][l]=i}return t}(n.concat(t))}var i,a;return p}(this.pdf,this.fontFaces),l.map((function(e){return{family:e,stretch:"normal",weight:i,style:n}})));this.pdf.setFont(o.ref.name,o.ref.style)}else{var d="";("bold"===i||parseInt(i,10)>=700||"bold"===n)&&(d="bold"),"italic"===n&&(d+="italic"),0===d.length&&(d="normal");for(var c="",u={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},A=0;A<l.length;A++){if(void 0!==this.pdf.internal.getFont(l[A],d,{noFallback:!0,disableWarning:!0})){c=l[A];break}if("bolditalic"===d&&void 0!==this.pdf.internal.getFont(l[A],"bold",{noFallback:!0,disableWarning:!0}))c=l[A],d="bold";else if(void 0!==this.pdf.internal.getFont(l[A],"normal",{noFallback:!0,disableWarning:!0})){c=l[A],d="normal";break}}if(""===c)for(var h=0;h<l.length;h++)if(u[l[h]]){c=u[l[h]];break}c=""===c?"Times":c,this.pdf.setFont(c,d)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,O.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,O.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};u.prototype.setLineDash=function(e){this.lineDash=e},u.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},u.prototype.fill=function(){b.call(this,"fill",!1)},u.prototype.stroke=function(){b.call(this,"stroke",!1)},u.prototype.beginPath=function(){this.path=[{type:"begin"}]},u.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw f8.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(e,t)},u.prototype.closePath=function(){var e=new s(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===p(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new s(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(e.x,e.y)},u.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw f8.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},u.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),b.call(this,null,!0)},u.prototype.quadraticCurveTo=function(e,t,n,i){if(isNaN(n)||isNaN(i)||isNaN(e)||isNaN(t))throw f8.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var a=this.ctx.transform.applyToPoint(new s(n,i)),r=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"qct",x1:r.x,y1:r.y,x:a.x,y:a.y}),this.ctx.lastPoint=new s(a.x,a.y)},u.prototype.bezierCurveTo=function(e,t,n,i,a,r){if(isNaN(a)||isNaN(r)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw f8.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var l=this.ctx.transform.applyToPoint(new s(a,r)),o=this.ctx.transform.applyToPoint(new s(e,t)),d=this.ctx.transform.applyToPoint(new s(n,i));this.path.push({type:"bct",x1:o.x,y1:o.y,x2:d.x,y2:d.y,x:l.x,y:l.y}),this.ctx.lastPoint=new s(l.x,l.y)},u.prototype.arc=function(e,t,n,i,a,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(a))throw f8.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(r=Boolean(r),!this.ctx.transform.isIdentity){var l=this.ctx.transform.applyToPoint(new s(e,t));e=l.x,t=l.y;var o=this.ctx.transform.applyToPoint(new s(0,n)),d=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt(Math.pow(o.x-d.x,2)+Math.pow(o.y-d.y,2))}Math.abs(a-i)>=2*Math.PI&&(i=0,a=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:n,startAngle:i,endAngle:a,counterclockwise:r})},u.prototype.arcTo=function(e,t,n,i,a){throw new Error("arcTo not implemented.")},u.prototype.rect=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw f8.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+i),this.lineTo(e,t+i),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},u.prototype.fillRect=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw f8.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var a={};"butt"!==this.lineCap&&(a.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(a.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,n,i),this.fill(),a.hasOwnProperty("lineCap")&&(this.lineCap=a.lineCap),a.hasOwnProperty("lineJoin")&&(this.lineJoin=a.lineJoin)}},u.prototype.strokeRect=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw f8.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");f.call(this)||(this.beginPath(),this.rect(e,t,n,i),this.stroke())},u.prototype.clearRect=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw f8.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,n,i))},u.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var i=new c(this.ctx);this.ctxStack.push(this.ctx),this.ctx=i}},u.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},u.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var A=function(e){var t,n,i,a;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,n=0,i=0,a=0;else{var r=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==r)t=parseInt(r[1]),n=parseInt(r[2]),i=parseInt(r[3]),a=1;else if(null!==(r=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(r[1]),n=parseInt(r[2]),i=parseInt(r[3]),a=parseFloat(r[4]);else{if(a=1,"string"==typeof e&&"#"!==e.charAt(0)){var s=new w8(e);e=s.ok?s.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,i=e.substring(3,4),i+=i):(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),i=parseInt(i,16)}}return{r:t,g:n,b:i,a:a,style:e}},h=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},f=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};u.prototype.fillText=function(e,t,n,i){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw f8.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(i=isNaN(i)?void 0:i,!h.call(this)){var a=L(this.ctx.transform.rotation),r=this.ctx.transform.scaleX;B.call(this,{text:e,x:t,y:n,scale:r,angle:a,align:this.textAlign,maxWidth:i})}},u.prototype.strokeText=function(e,t,n,i){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw f8.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!f.call(this)){i=isNaN(i)?void 0:i;var a=L(this.ctx.transform.rotation),r=this.ctx.transform.scaleX;B.call(this,{text:e,x:t,y:n,scale:r,renderingMode:"stroke",angle:a,align:this.textAlign,maxWidth:i})}},u.prototype.measureText=function(e){if("string"!=typeof e)throw f8.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,n=this.pdf.internal.scaleFactor,i=t.internal.getFontSize(),a=t.getStringUnitWidth(e)*i/t.internal.scaleFactor;return new function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:a*=Math.round(96*n/72*1e4)/1e4})},u.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw f8.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new o(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},u.prototype.rotate=function(e){if(isNaN(e))throw f8.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new o(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},u.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw f8.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new o(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},u.prototype.transform=function(e,t,n,i,a,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(a)||isNaN(r))throw f8.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new o(e,t,n,i,a,r);this.ctx.transform=this.ctx.transform.multiply(s)},u.prototype.setTransform=function(e,t,n,i,a,r){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,i=isNaN(i)?1:i,a=isNaN(a)?0:a,r=isNaN(r)?0:r,this.ctx.transform=new o(e,t,n,i,a,r)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};u.prototype.drawImage=function(e,t,n,i,a,r,s,d,c){var u=this.pdf.getImageProperties(e),p=1,A=1,h=1,f=1;void 0!==i&&void 0!==d&&(h=d/i,f=c/a,p=u.width/i*d/i,A=u.height/a*c/a),void 0===r&&(r=t,s=n,t=0,n=0),void 0!==i&&void 0===d&&(d=i,c=a),void 0===i&&void 0===d&&(d=u.width,c=u.height);for(var g,b=this.ctx.transform.decompose(),j=L(b.rotate.shx),C=new o,S=(C=(C=(C=C.multiply(b.translate)).multiply(b.skew)).multiply(b.scale)).applyToRectangle(new l(r-t*h,s-n*f,i*p,a*A)),N=v.call(this,S),I=[],F=0;F<N.length;F+=1)-1===I.indexOf(N[F])&&I.push(N[F]);if(x(I),this.autoPaging)for(var B=I[0],P=I[I.length-1],k=B;k<P+1;k++){this.pdf.setPage(k);var T=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],E=1===k?this.posY+this.margin[0]:this.margin[0],D=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],U=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],_=1===k?0:D+(k-2)*U;if(0!==this.ctx.clip_path.length){var O=this.path;g=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(g,this.posX+this.margin[3],-_+E+this.ctx.prevPageLastElemOffset),w.call(this,"fill",!0),this.path=O}var M=JSON.parse(JSON.stringify(S));M=y([M],this.posX+this.margin[3],-_+E+this.ctx.prevPageLastElemOffset)[0];var R=(k>B||k<P)&&m.call(this);R&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],T,U,null).clip().discardPath()),this.pdf.addImage(e,"JPEG",M.x,M.y,M.w,M.h,null,null,j),R&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(e,"JPEG",S.x,S.y,S.w,S.h,null,null,j)};var v=function(e,t,n){var i=[];t=t||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var a=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case"mt":case"lt":i.push(Math.floor((e.y+a)/n)+1);break;case"arc":i.push(Math.floor((e.y+a-e.radius)/n)+1),i.push(Math.floor((e.y+a+e.radius)/n)+1);break;case"qct":var r=U(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);i.push(Math.floor((r.y+a)/n)+1),i.push(Math.floor((r.y+r.h+a)/n)+1);break;case"bct":var s=_(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);i.push(Math.floor((s.y+a)/n)+1),i.push(Math.floor((s.y+s.h+a)/n)+1);break;case"rect":i.push(Math.floor((e.y+a)/n)+1),i.push(Math.floor((e.y+e.h+a)/n)+1)}for(var l=0;l<i.length;l+=1)for(;this.pdf.internal.getNumberOfPages()<i[l];)g.call(this);return i},g=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,i=this.lineCap,a=this.lineWidth,r=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=i,this.lineWidth=a,this.lineJoin=r},y=function(e,t,n){for(var i=0;i<e.length;i++)switch(e[i].type){case"bct":e[i].x2+=t,e[i].y2+=n;case"qct":e[i].x1+=t,e[i].y1+=n;default:e[i].x+=t,e[i].y+=n}return e},x=function(e){return e.sort((function(e,t){return e-t}))},b=function(e,t){for(var n,i,a=this.fillStyle,r=this.strokeStyle,s=this.lineCap,l=this.lineWidth,o=Math.abs(l*this.ctx.transform.scaleX),d=this.lineJoin,c=JSON.parse(JSON.stringify(this.path)),u=JSON.parse(JSON.stringify(this.path)),p=[],A=0;A<u.length;A++)if(void 0!==u[A].x)for(var h=v.call(this,u[A]),f=0;f<h.length;f+=1)-1===p.indexOf(h[f])&&p.push(h[f]);for(var b=0;b<p.length;b++)for(;this.pdf.internal.getNumberOfPages()<p[b];)g.call(this);if(x(p),this.autoPaging)for(var j=p[0],C=p[p.length-1],S=j;S<C+1;S++){this.pdf.setPage(S),this.fillStyle=a,this.strokeStyle=r,this.lineCap=s,this.lineWidth=o,this.lineJoin=d;var N=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],I=1===S?this.posY+this.margin[0]:this.margin[0],F=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],B=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],P=1===S?0:F+(S-2)*B;if(0!==this.ctx.clip_path.length){var k=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(n,this.posX+this.margin[3],-P+I+this.ctx.prevPageLastElemOffset),w.call(this,e,!0),this.path=k}if(i=JSON.parse(JSON.stringify(c)),this.path=y(i,this.posX+this.margin[3],-P+I+this.ctx.prevPageLastElemOffset),!1===t||0===S){var T=(S>j||S<C)&&m.call(this);T&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],N,B,null).clip().discardPath()),w.call(this,e,t),T&&this.pdf.restoreGraphicsState()}this.lineWidth=l}else this.lineWidth=o,w.call(this,e,t),this.lineWidth=l;this.path=c},w=function(e,t){if(("stroke"!==e||t||!f.call(this))&&("stroke"===e||t||!h.call(this))){for(var n,i,a=[],r=this.path,s=0;s<r.length;s++){var l=r[s];switch(l.type){case"begin":a.push({begin:!0});break;case"close":a.push({close:!0});break;case"mt":a.push({start:l,deltas:[],abs:[]});break;case"lt":var o=a.length;if(r[s-1]&&!isNaN(r[s-1].x)&&(n=[l.x-r[s-1].x,l.y-r[s-1].y],o>0))for(;o>=0;o--)if(!0!==a[o-1].close&&!0!==a[o-1].begin){a[o-1].deltas.push(n),a[o-1].abs.push(l);break}break;case"bct":n=[l.x1-r[s-1].x,l.y1-r[s-1].y,l.x2-r[s-1].x,l.y2-r[s-1].y,l.x-r[s-1].x,l.y-r[s-1].y],a[a.length-1].deltas.push(n);break;case"qct":var d=r[s-1].x+2/3*(l.x1-r[s-1].x),c=r[s-1].y+2/3*(l.y1-r[s-1].y),u=l.x+2/3*(l.x1-l.x),p=l.y+2/3*(l.y1-l.y),A=l.x,m=l.y;n=[d-r[s-1].x,c-r[s-1].y,u-r[s-1].x,p-r[s-1].y,A-r[s-1].x,m-r[s-1].y],a[a.length-1].deltas.push(n);break;case"arc":a.push({deltas:[],abs:[],arc:!0}),Array.isArray(a[a.length-1].abs)&&a[a.length-1].abs.push(l)}}i=t?null:"stroke"===e?"stroke":"fill";for(var v=!1,g=0;g<a.length;g++)if(a[g].arc)for(var y=a[g].abs,x=0;x<y.length;x++){var b=y[x];"arc"===b.type?S.call(this,b.x,b.y,b.radius,b.startAngle,b.endAngle,b.counterclockwise,void 0,t,!v):P.call(this,b.x,b.y),v=!0}else if(!0===a[g].close)this.pdf.internal.out("h"),v=!1;else if(!0!==a[g].begin){var w=a[g].start.x,j=a[g].start.y;k.call(this,a[g].deltas,w,j),v=!0}i&&N.call(this,i),t&&I.call(this)}},j=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-n;case"top":return e+t-n;case"hanging":return e+t-2*n;case"middle":return e+t/2-n;default:return e}},C=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};u.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},u.prototype.createPattern=function(){return this.createLinearGradient()},u.prototype.createRadialGradient=function(){return this.createLinearGradient()};var S=function(e,t,n,i,a,r,s,l,o){for(var d=E.call(this,n,i,a,r),c=0;c<d.length;c++){var u=d[c];0===c&&(o?F.call(this,u.x1+e,u.y1+t):P.call(this,u.x1+e,u.y1+t)),T.call(this,e,t,u.x2,u.y2,u.x3,u.y3,u.x4,u.y4)}l?I.call(this):N.call(this,s)},N=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},I=function(){this.pdf.clip(),this.pdf.discardPath()},F=function(e,t){this.pdf.internal.out(n(e)+" "+i(t)+" m")},B=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var n=this.pdf.getTextDimensions(e.text),i=j.call(this,e.y),a=C.call(this,i)-n.h,r=this.ctx.transform.applyToPoint(new s(e.x,i)),d=this.ctx.transform.decompose(),c=new o;c=(c=(c=c.multiply(d.translate)).multiply(d.skew)).multiply(d.scale);for(var u,p,A,h=this.ctx.transform.applyToRectangle(new l(e.x,i,n.w,n.h)),f=c.applyToRectangle(new l(e.x,a,n.w,n.h)),g=v.call(this,f),b=[],S=0;S<g.length;S+=1)-1===b.indexOf(g[S])&&b.push(g[S]);if(x(b),this.autoPaging)for(var N=b[0],I=b[b.length-1],F=N;F<I+1;F++){this.pdf.setPage(F);var B=1===F?this.posY+this.margin[0]:this.margin[0],P=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[2],T=k-this.margin[0],E=this.pdf.internal.pageSize.width-this.margin[1],D=E-this.margin[3],L=1===F?0:P+(F-2)*T;if(0!==this.ctx.clip_path.length){var U=this.path;u=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(u,this.posX+this.margin[3],-1*L+B),w.call(this,"fill",!0),this.path=U}var _=y([JSON.parse(JSON.stringify(f))],this.posX+this.margin[3],-L+B+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(p=this.pdf.internal.getFontSize(),this.pdf.setFontSize(p*e.scale),A=this.lineWidth,this.lineWidth=A*e.scale);var O="text"!==this.autoPaging;if(O||_.y+_.h<=k){if(O||_.y>=B&&_.x<=E){var M=O?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||E-_.x)[0],R=y([JSON.parse(JSON.stringify(h))],this.posX+this.margin[3],-L+B+this.ctx.prevPageLastElemOffset)[0],Q=O&&(F>N||F<I)&&m.call(this);Q&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],D,T,null).clip().discardPath()),this.pdf.text(M,R.x,R.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),Q&&this.pdf.restoreGraphicsState()}}else _.y<k&&(this.ctx.prevPageLastElemOffset+=k-_.y);e.scale>=.01&&(this.pdf.setFontSize(p),this.lineWidth=A)}else e.scale>=.01&&(p=this.pdf.internal.getFontSize(),this.pdf.setFontSize(p*e.scale),A=this.lineWidth,this.lineWidth=A*e.scale),this.pdf.text(e.text,r.x+this.posX,r.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(p),this.lineWidth=A)},P=function(e,t,a,r){a=a||0,r=r||0,this.pdf.internal.out(n(e+a)+" "+i(t+r)+" l")},k=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},T=function(e,n,i,s,l,o,d,c){this.pdf.internal.out([t(a(i+e)),t(r(s+n)),t(a(l+e)),t(r(o+n)),t(a(d+e)),t(r(c+n)),"c"].join(" "))},E=function(e,t,n,i){for(var a=2*Math.PI,r=Math.PI/2;t>n;)t-=a;var s=Math.abs(n-t);s<a&&i&&(s=a-s);for(var l=[],o=i?-1:1,d=t;s>1e-5;){var c=d+o*Math.min(s,r);l.push(D.call(this,e,d,c)),s-=Math.abs(c-d),d=c}return l},D=function(e,t,n){var i=(n-t)/2,a=e*Math.cos(i),r=e*Math.sin(i),s=a,l=-r,o=s*s+l*l,d=o+s*a+l*r,c=4/3*(Math.sqrt(2*o*d)-d)/(s*r-l*a),u=s-c*l,p=l+c*s,A=u,h=-p,f=i+t,m=Math.cos(f),v=Math.sin(f);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:u*m-p*v,y2:u*v+p*m,x3:A*m-h*v,y3:A*v+h*m,x4:e*Math.cos(n),y4:e*Math.sin(n)}},L=function(e){return 180*e/Math.PI},U=function(e,t,n,i,a,r){var s=e+.5*(n-e),o=t+.5*(i-t),d=a+.5*(n-a),c=r+.5*(i-r),u=Math.min(e,a,s,d),p=Math.max(e,a,s,d),A=Math.min(t,r,o,c),h=Math.max(t,r,o,c);return new l(u,A,p-u,h-A)},_=function(e,t,n,i,a,r,s,o){var d,c,u,p,A,h,f,m,v,g,y,x,b,w,j=n-e,C=i-t,S=a-n,N=r-i,I=s-a,F=o-r;for(c=0;c<41;c++)v=(f=(u=e+(d=c/40)*j)+d*((A=n+d*S)-u))+d*(A+d*(a+d*I-A)-f),g=(m=(p=t+d*C)+d*((h=i+d*N)-p))+d*(h+d*(r+d*F-h)-m),0==c?(y=v,x=g,b=v,w=g):(y=Math.min(y,v),x=Math.min(x,g),b=Math.max(b,v),w=Math.max(w,g));return new l(Math.round(y),Math.round(x),Math.round(b-y),Math.round(w-x))},O=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,n=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(W8.API),
|
||
/**
|
||
* @license
|
||
* jsPDF filters PlugIn
|
||
* Copyright (c) 2014 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t=function(e){var t,n,i,a,r,s,l,o,d,c;for(n=[],i=0,a=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;a>i;i+=4)0!==(r=(e.charCodeAt(i)<<24)+(e.charCodeAt(i+1)<<16)+(e.charCodeAt(i+2)<<8)+e.charCodeAt(i+3))?(s=(r=((r=((r=((r=(r-(c=r%85))/85)-(d=r%85))/85)-(o=r%85))/85)-(l=r%85))/85)%85,n.push(s+33,l+33,o+33,d+33,c+33)):n.push(122);return function(e,t){for(var n=t;n>0;n--)e.pop()}(n,t.length),String.fromCharCode.apply(String,n)+"~>"},n=function(e){var t,n,i,a,r,s=String,l="length",o=255,d="charCodeAt",c="slice",u="replace";for(e[c](-2),e=e[c](0,-2)[u](/\s/g,"")[u]("z","!!!!!"),i=[],a=0,r=(e+=t="uuuuu"[c](e[l]%5||5))[l];r>a;a+=5)n=52200625*(e[d](a)-33)+614125*(e[d](a+1)-33)+7225*(e[d](a+2)-33)+85*(e[d](a+3)-33)+(e[d](a+4)-33),i.push(o&n>>24,o&n>>16,o&n>>8,o&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(i,t[l]),s.fromCharCode.apply(s,i)},i=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var n="",i=0;i<e.length;i+=2)n+=String.fromCharCode("0x"+(e[i]+e[i+1]));return n},a=function(e){for(var t=new Uint8Array(e.length),n=e.length;n--;)t[n]=e.charCodeAt(n);return(t=ns(t)).reduce((function(e,t){return e+String.fromCharCode(t)}),"")};e.processDataByFilters=function(e,r){var s=0,l=e||"",o=[];for("string"==typeof(r=r||[])&&(r=[r]),s=0;s<r.length;s+=1)switch(r[s]){case"ASCII85Decode":case"/ASCII85Decode":l=n(l),o.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),o.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=i(l),o.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map((function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)})).join("")+">",o.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=a(l),o.push("/FlateDecode");break;default:throw new Error('The filter: "'+r[s]+'" is not implemented')}return{data:l,reverseChain:o.reverse().join(" ")}}}(W8.API),
|
||
/**
|
||
* @license
|
||
* jsPDF fileloading PlugIn
|
||
* Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){e.loadFile=function(e,t,n){return function(e,t,n){t=!1!==t,n="function"==typeof n?n:function(){};var i=void 0;try{i=function(e,t,n){var i=new XMLHttpRequest,a=0,r=function(e){var t=e.length,n=[],i=String.fromCharCode;for(a=0;a<t;a+=1)n.push(i(255&e.charCodeAt(a)));return n.join("")};if(i.open("GET",e,!t),i.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(i.onload=function(){200===i.status?n(r(this.responseText)):n(void 0)}),i.send(null),t&&200===i.status)return r(i.responseText)}(e,t,n)}catch(a){}return i}(e,t,n)},e.loadImageFile=e.loadFile}(W8.API),function(e){function t(){return(A8.html2canvas?Promise.resolve(A8.html2canvas):pr((()=>Promise.resolve().then((()=>T9))),void 0)).catch((function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))})).then((function(e){return e.default?e.default:e}))}function n(){return(A8.DOMPurify?Promise.resolve(A8.DOMPurify):pr((()=>import("./purify.es-0769f88c.js")),[])).catch((function(e){return Promise.reject(new Error("Could not load dompurify: "+e))})).then((function(e){return e.default?e.default:e}))}var i=function(e){var t=p(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},a=function(e,t){var n=document.createElement(e);for(var i in t.className&&(n.className=t.className),t.innerHTML&&t.dompurify&&(n.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)n.style[i]=t.style[i];return n},r=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),i=e.convert(Promise.resolve(),n);return(i=i.setProgress(1,e,1,[e])).set(t)};(r.prototype=Object.create(Promise.prototype)).constructor=r,r.convert=function(e,t){return e.__proto__=t||r.prototype,e},r.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},r.prototype.from=function(e,t){return this.then((function(){switch(t=t||function(e){switch(i(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e)){case"string":return this.then(n).then((function(t){return this.set({src:a("div",{innerHTML:e,dompurify:t})})}));case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}}))},r.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},r.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var e={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=function e(t,n){for(var i=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),a=t.firstChild;a;a=a.nextSibling)!0!==n&&1===a.nodeType&&"SCRIPT"===a.nodeName||i.appendChild(e(a,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(i.width=t.width,i.height=t.height,i.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(i.value=t.value),i.addEventListener("load",(function(){i.scrollTop=t.scrollTop,i.scrollLeft=t.scrollLeft}),!0)),i}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},r.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},r.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=this.opt.jsPDF,n=this.opt.fontFaces,i="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,a=Object.assign({async:!0,allowTaint:!0,scale:i,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete a.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=n,n)for(var r=0;r<n.length;++r){var s=n[r],l=s.src.find((function(e){return"truetype"===e.format}));l&&t.addFont(l.url,s.ref.name,s.ref.style)}return a.windowHeight=a.windowHeight||0,a.windowHeight=0==a.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):a.windowHeight,t.context2d.save(!0),e(this.prop.container,a)})).then((function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},r.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e}))},r.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},r.prototype.output=function(e,t,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},r.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(e,t)}))},r.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}}))},r.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},r.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},r.prototype.set=function(e){if("object"!==i(e))return this;var t=Object.keys(e||{}).map((function(t){if(t in r.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}}),this);return this.then((function(){return this.thenList(t)}))},r.prototype.get=function(e,t){return this.then((function(){var n=e in r.template.prop?this.prop[e]:this.opt[e];return t?t(n):n}))},r.prototype.setMargin=function(e){return this.then((function(){switch(i(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e})).then(this.setPageSize)},r.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then((function(){(e=e||W8.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e}))},r.prototype.setProgress=function(e,t,n,i){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=i&&(this.progress.stack=i),this.progress.ratio=this.progress.val/this.progress.state,this},r.prototype.updateProgress=function(e,t,n,i){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,i?this.progress.stack.concat(i):null)},r.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,(function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,(function(t){return n.updateProgress(null,e),t})).then(e,t).then((function(e){return n.updateProgress(1),e}))}))},r.prototype.thenCore=function(e,t,n){n=n||Promise.prototype.then,e&&(e=e.bind(this)),t&&(t=t.bind(this));var i=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:r.convert(Object.assign({},this),Promise.prototype),a=n.call(i,e,t);return r.convert(a,this.__proto__)},r.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},r.prototype.thenList=function(e){var t=this;return e.forEach((function(e){t=t.thenCore(e)})),t},r.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return r.convert(t,this)},r.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},r.prototype.error=function(e){return this.then((function(){throw new Error(e)}))},r.prototype.using=r.prototype.set,r.prototype.saveAs=r.prototype.save,r.prototype.export=r.prototype.output,r.prototype.run=r.prototype.then,W8.getPageSize=function(e,t,n){if("object"===p(e)){var i=e;e=i.orientation,t=i.unit||t,n=i.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var a,r=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":a=1;break;case"mm":a=72/25.4;break;case"cm":a=72/2.54;break;case"in":a=72;break;case"px":a=.75;break;case"pc":case"em":a=12;break;case"ex":a=6;break;default:throw"Invalid unit: "+t}var l,o=0,d=0;if(s.hasOwnProperty(r))o=s[r][1]/a,d=s[r][0]/a;else try{o=n[1],d=n[0]}catch(_u){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e)e="p",d>o&&(l=d,d=o,o=l);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",o>d&&(l=d,d=o,o=l)}return{width:d,height:o,unit:t,k:a,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(R7):null;var n=new r(t);return t.worker?n:n.from(e).doCallback()}}(W8.API),W8.API.addJS=function(e){return $7=e,this.internal.events.subscribe("postPutResources",(function(){K7=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(K7+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),G7=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+$7+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==K7&&void 0!==G7&&this.internal.out("/Names <</JavaScript "+K7+" 0 R>>")})),this},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t;e.events.push(["postPutResources",function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=e.outline.render().split(/\r\n/),a=0;a<i.length;a++){var r=i[a],s=n.exec(r);if(null!=s){var l=s[1];e.internal.newObjectDeferredBegin(l,!1)}e.internal.write(r)}if(this.outline.createNamedDestinations){var o=this.internal.pages.length,d=[];for(a=0;a<o;a++){var c=e.internal.newObject();d.push(c);var u=e.internal.getPageInfo(a+1);e.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),a=0;a<d.length;a++)e.internal.write("(page_"+(a+1)+")"+d[a]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var i={title:t,options:n,children:[]};return null==e&&(e=this.root),e.children.push(i),i},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<t.children.length;i++){var a=t.children[i];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(t)),i>0&&this.line("/Prev "+this.makeRef(t.children[i-1])),i<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[i+1])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var r=this.count=this.count_r({count:0},a);if(r>0&&this.line("/Count "+r),a.options&&a.options.pageNumber){var s=e.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+s.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var l=0;l<t.children.length;l++)this.renderItems(t.children[l])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}])}(W8.API),
|
||
/**
|
||
* @license
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,n,i,a,r,s){var l,o=this.decode.DCT_DECODE,d=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=r||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(l=function(e){for(var n,i=256*e.charCodeAt(4)+e.charCodeAt(5),a=e.length,r={width:0,height:0,numcomponents:1},s=4;s<a;s+=2){if(s+=i,-1!==t.indexOf(e.charCodeAt(s+1))){n=256*e.charCodeAt(s+5)+e.charCodeAt(s+6),r={width:256*e.charCodeAt(s+7)+e.charCodeAt(s+8),height:n,numcomponents:e.charCodeAt(s+9)};break}i=256*e.charCodeAt(s+2)+e.charCodeAt(s+3)}return r}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}d={data:e,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:o,index:n,alias:i}}return d}}(W8.API);var J7,Z7,e9,t9,n9,i9=function(){var e,t,n;function i(e){var t,n,i,a,r,s,l,o,d,c,u,p,A,h;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},s=null;;){switch(t=this.readUInt32(),d=function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":s&&this.animation.frames.push(s),this.pos+=4,s={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},r=this.readUInt16(),a=this.readUInt16()||100,s.delay=1e3*r/a,s.disposeOp=this.data[this.pos++],s.blendOp=this.data[this.pos++],s.data=[];break;case"IDAT":case"fdAT":for("fdAT"===d&&(this.pos+=4,t-=4),e=(null!=s?s.data:void 0)||this.imgData,p=0;0<=t?p<t:p>t;0<=t?++p:--p)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(i=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>i)throw new Error("More transparent colors than palette size");if((c=i-this.transparency.indexed.length)>0)for(A=0;0<=c?A<c:A>c;0<=c?++A:--A)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":l=(u=this.read(t)).indexOf(0),o=String.fromCharCode.apply(String,u.slice(0,l)),this.text[o]=String.fromCharCode.apply(String,u.slice(l+1));break;case"IEND":return s&&this.animation.frames.push(s),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(h=this.colorType)||6===h,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.prototype.read=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)n.push(this.data[this.pos++]);return n},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(e){var t=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*t),i=0,a=this;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);function r(r,s,l,o){var d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B,P=Math.ceil((a.width-r)/l),k=Math.ceil((a.height-s)/o),T=a.width==P&&a.height==k;for(w=t*P,x=T?n:new Uint8Array(w*k),h=e.length,b=0,c=0;b<k&&i<h;){switch(e[i++]){case 0:for(p=S=0;S<w;p=S+=1)x[c++]=e[i++];break;case 1:for(p=N=0;N<w;p=N+=1)d=e[i++],A=p<t?0:x[c-t],x[c++]=(d+A)%256;break;case 2:for(p=I=0;I<w;p=I+=1)d=e[i++],u=(p-p%t)/t,j=b&&x[(b-1)*w+u*t+p%t],x[c++]=(j+d)%256;break;case 3:for(p=F=0;F<w;p=F+=1)d=e[i++],u=(p-p%t)/t,A=p<t?0:x[c-t],j=b&&x[(b-1)*w+u*t+p%t],x[c++]=(d+Math.floor((A+j)/2))%256;break;case 4:for(p=B=0;B<w;p=B+=1)d=e[i++],u=(p-p%t)/t,A=p<t?0:x[c-t],0===b?j=C=0:(j=x[(b-1)*w+u*t+p%t],C=u&&x[(b-1)*w+(u-1)*t+p%t]),f=A+j-C,m=Math.abs(f-A),g=Math.abs(f-j),y=Math.abs(f-C),v=m<=g&&m<=y?A:g<=y?j:C,x[c++]=(d+v)%256;break;default:throw new Error("Invalid filter algorithm: "+e[i-1])}if(!T){var E=((s+b*o)*a.width+r)*t,D=b*w;for(p=0;p<P;p+=1){for(var L=0;L<t;L+=1)n[E++]=x[D++];E+=(l-1)*t}}b++}}return e=is(e),1==a.interlaceMethod?(r(0,0,8,8),r(4,0,8,8),r(0,4,4,8),r(2,0,4,4),r(0,2,2,4),r(1,0,2,2),r(0,1,1,2)):r(0,0,1,1),n},i.prototype.decodePalette=function(){var e,t,n,i,a,r,s,l,o;for(n=this.palette,r=this.transparency.indexed||[],a=new Uint8Array((r.length||0)+n.length),i=0,e=0,t=s=0,l=n.length;s<l;t=s+=3)a[i++]=n[t],a[i++]=n[t+1],a[i++]=n[t+2],a[i++]=null!=(o=r[e++])?o:255;return a},i.prototype.copyToImageData=function(e,t){var n,i,a,r,s,l,o,d,c,u,p;if(i=this.colors,c=null,n=this.hasAlphaChannel,this.palette.length&&(c=null!=(p=this._decodedPalette)?p:this._decodedPalette=this.decodePalette(),i=4,n=!0),d=(a=e.data||e).length,s=c||t,r=l=0,1===i)for(;r<d;)o=c?4*t[r/4]:l,u=s[o++],a[r++]=u,a[r++]=u,a[r++]=u,a[r++]=n?s[o++]:255,l=o;else for(;r<d;)o=c?4*t[r/4]:l,a[r++]=s[o++],a[r++]=s[o++],a[r++]=s[o++],a[r++]=n?s[o++]:255,l=o},i.prototype.decode=function(){var e;return e=new Uint8Array(this.width*this.height*4),this.copyToImageData(e,this.decodePixels()),e};var a=function(){if("[object Window]"===Object.prototype.toString.call(A8)){try{t=A8.document.createElement("canvas"),n=t.getContext("2d")}catch(e){return!1}return!0}return!1};return a(),e=function(e){var i;if(!0===a())return n.width=e.width,n.height=e.height,n.clearRect(0,0,e.width,e.height),n.putImageData(e,0,0),(i=new Image).src=t.toDataURL(),i;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(t){var n,i,a,r,s,l,o,d;if(this.animation){for(d=[],i=s=0,l=(o=this.animation.frames).length;s<l;i=++s)n=o[i],a=t.createImageData(n.width,n.height),r=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(a,r),n.imageData=a,d.push(n.image=e(a));return d}},i.prototype.renderFrame=function(e,t){var n,i,a;return n=(i=this.animation.frames)[t],a=i[t-1],0===t&&e.clearRect(0,0,this.width,this.height),1===(null!=a?a.disposeOp:void 0)?e.clearRect(a.xOffset,a.yOffset,a.width,a.height):2===(null!=a?a.disposeOp:void 0)&&e.putImageData(a.imageData,a.xOffset,a.yOffset),0===n.blendOp&&e.clearRect(n.xOffset,n.yOffset,n.width,n.height),e.drawImage(n.image,n.xOffset,n.yOffset)},i.prototype.animate=function(e){var t,n,i,a,r,s,l=this;return n=0,s=this.animation,a=s.numFrames,i=s.frames,r=s.numPlays,(t=function(){var s,o;if(s=n++%a,o=i[s],l.renderFrame(e,s),a>1&&n/a<r)return l.animation._timeout=setTimeout(t,o.delay)})()},i.prototype.stopAnimation=function(){var e;return clearTimeout(null!=(e=this.animation)?e._timeout:void 0)},i.prototype.render=function(e){var t,n;return e._png&&e._png.stopAnimation(),e._png=this,e.width=this.width,e.height=this.height,t=e.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(n=t.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),t.putImageData(n,0,0))},i}();
|
||
/**
|
||
* @license
|
||
*
|
||
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/
|
||
/**
|
||
* @license
|
||
* (c) Dean McNamee <dean@gmail.com>, 2013.
|
||
*
|
||
* https://github.com/deanm/omggif
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
* of this software and associated documentation files (the "Software"), to
|
||
* deal in the Software without restriction, including without limitation the
|
||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||
* sell copies of the Software, and to permit persons to whom the Software is
|
||
* furnished to do so, subject to the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be included in
|
||
* all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||
* IN THE SOFTWARE.
|
||
*
|
||
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
|
||
* including animation and compression. It does not rely on any specific
|
||
* underlying system, so should run in the browser, Node, or Plask.
|
||
*/function a9(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,i=e[t++]|e[t++]<<8,a=e[t++],r=a>>7,s=1<<1+(7&a);e[t++],e[t++];var l=null,o=null;r&&(l=t,o=s,t+=3*s);var d=!0,c=[],u=0,p=null,A=0,h=null;for(this.width=n,this.height=i;d&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,h=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var f=e[t++];u=e[t++]|e[t++]<<8,p=e[t++],!(1&f)&&(p=null),A=f>>2&7,t++;break;case 254:for(;;){if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var m=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,g=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,x=e[t++],b=x>>6&1,w=1<<1+(7&x),j=l,C=o,S=!1;x>>7&&(S=!0,j=t,C=w,t+=3*w);var N=t;for(t++;;){var I;if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}c.push({x:m,y:v,width:g,height:y,has_local_palette:S,palette_offset:j,palette_size:C,data_offset:N,data_length:t-N,transparent_index:p,interlaced:!!b,delay:u,disposal:A});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return h},this.frameInfo=function(e){if(e<0||e>=c.length)throw new Error("Frame index out of range.");return c[e]},this.decodeAndBlitFrameBGRA=function(t,i){var a=this.frameInfo(t),r=a.width*a.height,s=new Uint8Array(r);r9(e,a.data_offset,s,r);var l=a.palette_offset,o=a.transparent_index;null===o&&(o=256);var d=a.width,c=n-d,u=d,p=4*(a.y*n+a.x),A=4*((a.y+a.height)*n+a.x),h=p,f=4*c;!0===a.interlaced&&(f+=4*n*7);for(var m=8,v=0,g=s.length;v<g;++v){var y=s[v];if(0===u&&(u=d,(h+=f)>=A&&(f=4*c+4*n*(m-1),h=p+(d+c)*(m<<1),m>>=1)),y===o)h+=4;else{var x=e[l+3*y],b=e[l+3*y+1],w=e[l+3*y+2];i[h++]=w,i[h++]=b,i[h++]=x,i[h++]=255}--u}},this.decodeAndBlitFrameRGBA=function(t,i){var a=this.frameInfo(t),r=a.width*a.height,s=new Uint8Array(r);r9(e,a.data_offset,s,r);var l=a.palette_offset,o=a.transparent_index;null===o&&(o=256);var d=a.width,c=n-d,u=d,p=4*(a.y*n+a.x),A=4*((a.y+a.height)*n+a.x),h=p,f=4*c;!0===a.interlaced&&(f+=4*n*7);for(var m=8,v=0,g=s.length;v<g;++v){var y=s[v];if(0===u&&(u=d,(h+=f)>=A&&(f=4*c+4*n*(m-1),h=p+(d+c)*(m<<1),m>>=1)),y===o)h+=4;else{var x=e[l+3*y],b=e[l+3*y+1],w=e[l+3*y+2];i[h++]=x,i[h++]=b,i[h++]=w,i[h++]=255}--u}}}function r9(e,t,n,i){for(var a=e[t++],r=1<<a,s=r+1,l=s+1,o=a+1,d=(1<<o)-1,c=0,u=0,p=0,A=e[t++],h=new Int32Array(4096),f=null;;){for(;c<16&&0!==A;)u|=e[t++]<<c,c+=8,1===A?A=e[t++]:--A;if(c<o)break;var m=u&d;if(u>>=o,c-=o,m!==r){if(m===s)break;for(var v=m<l?m:f,g=0,y=v;y>r;)y=h[y]>>8,++g;var x=y;if(p+g+(v!==m?1:0)>i)return void f8.log("Warning, gif stream longer than expected.");n[p++]=x;var b=p+=g;for(v!==m&&(n[p++]=x),y=v;g--;)y=h[y],n[--b]=255&y,y>>=8;null!==f&&l<4096&&(h[l++]=f<<8|x,l>=d+1&&o<12&&(++o,d=d<<1|1)),f=m}else l=s+1,d=(1<<(o=a+1))-1,f=null}return p!==i&&f8.log("Warning, gif stream shorter than expected."),n
|
||
/**
|
||
* @license
|
||
Copyright (c) 2008, Adobe Systems Incorporated
|
||
All rights reserved.
|
||
|
||
Redistribution and use in source and binary forms, with or without
|
||
modification, are permitted provided that the following conditions are
|
||
met:
|
||
|
||
* Redistributions of source code must retain the above copyright notice,
|
||
this list of conditions and the following disclaimer.
|
||
|
||
* Redistributions in binary form must reproduce the above copyright
|
||
notice, this list of conditions and the following disclaimer in the
|
||
documentation and/or other materials provided with the distribution.
|
||
|
||
* Neither the name of Adobe Systems Incorporated nor the names of its
|
||
contributors may be used to endorse or promote products derived from
|
||
this software without specific prior written permission.
|
||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
*/}function s9(e){var t,n,i,a,r,s=Math.floor,l=new Array(64),o=new Array(64),d=new Array(64),c=new Array(64),u=new Array(65535),p=new Array(65535),A=new Array(64),h=new Array(64),f=[],m=0,v=7,g=new Array(64),y=new Array(64),x=new Array(64),b=new Array(256),w=new Array(2048),j=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],C=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],N=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],F=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],B=[0,1,2,3,4,5,6,7,8,9,10,11],P=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],k=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function T(e,t){for(var n=0,i=0,a=new Array,r=1;r<=16;r++){for(var s=1;s<=e[r];s++)a[t[i]]=[],a[t[i]][0]=n,a[t[i]][1]=r,i++,n++;n*=2}return a}function E(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(m|=1<<v),n--,--v<0&&(255==m?(D(255),D(0)):D(m),v=7,m=0)}function D(e){f.push(e)}function L(e){D(e>>8&255),D(255&e)}function U(e,t,n,i,a){for(var r,s=a[0],l=a[240],o=function(e,t){var n,i,a,r,s,l,o,d,c,u,p=0;for(c=0;c<8;++c){n=e[p],i=e[p+1],a=e[p+2],r=e[p+3],s=e[p+4],l=e[p+5],o=e[p+6];var h=n+(d=e[p+7]),f=n-d,m=i+o,v=i-o,g=a+l,y=a-l,x=r+s,b=r-s,w=h+x,j=h-x,C=m+g,S=m-g;e[p]=w+C,e[p+4]=w-C;var N=.707106781*(S+j);e[p+2]=j+N,e[p+6]=j-N;var I=.382683433*((w=b+y)-(S=v+f)),F=.5411961*w+I,B=1.306562965*S+I,P=.707106781*(C=y+v),k=f+P,T=f-P;e[p+5]=T+F,e[p+3]=T-F,e[p+1]=k+B,e[p+7]=k-B,p+=8}for(p=0,c=0;c<8;++c){n=e[p],i=e[p+8],a=e[p+16],r=e[p+24],s=e[p+32],l=e[p+40],o=e[p+48];var E=n+(d=e[p+56]),D=n-d,L=i+o,U=i-o,_=a+l,O=a-l,M=r+s,R=r-s,Q=E+M,H=E-M,V=L+_,z=L-_;e[p]=Q+V,e[p+32]=Q-V;var q=.707106781*(z+H);e[p+16]=H+q,e[p+48]=H-q;var W=.382683433*((Q=R+O)-(z=U+D)),Y=.5411961*Q+W,K=1.306562965*z+W,G=.707106781*(V=O+U),$=D+G,X=D-G;e[p+40]=X+Y,e[p+24]=X-Y,e[p+8]=$+K,e[p+56]=$-K,p++}for(c=0;c<64;++c)u=e[c]*t[c],A[c]=u>0?u+.5|0:u-.5|0;return A}(e,t),d=0;d<64;++d)h[j[d]]=o[d];var c=h[0]-n;n=h[0],0==c?E(i[0]):(E(i[p[r=32767+c]]),E(u[r]));for(var f=63;f>0&&0==h[f];)f--;if(0==f)return E(s),n;for(var m,v=1;v<=f;){for(var g=v;0==h[v]&&v<=f;)++v;var y=v-g;if(y>=16){m=y>>4;for(var x=1;x<=m;++x)E(l);y&=15}r=32767+h[v],E(a[(y<<4)+p[r]]),E(u[r]),v++}return 63!=f&&E(s),n}function _(e){e=Math.min(Math.max(e,1),100),r!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var i=s((t[n]*e+50)/100);i=Math.min(Math.max(i,1),255),l[j[n]]=i}for(var a=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],r=0;r<64;r++){var u=s((a[r]*e+50)/100);u=Math.min(Math.max(u,1),255),o[j[r]]=u}for(var p=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],A=0,h=0;h<8;h++)for(var f=0;f<8;f++)d[A]=1/(l[j[A]]*p[h]*p[f]*8),c[A]=1/(o[j[A]]*p[h]*p[f]*8),A++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),r=e)}this.encode=function(e,r){var s,u;r&&_(r),f=new Array,m=0,v=7,L(65496),L(65504),L(16),D(74),D(70),D(73),D(70),D(0),D(1),D(1),D(0),L(1),L(1),D(0),D(0),function(){L(65499),L(132),D(0);for(var e=0;e<64;e++)D(l[e]);D(1);for(var t=0;t<64;t++)D(o[t])}(),s=e.width,u=e.height,L(65472),L(17),D(8),L(u),L(s),D(3),D(1),D(17),D(0),D(2),D(17),D(1),D(3),D(17),D(1),function(){L(65476),L(418),D(0);for(var e=0;e<16;e++)D(C[e+1]);for(var t=0;t<=11;t++)D(S[t]);D(16);for(var n=0;n<16;n++)D(N[n+1]);for(var i=0;i<=161;i++)D(I[i]);D(1);for(var a=0;a<16;a++)D(F[a+1]);for(var r=0;r<=11;r++)D(B[r]);D(17);for(var s=0;s<16;s++)D(P[s+1]);for(var l=0;l<=161;l++)D(k[l])}(),L(65498),L(12),D(3),D(1),D(0),D(2),D(17),D(3),D(17),D(0),D(63),D(0);var p=0,A=0,h=0;m=0,v=7,this.encode.displayName="_encode_";for(var b,j,T,O,M,R,Q,H,V,z=e.data,q=e.width,W=e.height,Y=4*q,K=0;K<W;){for(b=0;b<Y;){for(M=Y*K+b,Q=-1,H=0,V=0;V<64;V++)R=M+(H=V>>3)*Y+(Q=4*(7&V)),K+H>=W&&(R-=Y*(K+1+H-W)),b+Q>=Y&&(R-=b+Q-Y+4),j=z[R++],T=z[R++],O=z[R++],g[V]=(w[j]+w[T+256|0]+w[O+512|0]>>16)-128,y[V]=(w[j+768|0]+w[T+1024|0]+w[O+1280|0]>>16)-128,x[V]=(w[j+1280|0]+w[T+1536|0]+w[O+1792|0]>>16)-128;p=U(g,d,p,t,i),A=U(y,c,A,n,a),h=U(x,c,h,n,a),b+=32}K+=8}if(v>=0){var G=[];G[1]=v+1,G[0]=(1<<v+1)-1,E(G)}return L(65497),new Uint8Array(f)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)b[t]=e(t)}(),t=T(C,S),n=T(F,B),i=T(N,I),a=T(P,k),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var i=e;i<t;i++)p[32767+i]=n,u[32767+i]=[],u[32767+i][1]=n,u[32767+i][0]=i;for(var a=-(t-1);a<=-e;a++)p[32767+a]=n,u[32767+a]=[],u[32767+a][1]=n,u[32767+a][0]=t-1+a;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)w[e]=19595*e,w[e+256|0]=38470*e,w[e+512|0]=7471*e+32768,w[e+768|0]=-11059*e,w[e+1024|0]=-21709*e,w[e+1280|0]=32768*e+8421375,w[e+1536|0]=-27439*e,w[e+1792|0]=-5329*e}(),_(e)}
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/function l9(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function o9(e){function t(e){if(!e)throw Error("assert :P")}function n(e,t,n){for(var i=0;4>i;i++)if(e[t+i]!=n.charCodeAt(i))return!0;return!1}function i(e,t,n,i,a){for(var r=0;r<a;r++)e[t+r]=n[i+r]}function a(e,t,n,i){for(var a=0;a<i;a++)e[t+a]=n}function r(e){return new Int32Array(e)}function s(e,t){for(var n=[],i=0;i<e;i++)n.push(new t);return n}function l(e,t){var n=[];return function e(n,i,a){for(var r=a[i],s=0;s<r&&(n.push(a.length>i+1?[]:new t),!(a.length<i+1));s++)e(n[s],i+1,a)}(n,0,e),n}var o=function(){var e=this;function o(e,t){for(var n=1<<t-1>>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function d(e,n,i,a,r){t(!(a%i));do{e[n+(a-=i)]=r}while(0<a)}function c(e,n,i,a,s){if(t(2328>=s),512>=s)var l=r(512);else if(null==(l=r(s)))return 0;return function(e,n,i,a,s,l){var c,p,A=n,h=1<<i,f=r(16),m=r(16);for(t(0!=s),t(null!=a),t(null!=e),t(0<i),p=0;p<s;++p){if(15<a[p])return 0;++f[a[p]]}if(f[0]==s)return 0;for(m[1]=0,c=1;15>c;++c){if(f[c]>1<<c)return 0;m[c+1]=m[c]+f[c]}for(p=0;p<s;++p)c=a[p],0<a[p]&&(l[m[c]++]=p);if(1==m[15])return(a=new u).g=0,a.value=l[0],d(e,A,1,h,a),h;var v,g=-1,y=h-1,x=0,b=1,w=1,j=1<<i;for(p=0,c=1,s=2;c<=i;++c,s<<=1){if(b+=w<<=1,0>(w-=f[c]))return 0;for(;0<f[c];--f[c])(a=new u).g=c,a.value=l[p++],d(e,A+x,s,j,a),x=o(x,c)}for(c=i+1,s=2;15>=c;++c,s<<=1){if(b+=w<<=1,0>(w-=f[c]))return 0;for(;0<f[c];--f[c]){if(a=new u,(x&y)!=g){for(A+=j,v=1<<(g=c)-i;15>g&&!(0>=(v-=f[g]));)++g,v<<=1;h+=j=1<<(v=g-i),e[n+(g=x&y)].g=v+i,e[n+g].value=A-n-g}a.g=c-i,a.value=l[p++],d(e,A+(x>>i),s,j,a),x=o(x,c)}}return b!=2*m[15]-1?0:h}(e,n,i,a,s,l)}function u(){this.value=this.g=0}function p(){this.value=this.g=0}function A(){this.G=s(5,u),this.H=r(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(On,p)}function h(e,n,i,a){t(null!=e),t(null!=n),t(2147483648>a),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=n,e.pa=i,e.Jd=n,e.Yc=i+a,e.Zc=4<=a?i+a-4+1:i,N(e)}function f(e,t){for(var n=0;0<t--;)n|=F(e,128)<<t;return n}function m(e,t){var n=f(e,t);return I(e)?-n:n}function v(e,n,i,a){var r,s=0;for(t(null!=e),t(null!=n),t(4294967288>a),e.Sb=a,e.Ra=0,e.u=0,e.h=0,4<a&&(a=4),r=0;r<a;++r)s+=n[i+r]<<8*r;e.Ra=s,e.bb=a,e.oa=n,e.pa=i}function g(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<Qn-8>>>0,++e.bb,e.u-=8;j(e)&&(e.h=1,e.u=0)}function y(e,n){if(t(0<=n),!e.h&&n<=Rn){var i=w(e)&Mn[n];return e.u+=n,g(e),i}return e.h=1,e.u=0}function x(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function b(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function w(e){return e.Ra>>>(e.u&Qn-1)>>>0}function j(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>Qn}function C(e,t){e.u=t,e.h=j(e)}function S(e){e.u>=Hn&&(t(e.u>=Hn),g(e))}function N(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function I(e){return f(e,1)}function F(e,t){var n=e.Ca;0>e.b&&N(e);var i=e.b,a=n*t>>>8,r=(e.I>>>i>a)+0;for(r?(n-=a,e.I-=a+1<<i>>>0):n=a+1,i=n,a=0;256<=i;)a+=8,i>>=8;return i=7^a+Vn[i],e.b-=i,e.Ca=(n<<i)-1,r}function B(e,t,n){e[t+0]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function P(e,t){return e[t+0]|e[t+1]<<8}function k(e,t){return P(e,t)|e[t+2]<<16}function T(e,t){return P(e,t)|P(e,t+2)<<16}function E(e,n){var i=1<<n;return t(null!=e),t(0<n),e.X=r(i),null==e.X?0:(e.Mb=32-n,e.Xa=n,1)}function D(e,n){t(null!=e),t(null!=n),t(e.Xa==n.Xa),i(n.X,0,e.X,0,1<<n.Xa)}function L(){this.X=[],this.Xa=this.Mb=0}function U(e,n,i,a){t(null!=i),t(null!=a);var r=i[0],s=a[0];return 0==r&&(r=(e*s+n/2)/n),0==s&&(s=(n*r+e/2)/e),0>=r||0>=s?0:(i[0]=r,a[0]=s,1)}function _(e,t){return e+(1<<t)-1>>>t}function O(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function M(t,n){e[n]=function(n,i,a,r,s,l,o){var d;for(d=0;d<s;++d){var c=e[t](l[o+d-1],a,r+d);l[o+d]=O(n[i+d],c)}}}function R(){this.ud=this.hd=this.jd=0}function Q(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function H(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function V(e,t){return H(e+(e-t+.5>>1))}function z(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function q(e,t,n,i,a,r,s){for(i=r[s-1],n=0;n<a;++n)r[s+n]=i=O(e[t+n],i)}function W(e,t,n,i,a){var r;for(r=0;r<n;++r){var s=e[t+r],l=s>>8&255,o=16711935&(o=(o=16711935&s)+((l<<16)+l));i[a+r]=(4278255360&s)+o>>>0}}function Y(e,t){t.jd=255&e,t.hd=e>>8&255,t.ud=e>>16&255}function K(e,t,n,i,a,r){var s;for(s=0;s<i;++s){var l=t[n+s],o=l>>>8,d=l,c=255&(c=(c=l>>>16)+((e.jd<<24>>24)*(o<<24>>24)>>>5));d=255&(d=(d+=(e.hd<<24>>24)*(o<<24>>24)>>>5)+((e.ud<<24>>24)*(c<<24>>24)>>>5)),a[r+s]=(4278255360&l)+(c<<16)+d}}function G(t,n,i,a,r){e[n]=function(e,t,n,i,s,l,o,d,c){for(i=o;i<d;++i)for(o=0;o<c;++o)s[l++]=r(n[a(e[t++])])},e[t]=function(t,n,s,l,o,d,c){var u=8>>t.b,p=t.Ea,A=t.K[0],h=t.w;if(8>u)for(t=(1<<t.b)-1,h=(1<<u)-1;n<s;++n){var f,m=0;for(f=0;f<p;++f)f&t||(m=a(l[o++])),d[c++]=r(A[m&h]),m>>=u}else e["VP8LMapColor"+i](l,o,A,h,d,c,n,s,p)}}function $(e,t,n,i,a){for(n=t+n;t<n;){var r=e[t++];i[a++]=r>>16&255,i[a++]=r>>8&255,i[a++]=255&r}}function X(e,t,n,i,a){for(n=t+n;t<n;){var r=e[t++];i[a++]=r>>16&255,i[a++]=r>>8&255,i[a++]=255&r,i[a++]=r>>24&255}}function J(e,t,n,i,a){for(n=t+n;t<n;){var r=(s=e[t++])>>16&240|s>>12&15,s=240&s|s>>28&15;i[a++]=r,i[a++]=s}}function Z(e,t,n,i,a){for(n=t+n;t<n;){var r=(s=e[t++])>>16&248|s>>13&7,s=s>>5&224|s>>3&31;i[a++]=r,i[a++]=s}}function ee(e,t,n,i,a){for(n=t+n;t<n;){var r=e[t++];i[a++]=255&r,i[a++]=r>>8&255,i[a++]=r>>16&255}}function te(e,t,n,a,r,s){if(0==s)for(n=t+n;t<n;)B(a,((s=e[t++])[0]>>24|s[1]>>8&65280|s[2]<<8&16711680|s[3]<<24)>>>0),r+=32;else i(a,r,e,t,n)}function ne(t,n){e[n][0]=e[t+"0"],e[n][1]=e[t+"1"],e[n][2]=e[t+"2"],e[n][3]=e[t+"3"],e[n][4]=e[t+"4"],e[n][5]=e[t+"5"],e[n][6]=e[t+"6"],e[n][7]=e[t+"7"],e[n][8]=e[t+"8"],e[n][9]=e[t+"9"],e[n][10]=e[t+"10"],e[n][11]=e[t+"11"],e[n][12]=e[t+"12"],e[n][13]=e[t+"13"],e[n][14]=e[t+"0"],e[n][15]=e[t+"0"]}function ie(e){return e==Hi||e==Vi||e==zi||e==qi}function ae(){this.eb=[],this.size=this.A=this.fb=0}function re(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function se(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ae,this.f.kb=new re,this.sd=null}function le(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function oe(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function de(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ce(e,t){var n=e.T,a=t.ba.f.RGBA,r=a.eb,s=a.fb+e.ka*a.A,l=ma[t.ba.S],o=e.y,d=e.O,c=e.f,u=e.N,p=e.ea,A=e.W,h=t.cc,f=t.dc,m=t.Mc,v=t.Nc,g=e.ka,y=e.ka+e.T,x=e.U,b=x+1>>1;for(0==g?l(o,d,null,null,c,u,p,A,c,u,p,A,r,s,null,null,x):(l(t.ec,t.fc,o,d,h,f,m,v,c,u,p,A,r,s-a.A,r,s,x),++n);g+2<y;g+=2)h=c,f=u,m=p,v=A,u+=e.Rc,A+=e.Rc,s+=2*a.A,l(o,(d+=2*e.fa)-e.fa,o,d,h,f,m,v,c,u,p,A,r,s-a.A,r,s,x);return d+=e.fa,e.j+y<e.o?(i(t.ec,t.fc,o,d,x),i(t.cc,t.dc,c,u,b),i(t.Mc,t.Nc,p,A,b),n--):1&y||l(o,d,null,null,c,u,p,A,c,u,p,A,r,s+a.A,null,null,x),n}function ue(e,n,i){var a=e.F,r=[e.J];if(null!=a){var s=e.U,l=n.ba.S,o=l==Mi||l==zi;n=n.ba.f.RGBA;var d=[0],c=e.ka;d[0]=e.T,e.Kb&&(0==c?--d[0]:(--c,r[0]-=e.width),e.j+e.ka+e.T==e.o&&(d[0]=e.o-e.j-c));var u=n.eb;c=n.fb+c*n.A,e=Ci(a,r[0],e.width,s,d,u,c+(o?0:3),n.A),t(i==d),e&&ie(l)&&wi(u,c,o,s,d,n.A)}return 0}function pe(e){var t=e.ma,n=t.ba.S,i=11>n,a=n==Ui||n==Oi||n==Mi||n==Ri||12==n||ie(n);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Ln(t.Oa,e,a?11:12))return 0;if(a&&ie(n)&&gn(),e.da)alert("todo:use_scaling");else{if(i){if(t.Ib=de,e.Kb){if(n=e.U+1>>1,t.memory=r(e.U+2*n),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+n,t.Ib=ce,gn()}}else alert("todo:EmitYUV");a&&(t.Jb=ue,i&&mn())}if(i&&!Pa){for(e=0;256>e;++e)ka[e]=89858*(e-128)+Sa>>Ca,Da[e]=-22014*(e-128)+Sa,Ea[e]=-45773*(e-128),Ta[e]=113618*(e-128)+Sa>>Ca;for(e=Na;e<Ia;++e)t=76283*(e-16)+Sa>>Ca,La[e-Na]=qe(t,255),Ua[e-Na]=qe(t+8>>4,15);Pa=1}return 1}function Ae(e){var n=e.ma,i=e.U,a=e.T;return t(!(1&e.ka)),0>=i||0>=a?0:(i=n.Ib(e,n),null!=n.Jb&&n.Jb(e,n,i),n.Dc+=i,1)}function he(e){e.ma.memory=null}function fe(e,t,n,i){return 47!=y(e,8)?0:(t[0]=y(e,14)+1,n[0]=y(e,14)+1,i[0]=y(e,1),0!=y(e,3)?0:!e.h)}function me(e,t){if(4>e)return e+1;var n=e-2>>1;return(2+(1&e)<<n)+y(t,n)+1}function ve(e,t){return 120<t?t-120:1<=(n=((n=Xi[t-1])>>4)*e+(8-(15&n)))?n:1;var n}function ge(e,t,n){var i=w(n),a=e[t+=255&i].g-8;return 0<a&&(C(n,n.u+8),i=w(n),t+=e[t].value,t+=i&(1<<a)-1),C(n,n.u+e[t].g),e[t].value}function ye(e,n,i){return i.g+=e.g,i.value+=e.value<<n>>>0,t(8>=i.g),e.g}function xe(e,n,i){var a=e.xc;return t((n=0==a?0:e.vc[e.md*(i>>a)+(n>>a)])<e.Wb),e.Ya[n]}function be(e,n,a,r){var s=e.ab,l=e.c*n,o=e.C;n=o+n;var d=a,c=r;for(r=e.Ta,a=e.Ua;0<s--;){var u=e.gc[s],p=o,A=n,h=d,f=c,m=(c=r,d=a,u.Ea);switch(t(p<A),t(A<=u.nc),u.hc){case 2:Wn(h,f,(A-p)*m,c,d);break;case 0:var v=p,g=A,y=c,x=d,b=(N=u).Ea;0==v&&(zn(h,f,null,null,1,y,x),q(h,f+1,0,0,b-1,y,x+1),f+=b,x+=b,++v);for(var w=1<<N.b,j=w-1,C=_(b,N.b),S=N.K,N=N.w+(v>>N.b)*C;v<g;){var I=S,F=N,B=1;for(qn(h,f,y,x-b,1,y,x);B<b;){var P=(B&~j)+w;P>b&&(P=b),(0,Xn[I[F++]>>8&15])(h,f+ +B,y,x+B-b,P-B,y,x+B),B=P}f+=b,x+=b,++v&j||(N+=C)}A!=u.nc&&i(c,d-m,c,d+(A-p-1)*m,m);break;case 1:for(m=h,g=f,b=(h=u.Ea)-(x=h&~(y=(f=1<<u.b)-1)),v=_(h,u.b),w=u.K,u=u.w+(p>>u.b)*v;p<A;){for(j=w,C=u,S=new R,N=g+x,I=g+h;g<N;)Y(j[C++],S),Jn(S,m,g,f,c,d),g+=f,d+=f;g<I&&(Y(j[C++],S),Jn(S,m,g,b,c,d),g+=b,d+=b),++p&y||(u+=v)}break;case 3:if(h==c&&f==d&&0<u.b){for(g=c,h=m=d+(A-p)*m-(x=(A-p)*_(u.Ea,u.b)),f=c,y=d,v=[],x=(b=x)-1;0<=x;--x)v[x]=f[y+x];for(x=b-1;0<=x;--x)g[h+x]=v[x];Yn(u,p,A,c,m,c,d)}else Yn(u,p,A,h,f,c,d)}d=r,c=a}c!=a&&i(r,a,d,c,l)}function we(e,n){var i=e.V,a=e.Ba+e.c*e.C,r=n-e.C;if(t(n<=e.l.o),t(16>=r),0<r){var s=e.l,l=e.Ta,o=e.Ua,d=s.width;if(be(e,r,i,a),r=o=[o],t((i=e.C)<(a=n)),t(s.v<s.va),a>s.o&&(a=s.o),i<s.j){var c=s.j-i;i=s.j,r[0]+=c*d}if(i>=a?i=0:(r[0]+=4*s.v,s.ka=i-s.j,s.U=s.va-s.v,s.T=a-i,i=1),i){if(o=o[0],11>(i=e.ca).S){var u=i.f.RGBA,p=(a=i.S,r=s.U,s=s.T,c=u.eb,u.A),A=s;for(u=u.fb+e.Ma*u.A;0<A--;){var h=l,f=o,m=r,v=c,g=u;switch(a){case Li:Zn(h,f,m,v,g);break;case Ui:ei(h,f,m,v,g);break;case Hi:ei(h,f,m,v,g),wi(v,g,0,m,1,0);break;case _i:ii(h,f,m,v,g);break;case Oi:te(h,f,m,v,g,1);break;case Vi:te(h,f,m,v,g,1),wi(v,g,0,m,1,0);break;case Mi:te(h,f,m,v,g,0);break;case zi:te(h,f,m,v,g,0),wi(v,g,1,m,1,0);break;case Ri:ti(h,f,m,v,g);break;case qi:ti(h,f,m,v,g),ji(v,g,m,1,0);break;case Qi:ni(h,f,m,v,g);break;default:t(0)}o+=d,u+=p}e.Ma+=s}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=i.height)}}e.C=n,t(e.C<=e.i)}function je(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var n=e.Ya[t].G,i=e.Ya[t].H;if(0<n[1][i[1]+0].g||0<n[2][i[2]+0].g||0<n[3][i[3]+0].g)return 0}return 1}function Ce(e,n,i,a,r,s){if(0!=e.Z){var l=e.qd,o=e.rd;for(t(null!=fa[e.Z]);n<i;++n)fa[e.Z](l,o,a,r,a,r,s),l=a,o=r,r+=s;e.qd=l,e.rd=o}}function Se(e,n){var i=e.l.ma,a=0==i.Z||1==i.Z?e.l.j:e.C;if(a=e.C<a?a:e.C,t(n<=e.l.o),n>a){var r=e.l.width,s=i.ca,l=i.tb+r*a,o=e.V,d=e.Ba+e.c*a,c=e.gc;t(1==e.ab),t(3==c[0].hc),Gn(c[0],a,n,o,d,s,l),Ce(i,a,n,s,l,r)}e.C=e.Ma=n}function Ne(e,n,i,a,r,s,l){var o=e.$/a,d=e.$%a,c=e.m,u=e.s,p=i+e.$,A=p;r=i+a*r;var h=i+a*s,f=280+u.ua,m=e.Pb?o:16777216,v=0<u.ua?u.Wa:null,g=u.wc,y=p<h?xe(u,d,o):null;t(e.C<s),t(h<=r);var x=!1;e:for(;;){for(;x||p<h;){var b=0;if(o>=m){var N=p-i;t((m=e).Pb),m.wd=m.m,m.xd=N,0<m.s.ua&&D(m.s.Wa,m.s.vb),m=o+Zi}if(d&g||(y=xe(u,d,o)),t(null!=y),y.Qb&&(n[p]=y.qb,x=!0),!x)if(S(c),y.jc){b=c,N=n;var I=p,F=y.pd[w(b)&On-1];t(y.jc),256>F.g?(C(b,b.u+F.g),N[I]=F.value,b=0):(C(b,b.u+F.g-256),t(256<=F.value),b=F.value),0==b&&(x=!0)}else b=ge(y.G[0],y.H[0],c);if(c.h)break;if(x||256>b){if(!x)if(y.nd)n[p]=(y.qb|b<<8)>>>0;else{if(S(c),x=ge(y.G[1],y.H[1],c),S(c),N=ge(y.G[2],y.H[2],c),I=ge(y.G[3],y.H[3],c),c.h)break;n[p]=(I<<24|x<<16|b<<8|N)>>>0}if(x=!1,++p,++d>=a&&(d=0,++o,null!=l&&o<=s&&!(o%16)&&l(e,o),null!=v))for(;A<p;)b=n[A++],v.X[(506832829*b&4294967295)>>>v.Mb]=b}else if(280>b){if(b=me(b-256,c),N=ge(y.G[4],y.H[4],c),S(c),N=ve(a,N=me(N,c)),c.h)break;if(p-i<N||r-p<b)break e;for(I=0;I<b;++I)n[p+I]=n[p+I-N];for(p+=b,d+=b;d>=a;)d-=a,++o,null!=l&&o<=s&&!(o%16)&&l(e,o);if(t(p<=r),d&g&&(y=xe(u,d,o)),null!=v)for(;A<p;)b=n[A++],v.X[(506832829*b&4294967295)>>>v.Mb]=b}else{if(!(b<f))break e;for(x=b-280,t(null!=v);A<p;)b=n[A++],v.X[(506832829*b&4294967295)>>>v.Mb]=b;b=p,t(!(x>>>(N=v).Xa)),n[b]=N.X[x],x=!0}x||t(c.h==j(c))}if(e.Pb&&c.h&&p<r)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&D(e.s.vb,e.s.Wa);else{if(c.h)break e;null!=l&&l(e,o>s?s:o),e.a=0,e.$=p-i}return 1}return e.a=3,0}function Ie(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var n=e.Wa;null!=n&&(n.X=null),e.vb=null,t(null!=e)}function Fe(){var t=new sn;return null==t?null:(t.a=0,t.xb=ha,ne("Predictor","VP8LPredictors"),ne("Predictor","VP8LPredictors_C"),ne("PredictorAdd","VP8LPredictorsAdd"),ne("PredictorAdd","VP8LPredictorsAdd_C"),Wn=W,Jn=K,Zn=$,ei=X,ti=J,ni=Z,ii=ee,e.VP8LMapColor32b=Kn,e.VP8LMapColor8b=$n,t)}function Be(e,n,i,l,o){var d=1,p=[e],h=[n],f=l.m,m=l.s,v=null,g=0;e:for(;;){if(i)for(;d&&y(f,1);){var x=p,b=h,j=l,N=1,I=j.m,F=j.gc[j.ab],B=y(I,2);if(j.Oc&1<<B)d=0;else{switch(j.Oc|=1<<B,F.hc=B,F.Ea=x[0],F.nc=b[0],F.K=[null],++j.ab,t(4>=j.ab),B){case 0:case 1:F.b=y(I,3)+2,N=Be(_(F.Ea,F.b),_(F.nc,F.b),0,j,F.K),F.K=F.K[0];break;case 3:var P,k=y(I,8)+1,T=16<k?0:4<k?1:2<k?2:3;if(x[0]=_(F.Ea,T),F.b=T,P=N=Be(k,1,0,j,F.K)){var D,L=k,U=F,M=1<<(8>>U.b),R=r(M);if(null==R)P=0;else{var Q=U.K[0],H=U.w;for(R[0]=U.K[0][0],D=1;D<1*L;++D)R[D]=O(Q[H+D],R[D-1]);for(;D<4*M;++D)R[D]=0;U.K[0]=null,U.K[0]=R,P=1}}N=P;break;case 2:break;default:t(0)}d=N}}if(p=p[0],h=h[0],d&&y(f,1)&&!(d=1<=(g=y(f,4))&&11>=g)){l.a=3;break e}var V;if(V=d)t:{var z,q,W,Y=l,K=p,G=h,$=g,X=i,J=Y.m,Z=Y.s,ee=[null],te=1,ne=0,ie=Ji[$];n:for(;;){if(X&&y(J,1)){var ae=y(J,3)+2,re=_(K,ae),se=_(G,ae),le=re*se;if(!Be(re,se,0,Y,ee))break n;for(ee=ee[0],Z.xc=ae,z=0;z<le;++z){var oe=ee[z]>>8&65535;ee[z]=oe,oe>=te&&(te=oe+1)}}if(J.h)break n;for(q=0;5>q;++q){var de=Ki[q];!q&&0<$&&(de+=1<<$),ne<de&&(ne=de)}var ce=s(te*ie,u),ue=te,pe=s(ue,A);if(null==pe)var Ae=null;else t(65536>=ue),Ae=pe;var he=r(ne);if(null==Ae||null==he||null==ce){Y.a=1;break n}var fe=ce;for(z=W=0;z<te;++z){var me=Ae[z],ve=me.G,ge=me.H,xe=0,be=1,we=0;for(q=0;5>q;++q){de=Ki[q],ve[q]=fe,ge[q]=W,!q&&0<$&&(de+=1<<$);i:{var je,Ce=de,Se=Y,Fe=he,Pe=fe,ke=W,Te=0,Ee=Se.m,De=y(Ee,1);if(a(Fe,0,0,Ce),De){var Le=y(Ee,1)+1,Ue=y(Ee,1),_e=y(Ee,0==Ue?1:8);Fe[_e]=1,2==Le&&(Fe[_e=y(Ee,8)]=1);var Oe=1}else{var Me=r(19),Re=y(Ee,4)+4;if(19<Re){Se.a=3;var Qe=0;break i}for(je=0;je<Re;++je)Me[$i[je]]=y(Ee,3);var He=void 0,Ve=void 0,ze=Se,qe=Me,We=Ce,Ye=Fe,Ke=0,Ge=ze.m,$e=8,Xe=s(128,u);a:for(;c(Xe,0,7,qe,19);){if(y(Ge,1)){var Je=2+2*y(Ge,3);if((He=2+y(Ge,Je))>We)break a}else He=We;for(Ve=0;Ve<We&&He--;){S(Ge);var Ze=Xe[0+(127&w(Ge))];C(Ge,Ge.u+Ze.g);var et=Ze.value;if(16>et)Ye[Ve++]=et,0!=et&&($e=et);else{var tt=16==et,nt=et-16,it=Yi[nt],at=y(Ge,Wi[nt])+it;if(Ve+at>We)break a;for(var rt=tt?$e:0;0<at--;)Ye[Ve++]=rt}}Ke=1;break a}Ke||(ze.a=3),Oe=Ke}(Oe=Oe&&!Ee.h)&&(Te=c(Pe,ke,8,Fe,Ce)),Oe&&0!=Te?Qe=Te:(Se.a=3,Qe=0)}if(0==Qe)break n;if(be&&1==Gi[q]&&(be=0==fe[W].g),xe+=fe[W].g,W+=Qe,3>=q){var st,lt=he[0];for(st=1;st<de;++st)he[st]>lt&&(lt=he[st]);we+=lt}}if(me.nd=be,me.Qb=0,be&&(me.qb=(ve[3][ge[3]+0].value<<24|ve[1][ge[1]+0].value<<16|ve[2][ge[2]+0].value)>>>0,0==xe&&256>ve[0][ge[0]+0].value&&(me.Qb=1,me.qb+=ve[0][ge[0]+0].value<<8)),me.jc=!me.Qb&&6>we,me.jc){var ot,dt=me;for(ot=0;ot<On;++ot){var ct=ot,ut=dt.pd[ct],pt=dt.G[0][dt.H[0]+ct];256<=pt.value?(ut.g=pt.g+256,ut.value=pt.value):(ut.g=0,ut.value=0,ct>>=ye(pt,8,ut),ct>>=ye(dt.G[1][dt.H[1]+ct],16,ut),ct>>=ye(dt.G[2][dt.H[2]+ct],0,ut),ye(dt.G[3][dt.H[3]+ct],24,ut))}}}Z.vc=ee,Z.Wb=te,Z.Ya=Ae,Z.yc=ce,V=1;break t}V=0}if(!(d=V)){l.a=3;break e}if(0<g){if(m.ua=1<<g,!E(m.Wa,g)){l.a=1,d=0;break e}}else m.ua=0;var At=l,ht=p,ft=h,mt=At.s,vt=mt.xc;if(At.c=ht,At.i=ft,mt.md=_(ht,vt),mt.wc=0==vt?-1:(1<<vt)-1,i){l.xb=Aa;break e}if(null==(v=r(p*h))){l.a=1,d=0;break e}d=(d=Ne(l,v,0,p,h,h,null))&&!f.h;break e}return d?(null!=o?o[0]=v:(t(null==v),t(i)),l.$=0,i||Ie(m)):Ie(m),d}function Pe(e,n){var i=e.c*e.i,a=i+n+16*n;return t(e.c<=n),e.V=r(a),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+i+n,1)}function ke(e,n){var i=e.C,a=n-i,r=e.V,s=e.Ba+e.c*i;for(t(n<=e.l.o);0<a;){var l=16<a?16:a,o=e.l.ma,d=e.l.width,c=d*l,u=o.ca,p=o.tb+d*i,A=e.Ta,h=e.Ua;be(e,l,r,s),Si(A,h,u,p,c),Ce(o,i,i+l,u,p,d),a-=l,r+=l*e.c,i+=l}t(i==n),e.C=e.Ma=n}function Te(){this.ub=this.yd=this.td=this.Rb=0}function Ee(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function De(){this.Fb=this.Bb=this.Cb=0,this.Zb=r(4),this.Lb=r(4)}function Le(){var e;this.Yb=(function e(t,n,i){for(var a=i[n],r=0;r<a&&(t.push(i.length>n+1?[]:0),!(i.length<n+1));r++)e(t[r],n+1,i)}(e=[],0,[3,11]),e)}function Ue(){this.jb=r(3),this.Wc=l([4,8],Le),this.Xc=l([4,17],Le)}function _e(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new r(4),this.od=new r(4)}function Oe(){this.ld=this.La=this.dd=this.tc=0}function Me(){this.Na=this.la=0}function Re(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Qe(){this.ad=r(384),this.Za=0,this.Ob=r(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function He(){this.uc=this.M=this.Nb=0,this.wa=Array(new Oe),this.Y=0,this.ya=Array(new Qe),this.aa=0,this.l=new We}function Ve(){this.y=r(16),this.f=r(8),this.ea=r(8)}function ze(){this.cb=this.a=0,this.sc="",this.m=new x,this.Od=new Te,this.Kc=new Ee,this.ed=new _e,this.Qa=new De,this.Ic=this.$c=this.Aa=0,this.D=new He,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,x),this.ia=0,this.pb=s(4,Re),this.Pa=new Ue,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ve),this.Hd=0,this.rb=Array(new Me),this.sb=0,this.wa=Array(new Oe),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Qe),this.L=this.aa=0,this.gd=l([4,2],Oe),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function qe(e,t){return 0>e?0:e>t?t:e}function We(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ye(){var e=new ze;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,na||(na=Xe)),e}function Ke(e,t,n){return 0==e.a&&(e.a=t,e.sc=n,e.cb=0),0}function Ge(e,t,n){return 3<=n&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function $e(e,n){if(null==e)return 0;if(e.a=0,e.sc="OK",null==n)return Ke(e,2,"null VP8Io passed to VP8GetHeaders()");var i=n.data,r=n.w,s=n.ha;if(4>s)return Ke(e,7,"Truncated header.");var l=i[r+0]|i[r+1]<<8|i[r+2]<<16,o=e.Od;if(o.Rb=!(1&l),o.td=l>>1&7,o.yd=l>>4&1,o.ub=l>>5,3<o.td)return Ke(e,3,"Incorrect keyframe parameters.");if(!o.yd)return Ke(e,4,"Frame not displayable.");r+=3,s-=3;var d=e.Kc;if(o.Rb){if(7>s)return Ke(e,7,"cannot parse picture header");if(!Ge(i,r,s))return Ke(e,3,"Bad code word");d.c=16383&(i[r+4]<<8|i[r+3]),d.Td=i[r+4]>>6,d.i=16383&(i[r+6]<<8|i[r+5]),d.Ud=i[r+6]>>6,r+=7,s-=7,e.za=d.c+15>>4,e.Ub=d.i+15>>4,n.width=d.c,n.height=d.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,a((l=e.Pa).jb,0,255,l.jb.length),t(null!=(l=e.Qa)),l.Cb=0,l.Bb=0,l.Fb=1,a(l.Zb,0,0,l.Zb.length),a(l.Lb,0,0,l.Lb)}if(o.ub>s)return Ke(e,7,"bad partition length");h(l=e.m,i,r,o.ub),r+=o.ub,s-=o.ub,o.Rb&&(d.Ld=I(l),d.Kd=I(l)),d=e.Qa;var c,u=e.Pa;if(t(null!=l),t(null!=d),d.Cb=I(l),d.Cb){if(d.Bb=I(l),I(l)){for(d.Fb=I(l),c=0;4>c;++c)d.Zb[c]=I(l)?m(l,7):0;for(c=0;4>c;++c)d.Lb[c]=I(l)?m(l,6):0}if(d.Bb)for(c=0;3>c;++c)u.jb[c]=I(l)?f(l,8):255}else d.Bb=0;if(l.Ka)return Ke(e,3,"cannot parse segment header");if((d=e.ed).zd=I(l),d.Tb=f(l,6),d.wb=f(l,3),d.Pc=I(l),d.Pc&&I(l)){for(u=0;4>u;++u)I(l)&&(d.vd[u]=m(l,6));for(u=0;4>u;++u)I(l)&&(d.od[u]=m(l,6))}if(e.L=0==d.Tb?0:d.zd?1:2,l.Ka)return Ke(e,3,"cannot parse filter header");var p=s;if(s=c=r,r=c+p,d=p,e.Xb=(1<<f(e.m,2))-1,p<3*(u=e.Xb))i=7;else{for(c+=3*u,d-=3*u,p=0;p<u;++p){var A=i[s+0]|i[s+1]<<8|i[s+2]<<16;A>d&&(A=d),h(e.Jc[+p],i,c,A),c+=A,d-=A,s+=3}h(e.Jc[+u],i,c,d),i=c<r?0:5}if(0!=i)return Ke(e,i,"cannot parse partitions");for(i=f(c=e.m,7),s=I(c)?m(c,4):0,r=I(c)?m(c,4):0,d=I(c)?m(c,4):0,u=I(c)?m(c,4):0,c=I(c)?m(c,4):0,p=e.Qa,A=0;4>A;++A){if(p.Cb){var v=p.Zb[A];p.Fb||(v+=i)}else{if(0<A){e.pb[A]=e.pb[0];continue}v=i}var g=e.pb[A];g.Sc[0]=ea[qe(v+s,127)],g.Sc[1]=ta[qe(v+0,127)],g.Eb[0]=2*ea[qe(v+r,127)],g.Eb[1]=101581*ta[qe(v+d,127)]>>16,8>g.Eb[1]&&(g.Eb[1]=8),g.Qc[0]=ea[qe(v+u,117)],g.Qc[1]=ta[qe(v+c,127)],g.lc=v+c}if(!o.Rb)return Ke(e,4,"Not a key frame.");for(I(l),o=e.Pa,i=0;4>i;++i){for(s=0;8>s;++s)for(r=0;3>r;++r)for(d=0;11>d;++d)u=F(l,oa[i][s][r][d])?f(l,8):sa[i][s][r][d],o.Wc[i][s].Yb[r][d]=u;for(s=0;17>s;++s)o.Xc[i][s]=o.Wc[i][da[s]]}return e.kc=I(l),e.kc&&(e.Bd=f(l,8)),e.cb=1}function Xe(e,t,n,i,a,r,s){var l=t[a].Yb[n];for(n=0;16>a;++a){if(!F(e,l[n+0]))return a;for(;!F(e,l[n+1]);)if(l=t[++a].Yb[0],n=0,16==a)return 16;var o=t[a+1].Yb;if(F(e,l[n+2])){var d=e,c=0;if(F(d,(p=l)[(u=n)+3]))if(F(d,p[u+6])){for(l=0,u=2*(c=F(d,p[u+8]))+(p=F(d,p[u+9+c])),c=0,p=ia[u];p[l];++l)c+=c+F(d,p[l]);c+=3+(8<<u)}else F(d,p[u+7])?(c=7+2*F(d,165),c+=F(d,145)):c=5+F(d,159);else c=F(d,p[u+4])?3+F(d,p[u+5]):2;l=o[2]}else c=1,l=o[1];o=s+aa[a],0>(d=e).b&&N(d);var u,p=d.b,A=(u=d.Ca>>1)-(d.I>>p)>>31;--d.b,d.Ca+=A,d.Ca|=1,d.I-=(u+1&A)<<p,r[o]=((c^A)-A)*i[(0<a)+0]}return 16}function Je(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,a(e.zc,0,0,e.zc.length),e.ja=0}function Ze(e,t,n,i,a){a=e[t+n+32*i]+(a>>3),e[t+n+32*i]=-256&a?0>a?0:255:a}function et(e,t,n,i,a,r){Ze(e,t,0,n,i+a),Ze(e,t,1,n,i+r),Ze(e,t,2,n,i-r),Ze(e,t,3,n,i-a)}function tt(e){return(20091*e>>16)+e}function nt(e,t,n,i){var a,s=0,l=r(16);for(a=0;4>a;++a){var o=e[t+0]+e[t+8],d=e[t+0]-e[t+8],c=(35468*e[t+4]>>16)-tt(e[t+12]),u=tt(e[t+4])+(35468*e[t+12]>>16);l[s+0]=o+u,l[s+1]=d+c,l[s+2]=d-c,l[s+3]=o-u,s+=4,t++}for(a=s=0;4>a;++a)o=(e=l[s+0]+4)+l[s+8],d=e-l[s+8],c=(35468*l[s+4]>>16)-tt(l[s+12]),Ze(n,i,0,0,o+(u=tt(l[s+4])+(35468*l[s+12]>>16))),Ze(n,i,1,0,d+c),Ze(n,i,2,0,d-c),Ze(n,i,3,0,o-u),s++,i+=32}function it(e,t,n,i){var a=e[t+0]+4,r=35468*e[t+4]>>16,s=tt(e[t+4]),l=35468*e[t+1]>>16;et(n,i,0,a+s,e=tt(e[t+1]),l),et(n,i,1,a+r,e,l),et(n,i,2,a-r,e,l),et(n,i,3,a-s,e,l)}function at(e,t,n,i,a){nt(e,t,n,i),a&&nt(e,t+16,n,i+4)}function rt(e,t,n,i){ri(e,t+0,n,i,1),ri(e,t+32,n,i+128,1)}function st(e,t,n,i){var a;for(e=e[t+0]+4,a=0;4>a;++a)for(t=0;4>t;++t)Ze(n,i,t,a,e)}function lt(e,t,n,i){e[t+0]&&oi(e,t+0,n,i),e[t+16]&&oi(e,t+16,n,i+4),e[t+32]&&oi(e,t+32,n,i+128),e[t+48]&&oi(e,t+48,n,i+128+4)}function ot(e,t,n,i){var a,s=r(16);for(a=0;4>a;++a){var l=e[t+0+a]+e[t+12+a],o=e[t+4+a]+e[t+8+a],d=e[t+4+a]-e[t+8+a],c=e[t+0+a]-e[t+12+a];s[0+a]=l+o,s[8+a]=l-o,s[4+a]=c+d,s[12+a]=c-d}for(a=0;4>a;++a)l=(e=s[0+4*a]+3)+s[3+4*a],o=s[1+4*a]+s[2+4*a],d=s[1+4*a]-s[2+4*a],c=e-s[3+4*a],n[i+0]=l+o>>3,n[i+16]=c+d>>3,n[i+32]=l-o>>3,n[i+48]=c-d>>3,i+=64}function dt(e,t,n){var i,a=t-32,r=Ei,s=255-e[a-1];for(i=0;i<n;++i){var l,o=r,d=s+e[t-1];for(l=0;l<n;++l)e[t+l]=o[d+e[a+l]];t+=32}}function ct(e,t){dt(e,t,4)}function ut(e,t){dt(e,t,8)}function pt(e,t){dt(e,t,16)}function At(e,t){var n;for(n=0;16>n;++n)i(e,t+32*n,e,t-32,16)}function ht(e,t){var n;for(n=16;0<n;--n)a(e,t,e[t-1],16),t+=32}function ft(e,t,n){var i;for(i=0;16>i;++i)a(t,n+32*i,e,16)}function mt(e,t){var n,i=16;for(n=0;16>n;++n)i+=e[t-1+32*n]+e[t+n-32];ft(i>>5,e,t)}function vt(e,t){var n,i=8;for(n=0;16>n;++n)i+=e[t-1+32*n];ft(i>>4,e,t)}function gt(e,t){var n,i=8;for(n=0;16>n;++n)i+=e[t+n-32];ft(i>>4,e,t)}function yt(e,t){ft(128,e,t)}function xt(e,t,n){return e+2*t+n+2>>2}function bt(e,t){var n,a=t-32;for(a=new Uint8Array([xt(e[a-1],e[a+0],e[a+1]),xt(e[a+0],e[a+1],e[a+2]),xt(e[a+1],e[a+2],e[a+3]),xt(e[a+2],e[a+3],e[a+4])]),n=0;4>n;++n)i(e,t+32*n,a,0,a.length)}function wt(e,t){var n=e[t-1],i=e[t-1+32],a=e[t-1+64],r=e[t-1+96];B(e,t+0,16843009*xt(e[t-1-32],n,i)),B(e,t+32,16843009*xt(n,i,a)),B(e,t+64,16843009*xt(i,a,r)),B(e,t+96,16843009*xt(a,r,r))}function jt(e,t){var n,i=4;for(n=0;4>n;++n)i+=e[t+n-32]+e[t-1+32*n];for(i>>=3,n=0;4>n;++n)a(e,t+32*n,i,4)}function Ct(e,t){var n=e[t-1+0],i=e[t-1+32],a=e[t-1+64],r=e[t-1-32],s=e[t+0-32],l=e[t+1-32],o=e[t+2-32],d=e[t+3-32];e[t+0+96]=xt(i,a,e[t-1+96]),e[t+1+96]=e[t+0+64]=xt(n,i,a),e[t+2+96]=e[t+1+64]=e[t+0+32]=xt(r,n,i),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=xt(s,r,n),e[t+3+64]=e[t+2+32]=e[t+1+0]=xt(l,s,r),e[t+3+32]=e[t+2+0]=xt(o,l,s),e[t+3+0]=xt(d,o,l)}function St(e,t){var n=e[t+1-32],i=e[t+2-32],a=e[t+3-32],r=e[t+4-32],s=e[t+5-32],l=e[t+6-32],o=e[t+7-32];e[t+0+0]=xt(e[t+0-32],n,i),e[t+1+0]=e[t+0+32]=xt(n,i,a),e[t+2+0]=e[t+1+32]=e[t+0+64]=xt(i,a,r),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=xt(a,r,s),e[t+3+32]=e[t+2+64]=e[t+1+96]=xt(r,s,l),e[t+3+64]=e[t+2+96]=xt(s,l,o),e[t+3+96]=xt(l,o,o)}function Nt(e,t){var n=e[t-1+0],i=e[t-1+32],a=e[t-1+64],r=e[t-1-32],s=e[t+0-32],l=e[t+1-32],o=e[t+2-32],d=e[t+3-32];e[t+0+0]=e[t+1+64]=r+s+1>>1,e[t+1+0]=e[t+2+64]=s+l+1>>1,e[t+2+0]=e[t+3+64]=l+o+1>>1,e[t+3+0]=o+d+1>>1,e[t+0+96]=xt(a,i,n),e[t+0+64]=xt(i,n,r),e[t+0+32]=e[t+1+96]=xt(n,r,s),e[t+1+32]=e[t+2+96]=xt(r,s,l),e[t+2+32]=e[t+3+96]=xt(s,l,o),e[t+3+32]=xt(l,o,d)}function It(e,t){var n=e[t+0-32],i=e[t+1-32],a=e[t+2-32],r=e[t+3-32],s=e[t+4-32],l=e[t+5-32],o=e[t+6-32],d=e[t+7-32];e[t+0+0]=n+i+1>>1,e[t+1+0]=e[t+0+64]=i+a+1>>1,e[t+2+0]=e[t+1+64]=a+r+1>>1,e[t+3+0]=e[t+2+64]=r+s+1>>1,e[t+0+32]=xt(n,i,a),e[t+1+32]=e[t+0+96]=xt(i,a,r),e[t+2+32]=e[t+1+96]=xt(a,r,s),e[t+3+32]=e[t+2+96]=xt(r,s,l),e[t+3+64]=xt(s,l,o),e[t+3+96]=xt(l,o,d)}function Ft(e,t){var n=e[t-1+0],i=e[t-1+32],a=e[t-1+64],r=e[t-1+96];e[t+0+0]=n+i+1>>1,e[t+2+0]=e[t+0+32]=i+a+1>>1,e[t+2+32]=e[t+0+64]=a+r+1>>1,e[t+1+0]=xt(n,i,a),e[t+3+0]=e[t+1+32]=xt(i,a,r),e[t+3+32]=e[t+1+64]=xt(a,r,r),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=r}function Bt(e,t){var n=e[t-1+0],i=e[t-1+32],a=e[t-1+64],r=e[t-1+96],s=e[t-1-32],l=e[t+0-32],o=e[t+1-32],d=e[t+2-32];e[t+0+0]=e[t+2+32]=n+s+1>>1,e[t+0+32]=e[t+2+64]=i+n+1>>1,e[t+0+64]=e[t+2+96]=a+i+1>>1,e[t+0+96]=r+a+1>>1,e[t+3+0]=xt(l,o,d),e[t+2+0]=xt(s,l,o),e[t+1+0]=e[t+3+32]=xt(n,s,l),e[t+1+32]=e[t+3+64]=xt(i,n,s),e[t+1+64]=e[t+3+96]=xt(a,i,n),e[t+1+96]=xt(r,a,i)}function Pt(e,t){var n;for(n=0;8>n;++n)i(e,t+32*n,e,t-32,8)}function kt(e,t){var n;for(n=0;8>n;++n)a(e,t,e[t-1],8),t+=32}function Tt(e,t,n){var i;for(i=0;8>i;++i)a(t,n+32*i,e,8)}function Et(e,t){var n,i=8;for(n=0;8>n;++n)i+=e[t+n-32]+e[t-1+32*n];Tt(i>>4,e,t)}function Dt(e,t){var n,i=4;for(n=0;8>n;++n)i+=e[t+n-32];Tt(i>>3,e,t)}function Lt(e,t){var n,i=4;for(n=0;8>n;++n)i+=e[t-1+32*n];Tt(i>>3,e,t)}function Ut(e,t){Tt(128,e,t)}function _t(e,t,n){var i=e[t-n],a=e[t+0],r=3*(a-i)+ki[1020+e[t-2*n]-e[t+n]],s=Ti[112+(r+4>>3)];e[t-n]=Ei[255+i+Ti[112+(r+3>>3)]],e[t+0]=Ei[255+a-s]}function Ot(e,t,n,i){var a=e[t+0],r=e[t+n];return Di[255+e[t-2*n]-e[t-n]]>i||Di[255+r-a]>i}function Mt(e,t,n,i){return 4*Di[255+e[t-n]-e[t+0]]+Di[255+e[t-2*n]-e[t+n]]<=i}function Rt(e,t,n,i,a){var r=e[t-3*n],s=e[t-2*n],l=e[t-n],o=e[t+0],d=e[t+n],c=e[t+2*n],u=e[t+3*n];return 4*Di[255+l-o]+Di[255+s-d]>i?0:Di[255+e[t-4*n]-r]<=a&&Di[255+r-s]<=a&&Di[255+s-l]<=a&&Di[255+u-c]<=a&&Di[255+c-d]<=a&&Di[255+d-o]<=a}function Qt(e,t,n,i){var a=2*i+1;for(i=0;16>i;++i)Mt(e,t+i,n,a)&&_t(e,t+i,n)}function Ht(e,t,n,i){var a=2*i+1;for(i=0;16>i;++i)Mt(e,t+i*n,1,a)&&_t(e,t+i*n,1)}function Vt(e,t,n,i){var a;for(a=3;0<a;--a)Qt(e,t+=4*n,n,i)}function zt(e,t,n,i){var a;for(a=3;0<a;--a)Ht(e,t+=4,n,i)}function qt(e,t,n,i,a,r,s,l){for(r=2*r+1;0<a--;){if(Rt(e,t,n,r,s))if(Ot(e,t,n,l))_t(e,t,n);else{var o=e,d=t,c=n,u=o[d-2*c],p=o[d-c],A=o[d+0],h=o[d+c],f=o[d+2*c],m=27*(g=ki[1020+3*(A-p)+ki[1020+u-h]])+63>>7,v=18*g+63>>7,g=9*g+63>>7;o[d-3*c]=Ei[255+o[d-3*c]+g],o[d-2*c]=Ei[255+u+v],o[d-c]=Ei[255+p+m],o[d+0]=Ei[255+A-m],o[d+c]=Ei[255+h-v],o[d+2*c]=Ei[255+f-g]}t+=i}}function Wt(e,t,n,i,a,r,s,l){for(r=2*r+1;0<a--;){if(Rt(e,t,n,r,s))if(Ot(e,t,n,l))_t(e,t,n);else{var o=e,d=t,c=n,u=o[d-c],p=o[d+0],A=o[d+c],h=Ti[112+(4+(f=3*(p-u))>>3)],f=Ti[112+(f+3>>3)],m=h+1>>1;o[d-2*c]=Ei[255+o[d-2*c]+m],o[d-c]=Ei[255+u+f],o[d+0]=Ei[255+p-h],o[d+c]=Ei[255+A-m]}t+=i}}function Yt(e,t,n,i,a,r){qt(e,t,n,1,16,i,a,r)}function Kt(e,t,n,i,a,r){qt(e,t,1,n,16,i,a,r)}function Gt(e,t,n,i,a,r){var s;for(s=3;0<s;--s)Wt(e,t+=4*n,n,1,16,i,a,r)}function $t(e,t,n,i,a,r){var s;for(s=3;0<s;--s)Wt(e,t+=4,1,n,16,i,a,r)}function Xt(e,t,n,i,a,r,s,l){qt(e,t,a,1,8,r,s,l),qt(n,i,a,1,8,r,s,l)}function Jt(e,t,n,i,a,r,s,l){qt(e,t,1,a,8,r,s,l),qt(n,i,1,a,8,r,s,l)}function Zt(e,t,n,i,a,r,s,l){Wt(e,t+4*a,a,1,8,r,s,l),Wt(n,i+4*a,a,1,8,r,s,l)}function en(e,t,n,i,a,r,s,l){Wt(e,t+4,1,a,8,r,s,l),Wt(n,i+4,1,a,8,r,s,l)}function tn(){this.ba=new se,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new oe,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function an(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function rn(){this.ua=0,this.Wa=new L,this.vb=new L,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new A,this.yc=new u}function sn(){this.xb=this.a=0,this.l=new We,this.ca=new se,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new b,this.Pb=0,this.wd=new b,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new rn,this.ab=0,this.gc=s(4,an),this.Oc=0}function ln(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new We,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function on(e,t,n,i,a,r,s){for(e=null==e?0:e[t+0],t=0;t<s;++t)a[r+t]=e+n[i+t]&255,e=a[r+t]}function dn(e,t,n,i,a,r,s){var l;if(null==e)on(null,null,n,i,a,r,s);else for(l=0;l<s;++l)a[r+l]=e[t+l]+n[i+l]&255}function cn(e,t,n,i,a,r,s){if(null==e)on(null,null,n,i,a,r,s);else{var l,o=e[t+0],d=o,c=o;for(l=0;l<s;++l)d=c+(o=e[t+l])-d,c=n[i+l]+(-256&d?0>d?0:255:d)&255,d=o,a[r+l]=c}}function un(e,n,a,s){var l=n.width,o=n.o;if(t(null!=e&&null!=n),0>a||0>=s||a+s>o)return null;if(!e.Cc){if(null==e.ga){var d;if(e.ga=new ln,(d=null==e.ga)||(d=n.width*n.o,t(0==e.Gb.length),e.Gb=r(d),e.Uc=0,null==e.Gb?d=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,d=1),d=!d),!d){d=e.ga;var c=e.Fa,u=e.P,p=e.qc,A=e.mb,h=e.nb,f=u+1,m=p-1,g=d.l;if(t(null!=c&&null!=A&&null!=n),fa[0]=null,fa[1]=on,fa[2]=dn,fa[3]=cn,d.ca=A,d.tb=h,d.c=n.width,d.i=n.height,t(0<d.c&&0<d.i),1>=p)n=0;else if(d.$a=3&c[u+0],d.Z=c[u+0]>>2&3,d.Lc=c[u+0]>>4&3,u=c[u+0]>>6&3,0>d.$a||1<d.$a||4<=d.Z||1<d.Lc||u)n=0;else if(g.put=Ae,g.ac=pe,g.bc=he,g.ma=d,g.width=n.width,g.height=n.height,g.Da=n.Da,g.v=n.v,g.va=n.va,g.j=n.j,g.o=n.o,d.$a)e:{t(1==d.$a),n=Fe();t:for(;;){if(null==n){n=0;break e}if(t(null!=d),d.mc=n,n.c=d.c,n.i=d.i,n.l=d.l,n.l.ma=d,n.l.width=d.c,n.l.height=d.i,n.a=0,v(n.m,c,f,m),!Be(d.c,d.i,1,n,null))break t;if(1==n.ab&&3==n.gc[0].hc&&je(n.s)?(d.ic=1,c=n.c*n.i,n.Ta=null,n.Ua=0,n.V=r(c),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(d.ic=0,n=Pe(n,d.c)),!n)break t;n=1;break e}d.mc=null,n=0}else n=m>=d.c*d.i;d=!n}if(d)return null;1!=e.ga.Lc?e.Ga=0:s=o-a}t(null!=e.ga),t(a+s<=o);e:{if(n=(c=e.ga).c,o=c.l.o,0==c.$a){if(f=e.rc,m=e.Vc,g=e.Fa,u=e.P+1+a*n,p=e.mb,A=e.nb+a*n,t(u<=e.P+e.qc),0!=c.Z)for(t(null!=fa[c.Z]),d=0;d<s;++d)fa[c.Z](f,m,g,u,p,A,n),f=p,m=A,A+=n,u+=n;else for(d=0;d<s;++d)i(p,A,g,u,n),f=p,m=A,A+=n,u+=n;e.rc=f,e.Vc=m}else{if(t(null!=c.mc),n=a+s,t(null!=(d=c.mc)),t(n<=d.i),d.C>=n)n=1;else if(c.ic||mn(),c.ic){c=d.V,f=d.Ba,m=d.c;var y=d.i,x=(g=1,u=d.$/m,p=d.$%m,A=d.m,h=d.s,d.$),b=m*y,w=m*n,C=h.wc,N=x<w?xe(h,p,u):null;t(x<=b),t(n<=y),t(je(h));t:for(;;){for(;!A.h&&x<w;){if(p&C||(N=xe(h,p,u)),t(null!=N),S(A),256>(y=ge(N.G[0],N.H[0],A)))c[f+x]=y,++x,++p>=m&&(p=0,++u<=n&&!(u%16)&&Se(d,u));else{if(!(280>y)){g=0;break t}y=me(y-256,A);var I,F=ge(N.G[4],N.H[4],A);if(S(A),!(x>=(F=ve(m,F=me(F,A)))&&b-x>=y)){g=0;break t}for(I=0;I<y;++I)c[f+x+I]=c[f+x+I-F];for(x+=y,p+=y;p>=m;)p-=m,++u<=n&&!(u%16)&&Se(d,u);x<w&&p&C&&(N=xe(h,p,u))}t(A.h==j(A))}Se(d,u>n?n:u);break t}!g||A.h&&x<b?(g=0,d.a=A.h?5:3):d.$=x,n=g}else n=Ne(d,d.V,d.Ba,d.c,d.i,n,ke);if(!n){s=0;break e}}a+s>=o&&(e.Cc=1),s=1}if(!s)return null;if(e.Cc&&(null!=(s=e.ga)&&(s.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+a*l}function pn(e,t,n,i,a,r){for(;0<a--;){var s,l=e,o=t+(n?1:0),d=e,c=t+(n?0:3);for(s=0;s<i;++s){var u=d[c+4*s];255!=u&&(u*=32897,l[o+4*s+0]=l[o+4*s+0]*u>>23,l[o+4*s+1]=l[o+4*s+1]*u>>23,l[o+4*s+2]=l[o+4*s+2]*u>>23)}t+=r}}function An(e,t,n,i,a){for(;0<i--;){var r;for(r=0;r<n;++r){var s=e[t+2*r+0],l=15&(d=e[t+2*r+1]),o=4369*l,d=(240&d|d>>4)*o>>16;e[t+2*r+0]=(240&s|s>>4)*o>>16&240|(15&s|s<<4)*o>>16>>4&15,e[t+2*r+1]=240&d|l}t+=a}}function hn(e,t,n,i,a,r,s,l){var o,d,c=255;for(d=0;d<a;++d){for(o=0;o<i;++o){var u=e[t+o];r[s+4*o]=u,c&=u}t+=n,s+=l}return 255!=c}function fn(e,t,n,i,a){var r;for(r=0;r<a;++r)n[i+r]=e[t+r]>>8}function mn(){wi=pn,ji=An,Ci=hn,Si=fn}function vn(n,i,a){e[n]=function(e,n,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y){var x,b=y-1>>1,w=l[o+0]|d[c+0]<<16,j=u[p+0]|A[h+0]<<16;t(null!=e);var C=3*w+j+131074>>2;for(i(e[n+0],255&C,C>>16,f,m),null!=r&&(C=3*j+w+131074>>2,i(r[s+0],255&C,C>>16,v,g)),x=1;x<=b;++x){var S=l[o+x]|d[c+x]<<16,N=u[p+x]|A[h+x]<<16,I=w+S+j+N+524296,F=I+2*(S+j)>>3;C=F+w>>1,w=(I=I+2*(w+N)>>3)+S>>1,i(e[n+2*x-1],255&C,C>>16,f,m+(2*x-1)*a),i(e[n+2*x-0],255&w,w>>16,f,m+(2*x-0)*a),null!=r&&(C=I+j>>1,w=F+N>>1,i(r[s+2*x-1],255&C,C>>16,v,g+(2*x-1)*a),i(r[s+2*x+0],255&w,w>>16,v,g+(2*x+0)*a)),w=S,j=N}1&y||(C=3*w+j+131074>>2,i(e[n+y-1],255&C,C>>16,f,m+(y-1)*a),null!=r&&(C=3*j+w+131074>>2,i(r[s+y-1],255&C,C>>16,v,g+(y-1)*a)))}}function gn(){ma[Li]=va,ma[Ui]=ya,ma[_i]=ga,ma[Oi]=xa,ma[Mi]=ba,ma[Ri]=wa,ma[Qi]=ja,ma[Hi]=ya,ma[Vi]=xa,ma[zi]=ba,ma[qi]=wa}function yn(e){return e&~Ba?0>e?0:255:e>>Fa}function xn(e,t){return yn((19077*e>>8)+(26149*t>>8)-14234)}function bn(e,t,n){return yn((19077*e>>8)-(6419*t>>8)-(13320*n>>8)+8708)}function wn(e,t){return yn((19077*e>>8)+(33050*t>>8)-17685)}function jn(e,t,n,i,a){i[a+0]=xn(e,n),i[a+1]=bn(e,t,n),i[a+2]=wn(e,t)}function Cn(e,t,n,i,a){i[a+0]=wn(e,t),i[a+1]=bn(e,t,n),i[a+2]=xn(e,n)}function Sn(e,t,n,i,a){var r=bn(e,t,n);t=r<<3&224|wn(e,t)>>3,i[a+0]=248&xn(e,n)|r>>5,i[a+1]=t}function Nn(e,t,n,i,a){var r=240&wn(e,t)|15;i[a+0]=240&xn(e,n)|bn(e,t,n)>>4,i[a+1]=r}function In(e,t,n,i,a){i[a+0]=255,jn(e,t,n,i,a+1)}function Fn(e,t,n,i,a){Cn(e,t,n,i,a),i[a+3]=255}function Bn(e,t,n,i,a){jn(e,t,n,i,a),i[a+3]=255}function qe(e,t){return 0>e?0:e>t?t:e}function Pn(t,n,i){e[t]=function(e,t,a,r,s,l,o,d,c){for(var u=d+(-2&c)*i;d!=u;)n(e[t+0],a[r+0],s[l+0],o,d),n(e[t+1],a[r+0],s[l+0],o,d+i),t+=2,++r,++l,d+=2*i;1&c&&n(e[t+0],a[r+0],s[l+0],o,d)}}function kn(e,t,n){return 0==n?0==e?0==t?6:5:0==t?4:0:n}function Tn(e,t,n,i,a){switch(e>>>30){case 3:ri(t,n,i,a,0);break;case 2:si(t,n,i,a);break;case 1:oi(t,n,i,a)}}function En(e,t){var n,r,s=t.M,l=t.Nb,o=e.oc,d=e.pc+40,c=e.oc,u=e.pc+584,p=e.oc,A=e.pc+600;for(n=0;16>n;++n)o[d+32*n-1]=129;for(n=0;8>n;++n)c[u+32*n-1]=129,p[A+32*n-1]=129;for(0<s?o[d-1-32]=c[u-1-32]=p[A-1-32]=129:(a(o,d-32-1,127,21),a(c,u-32-1,127,9),a(p,A-32-1,127,9)),r=0;r<e.za;++r){var h=t.ya[t.aa+r];if(0<r){for(n=-1;16>n;++n)i(o,d+32*n-4,o,d+32*n+12,4);for(n=-1;8>n;++n)i(c,u+32*n-4,c,u+32*n+4,4),i(p,A+32*n-4,p,A+32*n+4,4)}var f=e.Gd,m=e.Hd+r,v=h.ad,g=h.Hc;if(0<s&&(i(o,d-32,f[m].y,0,16),i(c,u-32,f[m].f,0,8),i(p,A-32,f[m].ea,0,8)),h.Za){var y=o,x=d-32+16;for(0<s&&(r>=e.za-1?a(y,x,f[m].y[15],4):i(y,x,f[m+1].y,0,4)),n=0;4>n;n++)y[x+128+n]=y[x+256+n]=y[x+384+n]=y[x+0+n];for(n=0;16>n;++n,g<<=2)y=o,x=d+_a[n],ua[h.Ob[n]](y,x),Tn(g,v,16*+n,y,x)}else if(y=kn(r,s,h.Ob[0]),ca[y](o,d),0!=g)for(n=0;16>n;++n,g<<=2)Tn(g,v,16*+n,o,d+_a[n]);for(n=h.Gc,y=kn(r,s,h.Dd),pa[y](c,u),pa[y](p,A),g=v,y=c,x=u,255&(h=n|0)&&(170&h?li(g,256,y,x):di(g,256,y,x)),h=p,g=A,255&(n>>=8)&&(170&n?li(v,320,h,g):di(v,320,h,g)),s<e.Ub-1&&(i(f[m].y,0,o,d+480,16),i(f[m].f,0,c,u+224,8),i(f[m].ea,0,p,A+224,8)),n=8*l*e.B,f=e.sa,m=e.ta+16*r+16*l*e.R,v=e.qa,h=e.ra+8*r+n,g=e.Ha,y=e.Ia+8*r+n,n=0;16>n;++n)i(f,m+n*e.R,o,d+32*n,16);for(n=0;8>n;++n)i(v,h+n*e.B,c,u+32*n,8),i(g,y+n*e.B,p,A+32*n,8)}}function Dn(e,i,a,r,s,l,o,d,c){var u=[0],p=[0],A=0,h=null!=c?c.kd:0,f=null!=c?c:new nn;if(null==e||12>a)return 7;f.data=e,f.w=i,f.ha=a,i=[i],a=[a],f.gb=[f.gb];e:{var m=i,g=a,y=f.gb;if(t(null!=e),t(null!=g),t(null!=y),y[0]=0,12<=g[0]&&!n(e,m[0],"RIFF")){if(n(e,m[0]+8,"WEBP")){y=3;break e}var x=T(e,m[0]+4);if(12>x||4294967286<x){y=3;break e}if(h&&x>g[0]-8){y=7;break e}y[0]=x,m[0]+=12,g[0]-=12}y=0}if(0!=y)return y;for(x=0<f.gb[0],a=a[0];;){e:{var w=e;g=i,y=a;var j=u,C=p,S=m=[0];if((F=A=[A])[0]=0,8>y[0])y=7;else{if(!n(w,g[0],"VP8X")){if(10!=T(w,g[0]+4)){y=3;break e}if(18>y[0]){y=7;break e}var N=T(w,g[0]+8),I=1+k(w,g[0]+12);if(2147483648<=I*(w=1+k(w,g[0]+15))){y=3;break e}null!=S&&(S[0]=N),null!=j&&(j[0]=I),null!=C&&(C[0]=w),g[0]+=18,y[0]-=18,F[0]=1}y=0}}if(A=A[0],m=m[0],0!=y)return y;if(g=!!(2&m),!x&&A)return 3;if(null!=l&&(l[0]=!!(16&m)),null!=o&&(o[0]=g),null!=d&&(d[0]=0),o=u[0],m=p[0],A&&g&&null==c){y=0;break}if(4>a){y=7;break}if(x&&A||!x&&!A&&!n(e,i[0],"ALPH")){a=[a],f.na=[f.na],f.P=[f.P],f.Sa=[f.Sa];e:{N=e,y=i,x=a;var F=f.gb;j=f.na,C=f.P,S=f.Sa,I=22,t(null!=N),t(null!=x),w=y[0];var B=x[0];for(t(null!=j),t(null!=S),j[0]=null,C[0]=null,S[0]=0;;){if(y[0]=w,x[0]=B,8>B){y=7;break e}var P=T(N,w+4);if(4294967286<P){y=3;break e}var E=8+P+1&-2;if(I+=E,0<F&&I>F){y=3;break e}if(!n(N,w,"VP8 ")||!n(N,w,"VP8L")){y=0;break e}if(B[0]<E){y=7;break e}n(N,w,"ALPH")||(j[0]=N,C[0]=w+8,S[0]=P),w+=E,B-=E}}if(a=a[0],f.na=f.na[0],f.P=f.P[0],f.Sa=f.Sa[0],0!=y)break}a=[a],f.Ja=[f.Ja],f.xa=[f.xa];e:if(F=e,y=i,x=a,j=f.gb[0],C=f.Ja,S=f.xa,N=y[0],w=!n(F,N,"VP8 "),I=!n(F,N,"VP8L"),t(null!=F),t(null!=x),t(null!=C),t(null!=S),8>x[0])y=7;else{if(w||I){if(F=T(F,N+4),12<=j&&F>j-12){y=3;break e}if(h&&F>x[0]-8){y=7;break e}C[0]=F,y[0]+=8,x[0]-=8,S[0]=I}else S[0]=5<=x[0]&&47==F[N+0]&&!(F[N+4]>>5),C[0]=x[0];y=0}if(a=a[0],f.Ja=f.Ja[0],f.xa=f.xa[0],i=i[0],0!=y)break;if(4294967286<f.Ja)return 3;if(null==d||g||(d[0]=f.xa?2:1),o=[o],m=[m],f.xa){if(5>a){y=7;break}d=o,h=m,g=l,null==e||5>a?e=0:5<=a&&47==e[i+0]&&!(e[i+4]>>5)?(x=[0],F=[0],j=[0],v(C=new b,e,i,a),fe(C,x,F,j)?(null!=d&&(d[0]=x[0]),null!=h&&(h[0]=F[0]),null!=g&&(g[0]=j[0]),e=1):e=0):e=0}else{if(10>a){y=7;break}d=m,null==e||10>a||!Ge(e,i+3,a-3)?e=0:(h=e[i+0]|e[i+1]<<8|e[i+2]<<16,g=16383&(e[i+7]<<8|e[i+6]),e=16383&(e[i+9]<<8|e[i+8]),1&h||3<(h>>1&7)||!(h>>4&1)||h>>5>=f.Ja||!g||!e?e=0:(o&&(o[0]=g),d&&(d[0]=e),e=1))}if(!e)return 3;if(o=o[0],m=m[0],A&&(u[0]!=o||p[0]!=m))return 3;null!=c&&(c[0]=f,c.offset=i-c.w,t(4294967286>i-c.w),t(c.offset==c.ha-a));break}return 0==y||7==y&&A&&null==c?(null!=l&&(l[0]|=null!=f.na&&0<f.na.length),null!=r&&(r[0]=o),null!=s&&(s[0]=m),0):y}function Ln(e,t,n){var i=t.width,a=t.height,r=0,s=0,l=i,o=a;if(t.Da=null!=e&&0<e.Da,t.Da&&(l=e.cd,o=e.bd,r=e.v,s=e.j,11>n||(r&=-2,s&=-2),0>r||0>s||0>=l||0>=o||r+l>i||s+o>a))return 0;if(t.v=r,t.j=s,t.va=r+l,t.o=s+o,t.U=l,t.T=o,t.da=null!=e&&0<e.da,t.da){if(!U(l,o,n=[e.ib],r=[e.hb]))return 0;t.ib=n[0],t.hb=r[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*i/4&&t.hb<3*a/4,t.Kb=0),1}function Un(e){if(null==e)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function _n(e,t,n,i){if(null==i||0>=e||0>=t)return 2;if(null!=n){if(n.Da){var a=n.cd,s=n.bd,l=-2&n.v,o=-2&n.j;if(0>l||0>o||0>=a||0>=s||l+a>e||o+s>t)return 2;e=a,t=s}if(n.da){if(!U(e,t,a=[n.ib],s=[n.hb]))return 2;e=a[0],t=s[0]}}i.width=e,i.height=t;e:{var d=i.width,c=i.height;if(e=i.S,0>=d||0>=c||!(e>=Li&&13>e))e=2;else{if(0>=i.Rd&&null==i.sd){l=s=a=t=0;var u=(o=d*Qa[e])*c;if(11>e||(s=(c+1)/2*(t=(d+1)/2),12==e&&(l=(a=d)*c)),null==(c=r(u+2*s+l))){e=1;break e}i.sd=c,11>e?((d=i.f.RGBA).eb=c,d.fb=0,d.A=o,d.size=u):((d=i.f.kb).y=c,d.O=0,d.fa=o,d.Fd=u,d.f=c,d.N=0+u,d.Ab=t,d.Cd=s,d.ea=c,d.W=0+u+s,d.Db=t,d.Ed=s,12==e&&(d.F=c,d.J=0+u+2*s),d.Tc=l,d.lb=a)}if(t=1,a=i.S,s=i.width,l=i.height,a>=Li&&13>a)if(11>a)e=i.f.RGBA,t&=(o=Math.abs(e.A))*(l-1)+s<=e.size,t&=o>=s*Qa[a],t&=null!=e.eb;else{e=i.f.kb,o=(s+1)/2,u=(l+1)/2,d=Math.abs(e.fa),c=Math.abs(e.Ab);var p=Math.abs(e.Db),A=Math.abs(e.lb),h=A*(l-1)+s;t&=d*(l-1)+s<=e.Fd,t&=c*(u-1)+o<=e.Cd,t=(t&=p*(u-1)+o<=e.Ed)&d>=s&c>=o&p>=o,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==a&&(t&=A>=s,t&=h<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=n&&n.fd&&(e=Un(i)),e}var On=64,Mn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Rn=24,Qn=32,Hn=8,Vn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];M("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,n){return t[n+0]},e.Predictor3=function(e,t,n){return t[n+1]},e.Predictor4=function(e,t,n){return t[n-1]},e.Predictor5=function(e,t,n){return Q(Q(e,t[n+1]),t[n+0])},e.Predictor6=function(e,t,n){return Q(e,t[n-1])},e.Predictor7=function(e,t,n){return Q(e,t[n+0])},e.Predictor8=function(e,t,n){return Q(t[n-1],t[n+0])},e.Predictor9=function(e,t,n){return Q(t[n+0],t[n+1])},e.Predictor10=function(e,t,n){return Q(Q(e,t[n-1]),Q(t[n+0],t[n+1]))},e.Predictor11=function(e,t,n){var i=t[n+0];return 0>=z(i>>24&255,e>>24&255,(t=t[n-1])>>24&255)+z(i>>16&255,e>>16&255,t>>16&255)+z(i>>8&255,e>>8&255,t>>8&255)+z(255&i,255&e,255&t)?i:e},e.Predictor12=function(e,t,n){var i=t[n+0];return(H((e>>24&255)+(i>>24&255)-((t=t[n-1])>>24&255))<<24|H((e>>16&255)+(i>>16&255)-(t>>16&255))<<16|H((e>>8&255)+(i>>8&255)-(t>>8&255))<<8|H((255&e)+(255&i)-(255&t)))>>>0},e.Predictor13=function(e,t,n){var i=t[n-1];return(V((e=Q(e,t[n+0]))>>24&255,i>>24&255)<<24|V(e>>16&255,i>>16&255)<<16|V(e>>8&255,i>>8&255)<<8|V(255&e,255&i))>>>0};var zn=e.PredictorAdd0;e.PredictorAdd1=q,M("Predictor2","PredictorAdd2"),M("Predictor3","PredictorAdd3"),M("Predictor4","PredictorAdd4"),M("Predictor5","PredictorAdd5"),M("Predictor6","PredictorAdd6"),M("Predictor7","PredictorAdd7"),M("Predictor8","PredictorAdd8"),M("Predictor9","PredictorAdd9"),M("Predictor10","PredictorAdd10"),M("Predictor11","PredictorAdd11"),M("Predictor12","PredictorAdd12"),M("Predictor13","PredictorAdd13");var qn=e.PredictorAdd2;G("ColorIndexInverseTransform","MapARGB","32b",(function(e){return e>>8&255}),(function(e){return e})),G("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(e){return e}),(function(e){return e>>8&255}));var Wn,Yn=e.ColorIndexInverseTransform,Kn=e.MapARGB,Gn=e.VP8LColorIndexInverseTransformAlpha,$n=e.MapAlpha,Xn=e.VP8LPredictorsAdd=[];Xn.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var Jn,Zn,ei,ti,ni,ii,ai,ri,si,li,oi,di,ci,ui,pi,Ai,hi,fi,mi,vi,gi,yi,xi,bi,wi,ji,Ci,Si,Ni=r(511),Ii=r(2041),Fi=r(225),Bi=r(767),Pi=0,ki=Ii,Ti=Fi,Ei=Bi,Di=Ni,Li=0,Ui=1,_i=2,Oi=3,Mi=4,Ri=5,Qi=6,Hi=7,Vi=8,zi=9,qi=10,Wi=[2,3,7],Yi=[3,3,11],Ki=[280,256,256,256,40],Gi=[0,1,1,1,0],$i=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Xi=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Ji=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Zi=8,ea=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ta=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],na=null,ia=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],aa=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ra=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],sa=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],la=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],oa=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],da=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ca=[],ua=[],pa=[],Aa=1,ha=2,fa=[],ma=[];vn("UpsampleRgbLinePair",jn,3),vn("UpsampleBgrLinePair",Cn,3),vn("UpsampleRgbaLinePair",Bn,4),vn("UpsampleBgraLinePair",Fn,4),vn("UpsampleArgbLinePair",In,4),vn("UpsampleRgba4444LinePair",Nn,2),vn("UpsampleRgb565LinePair",Sn,2);var va=e.UpsampleRgbLinePair,ga=e.UpsampleBgrLinePair,ya=e.UpsampleRgbaLinePair,xa=e.UpsampleBgraLinePair,ba=e.UpsampleArgbLinePair,wa=e.UpsampleRgba4444LinePair,ja=e.UpsampleRgb565LinePair,Ca=16,Sa=1<<Ca-1,Na=-227,Ia=482,Fa=6,Ba=(256<<Fa)-1,Pa=0,ka=r(256),Ta=r(256),Ea=r(256),Da=r(256),La=r(Ia-Na),Ua=r(Ia-Na);Pn("YuvToRgbRow",jn,3),Pn("YuvToBgrRow",Cn,3),Pn("YuvToRgbaRow",Bn,4),Pn("YuvToBgraRow",Fn,4),Pn("YuvToArgbRow",In,4),Pn("YuvToRgba4444Row",Nn,2),Pn("YuvToRgb565Row",Sn,2);var _a=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Oa=[0,2,8],Ma=[8,7,6,4,4,2,2,2,1,1,1,1],Ra=1;this.WebPDecodeRGBA=function(e,n,l,o,d){var c=Ui,u=new tn,p=new se;u.ba=p,p.S=c,p.width=[p.width],p.height=[p.height];var A=p.width,h=p.height,f=new le;if(null==f||null==e)var m=2;else t(null!=f),m=Dn(e,n,l,f.width,f.height,f.Pd,f.Qd,f.format,null);if(0!=m?A=0:(null!=A&&(A[0]=f.width[0]),null!=h&&(h[0]=f.height[0]),A=1),A){p.width=p.width[0],p.height=p.height[0],null!=o&&(o[0]=p.width),null!=d&&(d[0]=p.height);e:{if(o=new We,(d=new nn).data=e,d.w=n,d.ha=l,d.kd=1,n=[0],t(null!=d),(0==(e=Dn(d.data,d.w,d.ha,null,null,null,n,null,d))||7==e)&&n[0]&&(e=4),0==(n=e)){if(t(null!=u),o.data=d.data,o.w=d.w+d.offset,o.ha=d.ha-d.offset,o.put=Ae,o.ac=pe,o.bc=he,o.ma=u,d.xa){if(null==(e=Fe())){u=1;break e}if(function(e,n){var i=[0],a=[0],r=[0];t:for(;;){if(null==e)return 0;if(null==n)return e.a=2,0;if(e.l=n,e.a=0,v(e.m,n.data,n.w,n.ha),!fe(e.m,i,a,r)){e.a=3;break t}if(e.xb=ha,n.width=i[0],n.height=a[0],!Be(i[0],a[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,o)){if(o=0==(n=_n(o.width,o.height,u.Oa,u.ba))){t:{o=e;n:for(;;){if(null==o){o=0;break t}if(t(null!=o.s.yc),t(null!=o.s.Ya),t(0<o.s.Wb),t(null!=(l=o.l)),t(null!=(d=l.ma)),0!=o.xb){if(o.ca=d.ba,o.tb=d.tb,t(null!=o.ca),!Ln(d.Oa,l,Oi)){o.a=2;break n}if(!Pe(o,l.width))break n;if(l.da)break n;if((l.da||ie(o.ca.S))&&mn(),11>o.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=o.ca.f.kb.F&&mn()),o.Pb&&0<o.s.ua&&null==o.s.vb.X&&!E(o.s.vb,o.s.Wa.Xa)){o.a=1;break n}o.xb=0}if(!Ne(o,o.V,o.Ba,o.c,o.i,l.o,we))break n;d.Dc=o.Ma,o=1;break t}t(0!=o.a),o=0}o=!o}o&&(n=e.a)}else n=e.a}else{if(null==(e=new Ye)){u=1;break e}if(e.Fa=d.na,e.P=d.P,e.qc=d.Sa,$e(e,o)){if(0==(n=_n(o.width,o.height,u.Oa,u.ba))){if(e.Aa=0,l=u.Oa,t(null!=(d=e)),null!=l){if(0<(A=0>(A=l.Md)?0:100<A?255:255*A/100)){for(h=f=0;4>h;++h)12>(m=d.pb[h]).lc&&(m.ia=A*Ma[0>m.lc?0:m.lc]>>3),f|=m.ia;f&&(alert("todo:VP8InitRandom"),d.ia=1)}d.Ga=l.Id,100<d.Ga?d.Ga=100:0>d.Ga&&(d.Ga=0)}(function(e,n){if(null==e)return 0;if(null==n)return Ke(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!$e(e,n))return 0;if(t(e.cb),null==n.ac||n.ac(n)){n.ob&&(e.L=0);var l=Oa[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=n.v-l>>4,e.zb=n.j-l>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=n.o+15+l>>4,e.Hb=n.va+15+l>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var o=e.ed;for(l=0;4>l;++l){var d;if(e.Qa.Cb){var c=e.Qa.Lb[l];e.Qa.Fb||(c+=o.Tb)}else c=o.Tb;for(d=0;1>=d;++d){var u=e.gd[l][d],p=c;if(o.Pc&&(p+=o.vd[0],d&&(p+=o.od[0])),0<(p=0>p?0:63<p?63:p)){var A=p;0<o.wb&&(A=4<o.wb?A>>2:A>>1)>9-o.wb&&(A=9-o.wb),1>A&&(A=1),u.dd=A,u.tc=2*p+A,u.ld=40<=p?2:15<=p?1:0}else u.tc=0;u.La=d}}}l=0}else Ke(e,6,"Frame setup failed"),l=e.a;if(l=0==l){if(l){e.$c=0,0<e.Aa||(e.Ic=Ra);t:{l=e.Ic,o=4*(A=e.za);var h=32*A,f=A+1,m=0<e.L?A*(0<e.Aa?2:1):0,v=(2==e.Aa?2:1)*A;if((u=o+832+(d=3*(16*l+Oa[e.L])/2*h)+(c=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=u)l=0;else{if(u>e.Vb){if(e.Vb=0,e.Ec=r(u),e.Fc=0,null==e.Ec){l=Ke(e,1,"no memory during frame initialization.");break t}e.Vb=u}u=e.Ec,p=e.Fc,e.Ac=u,e.Bc=p,p+=o,e.Gd=s(h,Ve),e.Hd=0,e.rb=s(f+1,Me),e.sb=1,e.wa=m?s(m,Oe):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=A),t(!0),e.oc=u,e.pc=p,p+=832,e.ya=s(v,Qe),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=A),e.R=16*A,e.B=8*A,A=(h=Oa[e.L])*e.R,h=h/2*e.B,e.sa=u,e.ta=p+A,e.qa=e.sa,e.ra=e.ta+16*l*e.R+h,e.Ha=e.qa,e.Ia=e.ra+8*l*e.B+h,e.$c=0,p+=d,e.mb=c?u:null,e.nb=c?p:null,t(p+c<=e.Fc+e.Vb),Je(e),a(e.Ac,e.Bc,0,o),l=1}}if(l){if(n.ka=0,n.y=e.sa,n.O=e.ta,n.f=e.qa,n.N=e.ra,n.ea=e.Ha,n.Vd=e.Ia,n.fa=e.R,n.Rc=e.B,n.F=null,n.J=0,!Pi){for(l=-255;255>=l;++l)Ni[255+l]=0>l?-l:l;for(l=-1020;1020>=l;++l)Ii[1020+l]=-128>l?-128:127<l?127:l;for(l=-112;112>=l;++l)Fi[112+l]=-16>l?-16:15<l?15:l;for(l=-255;510>=l;++l)Bi[255+l]=0>l?0:255<l?255:l;Pi=1}ai=ot,ri=at,li=rt,oi=st,di=lt,si=it,ci=Yt,ui=Kt,pi=Xt,Ai=Jt,hi=Gt,fi=$t,mi=Zt,vi=en,gi=Qt,yi=Ht,xi=Vt,bi=zt,ua[0]=jt,ua[1]=ct,ua[2]=bt,ua[3]=wt,ua[4]=Ct,ua[5]=Nt,ua[6]=St,ua[7]=It,ua[8]=Bt,ua[9]=Ft,ca[0]=mt,ca[1]=pt,ca[2]=At,ca[3]=ht,ca[4]=vt,ca[5]=gt,ca[6]=yt,pa[0]=Et,pa[1]=ut,pa[2]=Pt,pa[3]=kt,pa[4]=Lt,pa[5]=Dt,pa[6]=Ut,l=1}else l=0}l&&(l=function(e,n){for(e.M=0;e.M<e.Va;++e.M){var s,l=e.Jc[e.M&e.Xb],o=e.m,d=e;for(s=0;s<d.za;++s){var c=o,u=d,p=u.Ac,A=u.Bc+4*s,h=u.zc,f=u.ya[u.aa+s];if(u.Qa.Bb?f.$b=F(c,u.Pa.jb[0])?2+F(c,u.Pa.jb[2]):F(c,u.Pa.jb[1]):f.$b=0,u.kc&&(f.Ad=F(c,u.Bd)),f.Za=!F(c,145)+0,f.Za){var m=f.Ob,v=0;for(u=0;4>u;++u){var g,y=h[0+u];for(g=0;4>g;++g){y=la[p[A+g]][y];for(var x=ra[F(c,y[0])];0<x;)x=ra[2*x+F(c,y[x])];y=-x,p[A+g]=y}i(m,v,p,A,4),v+=4,h[0+u]=y}}else y=F(c,156)?F(c,128)?1:3:F(c,163)?2:0,f.Ob[0]=y,a(p,A,y,4),a(h,0,y,4);f.Dd=F(c,142)?F(c,114)?F(c,183)?1:3:2:0}if(d.m.Ka)return Ke(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(d=l,c=(o=e).rb[o.sb-1],p=o.rb[o.sb+o.ja],s=o.ya[o.aa+o.ja],A=o.kc?s.Ad:0)c.la=p.la=0,s.Za||(c.Na=p.Na=0),s.Hc=0,s.Gc=0,s.ia=0;else{var b,w;if(c=p,p=d,A=o.Pa.Xc,h=o.ya[o.aa+o.ja],f=o.pb[h.$b],u=h.ad,m=0,v=o.rb[o.sb-1],y=g=0,a(u,m,0,384),h.Za)var j=0,C=A[3];else{x=r(16);var S=c.Na+v.Na;if(S=na(p,A[1],S,f.Eb,0,x,0),c.Na=v.Na=(0<S)+0,1<S)ai(x,0,u,m);else{var N=x[0]+3>>3;for(x=0;256>x;x+=16)u[m+x]=N}j=1,C=A[0]}var I=15&c.la,B=15&v.la;for(x=0;4>x;++x){var P=1&B;for(N=w=0;4>N;++N)I=I>>1|(P=(S=na(p,C,S=P+(1&I),f.Sc,j,u,m))>j)<<7,w=w<<2|(3<S?3:1<S?2:0!=u[m+0]),m+=16;I>>=4,B=B>>1|P<<7,g=(g<<8|w)>>>0}for(C=I,j=B>>4,b=0;4>b;b+=2){for(w=0,I=c.la>>4+b,B=v.la>>4+b,x=0;2>x;++x){for(P=1&B,N=0;2>N;++N)S=P+(1&I),I=I>>1|(P=0<(S=na(p,A[2],S,f.Qc,0,u,m)))<<3,w=w<<2|(3<S?3:1<S?2:0!=u[m+0]),m+=16;I>>=2,B=B>>1|P<<5}y|=w<<4*b,C|=I<<4<<b,j|=(240&B)<<b}c.la=C,v.la=j,h.Hc=g,h.Gc=y,h.ia=43690&y?0:f.ia,A=!(g|y)}if(0<o.L&&(o.wa[o.Y+o.ja]=o.gd[s.$b][s.Za],o.wa[o.Y+o.ja].La|=!A),d.Ka)return Ke(e,7,"Premature end-of-file encountered.")}if(Je(e),o=n,d=1,s=(l=e).D,c=0<l.L&&l.M>=l.zb&&l.M<=l.Va,0==l.Aa)t:{if(s.M=l.M,s.uc=c,En(l,s),d=1,s=(w=l.D).Nb,c=(y=Oa[l.L])*l.R,p=y/2*l.B,x=16*s*l.R,N=8*s*l.B,A=l.sa,h=l.ta-c+x,f=l.qa,u=l.ra-p+N,m=l.Ha,v=l.Ia-p+N,B=0==(I=w.M),g=I>=l.Va-1,2==l.Aa&&En(l,w),w.uc)for(P=(S=l).D.M,t(S.D.uc),w=S.yb;w<S.Hb;++w){j=w,C=P;var k=(T=(Q=S).D).Nb;b=Q.R;var T=T.wa[T.Y+j],E=Q.sa,D=Q.ta+16*k*b+16*j,L=T.dd,U=T.tc;if(0!=U)if(t(3<=U),1==Q.L)0<j&&yi(E,D,b,U+4),T.La&&bi(E,D,b,U),0<C&&gi(E,D,b,U+4),T.La&&xi(E,D,b,U);else{var _=Q.B,O=Q.qa,M=Q.ra+8*k*_+8*j,R=Q.Ha,Q=Q.Ia+8*k*_+8*j;k=T.ld,0<j&&(ui(E,D,b,U+4,L,k),Ai(O,M,R,Q,_,U+4,L,k)),T.La&&(fi(E,D,b,U,L,k),vi(O,M,R,Q,_,U,L,k)),0<C&&(ci(E,D,b,U+4,L,k),pi(O,M,R,Q,_,U+4,L,k)),T.La&&(hi(E,D,b,U,L,k),mi(O,M,R,Q,_,U,L,k))}}if(l.ia&&alert("todo:DitherRow"),null!=o.put){if(w=16*I,I=16*(I+1),B?(o.y=l.sa,o.O=l.ta+x,o.f=l.qa,o.N=l.ra+N,o.ea=l.Ha,o.W=l.Ia+N):(w-=y,o.y=A,o.O=h,o.f=f,o.N=u,o.ea=m,o.W=v),g||(I-=y),I>o.o&&(I=o.o),o.F=null,o.J=null,null!=l.Fa&&0<l.Fa.length&&w<I&&(o.J=un(l,o,w,I-w),o.F=l.mb,null==o.F&&0==o.F.length)){d=Ke(l,3,"Could not decode alpha data.");break t}w<o.j&&(y=o.j-w,w=o.j,t(!(1&y)),o.O+=l.R*y,o.N+=l.B*(y>>1),o.W+=l.B*(y>>1),null!=o.F&&(o.J+=o.width*y)),w<I&&(o.O+=o.v,o.N+=o.v>>1,o.W+=o.v>>1,null!=o.F&&(o.J+=o.v),o.ka=w-o.j,o.U=o.va-o.v,o.T=I-w,d=o.put(o))}s+1!=l.Ic||g||(i(l.sa,l.ta-c,A,h+16*l.R,c),i(l.qa,l.ra-p,f,u+8*l.B,p),i(l.Ha,l.Ia-p,m,v+8*l.B,p))}if(!d)return Ke(e,6,"Output aborted.")}return 1}(e,n)),null!=n.bc&&n.bc(n),l&=1}return l?(e.cb=0,l):0})(e,o)||(n=e.a)}}else n=e.a}0==n&&null!=u.Oa&&u.Oa.fd&&(n=Un(u.ba))}u=n}c=0!=u?null:11>c?p.f.RGBA.eb:p.f.kb.y}else c=null;return c};var Qa=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(e,t){for(var n="",i=0;i<4;i++)n+=String.fromCharCode(e[t++]);return n}function c(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16)>>>0}function u(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new o;var p=[0],A=[0],h=[],f=new o,m=e,v=function(e,t){var n={},i=0,a=!1,r=0,s=0;if(n.frames=[],!
|
||
/** @license
|
||
* Copyright (c) 2017 Dominik Homberger
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
https://webpjs.appspot.com
|
||
WebPRiffParser dominikhlbg@gmail.com
|
||
*/
|
||
function(e,t){for(var n=0;n<4;n++)if(e[t+n]!="RIFF".charCodeAt(n))return!0;return!1}(e,t)){var l,o;for(u(e,t+=4),t+=8;t<e.length;){var p=d(e,t),A=u(e,t+=4);t+=4;var h=A+(1&A);switch(p){case"VP8 ":case"VP8L":void 0===n.frames[i]&&(n.frames[i]={}),(v=n.frames[i]).src_off=a?s:t-8,v.src_size=r+A+8,i++,a&&(a=!1,r=0,s=0);break;case"VP8X":(v=n.header={}).feature_flags=e[t];var f=t+4;v.canvas_width=1+c(e,f),f+=3,v.canvas_height=1+c(e,f),f+=3;break;case"ALPH":a=!0,r=h+8,s=t-8;break;case"ANIM":(v=n.header).bgcolor=u(e,t),f=t+4,v.loop_count=(l=e)[(o=f)+0]|l[o+1]<<8,f+=2;break;case"ANMF":var m,v;(v=n.frames[i]={}).offset_x=2*c(e,t),t+=3,v.offset_y=2*c(e,t),t+=3,v.width=1+c(e,t),t+=3,v.height=1+c(e,t),t+=3,v.duration=c(e,t),t+=3,m=e[t++],v.dispose=1&m,v.blend=m>>1&1}"ANMF"!=p&&(t+=h)}return n}}(m,0);v.response=m,v.rgbaoutput=!0,v.dataurl=!1;var g=v.header?v.header:null,y=v.frames?v.frames:null;if(g){g.loop_counter=g.loop_count,p=[g.canvas_height],A=[g.canvas_width];for(var x=0;x<y.length&&0!=y[x].blend;x++);}var b=y[0],w=f.WebPDecodeRGBA(m,b.src_off,b.src_size,A,p);b.rgba=w,b.imgwidth=A[0],b.imgheight=p[0];for(var j=0;j<A[0]*p[0]*4;j++)h[j]=w[j];return this.width=A,this.height=p,this.data=h,this}!function(e){var t=function(t,i,o,d){var c=4,u=r;switch(d){case e.image_compression.FAST:c=1,u=a;break;case e.image_compression.MEDIUM:c=6,u=s;break;case e.image_compression.SLOW:c=9,u=l}var p=ns(t=n(t,i,o,u),{level:c});return e.__addimage__.arrayBufferToBinaryString(p)},n=function(e,t,n,i){for(var a,r,s,l=e.length/t,o=new Uint8Array(e.length+l),u=d(),p=0;p<l;p+=1){if(s=p*t,a=e.subarray(s,s+t),i)o.set(i(a,n,r),s+p);else{for(var A,h=u.length,f=[];A<h;A+=1)f[A]=u[A](a,n,r);var m=c(f.concat());o.set(f[m],s+p)}r=a}return o},i=function(e){var t=Array.apply([],e);return t.unshift(0),t},a=function(e,t){var n,i=[],a=e.length;i[0]=1;for(var r=0;r<a;r+=1)n=e[r-t]||0,i[r+1]=e[r]-n+256&255;return i},r=function(e,t,n){var i,a=[],r=e.length;a[0]=2;for(var s=0;s<r;s+=1)i=n&&n[s]||0,a[s+1]=e[s]-i+256&255;return a},s=function(e,t,n){var i,a,r=[],s=e.length;r[0]=3;for(var l=0;l<s;l+=1)i=e[l-t]||0,a=n&&n[l]||0,r[l+1]=e[l]+256-(i+a>>>1)&255;return r},l=function(e,t,n){var i,a,r,s,l=[],d=e.length;l[0]=4;for(var c=0;c<d;c+=1)i=e[c-t]||0,a=n&&n[c]||0,r=n&&n[c-t]||0,s=o(i,a,r),l[c+1]=e[c]-s+256&255;return l},o=function(e,t,n){if(e===t&&t===n)return e;var i=Math.abs(t-n),a=Math.abs(e-n),r=Math.abs(e+t-n-n);return i<=a&&i<=r?e:a<=r?t:n},d=function(){return[i,a,r,s,l]},c=function(e){var t=e.map((function(e){return e.reduce((function(e,t){return e+Math.abs(t)}),0)}));return t.indexOf(Math.min.apply(null,t))};e.processPNG=function(n,i,a,r){var s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b=this.decode.FLATE_DECODE,w="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(o=new i9(n)).imgData,l=o.bits,s=o.colorSpace,c=o.colors,-1!==[4,6].indexOf(o.colorType)){if(8===o.bits){h=(A=32==o.pixelBitlength?new Uint32Array(o.decodePixels().buffer):16==o.pixelBitlength?new Uint16Array(o.decodePixels().buffer):new Uint8Array(o.decodePixels().buffer)).length,m=new Uint8Array(h*o.colors),f=new Uint8Array(h);var j,C=o.pixelBitlength-o.bits;for(y=0,x=0;y<h;y++){for(g=A[y],j=0;j<C;)m[x++]=g>>>j&255,j+=o.bits;f[y]=g>>>j&255}}if(16===o.bits){h=(A=new Uint32Array(o.decodePixels().buffer)).length,m=new Uint8Array(h*(32/o.pixelBitlength)*o.colors),f=new Uint8Array(h*(32/o.pixelBitlength)),v=o.colors>1,y=0,x=0;for(var S=0;y<h;)g=A[y++],m[x++]=g>>>0&255,v&&(m[x++]=g>>>16&255,g=A[y++],m[x++]=g>>>0&255),f[S++]=g>>>16&255;l=8}r!==e.image_compression.NONE?(n=t(m,o.width*o.colors,o.colors,r),p=t(f,o.width,1,r)):(n=m,p=f,b=void 0)}if(3===o.colorType&&(s=this.color_spaces.INDEXED,u=o.palette,o.transparency.indexed)){var N=o.transparency.indexed,I=0;for(y=0,h=N.length;y<h;++y)I+=N[y];if((I/=255)==h-1&&-1!==N.indexOf(0))d=[N.indexOf(0)];else if(I!==h){for(A=o.decodePixels(),f=new Uint8Array(A.length),y=0,h=A.length;y<h;y++)f[y]=N[A[y]];p=t(f,o.width,1)}}var F=function(t){var n;switch(t){case e.image_compression.FAST:n=11;break;case e.image_compression.MEDIUM:n=13;break;case e.image_compression.SLOW:n=14;break;default:n=12}return n}(r);return b===this.decode.FLATE_DECODE&&(w="/Predictor "+F+" "),w+="/Colors "+c+" /BitsPerComponent "+l+" /Columns "+o.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:a,data:n,index:i,filter:b,decodeParameters:w,transparency:d,palette:u,sMask:p,predictor:F,width:o.width,height:o.height,bitsPerComponent:l,colorSpace:s}}}}(W8.API),function(e){e.processGIF89A=function(t,n,i,a){var r=new a9(t),s=r.width,l=r.height,o=[];r.decodeAndBlitFrameRGBA(0,o);var d={data:o,width:s,height:l},c=new s9(100).encode(d,100);return e.processJPEG.call(this,c,n,i,a)},e.processGIF87A=e.processGIF89A}(W8.API),l9.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:a,green:i,blue:n,quad:r}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},l9.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(n){f8.log("bit decode error:"+n)}},l9.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var i=this.bottom_up?e:this.height-1-e,a=0;a<t;a++)for(var r=this.datav.getUint8(this.pos++,!0),s=i*this.width*4+8*a*4,l=0;l<8&&8*a+l<this.width;l++){var o=this.palette[r>>7-l&1];this.data[s+4*l]=o.blue,this.data[s+4*l+1]=o.green,this.data[s+4*l+2]=o.red,this.data[s+4*l+3]=255}0!==n&&(this.pos+=4-n)}},l9.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<e;a++){var r=this.datav.getUint8(this.pos++,!0),s=i*this.width*4+2*a*4,l=r>>4,o=15&r,d=this.palette[l];if(this.data[s]=d.blue,this.data[s+1]=d.green,this.data[s+2]=d.red,this.data[s+3]=255,2*a+1>=this.width)break;d=this.palette[o],this.data[s+4]=d.blue,this.data[s+4+1]=d.green,this.data[s+4+2]=d.red,this.data[s+4+3]=255}0!==t&&(this.pos+=4-t)}},l9.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<this.width;i++){var a=this.datav.getUint8(this.pos++,!0),r=n*this.width*4+4*i;if(a<this.palette.length){var s=this.palette[a];this.data[r]=s.red,this.data[r+1]=s.green,this.data[r+2]=s.blue,this.data[r+3]=255}else this.data[r]=255,this.data[r+1]=255,this.data[r+2]=255,this.data[r+3]=255}0!==e&&(this.pos+=4-e)}},l9.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var r=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(r&t)/t*255|0,l=(r>>5&t)/t*255|0,o=(r>>10&t)/t*255|0,d=r>>15?255:0,c=i*this.width*4+4*a;this.data[c]=o,this.data[c+1]=l,this.data[c+2]=s,this.data[c+3]=d}this.pos+=e}},l9.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var a=this.bottom_up?i:this.height-1-i,r=0;r<this.width;r++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(s&t)/t*255|0,o=(s>>5&n)/n*255|0,d=(s>>11)/t*255|0,c=a*this.width*4+4*r;this.data[c]=d,this.data[c+1]=o,this.data[c+2]=l,this.data[c+3]=255}this.pos+=e}},l9.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=r,this.data[s+1]=a,this.data[s+2]=i,this.data[s+3]=255}this.pos+=this.width%4}},l9.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),l=t*this.width*4+4*n;this.data[l]=r,this.data[l+1]=a,this.data[l+2]=i,this.data[l+3]=s}},l9.prototype.getData=function(){return this.data},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){e.processBMP=function(t,n,i,a){var r=new l9(t,!1),s=r.width,l=r.height,o={data:r.getData(),width:s,height:l},d=new s9(100).encode(o,100);return e.processJPEG.call(this,d,n,i,a)}}(W8.API),o9.prototype.getData=function(){return this.data},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2019 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){e.processWEBP=function(t,n,i,a){var r=new o9(t),s=r.width,l=r.height,o={data:r.getData(),width:s,height:l},d=new s9(100).encode(o,100);return e.processJPEG.call(this,d,n,i,a)}}(W8.API),W8.API.processRGBA=function(e,t,n){for(var i=e.data,a=i.length,r=new Uint8Array(a/4*3),s=new Uint8Array(a/4),l=0,o=0,d=0;d<a;d+=4){var c=i[d],u=i[d+1],p=i[d+2],A=i[d+3];r[l++]=c,r[l++]=u,r[l++]=p,s[o++]=A}var h=this.__addimage__.arrayBufferToBinaryString(r);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:h,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},W8.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},J7=W8.API,Z7=J7.getCharWidthsArray=function(e,t){var n,i,a=(t=t||{}).font||this.internal.getFont(),r=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:a.metadata.Unicode.widths,o=l.fof?l.fof:1,d=t.kerning?t.kerning:a.metadata.Unicode.kerning,c=d.fof?d.fof:1,u=!1!==t.doKerning,A=0,h=e.length,f=0,m=l[0]||o,v=[];for(n=0;n<h;n++)i=e.charCodeAt(n),"function"==typeof a.metadata.widthOfString?v.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(i))+s*(1e3/r)||0)/1e3):(A=u&&"object"===p(d[i])&&!isNaN(parseInt(d[i][f],10))?d[i][f]/c:0,v.push((l[i]||m)/o+A)),f=i;return v},e9=J7.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),i=t.font||this.internal.getFont(),a=t.charSpace||this.internal.getCharSpace();return J7.processArabic&&(e=J7.processArabic(e)),"function"==typeof i.metadata.widthOfString?i.metadata.widthOfString(e,n,a)/n:Z7.apply(this,arguments).reduce((function(e,t){return e+t}),0)},t9=function(e,t,n,i){for(var a=[],r=0,s=e.length,l=0;r!==s&&l+t[r]<n;)l+=t[r],r++;a.push(e.slice(0,r));var o=r;for(l=0;r!==s;)l+t[r]>i&&(a.push(e.slice(o,r)),l=0,o=r),l+=t[r],r++;return o!==r&&a.push(e.slice(o,r)),a},n9=function(e,t,n){n||(n={});var i,a,r,s,l,o,d,c=[],u=[c],p=n.textIndent||0,A=0,h=0,f=e.split(" "),m=Z7.apply(this,[" ",n])[0];if(o=-1===n.lineIndent?f[0].length+2:n.lineIndent||0){var v=Array(o).join(" "),g=[];f.map((function(e){(e=e.split(/\s*\n/)).length>1?g=g.concat(e.map((function(e,t){return(t&&e.length?"\n":"")+e}))):g.push(e[0])})),f=g,o=e9.apply(this,[v,n])}for(r=0,s=f.length;r<s;r++){var y=0;if(i=f[r],o&&"\n"==i[0]&&(i=i.substr(1),y=1),p+A+(h=(a=Z7.apply(this,[i,n])).reduce((function(e,t){return e+t}),0))>t||y){if(h>t){for(l=t9.apply(this,[i,a,t-(p+A),t]),c.push(l.shift()),c=[l.pop()];l.length;)u.push([l.shift()]);h=a.slice(i.length-(c[0]?c[0].length:0)).reduce((function(e,t){return e+t}),0)}else c=[i];u.push(c),p=h+o,A=m}else c.push(i),p+=A+h,A=m}return d=o?function(e,t){return(t?v:"")+e.join(" ")}:function(e){return e.join(" ")},u.map(d)},J7.splitTextToSize=function(e,t,n){var i,a=(n=n||{}).fontSize||this.internal.getFontSize(),r=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle);return t.metadata.Unicode?{widths:t.metadata.Unicode.widths||{0:1},kerning:t.metadata.Unicode.kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);i=Array.isArray(e)?e:String(e).split(/\r?\n/);var s=1*this.internal.scaleFactor*t/a;r.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/a:0,r.lineIndent=n.lineIndent;var l,o,d=[];for(l=0,o=i.length;l<o;l++)d=d.concat(n9.apply(this,[i[l],s,r]));return d},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",n={},i={},a=0;a<16;a++)n[t[a]]="0123456789abcdef"[a],i["0123456789abcdef"[a]]=t[a];var r=function(e){return"0x"+parseInt(e,10).toString(16)},s=e.__fontmetrics__.compress=function(e){var t,n,a,l,o=["{"];for(var d in e){if(t=e[d],isNaN(parseInt(d,10))?n="'"+d+"'":(d=parseInt(d,10),n=(n=r(d).slice(2)).slice(0,-1)+i[n.slice(-1)]),"number"==typeof t)t<0?(a=r(t).slice(3),l="-"):(a=r(t).slice(2),l=""),a=l+a.slice(0,-1)+i[a.slice(-1)];else{if("object"!==p(t))throw new Error("Don't know what to do with value type "+p(t)+".");a=s(t)}o.push(n+a)}return o.push("}"),o.join("")},l=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,i,a,r,s={},l=1,o=s,d=[],c="",u="",p=e.length-1,A=1;A<p;A+=1)"'"==(r=e[A])?t?(a=t.join(""),t=void 0):t=[]:t?t.push(r):"{"==r?(d.push([o,a]),o={},a=void 0):"}"==r?((i=d.pop())[0][i[1]]=o,a=void 0,o=i[0]):"-"==r?l=-1:void 0===a?n.hasOwnProperty(r)?(c+=n[r],a=parseInt(c,16)*l,l=1,c=""):c+=r:n.hasOwnProperty(r)?(u+=n[r],o[a]=parseInt(u,16)*l,l=1,a=void 0,u=""):u+=r;return s},o={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:o,"Courier-Bold":o,"Courier-BoldOblique":o,"Courier-Oblique":o,Helvetica:o,"Helvetica-Bold":o,"Helvetica-BoldOblique":o,"Helvetica-Oblique":o,"Times-Roman":o,"Times-Bold":o,"Times-BoldItalic":o,"Times-Italic":o}},c={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(e){var t=e.font,n=c.Unicode[t.postScriptName];n&&(t.metadata.Unicode={},t.metadata.Unicode.widths=n.widths,t.metadata.Unicode.kerning=n.kerning);var i=d.Unicode[t.postScriptName];i&&(t.metadata.Unicode.encoding=i,t.encoding=i.codePages[0])}])}(W8.API),
|
||
/**
|
||
* @license
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t=function(e){for(var t=e.length,n=new Uint8Array(t),i=0;i<t;i++)n[i]=e.charCodeAt(i);return n};e.API.events.push(["addFont",function(n){var i,a,r=void 0,s=n.font,l=n.instance;if(!s.isStandardFont){if(void 0===l)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");if("string"!=typeof(r=!1===l.existsFileInVFS(s.postScriptName)?l.loadFile(s.postScriptName):l.getFileFromVFS(s.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");i=s,a=/^\x00\x01\x00\x00/.test(a=r)?t(a):t(y8(a)),i.metadata=e.API.TTFFont.open(a),i.metadata.Unicode=i.metadata.Unicode||{encoding:{},kerning:{},widths:[]},i.metadata.glyIdsUsed=[0]}}])}(W8),W8.API.addSvgAsImage=function(e,t,n,i,a,r,s,l){if(isNaN(t)||isNaN(n))throw f8.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw f8.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var o=document.createElement("canvas");o.width=i,o.height=a;var d=o.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,o.width,o.height);var c={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},u=this;return(A8.canvg?Promise.resolve(A8.canvg):pr((()=>import("./index.es-7ba97c1a.js")),["assets/index.es-7ba97c1a.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js"])).catch((function(e){return Promise.reject(new Error("Could not load canvg: "+e))})).then((function(e){return e.default?e.default:e})).then((function(t){return t.fromString(d,e,c)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(e){return e.render(c)})).then((function(){u.addImage(o.toDataURL("image/jpeg",1),t,n,i,a,s,l)}))},W8.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var a=0;a<this.internal.pages[i].length;a++)this.internal.pages[i][a]=this.internal.pages[i][a].replace(t,n);return this},W8.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var i,a,r,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(s),o=[],d=0,c=0,u=0;function A(e,t){var n,i=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(i=!0);return i}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var h=l.length;for(u=0;u<h;u+=1)n[l[u]].value=n[l[u]].defaultValue,n[l[u]].explicitSet=!1}if("object"===p(e))for(a in e)if(r=e[a],A(l,a)&&void 0!==r){if("boolean"===n[a].type&&"boolean"==typeof r)n[a].value=r;else if("name"===n[a].type&&A(n[a].valueSet,r))n[a].value=r;else if("integer"===n[a].type&&Number.isInteger(r))n[a].value=r;else if("array"===n[a].type){for(d=0;d<r.length;d+=1)if(i=!0,1===r[d].length&&"number"==typeof r[d][0])o.push(String(r[d]-1));else if(r[d].length>1){for(c=0;c<r[d].length;c+=1)"number"!=typeof r[d][c]&&(i=!1);!0===i&&o.push([r[d][0]-1,r[d][1]-1].join(" "))}n[a].value="["+o.join(" ")+"]"}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var e,t=[];for(e in n)!0===n[e].explicitSet&&("name"===n[e].type?t.push("/"+e+" /"+n[e].value):t.push("/"+e+" "+n[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
|
||
/** ====================================================================
|
||
* @license
|
||
* jsPDF XMP metadata plugin
|
||
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/
|
||
function(e){var t=function(){var e='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(e)),i=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),a=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),r=unescape(encodeURIComponent("</x:xmpmeta>")),s=n.length+i.length+a.length+t.length+r.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+s+" >>"),this.internal.write("stream"),this.internal.write(t+n+i+a+r),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(e,i){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",t)),this}}(W8.API),function(e){var t=e.API,n=t.pdfEscape16=function(e,t){for(var n,i=t.metadata.Unicode.widths,a=["","0","00","000","0000"],r=[""],s=0,l=e.length;s<l;++s){if(n=t.metadata.characterToGlyph(e.charCodeAt(s)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(s),-1==i.indexOf(n)&&(i.push(n),i.push([parseInt(t.metadata.widthOfGlyph(n),10)])),"0"==n)return r.join("");n=n.toString(16),r.push(a[4-n.length],n)}return r.join("")},i=function(e){var t,n,i,a,r,s,l;for(r="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",i=[],s=0,l=(n=Object.keys(e).sort((function(e,t){return e-t}))).length;s<l;s++)t=n[s],i.length>=100&&(r+="\n"+i.length+" beginbfchar\n"+i.join("\n")+"\nendbfchar",i=[]),void 0!==e[t]&&null!==e[t]&&"function"==typeof e[t].toString&&(a=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),i.push("<"+t+"><"+a+">"));return i.length&&(r+="\n"+i.length+" beginbfchar\n"+i.join("\n")+"\nendbfchar\n"),r+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var n=t.font,a=t.out,r=t.newObject,s=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"Identity-H"===n.encoding){for(var l=n.metadata.Unicode.widths,o=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),d="",c=0;c<o.length;c++)d+=String.fromCharCode(o[c]);var u=r();s({data:d,addLength1:!0,objectId:u}),a("endobj");var p=r();s({data:i(n.metadata.toUnicode),addLength1:!0,objectId:p}),a("endobj");var A=r();a("<<"),a("/Type /FontDescriptor"),a("/FontName /"+R8(n.fontName)),a("/FontFile2 "+u+" 0 R"),a("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),a("/Flags "+n.metadata.flags),a("/StemV "+n.metadata.stemV),a("/ItalicAngle "+n.metadata.italicAngle),a("/Ascent "+n.metadata.ascender),a("/Descent "+n.metadata.decender),a("/CapHeight "+n.metadata.capHeight),a(">>"),a("endobj");var h=r();a("<<"),a("/Type /Font"),a("/BaseFont /"+R8(n.fontName)),a("/FontDescriptor "+A+" 0 R"),a("/W "+e.API.PDFObject.convert(l)),a("/CIDToGIDMap /Identity"),a("/DW 1000"),a("/Subtype /CIDFontType2"),a("/CIDSystemInfo"),a("<<"),a("/Supplement 0"),a("/Registry (Adobe)"),a("/Ordering ("+n.encoding+")"),a(">>"),a(">>"),a("endobj"),n.objectNumber=r(),a("<<"),a("/Type /Font"),a("/Subtype /Type0"),a("/ToUnicode "+p+" 0 R"),a("/BaseFont /"+R8(n.fontName)),a("/Encoding /"+n.encoding),a("/DescendantFonts ["+h+" 0 R]"),a(">>"),a("endobj"),n.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var n=t.font,a=t.out,r=t.newObject,s=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var l=n.metadata.rawData,o="",d=0;d<l.length;d++)o+=String.fromCharCode(l[d]);var c=r();s({data:o,addLength1:!0,objectId:c}),a("endobj");var u=r();s({data:i(n.metadata.toUnicode),addLength1:!0,objectId:u}),a("endobj");var p=r();a("<<"),a("/Descent "+n.metadata.decender),a("/CapHeight "+n.metadata.capHeight),a("/StemV "+n.metadata.stemV),a("/Type /FontDescriptor"),a("/FontFile2 "+c+" 0 R"),a("/Flags 96"),a("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),a("/FontName /"+R8(n.fontName)),a("/ItalicAngle "+n.metadata.italicAngle),a("/Ascent "+n.metadata.ascender),a(">>"),a("endobj"),n.objectNumber=r();for(var A=0;A<n.metadata.hmtx.widths.length;A++)n.metadata.hmtx.widths[A]=parseInt(n.metadata.hmtx.widths[A]*(1e3/n.metadata.head.unitsPerEm));a("<</Subtype/TrueType/Type/Font/ToUnicode "+u+" 0 R/BaseFont/"+R8(n.fontName)+"/FontDescriptor "+p+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),a("endobj"),n.isAlreadyPutted=!0}}(t)}]);var a=function(e){var t,i=e.text||"",a=e.x,r=e.y,s=e.options||{},l=e.mutex||{},o=l.pdfEscape,d=l.activeFontKey,c=l.fonts,u=d,p="",A=0,h="",f=c[u].encoding;if("Identity-H"!==c[u].encoding)return{text:i,x:a,y:r,options:s,mutex:l};for(h=i,u=d,Array.isArray(i)&&(h=i[0]),A=0;A<h.length;A+=1)c[u].metadata.hasOwnProperty("cmap")&&(t=c[u].metadata.cmap.unicode.codeMap[h[A].charCodeAt(0)]),t||h[A].charCodeAt(0)<256&&c[u].metadata.hasOwnProperty("Unicode")?p+=h[A]:p+="";var m="";return parseInt(u.slice(1))<14||"WinAnsiEncoding"===f?m=o(p,u).split("").map((function(e){return e.charCodeAt(0).toString(16)})).join(""):"Identity-H"===f&&(m=n(p,c[u])),l.isHex=!0,{text:m,x:a,y:r,options:s,mutex:l}};t.events.push(["postProcessText",function(e){var t=e.text||"",n=[],i={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var r=0;for(r=0;r<t.length;r+=1)Array.isArray(t[r])&&3===t[r].length?n.push([a(Object.assign({},i,{text:t[r][0]})).text,t[r][1],t[r][2]]):n.push(a(Object.assign({},i,{text:t[r]})).text);e.text=n}else e.text=a(Object.assign({},i,{text:t})).text}])}(W8),
|
||
/**
|
||
* @license
|
||
* jsPDF virtual FileSystem functionality
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,n){return t.call(this),this.internal.vFS[e]=n,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}(W8.API),
|
||
/**
|
||
* @license
|
||
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
|
||
* MIT License
|
||
*/
|
||
function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,i,a,r,s,l,o,d=t,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],u=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],p={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},A={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},h=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],f=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,v=0;this.__bidiEngine__={};var g=function(e){var t=e.charCodeAt(),n=t>>8,i=A[n];return void 0!==i?d[256*i+(255&t)]:252===n||253===n?"AL":f.test(n)?"L":8===n?"R":"N"},y=function(e){for(var t,n=0;n<e.length;n++){if("L"===(t=g(e.charAt(n))))return!1;if("R"===t)return!0}return!1},x=function(e,t,s,l){var o,d,c,u,p=t[l];switch(p){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(p="AN");break;case"AL":m=!0,p="R";break;case"WS":case"BN":p="N";break;case"CS":l<1||l+1>=t.length||"EN"!==(o=s[l-1])&&"AN"!==o||"EN"!==(d=t[l+1])&&"AN"!==d?p="N":m&&(d="AN"),p=d===o?d:"N";break;case"ES":p="EN"===(o=l>0?s[l-1]:"B")&&l+1<t.length&&"EN"===t[l+1]?"EN":"N";break;case"ET":if(l>0&&"EN"===s[l-1]){p="EN";break}if(m){p="N";break}for(c=l+1,u=t.length;c<u&&"ET"===t[c];)c++;p=c<u&&"EN"===t[c]?"EN":"N";break;case"NSM":if(a&&!r){for(u=t.length,c=l+1;c<u&&"NSM"===t[c];)c++;if(c<u){var A=e[l],h=A>=1425&&A<=2303||64286===A;if(o=t[c],h&&("R"===o||"AL"===o)){p="R";break}}}p=l<1||"B"===(o=t[l-1])?"N":s[l-1];break;case"B":m=!1,n=!0,p=v;break;case"S":i=!0,p="N"}return p},b=function(e,t,n){var i=e.split("");return n&&w(i,n,{hiLevel:v}),i.reverse(),t&&t.reverse(),i.join("")},w=function(e,t,a){var r,s,l,o,d,A=-1,h=e.length,f=0,y=[],b=v?u:c,w=[];for(m=!1,n=!1,i=!1,s=0;s<h;s++)w[s]=g(e[s]);for(l=0;l<h;l++){if(d=f,y[l]=x(e,w,y,l),r=240&(f=b[d][p[y[l]]]),f&=15,t[l]=o=b[f][5],r>0)if(16===r){for(s=A;s<l;s++)t[s]=1;A=-1}else A=-1;if(b[f][6])-1===A&&(A=l);else if(A>-1){for(s=A;s<l;s++)t[s]=o;A=-1}"B"===w[l]&&(t[l]=0),a.hiLevel|=o}i&&function(e,t,n){for(var i=0;i<n;i++)if("S"===e[i]){t[i]=v;for(var a=i-1;a>=0&&"WS"===e[a];a--)t[a]=v}}(w,t,h)},j=function(e,t,i,a,r){if(!(r.hiLevel<e)){if(1===e&&1===v&&!n)return t.reverse(),void(i&&i.reverse());for(var s,l,o,d,c=t.length,u=0;u<c;){if(a[u]>=e){for(o=u+1;o<c&&a[o]>=e;)o++;for(d=u,l=o-1;d<l;d++,l--)s=t[d],t[d]=t[l],t[l]=s,i&&(s=i[d],i[d]=i[l],i[l]=s);u=o}u++}}},C=function(e,t,n){var i=e.split(""),a={hiLevel:v};return n||(n=[]),w(i,n,a),function(e,t,n){if(0!==n.hiLevel&&o)for(var i,a=0;a<e.length;a++)1===t[a]&&(i=h.indexOf(e[a]))>=0&&(e[a]=h[i+1])}(i,n,a),j(2,i,t,n,a),j(1,i,t,n,a),i.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;void 0===r&&(r=y(e)),void 0===l&&(l=y(e))}(e,t),a||!s||l)if(a&&s&&r^l)v=r?1:0,e=b(e,t,n);else if(!a&&s&&l)v=r?1:0,e=C(e,t,n),e=b(e,t);else if(!a||r||s||l){if(a&&!s&&r^l)e=b(e,t),r?(v=0,e=C(e,t,n)):(v=1,e=C(e,t,n),e=b(e,t));else if(a&&r&&!s&&l)v=1,e=C(e,t,n),e=b(e,t);else if(!a&&!s&&r^l){var i=o;r?(v=1,e=C(e,t,n),v=0,o=!1,e=C(e,t,n),o=i):(v=0,e=C(e,t,n),e=b(e,t),v=1,o=!1,e=C(e,t,n),o=i,e=b(e,t))}}else v=0,e=C(e,t,n);else v=r?1:0,e=C(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(a=e.isInputVisual,s=e.isOutputVisual,r=e.isInputRtl,l=e.isOutputRtl,o=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text,i=(e.x,e.y,e.options||{}),a=(e.mutex,i.lang,[]);if(i.isInputVisual="boolean"!=typeof i.isInputVisual||i.isInputVisual,n.setOptions(i),"[object Array]"===Object.prototype.toString.call(t)){var r=0;for(a=[],r=0;r<t.length;r+=1)"[object Array]"===Object.prototype.toString.call(t[r])?a.push([n.doBidiReorder(t[r][0]),t[r][1],t[r][2]]):a.push([n.doBidiReorder(t[r])]);e.text=a}else e.text=n.doBidiReorder(t);n.setOptions({isInputVisual:!0})}])}(W8),W8.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new c9(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new B9(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new u9(this.contents),this.head=new h9(this),this.name=new b9(this),this.cmap=new m9(this),this.toUnicode={},this.hhea=new v9(this),this.maxp=new w9(this),this.hmtx=new j9(this),this.post=new y9(this),this.os2=new g9(this),this.loca=new F9(this),this.glyf=new S9(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,n,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,i,a;for(a=[],t=0,n=(i=this.bbox).length;t<n;t++)e=i[t],a.push(Math.round(e*this.scaleFactor));return a}.call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),!!(32768&(t=i>>16))&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(a=this.familyClass)||2===a||3===a||4===a||5===a||7===a,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var i,a,r,s;for(r=0,a=0,s=(e=""+e).length;0<=s?a<s:a>s;a=0<=s?++a:--a)i=e.charCodeAt(a),r+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/t)||0;return r*(t/1e3)},e.prototype.lineHeight=function(e,t){var n;return null==t&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var d9,c9=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(e){var t,n,i;for(i=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)i.push(this.writeByte(e.charCodeAt(t)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,i,a,r,s,l;return e=this.readByte(),t=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),r=this.readByte(),s=this.readByte(),l=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^a)+65536*(255^r)+256*(255^s)+(255^l)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*i+16777216*a+65536*r+256*s+l},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,i,a;for(a=[],n=0,i=e.length;n<i;n++)t=e[n],a.push(this.writeByte(t));return a},e}(),u9=function(){var e;function t(e){var t,n,i;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:n>i;n=0<=i?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,i,a,r,s,l,o,d,c,u,p,A,h;for(h in p=Object.keys(t).length,l=Math.log(2),c=16*Math.floor(Math.log(p)/l),r=Math.floor(c/l),d=16*p-c,(i=new c9).writeInt(this.scalarType),i.writeShort(p),i.writeShort(c),i.writeShort(r),i.writeShort(d),a=16*p,o=i.pos+a,s=null,A=[],t)for(u=t[h],i.writeString(h),i.writeInt(e(u)),i.writeInt(o),i.writeInt(u.length),A=A.concat(u),"head"===h&&(s=o),o+=u.length;o%4;)A.push(0),o++;return i.write(A),n=2981146554-e(i.data),i.pos=s+8,i.writeUInt32(n),i.data},e=function(e){var t,n,i,a;for(e=C9.call(e);e.length%4;)e.push(0);for(i=new c9(e),n=0,t=0,a=e.length;t<a;t=t+=4)n+=i.readUInt32();return 4294967295&n},t}(),p9={}.hasOwnProperty,A9=function(e,t){for(var n in t)p9.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e};d9=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var h9=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return A9(e,d9),e.prototype.tag="head",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},e.prototype.encode=function(e){var t;return(t=new c9).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},e}(),f9=function(){function e(e,t){var n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),c=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=e.readByte();break;case 4:for(p=e.readUInt16(),u=p/2,e.pos+=6,a=function(){var t,n;for(n=[],l=t=0;0<=u?t<u:t>u;l=0<=u?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,h=function(){var t,n;for(n=[],l=t=0;0<=u?t<u:t>u;l=0<=u?++t:--t)n.push(e.readUInt16());return n}(),o=function(){var t,n;for(n=[],l=t=0;0<=u?t<u:t>u;l=0<=u?++t:--t)n.push(e.readUInt16());return n}(),d=function(){var t,n;for(n=[],l=t=0;0<=u?t<u:t>u;l=0<=u?++t:--t)n.push(e.readUInt16());return n}(),i=(this.length-e.pos+this.offset)/2,s=function(){var t,n;for(n=[],l=t=0;0<=i?t<i:t>i;l=0<=i?++t:--t)n.push(e.readUInt16());return n}(),l=m=0,g=a.length;m<g;l=++m)for(f=a[l],n=v=A=h[l];A<=f?v<=f:v>=f;n=A<=f?++v:--v)0===d[l]?r=n+o[l]:0!==(r=s[d[l]/2+(n-A)-(u-l)]||0)&&(r+=o[l]),this.codeMap[n]=65535&r}e.pos=c}return e.encode=function(e,t){var n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B,P,k,T,E,D,L,U,_,O,M,R,Q,H,V,z,q,W,Y;switch(B=new c9,r=Object.keys(e).sort((function(e,t){return e-t})),t){case"macroman":for(h=0,f=function(){var e=[];for(A=0;A<256;++A)e.push(0);return e}(),v={0:0},a={},P=0,D=r.length;P<D;P++)null==v[z=e[i=r[P]]]&&(v[z]=++h),a[i]={old:e[i],new:v[e[i]]},f[i]=v[e[i]];return B.writeUInt16(1),B.writeUInt16(0),B.writeUInt32(12),B.writeUInt16(0),B.writeUInt16(262),B.writeUInt16(0),B.write(f),{charMap:a,subtable:B.data,maxGlyphID:h+1};case"unicode":for(I=[],c=[],g=0,v={},n={},m=o=null,k=0,L=r.length;k<L;k++)null==v[x=e[i=r[k]]]&&(v[x]=++g),n[i]={old:x,new:v[x]},s=v[x]-i,null!=m&&s===o||(m&&c.push(m),I.push(i),o=s),m=i;for(m&&c.push(m),c.push(65535),I.push(65535),S=2*(C=I.length),j=2*Math.pow(Math.log(C)/Math.LN2,2),u=Math.log(j/2)/Math.LN2,w=2*C-j,l=[],b=[],p=[],A=T=0,U=I.length;T<U;A=++T){if(N=I[A],d=c[A],65535===N){l.push(0),b.push(0);break}if(N-(F=n[N].new)>=32768)for(l.push(0),b.push(2*(p.length+C-A)),i=E=N;N<=d?E<=d:E>=d;i=N<=d?++E:--E)p.push(n[i].new);else l.push(F-N),b.push(0)}for(B.writeUInt16(3),B.writeUInt16(1),B.writeUInt32(12),B.writeUInt16(4),B.writeUInt16(16+8*C+2*p.length),B.writeUInt16(0),B.writeUInt16(S),B.writeUInt16(j),B.writeUInt16(u),B.writeUInt16(w),H=0,_=c.length;H<_;H++)i=c[H],B.writeUInt16(i);for(B.writeUInt16(0),V=0,O=I.length;V<O;V++)i=I[V],B.writeUInt16(i);for(q=0,M=l.length;q<M;q++)s=l[q],B.writeUInt16(s);for(W=0,R=b.length;W<R;W++)y=b[W],B.writeUInt16(y);for(Y=0,Q=p.length;Y<Q;Y++)h=p[Y],B.writeUInt16(h);return{charMap:n,subtable:B.data,maxGlyphID:g+1}}},e}(),m9=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return A9(e,d9),e.prototype.tag="cmap",e.prototype.parse=function(e){var t,n,i;for(e.pos=this.offset,this.version=e.readUInt16(),i=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)t=new f9(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},e.encode=function(e,t){var n,i;return null==t&&(t="macroman"),n=f9.encode(e,t),(i=new c9).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},e}(),v9=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return A9(e,d9),e.prototype.tag="hhea",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},e}(),g9=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return A9(e,d9),e.prototype.tag="OS/2",e.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},e}(),y9=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return A9(e,d9),e.prototype.tag="post",e.prototype.parse=function(e){var t,n,i;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var a;for(n=e.readUInt16(),this.glyphNameIndex=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],i=[];e.pos<this.offset+this.length;)t=e.readByte(),i.push(this.names.push(e.readString(t)));return i;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=function(){var t,n,i;for(i=[],a=t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:t>n;a=0<=n?++t:--t)i.push(e.readUInt32());return i}.call(this)}},e}(),x9=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},b9=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return A9(e,d9),e.prototype.tag="name",e.prototype.parse=function(e){var t,n,i,a,r,s,l,o,d,c,u;for(e.pos=this.offset,e.readShort(),t=e.readShort(),s=e.readShort(),n=[],a=0;0<=t?a<t:a>t;a=0<=t?++a:--a)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+s+e.readShort()});for(l={},a=d=0,c=n.length;d<c;a=++d)i=n[a],e.pos=i.offset,o=e.readString(i.length),r=new x9(o,i),null==l[u=i.nameID]&&(l[u]=[]),l[i.nameID].push(r);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(p){this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e}(),w9=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return A9(e,d9),e.prototype.tag="maxp",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},e}(),j9=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return A9(e,d9),e.prototype.tag="hmtx",e.prototype.parse=function(e){var t,n,i,a,r,s,l;for(e.pos=this.offset,this.metrics=[],t=0,s=this.file.hhea.numberOfMetrics;0<=s?t<s:t>s;t=0<=s?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,a;for(a=[],t=n=0;0<=i?n<i:n>i;t=0<=i?++n:--n)a.push(e.readInt16());return a}(),this.widths=function(){var e,t,n,i;for(i=[],e=0,t=(n=this.metrics).length;e<t;e++)a=n[e],i.push(a.advance);return i}.call(this),n=this.widths[this.widths.length-1],l=[],t=r=0;0<=i?r<i:r>i;t=0<=i?++r:--r)l.push(this.widths.push(n));return l},e.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},e}(),C9=[].slice,S9=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return A9(e,d9),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(e){var t,n,i,a,r,s,l,o,d,c;return e in this.cache?this.cache[e]:(a=this.file.loca,t=this.file.contents,n=a.indexOf(e),0===(i=a.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+n,r=(s=new c9(t.read(i))).readShort(),o=s.readShort(),c=s.readShort(),l=s.readShort(),d=s.readShort(),this.cache[e]=-1===r?new I9(s,o,c,l,d):new N9(s,r,o,c,l,d),this.cache[e]))},e.prototype.encode=function(e,t,n){var i,a,r,s,l;for(r=[],a=[],s=0,l=t.length;s<l;s++)i=e[t[s]],a.push(r.length),i&&(r=r.concat(i.encode(n)));return a.push(r.length),{table:r,offsets:a}},e}(),N9=function(){function e(e,t,n,i,a,r){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=i,this.xMax=a,this.yMax=r,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),I9=function(){function e(e,t,n,i,a){var r,s;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],r=this.raw;s=r.readShort(),this.glyphOffsets.push(r.pos),this.glyphIDs.push(r.readUInt16()),32&s;)r.pos+=1&s?4:2,128&s?r.pos+=8:64&s?r.pos+=4:8&s&&(r.pos+=2)}return e.prototype.encode=function(){var e,t,n;for(t=new c9(C9.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),F9=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return A9(e,d9),e.prototype.tag="loca",e.prototype.parse=function(e){var t,n;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,i;for(i=[],n=0,t=this.length;n<t;n+=2)i.push(2*e.readUInt16());return i}.call(this):function(){var t,i;for(i=[],n=0,t=this.length;n<t;n+=4)i.push(e.readUInt32());return i}.call(this)},e.prototype.indexOf=function(e){return this.offsets[e]},e.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},e.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),i=0,a=0,r=0;r<n.length;++r)if(n[r]=i,a<t.length&&t[a]==r){++a,n[r]=i;var s=this.offsets[r],l=this.offsets[r+1]-s;l>0&&(i+=l)}for(var o=new Array(4*n.length),d=0;d<n.length;++d)o[4*d+3]=255&n[d],o[4*d+2]=(65280&n[d])>>8,o[4*d+1]=(16711680&n[d])>>16,o[4*d]=(4278190080&n[d])>>24;return o},e}(),B9=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,i,a;for(t in i=this.font.cmap.tables[0].codeMap,e={},a=this.subset)n=a[t],e[t]=i[n];return e},e.prototype.glyphsFor=function(e){var t,n,i,a,r,s,l;for(i={},r=0,s=e.length;r<s;r++)i[a=e[r]]=this.font.glyf.glyphFor(a);for(a in t=[],i)(null!=(n=i[a])?n.compound:void 0)&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(a in l=this.glyphsFor(t))n=l[a],i[a]=n;return i},e.prototype.encode=function(e,t){var n,i,a,r,s,l,o,d,c,u,p,A,h,f,m;for(i in n=m9.encode(this.generateCmap(),"unicode"),r=this.glyphsFor(e),p={0:0},m=n.charMap)p[(l=m[i]).old]=l.new;for(A in u=n.maxGlyphID,r)A in p||(p[A]=u++);return d=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(p),c=Object.keys(d).sort((function(e,t){return e-t})),h=function(){var e,t,n;for(n=[],e=0,t=c.length;e<t;e++)s=c[e],n.push(d[s]);return n}(),a=this.font.glyf.encode(r,h,p),o=this.font.loca.encode(a.offsets,h),f={cmap:this.font.cmap.raw(),glyf:a.table,loca:o,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(f["OS/2"]=this.font.os2.raw()),this.font.directory.encode(f)},e}();W8.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(n){var i,a,r,s;if(Array.isArray(n))return"["+function(){var e,a,r;for(r=[],e=0,a=n.length;e<a;e++)i=n[e],r.push(t.convert(i));return r}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(a in r=["<<"],n)s=n[a],r.push("/"+a+" "+t.convert(s));return r.push(">>"),r.join("\n")}return""+n},t}();var P9=$p();const k9=c(P9),T9=Le({__proto__:null,default:k9},[P9]),E9=Ja("currency/getCurrency",(async()=>await fA.get("/currency"))),D9=Ja("currency/postCurrency",(async e=>await fA.post("/currency",e))),L9=Ja("currency/putCurrency",(async e=>await fA.put("/currency",e))),U9=Ja("currency/deleteCurrency",(async e=>await fA.delete("/currency",{params:e}))),_9=Ya({name:"curency",initialState:{currencyData:[]},extraReducers:e=>{e.addCase(E9.fulfilled,((e,t)=>{var n,i,a;(null==(n=null==t?void 0:t.payload)?void 0:n.status)?e.currencyData=null==(a=null==(i=null==t?void 0:t.payload)?void 0:i.data)?void 0:a.data:e.currencyData=[]}))}}),O9=e=>{var t;return null==(t=e.currencyPage)?void 0:t.currencyData},M9=_9.reducer,R9=[{name:"Home",link:"/landing-page/home"}],Q9=Ja("getPaymentMethod/getPaymentMethod",(async()=>await fA.get("/ccavenuePaymentDetails"))),H9=Ja("getPaymentMethod/getPaymentMethod",(async()=>await fA.get("/ccavenuePaymentDetails?activeStatus=A"))),V9=Ja("PostPaymentMethod/PostPaymentMethod",(async e=>await fA.post("/ccavenueDetails",e))),z9=Ja("PostPaymentMethod/PutPaymentMethod",(async e=>await fA.put("/ccavenueDetails",e))),q9=Ja("GetPaymentMethod/GetPaymentGatewayconfig",(async()=>await fA.get("/PaymentGatewayConfig"))),W9=Ja("GetAdminData",(async({AppId:e,Type:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await Ne.get(`https://www.pozo.dev/pozo-common-api/UAMFeatAddon?Type=${t}&AppId=${e}`)})),Y9=Ja("PostPaymentMethod/PostPaymentGatewayconfig",(async e=>await fA.post("/PaymentGatewayConfig",e))),K9=Ja("PostPaymentMethod/DeletePaymentGatewayconfig",(async e=>await fA.delete(`/PaymentGatewayConfig?uniqueId=${null==e?void 0:e.uniqueId}&updatedBy=${null==e?void 0:e.UpdatedBy}&activeStatus=${null==e?void 0:e.ActiveStatus}`))),G9=Ja("PutPaymentGatewayconfig/PutPaymentGatewayconfig",(async e=>await fA.put("/PaymentGatewayconfig",e))),$9=Ja("deletePaymentMethod/deletePaymentMethod",(async e=>{if((null==e?void 0:e.MethodId)&&(null==e?void 0:e.ActiveStatus))return await fA.delete(`/ccavenuePaymentMethod?methodId=${null==e?void 0:e.MethodId}&activeStatus=${null==e?void 0:e.ActiveStatus}`)})),X9=Ja("deletePaymentMethod/deletePaymentMethod",(async e=>{if((null==e?void 0:e.UniqueId)&&(null==e?void 0:e.ActiveStatus))return await fA.delete(`/ccavenueDetails?uniqueId=${null==e?void 0:e.UniqueId}&activeStatus=${null==e?void 0:e.ActiveStatus}`)}));var J9={exports:{}};
|
||
/*!
|
||
* jQuery JavaScript Library v3.7.1
|
||
* https://jquery.com/
|
||
*
|
||
* Copyright OpenJS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://jquery.org/license
|
||
*
|
||
* Date: 2023-08-28T13:37Z
|
||
*/!function(e){!function(t,n){e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}}("undefined"!=typeof window?window:d,(function(e,t){var n=[],i=Object.getPrototypeOf,a=n.slice,r=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},s=n.push,l=n.indexOf,o={},d=o.toString,c=o.hasOwnProperty,u=c.toString,p=u.call(Object),A={},h=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},f=function(e){return null!=e&&e===e.window},m=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function g(e,t,n){var i,a,r=(n=n||m).createElement("script");if(r.text=e,t)for(i in v)(a=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,a);n.head.appendChild(r).parentNode.removeChild(r)}function y(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?o[d.call(e)]||"object":typeof e}var x="3.7.1",b=/HTML$/i,w=function(e,t){return new w.fn.init(e,t)};function j(e){var t=!!e&&"length"in e&&e.length,n=y(e);return!h(e)&&!f(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}w.fn=w.prototype={jquery:x,constructor:w,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var e,t,n,i,a,r,s=arguments[0]||{},l=1,o=arguments.length,d=!1;for("boolean"==typeof s&&(d=s,s=arguments[l]||{},l++),"object"==typeof s||h(s)||(s={}),l===o&&(s=this,l--);l<o;l++)if(null!=(e=arguments[l]))for(t in e)i=e[t],"__proto__"!==t&&s!==i&&(d&&i&&(w.isPlainObject(i)||(a=Array.isArray(i)))?(n=s[t],r=a&&!Array.isArray(n)?[]:a||w.isPlainObject(n)?n:{},a=!1,s[t]=w.extend(d,r,i)):void 0!==i&&(s[t]=i));return s},w.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e))&&(!(t=i(e))||"function"==typeof(n=c.call(t,"constructor")&&t.constructor)&&u.call(n)===p)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){g(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(j(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,a=e.nodeType;if(!a)for(;t=e[i++];)n+=w.text(t);return 1===a||11===a?e.textContent:9===a?e.documentElement.textContent:3===a||4===a?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(j(Object(e))?w.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!b.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,a=e.length;i<n;i++)e[a++]=t[i];return e.length=a,e},grep:function(e,t,n){for(var i=[],a=0,r=e.length,s=!n;a<r;a++)!t(e[a],a)!==s&&i.push(e[a]);return i},map:function(e,t,n){var i,a,s=0,l=[];if(j(e))for(i=e.length;s<i;s++)null!=(a=t(e[s],s,n))&&l.push(a);else for(s in e)null!=(a=t(e[s],s,n))&&l.push(a);return r(l)},guid:1,support:A}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){o["[object "+t+"]"]=t.toLowerCase()}));var S=n.pop,N=n.sort,I=n.splice,F="[\\x20\\t\\r\\n\\f]",B=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g");w.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var P=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function k(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}w.escapeSelector=function(e){return(e+"").replace(P,k)};var T=m,E=s;!function(){var t,i,r,s,o,d,u,p,h,f,m=E,v=w.expando,g=0,y=0,x=ee(),b=ee(),j=ee(),P=ee(),k=function(e,t){return e===t&&(o=!0),0},D="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="(?:\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+F+"*("+L+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+F+"*\\]",_=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",O=new RegExp(F+"+","g"),M=new RegExp("^"+F+"*,"+F+"*"),R=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),Q=new RegExp(F+"|>"),H=new RegExp(_),V=new RegExp("^"+L+"$"),z={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+_),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,G=new RegExp("\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\([^\\r\\n\\f])","g"),$=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){oe()},J=pe((function(e){return!0===e.disabled&&C(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(n=a.call(T.childNodes),T.childNodes),n[T.childNodes.length].nodeType}catch(Ou){m={apply:function(e,t){E.apply(e,a.call(t))},call:function(e){E.apply(e,a.call(arguments,1))}}}function Z(e,t,n,i){var a,r,s,l,o,c,u,f=t&&t.ownerDocument,g=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==g&&9!==g&&11!==g)return n;if(!i&&(oe(t),t=t||d,p)){if(11!==g&&(o=Y.exec(e)))if(a=o[1]){if(9===g){if(!(s=t.getElementById(a)))return n;if(s.id===a)return m.call(n,s),n}else if(f&&(s=f.getElementById(a))&&Z.contains(t,s)&&s.id===a)return m.call(n,s),n}else{if(o[2])return m.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(a)),n}if(!(P[e+" "]||h&&h.test(e))){if(u=e,f=t,1===g&&(Q.test(e)||R.test(e))){for((f=K.test(e)&&le(t.parentNode)||t)==t&&A.scope||((l=t.getAttribute("id"))?l=w.escapeSelector(l):t.setAttribute("id",l=v)),r=(c=ce(e)).length;r--;)c[r]=(l?"#"+l:":scope")+" "+ue(c[r]);u=c.join(",")}try{return m.apply(n,f.querySelectorAll(u)),n}catch(y){P(e,!0)}finally{l===v&&t.removeAttribute("id")}}}return ge(e.replace(B,"$1"),t,n,i)}function ee(){var e=[];return function t(n,a){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=a}}function te(e){return e[v]=!0,e}function ne(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(Ou){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return C(t,"input")&&t.type===e}}function ae(e){return function(t){return(C(t,"input")||C(t,"button"))&&t.type===e}}function re(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&J(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function se(e){return te((function(t){return t=+t,te((function(n,i){for(var a,r=e([],n.length,t),s=r.length;s--;)n[a=r[s]]&&(n[a]=!(i[a]=n[a]))}))}))}function le(e){return e&&void 0!==e.getElementsByTagName&&e}function oe(e){var t,n=e?e.ownerDocument||e:T;return n!=d&&9===n.nodeType&&n.documentElement?(u=(d=n).documentElement,p=!w.isXMLDoc(d),f=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&T!=d&&(t=d.defaultView)&&t.top!==t&&t.addEventListener("unload",X),A.getById=ne((function(e){return u.appendChild(e).id=w.expando,!d.getElementsByName||!d.getElementsByName(w.expando).length})),A.disconnectedMatch=ne((function(e){return f.call(e,"*")})),A.scope=ne((function(){return d.querySelectorAll(":scope")})),A.cssHas=ne((function(){try{return d.querySelector(":has(*,:jqfake)"),!1}catch(Ou){return!0}})),A.getById?(i.filter.ID=function(e){var t=e.replace(G,$);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(G,$);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n,i,a,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(a=t.getElementsByName(e),i=0;r=a[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),i.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},i.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&p)return t.getElementsByClassName(e)},h=[],ne((function(e){var t;u.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+F+"*(?:value|"+D+")"),e.querySelectorAll("[id~="+v+"-]").length||h.push("~="),e.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=d.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),u.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=d.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+F+"*name"+F+"*="+F+"*(?:''|\"\")")})),A.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),k=function(e,t){if(e===t)return o=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!A.sortDetached&&t.compareDocumentPosition(e)===n?e===d||e.ownerDocument==T&&Z.contains(T,e)?-1:t===d||t.ownerDocument==T&&Z.contains(T,t)?1:s?l.call(s,e)-l.call(s,t):0:4&n?-1:1)},d):d}for(t in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(oe(e),p&&!P[t+" "]&&(!h||!h.test(t)))try{var n=f.call(e,t);if(n||A.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(Ou){P(t,!0)}return Z(t,d,null,[e]).length>0},Z.contains=function(e,t){return(e.ownerDocument||e)!=d&&oe(e),w.contains(e,t)},Z.attr=function(e,t){(e.ownerDocument||e)!=d&&oe(e);var n=i.attrHandle[t.toLowerCase()],a=n&&c.call(i.attrHandle,t.toLowerCase())?n(e,t,!p):void 0;return void 0!==a?a:e.getAttribute(t)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},w.uniqueSort=function(e){var t,n=[],i=0,r=0;if(o=!A.sortStable,s=!A.sortStable&&a.call(e,0),N.call(e,k),o){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)I.call(e,n[i],1)}return s=null,e},w.fn.uniqueSort=function(){return this.pushStack(w.uniqueSort(a.apply(this)))},i=w.expr={cacheLength:50,createPseudo:te,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(G,$),e[3]=(e[3]||e[4]||e[5]||"").replace(G,$),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&H.test(n)&&(t=ce(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(G,$).toLowerCase();return"*"===e?function(){return!0}:function(e){return C(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&x(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var a=Z.attr(i,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(O," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,a){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),l="of-type"===t;return 1===i&&0===a?function(e){return!!e.parentNode}:function(t,n,o){var d,c,u,p,A,h=r!==s?"nextSibling":"previousSibling",f=t.parentNode,m=l&&t.nodeName.toLowerCase(),y=!o&&!l,x=!1;if(f){if(r){for(;h;){for(u=t;u=u[h];)if(l?C(u,m):1===u.nodeType)return!1;A=h="only"===e&&!A&&"nextSibling"}return!0}if(A=[s?f.firstChild:f.lastChild],s&&y){for(x=(p=(d=(c=f[v]||(f[v]={}))[e]||[])[0]===g&&d[1])&&d[2],u=p&&f.childNodes[p];u=++p&&u&&u[h]||(x=p=0)||A.pop();)if(1===u.nodeType&&++x&&u===t){c[e]=[g,p,x];break}}else if(y&&(x=p=(d=(c=t[v]||(t[v]={}))[e]||[])[0]===g&&d[1]),!1===x)for(;(u=++p&&u&&u[h]||(x=p=0)||A.pop())&&(!(l?C(u,m):1===u.nodeType)||!++x||(y&&((c=u[v]||(u[v]={}))[e]=[g,x]),u!==t)););return(x-=a)===i||x%i===0&&x/i>=0}}},PSEUDO:function(e,t){var n,a=i.pseudos[e]||i.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return a[v]?a(t):a.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,n){for(var i,r=a(e,t),s=r.length;s--;)e[i=l.call(e,r[s])]=!(n[i]=r[s])})):function(e){return a(e,0,n)}):a}},pseudos:{not:te((function(e){var t=[],n=[],i=ve(e.replace(B,"$1"));return i[v]?te((function(e,t,n,a){for(var r,s=i(e,null,a,[]),l=e.length;l--;)(r=s[l])&&(e[l]=!(t[l]=r))})):function(e,a,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Z(e,t).length>0}})),contains:te((function(e){return e=e.replace(G,$),function(t){return(t.textContent||w.text(t)).indexOf(e)>-1}})),lang:te((function(e){return V.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(G,$).toLowerCase(),function(t){var n;do{if(n=p?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===u},focus:function(e){return e===function(){try{return d.activeElement}catch(e){}}()&&d.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:re(!1),disabled:re(!0),checked:function(e){return C(e,"input")&&!!e.checked||C(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return W.test(e.nodeName)},input:function(e){return q.test(e.nodeName)},button:function(e){return C(e,"input")&&"button"===e.type||C(e,"button")},text:function(e){var t;return C(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:se((function(){return[0]})),last:se((function(e,t){return[t-1]})),eq:se((function(e,t,n){return[n<0?n+t:n]})),even:se((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:se((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:se((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:se((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},i.pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=ie(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=ae(t);function de(){}function ce(e,t){var n,a,r,s,l,o,d,c=b[e+" "];if(c)return t?0:c.slice(0);for(l=e,o=[],d=i.preFilter;l;){for(s in n&&!(a=M.exec(l))||(a&&(l=l.slice(a[0].length)||l),o.push(r=[])),n=!1,(a=R.exec(l))&&(n=a.shift(),r.push({value:n,type:a[0].replace(B," ")}),l=l.slice(n.length)),i.filter)!(a=z[s].exec(l))||d[s]&&!(a=d[s](a))||(n=a.shift(),r.push({value:n,type:s,matches:a}),l=l.slice(n.length));if(!n)break}return t?l.length:l?Z.error(e):b(e,o).slice(0)}function ue(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function pe(e,t,n){var i=t.dir,a=t.next,r=a||i,s=n&&"parentNode"===r,l=y++;return t.first?function(t,n,a){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,a);return!1}:function(t,n,o){var d,c,u=[g,l];if(o){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,o))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(c=t[v]||(t[v]={}),a&&C(t,a))t=t[i]||t;else{if((d=c[r])&&d[0]===g&&d[1]===l)return u[2]=d[2];if(c[r]=u,u[2]=e(t,n,o))return!0}return!1}}function Ae(e){return e.length>1?function(t,n,i){for(var a=e.length;a--;)if(!e[a](t,n,i))return!1;return!0}:e[0]}function he(e,t,n,i,a){for(var r,s=[],l=0,o=e.length,d=null!=t;l<o;l++)(r=e[l])&&(n&&!n(r,i,a)||(s.push(r),d&&t.push(l)));return s}function fe(e,t,n,i,a,r){return i&&!i[v]&&(i=fe(i)),a&&!a[v]&&(a=fe(a,r)),te((function(r,s,o,d){var c,u,p,A,h=[],f=[],v=s.length,g=r||function(e,t,n){for(var i=0,a=t.length;i<a;i++)Z(e,t[i],n);return n}(t||"*",o.nodeType?[o]:o,[]),y=!e||!r&&t?g:he(g,h,e,o,d);if(n?n(y,A=a||(r?e:v||i)?[]:s,o,d):A=y,i)for(c=he(A,f),i(c,[],o,d),u=c.length;u--;)(p=c[u])&&(A[f[u]]=!(y[f[u]]=p));if(r){if(a||e){if(a){for(c=[],u=A.length;u--;)(p=A[u])&&c.push(y[u]=p);a(null,A=[],c,d)}for(u=A.length;u--;)(p=A[u])&&(c=a?l.call(r,p):h[u])>-1&&(r[c]=!(s[c]=p))}}else A=he(A===s?A.splice(v,A.length):A),a?a(null,s,A,d):m.apply(s,A)}))}function me(e){for(var t,n,a,s=e.length,o=i.relative[e[0].type],d=o||i.relative[" "],c=o?1:0,u=pe((function(e){return e===t}),d,!0),p=pe((function(e){return l.call(t,e)>-1}),d,!0),A=[function(e,n,i){var a=!o&&(i||n!=r)||((t=n).nodeType?u(e,n,i):p(e,n,i));return t=null,a}];c<s;c++)if(n=i.relative[e[c].type])A=[pe(Ae(A),n)];else{if((n=i.filter[e[c].type].apply(null,e[c].matches))[v]){for(a=++c;a<s&&!i.relative[e[a].type];a++);return fe(c>1&&Ae(A),c>1&&ue(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(B,"$1"),n,c<a&&me(e.slice(c,a)),a<s&&me(e=e.slice(a)),a<s&&ue(e))}A.push(n)}return Ae(A)}function ve(e,t){var n,a=[],s=[],l=j[e+" "];if(!l){for(t||(t=ce(e)),n=t.length;n--;)(l=me(t[n]))[v]?a.push(l):s.push(l);l=j(e,function(e,t){var n=t.length>0,a=e.length>0,s=function(s,l,o,c,u){var A,h,f,v=0,y="0",x=s&&[],b=[],j=r,C=s||a&&i.find.TAG("*",u),N=g+=null==j?1:Math.random()||.1,I=C.length;for(u&&(r=l==d||l||u);y!==I&&null!=(A=C[y]);y++){if(a&&A){for(h=0,l||A.ownerDocument==d||(oe(A),o=!p);f=e[h++];)if(f(A,l||d,o)){m.call(c,A);break}u&&(g=N)}n&&((A=!f&&A)&&v--,s&&x.push(A))}if(v+=y,n&&y!==v){for(h=0;f=t[h++];)f(x,b,l,o);if(s){if(v>0)for(;y--;)x[y]||b[y]||(b[y]=S.call(c));b=he(b)}m.apply(c,b),u&&!s&&b.length>0&&v+t.length>1&&w.uniqueSort(c)}return u&&(g=N,r=j),x};return n?te(s):s}(s,a)),l.selector=e}return l}function ge(e,t,n,a){var r,s,l,o,d,c="function"==typeof e&&e,u=!a&&ce(e=c.selector||e);if(n=n||[],1===u.length){if((s=u[0]=u[0].slice(0)).length>2&&"ID"===(l=s[0]).type&&9===t.nodeType&&p&&i.relative[s[1].type]){if(!(t=(i.find.ID(l.matches[0].replace(G,$),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(r=z.needsContext.test(e)?0:s.length;r--&&(l=s[r],!i.relative[o=l.type]);)if((d=i.find[o])&&(a=d(l.matches[0].replace(G,$),K.test(s[0].type)&&le(t.parentNode)||t))){if(s.splice(r,1),!(e=a.length&&ue(s)))return m.apply(n,a),n;break}}return(c||ve(e,u))(a,t,!p,n,!t||K.test(e)&&le(t.parentNode)||t),n}de.prototype=i.filters=i.pseudos,i.setFilters=new de,A.sortStable=v.split("").sort(k).join("")===v,oe(),A.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),w.find=Z,w.expr[":"]=w.expr.pseudos,w.unique=w.uniqueSort,Z.compile=ve,Z.select=ge,Z.setDocument=oe,Z.tokenize=ce,Z.escape=w.escapeSelector,Z.getText=w.text,Z.isXML=w.isXMLDoc,Z.selectors=w.expr,Z.support=w.support,Z.uniqueSort=w.uniqueSort}();var D=function(e,t,n){for(var i=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&w(e).is(n))break;i.push(e)}return i},L=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},U=w.expr.match.needsContext,_=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,t,n){return h(t)?w.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?w.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?w.grep(e,(function(e){return l.call(t,e)>-1!==n})):w.filter(t,e,n)}w.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?w.find.matchesSelector(i,e)?[i]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,n,i=this.length,a=this;if("string"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t<i;t++)if(w.contains(a[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)w.find(e,a[t],n);return i>1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(O(this,e||[],!1))},not:function(e){return this.pushStack(O(this,e||[],!0))},is:function(e){return!!O(this,"string"==typeof e&&U.test(e)?w(e):e||[],!1).length}});var M,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Q=w.fn.init=function(e,t,n){var i,a;if(!e)return this;if(n=n||M,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:R.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),_.test(i[1])&&w.isPlainObject(t))for(i in t)h(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(a=m.getElementById(i[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):h(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)};Q.prototype=w.fn,M=w(m);var H=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function z(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,a=this.length,r=[],s="string"!=typeof e&&w(e);if(!U.test(e))for(;i<a;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?w.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?l.call(w(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return D(e,"parentNode")},parentsUntil:function(e,t,n){return D(e,"parentNode",n)},next:function(e){return z(e,"nextSibling")},prev:function(e){return z(e,"previousSibling")},nextAll:function(e){return D(e,"nextSibling")},prevAll:function(e){return D(e,"previousSibling")},nextUntil:function(e,t,n){return D(e,"nextSibling",n)},prevUntil:function(e,t,n){return D(e,"previousSibling",n)},siblings:function(e){return L((e.parentNode||{}).firstChild,e)},children:function(e){return L(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(n,i){var a=w.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(a=w.filter(i,a)),this.length>1&&(V[e]||w.uniqueSort(a),H.test(e)&&a.reverse()),this.pushStack(a)}}));var q=/[^\x20\t\r\n\f]+/g;function W(e){return e}function Y(e){throw e}function K(e,t,n,i){var a;try{e&&h(a=e.promise)?a.call(e).done(t).fail(n):e&&h(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(r){n.apply(void 0,[r])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(q)||[],(function(e,n){t[n]=!0})),t}(e):w.extend({},e);var t,n,i,a,r=[],s=[],l=-1,o=function(){for(a=a||e.once,i=t=!0;s.length;l=-1)for(n=s.shift();++l<r.length;)!1===r[l].apply(n[0],n[1])&&e.stopOnFalse&&(l=r.length,n=!1);e.memory||(n=!1),t=!1,a&&(r=n?[]:"")},d={add:function(){return r&&(n&&!t&&(l=r.length-1,s.push(n)),function t(n){w.each(n,(function(n,i){h(i)?e.unique&&d.has(i)||r.push(i):i&&i.length&&"string"!==y(i)&&t(i)}))}(arguments),n&&!t&&o()),this},remove:function(){return w.each(arguments,(function(e,t){for(var n;(n=w.inArray(t,r,n))>-1;)r.splice(n,1),n<=l&&l--})),this},has:function(e){return e?w.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return a=s=[],r=n="",this},disabled:function(){return!r},lock:function(){return a=s=[],n||t||(r=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||o()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(t){w.each(n,(function(n,i){var a=h(e[i[4]])&&e[i[4]];r[i[1]]((function(){var e=a&&a.apply(this,arguments);e&&h(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(t,i,a){var r=0;function s(t,n,i,a){return function(){var l=this,o=arguments,d=function(){var e,d;if(!(t<r)){if((e=i.apply(l,o))===n.promise())throw new TypeError("Thenable self-resolution");d=e&&("object"==typeof e||"function"==typeof e)&&e.then,h(d)?a?d.call(e,s(r,n,W,a),s(r,n,Y,a)):(r++,d.call(e,s(r,n,W,a),s(r,n,Y,a),s(r,n,W,n.notifyWith))):(i!==W&&(l=void 0,o=[e]),(a||n.resolveWith)(l,o))}},c=a?d:function(){try{d()}catch(Ou){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(Ou,c.error),t+1>=r&&(i!==Y&&(l=void 0,o=[Ou]),n.rejectWith(l,o))}};t?c():(w.Deferred.getErrorHook?c.error=w.Deferred.getErrorHook():w.Deferred.getStackHook&&(c.error=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred((function(e){n[0][3].add(s(0,e,h(a)?a:W,e.notifyWith)),n[1][3].add(s(0,e,h(t)?t:W)),n[2][3].add(s(0,e,h(i)?i:Y))})).promise()},promise:function(e){return null!=e?w.extend(e,a):a}},r={};return w.each(n,(function(e,t){var s=t[2],l=t[5];a[t[1]]=s.add,l&&s.add((function(){i=l}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),s.add(t[3].fire),r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this},r[t[0]+"With"]=s.fireWith})),a.promise(r),t&&t.call(r,r),r},when:function(e){var t=arguments.length,n=t,i=Array(n),r=a.call(arguments),s=w.Deferred(),l=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?a.call(arguments):n,--t||s.resolveWith(i,r)}};if(t<=1&&(K(e,s.done(l(n)).resolve,s.reject,!t),"pending"===s.state()||h(r[n]&&r[n].then)))return s.then();for(;n--;)K(r[n],l(n),s.reject);return s.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&G.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout((function(){throw t}))};var $=w.Deferred();function X(){m.removeEventListener("DOMContentLoaded",X),e.removeEventListener("load",X),w.ready()}w.fn.ready=function(e){return $.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||$.resolveWith(m,[w]))}}),w.ready.then=$.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(w.ready):(m.addEventListener("DOMContentLoaded",X),e.addEventListener("load",X));var J=function(e,t,n,i,a,r,s){var l=0,o=e.length,d=null==n;if("object"===y(n))for(l in a=!0,n)J(e,t,l,n[l],!0,r,s);else if(void 0!==i&&(a=!0,h(i)||(s=!0),d&&(s?(t.call(e,i),t=null):(d=t,t=function(e,t,n){return d.call(w(e),n)})),t))for(;l<o;l++)t(e[l],n,s?i:i.call(e[l],l,t(e[l],n)));return a?e:d?t.call(e):o?t(e[0],n):r},Z=/^-ms-/,ee=/-([a-z])/g;function te(e,t){return t.toUpperCase()}function ne(e){return e.replace(Z,"ms-").replace(ee,te)}var ie=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=w.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ie(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,a=this.cache(e);if("string"==typeof t)a[ne(t)]=n;else for(i in t)a[ne(i)]=t[i];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ne(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ne):(t=ne(t))in i?[t]:t.match(q)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||w.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var re=new ae,se=new ae,le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,oe=/[A-Z]/g;function de(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(oe,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:le.test(e)?JSON.parse(e):e)}(n)}catch(Ou){}se.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return se.hasData(e)||re.hasData(e)},data:function(e,t,n){return se.access(e,t,n)},removeData:function(e,t){se.remove(e,t)},_data:function(e,t,n){return re.access(e,t,n)},_removeData:function(e,t){re.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,i,a,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(a=se.get(r),1===r.nodeType&&!re.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=ne(i.slice(5)),de(r,i,a[i]));re.set(r,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each((function(){se.set(this,e)})):J(this,(function(t){var n;if(r&&void 0===t)return void 0!==(n=se.get(r,e))||void 0!==(n=de(r,e))?n:void 0;this.each((function(){se.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){se.remove(this,e)}))}}),w.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=re.get(e,t),n&&(!i||Array.isArray(n)?i=re.access(e,t,w.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),i=n.length,a=n.shift(),r=w._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),i--),a&&("fx"===t&&n.unshift("inprogress"),delete r.stop,a.call(e,(function(){w.dequeue(e,t)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return re.get(e,n)||re.access(e,n,{empty:w.Callbacks("once memory").add((function(){re.remove(e,[t+"queue",n])}))})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each((function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){w.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,a=w.Deferred(),r=this,s=this.length,l=function(){--i||a.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=re.get(r[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(l));return l(),a.promise(t)}});var ce=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ue=new RegExp("^(?:([+-])=|)("+ce+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],Ae=m.documentElement,he=function(e){return w.contains(e.ownerDocument,e)},fe={composed:!0};Ae.getRootNode&&(he=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(fe)===e.ownerDocument});var me=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&he(e)&&"none"===w.css(e,"display")};function ve(e,t,n,i){var a,r,s=20,l=i?function(){return i.cur()}:function(){return w.css(e,t,"")},o=l(),d=n&&n[3]||(w.cssNumber[t]?"":"px"),c=e.nodeType&&(w.cssNumber[t]||"px"!==d&&+o)&&ue.exec(w.css(e,t));if(c&&c[3]!==d){for(o/=2,d=d||c[3],c=+o||1;s--;)w.style(e,t,c+d),(1-r)*(1-(r=l()/o||.5))<=0&&(s=0),c/=r;c*=2,w.style(e,t,c+d),n=n||[]}return n&&(c=+c||+o||0,a=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=d,i.start=c,i.end=a)),a}var ge={};function ye(e){var t,n=e.ownerDocument,i=e.nodeName,a=ge[i];return a||(t=n.body.appendChild(n.createElement(i)),a=w.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),ge[i]=a,a)}function xe(e,t){for(var n,i,a=[],r=0,s=e.length;r<s;r++)(i=e[r]).style&&(n=i.style.display,t?("none"===n&&(a[r]=re.get(i,"display")||null,a[r]||(i.style.display="")),""===i.style.display&&me(i)&&(a[r]=ye(i))):"none"!==n&&(a[r]="none",re.set(i,"display",n)));for(r=0;r<s;r++)null!=a[r]&&(e[r].style.display=a[r]);return e}w.fn.extend({show:function(){return xe(this,!0)},hide:function(){return xe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){me(this)?w(this).show():w(this).hide()}))}});var be,we,je=/^(?:checkbox|radio)$/i,Ce=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Se=/^$|^module$|\/(?:java|ecma)script/i;be=m.createDocumentFragment().appendChild(m.createElement("div")),(we=m.createElement("input")).setAttribute("type","radio"),we.setAttribute("checked","checked"),we.setAttribute("name","t"),be.appendChild(we),A.checkClone=be.cloneNode(!0).cloneNode(!0).lastChild.checked,be.innerHTML="<textarea>x</textarea>",A.noCloneChecked=!!be.cloneNode(!0).lastChild.defaultValue,be.innerHTML="<option></option>",A.option=!!be.lastChild;var Ne={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ie(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?w.merge([e],n):n}function Fe(e,t){for(var n=0,i=e.length;n<i;n++)re.set(e[n],"globalEval",!t||re.get(t[n],"globalEval"))}Ne.tbody=Ne.tfoot=Ne.colgroup=Ne.caption=Ne.thead,Ne.th=Ne.td,A.option||(Ne.optgroup=Ne.option=[1,"<select multiple='multiple'>","</select>"]);var Be=/<|&#?\w+;/;function Pe(e,t,n,i,a){for(var r,s,l,o,d,c,u=t.createDocumentFragment(),p=[],A=0,h=e.length;A<h;A++)if((r=e[A])||0===r)if("object"===y(r))w.merge(p,r.nodeType?[r]:r);else if(Be.test(r)){for(s=s||u.appendChild(t.createElement("div")),l=(Ce.exec(r)||["",""])[1].toLowerCase(),o=Ne[l]||Ne._default,s.innerHTML=o[1]+w.htmlPrefilter(r)+o[2],c=o[0];c--;)s=s.lastChild;w.merge(p,s.childNodes),(s=u.firstChild).textContent=""}else p.push(t.createTextNode(r));for(u.textContent="",A=0;r=p[A++];)if(i&&w.inArray(r,i)>-1)a&&a.push(r);else if(d=he(r),s=Ie(u.appendChild(r),"script"),d&&Fe(s),n)for(c=0;r=s[c++];)Se.test(r.type||"")&&n.push(r);return u}var ke=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Ee(){return!1}function De(e,t,n,i,a,r){var s,l;if("object"==typeof t){for(l in"string"!=typeof n&&(i=i||n,n=void 0),t)De(e,l,n,i,t[l],r);return e}if(null==i&&null==a?(a=n,i=n=void 0):null==a&&("string"==typeof n?(a=i,i=void 0):(a=i,i=n,n=void 0)),!1===a)a=Ee;else if(!a)return e;return 1===r&&(s=a,a=function(e){return w().off(e),s.apply(this,arguments)},a.guid=s.guid||(s.guid=w.guid++)),e.each((function(){w.event.add(this,t,a,i,n)}))}function Le(e,t,n){n?(re.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var n,i=re.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=a.call(arguments),re.set(this,t,i),this[t](),n=re.get(this,t),re.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(re.set(this,t,w.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Te)}})):void 0===re.get(e,t)&&w.event.add(e,t,Te)}w.event={global:{},add:function(e,t,n,i,a){var r,s,l,o,d,c,u,p,A,h,f,m=re.get(e);if(ie(e))for(n.handler&&(n=(r=n).handler,a=r.selector),a&&w.find.matchesSelector(Ae,a),n.guid||(n.guid=w.guid++),(o=m.events)||(o=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),d=(t=(t||"").match(q)||[""]).length;d--;)A=f=(l=ke.exec(t[d])||[])[1],h=(l[2]||"").split(".").sort(),A&&(u=w.event.special[A]||{},A=(a?u.delegateType:u.bindType)||A,u=w.event.special[A]||{},c=w.extend({type:A,origType:f,data:i,handler:n,guid:n.guid,selector:a,needsContext:a&&w.expr.match.needsContext.test(a),namespace:h.join(".")},r),(p=o[A])||((p=o[A]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,i,h,s)||e.addEventListener&&e.addEventListener(A,s)),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),a?p.splice(p.delegateCount++,0,c):p.push(c),w.event.global[A]=!0)},remove:function(e,t,n,i,a){var r,s,l,o,d,c,u,p,A,h,f,m=re.hasData(e)&&re.get(e);if(m&&(o=m.events)){for(d=(t=(t||"").match(q)||[""]).length;d--;)if(A=f=(l=ke.exec(t[d])||[])[1],h=(l[2]||"").split(".").sort(),A){for(u=w.event.special[A]||{},p=o[A=(i?u.delegateType:u.bindType)||A]||[],l=l[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=p.length;r--;)c=p[r],!a&&f!==c.origType||n&&n.guid!==c.guid||l&&!l.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(p.splice(r,1),c.selector&&p.delegateCount--,u.remove&&u.remove.call(e,c));s&&!p.length&&(u.teardown&&!1!==u.teardown.call(e,h,m.handle)||w.removeEvent(e,A,m.handle),delete o[A])}else for(A in o)w.event.remove(e,A+t[d],n,i,!0);w.isEmptyObject(o)&&re.remove(e,"handle events")}},dispatch:function(e){var t,n,i,a,r,s,l=new Array(arguments.length),o=w.event.fix(e),d=(re.get(this,"events")||Object.create(null))[o.type]||[],c=w.event.special[o.type]||{};for(l[0]=o,t=1;t<arguments.length;t++)l[t]=arguments[t];if(o.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,o)){for(s=w.event.handlers.call(this,o,d),t=0;(a=s[t++])&&!o.isPropagationStopped();)for(o.currentTarget=a.elem,n=0;(r=a.handlers[n++])&&!o.isImmediatePropagationStopped();)o.rnamespace&&!1!==r.namespace&&!o.rnamespace.test(r.namespace)||(o.handleObj=r,o.data=r.data,void 0!==(i=((w.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,l))&&!1===(o.result=i)&&(o.preventDefault(),o.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,o),o.result}},handlers:function(e,t){var n,i,a,r,s,l=[],o=t.delegateCount,d=e.target;if(o&&d.nodeType&&!("click"===e.type&&e.button>=1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==e.type||!0!==d.disabled)){for(r=[],s={},n=0;n<o;n++)void 0===s[a=(i=t[n]).selector+" "]&&(s[a]=i.needsContext?w(a,this).index(d)>-1:w.find(a,this,null,[d]).length),s[a]&&r.push(i);r.length&&l.push({elem:d,handlers:r})}return d=this,o<t.length&&l.push({elem:d,handlers:t.slice(o)}),l},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:h(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return je.test(t.type)&&t.click&&C(t,"input")&&Le(t,"click",!0),!1},trigger:function(e){var t=this||e;return je.test(t.type)&&t.click&&C(t,"input")&&Le(t,"click"),!0},_default:function(e){var t=e.target;return je.test(t.type)&&t.click&&C(t,"input")&&re.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(m.documentMode){var n=re.get(this,"handle"),i=w.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else w.event.simulate(t,e.target,w.event.fix(e))}w.event.special[e]={setup:function(){var i;if(Le(this,e,!0),!m.documentMode)return!1;(i=re.get(this,t))||this.addEventListener(t,n),re.set(this,t,(i||0)+1)},trigger:function(){return Le(this,e),!0},teardown:function(){var e;if(!m.documentMode)return!1;(e=re.get(this,t)-1)?re.set(this,t,e):(this.removeEventListener(t,n),re.remove(this,t))},_default:function(t){return re.get(t.target,e)},delegateType:t},w.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,a=m.documentMode?this:i,r=re.get(a,t);r||(m.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),re.set(a,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,a=m.documentMode?this:i,r=re.get(a,t)-1;r?re.set(a,t,r):(m.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),re.remove(a,t))}}})),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,a=e.handleObj;return i&&(i===this||w.contains(this,i))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),w.fn.extend({on:function(e,t,n,i){return De(this,e,t,n,i)},one:function(e,t,n,i){return De(this,e,t,n,i,1)},off:function(e,t,n){var i,a;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,w(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each((function(){w.event.remove(this,e,n,t)}))}});var Ue=/<script|<style|<link/i,_e=/checked\s*(?:[^=]|=\s*.checked.)/i,Oe=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Me(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Re(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,i,a,r,s,l;if(1===t.nodeType){if(re.hasData(e)&&(l=re.get(e).events))for(a in re.remove(t,"handle events"),l)for(n=0,i=l[a].length;n<i;n++)w.event.add(t,a,l[a][n]);se.hasData(e)&&(r=se.access(e),s=w.extend({},r),se.set(t,s))}}function Ve(e,t,n,i){t=r(t);var a,s,l,o,d,c,u=0,p=e.length,f=p-1,m=t[0],v=h(m);if(v||p>1&&"string"==typeof m&&!A.checkClone&&_e.test(m))return e.each((function(a){var r=e.eq(a);v&&(t[0]=m.call(this,a,r.html())),Ve(r,t,n,i)}));if(p&&(s=(a=Pe(t,e[0].ownerDocument,!1,e,i)).firstChild,1===a.childNodes.length&&(a=s),s||i)){for(o=(l=w.map(Ie(a,"script"),Re)).length;u<p;u++)d=a,u!==f&&(d=w.clone(d,!0,!0),o&&w.merge(l,Ie(d,"script"))),n.call(e[u],d,u);if(o)for(c=l[l.length-1].ownerDocument,w.map(l,Qe),u=0;u<o;u++)d=l[u],Se.test(d.type||"")&&!re.access(d,"globalEval")&&w.contains(c,d)&&(d.src&&"module"!==(d.type||"").toLowerCase()?w._evalUrl&&!d.noModule&&w._evalUrl(d.src,{nonce:d.nonce||d.getAttribute("nonce")},c):g(d.textContent.replace(Oe,""),d,c))}return e}function ze(e,t,n){for(var i,a=t?w.filter(t,e):e,r=0;null!=(i=a[r]);r++)n||1!==i.nodeType||w.cleanData(Ie(i)),i.parentNode&&(n&&he(i)&&Fe(Ie(i,"script")),i.parentNode.removeChild(i));return e}w.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,a,r,s,l,o,d,c=e.cloneNode(!0),u=he(e);if(!(A.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(s=Ie(c),i=0,a=(r=Ie(e)).length;i<a;i++)l=r[i],o=s[i],d=void 0,"input"===(d=o.nodeName.toLowerCase())&&je.test(l.type)?o.checked=l.checked:"input"!==d&&"textarea"!==d||(o.defaultValue=l.defaultValue);if(t)if(n)for(r=r||Ie(e),s=s||Ie(c),i=0,a=r.length;i<a;i++)He(r[i],s[i]);else He(e,c);return(s=Ie(c,"script")).length>0&&Fe(s,!u&&Ie(e,"script")),c},cleanData:function(e){for(var t,n,i,a=w.event.special,r=0;void 0!==(n=e[r]);r++)if(ie(n)){if(t=n[re.expando]){if(t.events)for(i in t.events)a[i]?w.event.remove(n,i):w.removeEvent(n,i,t.handle);n[re.expando]=void 0}n[se.expando]&&(n[se.expando]=void 0)}}}),w.fn.extend({detach:function(e){return ze(this,e,!0)},remove:function(e){return ze(this,e)},text:function(e){return J(this,(function(e){return void 0===e?w.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ve(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Me(this,e).appendChild(e)}))},prepend:function(){return Ve(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Me(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(Ie(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return J(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ue.test(e)&&!Ne[(Ce.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(Ie(t,!1)),t.innerHTML=e);t=0}catch(Ou){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ve(this,arguments,(function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(Ie(this)),n&&n.replaceChild(t,this))}),e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){w.fn[e]=function(e){for(var n,i=[],a=w(e),r=a.length-1,l=0;l<=r;l++)n=l===r?this:this.clone(!0),w(a[l])[t](n),s.apply(i,n.get());return this.pushStack(i)}}));var qe=new RegExp("^("+ce+")(?!px)[a-z%]+$","i"),We=/^--/,Ye=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ke=function(e,t,n){var i,a,r={};for(a in t)r[a]=e.style[a],e.style[a]=t[a];for(a in i=n.call(e),t)e.style[a]=r[a];return i},Ge=new RegExp(pe.join("|"),"i");function $e(e,t,n){var i,a,r,s,l=We.test(t),o=e.style;return(n=n||Ye(e))&&(s=n.getPropertyValue(t)||n[t],l&&s&&(s=s.replace(B,"$1")||void 0),""!==s||he(e)||(s=w.style(e,t)),!A.pixelBoxStyles()&&qe.test(s)&&Ge.test(t)&&(i=o.width,a=o.minWidth,r=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=n.width,o.width=i,o.minWidth=a,o.maxWidth=r)),void 0!==s?s+"":s}function Xe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){d.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ae.appendChild(d).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,o=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),a=36===n(t.width),c.style.position="absolute",r=12===n(c.offsetWidth/3),Ae.removeChild(d),c=null}}function n(e){return Math.round(parseFloat(e))}var i,a,r,s,l,o,d=m.createElement("div"),c=m.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",A.clearCloneStyle="content-box"===c.style.backgroundClip,w.extend(A,{boxSizingReliable:function(){return t(),a},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),o},scrollboxSize:function(){return t(),r},reliableTrDimensions:function(){var t,n,i,a;return null==l&&(t=m.createElement("table"),n=m.createElement("tr"),i=m.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="box-sizing:content-box;border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",Ae.appendChild(t).appendChild(n).appendChild(i),a=e.getComputedStyle(n),l=parseInt(a.height,10)+parseInt(a.borderTopWidth,10)+parseInt(a.borderBottomWidth,10)===n.offsetHeight,Ae.removeChild(t)),l}}))}();var Je=["Webkit","Moz","ms"],Ze=m.createElement("div").style,et={};function tt(e){var t=w.cssProps[e]||et[e];return t||(e in Ze?e:et[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Je.length;n--;)if((e=Je[n]+t)in Ze)return e}(e)||e)}var nt=/^(none|table(?!-c[ea]).+)/,it={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var i=ue.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function st(e,t,n,i,a,r){var s="width"===t?1:0,l=0,o=0,d=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(d+=w.css(e,n+pe[s],!0,a)),i?("content"===n&&(o-=w.css(e,"padding"+pe[s],!0,a)),"margin"!==n&&(o-=w.css(e,"border"+pe[s]+"Width",!0,a))):(o+=w.css(e,"padding"+pe[s],!0,a),"padding"!==n?o+=w.css(e,"border"+pe[s]+"Width",!0,a):l+=w.css(e,"border"+pe[s]+"Width",!0,a));return!i&&r>=0&&(o+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-o-l-.5))||0),o+d}function lt(e,t,n){var i=Ye(e),a=(!A.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,i),r=a,s=$e(e,t,i),l="offset"+t[0].toUpperCase()+t.slice(1);if(qe.test(s)){if(!n)return s;s="auto"}return(!A.boxSizingReliable()&&a||!A.reliableTrDimensions()&&C(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===w.css(e,"display",!1,i))&&e.getClientRects().length&&(a="border-box"===w.css(e,"boxSizing",!1,i),(r=l in e)&&(s=e[l])),(s=parseFloat(s)||0)+st(e,t,n||(a?"border":"content"),r,i,s)+"px"}function ot(e,t,n,i,a){return new ot.prototype.init(e,t,n,i,a)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=$e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,r,s,l=ne(t),o=We.test(t),d=e.style;if(o||(t=tt(l)),s=w.cssHooks[t]||w.cssHooks[l],void 0===n)return s&&"get"in s&&void 0!==(a=s.get(e,!1,i))?a:d[t];"string"===(r=typeof n)&&(a=ue.exec(n))&&a[1]&&(n=ve(e,t,a),r="number"),null!=n&&n==n&&("number"!==r||o||(n+=a&&a[3]||(w.cssNumber[l]?"":"px")),A.clearCloneStyle||""!==n||0!==t.indexOf("background")||(d[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(o?d.setProperty(t,n):d[t]=n))}},css:function(e,t,n,i){var a,r,s,l=ne(t);return We.test(t)||(t=tt(l)),(s=w.cssHooks[t]||w.cssHooks[l])&&"get"in s&&(a=s.get(e,!0,n)),void 0===a&&(a=$e(e,t,i)),"normal"===a&&t in at&&(a=at[t]),""===n||n?(r=parseFloat(a),!0===n||isFinite(r)?r||0:a):a}}),w.each(["height","width"],(function(e,t){w.cssHooks[t]={get:function(e,n,i){if(n)return!nt.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?lt(e,t,i):Ke(e,it,(function(){return lt(e,t,i)}))},set:function(e,n,i){var a,r=Ye(e),s=!A.scrollboxSize()&&"absolute"===r.position,l=(s||i)&&"border-box"===w.css(e,"boxSizing",!1,r),o=i?st(e,t,i,l,r):0;return l&&s&&(o-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-st(e,t,"border",!1,r)-.5)),o&&(a=ue.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),rt(0,n,o)}}})),w.cssHooks.marginLeft=Xe(A.reliableMarginLeft,(function(e,t){if(t)return(parseFloat($e(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(e,t){w.cssHooks[e+t]={expand:function(n){for(var i=0,a={},r="string"==typeof n?n.split(" "):[n];i<4;i++)a[e+pe[i]+t]=r[i]||r[i-2]||r[0];return a}},"margin"!==e&&(w.cssHooks[e+t].set=rt)})),w.fn.extend({css:function(e,t){return J(this,(function(e,t,n){var i,a,r={},s=0;if(Array.isArray(t)){for(i=Ye(e),a=t.length;s<a;s++)r[t[s]]=w.css(e,t[s],!1,i);return r}return void 0!==n?w.style(e,t,n):w.css(e,t)}),e,t,arguments.length>1)}}),w.Tween=ot,ot.prototype={constructor:ot,init:function(e,t,n,i,a,r){this.elem=e,this.prop=n,this.easing=a||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(w.cssNumber[n]?"":"px")},cur:function(){var e=ot.propHooks[this.prop];return e&&e.get?e.get(this):ot.propHooks._default.get(this)},run:function(e){var t,n=ot.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ot.propHooks._default.set(this),this}},ot.prototype.init.prototype=ot.prototype,ot.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[tt(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},ot.propHooks.scrollTop=ot.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=ot.prototype.init,w.fx.step={};var dt,ct,ut=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function At(){ct&&(!1===m.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(At):e.setTimeout(At,w.fx.interval),w.fx.tick())}function ht(){return e.setTimeout((function(){dt=void 0})),dt=Date.now()}function ft(e,t){var n,i=0,a={height:e};for(t=t?1:0;i<4;i+=2-t)a["margin"+(n=pe[i])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function mt(e,t,n){for(var i,a=(vt.tweeners[t]||[]).concat(vt.tweeners["*"]),r=0,s=a.length;r<s;r++)if(i=a[r].call(n,t,e))return i}function vt(e,t,n){var i,a,r=0,s=vt.prefilters.length,l=w.Deferred().always((function(){delete o.elem})),o=function(){if(a)return!1;for(var t=dt||ht(),n=Math.max(0,d.startTime+d.duration-t),i=1-(n/d.duration||0),r=0,s=d.tweens.length;r<s;r++)d.tweens[r].run(i);return l.notifyWith(e,[d,i,n]),i<1&&s?n:(s||l.notifyWith(e,[d,1,0]),l.resolveWith(e,[d]),!1)},d=l.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:dt||ht(),duration:n.duration,tweens:[],createTween:function(t,n){var i=w.Tween(e,d.opts,t,n,d.opts.specialEasing[t]||d.opts.easing);return d.tweens.push(i),i},stop:function(t){var n=0,i=t?d.tweens.length:0;if(a)return this;for(a=!0;n<i;n++)d.tweens[n].run(1);return t?(l.notifyWith(e,[d,1,0]),l.resolveWith(e,[d,t])):l.rejectWith(e,[d,t]),this}}),c=d.props;for(!function(e,t){var n,i,a,r,s;for(n in e)if(a=t[i=ne(n)],r=e[n],Array.isArray(r)&&(a=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(s=w.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=a);else t[i]=a}(c,d.opts.specialEasing);r<s;r++)if(i=vt.prefilters[r].call(d,e,c,d.opts))return h(i.stop)&&(w._queueHooks(d.elem,d.opts.queue).stop=i.stop.bind(i)),i;return w.map(c,mt,d),h(d.opts.start)&&d.opts.start.call(e,d),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always),w.fx.timer(w.extend(o,{elem:e,anim:d,queue:d.opts.queue})),d}w.Animation=w.extend(vt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ve(n.elem,e,ue.exec(t),n),n}]},tweener:function(e,t){h(e)?(t=e,e=["*"]):e=e.match(q);for(var n,i=0,a=e.length;i<a;i++)n=e[i],vt.tweeners[n]=vt.tweeners[n]||[],vt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,a,r,s,l,o,d,c,u="width"in t||"height"in t,p=this,A={},h=e.style,f=e.nodeType&&me(e),m=re.get(e,"fxshow");for(i in n.queue||(null==(s=w._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,p.always((function(){p.always((function(){s.unqueued--,w.queue(e,"fx").length||s.empty.fire()}))}))),t)if(a=t[i],ut.test(a)){if(delete t[i],r=r||"toggle"===a,a===(f?"hide":"show")){if("show"!==a||!m||void 0===m[i])continue;f=!0}A[i]=m&&m[i]||w.style(e,i)}if((o=!w.isEmptyObject(t))||!w.isEmptyObject(A))for(i in u&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(d=m&&m.display)&&(d=re.get(e,"display")),"none"===(c=w.css(e,"display"))&&(d?c=d:(xe([e],!0),d=e.style.display||d,c=w.css(e,"display"),xe([e]))),("inline"===c||"inline-block"===c&&null!=d)&&"none"===w.css(e,"float")&&(o||(p.done((function(){h.display=d})),null==d&&(c=h.display,d="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),o=!1,A)o||(m?"hidden"in m&&(f=m.hidden):m=re.access(e,"fxshow",{display:d}),r&&(m.hidden=!f),f&&xe([e],!0),p.done((function(){for(i in f||xe([e]),re.remove(e,"fxshow"),A)w.style(e,i,A[i])}))),o=mt(f?m[i]:0,i,p),i in m||(m[i]=o.start,f&&(o.end=o.start,o.start=0))}],prefilter:function(e,t){t?vt.prefilters.unshift(e):vt.prefilters.push(e)}}),w.speed=function(e,t,n){var i=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||h(e)&&e,duration:e,easing:n&&t||t&&!h(t)&&t};return w.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in w.fx.speeds?i.duration=w.fx.speeds[i.duration]:i.duration=w.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){h(i.old)&&i.old.call(this),i.queue&&w.dequeue(this,i.queue)},i},w.fn.extend({fadeTo:function(e,t,n,i){return this.filter(me).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var a=w.isEmptyObject(e),r=w.speed(t,n,i),s=function(){var t=vt(this,w.extend({},e),r);(a||re.get(this,"finish"))&&t.stop(!0)};return s.finish=s,a||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",r=w.timers,s=re.get(this);if(a)s[a]&&s[a].stop&&i(s[a]);else for(a in s)s[a]&&s[a].stop&&pt.test(a)&&i(s[a]);for(a=r.length;a--;)r[a].elem!==this||null!=e&&r[a].queue!==e||(r[a].anim.stop(n),t=!1,r.splice(a,1));!t&&n||w.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=re.get(this),i=n[e+"queue"],a=n[e+"queueHooks"],r=w.timers,s=i?i.length:0;for(n.finish=!0,w.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),w.each(["toggle","show","hide"],(function(e,t){var n=w.fn[t];w.fn[t]=function(e,i,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ft(t,!0),e,i,a)}})),w.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){w.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(dt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),dt=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){ct||(ct=!0,At())},w.fx.stop=function(){ct=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,n){return t=w.fx&&w.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,i){var a=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(a)}}))},function(){var e=m.createElement("input"),t=m.createElement("select").appendChild(m.createElement("option"));e.type="checkbox",A.checkOn=""!==e.value,A.optSelected=t.selected,(e=m.createElement("input")).value="t",e.type="radio",A.radioValue="t"===e.value}();var gt,yt=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return J(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}),w.extend({attr:function(e,t,n){var i,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?w.prop(e,t,n):(1===r&&w.isXMLDoc(e)||(a=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(i=a.get(e,t))?i:null==(i=w.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!A.radioValue&&"radio"===t&&C(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,a=t&&t.match(q);if(a&&1===e.nodeType)for(;n=a[i++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=yt[t]||w.find.attr;yt[t]=function(e,t,i){var a,r,s=t.toLowerCase();return i||(r=yt[s],yt[s]=a,a=null!=n(e,t,i)?s:null,yt[s]=r),a}}));var xt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;function wt(e){return(e.match(q)||[]).join(" ")}function jt(e){return e.getAttribute&&e.getAttribute("class")||""}function Ct(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(q)||[]}w.fn.extend({prop:function(e,t){return J(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,n){var i,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&w.isXMLDoc(e)||(t=w.propFix[t]||t,a=w.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:e[t]=n:a&&"get"in a&&null!==(i=a.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),A.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,n,i,a,r,s;return h(e)?this.each((function(t){w(this).addClass(e.call(this,t,jt(this)))})):(t=Ct(e)).length?this.each((function(){if(i=jt(this),n=1===this.nodeType&&" "+wt(i)+" "){for(r=0;r<t.length;r++)a=t[r],n.indexOf(" "+a+" ")<0&&(n+=a+" ");s=wt(n),i!==s&&this.setAttribute("class",s)}})):this},removeClass:function(e){var t,n,i,a,r,s;return h(e)?this.each((function(t){w(this).removeClass(e.call(this,t,jt(this)))})):arguments.length?(t=Ct(e)).length?this.each((function(){if(i=jt(this),n=1===this.nodeType&&" "+wt(i)+" "){for(r=0;r<t.length;r++)for(a=t[r];n.indexOf(" "+a+" ")>-1;)n=n.replace(" "+a+" "," ");s=wt(n),i!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,a,r,s=typeof e,l="string"===s||Array.isArray(e);return h(e)?this.each((function(n){w(this).toggleClass(e.call(this,n,jt(this),t),t)})):"boolean"==typeof t&&l?t?this.addClass(e):this.removeClass(e):(n=Ct(e),this.each((function(){if(l)for(r=w(this),a=0;a<n.length;a++)i=n[a],r.hasClass(i)?r.removeClass(i):r.addClass(i);else void 0!==e&&"boolean"!==s||((i=jt(this))&&re.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":re.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+wt(jt(n))+" ").indexOf(t)>-1)return!0;return!1}});var St=/\r/g;w.fn.extend({val:function(e){var t,n,i,a=this[0];return arguments.length?(i=h(e),this.each((function(n){var a;1===this.nodeType&&(null==(a=i?e.call(this,n,w(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=w.map(a,(function(e){return null==e?"":e+""}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=w.valHooks[a.type]||w.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(St,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:wt(w.text(e))}},select:{get:function(e){var t,n,i,a=e.options,r=e.selectedIndex,s="select-one"===e.type,l=s?null:[],o=s?r+1:a.length;for(i=r<0?o:s?r:0;i<o;i++)if(((n=a[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(t=w(n).val(),s)return t;l.push(t)}return l},set:function(e,t){for(var n,i,a=e.options,r=w.makeArray(t),s=a.length;s--;)((i=a[s]).selected=w.inArray(w.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},A.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Nt=e.location,It={guid:Date.now()},Ft=/\?/;w.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(Ou){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||w.error("Invalid XML: "+(i?w.map(i.childNodes,(function(e){return e.textContent})).join("\n"):t)),n};var Bt=/^(?:focusinfocus|focusoutblur)$/,Pt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,i,a){var r,s,l,o,d,u,p,A,v=[i||m],g=c.call(t,"type")?t.type:t,y=c.call(t,"namespace")?t.namespace.split("."):[];if(s=A=l=i=i||m,3!==i.nodeType&&8!==i.nodeType&&!Bt.test(g+w.event.triggered)&&(g.indexOf(".")>-1&&(y=g.split("."),g=y.shift(),y.sort()),d=g.indexOf(":")<0&&"on"+g,(t=t[w.expando]?t:new w.Event(g,"object"==typeof t&&t)).isTrigger=a?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:w.makeArray(n,[t]),p=w.event.special[g]||{},a||!p.trigger||!1!==p.trigger.apply(i,n))){if(!a&&!p.noBubble&&!f(i)){for(o=p.delegateType||g,Bt.test(o+g)||(s=s.parentNode);s;s=s.parentNode)v.push(s),l=s;l===(i.ownerDocument||m)&&v.push(l.defaultView||l.parentWindow||e)}for(r=0;(s=v[r++])&&!t.isPropagationStopped();)A=s,t.type=r>1?o:p.bindType||g,(u=(re.get(s,"events")||Object.create(null))[t.type]&&re.get(s,"handle"))&&u.apply(s,n),(u=d&&s[d])&&u.apply&&ie(s)&&(t.result=u.apply(s,n),!1===t.result&&t.preventDefault());return t.type=g,a||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(v.pop(),n)||!ie(i)||d&&h(i[g])&&!f(i)&&((l=i[d])&&(i[d]=null),w.event.triggered=g,t.isPropagationStopped()&&A.addEventListener(g,Pt),i[g](),t.isPropagationStopped()&&A.removeEventListener(g,Pt),w.event.triggered=void 0,l&&(i[d]=l)),t.result}},simulate:function(e,t,n){var i=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(i,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}});var kt=/\[\]$/,Tt=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function Lt(e,t,n,i){var a;if(Array.isArray(t))w.each(t,(function(t,a){n||kt.test(e)?i(e,a):Lt(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,n,i)}));else if(n||"object"!==y(t))i(e,t);else for(a in t)Lt(e+"["+a+"]",t[a],n,i)}w.param=function(e,t){var n,i=[],a=function(e,t){var n=h(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){a(this.name,this.value)}));else for(n in e)Lt(n,e[n],t,a);return i.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Dt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!je.test(e))})).map((function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,(function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}})):{name:t.name,value:n.replace(Tt,"\r\n")}})).get()}});var Ut=/%20/g,_t=/#.*$/,Ot=/([?&])_=[^&]*/,Mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,Qt=/^\/\//,Ht={},Vt={},zt="*/".concat("*"),qt=m.createElement("a");function Wt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,a=0,r=t.toLowerCase().match(q)||[];if(h(n))for(;i=r[a++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Yt(e,t,n,i){var a={},r=e===Vt;function s(l){var o;return a[l]=!0,w.each(e[l]||[],(function(e,l){var d=l(t,n,i);return"string"!=typeof d||r||a[d]?r?!(o=d):void 0:(t.dataTypes.unshift(d),s(d),!1)})),o}return s(t.dataTypes[0])||!a["*"]&&s("*")}function Kt(e,t){var n,i,a=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:i||(i={}))[n]=t[n]);return i&&w.extend(!0,e,i),e}qt.href=Nt.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Nt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Nt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Kt(Kt(e,w.ajaxSettings),t):Kt(w.ajaxSettings,e)},ajaxPrefilter:Wt(Ht),ajaxTransport:Wt(Vt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,a,r,s,l,o,d,c,u,p,A=w.ajaxSetup({},n),h=A.context||A,f=A.context&&(h.nodeType||h.jquery)?w(h):w.event,v=w.Deferred(),g=w.Callbacks("once memory"),y=A.statusCode||{},x={},b={},j="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(d){if(!s)for(s={};t=Mt.exec(r);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return d?r:null},setRequestHeader:function(e,t){return null==d&&(e=b[e.toLowerCase()]=b[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==d&&(A.mimeType=e),this},statusCode:function(e){var t;if(e)if(d)C.always(e[C.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||j;return i&&i.abort(t),S(0,t),this}};if(v.promise(C),A.url=((t||A.url||Nt.href)+"").replace(Qt,Nt.protocol+"//"),A.type=n.method||n.type||A.method||A.type,A.dataTypes=(A.dataType||"*").toLowerCase().match(q)||[""],null==A.crossDomain){o=m.createElement("a");try{o.href=A.url,o.href=o.href,A.crossDomain=qt.protocol+"//"+qt.host!=o.protocol+"//"+o.host}catch(Ou){A.crossDomain=!0}}if(A.data&&A.processData&&"string"!=typeof A.data&&(A.data=w.param(A.data,A.traditional)),Yt(Ht,A,n,C),d)return C;for(u in(c=w.event&&A.global)&&0===w.active++&&w.event.trigger("ajaxStart"),A.type=A.type.toUpperCase(),A.hasContent=!Rt.test(A.type),a=A.url.replace(_t,""),A.hasContent?A.data&&A.processData&&0===(A.contentType||"").indexOf("application/x-www-form-urlencoded")&&(A.data=A.data.replace(Ut,"+")):(p=A.url.slice(a.length),A.data&&(A.processData||"string"==typeof A.data)&&(a+=(Ft.test(a)?"&":"?")+A.data,delete A.data),!1===A.cache&&(a=a.replace(Ot,"$1"),p=(Ft.test(a)?"&":"?")+"_="+It.guid+++p),A.url=a+p),A.ifModified&&(w.lastModified[a]&&C.setRequestHeader("If-Modified-Since",w.lastModified[a]),w.etag[a]&&C.setRequestHeader("If-None-Match",w.etag[a])),(A.data&&A.hasContent&&!1!==A.contentType||n.contentType)&&C.setRequestHeader("Content-Type",A.contentType),C.setRequestHeader("Accept",A.dataTypes[0]&&A.accepts[A.dataTypes[0]]?A.accepts[A.dataTypes[0]]+("*"!==A.dataTypes[0]?", "+zt+"; q=0.01":""):A.accepts["*"]),A.headers)C.setRequestHeader(u,A.headers[u]);if(A.beforeSend&&(!1===A.beforeSend.call(h,C,A)||d))return C.abort();if(j="abort",g.add(A.complete),C.done(A.success),C.fail(A.error),i=Yt(Vt,A,n,C)){if(C.readyState=1,c&&f.trigger("ajaxSend",[C,A]),d)return C;A.async&&A.timeout>0&&(l=e.setTimeout((function(){C.abort("timeout")}),A.timeout));try{d=!1,i.send(x,S)}catch(Ou){if(d)throw Ou;S(-1,Ou)}}else S(-1,"No Transport");function S(t,n,s,o){var u,p,m,x,b,j=n;d||(d=!0,l&&e.clearTimeout(l),i=void 0,r=o||"",C.readyState=t>0?4:0,u=t>=200&&t<300||304===t,s&&(x=function(e,t,n){for(var i,a,r,s,l=e.contents,o=e.dataTypes;"*"===o[0];)o.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in l)if(l[a]&&l[a].test(i)){o.unshift(a);break}if(o[0]in n)r=o[0];else{for(a in n){if(!o[0]||e.converters[a+" "+o[0]]){r=a;break}s||(s=a)}r=r||s}if(r)return r!==o[0]&&o.unshift(r),n[r]}(A,C,s)),!u&&w.inArray("script",A.dataTypes)>-1&&w.inArray("json",A.dataTypes)<0&&(A.converters["text script"]=function(){}),x=function(e,t,n,i){var a,r,s,l,o,d={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)d[s.toLowerCase()]=e.converters[s];for(r=c.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!o&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),o=r,r=c.shift())if("*"===r)r=o;else if("*"!==o&&o!==r){if(!(s=d[o+" "+r]||d["* "+r]))for(a in d)if((l=a.split(" "))[1]===r&&(s=d[o+" "+l[0]]||d["* "+l[0]])){!0===s?s=d[a]:!0!==d[a]&&(r=l[0],c.unshift(l[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(Ou){return{state:"parsererror",error:s?Ou:"No conversion from "+o+" to "+r}}}return{state:"success",data:t}}(A,x,C,u),u?(A.ifModified&&((b=C.getResponseHeader("Last-Modified"))&&(w.lastModified[a]=b),(b=C.getResponseHeader("etag"))&&(w.etag[a]=b)),204===t||"HEAD"===A.type?j="nocontent":304===t?j="notmodified":(j=x.state,p=x.data,u=!(m=x.error))):(m=j,!t&&j||(j="error",t<0&&(t=0))),C.status=t,C.statusText=(n||j)+"",u?v.resolveWith(h,[p,j,C]):v.rejectWith(h,[C,j,m]),C.statusCode(y),y=void 0,c&&f.trigger(u?"ajaxSuccess":"ajaxError",[C,A,u?p:m]),g.fireWith(h,[C,j]),c&&(f.trigger("ajaxComplete",[C,A]),--w.active||w.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],(function(e,t){w[t]=function(e,n,i,a){return h(n)&&(a=a||i,i=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:a,data:n,success:i},w.isPlainObject(e)&&e))}})),w.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),w._evalUrl=function(e,t,n){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,n)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(h(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return h(e)?this.each((function(t){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=h(e);return this.each((function(n){w(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(Ou){}};var Gt={0:200,1223:204},$t=w.ajaxSettings.xhr();A.cors=!!$t&&"withCredentials"in $t,A.ajax=$t=!!$t,w.ajaxTransport((function(t){var n,i;if(A.cors||$t&&!t.crossDomain)return{send:function(a,r){var s,l=t.xhr();if(l.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)l[s]=t.xhrFields[s];for(s in t.mimeType&&l.overrideMimeType&&l.overrideMimeType(t.mimeType),t.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)l.setRequestHeader(s,a[s]);n=function(e){return function(){n&&(n=i=l.onload=l.onerror=l.onabort=l.ontimeout=l.onreadystatechange=null,"abort"===e?l.abort():"error"===e?"number"!=typeof l.status?r(0,"error"):r(l.status,l.statusText):r(Gt[l.status]||l.status,l.statusText,"text"!==(l.responseType||"text")||"string"!=typeof l.responseText?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=n(),i=l.onerror=l.ontimeout=n("error"),void 0!==l.onabort?l.onabort=i:l.onreadystatechange=function(){4===l.readyState&&e.setTimeout((function(){n&&i()}))},n=n("abort");try{l.send(t.hasContent&&t.data||null)}catch(Ou){if(n)throw Ou}},abort:function(){n&&n()}}})),w.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),w.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,a){t=w("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Xt,Jt=[],Zt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Jt.pop()||w.expando+"_"+It.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",(function(t,n,i){var a,r,s,l=!1!==t.jsonp&&(Zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(t.data)&&"data");if(l||"jsonp"===t.dataTypes[0])return a=t.jsonpCallback=h(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,l?t[l]=t[l].replace(Zt,"$1"+a):!1!==t.jsonp&&(t.url+=(Ft.test(t.url)?"&":"?")+t.jsonp+"="+a),t.converters["script json"]=function(){return s||w.error(a+" was not called"),s[0]},t.dataTypes[0]="json",r=e[a],e[a]=function(){s=arguments},i.always((function(){void 0===r?w(e).removeProp(a):e[a]=r,t[a]&&(t.jsonpCallback=n.jsonpCallback,Jt.push(a)),s&&h(r)&&r(s[0]),s=r=void 0})),"script"})),A.createHTMLDocument=((Xt=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(A.createHTMLDocument?((i=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(i)):t=m),r=!n&&[],(a=_.exec(e))?[t.createElement(a[1])]:(a=Pe([e],t,r),r&&r.length&&w(r).remove(),w.merge([],a.childNodes)));var i,a,r},w.fn.load=function(e,t,n){var i,a,r,s=this,l=e.indexOf(" ");return l>-1&&(i=wt(e.slice(l)),e=e.slice(0,l)),h(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),s.length>0&&w.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){r=arguments,s.html(i?w("<div>").append(w.parseHTML(e)).find(i):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,r||[e.responseText,t,e])}))}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,(function(t){return e===t.elem})).length},w.offset={setOffset:function(e,t,n){var i,a,r,s,l,o,d=w.css(e,"position"),c=w(e),u={};"static"===d&&(e.style.position="relative"),l=c.offset(),r=w.css(e,"top"),o=w.css(e,"left"),("absolute"===d||"fixed"===d)&&(r+o).indexOf("auto")>-1?(s=(i=c.position()).top,a=i.left):(s=parseFloat(r)||0,a=parseFloat(o)||0),h(t)&&(t=t.call(e,n,w.extend({},l))),null!=t.top&&(u.top=t.top-l.top+s),null!=t.left&&(u.left=t.left-l.left+a),"using"in t?t.using.call(e,u):c.css(u)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){w.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],a={top:0,left:0};if("fixed"===w.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((a=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),a.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-w.css(i,"marginTop",!0),left:t.left-a.left-w.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||Ae}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;w.fn[e]=function(i){return J(this,(function(e,i,a){var r;if(f(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===a)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:a,n?a:r.pageYOffset):e[i]=a}),e,i,arguments.length)}})),w.each(["top","left"],(function(e,t){w.cssHooks[t]=Xe(A.pixelPosition,(function(e,n){if(n)return n=$e(e,t),qe.test(n)?w(e).position()[t]+"px":n}))})),w.each({Height:"height",Width:"width"},(function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){w.fn[i]=function(a,r){var s=arguments.length&&(n||"boolean"!=typeof a),l=n||(!0===a||!0===r?"margin":"border");return J(this,(function(t,n,a){var r;return f(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===a?w.css(t,n,l):w.style(t,n,a,l)}),t,s?a:void 0,s)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){w.fn[t]=function(e){return this.on(t,e)}})),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;w.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),h(e))return i=a.call(arguments,2),r=function(){return e.apply(t||this,i.concat(a.call(arguments)))},r.guid=e.guid=e.guid||w.guid++,r},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=C,w.isFunction=h,w.isWindow=f,w.camelCase=ne,w.type=y,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?"":(e+"").replace(en,"$1")};var tn=e.jQuery,nn=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=nn),t&&e.jQuery===w&&(e.jQuery=tn),w},void 0===t&&(e.jQuery=e.$=w),w}))}(J9);const Z9=c(J9.exports),eee="/home/",tee=({printingdata:e,CompanyName:t,zipcode:n,address:i,City:a,MobileNo:r})=>{var s;const l=tA(null==e?void 0:e.PurDate);return Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{className:"Pdf-body",id:"PdffeatAddon",children:[Ye.jsxs("div",{className:"Pdf-Div",children:[Ye.jsxs("div",{className:"Pdf-head-div",children:[Ye.jsx("img",{src:cE,className:"headlogo-img"}),Ye.jsxs("div",{children:[Ye.jsx("p",{className:"Pdf-head",children:" Invoice "}),Ye.jsx("p",{style:{fontFamily:"Poppins",color:""},children:" Pozo "})]}),Ye.jsx("span",{className:"square"})]}),Ye.jsxs("div",{className:"Pdf-amt-details",children:[Ye.jsxs("p",{children:[" Payment Method : ",Ye.jsxs("span",{className:"Pdf-amt-digit",children:[e.PaymentModeName?e.PaymentModeName:null," "]})]}),Ye.jsxs("p",{children:[" Date : ",Ye.jsxs("span",{className:"Pdf-amt-digit",children:[" ",l," "]})," "]})]})]}),Ye.jsx("div",{className:"Pdf-Cont-Div",children:Ye.jsxs("div",{className:"Pdf-cont",children:[Ye.jsxs("div",{className:"Pdf-cont-txt",children:[Ye.jsx("p",{className:"Pdf-cont-subhead",children:" Billed From"}),Ye.jsxs("p",{className:"Pdf-cont-text",children:["Pozomind Technologies Private Limited",Ye.jsx("p",{children:"Phone : 7324000011"})]})]}),Ye.jsxs("div",{className:"Pdf-cont-txt",children:[Ye.jsx("p",{className:"Pdf-cont-subhead",children:" Billed To "}),Ye.jsxs("p",{className:"Pdf-cont-text",children:[Ye.jsx("p",{className:"Pdf-cont-text",children:r}),null!=i?i:null," ",null!=a?a:null," ",null!=n?n:null,Ye.jsxs("p",{children:["Phone : ",r]})]})]})]})}),Ye.jsx("hr",{className:"new3"}),Ye.jsx("div",{className:"Pdf-Table-Div",children:Ye.jsxs("table",{children:[Ye.jsx("caption",{children:"Feature Addon Summary"}),Ye.jsx("thead",{children:Ye.jsxs("tr",{children:[Ye.jsx("th",{scope:"col",children:"Feature Name"}),Ye.jsx("th",{scope:"col",children:"Feature Count"}),Ye.jsx("th",{scope:"col",children:"Basic Amount"}),Ye.jsx("th",{scope:"col",children:"Tax Amount"}),Ye.jsx("th",{scope:"col",children:"Net Amount"})]})}),Ye.jsx("tbody",{children:null==(s=null==e?void 0:e.FeatAddonDetails)?void 0:s.map((e=>Ye.jsxs("tr",{children:[Ye.jsx("td",{"data-label":"Due Date",children:null==e?void 0:e.FeatAddonName}),Ye.jsx("td",{"data-label":"Period",children:null==e?void 0:e.Count}),Ye.jsx("td",{"data-label":"Amount",children:(null==e?void 0:e.Price)*(null==e?void 0:e.Count)}),Ye.jsx("td",{"data-label":"Amount",children:(null==e?void 0:e.TaxAmount)*(null==e?void 0:e.Count)}),Ye.jsx("td",{"data-label":"Amount",children:null==e?void 0:e.NetPrice})]})))})]})}),Ye.jsx("hr",{className:"new3"}),Ye.jsx("div",{className:"Pdf-Table-Div",children:Ye.jsx("table",{children:Ye.jsxs("tbody",{children:[Ye.jsxs("tr",{children:[Ye.jsx("th",{children:" "}),Ye.jsx("th",{children:" "}),Ye.jsx("th",{"data-label":"Sub Total",children:"Sub Total"}),Ye.jsxs("td",{children:["₹",null==e?void 0:e.Price]})]}),Ye.jsxs("tr",{children:[Ye.jsx("td",{children:" "}),Ye.jsx("td",{children:" "}),Ye.jsx("th",{"data-label":"Total",children:"Tax Amount"}),Ye.jsxs("td",{children:["₹",null==e?void 0:e.TaxAmount]})]}),Ye.jsxs("tr",{children:[Ye.jsx("th",{children:" "}),Ye.jsx("th",{children:" "}),Ye.jsx("th",{"data-label":"Total",children:"Total"}),Ye.jsxs("td",{children:["₹",null==e?void 0:e.NetPrice]})]})]})})}),Ye.jsx("hr",{className:"new4"})]})})},nee="/home/",iee="/home/",aee="/home/",ree="/",see=()=>{var e,t,n,i,r,s,l,o,d,c;const[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState(),[v,g]=a.useState(1),[y,x]=a.useState(),[b,w]=a.useState(),j=a.useRef(null),[C,S]=a.useState("False"),[N,F]=a.useState([]),B=Tf(Ub),[T,E]=a.useState(!1),[_,O]=a.useState(),[M,R]=a.useState(),Q=iA("UserId"),[H,V]=a.useState(null),[z,q]=a.useState(null),[W,Y]=a.useState(null),[K,G]=a.useState(null),[$,X]=a.useState(null),[J,Z]=a.useState(null),ee=Qt(),te=Mt(),ne=null==te?void 0:te.state,ie=null==ne?void 0:ne.editstate,[ae,re]=a.useState(null),[se,le]=a.useState(null),[oe,de]=a.useState();a.useEffect((()=>{if(M&&H){let e=null==_?void 0:_.find((e=>e.TaxId==M));Y((H-H*(null==e?void 0:e.TaxPercentage)/100).toFixed(2)),X(H*(null==e?void 0:e.TaxPercentage)/100)}if(M&&z){let e=null==_?void 0:_.find((e=>e.TaxId==M));G((z-z*(null==e?void 0:e.TaxPercentage)/100).toFixed(2)),Z(z*(null==e?void 0:e.TaxPercentage)/100)}}),[M]);const ce=[{name:"Home",link:`${ree}landing-page/home`},{name:"FeaturePricing",link:`${ree}setting/featurepricing`},{name:ie?"Edit":"New"}];a.useEffect((()=>{var e;if(ie){null==(e=j.current)||e.setFieldsValue({AppName:ie.AppId}),x(ie.AppId);let t=null==ie?void 0:ie.FeatDetails;null==t||t.forEach((e=>{delete e.CreatedDate,delete e.FeatNameList,delete e.UpdatedBy,delete e.CreatedBy,delete e.UpdatedDate})),F(t)}}),[]);const ue=um();a.useEffect((()=>{ue(Ib()).unwrap();try{ue(Gh({items:ce}))}catch(e){}}),[]),a.useEffect((()=>{(async()=>{var e,t;try{let n=await ue($k()).unwrap();if(O(null==(e=null==n?void 0:n.data)?void 0:e.data),y){let e=await ue(CT(y)).unwrap();e=null==(t=e.data)?void 0:t.data;const n=Array.from(new Set(e.map((e=>e.FeatName)))).map((t=>e.find((e=>e.FeatName===t))));m(n)}}catch(n){}})()}),[y]);const pe=a.useCallback((()=>{h(null),p(null)}),[]),Ae=async(e,t)=>{var n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g;ie?(V(e.YearlyNetPrice),Y(e.YearlyPrice),q(e.MonthlyNetPrice),G(e.MonthlyPrice),re(e.UniqueId),X(e.YearlyTaxAmount),Z(e.MonthlyTaxAmount),le(e.ActiveStatus),null==(n=j.current)||n.setFieldsValue({FeaturesName:e.FeatId}),null==(i=j.current)||i.setFieldsValue({YearlyNetPrice:e.YearlyNetPrice}),null==(a=j.current)||a.setFieldsValue({MonthlyNetPrice:e.MonthlyNetPrice}),null==(r=j.current)||r.setFieldsValue({Tax:e.TaxId}),null==(s=j.current)||s.setFieldsValue({YearlyPrice:e.YearlyPrice}),null==(l=j.current)||l.setFieldsValue({MonthlyPrice:e.MonthlyPrice}),null==(o=j.current)||o.setFieldsValue({YearlyTaxAmount:e.YearlyTaxAmount}),null==(d=j.current)||d.setFieldsValue({MonthlyTaxAmount:e.MonthlyTaxAmount}),w(e.FeatId),R(e.TaxId),de(t),E(!0)):(null==(c=j.current)||c.setFieldsValue({AppName:e.AppId}),null==(u=j.current)||u.setFieldsValue({FeaturesName:e.FeatId}),null==(p=j.current)||p.setFieldsValue({YearlyNetPrice:e.YearlyNetPrice}),null==(A=j.current)||A.setFieldsValue({MonthlyNetPrice:e.MonthlyNetPrice}),null==(h=j.current)||h.setFieldsValue({Tax:e.TaxId}),null==(f=j.current)||f.setFieldsValue({YearlyPrice:e.YearlyPrice}),null==(m=j.current)||m.setFieldsValue({MonthlyPrice:e.MonthlyPrice}),null==(v=j.current)||v.setFieldsValue({YearlyTaxAmount:e.YearlyTaxAmount}),null==(g=j.current)||g.setFieldsValue({MonthlyTaxAmount:e.MonthlyTaxAmount}),w(e.FeatId),x(e.AppId),R(e.TaxId),G(e.MonthlyPrice),Y(e.YearlyPrice),X(e.YearlyTaxAmount),Z(e.MonthlyTaxAmount),V(e.YearlyNetPrice),q(e.MonthlyNetPrice),de(t),E(!0))},he=async(e,t)=>{if(ie&&!e.ActiveStatus){let e=[...N];e.splice(t,1),F(e)}if(ie&&e.ActiveStatus){let n=[...N];n[t]={AppName:null==e?void 0:e.AppName,FeatName:null==e?void 0:e.FeatName,FeatId:null==e?void 0:e.FeatId,YearlyNetPrice:null==e?void 0:e.YearlyNetPrice,MonthlyNetPrice:null==e?void 0:e.MonthlyNetPrice,YearlyPrice:null==e?void 0:e.YearlyPrice,MonthlyPrice:null==e?void 0:e.MonthlyPrice,YearlyTaxAmount:null==e?void 0:e.YearlyTaxAmount,TaxId:null==e?void 0:e.TaxId,MonthlyTaxAmount:null==e?void 0:e.MonthlyTaxAmount,UniqueId:null==e?void 0:e.UniqueId,TaxName:null==e?void 0:e.TaxName,ActiveStatus:"A"==(null==e?void 0:e.ActiveStatus)?"D":"A"},F(n)}else{let e=[...N];e.splice(t,1),F(e)}},fe=[{title:"SI.NO",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(v-1)+n+1})},{title:"Application Name",dataIndex:"AppName",key:"AppName",width:"100px",align:"left"},{title:"Feature Name",dataIndex:"FeatName",key:"FeatName",align:"left",width:"100px"},{title:"Price",children:[{title:"Monthly",dataIndex:"MonthlyPrice",key:"MonthlyPrice"},{title:"Yearly",dataIndex:"YearlyPrice",key:"YearlyPrice"}]},{title:"Tax Amount",children:[{title:"Monthly",dataIndex:"MonthlyTaxAmount",key:"MonthlyTaxAmount"},{title:"Yearly",dataIndex:"YearlyTaxAmount",key:"YearlyTaxAmount"}]},{title:"Net Amount",children:[{title:"Monthly",dataIndex:"MonthlyNetPrice",key:"MonthlyNetPrice"},{title:"Yearly",dataIndex:"YearlyNetPrice",key:"YearlyNetPrice"}]},{title:"Action",dataIndex:"Action",key:"Action",align:"right",width:"100px",render:(e,t,n)=>(null==N?void 0:N.length)>=1?Ye.jsxs(P,{size:"middle",children:["A"==(null==t?void 0:t.ActiveStatus)&&Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>Ae(t,n)})}),!(null==t?void 0:t.ActiveStatus)&&Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>Ae(t,n)})}),(null==t?void 0:t.ActiveStatus)?Ye.jsx("a",{children:ie&&"A"==(null==t?void 0:t.ActiveStatus)?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>he(t,n)}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>he(t,n)})}):Ye.jsx("a",{children:Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>he(t,n)})})]}):null}],ve=()=>{j.current.resetFields(),j.current.setFieldsValue({AppName:y})},ge=(e,t)=>t?e.TaxPercentage+" %":e.TaxName+" - "+e.TaxPercentage+" % ";return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:u,messageData:A,onComplete:pe}),Ye.jsxs("div",{className:"formAddNew FeaturesformAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Feature Pricing"})}),Ye.jsx("div",{className:"searchAddDiv",children:Ye.jsx("div",{className:"formSearch",style:{display:"flex"},children:Ye.jsx(I,{ref:j,className:"formDivAnt1",onFinish:async e=>{var t,n,i,a,r,s,l,o,d,c,u,A,m,v,g,y,x,b;S("True");const C=null==(t=null==B?void 0:B.find((t=>t.AppId==e.AppName)))?void 0:t.AppName,I=null==(n=null==f?void 0:f.find((t=>t.FeatId===(null==e?void 0:e.FeaturesName))))?void 0:n.FeatName;if(T)if(null==N?void 0:N.filter(((e,t)=>t!==oe)).some((t=>t.FeatId==(null==e?void 0:e.FeaturesName))))p("warning"),h("Already exist ");else{let t={};t.AppName=C,t.AppId=e.AppName,t.FeatId=null==e?void 0:e.FeaturesName,t.FeatName=I,t.YearlyNetPrice=H,t.MonthlyNetPrice=z,t.YearlyPrice=W,t.MonthlyPrice=K;let n=null==_?void 0:_.find((t=>t.TaxId==e.Tax));t.TaxName=null==n?void 0:n.TaxName,t.YearlyTaxAmount=$,t.MonthlyTaxAmount=J,t.TaxId=e.Tax,ie&&(t.UniqueId=ae),ie&&(t.ActiveStatus=se);let u=null==N?void 0:N.filter(((e,t)=>t!==oe));F([...u,t]),null==(i=j.current)||i.setFieldsValue({FeaturesName:null}),null==(a=j.current)||a.setFieldsValue({YearlyNetPrice:null}),null==(r=j.current)||r.setFieldsValue({MonthlyNetPrice:null}),null==(s=j.current)||s.setFieldsValue({YearlyTaxAmount:null}),null==(l=j.current)||l.setFieldsValue({MonthlyTaxAmount:null}),null==(o=j.current)||o.setFieldsValue({YearlyPrice:null}),null==(d=j.current)||d.setFieldsValue({MonthlyPrice:null}),null==(c=j.current)||c.setFieldsValue({Tax:null}),w(),R(),X(null),Y(null),Z(null),G(null),V(null),q(null),E(!1),ve()}else if(null==N?void 0:N.some((t=>t.FeatId==(null==e?void 0:e.FeaturesName))))p("warning"),h("already Exist ");else{let t={};t.AppName=C,t.AppId=e.AppName,t.FeatId=null==e?void 0:e.FeaturesName,t.FeatName=I,t.YearlyNetPrice=e.YearlyNetPrice,t.MonthlyNetPrice=e.MonthlyNetPrice,t.YearlyPrice=W,t.MonthlyPrice=K;let n=_.find((t=>t.TaxId==e.Tax));t.TaxName=null==n?void 0:n.TaxName,t.YearlyTaxAmount=$,t.MonthlyTaxAmount=J,t.TaxId=e.Tax,F([...N,t]),null==(u=j.current)||u.setFieldsValue({FeaturesName:null}),null==(A=j.current)||A.setFieldsValue({YearlyNetPrice:null}),null==(m=j.current)||m.setFieldsValue({MonthlyNetPrice:null}),null==(v=j.current)||v.setFieldsValue({YearlyTaxAmount:null}),null==(g=j.current)||g.setFieldsValue({MonthlyTaxAmount:null}),null==(y=j.current)||y.setFieldsValue({YearlyPrice:null}),null==(x=j.current)||x.setFieldsValue({MonthlyPrice:null}),null==(b=j.current)||b.setFieldsValue({Tax:null}),w(),R(),X(null),Z(null),Y(null),G(null),V(null),q(null),E(!1),ve()}},style:{display:"flex",flexDirection:"column"},children:Ye.jsxs("div",{className:"features-amountandcountdiv",style:{display:"flex",height:"58px"},children:[Ye.jsx("div",{style:{display:"flex",justifyContent:"space-between"},children:Ye.jsx(I.Item,{name:"AppName",rules:[{required:!0,message:"Please Select Application"}],children:Ye.jsx(_y,{options:null==B?void 0:B.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"AppId",label:Ye.jsx("label",{className:"required",children:"Application Name"}),className:"field-DropDown",onChangeFunction:e=>{var t;x(e),null==(t=j.current)||t.setFieldsValue({AppName:e})},valueData:y,disabled:!("True"!=C&&!ie)})})}),Ye.jsx("div",{style:{display:"flex",marginLeft:"20px"},children:Ye.jsx(I.Item,{name:"FeaturesName",rules:[{required:!0,message:"Please Select Feature"}],children:Ye.jsx(_y,{options:null==f?void 0:f.map(((e,t)=>({value:e.FeatId,label:e.FeatName}))),placeholder:"AppId",label:Ye.jsx("label",{className:"required",children:"Features"}),className:"field-DropDown-Feat",isOnchanges:(null==(t=null==(e=null==j?void 0:j.current)?void 0:e.getFieldValue())?void 0:t.FeaturesName)||null!=(null==(i=null==(n=null==j?void 0:j.current)?void 0:n.getFieldValue())?void 0:i.FeaturesName),onChangeFunction:e=>{var t;w(e),null==(t=j.current)||t.setFieldsValue({FeaturesName:e})},valueData:b,disabled:null!=ie&&null!=b})})}),Ye.jsx("div",{clasName:"taxdiv",style:{display:"flex",marginLeft:"20px"},children:Ye.jsx(I.Item,{name:"Tax",rules:[{required:!0,message:"Please Select Tax"}],children:Ye.jsx(_y,{options:null==_?void 0:_.map(((e,t)=>({value:e.TaxId,label:ge(e,M===e.TaxId)}))),isOnchanges:null==(s=null==(r=null==j?void 0:j.current)?void 0:r.getFieldValue())?void 0:s.Tax,placeholder:"AppId",label:Ye.jsx("label",{className:"required",children:"Tax"}),className:"field-DropDown-tax",onChangeFunction:e=>{var t;R(e),null==(t=j.current)||t.setFieldsValue({Tax:e})},valueData:M})})}),Ye.jsx("div",{style:{display:"flex",marginLeft:"10px"},children:Ye.jsx(I.Item,{name:"MonthlyNetPrice",rules:[{required:!0,pattern:/^\d+$/,message:"Please Enter Amount"},{validator:(e,t)=>/^\d{1,10}$/.test(t)?t<0?Promise.reject("Please Enter a Valid Monthly NetPrice"):Promise.resolve():Promise.reject("Enter a valid number max 10 digits")}],children:Ye.jsx(Oy,{field:"AMOUNT",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Amount Monthly"}),type:"number",fieldState:!0,fieldApi:!0,disabled:!M,isOnChange:null==(o=null==(l=null==j?void 0:j.current)?void 0:l.getFieldValue())?void 0:o.MonthlyNetPrice,onChange:e=>{var t,n,i,a;const r=null==(t=null==e?void 0:e.target)?void 0:t.value;null==(n=j.current)||n.setFieldsValue({MonthlyNetPrice:r});let s=_.find((e=>e.TaxId==M));null==(i=j.current)||i.setFieldsValue({MonthlyTaxAmount:r*(null==s?void 0:s.TaxPercentage)/100}),null==(a=j.current)||a.setFieldsValue({MonthlyPrice:r-r*(null==s?void 0:s.TaxPercentage)/100}),q(r),G((r-r*(null==s?void 0:s.TaxPercentage)/100).toFixed(2)),Z(r*(null==s?void 0:s.TaxPercentage)/100)}})})}),Ye.jsxs("div",{style:{display:"flex",marginLeft:"10px"},children:[Ye.jsx(I.Item,{name:"YearlyNetPrice",rules:[{required:!0,pattern:/^\d+$/,message:"Please Enter Amount"},{validator:(e,t)=>/^\d{1,10}$/.test(t)?t<0?Promise.reject("Please Enter a Valid Yearly NetPrice"):Promise.resolve():Promise.reject("Enter a valid number max 10 digits")}],children:Ye.jsx(Oy,{field:"AMOUNT",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Amount Yearly"}),type:"number",fieldState:!0,fieldApi:!0,disabled:!M,isOnChange:null==(c=null==(d=null==j?void 0:j.current)?void 0:d.getFieldValue())?void 0:c.YearlyNetPrice,onChange:e=>{var t,n,i,a;const r=null==(t=null==e?void 0:e.target)?void 0:t.value;null==(n=j.current)||n.setFieldsValue({YearlyNetPrice:r});let s=_.find((e=>e.TaxId==M));null==(i=j.current)||i.setFieldsValue({YearlyTaxAmount:r*(null==s?void 0:s.TaxPercentage)/100}),null==(a=j.current)||a.setFieldsValue({YearlyPrice:r-r*(null==s?void 0:s.TaxPercentage)/100}),V(r),Y((r-r*(null==s?void 0:s.TaxPercentage)/100).toFixed(2)),X(r*(null==s?void 0:s.TaxPercentage)/100)}})}),Ye.jsx("button",{type:"submit",style:{border:"none",width:"50px",height:"50px",backgroundColor:"#e8ecf1"},children:Ye.jsx(me,{style:{fontSize:"25px"}})})]})]})})})})]}),M&&Ye.jsx("div",{className:"CalcTable",children:Ye.jsxs("table",{children:[Ye.jsxs("tr",{children:[Ye.jsx("td",{children:" Monthly"}),Ye.jsx("td",{children:" Yearly"})]}),Ye.jsxs("tr",{children:[Ye.jsxs("td",{children:[" Price : ",K," "]}),Ye.jsxs("td",{children:[" Price : ",W," "]})]}),Ye.jsxs("tr",{children:[Ye.jsxs("td",{children:[" Tax Amount: ",J]}),Ye.jsxs("td",{children:[" Tax Amount: ",$]})]})]})}),Ye.jsxs("div",{className:"reportTable1",children:[Ye.jsx(Vb,{columns:fe,data:N,dataSource:N,pagination:e=>{g(e)}})," "]}),Ye.jsx("div",{style:{display:"flex",flexDirection:"row-reverse"},children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0,handleSubmit:async()=>{var e,t,n,i,a,r,s;if(ie){let i={};i.AppId=ie?ie.AppId:null==(e=N[0])?void 0:e.AppId;let a=N.map((e=>{const{AppName:t,TaxName:n,AppId:i,...a}=e;return a}));i.FeatDetails=a,i.UpdatedBy=Q;let r=await ue(iT(i)).unwrap();"1"==(null==(t=null==r?void 0:r.data)?void 0:t.statusCode)?ee(`${ree}setting/featurepricing/`,{state:{Notiffy:{messageType:"success",messageData:null==(n=null==r?void 0:r.data)?void 0:n.response}}}):(p("error"),h("Feature Pricing Not Added"))}else{let e={};e.AppId=null==(i=N[0])?void 0:i.AppId;let t=null==N?void 0:N.map((e=>{const{AppName:t,TaxName:n,AppId:i,...a}=e;return a}));e.FeatDetails=t,e.CreatedBy=Q;let n=await ue(sT(e)).unwrap();"1"==(null==(a=null==n?void 0:n.data)?void 0:a.statusCode)?ee(`${ree}setting/featurepricing/`,{state:{Notiffy:{messageType:"success",messageData:null==(r=null==n?void 0:n.data)?void 0:r.response}}}):(p("error"),h(null==(s=null==n?void 0:n.data)?void 0:s.response))}}})})]})})},lee=()=>{var e,t;const n=a.useRef(null),i=Qt(),r=um(),s=Mt(),l=null==(e=null==s?void 0:s.state)?void 0:e.type,o=null==(t=null==s?void 0:s.state)?void 0:t.editstate,[d,c]=a.useState(null),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState(null),[v,g]=a.useState(null),[x,b]=a.useState(null),[w,j]=a.useState(null),[C,S]=a.useState([]),[N,F]=a.useState([]),[B,P]=a.useState([]),T=iA("UserId"),E=[{name:"Home",link:"/landing-page/home"},{name:"PaymentGatewayConfig",link:"/setting/payment-gateway-config"},{name:o?"Edit":"New",link:null}];a.useEffect((()=>{var e;r(Gh({items:E})),D(),o&&(m(null==o?void 0:o.AppId),b(null==o?void 0:o.CompId),j(null==o?void 0:o.BranchId),g(null==o?void 0:o.UserId),null==(e=n.current)||e.setFieldsValue({AppId:null==o?void 0:o.AppId,UserId:null==o?void 0:o.UserId,CompId:null==o?void 0:o.CompId,BranchId:null==o?void 0:o.UserId}),L({AppId:null==o?void 0:o.AppId,Type:"Payment Gateway"}),U({UserId:null==o?void 0:o.UserId,AppId:null==o?void 0:o.AppId}),_(null==o?void 0:o.CompId))}),[]);const D=async()=>{var e,t;let n=await r(ST()).unwrap();1==(null==(e=null==n?void 0:n.data)?void 0:e.statusCode)&&c(null==(t=null==n?void 0:n.data)?void 0:t.data)},L=async({AppId:e,Type:t})=>{var n,i,a,s;const o=await r(W9({Type:t,AppId:e})).unwrap();if(1===(null==(n=o.data)?void 0:n.statusCode))if("edit"!=l){const e=null==(a=null==(i=null==o?void 0:o.data)?void 0:i.data)?void 0:a.filter((e=>e.Count>e.AllocatedCount));await S(e)}else await S(null==(s=null==o?void 0:o.data)?void 0:s.data);else await S([])},U=async({AppId:e,UserId:t})=>{var n,i;const a=await r(FA({UserId:t,AppId:e})).unwrap();1===(null==(n=a.data)?void 0:n.statusCode)?await F(null==(i=a.data)?void 0:i.data):await F([])},_=async e=>{var t,n;const i=await r(yA({storeId:e})).unwrap();1===(null==(t=i.data)?void 0:t.statusCode)?await P(null==(n=i.data)?void 0:n.data):await P([])};return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:u,messageData:A}),Ye.jsxs("div",{className:"formName",children:[Ye.jsx(ab,{title:"Payment Gateway Config"}),Ye.jsx("p",{className:"formdes"})]}),Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:n,className:"formDivAnt",onFinish:async e=>{var t,n,a;let s;if("edit"==l){let t=e;t.UniqueId=null==o?void 0:o.UniqueId,t.UpdatedBy=T,s=await r(G9(t)).unwrap()}else{let t=e;t.CreatedBy=T,s=await r(Y9(t)).unwrap()}1==(null==(t=null==s?void 0:s.data)?void 0:t.statusCode)?i("/setting/payment-gateway-config",{state:{Notiffy:{messageType:"success",messageData:null==(n=null==s?void 0:s.data)?void 0:n.response}}}):(p("error"),h(null==(a=null==s?void 0:s.data)?void 0:a.response))},initialValues:o,children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application"}],children:Ye.jsx(_y,{options:null==d?void 0:d.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"Application Name",label:Ye.jsx("label",{className:"required",children:"Application Name"}),className:"field-DropDown",isOnchanges:!!f,onChangeFunction:e=>(e=>{var t;m(e),g(null),b(null),j(null),S([]),F([]),P([]),L({AppId:e,Type:"Payment Gateway"}),null==(t=n.current)||t.setFieldsValue({AppId:e,UserId:null,CompId:null,BranchId:null})})(e),valueData:f,disabled:!!(null==o?void 0:o.AppId)})}),Ye.jsx(I.Item,{name:"UserId",rules:[{required:!0,message:"Please Select Admin"}],children:Ye.jsx(_y,{options:null==C?void 0:C.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?e.UserName:e.MobileNo}))),placeholder:"Admin Name",label:Ye.jsx("label",{className:"required",children:"Admin Name"}),className:"field-DropDown",isOnchanges:!!v,onChangeFunction:e=>(e=>{var t;U({UserId:e,AppId:f}),g(e),b(null),j(null),F([]),P([]),null==(t=n.current)||t.setFieldsValue({UserId:e,CompId:null,BranchId:null})})(e),valueData:v,disabled:!!(null==o?void 0:o.UserId)})}),Ye.jsx(I.Item,{name:"CompId",rules:[{required:!0,message:"Please Select Company"}],children:Ye.jsx(_y,{options:null==N?void 0:N.map((e=>({value:e.CompId,label:e.CompName}))),placeholder:"Company Name",label:Ye.jsx("label",{className:"required",children:"Company Name"}),className:"field-DropDown",isOnchanges:!!x,onChangeFunction:e=>(e=>{var t;b(e),_(e),j(null),P([]),null==(t=n.current)||t.setFieldsValue({CompId:e,BranchId:null})})(e),valueData:x,disabled:!!(null==o?void 0:o.CompId)})}),Ye.jsx(I.Item,{name:"BranchId",rules:[{required:!0,message:"Please Select Branch"}],children:Ye.jsx(_y,{options:null==B?void 0:B.map((e=>({value:e.BrId,label:e.BrName}))),placeholder:"Branch Name",label:Ye.jsx("label",{className:"required",children:"Branch Name"}),className:"field-DropDown",isOnchanges:!!w,onChangeFunction:e=>(e=>{var t;j(e),null==(t=n.current)||t.setFieldsValue({BranchId:e})})(e),valueData:w,disabled:!!(null==o?void 0:o.BranchId)})}),Ye.jsx(I.Item,{name:"MerchantId",rules:[{required:!0,message:"Please Enter MerchantId"},{validator:async(e,t)=>(await lA(t),t&&t.length>15?Promise.reject("Merchant Id should not exceed 15 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"MerchantId",label:Ye.jsx("label",{className:"required",children:"Merchant Id"}),fieldState:!0,fieldApi:!0,autocomplete:"off",isOnChange:!!(null==o?void 0:o.MerchantId)})}),Ye.jsx(I.Item,{name:"WorkingKey",rules:[{required:!0,message:"Please Enter Working key"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Workingkey",label:Ye.jsx("label",{className:"required",children:"Working key"}),fieldState:!0,fieldApi:!0,autocomplete:"off",isOnChange:!!(null==o?void 0:o.WorkingKey)})}),Ye.jsx(I.Item,{name:"AccessCode",rules:[{required:!0,message:"Please Enter Access code"},{validator:async(e,t)=>(await lA(t),t&&t.length>50?Promise.reject("Access Code should not exceed 50 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"Accesscode",label:Ye.jsx("label",{className:"required",children:"Access code"}),fieldState:!0,fieldApi:!0,autocomplete:"off",isOnChange:!!(null==o?void 0:o.AccessCode)})}),Ye.jsx(y,{buttonText:"Add",color:"blue",icon:Ye.jsx(k,{})})]})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})})]})})]})})})},oee="/",dee="https://www.pozo.dev/pozo-common-api",cee=Ja("getApplicationNames",(async()=>Ne.get(`${dee}/application?activeStatus=A`))),uee=Ja("GetAdminData",(async({AppId:e,Type:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await Ne.get(`${dee}/UAMFeatAddon?Type=${t}&AppId=${e}`)})),pee=Ja("getStoreData",(async({UserId:e,AppId:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await fA.get(`/appAccess?UserId=${e}&AppId=${t}`)})),Aee=Ja("getBranchData",(async({storeId:e})=>{if(null!=e&&null!=e)return await fA.get(`/branch?CompId=${e}`)})),hee=Ja("GetPaymentDeviceConfig",(async()=>await fA.get("/PaymentDeviceconfig"))),fee=Ja("postPaymentDeviceConfig",(async e=>await fA.post("/PaymentDeviceconfig",e))),mee=Ja("putPaymentDeviceConfig",(async e=>await fA.put("/PaymentDeviceconfig",e))),vee=Ja("deletePaymentDeviceConfig",(async e=>await fA.delete(`/PaymentDeviceconfig?uniqueId=${null==e?void 0:e.UniqueId}&updatedBy=${null==e?void 0:e.UpdatedBy}&activeStatus=${null==e?void 0:e.ActiveStatus}`))),gee="/",yee="/home/",xee=({formType:e})=>{var t;const n=Qt(),i=um(),r=Mt(),s=null==r?void 0:r.state,l=null==s?void 0:s.editState,o=a.useRef(null),d=iA("UserType"),[c,u]=a.useState(null),[p,A]=a.useState(null),[h,f]=a.useState(null),[m,v]=a.useState([]),[g,y]=a.useState([]),[x,b]=a.useState([]),[w,j]=a.useState(null),[C,S]=a.useState(null),[N,B]=a.useState(null),[T,E]=a.useState(null),[_,O]=a.useState([]),[M,R]=a.useState(!1),[Q,H]=a.useState(),V=iA("UserId"),z=Tf(Gg),q=[{name:"Home",link:`${yee}landing-page/home`},{name:"PaymentDeviceConfig",link:`${yee}setting/payment-device-config`},{name:l?"Edit":"New",link:null}];a.useEffect((()=>{var e,t;if(i(Gh({items:q})),K(),l){j(null==l?void 0:l.AppId),B(null==l?void 0:l.CompId),E(null==l?void 0:l.BranchId),S(null==l?void 0:l.UserId),null==(e=o.current)||e.setFieldsValue({AppId:null==l?void 0:l.AppId,UserId:null==l?void 0:l.UserId,CompId:null==l?void 0:l.CompId,BranchId:null==l?void 0:l.UserId,MerchantId:null==l?void 0:l.MerchantId}),G({AppId:null==l?void 0:l.AppId,Type:"Payment Device"}),$({UserId:null==l?void 0:l.UserId,AppId:null==l?void 0:l.AppId}),X(null==l?void 0:l.CompId);const n=null==(t=null==l?void 0:l.DeviceConfigDetails)?void 0:t.map((e=>({StoreId:null==e?void 0:e.StoreId,ClientId:null==e?void 0:e.ClientId,SecurityToken:null==e?void 0:e.SecurityToken,IMEI:null==e?void 0:e.IMEI,AutoCancelDurationInMinutes:null==e?void 0:e.AutoCancelDurationInMinutes,UniqueId:null==e?void 0:e.UniqueId,ActiveStatus:null==e?void 0:e.ActiveStatus})));O(n)}}),[]);const W=[{title:"SI.NO",align:"center",key:"sno",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:n+1})},{title:"ClientId",dataIndex:"ClientId",key:"ClientId",align:"right",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"StoreId",dataIndex:"StoreId",key:"StoreId",align:"right",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Security Token",dataIndex:"SecurityToken",key:"SecurityToken",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"IMEI",dataIndex:"IMEI",key:"IMEI",align:"right",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Auto Cancel Duration InMinutes",dataIndex:"AutoCancelDurationInMinutes",key:"AutoCancelDurationInMinutes",align:"right",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Action",dataIndex:"Action",key:"Action",render:(e,t,n)=>(null==_?void 0:_.length)>=1?Ye.jsxs(P,{size:"middle",children:[!(null==t?void 0:t.UniqueId)&&Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>J(t,n)})}),(null==t?void 0:t.UniqueId)?Ye.jsx("a",{children:(null==t?void 0:t.UniqueId)&&"A"==(null==t?void 0:t.ActiveStatus)?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>Z(t,n)}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>Z(t,n)})}):Ye.jsx("a",{children:Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>Z(t,n)})})]}):null}],Y=a.useCallback((()=>{A(null),u(null)}),[]),K=async()=>{var e,t;let n=await i(cee()).unwrap();1==(null==(e=null==n?void 0:n.data)?void 0:e.statusCode)&&f(null==(t=null==n?void 0:n.data)?void 0:t.data)},G=async({AppId:t,Type:n})=>{var a,r,s,l;const o=await i(uee({Type:n,AppId:t})).unwrap();if(1===(null==(a=o.data)?void 0:a.statusCode))if("edit"!=e){const e=null==(s=null==(r=null==o?void 0:o.data)?void 0:r.data)?void 0:s.filter((e=>e.Count>e.AllocatedCount));await v(e)}else await v(null==(l=null==o?void 0:o.data)?void 0:l.data);else await v([])},$=async({AppId:e,UserId:t})=>{var n,a;const r=await i(pee({UserId:t,AppId:e})).unwrap();1===(null==(n=r.data)?void 0:n.statusCode)?await y(null==(a=r.data)?void 0:a.data):await y([])},X=async e=>{var t,n;const a=await i(Aee({storeId:e})).unwrap();1===(null==(t=a.data)?void 0:t.statusCode)?await b(null==(n=a.data)?void 0:n.data):await b([])},J=(e,t)=>{var n;null==(n=null==o?void 0:o.current)||n.setFieldsValue({StoreId:e.StoreId,ClientId:e.ClientId,SecurityToken:e.SecurityToken,IMEI:e.IMEI,AutoCancelDurationInMinutes:e.AutoCancelDurationInMinutes}),R(!0),H(t)},Z=(e,t)=>{if(M||e.UniqueId){if(e.UniqueId){let n=[..._];n[t]={StoreId:null==e?void 0:e.StoreId,ClientId:null==e?void 0:e.ClientId,SecurityToken:null==e?void 0:e.SecurityToken,UniqueId:null==e?void 0:e.UniqueId,IMEI:null==e?void 0:e.IMEI,AutoCancelDurationInMinutes:null==e?void 0:e.AutoCancelDurationInMinutes,ActiveStatus:"A"==(null==e?void 0:e.ActiveStatus)?"D":"A"},O(n)}}else{const e=[..._];e.splice(t,1),O(e)}};return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:c,messageData:p,onComplete:Y}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Payment Device Config"})}),Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:o,className:"formDivAnt",children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application"}],children:Ye.jsx(_y,{options:null==h?void 0:h.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"Application Name",label:"Application Name",className:"field-DropDown",isOnchanges:!!w,onChangeFunction:e=>(async e=>{var t;j(e),S(null),B(null),E(null),v([]),y([]),b([]),G({AppId:e,Type:"Payment Device"}),null==(t=o.current)||t.setFieldsValue({AppId:e,UserId:null,CompId:null,BranchId:null})})(e),valueData:w,disabled:!!((null==_?void 0:_.length)>0&&!M||(null==l?void 0:l.AppId))})}),Ye.jsx(I.Item,{name:"UserId",rules:[{required:!0,message:"Please Select Admin"}],children:Ye.jsx(_y,{options:null==m?void 0:m.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?e.UserName:e.MobileNo}))),placeholder:"Admin Name",label:"Admin Name",className:"field-DropDown",isOnchanges:!!C,onChangeFunction:e=>(e=>{var t;S(e),B(null),E(null),y([]),b([]),$({UserId:e,AppId:w}),null==(t=o.current)||t.setFieldsValue({UserId:e,CompId:null,BranchId:null})})(e),valueData:C,disabled:!!((null==_?void 0:_.length)>0&&!M||(null==l?void 0:l.UserId))})}),Ye.jsx(I.Item,{name:"CompId",rules:[{required:!0,message:"Please Select Company"}],children:Ye.jsx(_y,{options:null==g?void 0:g.map((e=>({value:e.CompId,label:e.CompName}))),placeholder:"Company Name",label:"Company Name",className:"field-DropDown",isOnchanges:!!N,onChangeFunction:e=>(e=>{var t;B(e),E(null),b([]),X(e),null==(t=o.current)||t.setFieldsValue({CompId:e,BranchId:null})})(e),valueData:N,disabled:!!((null==_?void 0:_.length)>0&&!M||(null==l?void 0:l.CompId))})}),Ye.jsx(I.Item,{name:"BranchId",rules:[{required:!0,message:"Please Select Branch"}],children:Ye.jsx(_y,{options:null==x?void 0:x.map((e=>({value:e.BrId,label:e.BrName}))),placeholder:"Branch Name",label:"Branch Name",className:"field-DropDown",isOnchanges:!!T,onChangeFunction:e=>(e=>{var t;E(e),null==(t=o.current)||t.setFieldsValue({BranchId:e})})(e),valueData:T,disabled:!!((null==_?void 0:_.length)>0&&!M||(null==l?void 0:l.BranchId))})}),Ye.jsx(I.Item,{name:"MerchantId",rules:[{required:!0,message:"Please Enter MerchantId"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"MerchantId",label:"Merchant Id",fieldState:!0,fieldApi:!0,autocomplete:"off",isOnChange:!!(null==l?void 0:l.MerchantId),disabled:!!((null==_?void 0:_.length)>0&&!M||(null==l?void 0:l.MerchantId))})}),Ye.jsx(I.Item,{name:"ClientId",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"ClientId",label:"Client Id",fieldState:!0,fieldApi:!0,autocomplete:"off",isOnChange:!!M})}),Ye.jsx(I.Item,{name:"StoreId",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"StoreId",label:"Store Id",fieldState:!0,fieldApi:!0,autocomplete:"off",isOnChange:!!M})}),Ye.jsx(I.Item,{name:"SecurityToken",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"SecurityToken",label:"Security Token",fieldState:!0,fieldApi:!0,autocomplete:"off",isOnChange:!!M})}),Ye.jsx(I.Item,{name:"IMEI",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"IMEI",label:"IMEI",fieldState:!0,fieldApi:!0,autocomplete:"off",isOnChange:!!M})}),Ye.jsx(I.Item,{name:"AutoCancelDurationInMinutes",rules:[{pattern:/^[1-9]\d*$/,message:"Please Enter AutoCancelDurationInMinutes"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"AutoCancelDurationInMinutes",label:"Auto Cancel Duration InMinutes",fieldState:!0,fieldApi:!0,autocomplete:"off",isOnChange:!!M})}),Ye.jsx(F,{title:M?"Update":"Add",placement:"top",children:M?Ye.jsx(ge,{className:"component-add",onClick:async()=>{var e,t;const n=null==(e=o.current)?void 0:e.getFieldsValue();if((null==n?void 0:n.AppId)&&(null==n?void 0:n.UserId)&&(null==n?void 0:n.CompId)&&(null==n?void 0:n.BranchId)&&(null==n?void 0:n.MerchantId)&&(null==n?void 0:n.StoreId)&&(null==n?void 0:n.ClientId)&&(null==n?void 0:n.SecurityToken)&&(null==n?void 0:n.IMEI)&&(null==n?void 0:n.AutoCancelDurationInMinutes)){let e=null==_?void 0:_.filter((e=>e.StoreId===(null==n?void 0:n.StoreId)&&e.ClientId===(null==n?void 0:n.ClientId)&&e.SecurityToken===(null==n?void 0:n.SecurityToken)&&e.IMEI===(null==n?void 0:n.IMEI)&&e.AutoCancelDurationInMinutes===(null==n?void 0:n.AutoCancelDurationInMinutes)));if(0==(null==e?void 0:e.length)){let e=[..._];e[Q]={...e[Q],StoreId:null==n?void 0:n.StoreId,ClientId:null==n?void 0:n.ClientId,SecurityToken:null==n?void 0:n.SecurityToken,IMEI:null==n?void 0:n.IMEI,AutoCancelDurationInMinutes:null==n?void 0:n.AutoCancelDurationInMinutes,ActiveStatus:"A"},O(e)}else u("error"),A("Data Already Exists");R(!1),null==(t=null==o?void 0:o.current)||t.setFieldsValue({StoreId:null,ClientId:null,SecurityToken:null,IMEI:null,AutoCancelDurationInMinutes:null})}else u("error"),A("Please Give Data")}}):Ye.jsx(me,{className:"component-add",onClick:async()=>{var e,t,n;const i=await(null==(e=null==o?void 0:o.current)?void 0:e.validateFields());if((null==i?void 0:i.AppId)&&(null==i?void 0:i.UserId)&&(null==i?void 0:i.CompId)&&(null==i?void 0:i.BranchId)&&(null==i?void 0:i.MerchantId)&&(null==i?void 0:i.StoreId)&&(null==i?void 0:i.ClientId)&&(null==i?void 0:i.SecurityToken)&&(null==i?void 0:i.IMEI)&&(null==i?void 0:i.AutoCancelDurationInMinutes))if((null==_?void 0:_.length)>0){let e=null==_?void 0:_.filter((e=>e.StoreId===(null==i?void 0:i.StoreId)&&e.ClientId===(null==i?void 0:i.ClientId)&&e.SecurityToken===(null==i?void 0:i.SecurityToken)&&e.IMEI===(null==i?void 0:i.IMEI)&&e.AutoCancelDurationInMinutes==(null==i?void 0:i.AutoCancelDurationInMinutes)));0==(null==e?void 0:e.length)?await O([..._,{StoreId:null==i?void 0:i.StoreId,ClientId:null==i?void 0:i.ClientId,SecurityToken:null==i?void 0:i.SecurityToken,IMEI:null==i?void 0:i.IMEI,AutoCancelDurationInMinutes:null==i?void 0:i.AutoCancelDurationInMinutes,ActiveStatus:"A"}]):(u("error"),A("Data Already Exists")),null==(t=null==o?void 0:o.current)||t.setFieldsValue({StoreId:null,ClientId:null,SecurityToken:null,IMEI:null,AutoCancelDurationInMinutes:null})}else await O([..._,{StoreId:null==i?void 0:i.StoreId,ClientId:null==i?void 0:i.ClientId,SecurityToken:null==i?void 0:i.SecurityToken,IMEI:null==i?void 0:i.IMEI,AutoCancelDurationInMinutes:null==i?void 0:i.AutoCancelDurationInMinutes,ActiveStatus:"A"}]),null==(n=null==o?void 0:o.current)||n.setFieldsValue({StoreId:null,ClientId:null,SecurityToken:null,IMEI:null,AutoCancelDurationInMinutes:null});else u("error"),A("Please Give Data")}})})]})}),(null==_?void 0:_.length)>0&&Ye.jsxs("div",{className:"component-table",children:[Ye.jsx(Vb,{columns:W,data:_,dataSource:_,deleteTableRows:Z})," "]}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0,disabled:"Super Admin"!==d&&(_.length<=0||"N"===(null==(t=null==z?void 0:z.find((e=>"Payment Device Config"===(null==e?void 0:e.ConfigName))))?void 0:t.AddAccess)),handleSubmit:async()=>{var t,a,r,s;if((null==_?void 0:_.length)>0){let d=null==(t=null==o?void 0:o.current)?void 0:t.getFieldsValue();const c={AppId:null==d?void 0:d.AppId,CompId:null==d?void 0:d.CompId,BranchId:null==d?void 0:d.BranchId,UserId:null==d?void 0:d.UserId,MerchantId:null==d?void 0:d.MerchantId,DeviceConfigDetails:"add"==e?null==_?void 0:_.map((e=>({StoreId:e.StoreId,ClientId:e.ClientId,SecurityToken:e.SecurityToken,IMEI:e.IMEI,AutoCancelDurationInMinutes:e.AutoCancelDurationInMinutes}))):null==_?void 0:_.map((e=>({UniqueId:null==e.UniqueId?0:e.UniqueId,StoreId:e.StoreId,ClientId:e.ClientId,SecurityToken:e.SecurityToken,IMEI:e.IMEI,AutoCancelDurationInMinutes:e.AutoCancelDurationInMinutes,ActiveStatus:e.ActiveStatus}))),CreatedBy:V};let p={};"add"==e?p=await i(fee(c)).unwrap():"edit"==e&&(c.UniqueId=null==l?void 0:l.UniqueId,c.UpdatedBy=V,p=await i(mee(c)).unwrap()),1==(null==(a=null==p?void 0:p.data)?void 0:a.statusCode)?n(`${yee}setting/payment-device-config`,{state:{Notiffy:{messageType:"success",messageData:null==(r=null==p?void 0:p.data)?void 0:r.response}}}):(u("error"),A(null==(s=null==p?void 0:p.data)?void 0:s.response))}}})})]})})]})})})},bee=Ja("GetAdminData",(async e=>{if(null!=(null==e?void 0:e.Type)&&null!=(null==e?void 0:e.Type)&&null!=(null==e?void 0:e.AppId)&&null!=(null==e?void 0:e.AppId))return await Ne.get(`https://www.pozo.dev/pozo-common-api/UAMFeatAddon?Type=${null==e?void 0:e.Type}&AppId=${null==e?void 0:e.AppId}`)})),wee=Ja("GetAdminData",(async()=>await fA.get("/DeviceInfo"))),jee=Ja("GetMacAddressnotallocated",(async()=>await fA.get('/DeviceInfo?type="DI"'))),Cee=Ja("PostMacAddress",(async e=>await fA.post("/DeviceInfo",e))),See=Ja("PostMacAddress",(async e=>await fA.put("/DeviceInfo",e))),Nee=Ja("PostMacAddress",(async e=>await fA.delete(`/DeviceInfo?activeStatus=${null==e?void 0:e.ActiveStatus}&deviceId=${null==e?void 0:e.deviceId}&updatedBy=${null==e?void 0:e.UpdatedBy}`))),Iee=Ja("Postdeviceallocation",(async e=>await fA.post("/DeviceAllocation",e))),Fee=Ja("GetDeviceallocation",(async()=>await fA.get("/DeviceAllocation"))),Bee=Ja("moduleAccess/getUserAppDetails",(async({UserId:e,AppId:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await fA.get(`/appAccess?UserId=${e}&AppId=${t}`)})),Pee=Ja("PutDeviceAllocation",(async e=>await fA.put("/DeviceAllocation",e))),kee=Ja("DeleteDeviceAllocation",(async e=>await fA.delete(`/DeviceAllocation?activeStatus=${null==e?void 0:e.ActiveStatus}&uniqueId=${null==e?void 0:e.uniqueId}&updatedBy=${null==e?void 0:e.UpdatedBy}`))),Tee="/home/",Eee="/",Dee=({formType:e})=>{var t;const n=a.useRef(null),i=Qt(),r=um(),s=Mt(),l=iA("UserId"),o=null==(t=null==s?void 0:s.state)?void 0:t.editstate,[d,c]=a.useState(null),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState(null),[v,g]=a.useState(null),[x,b]=a.useState(null),[w,j]=a.useState(null),[C,S]=a.useState([]),[N,F]=a.useState([]),[B,P]=a.useState([]),[T,E]=a.useState([]),[D,L]=a.useState(null),U=[{name:"Home",link:`${Eee}landing-page/home`},{name:"DeviceAllocation",link:`${Eee}setting/device-allocation`},{name:o?"edit":"New",link:null}];a.useEffect((()=>{var e,t,i,a,s;O(),r(Gh({items:U})),M(),o&&(_(),R(null==o?void 0:o.AppId),m(null==o?void 0:o.AppId),b(null==o?void 0:o.UserId),g(null==o?void 0:o.CompId),j(null==o?void 0:o.BranchId),L(null==o?void 0:o.DeviceId),z({UserId:null==o?void 0:o.UserId,AppId:null==o?void 0:o.AppId}),q(null==o?void 0:o.CompId),Q(null==o?void 0:o.UserId),null==(e=n.current)||e.setFieldsValue({ApplicationName:null==o?void 0:o.AppId}),null==(t=n.current)||t.setFieldsValue({AdminName:null==o?void 0:o.UserId}),null==(i=n.current)||i.setFieldsValue({CompanyName:null==o?void 0:o.CompId}),null==(a=n.current)||a.setFieldsValue({BranchName:null==o?void 0:o.BranchId}),null==(s=n.current)||s.setFieldsValue({MacAddress:null==o?void 0:o.DeviceId}))}),[]);const _=async()=>{var e,t;let n={Type:"Kiosk Sales",AppId:null==o?void 0:o.AppId},i=await r(bee(n)).unwrap();P(null==(t=null==(e=null==i?void 0:i.data)?void 0:e.data)?void 0:t.filter((e=>(null==e?void 0:e.Count)>(null==e?void 0:e.AllocatedCount))))},O=async()=>{var t,n,i,a,s,l;try{if(r(Gh({items:U})),"add"==e){let e=await(null==(t=r(jee()))?void 0:t.unwrap());1==(null==(n=null==e?void 0:e.data)?void 0:n.statusCode)&&E(null==(i=null==e?void 0:e.data)?void 0:i.data)}else{let e=await(null==(a=r(wee()))?void 0:a.unwrap());1==(null==(s=null==e?void 0:e.data)?void 0:s.statusCode)&&E(null==(l=null==e?void 0:e.data)?void 0:l.data)}}catch(o){}};a.useEffect((()=>{var e,t;1==(null==d?void 0:d.length)&&(m(null==(e=null==d?void 0:d[0])?void 0:e.AppId),R(null==(t=null==d?void 0:d[0])?void 0:t.AppId))}),[d]),a.useEffect((()=>{var e,t;1==(null==C?void 0:C.length)&&(g(null==(e=null==C?void 0:C[0])?void 0:e.CompId),H(null==(t=null==C?void 0:C[0])?void 0:t.CompId))}),[C]),a.useEffect((()=>{var e,t;1==N.length&&(j(null==(e=null==N?void 0:N[0])?void 0:e.BrId),V(null==(t=null==N?void 0:N[0])?void 0:t.BrId))}),[N]);const M=async()=>{var e,t,n,i;let a=await r(ST(f));1==(null==(t=null==(e=null==a?void 0:a.payload)?void 0:e.data)?void 0:t.statusCode)&&c(null==(i=null==(n=null==a?void 0:a.payload)?void 0:n.data)?void 0:i.data)},R=async e=>{var t,i,a,s;n.current.resetFields(),m(e),b(null),g(null),j(null),L(null),null==(t=n.current)||t.setFieldsValue({ApplicationName:e});let l={Type:"Kiosk Sales",AppId:e},d=await r(bee(l)).unwrap();P(o?null==(i=null==d?void 0:d.data)?void 0:i.data:null==(s=null==(a=null==d?void 0:d.data)?void 0:a.data)?void 0:s.filter((e=>(null==e?void 0:e.Count)>(null==e?void 0:e.AllocatedCount)))),S([]),F([])},Q=e=>{var t;b(e),z({UserId:e,AppId:f}),null==(t=n.current)||t.setFieldsValue({AdminName:e})},H=e=>{var t;g(e),q(e),null==(t=n.current)||t.setFieldsValue({CompanyName:e})},V=e=>{var t;j(e),null==(t=n.current)||t.setFieldsValue({BranchName:e})},z=async({AppId:e,UserId:t})=>{var n,i;const a=await r(Bee({UserId:t,AppId:e})).unwrap();1===(null==(n=null==a?void 0:a.data)?void 0:n.statusCode)?await S(null==(i=a.data)?void 0:i.data):await S([])},q=async e=>{var t,n;const i=await r(yA({storeId:e})).unwrap();1===(null==(t=i.data)?void 0:t.statusCode)?await F(null==(n=i.data)?void 0:n.data):await F([])};return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:u,messageData:A}),Ye.jsxs("div",{className:"formName",children:[Ye.jsx(ab,{title:"Device Allocation"}),Ye.jsx("p",{className:"formdes"})]}),Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:n,className:"formDivAnt",onFinish:async t=>{var a,s,d,c;if("edit"==e){const e={DeviceId:null==t?void 0:t.MacAddress,CompId:null==t?void 0:t.CompanyName,BranchId:null==t?void 0:t.BranchName,AppId:null==t?void 0:t.ApplicationName,UserId:null==t?void 0:t.AdminName,CreatedBy:l,UniqueId:null==o?void 0:o.UniqueId};let d=await r(Pee(e)).unwrap();1==(null==(a=null==d?void 0:d.data)?void 0:a.statusCode)?(n.current.resetFields(),m(null),g(null),j(null),S([]),F([]),i(`${Eee}setting/device-allocation`,{state:{Notiffy:{messageType:"success",messageData:"Device Address Has been Updated Successfully"}}})):(p("error"),h(null==(s=null==d?void 0:d.data)?void 0:s.response))}else{const e={DeviceId:null==t?void 0:t.MacAddress,CompId:null==t?void 0:t.CompanyName,BranchId:null==t?void 0:t.BranchName,AppId:null==t?void 0:t.ApplicationName,UserId:null==t?void 0:t.AdminName,CreatedBy:l};let a=await r(Iee(e));1==(null==(c=null==(d=null==a?void 0:a.payload)?void 0:d.data)?void 0:c.statusCode)&&(n.current.resetFields(),m(null),g(null),j(null),S([]),F([]),b(null),i(`${Eee}setting/device-allocation`,{state:{Notiffy:{messageType:"success",messageData:"Device Address Has been Added Successfully"}}}))}},children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"ApplicationName",rules:[{required:!0,message:"Please Select ApplicationName"}],children:Ye.jsx(_y,{options:null==d?void 0:d.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"Application Name",label:Ye.jsx("label",{className:"required",children:"Application Name"}),className:"field-DropDown",isOnchanges:!!f,onChangeFunction:e=>R(e),valueData:f})}),Ye.jsx(I.Item,{name:"AdminName",rules:[{required:!0,message:"Please Select AdminName"}],children:Ye.jsx(_y,{options:null==B?void 0:B.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?e.UserName:e.MobileNo}))),placeholder:"Admin Name",label:Ye.jsx("label",{className:"required",children:"AdminName"}),className:"field-DropDown",isOnchanges:!!x,onChangeFunction:e=>Q(e),valueData:x,disabled:!!o})}),Ye.jsx(I.Item,{name:"CompanyName",rules:[{required:!0,message:"Please Select CompanyName"}],children:Ye.jsx(_y,{options:null==C?void 0:C.map((e=>({value:e.CompId,label:e.CompName}))),placeholder:"Company Name",label:Ye.jsx("label",{className:"required",children:"Company Name"}),className:"field-DropDown",isOnchanges:!!v,onChangeFunction:e=>H(e),valueData:v})}),Ye.jsx(I.Item,{name:"BranchName",rules:[{required:!0,message:"Please Select BranchName"}],children:Ye.jsx(_y,{options:null==N?void 0:N.map((e=>({value:e.BrId,label:e.BrName}))),placeholder:"Branch Name",label:Ye.jsx("label",{className:"required",children:"Branch Name"}),className:"field-DropDown",isOnchanges:!!w,onChangeFunction:e=>V(e),valueData:w})}),Ye.jsx(I.Item,{name:"MacAddress",rules:[{required:!0,message:"Please Select MacAddress"}],children:Ye.jsx(_y,{options:null==T?void 0:T.map((e=>({value:e.DeviceId,label:e.DeviceAddress}))),placeholder:"Device Id",label:Ye.jsx("label",{className:"required",children:"Device Id"}),className:"field-DropDown",isOnchanges:!!D,onChangeFunction:e=>(e=>{var t;L(e),null==(t=n.current)||t.setFieldsValue({MacAddress:e})})(e),valueData:D})}),Ye.jsx(y,{buttonText:"Add",color:"blue",icon:Ye.jsx(k,{})})]})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})})]})})]})})})},Lee=[{name:"Home",link:"/landing-page/home"}],Uee=Ja("Loyaltynamepost/LoyaltySettings",(async()=>await fA.get("/LoyaltySettings"))),_ee=Ja("Loyaltynamepost/LoyaltySettings",(async e=>await fA.post("/LoyaltySettings",e))),Oee=Ja("Loyaltynamepost/LoyaltySettings",(async e=>await fA.put("/LoyaltySettings",e))),Mee=Ja("Loyaltynamepost/LoyaltySettings",(async e=>await fA.delete("/LoyaltySettings",{params:e}))),Ree=Ja("Employeerefferalpost",(async()=>await fA.get("RefAppCommissions"))),Qee=Ja("Employeerefferalpost",(async e=>await fA.post("RefAppCommissions",e))),Hee=Ja("Employeerefferalpost",(async e=>await fA.put("RefAppCommissions",e))),Vee=Ja("Loyaltynamepost/LoyaltySettings",(async e=>await fA.delete("/RefAppCommissions",{params:e}))),zee=Ja("RefPayments/RefferedEmployeeList",(async()=>await fA.get("/RefPayments/UserList"))),qee=Ja("getPricingType/getPricingType",(async()=>await fA.get("/configMaster?TypeName=Payment Type&ActiveStatus=A"))),Wee=Ja("ReferredEmployePayPost",(async e=>await fA.post("RefPayments",e))),Yee="/home/",Kee="/home/",Gee=({formType:e})=>{var t,n;const i=Qt(),r=um(),s=Mt(),l=a.useRef(null),o=a.useRef(null),d=null==s?void 0:s.state,c=null==d?void 0:d.editstate,[u,p]=a.useState(iA("UserId")?iA("UserId"):null),[A,h]=a.useState(null),[f,v]=a.useState(null),[x,b]=a.useState("Loyaltypoint"==(null==c?void 0:c.RewardType)?"LY":"CA"),[w,j]=a.useState("edit"===e?c.CommissionType:"O"),[C,S]=a.useState(!1),[N,F]=a.useState([]),[B,T]=a.useState(null),[E,_]=a.useState(null),[O,R]=a.useState(1),[Q,H]=a.useState({});a.useState("");const[V,z]=a.useState(!0),[q,W]=a.useState([]);a.useState([]);const[Y,K]=a.useState(!1),[G,$]=a.useState(),[X,J]=a.useState(),[Z,ee]=a.useState(),[te,ne]=a.useState(),[ie,ae]=a.useState("edit"===e?[]:[{key:0}]),[re,se]=a.useState([]),[le,oe]=a.useState(re),de=a.useRef(!1);let ce=(null==(n=null==(t=null==l?void 0:l.current)?void 0:t.getFieldsValue())?void 0:n.CommissionDetails)||[];ce.map((e=>e.UserType));const[,ue]=a.useState(!1),pe=[{name:"Home",link:`${Kee}landing-page/home`},{name:"Referral Setting",link:`${Kee}setting/referral-setting`},{name:c?"Edit":"New",link:null}];a.useEffect((()=>{var t,n,i;r(Gh({items:pe})),"edit"===e&&c&&(T(null==c?void 0:c.AppId),_("P"==(null==c?void 0:c.AmtType)?"P":"F"),b("Loyaltypoint"==(null==c?void 0:c.RewardType)?"LY":"CA"),ne(null==c?void 0:c.LoyaltySettingId),null==(i=l.current)||i.setFieldsValue({AppId:null==c?void 0:c.AppId,AmtType:null==c?void 0:c.AmtType,CommissionName:null==c?void 0:c.CommissionName,CommissionAmt:"O"==(null==c?void 0:c.CommissionType)?null==(n=null==(t=null==c?void 0:c.CommissionDetails)?void 0:t[0])?void 0:n.CommissionAmt:"",LoyaltySettingId:null==c?void 0:c.LoyaltySettingId})),fe(),xe(),he()}),[]),a.useEffect((()=>{var t;"edit"===e&&("edit"!==e||de.current||(we(null==(t=null==c?void 0:c.CommissionDetails)?void 0:t.length),de.current=!0))}),[e,c]);const Ae=a.useCallback((()=>{v(null),h(null)}),[]),he=async()=>{var e,t,n;const i=await r(db()).unwrap();1===(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&(se(null==(t=null==i?void 0:i.data)?void 0:t.data),oe(null==(n=null==i?void 0:i.data)?void 0:n.data))},fe=async()=>{var e,t;let n=await r(Fb()).unwrap();1===(null==(e=null==n?void 0:n.data)?void 0:e.statusCode)?F(null==(t=null==n?void 0:n.data)?void 0:t.data):F()},ve=[{title:"SI.no",key:"sno",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:n+1}),align:"center",width:"50px"},{title:"Loyalty Name",dataIndex:"NameOfLoyality",key:"NameOfLoyality",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),align:"right",width:"100px"},{title:"Loyalty Point",dataIndex:"PointValue",key:"PointValue",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Action",dataIndex:"Action",key:"Action",width:"100px",render:(e,t,n)=>(null==q?void 0:q.length)>=1?Ye.jsxs(P,{size:"middle",children:["A"===t.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>ge(t,n)})}):"",Ye.jsx("a",{children:"A"==t.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>ye(t)}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>ye(t)})})]}):null}],ge=async(e,t)=>{var n;K(!0),z(!1),$(t),null==(n=null==o?void 0:o.current)||n.setFieldsValue({NameOfLoyality:null==e?void 0:e.NameOfLoyality,PointValue:null==e?void 0:e.PointValue}),J(e),$(t)},ye=async(e,t)=>{if(Y)h("warning"),v("Please update data");else{let t={settingsId:e.SettingId,UpdatedBy:e.UpdatedBy,ActiveStatus:"A"==e.ActiveStatus?"D":"A"};1==(await r(Mee(t)).unwrap()).data.statusCode&&(h("success"),v("A"==e.ActiveStatus?"Loaylty In-Activated Successfully":"Loaylty Activated Successfully"),xe())}},xe=async()=>{var e,t,n;let i=await r(Uee()).unwrap();if(1==i.data.statusCode){let a=null==(t=null==(e=null==i?void 0:i.data)?void 0:e.data)?void 0:t.filter((e=>"A"===e.ActiveStatus));W(null==(n=null==i?void 0:i.data)?void 0:n.data),ee(a)}},{Option:be}=m,we=e=>{const t=Array(e).fill(null).map((()=>({key:`${Date.now()}-${Math.random().toString(36).substr(2,5)}`})));ae((e=>[...e,...t]))};return Ye.jsxs("div",{className:"pageOverAll",children:[Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:A,messageData:f,onComplete:Ae}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Referral Setting"})}),Ye.jsxs(I,{ref:l,className:"formDivAnt",onFinish:async t=>{let n=t;n.AppId=t.AppId,n.CommissionName=t.CommissionName,n.AmtType="P"==t.AmtType?"P":"F",n.LoyaltySettingId=t.LoyaltySettingId,n.RewardType="CA"==x?"Cash":"Loyaltypoint",n.CommissionType=w,"O"==w&&(n.CommissionDetails=[{CommissionAmt:null==t?void 0:t.CommissionAmt,UserType:0}]),c&&(n.CreatedBy=iA("UserId"));let a={};if("add"===e)try{a=await r(Qee(n)).unwrap()}catch(s){"Request failed with status code 422"==s.message&&(a={data:{statusCode:0,response:"Please Give Required Fields",data:[]}})}else if("edit"===e){c&&(n.CommissionId=null==c?void 0:c.CommissionId,n.AmtType="P"==t.AmtType?"P":"F"),n.UpdatedBy=iA("UserId");try{a=await r(Hee(n)).unwrap()}catch(s){"Request failed with status code 422"==s.message&&(a={data:{statusCode:0,response:"Please Give Required Fields",data:[]}})}}1==a.data.statusCode?i(`${Kee}setting/referral-setting`,{state:{Notiffy:{messageType:"success",messageData:a.data.response}}}):(h("error"),v(a.data.response))},initialValues:c,children:[Ye.jsxs("div",{className:"formDivS",children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"1rem",alignItems:"center"},children:[Ye.jsx("h3",{style:{marginTop:"0.8rem"},children:" Referral TYPE : "}),Ye.jsx(fk,{content:[{value:"CA",label:"Cash"},{value:"LY",label:"Loyalty Point"}],defaultSelect:x,value:x,disabled:"edit"==e,onSelectFuntion:e=>(e=>{b(e),T(),_(),l.current.resetFields(),ne()})(e)})]}),Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"1rem",flexWrap:"wrap"},children:[Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application Name "}],children:Ye.jsx(_y,{options:null==N?void 0:N.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"AppId",label:Ye.jsx("label",{className:"required",children:"Application Name"}),className:"field-DropDown",isOnchanges:!("edit"!=e&&!B),onChangeFunction:e=>{var t;T(e),null==(t=l.current)||t.setFieldsValue({AppId:e})},valueData:B,disabled:"edit"==e})}),Ye.jsx(I.Item,{name:"CommissionName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter CommissionName"},{validator:async(e,t)=>(await lA(t),/^.{1,50}$/.test(t)?Promise.resolve():Promise.reject())}],children:Ye.jsx(Oy,{field:"CommissionName",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Commission Name"}),fieldState:!0,fieldApi:!0,isOnChange:"edit"==e})}),"LY"==x&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(I.Item,{name:"LoyaltySettingId",rules:[{required:!0,message:"Please Select Application Name "}],children:Ye.jsx(_y,{options:null==Z?void 0:Z.map((e=>({value:e.SettingId,label:e.NameOfLoyality}))),placeholder:"LoyaltySettingId",label:Ye.jsx("label",{className:"required",children:"Loyalty Name"}),className:"field-DropDown",isOnchanges:!("edit"!=e&&!te),onChangeFunction:e=>{var t;ne(e),null==(t=l.current)||t.setFieldsValue({LoyaltySettingId:e})},valueData:te,disabled:"edit"==e})}),Ye.jsx(me,{onClick:()=>{return S(!0),xe(),null==(e=o.current)||e.resetFields(),K(!1),void z(!0);var e},style:{fontSize:"20px",marginBottom:"40px"}})]}),"CA"==x&&Ye.jsx(Ye.Fragment,{children:Ye.jsx(I.Item,{name:"AmtType",rules:[{required:!0,message:"Please Enter AmtType"}],children:Ye.jsx(_y,{options:[{value:"F",label:"Fixed"},{value:"P",label:"Percentage"}],placeholder:"Amount Type",label:Ye.jsx("label",{className:"required",children:"Amount Type"}),className:"field-DropDown",isOnchanges:!("edit"!=e&&!E),onChangeFunction:e=>{var t;_(e),null==(t=l.current)||t.setFieldsValue({AmtType:e})},valueData:E,disabled:"edit"==e})})}),Ye.jsx(fk,{content:[{value:"I",label:"Individual"},{value:"O",label:"Overall"}],defaultSelect:w,value:w,onSelectFuntion:t=>(t=>{var n,i;j(t),"add"==e&&ae([{key:0}]),"O"==(null==c?void 0:c.CommissionType)?(null==(n=l.current)||n.setFieldsValue({CommissionDetails:[]}),ae([{key:0}])):"I"==(null==c?void 0:c.CommissionType)&&(null==(i=l.current)||i.setFieldsValue({CommissionAmt:""}))})(t)}),Ye.jsxs("div",{children:[Ye.jsx("div",{children:"I"===w&&ie.map(((e,t)=>Ye.jsx("div",{style:{display:"flex"},children:Ye.jsxs("div",{style:{marginBottom:"20px",padding:"10px",border:"1px solid #ccc",borderRadius:"8px",position:"relative"},children:[Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(M,{onClick:()=>((e,t)=>{var n;let i=ce.filter(((e,n)=>n!==t));if(null==(n=null==l?void 0:l.current)||n.setFieldsValue({CommissionDetails:i}),(null==ie?void 0:ie.length)>1){let t=ie.filter((t=>t.key!==e));ae(t)}ue((e=>!e))})(e.key,t),style:{height:"20px",width:"15px",fontSize:"20px",color:"red",cursor:"pointer",margin:"0px 2px 5px 2px"}})}),Ye.jsx(I.Item,{label:Ye.jsx("label",{className:"required",children:"User Type"}),name:["CommissionDetails",t,"UserType"],rules:[{required:!0,message:"Please Select UserType"},{validator:(e,t)=>{var n,i,a;return((null==(a=null==(i=null==(n=null==l?void 0:l.current)?void 0:n.getFieldsValue())?void 0:i.CommissionDetails)?void 0:a.map((e=>null==e?void 0:e.UserType)))||[]).filter((e=>e===t)).length>1?Promise.reject(new Error("This User Type has already been selected.")):Promise.resolve()}}],children:Ye.jsx(m,{onChange:(e,n)=>((e,t)=>{var n,i,a;const r=((null==(i=null==(n=null==l?void 0:l.current)?void 0:n.getFieldsValue())?void 0:i.CommissionDetails)||[]).map(((n,i)=>i===e?{...n,UserType:null==t?void 0:t.value,CommissionAmt:void 0}:n));null==(a=l.current)||a.setFieldsValue({CommissionDetails:r}),ae(ie),ue((e=>!e))})(t,n),placeholder:"Select User Type",children:le.map((e=>{var t,n,i;const a=((null==(i=null==(n=null==(t=null==l?void 0:l.current)?void 0:t.getFieldsValue())?void 0:n.CommissionDetails)?void 0:i.map((e=>null==e?void 0:e.UserType)).filter(Boolean))||[]).includes(e.ConfigId);return Ye.jsx(be,{value:e.ConfigId,disabled:a,children:e.ConfigName},e.ConfigId)}))})}),Ye.jsx(I.Item,{label:Ye.jsx("label",{className:"required",children:"CA"===x?"Commission "+("P"==E?"percentage":"Fixed"):"Commission Amount (Fixed)"}),name:["CommissionDetails",t,"CommissionAmt"],rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Commission Amount"},{validator:async(e,t)=>{if(await lA(t),!/^\d+(\.\d{1,2})?$/.test(t))return Promise.reject("Commission Amount must be a valid positive number with up to two decimal places.");const n=parseFloat(t);if("CA"==x&&"P"===E){if(n<1)return Promise.reject("Commission Amount must be greater than or equal to 1.");if(n>100)return Promise.reject("Commission Amount cannot be greater than 100.")}return Promise.resolve()}}],children:Ye.jsx(g,{onChange:()=>ue((e=>!e)),autoComplete:"off"})})]},e.key)})))}),"I"==w&&Ye.jsx(me,{style:{fontSize:"35px"},onClick:()=>{var e,t,n,i;const a=(null==(t=null==(e=null==l?void 0:l.current)?void 0:e.getFieldsValue())?void 0:t.CommissionDetails)||[];if((null==(n=null==a?void 0:a[a.length-1])?void 0:n.UserType)&&(null==(i=null==a?void 0:a[a.length-1])?void 0:i.CommissionAmt)){if(ie.length>=re.length)return v(`You can only add up to ${re.length} entries.`),void h("warning");ae([...ie,{key:Date.now()}])}else v("please add select User type and Commission Amount"),h("warning")}})]}),"O"==w&&Ye.jsx(I.Item,{name:"CommissionAmt",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Commission Amount"},{validator:async(e,t)=>{if(await lA(t),!/^\d+(\.\d{1,2})?$/.test(t))return Promise.reject("Commission Amount must be a valid positive number with up to two decimal places.");const n=parseFloat(t);if("CA"==x&&"P"===E){if(n<1)return Promise.reject("Commission Amount must be greater than or equal to 1.");if(n>100)return Promise.reject("Commission Amount cannot be greater than 100.")}return Promise.resolve()}}],children:Ye.jsx(Oy,{field:"CommissionAmt",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"CA"==x?"Commission "+("P"==E?"percentage":"Fixed"):"Commission Amount (Fixed)"}),fieldState:!0,fieldApi:!0,isOnChange:"edit"==e&&"O"==(null==c?void 0:c.CommissionType)})})]})]}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0})})]})]})}),Ye.jsx(SP,{title:"ADD LOYALTY",width:1e3,open:C,children:Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"purchase-info-model",children:Ye.jsx(I,{ref:o,onFinish:()=>V?(async()=>{var e,t,n,i,a,s,l,d;const c=o.current.getFieldsValue();if(null!=c.NameOfLoyality&&null!=c.NameOfLoyality&&""!=c.NameOfLoyality&&null!=c.PointValue&&null!=c.PointValue&&""!=c.PointValue){let o=null==q?void 0:q.filter((e=>e.NameOfLoyality===c.NameOfLoyality&&e.PointValue===c.PointValue));if(0==(null==o?void 0:o.length)){z(!0);let o={NameOfLoyality:c.NameOfLoyality,PointValue:c.PointValue,CreatedBy:u},d=await r(_ee(o)).unwrap();if(1==d.data.statusCode){S(!1),h("success"),v(null==(e=null==d?void 0:d.data)?void 0:e.response);let l=await r(Uee()).unwrap();if(1==l.data.statusCode){let e=null==(n=null==(t=null==l?void 0:l.data)?void 0:t.data)?void 0:n.filter((e=>"A"===e.ActiveStatus));W(null==(i=null==l?void 0:l.data)?void 0:i.data),ee(e),h("success"),v(null==(a=null==l?void 0:l.data)?void 0:a.response)}else h("error"),v(null==(s=null==l?void 0:l.data)?void 0:s.response)}else h("error"),v(null==(l=null==d?void 0:d.data)?void 0:l.response);K(!1)}else h("error"),v("Data Already Exists")}else v("Fill the Blanks"),h("error");null==(d=o.current)||d.resetFields()})():(async()=>{var e,t,n,i,a,s,l,d,c;const p=null==(e=o.current)?void 0:e.getFieldsValue();let A={SettingsId:null==X?void 0:X.SettingId,NameOfLoyality:null==p?void 0:p.NameOfLoyality,PointValue:null==p?void 0:p.PointValue,UpdatedBy:u},f=await r(Oee(A)).unwrap();if(1==(null==(t=null==f?void 0:f.data)?void 0:t.statusCode)){S(!1),J(),h("success"),v(null==(n=null==f?void 0:f.data)?void 0:n.response),o.current.resetFields();let e=await r(Uee()).unwrap();if(1==f.data.statusCode){let t=null==(a=null==(i=null==e?void 0:e.data)?void 0:i.data)?void 0:a.filter((e=>"A"===e.ActiveStatus));W(null==(s=null==e?void 0:e.data)?void 0:s.data),ee(t),h("success"),v(null==(l=null==e?void 0:e.data)?void 0:l.response)}else h("error"),v(null==(d=null==e?void 0:e.data)?void 0:d.response)}else h("error"),v(null==(c=null==f?void 0:f.data)?void 0:c.response);z(!0),K(!1),$(null),o.current.resetFields()})(),children:Ye.jsxs("div",{className:"formDivS",children:[Ye.jsx(Qy,{messageType:A,messageData:f,onComplete:Ae}),Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"1rem",flexWrap:"wrap"},children:[Ye.jsx(I.Item,{name:"NameOfLoyality",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Loyalty Name"},{validator:async(e,t)=>{await lA(t)}}],children:Ye.jsx(Oy,{field:"NameOfLoyality",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Loyalty Name"}),fieldState:!0,fieldApi:!0,isOnChange:!!Y})}),Ye.jsx(I.Item,{name:"PointValue",rules:[{required:!0,pattern:/^[1-9]\d*(\.\d+)?$/,message:"Please Enter Loyalty point"},{validator:async(e,t)=>{await lA(t)}}],children:Ye.jsx(Oy,{field:"PointValue",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Points"}),fieldState:!0,fieldApi:!0,isOnChange:!!Y})}),Ye.jsx(y,{className:"combo-product-btn",type:"primary",htmlType:"submit",children:V?"Add":"Update"})]}),Ye.jsx("div",{className:"combomaster-table",children:Ye.jsx(Vb,{columns:ve,data:q,pagination:e=>{R(e)},onChange:(e,t,n)=>{H(n)}})})]})})})}),handleCancel:()=>(S(!1),void T(null))})]})},$ee=Ja("appAccess/getActiveAppCompanyData",(async e=>await fA.get(`/appAccess?AppId=${null==e?void 0:e.AppId}`))),Xee=Ja("appAccess/getActiveBranchData",(async({AppId:e,CompId:t})=>await fA.get(`/appAccess?AppId=${e}&CompId=${t}`)));Ja("appAccess/getAppCompanyData",(async({AppId:e,CompId:t,BranchId:n})=>await fA.get(`/appAccess?AppId=${e}&CompId=${t}&BranchId=${n}`)));const Jee=Ja("appAccess/getAppCompanyData",(async({Type:e,BranchId:t})=>await fA.get(`/login?Type=${e}&BranchId=${t}`))),Zee=Ja("ActivationKeyGeneration",(async e=>await fA.post("/UserKeyGeneration",e))),ete=Ja("getActivationKeyGeneration",(async()=>await fA.get("/UserKeyGeneration"))),tte=Ja("configMaster/getConfigNames",(async({TypeName:e})=>{if(null!=e&&null!=e)return await fA.get(`/configMaster?TypeName=${e}`)})),nte=Ja("ActivationKeyGenerationput",(async e=>await fA.put("/UserKeyGeneration",e))),ite=Ja("ActivationKeyGenerationdelete",(async e=>await fA.delete(`/UserKeyGeneration?UniqueId=${null==e?void 0:e.UniqueId}&ActiveStatus=${null==e?void 0:e.ActiveStatus}&Reason=${e.Reason}&updatedBy=${e.updatedBy}`))),ate="data:image/webp;base64,UklGRsANAABXRUJQVlA4WAoAAAAQAAAA/gEAfwAAQUxQSLELAAAB8FZtW95s27YtEnDQVUIcFAdbHSQOsjmgDnI44HAQCUiIhFUCEtYf/WBhDduV6/O+I2IC8D/+i/nVo+T0mP4ToFpzuUgf6z7LtVuMOF2q1zJfucJIl8tMn3LVxJj1gpnp86JlisUrZqbxkimnXDOz5wV7GDlcNDvkcmVWumqmcrHE2MdlM5VrtdAsXjbTcKmUt103269UNH4N181+L1TuYOuFq3KZQu1RLpzly7RY1+kyaOLmcnSweJVKn3QZCujhJ9PKRRLrW68PAMkkk2uUO1m8QsBSOekaaa9yjTBVSr1ED+serhEixeIV2vuli4SNki6QWP9ylYIyygVaHFi8SFgZ9QJpWyVsVylUgt0uT7T2XNpquEjYGT+XJxPua5utV2llzB3ksaT8dktLDH9UmJa05bdpfUxnCNauCIRyrjAtKb9Na5xONy1py69pfUzjmRiJFJ+lWmsta+wxpbOuPWTNas1lewRnC2EFSpvdusTU/PgqPos11rJOPSQ1r1/JWqo1li2ORRgbI+ZqbM2RtthZlSZPNfo+uyoEASIhdUnWnD+FpxpXZ6FFa9YvlmJczTIQMHJTeFbrq/OfEIv11SxuxNoLgFDb6inCs1rHLN5+q3Xcp78jPKv113l4sZjDLE4yYQaArc3iCZZqnTfxFA/rnGUQodtSzaf+DE2K+axPH0oIL5FQ3IXd+uvs5x9z+BzDxEjfSDG/Wcb1NL8qDhZrz3irbRaciZrLp5NQzGWREcQ+SzXPOg1KDnP97LcT7u8SIfmaqjk9xIOoOVUZQGLMn/4x788hxWrO99BJrF3xPhCKK1Fzq9IvqLmt0/kK4/4u7Ob/OaBf86/SZyXkDyhtFh0VNccq3XZzXKeziTHDm3DYGfNwnnZGlS5KkE8rYXPkXEMn51VOlhmK13DYOfNgnnZOlQ7R2g98DrWthkFZGYlpOJUYc3+z21mfQ/m1s2rgZcL8BfY2W0dlz5FYOVWmzC9PO+/vQCY7b6GJEeWbSCjDsjgS+z3R06gCYLET12kYoieyjbUQdnxd2+w2LB1KldP8GvUAIJVWyzbfb7fpPm+FZhre/ahLyvEhG1239We6TfeftFeaRdJBmL/bCOkUtWzzfbpN95+0V5olN8c2/0y32/1n3ZVm5SThH+POAIqRyxzwrSxKsu2dz4Vyf7cYuaYbvr5nlgaKWHvF95FQT1DWgK/vmVWDC00BX0+ZZfEUixq3CrAYt9zRvijHop/FmDPeinJqCmiWzLFEyYTcgNJm0dtxR7vsHEsO6ox2yaTiTh5bNXYGoJS6ghoSp7iZKiPhfTbqHkBdlGLCUMK9JRGKsw3cX04N3fYAalSKRVYt1EOr9RTgaUydwH5UhkUnUzViwnsx6gq2HJRCWKxd0RoINbiawZ4qw9ZeCWxRSmadMQFBGSrgT5VRfIgaMeFjpszgh4Nhsa0QUhNKm62eZvCnyiidEviijBpGoQAWI6qg58Sw6EHUiBs+ijFX9AwHY2sSI0rbQiiOVvR8MCx22dBTKsHWUdwBKEPQ95dRHIgaccfnxEjoK5VQQ0siFLSH2mbRTUbfjZF6KPpGRhlEAhCNmNC7ECx0C2rEI3yhBEXvB8HWFiXMBGyEzYtKJxyE0kM6YSNYGEIGgExQdBfG2iscRtSAz9GI0g2FUBqiEYURCTU4mdE7EizwMnqHSvgZwRFelHDvh0QovYoRVfDlRsjoHwkWvsuEDGpts9mHon8hzDzphkTYBlACAEzWrnAYCDX0+deIKvj2IIgDFML8lRjxh5MIxcfsIBI2Wkb/QDjOt+HtSpg9oLRZ7PKPEVXwbbD2Ao+RkL9aCAquECy4EAeobYV2d4DSVs9WV7zfCeIiEtYeTyPWCV8/CLOLUNv0q4OQSSiE5KHA49ZWWRUelzY7WRF8PNoKXIbatnd4GvOB7xNBXCC3WfhiMuLEWgnVw+piabMbaXcRxqIzvrT2zQdKm/KexpzRuLcpfC6E6YtMULBDbbPoYHIRCBNpdQEdSJnx7UT4cbK1GW0xZkJradudTIT5CyXMNBRCcQCftW0m3X3so6jbHd9HwuRkIdxID2MmNNe25ASE9dNiROFFQg3dDieHl+BjG0Et6Y7mhRCcRC9TZSS0W/vqRdu2T4WgqSPB1m7FSW5LnAqfq49a2Dmn+ecGKgNOhXCnSDXihvZA+PFytOUPYmcv3bKTzYk6WXwU+E9tOhRRI+4gCuHupfDS6SyOIbVlzuEk/kcjuBA14hH+Bj3f1msbSrksokbUgD8h2vlr6JSvw9pWvYiDoEZUgZOfs+UB2DymxFEnj1EtbeZl6hcOI6qATJi9HG3bG7ERliHkoSyjehBuTiLh1rIbUQXs2rZ6qW3pzTIEC30OJ8WJOUmjmgg/TlYCGv81Yp1A17bsJFj7/EbHkPqok6NtJt187KMKhNXJ3lYbnsZ8gL+3HU4i4f4y2RhrHwsugrXfST8+jlGhtmUn2la+expzRsetzYKPjRBe8iAs9okuImEibS6CDau0VR+TtW9fPY2Z0HMhRB9HW8WrjqL02VxsBJCKiziurc2ii43w883TmAldJ8LmQqy9vCw2yhq6qAttO1gWPORxPQjZhRLki8WYCZ1rWw0eMiG9lGHY2sWig8nad9rqQdt0GIFQg4PF2hWfH8bc0Htvs+RAlHAHIDbO0mdzkAkr7XCwWPs+DJQ22xwoIX+aKmNH94VQQ7+ntSsA5IFY7FKlmxjxTrPYTwnrOFaCTd1+jXj/INWIR+gXapulbmLE/KIEvfmcGFsXy90yoYKn3RYjTuMIlXD0kkpQvBc1ogY4LASbemXGHcDDiCucFkINXSx2WoyYO1jqJEpQjAMbwbZOasT5nagRVeAxMlT6PI2oAJAZ4uWHYD99VLqIMn56WOxzGDGPJDLs2eVfI6q8ETWiCnwWgh2hx2LMGYAYscBrqITSx47QIagRFV1UevxjzGkkKAx7dvjXmAmvQY1YBU4Xhh3CW4ypALAwZjfYCBb62BFo4TBm7mMqvKcxFUOJFNsCSYoxVV7CYcQ6wW1hmArradT5RRnBT2SkTqZCEjWqdDKNpLAbdR4LMsU0Uh7VqCted2M+4DdSzJ4UKUZVAIhGzHCshNrLdKb8VqMW9DJ7UqIaVTGYUClmOTbFYlzF67/GnOF555jOoWXKRpaXzLh7SgSLvcx0bnqoke8OTOfQEouR59Hgl2SmWwwfwmOrxpaXX2Mei9uXUDlmNc/ThzCtxdgJAEIlKDwLY+9npvkRPoTHVo2d4cGs5nn6EOLzMLZiONhZr7WUUo5qHRNeM8XxCx6s13qUUg61jorXxYjZFQqhBgev9SilHNV6ipPXepRSDrWe84CCduhfMAxsHfpXeVMYk6+VYKsThwmOHGYMCFJPozIQlPM88CpGPOA7VEIZhGIkKkPCVE+igpGE4ywJbzNjdoadYHEIKkOZMSYs51DBUCB6joT3yhBvkbEN4YGRJIwKj3oCFQwGcpwh4f3DiAXuK6EGTqmuVnSq6mrDuCDq7hAMB2F3V2d83Bmzv41gP5y8eEropVIdZYwMcjjLAQMCkjOd8FGMWOE/MgoJyc+Mfpiqm4SxAclTXfH9QBDV0xbweWHkE6AQLJCQnOgdHjBVJyuGB1E3RTAsyOZG7/hWGfczJEZi4aEeisAHRD3ohD8AWNTFcUfzUAApLmoK+DYaUXHGwKg0SOlWVzBJCFu/FPA3AIt2KzOIgwHupVtNAd9nxnYKFIJFGrBol5oCHAGT9imC9nEBS+lR9zuowwEka4+yBjSGypBzLIy9A7AoraYAMg9YDlrd7mCODJBlr5Sa5wDygADcs1JqWW9oX4xYcM5QCTX0AO5ZCTXfwe8BTFkJtawBf/O0bOWoH6ru23zD3ys/aS/1k5a83gP+4D4ApnUv9YPu2zqhax8AsmxFP+iR13vAX397xV8fbrfbDX94t/e32+0W4LDb+3C73QL+69CJWyf/1fj//ff//ff//ffXAQBWUDgg6AEAALAoAJ0BKv8BgAA+TR6MRCKhoRh/3AAoBMS0t3Cytyj/FPwA/AD8XqIMB+AH6AfwDyAPoA/gHGAfwCBAPwAvdNFv0A/gH4AfoB/Jej+N+E1f70QHvlG0c8ZTKZTKFoTPSQH0rGdxoTcAnOe+MRxJuBZPJKwy/YpoXw69hHlEYnyX5gih7EJj+J6qKykx/Gk+XmeSG3OLWHrm13zym7UAhXH9GzfUtunvQMDQgmyi78bjbhr8s/r+F2gwALLPmzx+y4g1s6iKTwevTtSai+q475957cPJS15Wyc4A8Ek+K/0HuPj1y1s0vnwf2zKlHsxLtu4mqzLmHiC3GZPGxiuWOhUzEGaeD9quE/cbfRZc0x5qSxzO83e1M5WhAeij9DBdj44pWmMElNLa2UxDkNfGz60AUHMRIroOUiQkWjjcbjcbjcbjcbjcbdg/F+wAkoAA/fRxezJf6hXF8ie2j/+fCaP1MU8PqFOkezqn6LLf6hTodyJT6hToT31CnP4Mv/+4iu+pit3WRe25u+phAv+oRJ9TCOdy5AffwrtlyRg1F6vn+ou91NPa2mlV+eToq+TB9f4V2y5Mt9QY2vqDAMT6mLwSQRP9TCBf2Av9TB+d+pg9jIPTT8QFX6mKP1ekvzV1vqYqor8AAAAA",rte="/home/";Ne.interceptors.response.use(null,(e=>(e.response&&e.response.status>=400&&e.response.status,Promise.reject(e))));const ste={get:Ne.get,post:Ne.post,put:Ne.put,delete:Ne.delete},lte=Ne.create({baseURL:"https://www.pozo.dev/pozo-common-api",headers:{"Content-Type":"application/json"}}),ote=Ja("blog/postBlog",(async e=>await fA.post("/Blog",e))),dte=Ja("blog/putBlog",(async e=>await fA.put("/Blog",e))),cte=Ja("blog/deleteBlog",(async e=>await fA.delete(`/Blog?blogId=${null==e?void 0:e.blogId}&activeStatus=${null==e?void 0:e.activeStatus}&updatedBy=${(null==e?void 0:e.updatedBy)||1}`))),ute=Ja("blog/getBlog",(async()=>await fA.get("/Blog"))),pte=Ja("blog/getPublishedBlogs",(async()=>await lte.get("/Blog?published=Y"))),Ate=Ja("blog/getPublishedBlogs",(async({slug:e})=>await lte.get(`/Blog?slug=${e}`))),hte=Ja("blog/postComments",(async e=>await lte.post("/Comments",e))),fte=a.createContext(),mte=()=>{const e=a.useContext(fte);if(!e)throw new Error("useEditor must be used within EditorProvider");return e},vte=({children:e,initial:t})=>{const n=um();Qt();const i=Mt(),{isEdit:r=!1,blog:s=null}=(null==i?void 0:i.state)||{},[l,o]=a.useState(t||{title:"",slug:"",status:"DRAFT",featureImage:"",seoTitle:"",seoDescription:"",focusKeyword:"",category:"",tags:"",author:"",featured:!1,allowComments:!1,popular:!1,publishDate:"",blocks:[]}),[d,c]=a.useState(!1),[u,p]=a.useState(null),[A,h]=a.useState(!1),[f,m]=a.useState(r);return Ye.jsx(fte.Provider,{value:{post:l,setField:(e,t,n)=>{o((n=>({...n,[e]:t}))),n||h(!0)},setPost:o,saveToServer:async(e={})=>{var t,i,a,d,u,v,g,y,x;if(!A&!r)throw new Error("No changes have been made");c(!0);try{const r={...l,...e},c={BlogTitle:r.title,BlogSubtitle:r.seoDescription,SEOBlogTitle:r.seoTitle,SEOBlogSubTitle:r.seoDescription,PublishDate:r.publishDate,PublishTime:null==(i=null==(t=r.publishDate)?void 0:t.split("T"))?void 0:i[1],BlogContent:r.blocks,IsPublished:"DRAFT"===(null==r?void 0:r.status)?"N":"Y",HeaderImage:null==r?void 0:r.featureImage,Keywords:(null==r?void 0:r.focusKeyword)?r.focusKeyword.split(" ").map((e=>e.trim())):[],Author:null==r?void 0:r.author,IsFeatured:(null==r?void 0:r.featured)?"Y":"N",AllowComments:(null==r?void 0:r.allowComments)?"Y":"N",Popular:(null==r?void 0:r.popular)?"Y":"N",Slug:null==r?void 0:r.slug};let A;if(f){const e=(null==s?void 0:s.BlogId)||(null==l?void 0:l.BlogId),t={...s,...c,BlogId:e};if(0===(null==(a=null==t?void 0:t.BlogContent)?void 0:a.length))throw new Error("No Blocks Added");A=await(null==(d=n(dte(t)))?void 0:d.unwrap())}else{if(0===(null==(u=null==c?void 0:c.BlogContent)?void 0:u.length))throw new Error("No Blocks Added");A=await(null==(v=n(ote(c)))?void 0:v.unwrap()),1===(null==(g=null==A?void 0:A.data)?void 0:g.statusCode)&&(m(!0),o((e=>{var t,n,i,a;return{...e,BlogId:null==(n=null==(t=A.data.data)?void 0:t[0])?void 0:n.BlogId,title:null==(a=null==(i=A.data.data)?void 0:i[0])?void 0:a.BlogTitle}})))}if(1===(null==(y=null==A?void 0:A.data)?void 0:y.statusCode))return Object.keys(e).length>0&&o((t=>({...t,...e}))),p(new Date),h(!1),{success:!0,data:null==A?void 0:A.data};throw new Error((null==(x=null==A?void 0:A.data)?void 0:x.response)||"Failed to save")}catch(b){return{success:!1,error:b.message||String(b)}}finally{c(!1)}},postData:async()=>{var e,t,i,a,o,d,c,u;if(null==(e=null==l?void 0:l.errors)?void 0:e.error)throw new Error((null==(t=null==l?void 0:l.errors)?void 0:t.errorMessage)||"Failed to save");const p={BlogTitle:l.title,BlogSubtitle:l.seoDescription,SEOBlogTitle:l.seoTitle,SEOBlogSubTitle:l.seoDescription,PublishDate:l.publishDate,PublishTime:null==(a=null==(i=l.publishDate)?void 0:i.split("T"))?void 0:a[1],BlogContent:l.blocks,IsPublished:"DRAFT"===(null==l?void 0:l.status)?"N":"Y",HeaderImage:null==l?void 0:l.featureImage,Keywords:(null==l?void 0:l.focusKeyword)?l.focusKeyword.split(" ").map((e=>e.trim())):[],Author:null==l?void 0:l.author,IsFeatured:(null==l?void 0:l.featured)?"Y":"N",AllowComments:(null==l?void 0:l.allowComments)?"Y":"N",Popular:(null==l?void 0:l.popular)?"Y":"N",Slug:null==l?void 0:l.slug};let A;if(A=r?await(null==(o=n(dte({...s,...p})))?void 0:o.unwrap()):await(null==(d=n(ote(p)))?void 0:d.unwrap()),1===(null==(c=null==A?void 0:A.data)?void 0:c.statusCode))return null==A?void 0:A.data;throw new Error((null==(u=null==A?void 0:A.data)?void 0:u.response)||"Failed to save")},fetchPost:async e=>{const t=`https://www.pozo.dev/pozo-common-api/posts/${e}`,n=await ste.get(t);return o(n.data),h(!1),n.data},clearDraft:()=>{o({title:"",slug:"",status:"DRAFT",featureImage:"",seoTitle:"",seoDescription:"",focusKeyword:"",category:"",tags:"",author:"",featured:!1,allowComments:!0,publishDate:"",blocks:[]}),h(!1)},saving:d,savedAt:u,hasUnsavedChanges:A},children:e})};var gte={exports:{}};window,gte.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=62)}([function(e,t,n){e.exports=n(31)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.parseStartTime=function(e){return p(e,o)},t.parseEndTime=function(e){return p(e,d)},t.randomString=function(){return Math.random().toString(36).substr(2,5)},t.queryString=function(e){return Object.keys(e).map((function(t){return"".concat(t,"=").concat(e[t])})).join("&")},t.getSDK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.default,s=A(t);return s&&a(s)?Promise.resolve(s):new Promise((function(i,a){if(h[e])h[e].push({resolve:i,reject:a});else{h[e]=[{resolve:i,reject:a}];var s=function(t){h[e].forEach((function(e){return e.resolve(t)}))};if(n){var l=window[n];window[n]=function(){l&&l(),s(A(t))}}r(e,(function(i){i?(h[e].forEach((function(e){return e.reject(i)})),h[e]=null):n||s(A(t))}))}}))},t.getConfig=function(e,t){return(0,a.default)(t.config,e.config)},t.omit=function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];for(var r=(t=[]).concat.apply(t,i),s={},l=0,o=Object.keys(e);l<o.length;l++){var d=o[l];-1===r.indexOf(d)&&(s[d]=e[d])}return s},t.callPlayer=function(e){var t;if(!this.player||!this.player[e])return"ReactPlayer: ".concat(this.constructor.displayName," player could not call %c").concat(e,"%c – "),this.player&&this.player[e],null;for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return(t=this.player)[e].apply(t,i)},t.isMediaStream=function(e){return"undefined"!=typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream},t.isBlobUrl=function(e){return/^blob:/.test(e)},t.supportsWebKitPresentationMode=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.createElement("video"),t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t};var i=r(n(38)),a=r(n(10));function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,a=!1,r=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(o){a=!0,r=o}finally{try{i||null==l.return||l.return()}finally{if(a)throw r}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var o=/[?&#](?:start|t)=([0-9hms]+)/,d=/[?&#]end=([0-9hms]+)/,c=/(\d+)(h|m|s)/g,u=/^\d+$/;function p(e,t){if(!(e instanceof Array)){var n=e.match(t);if(n){var i=n[1];if(i.match(c))return function(e){for(var t=0,n=c.exec(e);null!==n;){var i=s(n,3),a=i[1],r=i[2];"h"===r&&(t+=60*parseInt(a,10)*60),"m"===r&&(t+=60*parseInt(a,10)),"s"===r&&(t+=parseInt(a,10)),n=c.exec(e)}return t}(i);if(u.test(i))return parseInt(i)}}}function A(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}var h={}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.canPlay=t.FLV_EXTENSIONS=t.DASH_EXTENSIONS=t.HLS_EXTENSIONS=t.VIDEO_EXTENSIONS=t.AUDIO_EXTENSIONS=t.MATCH_URL_KALTURA=t.MATCH_URL_VIDYARD=t.MATCH_URL_MIXCLOUD=t.MATCH_URL_DAILYMOTION=t.MATCH_URL_TWITCH_CHANNEL=t.MATCH_URL_TWITCH_VIDEO=t.MATCH_URL_WISTIA=t.MATCH_URL_STREAMABLE=t.MATCH_URL_FACEBOOK_WATCH=t.MATCH_URL_FACEBOOK=t.MATCH_URL_VIMEO=t.MATCH_URL_SOUNDCLOUD=t.MATCH_URL_YOUTUBE=void 0;var i=n(1);function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,l=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return l=e.done,e},e:function(e){o=!0,s=e},f:function(){try{l||null==n.return||n.return()}finally{if(o)throw s}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var s=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//;t.MATCH_URL_YOUTUBE=s;var l=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/;t.MATCH_URL_SOUNDCLOUD=l;var o=/vimeo\.com\/.+/;t.MATCH_URL_VIMEO=o;var d=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;t.MATCH_URL_FACEBOOK=d;var c=/^https?:\/\/fb\.watch\/.+$/;t.MATCH_URL_FACEBOOK_WATCH=c;var u=/streamable\.com\/([a-z0-9]+)$/;t.MATCH_URL_STREAMABLE=u;var p=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?(.*)$/;t.MATCH_URL_WISTIA=p;var A=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;t.MATCH_URL_TWITCH_VIDEO=A;var h=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/;t.MATCH_URL_TWITCH_CHANNEL=h;var f=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;t.MATCH_URL_DAILYMOTION=f;var m=/mixcloud\.com\/([^/]+\/[^/]+)/;t.MATCH_URL_MIXCLOUD=m;var v=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-]+)/;t.MATCH_URL_VIDYARD=v;var g=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_]+)$/;t.MATCH_URL_KALTURA=g;var y=/\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;t.AUDIO_EXTENSIONS=y;var x=/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;t.VIDEO_EXTENSIONS=x;var b=/\.(m3u8)($|\?)/i;t.HLS_EXTENSIONS=b;var w=/\.(mpd)($|\?)/i;t.DASH_EXTENSIONS=w;var j=/\.(flv)($|\?)/i;t.FLV_EXTENSIONS=j;var C={youtube:function(e){return e instanceof Array?e.every((function(e){return s.test(e)})):s.test(e)},soundcloud:function(e){return l.test(e)&&!y.test(e)},vimeo:function(e){return o.test(e)&&!x.test(e)&&!b.test(e)},facebook:function(e){return d.test(e)||c.test(e)},streamable:function(e){return u.test(e)},wistia:function(e){return p.test(e)},twitch:function(e){return A.test(e)||h.test(e)},dailymotion:function(e){return f.test(e)},mixcloud:function(e){return m.test(e)},vidyard:function(e){return v.test(e)},kaltura:function(e){return g.test(e)},file:function e(t){if(t instanceof Array){var n,r=a(t);try{for(r.s();!(n=r.n()).done;){var s=n.value;if("string"==typeof s&&e(s))return!0;if(e(s.src))return!0}}catch(l){r.e(l)}finally{r.f()}return!1}return!(!(0,i.isMediaStream)(t)&&!(0,i.isBlobUrl)(t))||y.test(t)||x.test(t)||b.test(t)||w.test(t)||j.test(t)}};t.canPlay=C},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(e){var i=n(2),a=setTimeout;function r(){}function s(e){if(!(this instanceof s))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(e,this)}function l(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,s._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(a){return void d(t.promise,a)}o(t.promise,i)}else(1===e._state?o:d)(t.promise,e._value)}))):e._deferreds.push(t)}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof s)return e._state=3,e._value=t,void c(e);if("function"==typeof n)return void p((i=n,a=t,function(){i.apply(a,arguments)}),e)}e._state=1,e._value=t,c(e)}catch(r){d(e,r)}var i,a}function d(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&s._immediateFn((function(){e._handled||s._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)l(e,e._deferreds[t]);e._deferreds=null}function u(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function p(e,t){var n=!1;try{e((function(e){n||(n=!0,o(t,e))}),(function(e){n||(n=!0,d(t,e))}))}catch(i){if(n)return;n=!0,d(t,i)}}s.prototype.catch=function(e){return this.then(null,e)},s.prototype.then=function(e,t){var n=new this.constructor(r);return l(this,new u(e,t,n)),n},s.prototype.finally=i.a,s.all=function(e){return new s((function(t,n){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var a=i.length;function r(e,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var l=s.then;if("function"==typeof l)return void l.call(s,(function(t){r(e,t)}),n)}i[e]=s,0==--a&&t(i)}catch(o){n(o)}}for(var s=0;s<i.length;s++)r(s,i[s])}))},s.resolve=function(e){return e&&"object"==typeof e&&e.constructor===s?e:new s((function(t){t(e)}))},s.reject=function(e){return new s((function(t,n){n(e)}))},s.race=function(e){return new s((function(t,n){for(var i=0,a=e.length;i<a;i++)e[i].then(t,n)}))},s._immediateFn="function"==typeof e&&function(t){e(t)}||function(e){a(e,0)},s._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console},t.a=s}).call(this,n(5).setImmediate)},function(e,t,n){t.a=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}},function(e,t,n){function i(e){return(i="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)}n(4);var a,r,s,l,o,d,c,u=n(8),p=(r=function(e){return new Promise((function(t,n){e=l(e),(e=o(e)).beforeSend&&e.beforeSend();var i=window.XMLHttpRequest?new window.XMLHttpRequest:new window.ActiveXObject("Microsoft.XMLHTTP");i.open(e.method,e.url),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(e.headers).forEach((function(t){var n=e.headers[t];i.setRequestHeader(t,n)}));var a=e.ratio;i.upload.addEventListener("progress",(function(t){var n=Math.round(t.loaded/t.total*100),i=Math.ceil(n*a/100);e.progress(Math.min(i,100))}),!1),i.addEventListener("progress",(function(t){var n=Math.round(t.loaded/t.total*100),i=Math.ceil(n*(100-a)/100)+a;e.progress(Math.min(i,100))}),!1),i.onreadystatechange=function(){if(4===i.readyState){var e=i.response;try{e=JSON.parse(e)}catch(s){}var a=u.parseHeaders(i.getAllResponseHeaders()),r={body:e,code:i.status,headers:a};c(i.status)?t(r):n(r)}},i.send(e.data)}))},s=function(e){return e.method="POST",r(e)},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.url&&"string"!=typeof e.url)throw new Error("Url must be a string");if(e.url=e.url||"",e.method&&"string"!=typeof e.method)throw new Error("`method` must be a string or null");if(e.method=e.method?e.method.toUpperCase():"GET",e.headers&&"object"!==i(e.headers))throw new Error("`headers` must be an object or null");if(e.headers=e.headers||{},e.type&&("string"!=typeof e.type||!Object.values(a).includes(e.type)))throw new Error("`type` must be taken from module's «contentType» library");if(e.progress&&"function"!=typeof e.progress)throw new Error("`progress` must be a function or null");if(e.progress=e.progress||function(e){},e.beforeSend=e.beforeSend||function(e){},e.ratio&&"number"!=typeof e.ratio)throw new Error("`ratio` must be a number");if(e.ratio<0||e.ratio>100)throw new Error("`ratio` must be in a 0-100 interval");if(e.ratio=e.ratio||90,e.accept&&"string"!=typeof e.accept)throw new Error("`accept` must be a string with a list of allowed mime-types");if(e.accept=e.accept||"*/*",e.multiple&&"boolean"!=typeof e.multiple)throw new Error("`multiple` must be a true or false");if(e.multiple=e.multiple||!1,e.fieldName&&"string"!=typeof e.fieldName)throw new Error("`fieldName` must be a string");return e.fieldName=e.fieldName||"files",e},o=function(e){switch(e.method){case"GET":var t=d(e.data,a.URLENCODED);delete e.data,e.url=/\?/.test(e.url)?e.url+"&"+t:e.url+"?"+t;break;case"POST":case"PUT":case"DELETE":case"UPDATE":var n=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).type||a.JSON}(e);(u.isFormData(e.data)||u.isFormElement(e.data))&&(n=a.FORM),e.data=d(e.data,n),n!==p.contentType.FORM&&(e.headers["content-type"]=n)}return e},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(arguments.length>1?arguments[1]:void 0){case a.URLENCODED:return u.urlEncode(e);case a.JSON:return u.jsonEncode(e);case a.FORM:return u.formEncode(e);default:return e}},c=function(e){return e>=200&&e<300},{contentType:a={URLENCODED:"application/x-www-form-urlencoded; charset=utf-8",FORM:"multipart/form-data",JSON:"application/json; charset=utf-8"},request:r,get:function(e){return e.method="GET",r(e)},post:s,transport:function(e){return e=l(e),u.selectFiles(e).then((function(t){for(var n=new FormData,i=0;i<t.length;i++)n.append(e.fieldName,t[i],t[i].name);u.isObject(e.data)&&Object.keys(e.data).forEach((function(t){var i=e.data[t];n.append(t,i)}));var a=e.beforeSend;return e.beforeSend=function(){return a(t)},e.data=n,s(e)}))},selectFiles:function(e){return delete(e=l(e)).beforeSend,u.selectFiles(e)}});e.exports=p},function(e,t,n){n.r(t);var i=n(1);window.Promise=window.Promise||i.a},function(e,t,n){(function(e){var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,a=Function.prototype.apply;function r(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new r(a.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new r(a.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(6),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t,n){(function(e,t){!function(e){if(!e.setImmediate){var n,i,a,r,s,l=1,o={},d=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){A(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(r="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(r)&&A(+t.data.slice(r.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(r+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){A(e.data)},n=function(e){a.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(i=c.documentElement,n=function(e){var t=c.createElement("script");t.onreadystatechange=function(){A(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(A,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var a={callback:e,args:t};return o[l]=a,n(l),l++},u.clearImmediate=p}function p(e){delete o[e]}function A(e){if(d)setTimeout(A,0,e);else{var t=o[e];if(t){d=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),d=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(0),n(7))},function(e,t){var n,i,a=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(i){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var o,d=[],c=!1,u=-1;function p(){c&&o&&(c=!1,o.length?d=o.concat(d):u=-1,d.length&&A())}function A(){if(!c){var e=l(p);c=!0;for(var t=d.length;t;){for(o=d,d=[];++u<t;)o&&o[u].run();u=-1,t=d.length}o=null,c=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(n){return i.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new h(e,t)),1!==d.length||c||l(A)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=f,a.addListener=f,a.once=f,a.off=f,a.removeListener=f,a.removeAllListeners=f,a.emit=f,a.prependListener=f,a.prependOnceListener=f,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=n(9);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return(t=[{key:"urlEncode",value:function(e){return a(e)}},{key:"jsonEncode",value:function(e){return JSON.stringify(e)}},{key:"formEncode",value:function(e){if(this.isFormData(e))return e;if(this.isFormElement(e))return new FormData(e);if(this.isObject(e)){var t=new FormData;return Object.keys(e).forEach((function(n){var i=e[n];t.append(n,i)})),t}throw new Error("`data` must be an instance of Object, FormData or <FORM> HTMLElement")}},{key:"isObject",value:function(e){return"[object Object]"===Object.prototype.toString.call(e)}},{key:"isFormData",value:function(e){return e instanceof FormData}},{key:"isFormElement",value:function(e){return e instanceof HTMLFormElement}},{key:"selectFiles",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){var i=document.createElement("INPUT");i.type="file",e.multiple&&i.setAttribute("multiple","multiple"),e.accept&&i.setAttribute("accept",e.accept),i.style.display="none",document.body.appendChild(i),i.addEventListener("change",(function(e){var n=e.target.files;t(n),document.body.removeChild(i)}),!1),i.click()}))}},{key:"parseHeaders",value:function(e){var t=e.trim().split(/[\r\n]+/),n={};return t.forEach((function(e){var t=e.split(": "),i=t.shift(),a=t.join(": ");i&&(n[i]=a)})),n}}])&&i(e,t),e}()},function(e,t){var n=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape).replace(/%20/g,"+")},i=function(e,t,a,r){return t=t||null,a=a||"&",r=r||null,e?function(e){for(var t=new Array,n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}(Object.keys(e).map((function(s){var l,o,d=s;if(r&&(d=r+"["+d+"]"),"object"==typeof e[s]&&null!==e[s])l=i(e[s],null,a,d);else{t&&(o=d,d=!isNaN(parseFloat(o))&&isFinite(o)?t+Number(d):d);var c=e[s];c=(c=0===(c=!1===(c=!0===c?"1":c)?"0":c)?"0":c)||"",l=n(d)+"="+n(c)}return l}))).join(a).replace(/[!'()*]/g,""):""};e.exports=i}])},function(e,t,n){e.exports=n(23)},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}},function(e,t,n){var i=n(7);e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}},function(e,t,n){
|
||
/*
|
||
object-assign
|
||
(c) Sindre Sorhus
|
||
@license MIT
|
||
*/
|
||
var i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(a){return!1}}()?Object.assign:function(e,t){for(var n,l,o=s(e),d=1;d<arguments.length;d++){for(var c in n=Object(arguments[d]))a.call(n,c)&&(o[c]=n[c]);if(i){l=i(n);for(var u=0;u<l.length;u++)r.call(n,l[u])&&(o[l[u]]=n[l[u]])}}return o}},function(e,t,n){var i=function(e){return!(!(t=e)||"object"!=typeof t||function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||e.$$typeof===a}(e));var t},a="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function s(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function l(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]));var t}function o(e,t){try{return t in e}catch(n){return!1}}function d(e,t,n){var i={};return n.isMergeableObject(e)&&l(e).forEach((function(t){i[t]=r(e[t],n)})),l(t).forEach((function(a){var s,l;o(s=e,l=a)&&(!Object.hasOwnProperty.call(s,l)||!Object.propertyIsEnumerable.call(s,l))||(o(e,a)&&n.isMergeableObject(t[a])?i[a]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(a,n)(e[a],t[a],n):i[a]=r(t[a],n))})),i}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||s,n.isMergeableObject=n.isMergeableObject||i,n.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(t);return a===Array.isArray(e)?a?n.arrayMerge(e,t,n):d(e,t,n):r(t,n)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var u=c;e.exports=u},function(e,t){var n="undefined"!=typeof Element,i="function"==typeof Map,a="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,t){try{return function e(t,s){if(t===s)return!0;if(t&&s&&"object"==typeof t&&"object"==typeof s){if(t.constructor!==s.constructor)return!1;var l,o,d,c;if(Array.isArray(t)){if((l=t.length)!=s.length)return!1;for(o=l;0!=o--;)if(!e(t[o],s[o]))return!1;return!0}if(i&&t instanceof Map&&s instanceof Map){if(t.size!==s.size)return!1;for(c=t.entries();!(o=c.next()).done;)if(!s.has(o.value[0]))return!1;for(c=t.entries();!(o=c.next()).done;)if(!e(o.value[1],s.get(o.value[0])))return!1;return!0}if(a&&t instanceof Set&&s instanceof Set){if(t.size!==s.size)return!1;for(c=t.entries();!(o=c.next()).done;)if(!s.has(o.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(s)){if((l=t.length)!=s.length)return!1;for(o=l;0!=o--;)if(t[o]!==s[o])return!1;return!0}if(t.constructor===RegExp)return t.source===s.source&&t.flags===s.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===s.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===s.toString();if((l=(d=Object.keys(t)).length)!==Object.keys(s).length)return!1;for(o=l;0!=o--;)if(!Object.prototype.hasOwnProperty.call(s,d[o]))return!1;if(n&&t instanceof Element)return!1;for(o=l;0!=o--;)if(("_owner"!==d[o]&&"__v"!==d[o]&&"__o"!==d[o]||!t.$$typeof)&&!e(t[d[o]],s[d[o]]))return!1;return!0}return t!=t&&s!=s}(e,t)}catch(s){if((s.message||"").match(/stack|recursion/i))return!1;throw s}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=t.propTypes=void 0;var i,a=(i=n(54))&&i.__esModule?i:{default:i},r=a.default.string,s=a.default.bool,l=a.default.number,o=a.default.array,d=a.default.oneOfType,c=a.default.shape,u=a.default.object,p=a.default.func,A=a.default.node,h={url:d([r,o,u]),playing:s,loop:s,controls:s,volume:l,muted:s,playbackRate:l,width:d([r,l]),height:d([r,l]),style:u,progressInterval:l,playsinline:s,pip:s,stopOnUnmount:s,light:d([s,r]),playIcon:A,previewTabIndex:l,fallback:A,wrapper:d([r,p,c({render:p.isRequired})]),config:c({soundcloud:c({options:u}),youtube:c({playerVars:u,embedOptions:u,onUnstarted:p}),facebook:c({appId:r,version:r,playerId:r,attributes:u}),dailymotion:c({params:u}),vimeo:c({playerOptions:u}),file:c({attributes:u,tracks:o,forceVideo:s,forceAudio:s,forceHLS:s,forceDASH:s,forceFLV:s,hlsOptions:u,hlsVersion:r,dashVersion:r,flvVersion:r}),wistia:c({options:u,playerId:r,customControls:o}),mixcloud:c({options:u}),twitch:c({options:u,playerId:r}),vidyard:c({options:u})}),onReady:p,onStart:p,onPlay:p,onPause:p,onBuffer:p,onBufferEnd:p,onEnded:p,onError:p,onDuration:p,onSeek:p,onProgress:p,onClickPreview:p,onEnablePIP:p,onDisablePIP:p};t.propTypes=h;var f=function(){},m={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:f},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1}},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"0.14.16",dashVersion:"3.1.3",flvVersion:"1.5.0"},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:f,onStart:f,onPlay:f,onPause:f,onBuffer:f,onBufferEnd:f,onEnded:f,onError:f,onDuration:f,onSeek:f,onProgress:f,onClickPreview:f,onEnablePIP:f,onDisablePIP:f};t.defaultProps=m},function(e,t){function n(e,t,n,i,a,r,s){try{var l=e[r](s),o=l.value}catch(d){return void n(d)}l.done?t(o):Promise.resolve(o).then(i,a)}e.exports=function(e){return function(){var t=this,i=arguments;return new Promise((function(a,r){var s=e.apply(t,i);function l(e){n(s,a,r,l,o,"next",e)}function o(e){n(s,a,r,l,o,"throw",e)}l(void 0)}))}}},function(e,t,n){var i=n(28),a=n(29),r=n(8),s=n(30);e.exports=function(e){return i(e)||a(e)||r(e)||s()}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.15 13.628A7.749 7.749 0 0 0 10 17.75a7.74 7.74 0 0 0 6.305-3.242l-2.387-2.127-2.765 2.244-4.389-4.496-3.614 3.5zm-.787-2.303l4.446-4.371 4.52 4.63 2.534-2.057 3.533 2.797c.23-.734.354-1.514.354-2.324a7.75 7.75 0 1 0-15.387 1.325zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z"></path></svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.render)(i.default.createElement(r.default,t),e)};var i=s(n(0)),a=n(32),r=s(n(36));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.043 8.265l3.183-3.183h-2.924L4.75 10.636v2.923l4.15-4.15v2.351l-2.158 2.159H8.9v2.137H4.7c-1.215 0-2.2-.936-2.2-2.09v-8.93c0-1.154.985-2.09 2.2-2.09h10.663l.033-.033.034.034c1.178.04 2.12.96 2.12 2.089v3.23H15.3V5.359l-2.906 2.906h-2.35zM7.951 5.082H4.75v3.201l3.201-3.2zm5.099 7.078v3.04h4.15v-3.04h-4.15zm-1.1-2.137h6.35c.635 0 1.15.489 1.15 1.092v5.13c0 .603-.515 1.092-1.15 1.092h-6.35c-.635 0-1.15-.489-1.15-1.092v-5.13c0-.603.515-1.092 1.15-1.092z"></path></svg>'},function(e,t){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.8 10.592v2.043h2.35v2.138H15.8v2.232h-2.25v-2.232h-2.4v-2.138h2.4v-2.28h2.25v.237h1.15-1.15zM1.9 8.455v-3.42c0-1.154.985-2.09 2.2-2.09h4.2v2.137H4.15v3.373H1.9zm0 2.137h2.25v3.325H8.3v2.138H4.1c-1.215 0-2.2-.936-2.2-2.09v-3.373zm15.05-2.137H14.7V5.082h-4.15V2.945h4.2c1.215 0 2.2.936 2.2 2.09v3.42z"></path></svg>'},function(e,t){e.exports='<svg width="17" height="10" viewBox="0 0 17 10" xmlns="http://www.w3.org/2000/svg"><path d="M13.568 5.925H4.056l1.703 1.703a1.125 1.125 0 0 1-1.59 1.591L.962 6.014A1.069 1.069 0 0 1 .588 4.26L4.38.469a1.069 1.069 0 0 1 1.512 1.511L4.084 3.787h9.606l-1.85-1.85a1.069 1.069 0 1 1 1.512-1.51l3.792 3.791a1.069 1.069 0 0 1-.475 1.788L13.514 9.16a1.125 1.125 0 0 1-1.59-1.591l1.644-1.644z"></path></svg>'},function(e,t){e.exports='<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 489.2 489.2"><path d="M439.6,0h-390C22.2,0,0,22.2,0,49.6v390c0,27.4,22.2,49.6,49.6,49.6h390c27.4,0,49.6-22.2,49.6-49.6V49.7 C489.3,22.3,467,0,439.6,0z M300.6,47.8h42.5v42.5h-42.5V47.8z M223.4,47.8h42.5v42.5h-42.5V47.8L223.4,47.8z M146.1,47.8h42.5 v42.5h-42.5V47.8z M111.3,441.6H68.8v-42.5h42.5V441.6z M111.3,90.3H68.8V47.8h42.5V90.3z M188.6,441.6h-42.5v-42.5h42.5V441.6z M265.8,441.6h-42.5v-42.5h42.5V441.6z M343.1,441.6h-42.5v-42.5h42.5V441.6z M352.5,256.7l-163.1,94.2c-9.2,5.3-20.8-1.3-20.8-12 V150.5c0-10.7,11.6-17.3,20.8-12l163.1,94.2C361.8,238,361.8,251.4,352.5,256.7z M420.4,441.6h-42.5v-42.5h42.5V441.6z M420.4,90.3 h-42.5V47.8h42.5V90.3z"></path></svg>'},function(e,t,n){var i=n(59),a=n(60),r=n(8),s=n(61);e.exports=function(e,t){return i(e)||a(e,t)||r(e,t)||s()}},function(e,t,n){var i=function(e){var t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",r=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(N){l=function(e,t,n){return e[t]=n}}function o(e,t,n,i){var a,r,s,l,o=t&&t.prototype instanceof u?t:u,p=Object.create(o.prototype),A=new j(i||[]);return p._invoke=(a=e,r=n,s=A,l="suspendedStart",function(e,t){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===e)throw t;return S()}for(s.method=e,s.arg=t;;){var n=s.delegate;if(n){var i=x(n,s);if(i){if(i===c)continue;return i}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===l)throw l="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l="executing";var o=d(a,r,s);if("normal"===o.type){if(l=s.done?"completed":"suspendedYield",o.arg===c)continue;return{value:o.arg,done:s.done}}"throw"===o.type&&(l="completed",s.method="throw",s.arg=o.arg)}}),p}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(i){return{type:"throw",arg:i}}}e.wrap=o;var c={};function u(){}function p(){}function A(){}var h={};h[a]=function(){return this};var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&n.call(m,a)&&(h=m);var v=A.prototype=u.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var i;this._invoke=function(a,r){function s(){return new t((function(i,s){!function i(a,r,s,l){var o=d(e[a],e,r);if("throw"!==o.type){var c=o.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,s,l)}),(function(e){i("throw",e,s,l)})):t.resolve(u).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,l)}))}l(o.arg)}(a,r,i,s)}))}return i=i?i.then(s,s):s()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var i=d(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,c;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=v.constructor=A,A.constructor=p,p.displayName=l(A,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,l(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(y.prototype),y.prototype[r]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,i,a,r){void 0===r&&(r=Promise);var s=new y(o(t,n,i,a),r);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},g(v),l(v,s,"Generator"),v[a]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=C,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return s.type="throw",s.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a],s=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var l=n.call(r,"catchLoc"),o=n.call(r,"finallyLoc");if(l&&o){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!o)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var s=r?r.completion:{};return s.type=e,s.arg=t,r?(this.method="next",this.next=r.finallyLoc,c):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;w(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=i}catch(a){Function("r","regeneratorRuntime = r")(i)}},function(e,t,n){var i=n(25),a=n(26);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),i(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},function(e,t,n){var i,a,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},s=(a={},function(e){if(void 0===a[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(n){t=null}a[e]=t}return a[e]}),l=[];function o(e){for(var t=-1,n=0;n<l.length;n++)if(l[n].identifier===e){t=n;break}return t}function d(e,t){for(var n={},i=[],a=0;a<e.length;a++){var r=e[a],s=t.base?r[0]+t.base:r[0],d=n[s]||0,c="".concat(s," ").concat(d);n[s]=d+1;var u=o(c),p={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(l[u].references++,l[u].updater(p)):l.push({identifier:c,updater:v(p,t),references:1}),i.push(c)}return i}function c(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var a=n.nc;a&&(i.nonce=a)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var r=s(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}return t}var u,p=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function A(e,t,n,i){var a=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=p(t,a);else{var r=document.createTextNode(a),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}function h(e,t,n){var i=n.css,a=n.media,r=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var f=null,m=0;function v(e,t){var n,i,a;if(t.singleton){var r=m++;n=f||(f=c(t)),i=A.bind(null,n,r,!1),a=A.bind(null,n,r,!0)}else n=c(t),i=h.bind(null,n,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=d(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var a=o(n[i]);l[a].references--}for(var r=d(e,t),s=0;s<n.length;s++){var c=o(n[s]);0===l[c].references&&(l[c].updater(),l.splice(c,1))}n=r}}}},function(e,t,n){(t=n(27)(!1)).push([e.i,'.video-tool {\n --bg-color: #cdd1e0;\n --front-color: #388ae5;\n --border-color: #e8e8eb;\n}\n\n .video-tool__video {\n border-radius: 3px;\n overflow: hidden;\n margin-bottom: 10px;\n }\n\n .video-tool__video-picture {\n max-width: 100%;\n vertical-align: bottom;\n display: block;\n }\n\n .video-tool__video-preloader {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n background-size: cover;\n margin: auto;\n position: relative;\n background-color: var(--bg-color);\n background-position: center center;\n }\n\n .video-tool__video-preloader::after {\n content: "";\n position: absolute;\n z-index: 3;\n width: 60px;\n height: 60px;\n border-radius: 50%;\n border: 2px solid var(--bg-color);\n border-top-color: var(--front-color);\n left: 50%;\n top: 50%;\n margin-top: -30px;\n margin-left: -30px;\n animation: video-preloader-spin 2s infinite linear;\n box-sizing: border-box;\n }\n\n .video-tool__caption[contentEditable="true"][data-placeholder]::before {\n position: absolute !important;\n content: attr(data-placeholder);\n color: #707684;\n font-weight: normal;\n display: none;\n }\n\n .video-tool__caption[contentEditable="true"][data-placeholder]:empty::before {\n display: block;\n }\n\n .video-tool__caption[contentEditable="true"][data-placeholder]:empty:focus::before {\n display: none;\n }\n\n .video-tool--empty .video-tool__video {\n display: none;\n }\n\n .video-tool--empty .video-tool__caption, .video-tool--loading .video-tool__caption {\n display: none;\n }\n\n .video-tool--filled .cdx-button {\n display: none;\n }\n\n .video-tool--filled .video-tool__video-preloader {\n display: none;\n }\n\n .video-tool--loading .video-tool__video {\n min-height: 200px;\n display: flex;\n border: 1px solid var(--border-color);\n background-color: #fff;\n }\n\n .video-tool--loading .video-tool__video-picture {\n display: none;\n }\n\n .video-tool--loading .cdx-button {\n display: none;\n }\n\n /**\n * Tunes\n * ----------------\n */\n\n .video-tool--withBorder .video-tool__video {\n border: 1px solid var(--border-color);\n }\n\n .video-tool--withBackground .video-tool__video {\n padding: 15px;\n background: var(--bg-color);\n }\n\n .video-tool--withBackground .video-tool__video-picture {\n max-width: 60%;\n margin: 0 auto;\n }\n\n .video-tool--stretched .video-tool__video-picture {\n width: 100%;\n }\n\n@keyframes video-preloader-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n',""]),e.exports=t},function(e,t,n){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,i,a,r=e[1]||"",s=e[3];if(!s)return r;if(t&&"function"==typeof btoa){var l=(n=s,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(a," */")),o=s.sources.map((function(e){return"/*# sourceURL=".concat(s.sourceRoot||"").concat(e," */")}));return[r].concat(o).concat([l]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(i)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(a[s]=!0)}for(var l=0;l<e.length;l++){var o=[].concat(e[l]);i&&a[o[0]]||(n&&(o[2]?o[2]="".concat(n," and ").concat(o[2]):o[2]=n),t.push(o))}},t}},function(e,t,n){var i=n(7);e.exports=function(e){if(Array.isArray(e))return i(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){
|
||
/** @license React v16.14.0
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
var i=n(9),a="function"==typeof Symbol&&Symbol.for,r=a?Symbol.for("react.element"):60103,s=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,o=a?Symbol.for("react.strict_mode"):60108,d=a?Symbol.for("react.profiler"):60114,c=a?Symbol.for("react.provider"):60109,u=a?Symbol.for("react.context"):60110,p=a?Symbol.for("react.forward_ref"):60112,A=a?Symbol.for("react.suspense"):60113,h=a?Symbol.for("react.memo"):60115,f=a?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function x(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||g}function b(){}function w(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||g}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=x.prototype;var j=w.prototype=new b;j.constructor=w,i(j,x.prototype),j.isPureReactComponent=!0;var C={current:null},S=Object.prototype.hasOwnProperty,N={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,n){var i,a={},s=null,l=null;if(null!=t)for(i in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(s=""+t.key),t)S.call(t,i)&&!N.hasOwnProperty(i)&&(a[i]=t[i]);var o=arguments.length-2;if(1===o)a.children=n;else if(1<o){for(var d=Array(o),c=0;c<o;c++)d[c]=arguments[c+2];a.children=d}if(e&&e.defaultProps)for(i in o=e.defaultProps)void 0===a[i]&&(a[i]=o[i]);return{$$typeof:r,type:e,key:s,ref:l,props:a,_owner:C.current}}function F(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var B=/\/+/g,P=[];function k(e,t,n,i){if(P.length){var a=P.pop();return a.result=e,a.keyPrefix=t,a.func=n,a.context=i,a.count=0,a}return{result:e,keyPrefix:t,func:n,context:i,count:0}}function T(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function E(e,t,n){return null==e?0:function e(t,n,i,a){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var o=!1;if(null===t)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case r:case s:o=!0}}if(o)return i(a,t,""===n?"."+D(t,0):n),1;if(o=0,n=""===n?".":n+":",Array.isArray(t))for(var d=0;d<t.length;d++){var c=n+D(l=t[d],d);o+=e(l,c,i,a)}else if("function"==typeof(c=null===t||"object"!=typeof t?null:"function"==typeof(c=m&&t[m]||t["@@iterator"])?c:null))for(t=c.call(t),d=0;!(l=t.next()).done;)o+=e(l=l.value,c=n+D(l,d++),i,a);else if("object"===l)throw i=""+t,Error(v(31,"[object Object]"===i?"object with keys {"+Object.keys(t).join(", ")+"}":i,""));return o}(e,"",t,n)}function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=e.key,i={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return i[e]}))):t.toString(36);var n,i}function L(e,t){e.func.call(e.context,t,e.count++)}function U(e,t,n){var i,a,s=e.result,l=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?_(e,s,n,(function(e){return e})):null!=e&&(F(e)&&(i=e,a=l+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(B,"$&/")+"/")+n,e={$$typeof:r,type:i.type,key:a,ref:i.ref,props:i.props,_owner:i._owner}),s.push(e))}function _(e,t,n,i,a){var r="";null!=n&&(r=(""+n).replace(B,"$&/")+"/"),E(e,U,t=k(t,r,i,a)),T(t)}var O={current:null};function M(){var e=O.current;if(null===e)throw Error(v(321));return e}var R={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:C,IsSomeRendererActing:{current:!1},assign:i};t.Children={map:function(e,t,n){if(null==e)return e;var i=[];return _(e,i,null,t,n),i},forEach:function(e,t,n){if(null==e)return e;E(e,L,t=k(null,null,t,n)),T(t)},count:function(e){return E(e,(function(){return null}),null)},toArray:function(e){var t=[];return _(e,t,null,(function(e){return e})),t},only:function(e){if(!F(e))throw Error(v(143));return e}},t.Component=x,t.Fragment=l,t.Profiler=d,t.PureComponent=w,t.StrictMode=o,t.Suspense=A,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var a=i({},e.props),s=e.key,l=e.ref,o=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,o=C.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var d=e.type.defaultProps;for(c in t)S.call(t,c)&&!N.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==d?d[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){d=Array(c);for(var u=0;u<c;u++)d[u]=arguments[u+2];a.children=d}return{$$typeof:r,type:e.type,key:s,ref:l,props:a,_owner:o}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=I,t.createFactory=function(e){var t=I.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=F,t.lazy=function(e){return{$$typeof:f,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return M().useCallback(e,t)},t.useContext=function(e,t){return M().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return M().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return M().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return M().useLayoutEffect(e,t)},t.useMemo=function(e,t){return M().useMemo(e,t)},t.useReducer=function(e,t,n){return M().useReducer(e,t,n)},t.useRef=function(e){return M().useRef(e)},t.useState=function(e){return M().useState(e)},t.version="16.14.0"},function(e,t,n){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),e.exports=n(33)},function(e,t,n){
|
||
/** @license React v16.14.0
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
var i=n(0),a=n(9),r=n(34);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!i)throw Error(s(227));function l(e,t,n,i,a,r,s,l,o){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(c){this.onError(c)}}var o=!1,d=null,c=!1,u=null,p={onError:function(e){o=!0,d=e}};function A(e,t,n,i,a,r,s,c,u){o=!1,d=null,l.apply(p,arguments)}var h=null,f=null,m=null;function v(e,t,n){var i=e.type||"unknown-event";e.currentTarget=m(n),function(e,t,n,i,a,r,l,p,h){if(A.apply(this,arguments),o){if(!o)throw Error(s(198));var f=d;o=!1,d=null,c||(c=!0,u=f)}}(i,t,void 0,e),e.currentTarget=null}var g=null,y={};function x(){if(g)for(var e in y){var t=y[e],n=g.indexOf(e);if(!(-1<n))throw Error(s(96,e));if(!w[n]){if(!t.extractEvents)throw Error(s(97,e));for(var i in w[n]=t,n=t.eventTypes){var a=void 0,r=n[i],l=t,o=i;if(j.hasOwnProperty(o))throw Error(s(99,o));j[o]=r;var d=r.phasedRegistrationNames;if(d){for(a in d)d.hasOwnProperty(a)&&b(d[a],l,o);a=!0}else r.registrationName?(b(r.registrationName,l,o),a=!0):a=!1;if(!a)throw Error(s(98,i,e))}}}}function b(e,t,n){if(C[e])throw Error(s(100,e));C[e]=t,S[e]=t.eventTypes[n].dependencies}var w=[],j={},C={},S={};function N(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var i=e[t];if(!y.hasOwnProperty(t)||y[t]!==i){if(y[t])throw Error(s(102,t));y[t]=i,n=!0}}n&&x()}var I=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),F=null,B=null,P=null;function k(e){if(e=f(e)){if("function"!=typeof F)throw Error(s(280));var t=e.stateNode;t&&(t=h(t),F(e.stateNode,e.type,t))}}function T(e){B?P?P.push(e):P=[e]:B=e}function E(){if(B){var e=B,t=P;if(P=B=null,k(e),t)for(e=0;e<t.length;e++)k(t[e])}}function D(e,t){return e(t)}function L(e,t,n,i,a){return e(t,n,i,a)}function U(){}var _=D,O=!1,M=!1;function R(){null===B&&null===P||(U(),E())}function Q(e,t,n){if(M)return e(t,n);M=!0;try{return _(e,t,n)}finally{M=!1,R()}}var H=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,V=Object.prototype.hasOwnProperty,z={},q={};function W(e,t,n,i,a,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r}var Y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Y[e]=new W(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Y[t]=new W(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Y[e]=new W(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Y[e]=new W(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Y[e]=new W(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Y[e]=new W(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){Y[e]=new W(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){Y[e]=new W(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){Y[e]=new W(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function G(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(K,G);Y[t]=new W(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,G);Y[t]=new W(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,G);Y[t]=new W(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){Y[e]=new W(e,1,!1,e.toLowerCase(),null,!1)})),Y.xlinkHref=new W("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){Y[e]=new W(e,1,!1,e.toLowerCase(),null,!0)}));var $=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,i){var a,r=Y.hasOwnProperty(t)?Y[t]:null;(null!==r?0===r.type:!i&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,i){if(null==t||function(e,t,n,i){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,i)&&(n=null),i||null===r?(a=t,(V.call(q,a)||!V.call(z,a)&&(H.test(a)?q[a]=!0:(z[a]=!0,0)))&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n))):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,i=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}$.hasOwnProperty("ReactCurrentDispatcher")||($.ReactCurrentDispatcher={current:null}),$.hasOwnProperty("ReactCurrentBatchConfig")||($.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Z="function"==typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,ie=Z?Symbol.for("react.strict_mode"):60108,ae=Z?Symbol.for("react.profiler"):60114,re=Z?Symbol.for("react.provider"):60109,se=Z?Symbol.for("react.context"):60110,le=Z?Symbol.for("react.concurrent_mode"):60111,oe=Z?Symbol.for("react.forward_ref"):60112,de=Z?Symbol.for("react.suspense"):60113,ce=Z?Symbol.for("react.suspense_list"):60120,ue=Z?Symbol.for("react.memo"):60115,pe=Z?Symbol.for("react.lazy"):60116,Ae=Z?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function fe(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function me(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ae:return"Profiler";case ie:return"StrictMode";case de:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case se:return"Context.Consumer";case re:return"Context.Provider";case oe:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case ue:return me(e.type);case Ae:return me(e.render);case pe:if(e=1===e._status?e._result:null)return me(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var i=e._debugOwner,a=e._debugSource,r=me(e.type);n=null,i&&(n=me(i.type)),i=r,r="",a?r=" (at "+a.fileName.replace(J,"")+":"+a.lineNumber+")":n&&(r=" (created by "+n+")"),n="\n in "+(i||"Unknown")+r}t+=n,e=e.return}while(e);return t}function ge(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function xe(e){e._valueTracker||(e._valueTracker=function(e){var t=ye(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){i=""+e,r.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function be(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=ye(e)?e.checked?"true":"false":e.value),(e=i)!==n&&(t.setValue(e),!0)}function we(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function je(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=ge(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ce(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Se(e,t){Ce(e,t);var n=ge(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ie(e,t.type,ge(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ne(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ie(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Fe(e,t){return e=a({children:void 0},t),n=t.children,r="",i.Children.forEach(n,(function(e){null!=e&&(r+=e)})),(t=r)&&(e.children=t),e;var n,r}function Be(e,t,n,i){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&i&&(e[n].defaultSelected=!0)}else{for(n=""+ge(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(i&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Pe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ke(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ge(n)}}function Te(e,t){var n=ge(t.value),i=ge(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function Ee(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var De="http://www.w3.org/1999/xhtml",Le="http://www.w3.org/2000/svg";function Ue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function _e(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ue(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Oe,Me,Re=(Me=function(e,t){if(e.namespaceURI!==Le||"innerHTML"in e)e.innerHTML=t;else{for((Oe=Oe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Oe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,i){MSApp.execUnsafeLocalFunction((function(){return Me(e,t)}))}:Me);function Qe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function He(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ve={animationend:He("Animation","AnimationEnd"),animationiteration:He("Animation","AnimationIteration"),animationstart:He("Animation","AnimationStart"),transitionend:He("Transition","TransitionEnd")},ze={},qe={};function We(e){if(ze[e])return ze[e];if(!Ve[e])return e;var t,n=Ve[e];for(t in n)if(n.hasOwnProperty(t)&&t in qe)return ze[e]=n[t];return e}I&&(qe=document.createElement("div").style,"AnimationEvent"in window||(delete Ve.animationend.animation,delete Ve.animationiteration.animation,delete Ve.animationstart.animation),"TransitionEvent"in window||delete Ve.transitionend.transition);var Ye=We("animationend"),Ke=We("animationiteration"),Ge=We("animationstart"),$e=We("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Je=new("function"==typeof WeakMap?WeakMap:Map);function Ze(e){var t=Je.get(e);return void 0===t&&(t=new Map,Je.set(e,t)),t}function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function nt(e){if(et(e)!==e)throw Error(s(188))}function it(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var a=n.return;if(null===a)break;var r=a.alternate;if(null===r){if(null!==(i=a.return)){n=i;continue}break}if(a.child===r.child){for(r=a.child;r;){if(r===n)return nt(a),e;if(r===i)return nt(a),t;r=r.sibling}throw Error(s(188))}if(n.return!==i.return)n=a,i=r;else{for(var l=!1,o=a.child;o;){if(o===n){l=!0,n=a,i=r;break}if(o===i){l=!0,i=a,n=r;break}o=o.sibling}if(!l){for(o=r.child;o;){if(o===n){l=!0,n=r,i=a;break}if(o===i){l=!0,i=r,n=a;break}o=o.sibling}if(!l)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function at(e,t){if(null==t)throw Error(s(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var st=null;function lt(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var i=0;i<t.length&&!e.isPropagationStopped();i++)v(e,t[i],n[i]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ot(e){if(null!==e&&(st=at(st,e)),e=st,st=null,e){if(rt(e,lt),st)throw Error(s(95));if(c)throw e=u,c=!1,u=null,e}}function dt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!I)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ut=[];function pt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ut.length&&ut.push(e)}function At(e,t,n,i){if(ut.length){var a=ut.pop();return a.topLevelType=e,a.eventSystemFlags=i,a.nativeEvent=t,a.targetInst=n,a}return{topLevelType:e,eventSystemFlags:i,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var i=n;if(3===i.tag)i=i.stateNode.containerInfo;else{for(;i.return;)i=i.return;i=3!==i.tag?null:i.stateNode.containerInfo}if(!i)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Fn(i)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var a=dt(e.nativeEvent);i=e.topLevelType;var r=e.nativeEvent,s=e.eventSystemFlags;0===n&&(s|=64);for(var l=null,o=0;o<w.length;o++){var d=w[o];d&&(d=d.extractEvents(i,t,r,a,s))&&(l=at(l,d))}ot(l)}}function ft(e,t,n){if(!n.has(e)){switch(e){case"scroll":Gt(t,"scroll",!0);break;case"focus":case"blur":Gt(t,"focus",!0),Gt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Gt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&Kt(e,t)}n.set(e,null)}}var mt,vt,gt,yt=!1,xt=[],bt=null,wt=null,jt=null,Ct=new Map,St=new Map,Nt=[],It="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ft="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Bt(e,t,n,i,a){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:a,container:i}}function Pt(e,t){switch(e){case"focus":case"blur":bt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":jt=null;break;case"pointerover":case"pointerout":Ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function kt(e,t,n,i,a,r){return null===e||e.nativeEvent!==r?(e=Bt(t,n,i,a,r),null!==t&&null!==(t=Bn(t))&&vt(t),e):(e.eventSystemFlags|=i,e)}function Tt(e){var t=Fn(e.target);if(null!==t){var n=et(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tt(n)))return e.blockedOn=t,void r.unstable_runWithPriority(e.priority,(function(){gt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Et(e){if(null!==e.blockedOn)return!1;var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Bn(t);return null!==n&&vt(n),e.blockedOn=t,!1}return!0}function Dt(e,t,n){Et(e)&&n.delete(t)}function Lt(){for(yt=!1;0<xt.length;){var e=xt[0];if(null!==e.blockedOn){null!==(e=Bn(e.blockedOn))&&mt(e);break}var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:xt.shift()}null!==bt&&Et(bt)&&(bt=null),null!==wt&&Et(wt)&&(wt=null),null!==jt&&Et(jt)&&(jt=null),Ct.forEach(Dt),St.forEach(Dt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Lt)))}function _t(e){function t(t){return Ut(t,e)}if(0<xt.length){Ut(xt[0],e);for(var n=1;n<xt.length;n++){var i=xt[n];i.blockedOn===e&&(i.blockedOn=null)}}for(null!==bt&&Ut(bt,e),null!==wt&&Ut(wt,e),null!==jt&&Ut(jt,e),Ct.forEach(t),St.forEach(t),n=0;n<Nt.length;n++)(i=Nt[n]).blockedOn===e&&(i.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)Tt(n),null===n.blockedOn&&Nt.shift()}var Ot={},Mt=new Map,Rt=new Map,Qt=["abort","abort",Ye,"animationEnd",Ke,"animationIteration",Ge,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$e,"transitionEnd","waiting","waiting"];function Ht(e,t){for(var n=0;n<e.length;n+=2){var i=e[n],a=e[n+1],r="on"+(a[0].toUpperCase()+a.slice(1));r={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[i],eventPriority:t},Rt.set(i,t),Mt.set(i,r),Ot[a]=r}}Ht("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ht("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ht(Qt,2);for(var Vt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),zt=0;zt<Vt.length;zt++)Rt.set(Vt[zt],0);var qt=r.unstable_UserBlockingPriority,Wt=r.unstable_runWithPriority,Yt=!0;function Kt(e,t){Gt(t,e,!1)}function Gt(e,t,n){var i=Rt.get(t);switch(void 0===i?2:i){case 0:i=$t.bind(null,t,1,e);break;case 1:i=Xt.bind(null,t,1,e);break;default:i=Jt.bind(null,t,1,e)}n?e.addEventListener(t,i,!0):e.addEventListener(t,i,!1)}function $t(e,t,n,i){O||U();var a=Jt,r=O;O=!0;try{L(a,e,t,n,i)}finally{(O=r)||R()}}function Xt(e,t,n,i){Wt(qt,Jt.bind(null,e,t,n,i))}function Jt(e,t,n,i){if(Yt)if(0<xt.length&&-1<It.indexOf(e))e=Bt(null,e,t,n,i),xt.push(e);else{var a=Zt(e,t,n,i);if(null===a)Pt(e,i);else if(-1<It.indexOf(e))e=Bt(a,e,t,n,i),xt.push(e);else if(!function(e,t,n,i,a){switch(t){case"focus":return bt=kt(bt,e,t,n,i,a),!0;case"dragenter":return wt=kt(wt,e,t,n,i,a),!0;case"mouseover":return jt=kt(jt,e,t,n,i,a),!0;case"pointerover":var r=a.pointerId;return Ct.set(r,kt(Ct.get(r)||null,e,t,n,i,a)),!0;case"gotpointercapture":return r=a.pointerId,St.set(r,kt(St.get(r)||null,e,t,n,i,a)),!0}return!1}(a,e,t,n,i)){Pt(e,i),e=At(e,i,null,t);try{Q(ht,e)}finally{pt(e)}}}}function Zt(e,t,n,i){if(null!==(n=Fn(n=dt(i)))){var a=et(n);if(null===a)n=null;else{var r=a.tag;if(13===r){if(null!==(n=tt(a)))return n;n=null}else if(3===r){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}e=At(e,i,n,t);try{Q(ht,e)}finally{pt(e)}return null}var en={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tn=["Webkit","ms","Moz","O"];function nn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||en.hasOwnProperty(e)&&en[e]?(""+t).trim():t+"px"}function an(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),a=nn(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,a):e[n]=a}}Object.keys(en).forEach((function(e){tn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),en[t]=en[e]}))}));var rn=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function sn(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62,""))}}function ln(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var on=De;function dn(e,t){var n=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var i=0;i<t.length;i++)ft(t[i],e,n)}function cn(){}function un(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function pn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function An(e,t){var n,i=pn(e);for(e=0;i;){if(3===i.nodeType){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=pn(i)}}function hn(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(i){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn=null,vn=null;function gn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var xn="function"==typeof setTimeout?setTimeout:void 0,bn="function"==typeof clearTimeout?clearTimeout:void 0;function wn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function jn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Cn=Math.random().toString(36).slice(2),Sn="__reactInternalInstance$"+Cn,Nn="__reactEventHandlers$"+Cn,In="__reactContainere$"+Cn;function Fn(e){var t=e[Sn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[In]||n[Sn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=jn(e);null!==e;){if(n=e[Sn])return n;e=jn(e)}return t}n=(e=n).parentNode}return null}function Bn(e){return!(e=e[Sn]||e[In])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Pn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function kn(e){return e[Nn]||null}function Tn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function En(e,t){var n=e.stateNode;if(!n)return null;var i=h(n);if(!i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}function Dn(e,t,n){(t=En(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=at(n._dispatchListeners,t),n._dispatchInstances=at(n._dispatchInstances,e))}function Ln(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Tn(t);for(t=n.length;0<t--;)Dn(n[t],"captured",e);for(t=0;t<n.length;t++)Dn(n[t],"bubbled",e)}}function Un(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=En(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=at(n._dispatchListeners,t),n._dispatchInstances=at(n._dispatchInstances,e))}function _n(e){e&&e.dispatchConfig.registrationName&&Un(e._targetInst,null,e)}function On(e){rt(e,Ln)}var Mn=null,Rn=null,Qn=null;function Hn(){if(Qn)return Qn;var e,t,n=Rn,i=n.length,a="value"in Mn?Mn.value:Mn.textContent,r=a.length;for(e=0;e<i&&n[e]===a[e];e++);var s=i-e;for(t=1;t<=s&&n[i-t]===a[r-t];t++);return Qn=a.slice(e,1<t?1-t:void 0)}function Vn(){return!0}function zn(){return!1}function qn(e,t,n,i){for(var a in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(a)&&((t=e[a])?this[a]=t(n):"target"===a?this.target=i:this[a]=n[a]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Vn:zn,this.isPropagationStopped=zn,this}function Wn(e,t,n,i){if(this.eventPool.length){var a=this.eventPool.pop();return this.call(a,e,t,n,i),a}return new this(e,t,n,i)}function Yn(e){if(!(e instanceof this))throw Error(s(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Kn(e){e.eventPool=[],e.getPooled=Wn,e.release=Yn}a(qn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Vn)},persist:function(){this.isPersistent=Vn},isPersistent:zn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=zn,this._dispatchInstances=this._dispatchListeners=null}}),qn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},qn.extend=function(e){function t(){}function n(){return i.apply(this,arguments)}var i=this;t.prototype=i.prototype;var r=new t;return a(r,n.prototype),n.prototype=r,n.prototype.constructor=n,n.Interface=a({},i.Interface,e),n.extend=i.extend,Kn(n),n},Kn(qn);var Gn=qn.extend({data:null}),$n=qn.extend({data:null}),Xn=[9,13,27,32],Jn=I&&"CompositionEvent"in window,Zn=null;I&&"documentMode"in document&&(Zn=document.documentMode);var ei=I&&"TextEvent"in window&&!Zn,ti=I&&(!Jn||Zn&&8<Zn&&11>=Zn),ni=String.fromCharCode(32),ii={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ai=!1;function ri(e,t){switch(e){case"keyup":return-1!==Xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function si(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var li=!1,oi={eventTypes:ii,extractEvents:function(e,t,n,i){var a;if(Jn)e:{switch(e){case"compositionstart":var r=ii.compositionStart;break e;case"compositionend":r=ii.compositionEnd;break e;case"compositionupdate":r=ii.compositionUpdate;break e}r=void 0}else li?ri(e,n)&&(r=ii.compositionEnd):"keydown"===e&&229===n.keyCode&&(r=ii.compositionStart);return r?(ti&&"ko"!==n.locale&&(li||r!==ii.compositionStart?r===ii.compositionEnd&&li&&(a=Hn()):(Rn="value"in(Mn=i)?Mn.value:Mn.textContent,li=!0)),r=Gn.getPooled(r,t,n,i),(a||null!==(a=si(n)))&&(r.data=a),On(r),a=r):a=null,(e=ei?function(e,t){switch(e){case"compositionend":return si(t);case"keypress":return 32!==t.which?null:(ai=!0,ni);case"textInput":return(e=t.data)===ni&&ai?null:e;default:return null}}(e,n):function(e,t){if(li)return"compositionend"===e||!Jn&&ri(e,t)?(e=Hn(),Qn=Rn=Mn=null,li=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ti&&"ko"!==t.locale?null:t.data}}(e,n))?((t=$n.getPooled(ii.beforeInput,t,n,i)).data=e,On(t)):t=null,null===a?t:null===t?a:[a,t]}},di={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ci(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!di[e.type]:"textarea"===t}var ui={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function pi(e,t,n){return(e=qn.getPooled(ui.change,e,t,n)).type="change",T(n),On(e),e}var Ai=null,hi=null;function fi(e){ot(e)}function mi(e){if(be(Pn(e)))return e}function vi(e,t){if("change"===e)return t}var gi=!1;function yi(){Ai&&(Ai.detachEvent("onpropertychange",xi),hi=Ai=null)}function xi(e){if("value"===e.propertyName&&mi(hi))if(e=pi(hi,e,dt(e)),O)ot(e);else{O=!0;try{D(fi,e)}finally{O=!1,R()}}}function bi(e,t,n){"focus"===e?(yi(),hi=n,(Ai=t).attachEvent("onpropertychange",xi)):"blur"===e&&yi()}function wi(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mi(hi)}function ji(e,t){if("click"===e)return mi(t)}function Ci(e,t){if("input"===e||"change"===e)return mi(t)}I&&(gi=ct("input")&&(!document.documentMode||9<document.documentMode));var Si={eventTypes:ui,_isInputEventSupported:gi,extractEvents:function(e,t,n,i){var a=t?Pn(t):window,r=a.nodeName&&a.nodeName.toLowerCase();if("select"===r||"input"===r&&"file"===a.type)var s=vi;else if(ci(a))if(gi)s=Ci;else{s=wi;var l=bi}else(r=a.nodeName)&&"input"===r.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(s=ji);if(s&&(s=s(e,t)))return pi(s,n,i);l&&l(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&Ie(a,"number",a.value)}},Ni=qn.extend({view:null,detail:null}),Ii={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fi(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ii[e])&&!!t[e]}function Bi(){return Fi}var Pi=0,ki=0,Ti=!1,Ei=!1,Di=Ni.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Bi,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Pi;return Pi=e.screenX,Ti?"mousemove"===e.type?e.screenX-t:0:(Ti=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=ki;return ki=e.screenY,Ei?"mousemove"===e.type?e.screenY-t:0:(Ei=!0,0)}}),Li=Di.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Ui={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},_i={eventTypes:Ui,extractEvents:function(e,t,n,i,a){var r="mouseover"===e||"pointerover"===e,s="mouseout"===e||"pointerout"===e;if(r&&!(32&a)&&(n.relatedTarget||n.fromElement)||!s&&!r)return null;if(r=i.window===i?i:(r=i.ownerDocument)?r.defaultView||r.parentWindow:window,s?(s=t,null!==(t=(t=n.relatedTarget||n.toElement)?Fn(t):null)&&(t!==et(t)||5!==t.tag&&6!==t.tag)&&(t=null)):s=null,s===t)return null;if("mouseout"===e||"mouseover"===e)var l=Di,o=Ui.mouseLeave,d=Ui.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(l=Li,o=Ui.pointerLeave,d=Ui.pointerEnter,c="pointer");if(e=null==s?r:Pn(s),r=null==t?r:Pn(t),(o=l.getPooled(o,s,n,i)).type=c+"leave",o.target=e,o.relatedTarget=r,(n=l.getPooled(d,t,n,i)).type=c+"enter",n.target=r,n.relatedTarget=e,c=t,(i=s)&&c)e:{for(d=c,s=0,e=l=i;e;e=Tn(e))s++;for(e=0,t=d;t;t=Tn(t))e++;for(;0<s-e;)l=Tn(l),s--;for(;0<e-s;)d=Tn(d),e--;for(;s--;){if(l===d||l===d.alternate)break e;l=Tn(l),d=Tn(d)}l=null}else l=null;for(d=l,l=[];i&&i!==d&&(null===(s=i.alternate)||s!==d);)l.push(i),i=Tn(i);for(i=[];c&&c!==d&&(null===(s=c.alternate)||s!==d);)i.push(c),c=Tn(c);for(c=0;c<l.length;c++)Un(l[c],"bubbled",o);for(c=i.length;0<c--;)Un(i[c],"captured",n);return 64&a?[o,n]:[o]}},Oi="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Mi=Object.prototype.hasOwnProperty;function Ri(e,t){if(Oi(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++)if(!Mi.call(t,n[i])||!Oi(e[n[i]],t[n[i]]))return!1;return!0}var Qi=I&&"documentMode"in document&&11>=document.documentMode,Hi={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Vi=null,zi=null,qi=null,Wi=!1;function Yi(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Wi||null==Vi||Vi!==un(n)?null:(n="selectionStart"in(n=Vi)&&fn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},qi&&Ri(qi,n)?null:(qi=n,(e=qn.getPooled(Hi.select,zi,e,t)).type="select",e.target=Vi,On(e),e))}var Ki={eventTypes:Hi,extractEvents:function(e,t,n,i,a,r){if(!(r=!(a=r||(i.window===i?i.document:9===i.nodeType?i:i.ownerDocument)))){e:{a=Ze(a),r=S.onSelect;for(var s=0;s<r.length;s++)if(!a.has(r[s])){a=!1;break e}a=!0}r=!a}if(r)return null;switch(a=t?Pn(t):window,e){case"focus":(ci(a)||"true"===a.contentEditable)&&(Vi=a,zi=t,qi=null);break;case"blur":qi=zi=Vi=null;break;case"mousedown":Wi=!0;break;case"contextmenu":case"mouseup":case"dragend":return Wi=!1,Yi(n,i);case"selectionchange":if(Qi)break;case"keydown":case"keyup":return Yi(n,i)}return null}},Gi=qn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),$i=qn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xi=Ni.extend({relatedTarget:null});function Ji(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Zi={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ea={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ta=Ni.extend({key:function(e){if(e.key){var t=Zi[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ji(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ea[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Bi,charCode:function(e){return"keypress"===e.type?Ji(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ji(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),na=Di.extend({dataTransfer:null}),ia=Ni.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Bi}),aa=qn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ra=Di.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),sa={eventTypes:Ot,extractEvents:function(e,t,n,i){var a=Mt.get(e);if(!a)return null;switch(e){case"keypress":if(0===Ji(n))return null;case"keydown":case"keyup":e=ta;break;case"blur":case"focus":e=Xi;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Di;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=na;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ia;break;case Ye:case Ke:case Ge:e=Gi;break;case $e:e=aa;break;case"scroll":e=Ni;break;case"wheel":e=ra;break;case"copy":case"cut":case"paste":e=$i;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Li;break;default:e=qn}return On(t=e.getPooled(a,t,n,i)),t}};if(g)throw Error(s(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x(),h=kn,f=Bn,m=Pn,N({SimpleEventPlugin:sa,EnterLeaveEventPlugin:_i,ChangeEventPlugin:Si,SelectEventPlugin:Ki,BeforeInputEventPlugin:oi});var la=[],oa=-1;function da(e){0>oa||(e.current=la[oa],la[oa]=null,oa--)}function ca(e,t){oa++,la[oa]=e.current,e.current=t}var ua={},pa={current:ua},Aa={current:!1},ha=ua;function fa(e,t){var n=e.type.contextTypes;if(!n)return ua;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var a,r={};for(a in n)r[a]=t[a];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function ma(e){return null!=e.childContextTypes}function va(){da(Aa),da(pa)}function ga(e,t,n){if(pa.current!==ua)throw Error(s(168));ca(pa,t),ca(Aa,n)}function ya(e,t,n){var i=e.stateNode;if(e=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(var r in i=i.getChildContext())if(!(r in e))throw Error(s(108,me(t)||"Unknown",r));return a({},n,{},i)}function xa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ua,ha=pa.current,ca(pa,e),ca(Aa,Aa.current),!0}function ba(e,t,n){var i=e.stateNode;if(!i)throw Error(s(169));n?(e=ya(e,t,ha),i.__reactInternalMemoizedMergedChildContext=e,da(Aa),da(pa),ca(pa,e)):da(Aa),ca(Aa,n)}var wa=r.unstable_runWithPriority,ja=r.unstable_scheduleCallback,Ca=r.unstable_cancelCallback,Sa=r.unstable_requestPaint,Na=r.unstable_now,Ia=r.unstable_getCurrentPriorityLevel,Fa=r.unstable_ImmediatePriority,Ba=r.unstable_UserBlockingPriority,Pa=r.unstable_NormalPriority,ka=r.unstable_LowPriority,Ta=r.unstable_IdlePriority,Ea={},Da=r.unstable_shouldYield,La=void 0!==Sa?Sa:function(){},Ua=null,_a=null,Oa=!1,Ma=Na(),Ra=1e4>Ma?Na:function(){return Na()-Ma};function Qa(){switch(Ia()){case Fa:return 99;case Ba:return 98;case Pa:return 97;case ka:return 96;case Ta:return 95;default:throw Error(s(332))}}function Ha(e){switch(e){case 99:return Fa;case 98:return Ba;case 97:return Pa;case 96:return ka;case 95:return Ta;default:throw Error(s(332))}}function Va(e,t){return e=Ha(e),wa(e,t)}function za(e,t,n){return e=Ha(e),ja(e,t,n)}function qa(e){return null===Ua?(Ua=[e],_a=ja(Fa,Ya)):Ua.push(e),Ea}function Wa(){if(null!==_a){var e=_a;_a=null,Ca(e)}Ya()}function Ya(){if(!Oa&&null!==Ua){Oa=!0;var e=0;try{var t=Ua;Va(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ua=null}catch(n){throw null!==Ua&&(Ua=Ua.slice(e+1)),ja(Fa,Wa),n}finally{Oa=!1}}}function Ka(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Ga(e,t){if(e&&e.defaultProps)for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var $a={current:null},Xa=null,Ja=null,Za=null;function er(){Za=Ja=Xa=null}function tr(e){var t=$a.current;da($a),e.type._context._currentValue=t}function nr(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ir(e,t){Xa=e,Za=Ja=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ps=!0),e.firstContext=null)}function ar(e,t){if(Za!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Za=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ja){if(null===Xa)throw Error(s(308));Ja=t,Xa.dependencies={expirationTime:0,firstContext:t,responders:null}}else Ja=Ja.next=t;return e._currentValue}var rr=!1;function sr(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function lr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function or(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function dr(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function cr(e,t){var n=e.alternate;null!==n&&lr(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function ur(e,t,n,i){var r=e.updateQueue;rr=!1;var s=r.baseQueue,l=r.shared.pending;if(null!==l){if(null!==s){var o=s.next;s.next=l.next,l.next=o}s=l,r.shared.pending=null,null!==(o=e.alternate)&&null!==(o=o.updateQueue)&&(o.baseQueue=l)}if(null!==s){o=s.next;var d=r.baseState,c=0,u=null,p=null,A=null;if(null!==o)for(var h=o;;){if((l=h.expirationTime)<i){var f={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===A?(p=A=f,u=d):A=A.next=f,l>c&&(c=l)}else{null!==A&&(A=A.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),ro(l,h.suspenseConfig);e:{var m=e,v=h;switch(l=t,f=n,v.tag){case 1:if("function"==typeof(m=v.payload)){d=m.call(f,d,l);break e}d=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null==(l="function"==typeof(m=v.payload)?m.call(f,d,l):m))break e;d=a({},d,l);break e;case 2:rr=!0}}null!==h.callback&&(e.effectTag|=32,null===(l=r.effects)?r.effects=[h]:l.push(h))}if(null===(h=h.next)||h===o){if(null===(l=r.shared.pending))break;h=s.next=l.next,l.next=o,r.baseQueue=s=l,r.shared.pending=null}}null===A?u=d:A.next=p,r.baseState=u,r.baseQueue=A,so(c),e.expirationTime=c,e.memoizedState=d}}function pr(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(null!==a){if(i.callback=null,i=a,a=n,"function"!=typeof i)throw Error(s(191,i));i.call(a)}}}var Ar=$.ReactCurrentBatchConfig,hr=(new i.Component).refs;function fr(e,t,n,i){n=null==(n=n(i,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var mr={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var i=Wl(),a=Ar.suspense;(a=or(i=Yl(i,e,a),a)).payload=t,null!=n&&(a.callback=n),dr(e,a),Kl(e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var i=Wl(),a=Ar.suspense;(a=or(i=Yl(i,e,a),a)).tag=1,a.payload=t,null!=n&&(a.callback=n),dr(e,a),Kl(e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Wl(),i=Ar.suspense;(i=or(n=Yl(n,e,i),i)).tag=2,null!=t&&(i.callback=t),dr(e,i),Kl(e,n)}};function vr(e,t,n,i,a,r,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,r,s):!(t.prototype&&t.prototype.isPureReactComponent&&Ri(n,i)&&Ri(a,r))}function gr(e,t,n){var i=!1,a=ua,r=t.contextType;return"object"==typeof r&&null!==r?r=ar(r):(a=ma(t)?ha:pa.current,r=(i=null!=(i=t.contextTypes))?fa(e,a):ua),t=new t(n,r),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=mr,e.stateNode=t,t._reactInternalFiber=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=r),t}function yr(e,t,n,i){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&mr.enqueueReplaceState(t,t.state,null)}function xr(e,t,n,i){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=hr,sr(e);var r=t.contextType;"object"==typeof r&&null!==r?a.context=ar(r):(r=ma(t)?ha:pa.current,a.context=fa(e,r)),ur(e,n,a,i),a.state=e.memoizedState,"function"==typeof(r=t.getDerivedStateFromProps)&&(fr(e,t,r,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&mr.enqueueReplaceState(a,a.state,null),ur(e,n,a,i),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var br=Array.isArray;function wr(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var i=n.stateNode}if(!i)throw Error(s(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=i.refs;t===hr&&(t=i.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function jr(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Cr(e){function t(t,n){if(e){var i=t.lastEffect;null!==i?(i.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Io(e,t)).index=0,e.sibling=null,e}function r(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.effectTag=2,n):i:(t.effectTag=2,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function o(e,t,n,i){return null===t||6!==t.tag?((t=Po(n,e.mode,i)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n,i){return null!==t&&t.elementType===n.type?((i=a(t,n.props)).ref=wr(e,t,n),i.return=e,i):((i=Fo(n.type,n.key,n.props,null,e.mode,i)).ref=wr(e,t,n),i.return=e,i)}function c(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ko(n,e.mode,i)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function u(e,t,n,i,r){return null===t||7!==t.tag?((t=Bo(n,e.mode,i,r)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Po(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Fo(t.type,t.key,t.props,null,e.mode,n)).ref=wr(e,null,t),n.return=e,n;case te:return(t=ko(t,e.mode,n)).return=e,t}if(br(t)||fe(t))return(t=Bo(t,e.mode,n,null)).return=e,t;jr(e,t)}return null}function A(e,t,n,i){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:o(e,t,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===a?n.type===ne?u(e,t,n.props.children,i,a):d(e,t,n,i):null;case te:return n.key===a?c(e,t,n,i):null}if(br(n)||fe(n))return null!==a?null:u(e,t,n,i,null);jr(e,n)}return null}function h(e,t,n,i,a){if("string"==typeof i||"number"==typeof i)return o(t,e=e.get(n)||null,""+i,a);if("object"==typeof i&&null!==i){switch(i.$$typeof){case ee:return e=e.get(null===i.key?n:i.key)||null,i.type===ne?u(t,e,i.props.children,a,i.key):d(t,e,i,a);case te:return c(t,e=e.get(null===i.key?n:i.key)||null,i,a)}if(br(i)||fe(i))return u(t,e=e.get(n)||null,i,a,null);jr(t,i)}return null}function f(a,s,l,o){for(var d=null,c=null,u=s,f=s=0,m=null;null!==u&&f<l.length;f++){u.index>f?(m=u,u=null):m=u.sibling;var v=A(a,u,l[f],o);if(null===v){null===u&&(u=m);break}e&&u&&null===v.alternate&&t(a,u),s=r(v,s,f),null===c?d=v:c.sibling=v,c=v,u=m}if(f===l.length)return n(a,u),d;if(null===u){for(;f<l.length;f++)null!==(u=p(a,l[f],o))&&(s=r(u,s,f),null===c?d=u:c.sibling=u,c=u);return d}for(u=i(a,u);f<l.length;f++)null!==(m=h(u,a,f,l[f],o))&&(e&&null!==m.alternate&&u.delete(null===m.key?f:m.key),s=r(m,s,f),null===c?d=m:c.sibling=m,c=m);return e&&u.forEach((function(e){return t(a,e)})),d}function m(a,l,o,d){var c=fe(o);if("function"!=typeof c)throw Error(s(150));if(null==(o=c.call(o)))throw Error(s(151));for(var u=c=null,f=l,m=l=0,v=null,g=o.next();null!==f&&!g.done;m++,g=o.next()){f.index>m?(v=f,f=null):v=f.sibling;var y=A(a,f,g.value,d);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(a,f),l=r(y,l,m),null===u?c=y:u.sibling=y,u=y,f=v}if(g.done)return n(a,f),c;if(null===f){for(;!g.done;m++,g=o.next())null!==(g=p(a,g.value,d))&&(l=r(g,l,m),null===u?c=g:u.sibling=g,u=g);return c}for(f=i(a,f);!g.done;m++,g=o.next())null!==(g=h(f,a,m,g.value,d))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),l=r(g,l,m),null===u?c=g:u.sibling=g,u=g);return e&&f.forEach((function(e){return t(a,e)})),c}return function(e,i,r,o){var d="object"==typeof r&&null!==r&&r.type===ne&&null===r.key;d&&(r=r.props.children);var c="object"==typeof r&&null!==r;if(c)switch(r.$$typeof){case ee:e:{for(c=r.key,d=i;null!==d;){if(d.key===c){if(7===d.tag){if(r.type===ne){n(e,d.sibling),(i=a(d,r.props.children)).return=e,e=i;break e}}else if(d.elementType===r.type){n(e,d.sibling),(i=a(d,r.props)).ref=wr(e,d,r),i.return=e,e=i;break e}n(e,d);break}t(e,d),d=d.sibling}r.type===ne?((i=Bo(r.props.children,e.mode,o,r.key)).return=e,e=i):((o=Fo(r.type,r.key,r.props,null,e.mode,o)).ref=wr(e,i,r),o.return=e,e=o)}return l(e);case te:e:{for(d=r.key;null!==i;){if(i.key===d){if(4===i.tag&&i.stateNode.containerInfo===r.containerInfo&&i.stateNode.implementation===r.implementation){n(e,i.sibling),(i=a(i,r.children||[])).return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}(i=ko(r,e.mode,o)).return=e,e=i}return l(e)}if("string"==typeof r||"number"==typeof r)return r=""+r,null!==i&&6===i.tag?(n(e,i.sibling),(i=a(i,r)).return=e,e=i):(n(e,i),(i=Po(r,e.mode,o)).return=e,e=i),l(e);if(br(r))return f(e,i,r,o);if(fe(r))return m(e,i,r,o);if(c&&jr(e,r),void 0===r&&!d)switch(e.tag){case 1:case 0:throw e=e.type,Error(s(152,e.displayName||e.name||"Component"))}return n(e,i)}}var Sr=Cr(!0),Nr=Cr(!1),Ir={},Fr={current:Ir},Br={current:Ir},Pr={current:Ir};function kr(e){if(e===Ir)throw Error(s(174));return e}function Tr(e,t){switch(ca(Pr,t),ca(Br,e),ca(Fr,Ir),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_e(null,"");break;default:t=_e(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}da(Fr),ca(Fr,t)}function Er(){da(Fr),da(Br),da(Pr)}function Dr(e){kr(Pr.current);var t=kr(Fr.current),n=_e(t,e.type);t!==n&&(ca(Br,e),ca(Fr,n))}function Lr(e){Br.current===e&&(da(Fr),da(Br))}var Ur={current:0};function _r(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.effectTag)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Or(e,t){return{responder:e,props:t}}var Mr=$.ReactCurrentDispatcher,Rr=$.ReactCurrentBatchConfig,Qr=0,Hr=null,Vr=null,zr=null,qr=!1;function Wr(){throw Error(s(321))}function Yr(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Oi(e[n],t[n]))return!1;return!0}function Kr(e,t,n,i,a,r){if(Qr=r,Hr=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Mr.current=null===e||null===e.memoizedState?vs:gs,e=n(i,a),t.expirationTime===Qr){r=0;do{if(t.expirationTime=0,!(25>r))throw Error(s(301));r+=1,zr=Vr=null,t.updateQueue=null,Mr.current=ys,e=n(i,a)}while(t.expirationTime===Qr)}if(Mr.current=ms,t=null!==Vr&&null!==Vr.next,Qr=0,zr=Vr=Hr=null,qr=!1,t)throw Error(s(300));return e}function Gr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===zr?Hr.memoizedState=zr=e:zr=zr.next=e,zr}function $r(){if(null===Vr){var e=Hr.alternate;e=null!==e?e.memoizedState:null}else e=Vr.next;var t=null===zr?Hr.memoizedState:zr.next;if(null!==t)zr=t,Vr=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Vr=e).memoizedState,baseState:Vr.baseState,baseQueue:Vr.baseQueue,queue:Vr.queue,next:null},null===zr?Hr.memoizedState=zr=e:zr=zr.next=e}return zr}function Xr(e,t){return"function"==typeof t?t(e):t}function Jr(e){var t=$r(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var i=Vr,a=i.baseQueue,r=n.pending;if(null!==r){if(null!==a){var l=a.next;a.next=r.next,r.next=l}i.baseQueue=a=r,n.pending=null}if(null!==a){a=a.next,i=i.baseState;var o=l=r=null,d=a;do{var c=d.expirationTime;if(c<Qr){var u={expirationTime:d.expirationTime,suspenseConfig:d.suspenseConfig,action:d.action,eagerReducer:d.eagerReducer,eagerState:d.eagerState,next:null};null===o?(l=o=u,r=i):o=o.next=u,c>Hr.expirationTime&&(Hr.expirationTime=c,so(c))}else null!==o&&(o=o.next={expirationTime:1073741823,suspenseConfig:d.suspenseConfig,action:d.action,eagerReducer:d.eagerReducer,eagerState:d.eagerState,next:null}),ro(c,d.suspenseConfig),i=d.eagerReducer===e?d.eagerState:e(i,d.action);d=d.next}while(null!==d&&d!==a);null===o?r=i:o.next=l,Oi(i,t.memoizedState)||(Ps=!0),t.memoizedState=i,t.baseState=r,t.baseQueue=o,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function Zr(e){var t=$r(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,r=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{r=e(r,l.action),l=l.next}while(l!==a);Oi(r,t.memoizedState)||(Ps=!0),t.memoizedState=r,null===t.baseQueue&&(t.baseState=r),n.lastRenderedState=r}return[r,i]}function es(e){var t=Gr();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:e}).dispatch=fs.bind(null,Hr,e),[t.memoizedState,e]}function ts(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===(t=Hr.updateQueue)?(t={lastEffect:null},Hr.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function ns(){return $r().memoizedState}function is(e,t,n,i){var a=Gr();Hr.effectTag|=e,a.memoizedState=ts(1|t,n,void 0,void 0===i?null:i)}function as(e,t,n,i){var a=$r();i=void 0===i?null:i;var r=void 0;if(null!==Vr){var s=Vr.memoizedState;if(r=s.destroy,null!==i&&Yr(i,s.deps))return void ts(t,n,r,i)}Hr.effectTag|=e,a.memoizedState=ts(1|t,n,r,i)}function rs(e,t){return is(516,4,e,t)}function ss(e,t){return as(516,4,e,t)}function ls(e,t){return as(4,2,e,t)}function os(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ds(e,t,n){return n=null!=n?n.concat([e]):null,as(4,2,os.bind(null,t,e),n)}function cs(){}function us(e,t){return Gr().memoizedState=[e,void 0===t?null:t],e}function ps(e,t){var n=$r();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&Yr(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function As(e,t){var n=$r();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&Yr(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function hs(e,t,n){var i=Qa();Va(98>i?98:i,(function(){e(!0)})),Va(97<i?97:i,(function(){var i=Rr.suspense;Rr.suspense=void 0===t?null:t;try{e(!1),n()}finally{Rr.suspense=i}}))}function fs(e,t,n){var i=Wl(),a=Ar.suspense;a={expirationTime:i=Yl(i,e,a),suspenseConfig:a,action:n,eagerReducer:null,eagerState:null,next:null};var r=t.pending;if(null===r?a.next=a:(a.next=r.next,r.next=a),t.pending=a,r=e.alternate,e===Hr||null!==r&&r===Hr)qr=!0,a.expirationTime=Qr,Hr.expirationTime=Qr;else{if(0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=r(s,n);if(a.eagerReducer=r,a.eagerState=l,Oi(l,s))return}catch(o){}Kl(e,i)}}var ms={readContext:ar,useCallback:Wr,useContext:Wr,useEffect:Wr,useImperativeHandle:Wr,useLayoutEffect:Wr,useMemo:Wr,useReducer:Wr,useRef:Wr,useState:Wr,useDebugValue:Wr,useResponder:Wr,useDeferredValue:Wr,useTransition:Wr},vs={readContext:ar,useCallback:us,useContext:ar,useEffect:rs,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,is(4,2,os.bind(null,t,e),n)},useLayoutEffect:function(e,t){return is(4,2,e,t)},useMemo:function(e,t){var n=Gr();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Gr();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e=(e=i.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=fs.bind(null,Hr,e),[i.memoizedState,e]},useRef:function(e){return e={current:e},Gr().memoizedState=e},useState:es,useDebugValue:cs,useResponder:Or,useDeferredValue:function(e,t){var n=es(e),i=n[0],a=n[1];return rs((function(){var n=Rr.suspense;Rr.suspense=void 0===t?null:t;try{a(e)}finally{Rr.suspense=n}}),[e,t]),i},useTransition:function(e){var t=es(!1),n=t[0];return t=t[1],[us(hs.bind(null,t,e),[t,e]),n]}},gs={readContext:ar,useCallback:ps,useContext:ar,useEffect:ss,useImperativeHandle:ds,useLayoutEffect:ls,useMemo:As,useReducer:Jr,useRef:ns,useState:function(){return Jr(Xr)},useDebugValue:cs,useResponder:Or,useDeferredValue:function(e,t){var n=Jr(Xr),i=n[0],a=n[1];return ss((function(){var n=Rr.suspense;Rr.suspense=void 0===t?null:t;try{a(e)}finally{Rr.suspense=n}}),[e,t]),i},useTransition:function(e){var t=Jr(Xr),n=t[0];return t=t[1],[ps(hs.bind(null,t,e),[t,e]),n]}},ys={readContext:ar,useCallback:ps,useContext:ar,useEffect:ss,useImperativeHandle:ds,useLayoutEffect:ls,useMemo:As,useReducer:Zr,useRef:ns,useState:function(){return Zr(Xr)},useDebugValue:cs,useResponder:Or,useDeferredValue:function(e,t){var n=Zr(Xr),i=n[0],a=n[1];return ss((function(){var n=Rr.suspense;Rr.suspense=void 0===t?null:t;try{a(e)}finally{Rr.suspense=n}}),[e,t]),i},useTransition:function(e){var t=Zr(Xr),n=t[0];return t=t[1],[ps(hs.bind(null,t,e),[t,e]),n]}},xs=null,bs=null,ws=!1;function js(e,t){var n=So(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Cs(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ss(e){if(ws){var t=bs;if(t){var n=t;if(!Cs(e,t)){if(!(t=wn(n.nextSibling))||!Cs(e,t))return e.effectTag=-1025&e.effectTag|2,ws=!1,void(xs=e);js(xs,n)}xs=e,bs=wn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,ws=!1,xs=e}}function Ns(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xs=e}function Is(e){if(e!==xs)return!1;if(!ws)return Ns(e),ws=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yn(t,e.memoizedProps))for(t=bs;t;)js(e,t),t=wn(t.nextSibling);if(Ns(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){bs=wn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}bs=null}}else bs=xs?wn(e.stateNode.nextSibling):null;return!0}function Fs(){bs=xs=null,ws=!1}var Bs=$.ReactCurrentOwner,Ps=!1;function ks(e,t,n,i){t.child=null===e?Nr(t,null,n,i):Sr(t,e.child,n,i)}function Ts(e,t,n,i,a){n=n.render;var r=t.ref;return ir(t,a),i=Kr(e,t,n,i,r,a),null===e||Ps?(t.effectTag|=1,ks(e,t,i,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Ks(e,t,a))}function Es(e,t,n,i,a,r){if(null===e){var s=n.type;return"function"!=typeof s||No(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Fo(n.type,null,i,null,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Ds(e,t,s,i,a,r))}return s=e.child,a<r&&(a=s.memoizedProps,(n=null!==(n=n.compare)?n:Ri)(a,i)&&e.ref===t.ref)?Ks(e,t,r):(t.effectTag|=1,(e=Io(s,i)).ref=t.ref,e.return=t,t.child=e)}function Ds(e,t,n,i,a,r){return null!==e&&Ri(e.memoizedProps,i)&&e.ref===t.ref&&(Ps=!1,a<r)?(t.expirationTime=e.expirationTime,Ks(e,t,r)):Us(e,t,n,i,r)}function Ls(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Us(e,t,n,i,a){var r=ma(n)?ha:pa.current;return r=fa(t,r),ir(t,a),n=Kr(e,t,n,i,r,a),null===e||Ps?(t.effectTag|=1,ks(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Ks(e,t,a))}function _s(e,t,n,i,a){if(ma(n)){var r=!0;xa(t)}else r=!1;if(ir(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),gr(t,n,i),xr(t,n,i,a),i=!0;else if(null===e){var s=t.stateNode,l=t.memoizedProps;s.props=l;var o=s.context,d=n.contextType;d="object"==typeof d&&null!==d?ar(d):fa(t,d=ma(n)?ha:pa.current);var c=n.getDerivedStateFromProps,u="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;u||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(l!==i||o!==d)&&yr(t,s,i,d),rr=!1;var p=t.memoizedState;s.state=p,ur(t,i,s,a),o=t.memoizedState,l!==i||p!==o||Aa.current||rr?("function"==typeof c&&(fr(t,n,c,i),o=t.memoizedState),(l=rr||vr(t,n,l,i,p,o,d))?(u||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.effectTag|=4)):("function"==typeof s.componentDidMount&&(t.effectTag|=4),t.memoizedProps=i,t.memoizedState=o),s.props=i,s.state=o,s.context=d,i=l):("function"==typeof s.componentDidMount&&(t.effectTag|=4),i=!1)}else s=t.stateNode,lr(e,t),l=t.memoizedProps,s.props=t.type===t.elementType?l:Ga(t.type,l),o=s.context,d="object"==typeof(d=n.contextType)&&null!==d?ar(d):fa(t,d=ma(n)?ha:pa.current),(u="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(l!==i||o!==d)&&yr(t,s,i,d),rr=!1,o=t.memoizedState,s.state=o,ur(t,i,s,a),p=t.memoizedState,l!==i||o!==p||Aa.current||rr?("function"==typeof c&&(fr(t,n,c,i),p=t.memoizedState),(c=rr||vr(t,n,l,i,o,p,d))?(u||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(i,p,d),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(i,p,d)),"function"==typeof s.componentDidUpdate&&(t.effectTag|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof s.componentDidUpdate||l===e.memoizedProps&&o===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||l===e.memoizedProps&&o===e.memoizedState||(t.effectTag|=256),t.memoizedProps=i,t.memoizedState=p),s.props=i,s.state=p,s.context=d,i=c):("function"!=typeof s.componentDidUpdate||l===e.memoizedProps&&o===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||l===e.memoizedProps&&o===e.memoizedState||(t.effectTag|=256),i=!1);return Os(e,t,n,i,r,a)}function Os(e,t,n,i,a,r){Ls(e,t);var s=!!(64&t.effectTag);if(!i&&!s)return a&&ba(t,n,!1),Ks(e,t,r);i=t.stateNode,Bs.current=t;var l=s&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return t.effectTag|=1,null!==e&&s?(t.child=Sr(t,e.child,null,r),t.child=Sr(t,null,l,r)):ks(e,t,l,r),t.memoizedState=i.state,a&&ba(t,n,!0),t.child}function Ms(e){var t=e.stateNode;t.pendingContext?ga(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ga(0,t.context,!1),Tr(e,t.containerInfo)}var Rs,Qs,Hs,Vs={dehydrated:null,retryTime:0};function zs(e,t,n){var i,a=t.mode,r=t.pendingProps,s=Ur.current,l=!1;if((i=!!(64&t.effectTag))||(i=!!(2&s)&&(null===e||null!==e.memoizedState)),i?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===r.fallback||!0===r.unstable_avoidThisFallback||(s|=1),ca(Ur,1&s),null===e){if(void 0!==r.fallback&&Ss(t),l){if(l=r.fallback,(r=Bo(null,a,0,null)).return=t,!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,r.child=e;null!==e;)e.return=r,e=e.sibling;return(n=Bo(l,a,n,null)).return=t,r.sibling=n,t.memoizedState=Vs,t.child=r,n}return a=r.children,t.memoizedState=null,t.child=Nr(t,null,a,n)}if(null!==e.memoizedState){if(a=(e=e.child).sibling,l){if(r=r.fallback,(n=Io(e,e.pendingProps)).return=t,!(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=l;null!==l;)l.return=n,l=l.sibling;return(a=Io(a,r)).return=t,n.sibling=a,n.childExpirationTime=0,t.memoizedState=Vs,t.child=n,a}return n=Sr(t,e.child,r.children,n),t.memoizedState=null,t.child=n}if(e=e.child,l){if(l=r.fallback,(r=Bo(null,a,0,null)).return=t,r.child=e,null!==e&&(e.return=r),!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,r.child=e;null!==e;)e.return=r,e=e.sibling;return(n=Bo(l,a,n,null)).return=t,r.sibling=n,n.effectTag|=2,r.childExpirationTime=0,t.memoizedState=Vs,t.child=r,n}return t.memoizedState=null,t.child=Sr(t,e,r.children,n)}function qs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),nr(e.return,t)}function Ws(e,t,n,i,a,r){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailExpiration:0,tailMode:a,lastEffect:r}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=i,s.tail=n,s.tailExpiration=0,s.tailMode=a,s.lastEffect=r)}function Ys(e,t,n){var i=t.pendingProps,a=i.revealOrder,r=i.tail;if(ks(e,t,i.children,n),2&(i=Ur.current))i=1&i|2,t.effectTag|=64;else{if(null!==e&&64&e.effectTag)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&qs(e,n);else if(19===e.tag)qs(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(ca(Ur,i),2&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===_r(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Ws(t,!1,a,n,r,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===_r(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Ws(t,!0,n,null,r,t.lastEffect);break;case"together":Ws(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ks(e,t,n){null!==e&&(t.dependencies=e.dependencies);var i=t.expirationTime;if(0!==i&&so(i),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Io(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Io(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gs(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function $s(e,t,n){var i=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return ma(t.type)&&va(),null;case 3:return Er(),da(Aa),da(pa),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Is(t)||(t.effectTag|=4),null;case 5:Lr(t),n=kr(Pr.current);var r=t.type;if(null!==e&&null!=t.stateNode)Qs(e,t,r,i,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!i){if(null===t.stateNode)throw Error(s(166));return null}if(e=kr(Fr.current),Is(t)){i=t.stateNode,r=t.type;var l=t.memoizedProps;switch(i[Sn]=t,i[Nn]=l,r){case"iframe":case"object":case"embed":Kt("load",i);break;case"video":case"audio":for(e=0;e<Xe.length;e++)Kt(Xe[e],i);break;case"source":Kt("error",i);break;case"img":case"image":case"link":Kt("error",i),Kt("load",i);break;case"form":Kt("reset",i),Kt("submit",i);break;case"details":Kt("toggle",i);break;case"input":je(i,l),Kt("invalid",i),dn(n,"onChange");break;case"select":i._wrapperState={wasMultiple:!!l.multiple},Kt("invalid",i),dn(n,"onChange");break;case"textarea":ke(i,l),Kt("invalid",i),dn(n,"onChange")}for(var o in sn(r,l),e=null,l)if(l.hasOwnProperty(o)){var d=l[o];"children"===o?"string"==typeof d?i.textContent!==d&&(e=["children",d]):"number"==typeof d&&i.textContent!==""+d&&(e=["children",""+d]):C.hasOwnProperty(o)&&null!=d&&dn(n,o)}switch(r){case"input":xe(i),Ne(i,l,!0);break;case"textarea":xe(i),Ee(i);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(i.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(o=9===n.nodeType?n:n.ownerDocument,e===on&&(e=Ue(r)),e===on?"script"===r?((e=o.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=o.createElement(r,{is:i.is}):(e=o.createElement(r),"select"===r&&(o=e,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):e=o.createElementNS(e,r),e[Sn]=t,e[Nn]=i,Rs(e,t),t.stateNode=e,o=ln(r,i),r){case"iframe":case"object":case"embed":Kt("load",e),d=i;break;case"video":case"audio":for(d=0;d<Xe.length;d++)Kt(Xe[d],e);d=i;break;case"source":Kt("error",e),d=i;break;case"img":case"image":case"link":Kt("error",e),Kt("load",e),d=i;break;case"form":Kt("reset",e),Kt("submit",e),d=i;break;case"details":Kt("toggle",e),d=i;break;case"input":je(e,i),d=we(e,i),Kt("invalid",e),dn(n,"onChange");break;case"option":d=Fe(e,i);break;case"select":e._wrapperState={wasMultiple:!!i.multiple},d=a({},i,{value:void 0}),Kt("invalid",e),dn(n,"onChange");break;case"textarea":ke(e,i),d=Pe(e,i),Kt("invalid",e),dn(n,"onChange");break;default:d=i}sn(r,d);var c=d;for(l in c)if(c.hasOwnProperty(l)){var u=c[l];"style"===l?an(e,u):"dangerouslySetInnerHTML"===l?null!=(u=u?u.__html:void 0)&&Re(e,u):"children"===l?"string"==typeof u?("textarea"!==r||""!==u)&&Qe(e,u):"number"==typeof u&&Qe(e,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(C.hasOwnProperty(l)?null!=u&&dn(n,l):null!=u&&X(e,l,u,o))}switch(r){case"input":xe(e),Ne(e,i,!1);break;case"textarea":xe(e),Ee(e);break;case"option":null!=i.value&&e.setAttribute("value",""+ge(i.value));break;case"select":e.multiple=!!i.multiple,null!=(n=i.value)?Be(e,!!i.multiple,n,!1):null!=i.defaultValue&&Be(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof d.onClick&&(e.onclick=cn)}gn(r,i)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Hs(0,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(s(166));n=kr(Pr.current),kr(Fr.current),Is(t)?(n=t.stateNode,i=t.memoizedProps,n[Sn]=t,n.nodeValue!==i&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[Sn]=t,t.stateNode=n)}return null;case 13:return da(Ur),i=t.memoizedState,64&t.effectTag?(t.expirationTime=n,t):(n=null!==i,i=!1,null===e?void 0!==t.memoizedProps.fallback&&Is(t):(i=null!==(r=e.memoizedState),n||null===r||null!==(r=e.child.sibling)&&(null!==(l=t.firstEffect)?(t.firstEffect=r,r.nextEffect=l):(t.firstEffect=t.lastEffect=r,r.nextEffect=null),r.effectTag=8)),n&&!i&&!!(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Ur.current?Il===xl&&(Il=bl):(Il!==xl&&Il!==bl||(Il=wl),0!==Tl&&null!==Cl&&(Do(Cl,Nl),Lo(Cl,Tl)))),(n||i)&&(t.effectTag|=4),null);case 4:return Er(),null;case 10:return tr(t),null;case 19:if(da(Ur),null===(i=t.memoizedState))return null;if(r=!!(64&t.effectTag),null===(l=i.rendering)){if(r)Gs(i,!1);else if(Il!==xl||null!==e&&64&e.effectTag)for(l=t.child;null!==l;){if(null!==(e=_r(l))){for(t.effectTag|=64,Gs(i,!1),null!==(r=e.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),null===i.lastEffect&&(t.firstEffect=null),t.lastEffect=i.lastEffect,i=t.child;null!==i;)l=n,(r=i).effectTag&=2,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null,null===(e=r.alternate)?(r.childExpirationTime=0,r.expirationTime=l,r.child=null,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null):(r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,l=e.dependencies,r.dependencies=null===l?null:{expirationTime:l.expirationTime,firstContext:l.firstContext,responders:l.responders}),i=i.sibling;return ca(Ur,1&Ur.current|2),t.child}l=l.sibling}}else{if(!r)if(null!==(e=_r(l))){if(t.effectTag|=64,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Gs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate)return null!==(t=t.lastEffect=i.lastEffect)&&(t.nextEffect=null),null}else 2*Ra()-i.renderingStartTime>i.tailExpiration&&1<n&&(t.effectTag|=64,r=!0,Gs(i,!1),t.expirationTime=t.childExpirationTime=n-1);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(0===i.tailExpiration&&(i.tailExpiration=Ra()+500),n=i.tail,i.rendering=n,i.tail=n.sibling,i.lastEffect=t.lastEffect,i.renderingStartTime=Ra(),n.sibling=null,t=Ur.current,ca(Ur,r?1&t|2:1&t),n):null}throw Error(s(156,t.tag))}function Xs(e){switch(e.tag){case 1:ma(e.type)&&va();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Er(),da(Aa),da(pa),64&(t=e.effectTag))throw Error(s(285));return e.effectTag=-4097&t|64,e;case 5:return Lr(e),null;case 13:return da(Ur),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return da(Ur),null;case 4:return Er(),null;case 10:return tr(e),null;default:return null}}function Js(e,t){return{value:e,source:t,stack:ve(t)}}Rs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qs=function(e,t,n,i,r){var s=e.memoizedProps;if(s!==i){var l,o,d=t.stateNode;switch(kr(Fr.current),e=null,n){case"input":s=we(d,s),i=we(d,i),e=[];break;case"option":s=Fe(d,s),i=Fe(d,i),e=[];break;case"select":s=a({},s,{value:void 0}),i=a({},i,{value:void 0}),e=[];break;case"textarea":s=Pe(d,s),i=Pe(d,i),e=[];break;default:"function"!=typeof s.onClick&&"function"==typeof i.onClick&&(d.onclick=cn)}for(l in sn(n,i),n=null,s)if(!i.hasOwnProperty(l)&&s.hasOwnProperty(l)&&null!=s[l])if("style"===l)for(o in d=s[l])d.hasOwnProperty(o)&&(n||(n={}),n[o]="");else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(C.hasOwnProperty(l)?e||(e=[]):(e=e||[]).push(l,null));for(l in i){var c=i[l];if(d=null!=s?s[l]:void 0,i.hasOwnProperty(l)&&c!==d&&(null!=c||null!=d))if("style"===l)if(d){for(o in d)!d.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&d[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(e||(e=[]),e.push(l,n)),n=c;else"dangerouslySetInnerHTML"===l?(c=c?c.__html:void 0,d=d?d.__html:void 0,null!=c&&d!==c&&(e=e||[]).push(l,c)):"children"===l?d===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(l,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(C.hasOwnProperty(l)?(null!=c&&dn(r,l),e||d===c||(e=[])):(e=e||[]).push(l,c))}n&&(e=e||[]).push("style",n),r=e,(t.updateQueue=r)&&(t.effectTag|=4)}},Hs=function(e,t,n,i){n!==i&&(t.effectTag|=4)};var Zs="function"==typeof WeakSet?WeakSet:Set;function el(e,t){var n=t.source,i=t.stack;null===i&&null!==n&&(i=ve(n)),null!==n&&me(n.type),t=t.value,null!==e&&1===e.tag&&me(e.type)}function tl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(n){yo(e,n)}else t.current=null}function nl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,i=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ga(t.type,n),i),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(s(163))}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,void 0!==i&&i()}n=n.next}while(n!==t)}}function al(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function rl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void al(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Ga(n.type,t.memoizedProps);e.componentDidUpdate(i,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&pr(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}pr(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&gn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&_t(n)))))}throw Error(s(163))}function sl(e,t,n){switch("function"==typeof jo&&jo(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var i=e.next;Va(97<n?97:n,(function(){var e=i;do{var n=e.destroy;if(void 0!==n){var a=t;try{n()}catch(r){yo(a,r)}}e=e.next}while(e!==i)}))}break;case 1:tl(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){yo(e,n)}}(t,n);break;case 5:tl(t);break;case 4:cl(e,t,n)}}function ll(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ll(t)}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function dl(e){e:{for(var t=e.return;null!==t;){if(ol(t)){var n=t;break e}t=t.return}throw Error(s(160))}switch(t=n.stateNode,n.tag){case 5:var i=!1;break;case 3:case 4:t=t.containerInfo,i=!0;break;default:throw Error(s(161))}16&n.effectTag&&(Qe(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ol(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}i?function e(t,n,i){var a=t.tag,r=5===a||6===a;if(r)t=r?t.stateNode:t.stateNode.instance,n?8===i.nodeType?i.parentNode.insertBefore(t,n):i.insertBefore(t,n):(8===i.nodeType?(n=i.parentNode).insertBefore(t,i):(n=i).appendChild(t),null!==(i=i._reactRootContainer)&&void 0!==i||null!==n.onclick||(n.onclick=cn));else if(4!==a&&null!==(t=t.child))for(e(t,n,i),t=t.sibling;null!==t;)e(t,n,i),t=t.sibling}(e,n,t):function e(t,n,i){var a=t.tag,r=5===a||6===a;if(r)t=r?t.stateNode:t.stateNode.instance,n?i.insertBefore(t,n):i.appendChild(t);else if(4!==a&&null!==(t=t.child))for(e(t,n,i),t=t.sibling;null!==t;)e(t,n,i),t=t.sibling}(e,n,t)}function cl(e,t,n){for(var i,a,r=t,l=!1;;){if(!l){l=r.return;e:for(;;){if(null===l)throw Error(s(160));switch(i=l.stateNode,l.tag){case 5:a=!1;break e;case 3:case 4:i=i.containerInfo,a=!0;break e}l=l.return}l=!0}if(5===r.tag||6===r.tag){e:for(var o=e,d=r,c=n,u=d;;)if(sl(o,u,c),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===d)break e;for(;null===u.sibling;){if(null===u.return||u.return===d)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}a?(o=i,d=r.stateNode,8===o.nodeType?o.parentNode.removeChild(d):o.removeChild(d)):i.removeChild(r.stateNode)}else if(4===r.tag){if(null!==r.child){i=r.stateNode.containerInfo,a=!0,r.child.return=r,r=r.child;continue}}else if(sl(e,r,n),null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;4===(r=r.return).tag&&(l=!1)}r.sibling.return=r.return,r=r.sibling}}function ul(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void il(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var i=t.memoizedProps,a=null!==e?e.memoizedProps:i;e=t.type;var r=t.updateQueue;if(t.updateQueue=null,null!==r){for(n[Nn]=i,"input"===e&&"radio"===i.type&&null!=i.name&&Ce(n,i),ln(e,a),t=ln(e,i),a=0;a<r.length;a+=2){var l=r[a],o=r[a+1];"style"===l?an(n,o):"dangerouslySetInnerHTML"===l?Re(n,o):"children"===l?Qe(n,o):X(n,l,o,t)}switch(e){case"input":Se(n,i);break;case"textarea":Te(n,i);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!i.multiple,null!=(e=i.value)?Be(n,!!i.multiple,e,!1):t!==!!i.multiple&&(null!=i.defaultValue?Be(n,!!i.multiple,i.defaultValue,!0):Be(n,!!i.multiple,i.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,_t(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?i=!1:(i=!0,n=t.child,Dl=Ra()),null!==n)e:for(e=n;;){if(5===e.tag)r=e.stateNode,i?"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none":(r=e.stateNode,a=null!=(a=e.memoizedProps.style)&&a.hasOwnProperty("display")?a.display:null,r.style.display=nn("display",a));else if(6===e.tag)e.stateNode.nodeValue=i?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(r=e.child.sibling).return=e,e=r;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void pl(t);case 19:return void pl(t)}throw Error(s(163))}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach((function(t){var i=bo.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))}))}}var Al="function"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=or(n,null)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){Ul||(Ul=!0,_l=i),el(e,t)},n}function fl(e,t,n){(n=or(n,null)).tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var a=t.value;n.payload=function(){return el(e,t),i(a)}}var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){"function"!=typeof i&&(null===Ol?Ol=new Set([this]):Ol.add(this),el(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var ml,vl=Math.ceil,gl=$.ReactCurrentDispatcher,yl=$.ReactCurrentOwner,xl=0,bl=3,wl=4,jl=0,Cl=null,Sl=null,Nl=0,Il=xl,Fl=null,Bl=1073741823,Pl=1073741823,kl=null,Tl=0,El=!1,Dl=0,Ll=null,Ul=!1,_l=null,Ol=null,Ml=!1,Rl=null,Ql=90,Hl=null,Vl=0,zl=null,ql=0;function Wl(){return 48&jl?1073741821-(Ra()/10|0):0!==ql?ql:ql=1073741821-(Ra()/10|0)}function Yl(e,t,n){if(!(2&(t=t.mode)))return 1073741823;var i=Qa();if(!(4&t))return 99===i?1073741823:1073741822;if(16&jl)return Nl;if(null!==n)e=Ka(e,0|n.timeoutMs||5e3,250);else switch(i){case 99:e=1073741823;break;case 98:e=Ka(e,150,100);break;case 97:case 96:e=Ka(e,5e3,250);break;case 95:e=2;break;default:throw Error(s(326))}return null!==Cl&&e===Nl&&--e,e}function Kl(e,t){if(50<Vl)throw Vl=0,zl=null,Error(s(185));if(null!==(e=Gl(e,t))){var n=Qa();1073741823===t?8&jl&&!(48&jl)?Zl(e):(Xl(e),0===jl&&Wa()):Xl(e),!(4&jl)||98!==n&&99!==n||(null===Hl?Hl=new Map([[e,t]]):(void 0===(n=Hl.get(e))||n>t)&&Hl.set(e,t))}}function Gl(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var i=e.return,a=null;if(null===i&&3===e.tag)a=e.stateNode;else for(;null!==i;){if(n=i.alternate,i.childExpirationTime<t&&(i.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===i.return&&3===i.tag){a=i.stateNode;break}i=i.return}return null!==a&&(Cl===a&&(so(t),Il===wl&&Do(a,Nl)),Lo(a,t)),a}function $l(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Eo(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Xl(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=qa(Zl.bind(null,e));else{var t=$l(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var i=Wl();if(i=1073741823===t?99:1===t||2===t?95:0>=(i=10*(1073741821-t)-10*(1073741821-i))?99:250>=i?98:5250>=i?97:95,null!==n){var a=e.callbackPriority;if(e.callbackExpirationTime===t&&a>=i)return;n!==Ea&&Ca(n)}e.callbackExpirationTime=t,e.callbackPriority=i,t=1073741823===t?qa(Zl.bind(null,e)):za(i,Jl.bind(null,e),{timeout:10*(1073741821-t)-Ra()}),e.callbackNode=t}}}function Jl(e,t){if(ql=0,t)return Uo(e,t=Wl()),Xl(e),null;var n=$l(e);if(0!==n){if(t=e.callbackNode,48&jl)throw Error(s(327));if(mo(),e===Cl&&n===Nl||no(e,n),null!==Sl){var i=jl;jl|=16;for(var a=ao();;)try{oo();break}catch(o){io(e,o)}if(er(),jl=i,gl.current=a,1===Il)throw t=Fl,no(e,n),Do(e,n),Xl(e),t;if(null===Sl)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,i=Il,Cl=null,i){case xl:case 1:throw Error(s(345));case 2:Uo(e,2<n?2:n);break;case bl:if(Do(e,n),n===(i=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=po(a)),1073741823===Bl&&10<(a=Dl+500-Ra())){if(El){var r=e.lastPingedTime;if(0===r||r>=n){e.lastPingedTime=n,no(e,n);break}}if(0!==(r=$l(e))&&r!==n)break;if(0!==i&&i!==n){e.lastPingedTime=i;break}e.timeoutHandle=xn(Ao.bind(null,e),a);break}Ao(e);break;case wl:if(Do(e,n),n===(i=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=po(a)),El&&(0===(a=e.lastPingedTime)||a>=n)){e.lastPingedTime=n,no(e,n);break}if(0!==(a=$l(e))&&a!==n)break;if(0!==i&&i!==n){e.lastPingedTime=i;break}if(1073741823!==Pl?i=10*(1073741821-Pl)-Ra():1073741823===Bl?i=0:(i=10*(1073741821-Bl)-5e3,0>(i=(a=Ra())-i)&&(i=0),(n=10*(1073741821-n)-a)<(i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*vl(i/1960))-i)&&(i=n)),10<i){e.timeoutHandle=xn(Ao.bind(null,e),i);break}Ao(e);break;case 5:if(1073741823!==Bl&&null!==kl){r=Bl;var l=kl;if(0>=(i=0|l.busyMinDurationMs)?i=0:(a=0|l.busyDelayMs,i=(r=Ra()-(10*(1073741821-r)-(0|l.timeoutMs||5e3)))<=a?0:a+i-r),10<i){Do(e,n),e.timeoutHandle=xn(Ao.bind(null,e),i);break}}Ao(e);break;default:throw Error(s(329))}if(Xl(e),e.callbackNode===t)return Jl.bind(null,e)}}return null}function Zl(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,48&jl)throw Error(s(327));if(mo(),e===Cl&&t===Nl||no(e,t),null!==Sl){var n=jl;jl|=16;for(var i=ao();;)try{lo();break}catch(a){io(e,a)}if(er(),jl=n,gl.current=i,1===Il)throw n=Fl,no(e,t),Do(e,t),Xl(e),n;if(null!==Sl)throw Error(s(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Cl=null,Ao(e),Xl(e)}return null}function eo(e,t){var n=jl;jl|=1;try{return e(t)}finally{0===(jl=n)&&Wa()}}function to(e,t){var n=jl;jl&=-2,jl|=8;try{return e(t)}finally{0===(jl=n)&&Wa()}}function no(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,bn(n)),null!==Sl)for(n=Sl.return;null!==n;){var i=n;switch(i.tag){case 1:null!=(i=i.type.childContextTypes)&&va();break;case 3:Er(),da(Aa),da(pa);break;case 5:Lr(i);break;case 4:Er();break;case 13:case 19:da(Ur);break;case 10:tr(i)}n=n.return}Cl=e,Sl=Io(e.current,null),Nl=t,Il=xl,Fl=null,Pl=Bl=1073741823,kl=null,Tl=0,El=!1}function io(e,t){for(;;){try{if(er(),Mr.current=ms,qr)for(var n=Hr.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}if(Qr=0,zr=Vr=Hr=null,qr=!1,null===Sl||null===Sl.return)return Il=1,Fl=t,Sl=null;e:{var a=e,r=Sl.return,s=Sl,l=t;if(t=Nl,s.effectTag|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var o=l;if(!(2&s.mode)){var d=s.alternate;d?(s.updateQueue=d.updateQueue,s.memoizedState=d.memoizedState,s.expirationTime=d.expirationTime):(s.updateQueue=null,s.memoizedState=null)}var c=!!(1&Ur.current),u=r;do{var p;if(p=13===u.tag){var A=u.memoizedState;if(null!==A)p=null!==A.dehydrated;else{var h=u.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!c)}}if(p){var f=u.updateQueue;if(null===f){var m=new Set;m.add(o),u.updateQueue=m}else f.add(o);if(!(2&u.mode)){if(u.effectTag|=64,s.effectTag&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var v=or(1073741823,null);v.tag=2,dr(s,v)}s.expirationTime=1073741823;break e}l=void 0,s=t;var g=a.pingCache;if(null===g?(g=a.pingCache=new Al,l=new Set,g.set(o,l)):void 0===(l=g.get(o))&&(l=new Set,g.set(o,l)),!l.has(s)){l.add(s);var y=xo.bind(null,a,o,s);o.then(y,y)}u.effectTag|=4096,u.expirationTime=t;break e}u=u.return}while(null!==u);l=Error((me(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(s))}5!==Il&&(Il=2),l=Js(l,s),u=r;do{switch(u.tag){case 3:o=l,u.effectTag|=4096,u.expirationTime=t,cr(u,hl(u,o,t));break e;case 1:o=l;var x=u.type,b=u.stateNode;if(!(64&u.effectTag||"function"!=typeof x.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Ol&&Ol.has(b)))){u.effectTag|=4096,u.expirationTime=t,cr(u,fl(u,o,t));break e}}u=u.return}while(null!==u)}Sl=uo(Sl)}catch(w){t=w;continue}break}}function ao(){var e=gl.current;return gl.current=ms,null===e?ms:e}function ro(e,t){e<Bl&&2<e&&(Bl=e),null!==t&&e<Pl&&2<e&&(Pl=e,kl=t)}function so(e){e>Tl&&(Tl=e)}function lo(){for(;null!==Sl;)Sl=co(Sl)}function oo(){for(;null!==Sl&&!Da();)Sl=co(Sl)}function co(e){var t=ml(e.alternate,e,Nl);return e.memoizedProps=e.pendingProps,null===t&&(t=uo(e)),yl.current=null,t}function uo(e){Sl=e;do{var t=Sl.alternate;if(e=Sl.return,2048&Sl.effectTag){if(null!==(t=Xs(Sl)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}else{if(t=$s(t,Sl,Nl),1===Nl||1!==Sl.childExpirationTime){for(var n=0,i=Sl.child;null!==i;){var a=i.expirationTime,r=i.childExpirationTime;a>n&&(n=a),r>n&&(n=r),i=i.sibling}Sl.childExpirationTime=n}if(null!==t)return t;null!==e&&!(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Sl.firstEffect),null!==Sl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Sl.firstEffect),e.lastEffect=Sl.lastEffect),1<Sl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Sl:e.firstEffect=Sl,e.lastEffect=Sl))}if(null!==(t=Sl.sibling))return t;Sl=e}while(null!==Sl);return Il===xl&&(Il=5),null}function po(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Ao(e){var t=Qa();return Va(99,ho.bind(null,e,t)),null}function ho(e,t){do{mo()}while(null!==Rl);if(48&jl)throw Error(s(327));var n=e.finishedWork,i=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=po(n);if(e.firstPendingTime=a,i<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:i<=e.firstSuspendedTime&&(e.firstSuspendedTime=i-1),i<=e.lastPingedTime&&(e.lastPingedTime=0),i<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Cl&&(Sl=Cl=null,Nl=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,a=n.firstEffect):a=n:a=n.firstEffect,null!==a){var r=jl;jl|=32,yl.current=null,mn=Yt;var l=hn();if(fn(l)){if("selectionStart"in l)var o={start:l.selectionStart,end:l.selectionEnd};else e:{var d=(o=(o=l.ownerDocument)&&o.defaultView||window).getSelection&&o.getSelection();if(d&&0!==d.rangeCount){o=d.anchorNode;var c=d.anchorOffset,u=d.focusNode;d=d.focusOffset;try{o.nodeType,u.nodeType}catch(N){o=null;break e}var p=0,A=-1,h=-1,f=0,m=0,v=l,g=null;t:for(;;){for(var y;v!==o||0!==c&&3!==v.nodeType||(A=p+c),v!==u||0!==d&&3!==v.nodeType||(h=p+d),3===v.nodeType&&(p+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===l)break t;if(g===o&&++f===c&&(A=p),g===u&&++m===d&&(h=p),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}o=-1===A||-1===h?null:{start:A,end:h}}else o=null}o=o||{start:0,end:0}}else o=null;vn={activeElementDetached:null,focusedElem:l,selectionRange:o},Yt=!1,Ll=a;do{try{fo()}catch(N){if(null===Ll)throw Error(s(330));yo(Ll,N),Ll=Ll.nextEffect}}while(null!==Ll);Ll=a;do{try{for(l=e,o=t;null!==Ll;){var x=Ll.effectTag;if(16&x&&Qe(Ll.stateNode,""),128&x){var b=Ll.alternate;if(null!==b){var w=b.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&x){case 2:dl(Ll),Ll.effectTag&=-3;break;case 6:dl(Ll),Ll.effectTag&=-3,ul(Ll.alternate,Ll);break;case 1024:Ll.effectTag&=-1025;break;case 1028:Ll.effectTag&=-1025,ul(Ll.alternate,Ll);break;case 4:ul(Ll.alternate,Ll);break;case 8:cl(l,c=Ll,o),ll(c)}Ll=Ll.nextEffect}}catch(N){if(null===Ll)throw Error(s(330));yo(Ll,N),Ll=Ll.nextEffect}}while(null!==Ll);if(w=vn,b=hn(),x=w.focusedElem,o=w.selectionRange,b!==x&&x&&x.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(x.ownerDocument.documentElement,x)){null!==o&&fn(x)&&(b=o.start,void 0===(w=o.end)&&(w=b),"selectionStart"in x?(x.selectionStart=b,x.selectionEnd=Math.min(w,x.value.length)):(w=(b=x.ownerDocument||document)&&b.defaultView||window).getSelection&&(w=w.getSelection(),c=x.textContent.length,l=Math.min(o.start,c),o=void 0===o.end?l:Math.min(o.end,c),!w.extend&&l>o&&(c=o,o=l,l=c),c=An(x,l),u=An(x,o),c&&u&&(1!==w.rangeCount||w.anchorNode!==c.node||w.anchorOffset!==c.offset||w.focusNode!==u.node||w.focusOffset!==u.offset)&&((b=b.createRange()).setStart(c.node,c.offset),w.removeAllRanges(),l>o?(w.addRange(b),w.extend(u.node,u.offset)):(b.setEnd(u.node,u.offset),w.addRange(b))))),b=[];for(w=x;w=w.parentNode;)1===w.nodeType&&b.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof x.focus&&x.focus(),x=0;x<b.length;x++)(w=b[x]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Yt=!!mn,vn=mn=null,e.current=n,Ll=a;do{try{for(x=e;null!==Ll;){var j=Ll.effectTag;if(36&j&&rl(x,Ll.alternate,Ll),128&j){b=void 0;var C=Ll.ref;if(null!==C){var S=Ll.stateNode;Ll.tag,b=S,"function"==typeof C?C(b):C.current=b}}Ll=Ll.nextEffect}}catch(N){if(null===Ll)throw Error(s(330));yo(Ll,N),Ll=Ll.nextEffect}}while(null!==Ll);Ll=null,La(),jl=r}else e.current=n;if(Ml)Ml=!1,Rl=e,Ql=t;else for(Ll=a;null!==Ll;)t=Ll.nextEffect,Ll.nextEffect=null,Ll=t;if(0===(t=e.firstPendingTime)&&(Ol=null),1073741823===t?e===zl?Vl++:(Vl=0,zl=e):Vl=0,"function"==typeof wo&&wo(n.stateNode,i),Xl(e),Ul)throw Ul=!1,e=_l,_l=null,e;return!!(8&jl)||Wa(),null}function fo(){for(;null!==Ll;){var e=Ll.effectTag;!!(256&e)&&nl(Ll.alternate,Ll),!(512&e)||Ml||(Ml=!0,za(97,(function(){return mo(),null}))),Ll=Ll.nextEffect}}function mo(){if(90!==Ql){var e=97<Ql?97:Ql;return Ql=90,Va(e,vo)}}function vo(){if(null===Rl)return!1;var e=Rl;if(Rl=null,48&jl)throw Error(s(331));var t=jl;for(jl|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(512&n.effectTag)switch(n.tag){case 0:case 11:case 15:case 22:il(5,n),al(5,n)}}catch(i){if(null===e)throw Error(s(330));yo(e,i)}n=e.nextEffect,e.nextEffect=null,e=n}return jl=t,Wa(),!0}function go(e,t,n){dr(e,t=hl(e,t=Js(n,t),1073741823)),null!==(e=Gl(e,1073741823))&&Xl(e)}function yo(e,t){if(3===e.tag)go(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){go(n,e,t);break}if(1===n.tag){var i=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===Ol||!Ol.has(i))){dr(n,e=fl(n,e=Js(t,e),1073741823)),null!==(n=Gl(n,1073741823))&&Xl(n);break}}n=n.return}}function xo(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),Cl===e&&Nl===n?Il===wl||Il===bl&&1073741823===Bl&&Ra()-Dl<500?no(e,Nl):El=!0:Eo(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Xl(e)))}function bo(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=Yl(t=Wl(),e,null)),null!==(e=Gl(e,t))&&Xl(e)}ml=function(e,t,n){var i=t.expirationTime;if(null!==e){var a=t.pendingProps;if(e.memoizedProps!==a||Aa.current)Ps=!0;else{if(i<n){switch(Ps=!1,t.tag){case 3:Ms(t),Fs();break;case 5:if(Dr(t),4&t.mode&&1!==n&&a.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:ma(t.type)&&xa(t);break;case 4:Tr(t,t.stateNode.containerInfo);break;case 10:i=t.memoizedProps.value,a=t.type._context,ca($a,a._currentValue),a._currentValue=i;break;case 13:if(null!==t.memoizedState)return 0!==(i=t.child.childExpirationTime)&&i>=n?zs(e,t,n):(ca(Ur,1&Ur.current),null!==(t=Ks(e,t,n))?t.sibling:null);ca(Ur,1&Ur.current);break;case 19:if(i=t.childExpirationTime>=n,64&e.effectTag){if(i)return Ys(e,t,n);t.effectTag|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null),ca(Ur,Ur.current),!i)return null}return Ks(e,t,n)}Ps=!1}}else Ps=!1;switch(t.expirationTime=0,t.tag){case 2:if(i=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=fa(t,pa.current),ir(t,n),a=Kr(null,t,i,e,a,n),t.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ma(i)){var r=!0;xa(t)}else r=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,sr(t);var l=i.getDerivedStateFromProps;"function"==typeof l&&fr(t,i,l,e),a.updater=mr,t.stateNode=a,a._reactInternalFiber=t,xr(t,i,e,n),t=Os(null,t,i,!0,r,n)}else t.tag=0,ks(null,t,a,n),t=t.child;return t;case 16:e:{if(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a),1!==a._status)throw a._result;switch(a=a._result,t.type=a,r=t.tag=function(e){if("function"==typeof e)return No(e)?1:0;if(null!=e){if((e=e.$$typeof)===oe)return 11;if(e===ue)return 14}return 2}(a),e=Ga(a,e),r){case 0:t=Us(null,t,a,e,n);break e;case 1:t=_s(null,t,a,e,n);break e;case 11:t=Ts(null,t,a,e,n);break e;case 14:t=Es(null,t,a,Ga(a.type,e),i,n);break e}throw Error(s(306,a,""))}return t;case 0:return i=t.type,a=t.pendingProps,Us(e,t,i,a=t.elementType===i?a:Ga(i,a),n);case 1:return i=t.type,a=t.pendingProps,_s(e,t,i,a=t.elementType===i?a:Ga(i,a),n);case 3:if(Ms(t),i=t.updateQueue,null===e||null===i)throw Error(s(282));if(i=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,lr(e,t),ur(t,i,null,n),(i=t.memoizedState.element)===a)Fs(),t=Ks(e,t,n);else{if((a=t.stateNode.hydrate)&&(bs=wn(t.stateNode.containerInfo.firstChild),xs=t,a=ws=!0),a)for(n=Nr(t,null,i,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else ks(e,t,i,n),Fs();t=t.child}return t;case 5:return Dr(t),null===e&&Ss(t),i=t.type,a=t.pendingProps,r=null!==e?e.memoizedProps:null,l=a.children,yn(i,a)?l=null:null!==r&&yn(i,r)&&(t.effectTag|=16),Ls(e,t),4&t.mode&&1!==n&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ks(e,t,l,n),t=t.child),t;case 6:return null===e&&Ss(t),null;case 13:return zs(e,t,n);case 4:return Tr(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Sr(t,null,i,n):ks(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,Ts(e,t,i,a=t.elementType===i?a:Ga(i,a),n);case 7:return ks(e,t,t.pendingProps,n),t.child;case 8:case 12:return ks(e,t,t.pendingProps.children,n),t.child;case 10:e:{i=t.type._context,a=t.pendingProps,l=t.memoizedProps,r=a.value;var o=t.type._context;if(ca($a,o._currentValue),o._currentValue=r,null!==l)if(o=l.value,0==(r=Oi(o,r)?0:0|("function"==typeof i._calculateChangedBits?i._calculateChangedBits(o,r):1073741823))){if(l.children===a.children&&!Aa.current){t=Ks(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var d=o.dependencies;if(null!==d){l=o.child;for(var c=d.firstContext;null!==c;){if(c.context===i&&0!=(c.observedBits&r)){1===o.tag&&((c=or(n,null)).tag=2,dr(o,c)),o.expirationTime<n&&(o.expirationTime=n),null!==(c=o.alternate)&&c.expirationTime<n&&(c.expirationTime=n),nr(o.return,n),d.expirationTime<n&&(d.expirationTime=n);break}c=c.next}}else l=10===o.tag&&o.type===t.type?null:o.child;if(null!==l)l.return=o;else for(l=o;null!==l;){if(l===t){l=null;break}if(null!==(o=l.sibling)){o.return=l.return,l=o;break}l=l.return}o=l}ks(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=(r=t.pendingProps).children,ir(t,n),i=i(a=ar(a,r.unstable_observedBits)),t.effectTag|=1,ks(e,t,i,n),t.child;case 14:return r=Ga(a=t.type,t.pendingProps),Es(e,t,a,r=Ga(a.type,r),i,n);case 15:return Ds(e,t,t.type,t.pendingProps,i,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ga(i,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,ma(i)?(e=!0,xa(t)):e=!1,ir(t,n),gr(t,i,a),xr(t,i,a,n),Os(null,t,i,!0,e,n);case 19:return Ys(e,t,n)}throw Error(s(156,t.tag))};var wo=null,jo=null;function Co(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function So(e,t,n,i){return new Co(e,t,n,i)}function No(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Io(e,t){var n=e.alternate;return null===n?((n=So(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fo(e,t,n,i,a,r){var l=2;if(i=e,"function"==typeof e)No(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case ne:return Bo(n.children,a,r,t);case le:l=8,a|=7;break;case ie:l=8,a|=1;break;case ae:return(e=So(12,n,t,8|a)).elementType=ae,e.type=ae,e.expirationTime=r,e;case de:return(e=So(13,n,t,a)).type=de,e.elementType=de,e.expirationTime=r,e;case ce:return(e=So(19,n,t,a)).elementType=ce,e.expirationTime=r,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case re:l=10;break e;case se:l=9;break e;case oe:l=11;break e;case ue:l=14;break e;case pe:l=16,i=null;break e;case Ae:l=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=So(l,n,t,a)).elementType=e,t.type=i,t.expirationTime=r,t}function Bo(e,t,n,i){return(e=So(7,e,i,t)).expirationTime=n,e}function Po(e,t,n){return(e=So(6,e,null,t)).expirationTime=n,e}function ko(e,t,n){return(t=So(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function To(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Eo(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Do(e,t){var n=e.firstSuspendedTime,i=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(i>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Lo(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Uo(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function _o(e,t,n,i){var a=t.current,r=Wl(),l=Ar.suspense;r=Yl(r,a,l);e:if(n){t:{if(et(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(s(170));var o=n;do{switch(o.tag){case 3:o=o.stateNode.context;break t;case 1:if(ma(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break t}}o=o.return}while(null!==o);throw Error(s(171))}if(1===n.tag){var d=n.type;if(ma(d)){n=ya(n,d,o);break e}}n=o}else n=ua;return null===t.context?t.context=n:t.pendingContext=n,(t=or(r,l)).payload={element:e},null!==(i=void 0===i?null:i)&&(t.callback=i),dr(a,t),Kl(a,r),r}function Oo(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Mo(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Ro(e,t){Mo(e,t),(e=e.alternate)&&Mo(e,t)}function Qo(e,t,n){var i,a,r=new To(e,t,n=null!=n&&!0===n.hydrate),s=So(3,null,null,2===t?7:1===t?3:0);r.current=s,s.stateNode=r,sr(s),e[In]=r.current,n&&0!==t&&(i=9===e.nodeType?e:e.ownerDocument,a=Ze(i),It.forEach((function(e){ft(e,i,a)})),Ft.forEach((function(e){ft(e,i,a)}))),this._internalRoot=r}function Ho(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Vo(e,t,n,i,a){var r=n._reactRootContainer;if(r){var s=r._internalRoot;if("function"==typeof a){var l=a;a=function(){var e=Oo(s);l.call(e)}}_o(t,s,e,a)}else{if(r=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Qo(e,0,t?{hydrate:!0}:void 0)}(n,i),s=r._internalRoot,"function"==typeof a){var o=a;a=function(){var e=Oo(s);o.call(e)}}to((function(){_o(t,s,e,a)}))}return Oo(s)}function zo(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}function qo(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ho(t))throw Error(s(200));return zo(e,t,null,n)}Qo.prototype.render=function(e){_o(e,this._internalRoot,null,null)},Qo.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;_o(null,e,null,(function(){t[In]=null}))},mt=function(e){if(13===e.tag){var t=Ka(Wl(),150,100);Kl(e,t),Ro(e,t)}},vt=function(e){13===e.tag&&(Kl(e,3),Ro(e,3))},gt=function(e){if(13===e.tag){var t=Wl();Kl(e,t=Yl(t,e,null)),Ro(e,t)}},F=function(e,t,n){switch(t){case"input":if(Se(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=kn(i);if(!a)throw Error(s(90));be(i),Se(i,a)}}}break;case"textarea":Te(e,n);break;case"select":null!=(t=n.value)&&Be(e,!!n.multiple,t,!1)}},D=eo,L=function(e,t,n,i,a){var r=jl;jl|=4;try{return Va(98,e.bind(null,t,n,i,a))}finally{0===(jl=r)&&Wa()}},U=function(){!(49&jl)&&(function(){if(null!==Hl){var e=Hl;Hl=null,e.forEach((function(e,t){Uo(t,e),Xl(t)})),Wa()}}(),mo())},_=function(e,t){var n=jl;jl|=2;try{return e(t)}finally{0===(jl=n)&&Wa()}};var Wo,Yo,Ko={Events:[Bn,Pn,kn,N,j,On,function(e){rt(e,_n)},T,E,Jt,ot,mo,{current:!1}]};Yo=(Wo={findFiberByHostInstance:Fn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);wo=function(e){try{t.onCommitFiberRoot(n,e,void 0,!(64&~e.current.effectTag))}catch(i){}},jo=function(e){try{t.onCommitFiberUnmount(n,e)}catch(i){}}}catch(i){}}(a({},Wo,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=it(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Yo?Yo(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ko,t.createPortal=qo,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return null===(e=it(t))?null:e.stateNode},t.flushSync=function(e,t){if(48&jl)throw Error(s(187));var n=jl;jl|=1;try{return Va(99,e.bind(null,t))}finally{jl=n,Wa()}},t.hydrate=function(e,t,n){if(!Ho(t))throw Error(s(200));return Vo(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ho(t))throw Error(s(200));return Vo(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ho(e))throw Error(s(40));return!!e._reactRootContainer&&(to((function(){Vo(null,null,e,!1,(function(){e._reactRootContainer=null,e[In]=null}))})),!0)},t.unstable_batchedUpdates=eo,t.unstable_createPortal=function(e,t){return qo(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Ho(n))throw Error(s(200));if(null==e||void 0===e._reactInternalFiber)throw Error(s(38));return Vo(e,t,n,!1,i)},t.version="16.14.0"},function(e,t,n){e.exports=n(35)},function(e,t,n){
|
||
/** @license React v0.19.1
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
var i,a,r,s,l;if("undefined"==typeof window||"function"!=typeof MessageChannel){var o=null,d=null,c=function(){if(null!==o)try{var e=t.unstable_now();o(!0,e),o=null}catch(n){throw setTimeout(c,0),n}},u=Date.now();t.unstable_now=function(){return Date.now()-u},i=function(e){null!==o?setTimeout(i,0,e):(o=e,setTimeout(c,0))},a=function(e,t){d=setTimeout(e,t)},r=function(){clearTimeout(d)},s=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,A=window.Date,h=window.setTimeout,f=window.clearTimeout;if("undefined"!=typeof console&&(window.cancelAnimationFrame,window.requestAnimationFrame),"object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var m=A.now();t.unstable_now=function(){return A.now()-m}}var v=!1,g=null,y=-1,x=5,b=0;s=function(){return t.unstable_now()>=b},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e||(x=0<e?Math.floor(1e3/e):5)};var w=new MessageChannel,j=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();b=e+x;try{g(!0,e)?j.postMessage(null):(v=!1,g=null)}catch(n){throw j.postMessage(null),n}}else v=!1},i=function(e){g=e,v||(v=!0,j.postMessage(null))},a=function(e,n){y=h((function(){e(t.unstable_now())}),n)},r=function(){f(y),y=-1}}function C(e,t){var n=e.length;e.push(t);e:for(;;){var i=n-1>>>1,a=e[i];if(!(void 0!==a&&0<I(a,t)))break e;e[i]=t,e[n]=a,n=i}}function S(e){return void 0===(e=e[0])?null:e}function N(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,a=e.length;i<a;){var r=2*(i+1)-1,s=e[r],l=r+1,o=e[l];if(void 0!==s&&0>I(s,n))void 0!==o&&0>I(o,s)?(e[i]=o,e[l]=n,i=l):(e[i]=s,e[r]=n,i=r);else{if(!(void 0!==o&&0>I(o,n)))break e;e[i]=o,e[l]=n,i=l}}}return t}return null}function I(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var F=[],B=[],P=1,k=null,T=3,E=!1,D=!1,L=!1;function U(e){for(var t=S(B);null!==t;){if(null===t.callback)N(B);else{if(!(t.startTime<=e))break;N(B),t.sortIndex=t.expirationTime,C(F,t)}t=S(B)}}function _(e){if(L=!1,U(e),!D)if(null!==S(F))D=!0,i(O);else{var t=S(B);null!==t&&a(_,t.startTime-e)}}function O(e,n){D=!1,L&&(L=!1,r()),E=!0;var i=T;try{for(U(n),k=S(F);null!==k&&(!(k.expirationTime>n)||e&&!s());){var l=k.callback;if(null!==l){k.callback=null,T=k.priorityLevel;var o=l(k.expirationTime<=n);n=t.unstable_now(),"function"==typeof o?k.callback=o:k===S(F)&&N(F),U(n)}else N(F);k=S(F)}if(null!==k)var d=!0;else{var c=S(B);null!==c&&a(_,c.startTime-n),d=!1}return d}finally{k=null,T=i,E=!1}}function M(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var R=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||E||(D=!0,i(O))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return S(F)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=R,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,s){var l=t.unstable_now();if("object"==typeof s&&null!==s){var o=s.delay;o="number"==typeof o&&0<o?l+o:l,s="number"==typeof s.timeout?s.timeout:M(e)}else s=M(e),o=l;return e={id:P++,callback:n,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>l?(e.sortIndex=o,C(B,e),null===S(F)&&e===S(B)&&(L?r():L=!0,a(_,o-l))):(e.sortIndex=s,C(F,e),D||E||(D=!0,i(O))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();U(e);var n=S(F);return n!==k&&null!==k&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<k.expirationTime||s()},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,a=(i=n(37))&&i.__esModule?i:{default:i},r=n(51),s=a.default[a.default.length-1],l=(0,r.createReactPlayer)(a.default,s);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(0),a=n(1),r=n(2);function s(e){return(s="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)}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var r=i?Object.getOwnPropertyDescriptor(e,a):null;r&&(r.get||r.set)?Object.defineProperty(n,a,r):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}var d=[{key:"youtube",name:"YouTube",canPlay:r.canPlay.youtube,lazyPlayer:(0,i.lazy)((function(){return Promise.resolve().then((function(){return o(n(39))}))}))},{key:"soundcloud",name:"SoundCloud",canPlay:r.canPlay.soundcloud,lazyPlayer:(0,i.lazy)((function(){return Promise.resolve().then((function(){return o(n(40))}))}))},{key:"vimeo",name:"Vimeo",canPlay:r.canPlay.vimeo,lazyPlayer:(0,i.lazy)((function(){return Promise.resolve().then((function(){return o(n(41))}))}))},{key:"facebook",name:"Facebook",canPlay:r.canPlay.facebook,lazyPlayer:(0,i.lazy)((function(){return Promise.resolve().then((function(){return o(n(42))}))}))},{key:"streamable",name:"Streamable",canPlay:r.canPlay.streamable,lazyPlayer:(0,i.lazy)((function(){return Promise.resolve().then((function(){return o(n(43))}))}))},{key:"wistia",name:"Wistia",canPlay:r.canPlay.wistia,lazyPlayer:(0,i.lazy)((function(){return Promise.resolve().then((function(){return o(n(44))}))}))},{key:"twitch",name:"Twitch",canPlay:r.canPlay.twitch,lazyPlayer:(0,i.lazy)((function(){return Promise.resolve().then((function(){return o(n(45))}))}))},{key:"dailymotion",name:"DailyMotion",canPlay:r.canPlay.dailymotion,lazyPlayer:(0,i.lazy)((function(){return Promise.resolve().then((function(){return o(n(46))}))}))},{key:"mixcloud",name:"Mixcloud",canPlay:r.canPlay.mixcloud,lazyPlayer:(0,i.lazy)((function(){return Promise.resolve().then((function(){return o(n(47))}))}))},{key:"vidyard",name:"Vidyard",canPlay:r.canPlay.vidyard,lazyPlayer:(0,i.lazy)((function(){return Promise.resolve().then((function(){return o(n(48))}))}))},{key:"kaltura",name:"Kaltura",canPlay:r.canPlay.kaltura,lazyPlayer:(0,i.lazy)((function(){return Promise.resolve().then((function(){return o(n(49))}))}))},{key:"file",name:"FilePlayer",canPlay:r.canPlay.file,canEnablePIP:function(e){return r.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,a.supportsWebKitPresentationMode)())&&!r.AUDIO_EXTENSIONS.test(e)},lazyPlayer:(0,i.lazy)((function(){return Promise.resolve().then((function(){return o(n(50))}))}))}];t.default=d},function(e,t){function n(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function i(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,t,a){var r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");"function"==typeof t&&(a=t,t={}),t=t||{},a=a||function(){},s.type=t.type||"text/javascript",s.charset=t.charset||"utf8",s.async=!("async"in t)||!!t.async,s.src=e,t.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(s,t.attrs),t.text&&(s.text=""+t.text),("onload"in s?n:i)(s,a),s.onload||n(s,a),r.appendChild(s)}},function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=n(1),s=n(2);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,a=!1,r=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(o){a=!0,r=o}finally{try{i||null==l.return||l.return()}finally{if(a)throw r}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,w=/youtube-nocookie\.com/,j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(i,e);var t,n=f(i);function i(){var e;p(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return y(v(e=n.call.apply(n,[this].concat(a))),"callPlayer",r.callPlayer),y(v(e),"parsePlaylist",(function(t){return t instanceof Array?{listType:"playlist",playlist:t.map(e.getID).join(",")}:x.test(t)?{listType:"playlist",list:c(t.match(x),2)[1].replace(/^UC/,"UU")}:b.test(t)?{listType:"user_uploads",list:c(t.match(b),2)[1]}:{}})),y(v(e),"onStateChange",(function(t){var n=t.data,i=e.props,a=i.onPlay,r=i.onPause,s=i.onBuffer,l=i.onBufferEnd,o=i.onEnded,d=i.onReady,c=i.loop,u=i.config,p=u.playerVars,A=u.onUnstarted,h=window.YT.PlayerState,f=h.UNSTARTED,m=h.PLAYING,v=h.PAUSED,g=h.BUFFERING,y=h.ENDED,x=h.CUED;if(n===f&&A(),n===m&&(a(),l()),n===v&&r(),n===g&&s(),n===y){var b=!!e.callPlayer("getPlaylist");c&&!b&&(p.start?e.seekTo(p.start):e.play()),o()}n===x&&d()})),y(v(e),"mute",(function(){e.callPlayer("mute")})),y(v(e),"unmute",(function(){e.callPlayer("unMute")})),y(v(e),"ref",(function(t){e.container=t})),e}return(t=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"getID",value:function(e){return!e||e instanceof Array||x.test(e)?null:e.match(s.MATCH_URL_YOUTUBE)[1]}},{key:"load",value:function(e,t){var n=this,i=this.props,a=i.playing,s=i.muted,l=i.playsinline,o=i.controls,c=i.loop,u=i.config,p=i.onError,A=u.playerVars,h=u.embedOptions,f=this.getID(e);if(t)return x.test(e)||b.test(e)||e instanceof Array?void this.player.loadPlaylist(this.parsePlaylist(e)):void this.player.cueVideoById({videoId:f,startSeconds:(0,r.parseStartTime)(e)||A.start,endSeconds:(0,r.parseEndTime)(e)||A.end});(0,r.getSDK)("https://www.youtube.com/iframe_api","YT","onYouTubeIframeAPIReady",(function(e){return e.loaded})).then((function(t){n.container&&(n.player=new t.Player(n.container,d({width:"100%",height:"100%",videoId:f,playerVars:d(d({autoplay:a?1:0,mute:s?1:0,controls:o?1:0,start:(0,r.parseStartTime)(e),end:(0,r.parseEndTime)(e),origin:window.location.origin,playsinline:l?1:0},n.parsePlaylist(e)),A),events:{onReady:function(){c&&n.player.setLoop(!0),n.props.onReady()},onStateChange:n.onStateChange,onError:function(e){return p(e.data)}},host:w.test(e)?"https://www.youtube-nocookie.com":void 0},h)))}),p),h.events}},{key:"play",value:function(){this.callPlayer("playVideo")}},{key:"pause",value:function(){this.callPlayer("pauseVideo")}},{key:"stop",value:function(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}},{key:"seekTo",value:function(e){this.callPlayer("seekTo",e),this.props.playing||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackRate",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return a.default.createElement("div",{style:e},a.default.createElement("div",{ref:this.ref}))}}])&&A(i.prototype,t),i}(a.Component);t.default=j,y(j,"displayName","YouTube"),y(j,"canPlay",s.canPlay.youtube)},function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=n(1),s=n(2);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(i,e);var t,n=A(i);function i(){var e;c(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return v(f(e=n.call.apply(n,[this].concat(a))),"callPlayer",r.callPlayer),v(f(e),"duration",null),v(f(e),"currentTime",null),v(f(e),"fractionLoaded",null),v(f(e),"mute",(function(){e.setVolume(0)})),v(f(e),"unmute",(function(){null!==e.props.volume&&e.setVolume(e.props.volume)})),v(f(e),"ref",(function(t){e.iframe=t})),e}return(t=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e,t){var n=this;(0,r.getSDK)("https://w.soundcloud.com/player/api.js","SC").then((function(i){if(n.iframe){var a=i.Widget.Events,r=a.PLAY,s=a.PLAY_PROGRESS,l=a.PAUSE,o=a.FINISH,c=a.ERROR;t||(n.player=i.Widget(n.iframe),n.player.bind(r,n.props.onPlay),n.player.bind(l,(function(){n.duration-n.currentTime<.05||n.props.onPause()})),n.player.bind(s,(function(e){n.currentTime=e.currentPosition/1e3,n.fractionLoaded=e.loadedProgress})),n.player.bind(o,(function(){return n.props.onEnded()})),n.player.bind(c,(function(e){return n.props.onError(e)}))),n.player.load(e,d(d({},n.props.config.options),{},{callback:function(){n.player.getDuration((function(e){n.duration=e/1e3,n.props.onReady()}))}}))}}))}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seekTo",1e3*e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.fractionLoaded*this.duration}},{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return a.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),style:e,frameBorder:0,allow:"autoplay"})}}])&&u(i.prototype,t),i}(a.Component);t.default=g,v(g,"displayName","SoundCloud"),v(g,"canPlay",s.canPlay.soundcloud),v(g,"loopOnEnded",!0)},function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=n(1),s=n(2);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=f(e);if(t){var a=f(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(i,e);var t,n=p(i);function i(){var e;d(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return m(h(e=n.call.apply(n,[this].concat(a))),"callPlayer",r.callPlayer),m(h(e),"duration",null),m(h(e),"currentTime",null),m(h(e),"secondsLoaded",null),m(h(e),"mute",(function(){e.setVolume(0)})),m(h(e),"unmute",(function(){null!==e.props.volume&&e.setVolume(e.props.volume)})),m(h(e),"ref",(function(t){e.container=t})),e}return(t=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;this.duration=null,(0,r.getSDK)("https://player.vimeo.com/api/player.js","Vimeo").then((function(n){t.container&&(t.player=new n.Player(t.container,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({url:e,autoplay:t.props.playing,muted:t.props.muted,loop:t.props.loop,playsinline:t.props.playsinline,controls:t.props.controls},t.props.config.playerOptions)),t.player.ready().then((function(){var e=t.container.querySelector("iframe");e.style.width="100%",e.style.height="100%"})).catch(t.props.onError),t.player.on("loaded",(function(){t.props.onReady(),t.refreshDuration()})),t.player.on("play",(function(){t.props.onPlay(),t.refreshDuration()})),t.player.on("pause",t.props.onPause),t.player.on("seeked",(function(e){return t.props.onSeek(e.seconds)})),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",(function(e){var n=e.seconds;t.currentTime=n})),t.player.on("progress",(function(e){var n=e.seconds;t.secondsLoaded=n})),t.player.on("bufferstart",t.props.onBuffer),t.player.on("bufferend",t.props.onBufferEnd))}),this.props.onError)}},{key:"refreshDuration",value:function(){var e=this;this.player.getDuration().then((function(t){e.duration=t}))}},{key:"play",value:function(){var e=this.callPlayer("play");e&&e.catch(this.props.onError)}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("unload")}},{key:"seekTo",value:function(e){this.callPlayer("setCurrentTime",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackRate",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var e={width:"100%",height:"100%",overflow:"hidden",display:this.props.display};return a.default.createElement("div",{key:this.props.url,ref:this.ref,style:e})}}])&&c(i.prototype,t),i}(a.Component);t.default=v,m(v,"displayName","Vimeo"),m(v,"canPlay",s.canPlay.vimeo),m(v,"forceLoad",!0)},function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=n(1),s=n(2);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=f(e);if(t){var a=f(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v="https://connect.facebook.net/en_US/sdk.js",g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(i,e);var t,n=p(i);function i(){var e;d(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return m(h(e=n.call.apply(n,[this].concat(a))),"callPlayer",r.callPlayer),m(h(e),"playerID",e.props.config.playerId||"".concat("facebook-player-").concat((0,r.randomString)())),m(h(e),"mute",(function(){e.callPlayer("mute")})),m(h(e),"unmute",(function(){e.callPlayer("unmute")})),e}return(t=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e,t){var n=this;t?(0,r.getSDK)(v,"FB","fbAsyncInit").then((function(e){return e.XFBML.parse()})):(0,r.getSDK)(v,"FB","fbAsyncInit").then((function(e){e.init({appId:n.props.config.appId,xfbml:!0,version:n.props.config.version}),e.Event.subscribe("xfbml.render",(function(e){n.props.onLoaded()})),e.Event.subscribe("xfbml.ready",(function(e){"video"===e.type&&e.id===n.playerID&&(n.player=e.instance,n.player.subscribe("startedPlaying",n.props.onPlay),n.player.subscribe("paused",n.props.onPause),n.player.subscribe("finishedPlaying",n.props.onEnded),n.player.subscribe("startedBuffering",n.props.onBuffer),n.player.subscribe("finishedBuffering",n.props.onBufferEnd),n.player.subscribe("error",n.props.onError),n.props.muted?n.callPlayer("mute"):n.callPlayer("unmute"),n.props.onReady(),document.getElementById(n.playerID).querySelector("iframe").style.visibility="visible")}))}))}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentPosition")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props.config.attributes;return a.default.createElement("div",o({style:{width:"100%",height:"100%"},id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false"},e))}}])&&c(i.prototype,t),i}(a.Component);t.default=g,m(g,"displayName","Facebook"),m(g,"canPlay",s.canPlay.facebook),m(g,"loopOnEnded",!0)},function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=n(1),s=n(2);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=h(e);if(t){var a=h(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?A(e):t}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(i,e);var t,n=u(i);function i(){var e;o(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return f(A(e=n.call.apply(n,[this].concat(a))),"callPlayer",r.callPlayer),f(A(e),"duration",null),f(A(e),"currentTime",null),f(A(e),"secondsLoaded",null),f(A(e),"mute",(function(){e.callPlayer("mute")})),f(A(e),"unmute",(function(){e.callPlayer("unmute")})),f(A(e),"ref",(function(t){e.iframe=t})),e}return(t=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;(0,r.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then((function(e){t.iframe&&(t.player=new e.Player(t.iframe),t.player.setLoop(t.props.loop),t.player.on("ready",t.props.onReady),t.player.on("play",t.props.onPlay),t.player.on("pause",t.props.onPause),t.player.on("seeked",t.props.onSeek),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",(function(e){var n=e.duration,i=e.seconds;t.duration=n,t.currentTime=i})),t.player.on("buffered",(function(e){var n=e.percent;t.duration&&(t.secondsLoaded=t.duration*n)})),t.props.muted&&t.player.mute())}),this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("setCurrentTime",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var e=this.props.url.match(s.MATCH_URL_STREAMABLE)[1];return a.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat(e),frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allowFullScreen:!0})}}])&&d(i.prototype,t),i}(a.Component);t.default=m,f(m,"displayName","Streamable"),f(m,"canPlay",s.canPlay.streamable)},function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=n(1),s=n(2);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(i,e);var t,n=A(i);function i(){var e;c(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return v(f(e=n.call.apply(n,[this].concat(a))),"callPlayer",r.callPlayer),v(f(e),"playerID",e.props.config.playerId||"".concat("wistia-player-").concat((0,r.randomString)())),v(f(e),"onPlay",(function(){var t;return(t=e.props).onPlay.apply(t,arguments)})),v(f(e),"onPause",(function(){var t;return(t=e.props).onPause.apply(t,arguments)})),v(f(e),"onSeek",(function(){var t;return(t=e.props).onSeek.apply(t,arguments)})),v(f(e),"onEnded",(function(){var t;return(t=e.props).onEnded.apply(t,arguments)})),v(f(e),"mute",(function(){e.callPlayer("mute")})),v(f(e),"unmute",(function(){e.callPlayer("unmute")})),e}return(t=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this,n=this.props,i=n.playing,a=n.muted,s=n.controls,l=n.onReady,o=n.config,c=n.onError;(0,r.getSDK)("https://fast.wistia.com/assets/external/E-v1.js","Wistia").then((function(e){o.customControls&&o.customControls.forEach((function(t){return e.defineControl(t)})),window._wq=window._wq||[],window._wq.push({id:t.playerID,options:d({autoPlay:i,silentAutoPlay:"allow",muted:a,controlsVisibleOnLoad:s,fullscreenButton:s,playbar:s,playbackRateControl:s,qualityControl:s,volumeControl:s,settingsControl:s,smallPlayButton:s},o.options),onReady:function(e){t.player=e,t.unbind(),t.player.bind("play",t.onPlay),t.player.bind("pause",t.onPause),t.player.bind("seek",t.onSeek),t.player.bind("end",t.onEnded),l()}})}),c)}},{key:"unbind",value:function(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.unbind(),this.callPlayer("remove")}},{key:"seekTo",value:function(e){this.callPlayer("time",e)}},{key:"setVolume",value:function(e){this.callPlayer("volume",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("playbackRate",e)}},{key:"getDuration",value:function(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props.url,t=e&&e.match(s.MATCH_URL_WISTIA)[1],n="wistia_embed wistia_async_".concat(t);return a.default.createElement("div",{id:this.playerID,key:t,className:n,style:{width:"100%",height:"100%"}})}}])&&u(i.prototype,t),i}(a.Component);t.default=g,v(g,"displayName","Wistia"),v(g,"canPlay",s.canPlay.wistia),v(g,"loopOnEnded",!0)},function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=n(1),s=n(2);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=f(e);if(t){var a=f(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(i,e);var t,n=p(i);function i(){var e;d(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return m(h(e=n.call.apply(n,[this].concat(a))),"callPlayer",r.callPlayer),m(h(e),"playerID",e.props.config.playerId||"".concat("twitch-player-").concat((0,r.randomString)())),m(h(e),"mute",(function(){e.callPlayer("setMuted",!0)})),m(h(e),"unmute",(function(){e.callPlayer("setMuted",!1)})),e}return(t=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e,t){var n=this,i=this.props,a=i.playsinline,l=i.onError,d=i.config,c=i.controls,u=s.MATCH_URL_TWITCH_CHANNEL.test(e),p=u?e.match(s.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(s.MATCH_URL_TWITCH_VIDEO)[1];t?u?this.player.setChannel(p):this.player.setVideo("v"+p):(0,r.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then((function(t){n.player=new t.Player(n.playerID,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({video:u?"":p,channel:u?p:"",height:"100%",width:"100%",playsinline:a,autoplay:n.props.playing,muted:n.props.muted,controls:!!u||c,time:(0,r.parseStartTime)(e)},d.options));var i=t.Player,s=i.READY,l=i.PLAYING,A=i.PAUSE,h=i.ENDED,f=i.ONLINE,v=i.OFFLINE;n.player.addEventListener(s,n.props.onReady),n.player.addEventListener(l,n.props.onPlay),n.player.addEventListener(A,n.props.onPause),n.player.addEventListener(h,n.props.onEnded),n.player.addEventListener(f,n.props.onLoaded),n.player.addEventListener(v,n.props.onLoaded)}),l)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("pause")}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){return a.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}])&&c(i.prototype,t),i}(a.Component);t.default=v,m(v,"displayName","Twitch"),m(v,"canPlay",s.canPlay.twitch),m(v,"loopOnEnded",!0)},function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=n(1),s=n(2);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,a=!1,r=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(o){a=!0,r=o}finally{try{i||null==l.return||l.return()}finally{if(a)throw r}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(i,e);var t,n=f(i);function i(){var e;p(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return y(v(e=n.call.apply(n,[this].concat(a))),"callPlayer",r.callPlayer),y(v(e),"onDurationChange",(function(){var t=e.getDuration();e.props.onDuration(t)})),y(v(e),"mute",(function(){e.callPlayer("setMuted",!0)})),y(v(e),"unmute",(function(){e.callPlayer("setMuted",!1)})),y(v(e),"ref",(function(t){e.container=t})),e}return(t=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this,n=this.props,i=n.controls,a=n.config,l=n.onError,o=n.playing,u=c(e.match(s.MATCH_URL_DAILYMOTION),2)[1];this.player?this.player.load(u,{start:(0,r.parseStartTime)(e),autoplay:o}):(0,r.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",(function(e){return e.player})).then((function(n){if(t.container){var s=n.player;t.player=new s(t.container,{width:"100%",height:"100%",video:u,params:d({controls:i,autoplay:t.props.playing,mute:t.props.muted,start:(0,r.parseStartTime)(e),origin:window.location.origin},a.params),events:{apiready:t.props.onReady,seeked:function(){return t.props.onSeek(t.player.currentTime)},video_end:t.props.onEnded,durationchange:t.onDurationChange,pause:t.props.onPause,playing:t.props.onPlay,waiting:t.props.onBuffer,error:function(e){return l(e)}}})}}),l)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.player.duration||null}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return this.player.bufferedTime}},{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return a.default.createElement("div",{style:e},a.default.createElement("div",{ref:this.ref}))}}])&&A(i.prototype,t),i}(a.Component);t.default=x,y(x,"displayName","DailyMotion"),y(x,"canPlay",s.canPlay.dailymotion),y(x,"loopOnEnded",!0)},function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=n(1),s=n(2);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(i,e);var t,n=A(i);function i(){var e;c(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return v(f(e=n.call.apply(n,[this].concat(a))),"callPlayer",r.callPlayer),v(f(e),"duration",null),v(f(e),"currentTime",null),v(f(e),"secondsLoaded",null),v(f(e),"mute",(function(){})),v(f(e),"unmute",(function(){})),v(f(e),"ref",(function(t){e.iframe=t})),e}return(t=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;(0,r.getSDK)("https://widget.mixcloud.com/media/js/widgetApi.js","Mixcloud").then((function(e){t.player=e.PlayerWidget(t.iframe),t.player.ready.then((function(){t.player.events.play.on(t.props.onPlay),t.player.events.pause.on(t.props.onPause),t.player.events.ended.on(t.props.onEnded),t.player.events.error.on(t.props.error),t.player.events.progress.on((function(e,n){t.currentTime=e,t.duration=n})),t.props.onReady()}))}),this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.config,i=t.match(s.MATCH_URL_MIXCLOUD)[1],l=(0,r.queryString)(d(d({},n.options),{},{feed:"/".concat(i,"/")}));return a.default.createElement("iframe",{key:i,ref:this.ref,style:{width:"100%",height:"100%"},src:"https://www.mixcloud.com/widget/iframe/?".concat(l),frameBorder:"0"})}}])&&u(i.prototype,t),i}(a.Component);t.default=g,v(g,"displayName","Mixcloud"),v(g,"canPlay",s.canPlay.mixcloud),v(g,"loopOnEnded",!0)},function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=n(1),s=n(2);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=f(e);if(t){var a=f(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(i,e);var t,n=p(i);function i(){var e;d(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return m(h(e=n.call.apply(n,[this].concat(a))),"callPlayer",r.callPlayer),m(h(e),"mute",(function(){e.setVolume(0)})),m(h(e),"unmute",(function(){null!==e.props.volume&&e.setVolume(e.props.volume)})),m(h(e),"ref",(function(t){e.container=t})),e}return(t=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this,n=this.props,i=n.playing,a=n.config,l=n.onError,d=n.onDuration,c=e&&e.match(s.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,r.getSDK)("https://play.vidyard.com/embed/v4.js","VidyardV4","onVidyardAPI").then((function(e){t.container&&(e.api.addReadyListener((function(e,n){t.player=n,t.player.on("ready",t.props.onReady),t.player.on("play",t.props.onPlay),t.player.on("pause",t.props.onPause),t.player.on("seek",t.props.onSeek),t.player.on("playerComplete",t.props.onEnded)}),c),e.api.renderPlayer(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({uuid:c,container:t.container,autoplay:i?1:0},a.options)),e.api.getPlayerMetadata(c).then((function(e){t.duration=e.length_in_seconds,d(e.length_in_seconds)})))}),l)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){window.VidyardV4.api.destroyPlayer(this.player)}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackSpeed",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.callPlayer("currentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return a.default.createElement("div",{style:e},a.default.createElement("div",{ref:this.ref}))}}])&&c(i.prototype,t),i}(a.Component);t.default=v,m(v,"displayName","Vidyard"),m(v,"canPlay",s.canPlay.vidyard)},function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=n(1),s=n(2);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=h(e);if(t){var a=h(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?A(e):t}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(i,e);var t,n=u(i);function i(){var e;o(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return f(A(e=n.call.apply(n,[this].concat(a))),"callPlayer",r.callPlayer),f(A(e),"duration",null),f(A(e),"currentTime",null),f(A(e),"secondsLoaded",null),f(A(e),"mute",(function(){e.callPlayer("mute")})),f(A(e),"unmute",(function(){e.callPlayer("unmute")})),f(A(e),"ref",(function(t){e.iframe=t})),e}return(t=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;(0,r.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then((function(e){t.iframe&&(t.player=new e.Player(t.iframe),t.player.on("ready",(function(){t.player.isReady=!0,t.player.on("play",t.props.onPlay),t.player.on("pause",t.props.onPause),t.player.on("seeked",t.props.onSeek),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",(function(e){var n=e.duration,i=e.seconds;t.duration=n,t.currentTime=i})),t.player.on("buffered",(function(e){var n=e.percent;t.duration&&(t.secondsLoaded=t.duration*n)})),t.player.setLoop(t.props.loop),t.props.muted&&t.player.mute(),setTimeout((function(){t.props.onReady()}))})))}),this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("setCurrentTime",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){return a.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allowFullScreen:!0,allow:"encrypted-media",referrerPolicy:"no-referrer-when-downgrade"})}}])&&d(i.prototype,t),i}(a.Component);t.default=m,f(m,"displayName","Kaltura"),f(m,"canPlay",s.canPlay.kaltura)},function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=n(1),s=n(2);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=f(e);if(t){var a=f(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v="undefined"!=typeof navigator,g=v&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,y=v&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||g)&&!window.MSStream,x=/www\.dropbox\.com\/.+/,b=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(i,e);var t,n=p(i);function i(){var e;d(this,i);for(var t=arguments.length,s=new Array(t),l=0;l<t;l++)s[l]=arguments[l];return m(h(e=n.call.apply(n,[this].concat(s))),"onReady",(function(){var t;return(t=e.props).onReady.apply(t,arguments)})),m(h(e),"onPlay",(function(){var t;return(t=e.props).onPlay.apply(t,arguments)})),m(h(e),"onBuffer",(function(){var t;return(t=e.props).onBuffer.apply(t,arguments)})),m(h(e),"onBufferEnd",(function(){var t;return(t=e.props).onBufferEnd.apply(t,arguments)})),m(h(e),"onPause",(function(){var t;return(t=e.props).onPause.apply(t,arguments)})),m(h(e),"onEnded",(function(){var t;return(t=e.props).onEnded.apply(t,arguments)})),m(h(e),"onError",(function(){var t;return(t=e.props).onError.apply(t,arguments)})),m(h(e),"onEnablePIP",(function(){var t;return(t=e.props).onEnablePIP.apply(t,arguments)})),m(h(e),"onDisablePIP",(function(t){var n=e.props,i=n.onDisablePIP,a=n.playing;i(t),a&&e.play()})),m(h(e),"onPresentationModeChange",(function(t){if(e.player&&(0,r.supportsWebKitPresentationMode)(e.player)){var n=e.player.webkitPresentationMode;"picture-in-picture"===n?e.onEnablePIP(t):"inline"===n&&e.onDisablePIP(t)}})),m(h(e),"onSeek",(function(t){e.props.onSeek(t.target.currentTime)})),m(h(e),"mute",(function(){e.player.muted=!0})),m(h(e),"unmute",(function(){e.player.muted=!1})),m(h(e),"renderSourceElement",(function(e,t){return"string"==typeof e?a.default.createElement("source",{key:t,src:e}):a.default.createElement("source",o({key:t},e))})),m(h(e),"renderTrack",(function(e,t){return a.default.createElement("track",o({key:t},e))})),m(h(e),"ref",(function(t){e.player&&(e.prevPlayer=e.player),e.player=t})),e}return(t=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player),y&&this.player.load()}},{key:"componentDidUpdate",value:function(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url===e.url||(0,r.isMediaStream)(this.props.url)||(this.player.srcObject=null)}},{key:"componentWillUnmount",value:function(){this.removeListeners(this.player),this.hls&&this.hls.destroy()}},{key:"addListeners",value:function(e){var t=this.props,n=t.url,i=t.playsinline;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(n)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}},{key:"removeListeners",value:function(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}},{key:"shouldUseAudio",value:function(e){return!e.config.forceVideo&&!e.config.attributes.poster&&(s.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio)}},{key:"shouldUseHLS",value:function(e){return!!this.props.config.forceHLS||!y&&(s.HLS_EXTENSIONS.test(e)||b.test(e))}},{key:"shouldUseDASH",value:function(e){return s.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}},{key:"shouldUseFLV",value:function(e){return s.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}},{key:"load",value:function(e){var t=this,n=this.props.config,i=n.hlsVersion,a=n.hlsOptions,s=n.dashVersion,l=n.flvVersion;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,r.getSDK)("https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js".replace("VERSION",i),"Hls").then((function(n){if(t.hls=new n(a),t.hls.on(n.Events.MANIFEST_PARSED,(function(){t.props.onReady()})),t.hls.on(n.Events.ERROR,(function(e,i){t.props.onError(e,i,t.hls,n)})),b.test(e)){var i=e.match(b)[1];t.hls.loadSource("https://videodelivery.net/{id}/manifest/video.m3u8".replace("{id}",i))}else t.hls.loadSource(e);t.hls.attachMedia(t.player),t.props.onLoaded()})),this.shouldUseDASH(e)&&(0,r.getSDK)("https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js".replace("VERSION",s),"dashjs").then((function(n){t.dash=n.MediaPlayer().create(),t.dash.initialize(t.player,e,t.props.playing),t.dash.on("error",t.props.onError),parseInt(s)<3?t.dash.getDebug().setLogToBrowserConsole(!1):t.dash.updateSettings({debug:{logLevel:n.Debug.LOG_LEVEL_NONE}}),t.props.onLoaded()})),this.shouldUseFLV(e)&&(0,r.getSDK)("https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js".replace("VERSION",l),"flvjs").then((function(n){t.flv=n.createPlayer({type:"flv",url:e}),t.flv.attachMediaElement(t.player),t.flv.load(),t.props.onLoaded()})),e instanceof Array)this.player.load();else if((0,r.isMediaStream)(e))try{this.player.srcObject=e}catch(o){this.player.src=window.URL.createObjectURL(e)}}},{key:"play",value:function(){var e=this.player.play();e&&e.catch(this.props.onError)}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}},{key:"seekTo",value:function(e){this.player.currentTime=e}},{key:"setVolume",value:function(e){this.player.volume=e}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,r.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}},{key:"disablePIP",value:function(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,r.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function(e){this.player.playbackRate=e}},{key:"getDuration",value:function(){if(!this.player)return null;var e=this.player,t=e.duration,n=e.seekable;return t===1/0&&n.length>0?n.end(n.length-1):t}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var e=this.player.buffered;if(0===e.length)return 0;var t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}},{key:"getSource",value:function(e){var t=this.shouldUseHLS(e),n=this.shouldUseDASH(e),i=this.shouldUseFLV(e);if(!(e instanceof Array||(0,r.isMediaStream)(e)||t||n||i))return x.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.playing,i=e.loop,r=e.controls,s=e.muted,l=e.config,d=e.width,c=e.height,u=this.shouldUseAudio(this.props)?"audio":"video",p={width:"auto"===d?d:"100%",height:"auto"===c?c:"100%"};return a.default.createElement(u,o({ref:this.ref,src:this.getSource(t),style:p,preload:"auto",autoPlay:n||void 0,controls:r,muted:s,loop:i},l.attributes),t instanceof Array&&t.map(this.renderSourceElement),l.tracks.map(this.renderTrack))}}])&&c(i.prototype,t),i}(a.Component);t.default=w,m(w,"displayName","FilePlayer"),m(w,"canPlay",s.canPlay.file)},function(e,t,n){(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createReactPlayer=void 0;var i=N(n(0)),a=c(n(10)),r=c(n(53)),s=c(n(11)),l=n(12),o=n(1),d=c(n(57));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="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)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function f(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=j(e);if(t){var a=j(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return S=function(){return e},e}function N(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=S();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var r=i?Object.getOwnPropertyDescriptor(e,a):null;r&&(r.get||r.set)?Object.defineProperty(n,a,r):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}var I=(0,i.lazy)((function(){return Promise.resolve().then((function(){return N(n(58))}))})),F="undefined"!=typeof window&&window.document,B=void 0!==e&&e.window&&e.window.document,P=Object.keys(l.propTypes),k=F||B?i.Suspense:function(){return null},T=[];t.createReactPlayer=function(e,t){var n,c;return c=n=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(p,n);var c,u=x(p);function p(){var n;v(this,p);for(var s=arguments.length,c=new Array(s),A=0;A<s;A++)c[A]=arguments[A];return C(w(n=u.call.apply(u,[this].concat(c))),"state",{showPreview:!!n.props.light}),C(w(n),"references",{wrapper:function(e){n.wrapper=e},player:function(e){n.player=e}}),C(w(n),"handleClickPreview",(function(e){n.setState({showPreview:!1}),n.props.onClickPreview(e)})),C(w(n),"showPreview",(function(){n.setState({showPreview:!0})})),C(w(n),"getDuration",(function(){return n.player?n.player.getDuration():null})),C(w(n),"getCurrentTime",(function(){return n.player?n.player.getCurrentTime():null})),C(w(n),"getSecondsLoaded",(function(){return n.player?n.player.getSecondsLoaded():null})),C(w(n),"getInternalPlayer",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"player";return n.player?n.player.getInternalPlayer(e):null})),C(w(n),"seekTo",(function(e,t){if(!n.player)return null;n.player.seekTo(e,t)})),C(w(n),"handleReady",(function(){n.props.onReady(w(n))})),C(w(n),"getActivePlayer",(0,r.default)((function(n){for(var i=0,a=[].concat(T,f(e));i<a.length;i++){var r=a[i];if(r.canPlay(n))return r}return t||null}))),C(w(n),"getConfig",(0,r.default)((function(e,t){var i=n.props.config;return a.default.all([l.defaultProps.config,l.defaultProps.config[t]||{},i,i[t]||{}])}))),C(w(n),"getAttributes",(0,r.default)((function(e){return(0,o.omit)(n.props,P)}))),C(w(n),"renderActivePlayer",(function(e){if(!e)return null;var t=n.getActivePlayer(e);if(!t)return null;var a=n.getConfig(e,t.key);return i.default.createElement(d.default,h({},n.props,{key:t.key,ref:n.references.player,config:a,activePlayer:t.lazyPlayer||t,onReady:n.handleReady}))})),n}return(c=[{key:"shouldComponentUpdate",value:function(e,t){return!(0,s.default)(this.props,e)||!(0,s.default)(this.state,t)}},{key:"componentDidUpdate",value:function(e){var t=this.props.light;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}},{key:"renderPreview",value:function(e){if(!e)return null;var t=this.props,n=t.light,a=t.playIcon,r=t.previewTabIndex;return i.default.createElement(I,{url:e,light:n,playIcon:a,previewTabIndex:r,onClick:this.handleClickPreview})}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.style,a=e.width,r=e.height,s=e.fallback,l=e.wrapper,o=this.state.showPreview,d=this.getAttributes(t);return i.default.createElement(l,h({ref:this.references.wrapper,style:A(A({},n),{},{width:a,height:r})},d),i.default.createElement(k,{fallback:s},o?this.renderPreview(t):this.renderActivePlayer(t)))}}])&&g(p.prototype,c),p}(i.Component),C(n,"displayName","ReactPlayer"),C(n,"propTypes",l.propTypes),C(n,"defaultProps",l.defaultProps),C(n,"addCustomPlayer",(function(e){T.push(e)})),C(n,"removeCustomPlayers",(function(){T.length=0})),C(n,"canPlay",(function(t){for(var n=0,i=[].concat(T,f(e));n<i.length;n++)if(i[n].canPlay(t))return!0;return!1})),C(n,"canEnablePIP",(function(t){for(var n=0,i=[].concat(T,f(e));n<i.length;n++){var a=i[n];if(a.canEnablePIP&&a.canEnablePIP(t))return!0}return!1})),c}}).call(this,n(52))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){n.r(t);var i=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function a(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((a=e[n])===(r=t[n])||i(a)&&i(r)))return!1;var a,r;return!0}t.default=function(e,t){var n;void 0===t&&(t=a);var i,r=[],s=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return s&&n===this&&t(a,r)||(i=e.apply(this,a),s=!0,n=this,r=a),i}}},function(e,t,n){e.exports=n(55)()},function(e,t,n){var i=n(56);function a(){}function r(){}r.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,r,s){if(s!==i){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:a};return n.PropTypes=n,n}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),s=(a=n(11))&&a.__esModule?a:{default:a},l=n(12);function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(i,e);var t,n=A(i);function i(){var e;c(this,i);for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return v(f(e=n.call.apply(n,[this].concat(a))),"mounted",!1),v(f(e),"isReady",!1),v(f(e),"isPlaying",!1),v(f(e),"isLoading",!0),v(f(e),"loadOnReady",null),v(f(e),"startOnPlay",!0),v(f(e),"seekOnPlay",null),v(f(e),"onDurationCalled",!1),v(f(e),"handlePlayerMount",(function(t){e.player=t,e.player.load(e.props.url),e.progress()})),v(f(e),"getInternalPlayer",(function(t){return e.player?e.player[t]:null})),v(f(e),"progress",(function(){if(e.props.url&&e.player&&e.isReady){var t=e.getCurrentTime()||0,n=e.getSecondsLoaded(),i=e.getDuration();if(i){var a={playedSeconds:t,played:t/i};null!==n&&(a.loadedSeconds=n,a.loaded=n/i),a.playedSeconds===e.prevPlayed&&a.loadedSeconds===e.prevLoaded||e.props.onProgress(a),e.prevPlayed=a.playedSeconds,e.prevLoaded=a.loadedSeconds}}e.progressTimeout=setTimeout(e.progress,e.props.progressFrequency||e.props.progressInterval)})),v(f(e),"handleReady",(function(){if(e.mounted){e.isReady=!0,e.isLoading=!1;var t=e.props,n=t.onReady,i=t.playing,a=t.volume,r=t.muted;n(),r||null===a||e.player.setVolume(a),e.loadOnReady?(e.player.load(e.loadOnReady,!0),e.loadOnReady=null):i&&e.player.play(),e.handleDurationCheck()}})),v(f(e),"handlePlay",(function(){e.isPlaying=!0,e.isLoading=!1;var t=e.props,n=t.onStart,i=t.onPlay,a=t.playbackRate;e.startOnPlay&&(e.player.setPlaybackRate&&1!==a&&e.player.setPlaybackRate(a),n(),e.startOnPlay=!1),i(),e.seekOnPlay&&(e.seekTo(e.seekOnPlay),e.seekOnPlay=null),e.handleDurationCheck()})),v(f(e),"handlePause",(function(t){e.isPlaying=!1,e.isLoading||e.props.onPause(t)})),v(f(e),"handleEnded",(function(){var t=e.props,n=t.activePlayer,i=t.loop,a=t.onEnded;n.loopOnEnded&&i&&e.seekTo(0),i||(e.isPlaying=!1,a())})),v(f(e),"handleError",(function(){var t;e.isLoading=!1,(t=e.props).onError.apply(t,arguments)})),v(f(e),"handleDurationCheck",(function(){clearTimeout(e.durationCheckTimeout);var t=e.getDuration();t?e.onDurationCalled||(e.props.onDuration(t),e.onDurationCalled=!0):e.durationCheckTimeout=setTimeout(e.handleDurationCheck,100)})),v(f(e),"handleLoaded",(function(){e.isLoading=!1})),e}return(t=[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.player){var n=this.props,i=n.url,a=n.playing,r=n.volume,l=n.muted,o=n.playbackRate,d=n.pip,c=n.loop,u=n.activePlayer;if(!(0,s.default)(e.url,i)){if(this.isLoading&&!u.forceLoad)return void(this.loadOnReady=i);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(i,this.isReady)}e.playing||!a||this.isPlaying||this.player.play(),e.playing&&!a&&this.isPlaying&&this.player.pause(),!e.pip&&d&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!d&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==r&&null!==r&&this.player.setVolume(r),e.muted!==l&&(l?this.player.mute():(this.player.unmute(),null!==r&&setTimeout((function(){return t.player.setVolume(r)})))),e.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),e.loop!==c&&this.player.setLoop&&this.player.setLoop(c)}}},{key:"getDuration",value:function(){return this.isReady?this.player.getDuration():null}},{key:"getCurrentTime",value:function(){return this.isReady?this.player.getCurrentTime():null}},{key:"getSecondsLoaded",value:function(){return this.isReady?this.player.getSecondsLoaded():null}},{key:"seekTo",value:function(e,t){var n=this;if(!this.isReady&&0!==e)return this.seekOnPlay=e,void setTimeout((function(){n.seekOnPlay=null}),5e3);if(t?"fraction"===t:e>0&&e<1){var i=this.player.getDuration();return i?void this.player.seekTo(i*e):void 0}this.player.seekTo(e)}},{key:"render",value:function(){var e=this.props.activePlayer;return e?r.default.createElement(e,d({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}])&&u(i.prototype,t),i}(r.Component);t.default=g,v(g,"displayName","Player"),v(g,"propTypes",l.propTypes),v(g,"defaultProps",l.defaultProps)},function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(n,s,l):n[s]=e[s]}return n.default=e,t&&t.set(e,n),n}(n(0));function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=h(e);if(t){var a=h(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?A(e):t}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m={},v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(i,e);var t,n=u(i);function i(){var e;o(this,i);for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return f(A(e=n.call.apply(n,[this].concat(a))),"mounted",!1),f(A(e),"state",{image:null}),f(A(e),"handleKeyPress",(function(t){"Enter"!==t.key&&" "!==t.key||e.props.onClick()})),e}return(t=[{key:"componentDidMount",value:function(){this.mounted=!0,this.fetchImage(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.url,i=t.light;e.url===n&&e.light===i||this.fetchImage(this.props)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"fetchImage",value:function(e){var t=this,n=e.url,i=e.light;if("string"!=typeof i){if(!m[n])return this.setState({image:null}),window.fetch("https://noembed.com/embed?url=".concat(n)).then((function(e){return e.json()})).then((function(e){if(e.thumbnail_url&&t.mounted){var i=e.thumbnail_url.replace("height=100","height=480");t.setState({image:i}),m[n]=i}}));this.setState({image:m[n]})}else this.setState({image:i})}},{key:"render",value:function(){var e=this.props,t=e.onClick,n=e.playIcon,i=e.previewTabIndex,r=this.state.image,s={display:"flex",alignItems:"center",justifyContent:"center"},o={preview:l({width:"100%",height:"100%",backgroundImage:r?"url(".concat(r,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},s),shadow:l({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:"64px",width:"64px",height:"64px"},s),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},d=a.default.createElement("div",{style:o.shadow,className:"react-player__shadow"},a.default.createElement("div",{style:o.playIcon,className:"react-player__play-icon"}));return a.default.createElement("div",{style:o.preview,className:"react-player__preview",onClick:t,tabIndex:i,onKeyPress:this.handleKeyPress},n||d)}}])&&d(i.prototype,t),i}(a.Component);t.default=v},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,a=!1,r=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(o){a=!0,r=o}finally{try{i||null==l.return||l.return()}finally{if(a)throw r}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){n.r(t),n.d(t,"default",(function(){return _}));var i=n(6),a=n.n(i),r=n(13),s=n.n(r),l=n(4),o=n.n(l),d=n(3),c=n.n(d),u=(n(24),n(14)),p=n.n(u),A=n(15),h=n.n(A),f=n(16),m=n.n(f),v=n(17),g=n.n(v);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var x=function(){function e(t){var n=t.api,i=t.config,a=t.onSelectFile,r=t.readOnly;o()(this,e),this.api=n,this.config=i,this.onSelectFile=a,this.readOnly=r,this.nodes={wrapper:b("div",[this.CSS.baseClass,this.CSS.wrapper]),videoContainer:b("div",[this.CSS.videoContainer]),fileButton:this.createFileButton(),videoEl:void 0,videoPreloader:b("video",this.CSS.videoPreloader),caption:b("div",[this.CSS.input,this.CSS.caption],{contentEditable:!this.readOnly})},this.nodes.caption.dataset.placeholder=this.config.captionPlaceholder,this.nodes.videoContainer.appendChild(this.nodes.videoPreloader),this.nodes.wrapper.appendChild(this.nodes.videoContainer),this.nodes.wrapper.appendChild(this.nodes.caption),this.nodes.wrapper.appendChild(this.nodes.fileButton)}return c()(e,[{key:"render",value:function(t){return t.file&&0!==Object.keys(t.file).length?this.toggleStatus(e.status.UPLOADING):this.toggleStatus(e.status.EMPTY),this.nodes.wrapper}},{key:"createFileButton",value:function(){var e=this,t=b("div",[this.CSS.button]);return t.innerHTML=this.config.buttonContent||"".concat(m.a," ").concat(this.api.i18n.t("Select an Video")),t.addEventListener("click",(function(){e.onSelectFile()})),t}},{key:"showPreloader",value:function(t){this.nodes.videoPreloader.src="url(".concat(t,")"),this.toggleStatus(e.status.UPLOADING)}},{key:"hidePreloader",value:function(){this.nodes.videoPreloader.src="",this.toggleStatus(e.status.EMPTY)}},{key:"fillVideo",value:function(e){g()(this.nodes.videoContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){h()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({url:e},this.config.player))}},{key:"fillCaption",value:function(e){this.nodes.caption&&(this.nodes.caption.innerHTML=e)}},{key:"toggleStatus",value:function(t){for(var n in e.status)Object.prototype.hasOwnProperty.call(e.status,n)&&this.nodes.wrapper.classList.toggle("".concat(this.CSS.wrapper,"--").concat(e.status[n]),t===e.status[n])}},{key:"applyTune",value:function(e,t){this.nodes.wrapper.classList.toggle("".concat(this.CSS.wrapper,"--").concat(e),t)}},{key:"CSS",get:function(){return{baseClass:this.api.styles.block,loading:this.api.styles.loader,input:this.api.styles.input,button:this.api.styles.button,wrapper:"video-tool",videoContainer:"video-tool__video",videoPreloader:"video-tool__video-preloader",videoEl:"video-tool__video-picture",caption:"video-tool__caption"}}}],[{key:"status",get:function(){return{EMPTY:"empty",UPLOADING:"loading",FILLED:"filled"}}}]),e}(),b=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=document.createElement(e);for(var r in Array.isArray(n)?(t=a.classList).add.apply(t,p()(n)):n&&a.classList.add(n),i)a[r]=i[r];return a},w=n(18),j=n.n(w),C=n(19),S=n.n(C),N=n(20),I=n.n(N),F=function(){function e(t){var n=t.api,i=t.actions,a=t.onChange;o()(this,e),this.api=n,this.actions=i,this.onChange=a,this.buttons=[]}return c()(e,[{key:"render",value:function(t){var n=this,i=b("div",this.CSS.wrapper);return this.buttons=[],e.tunes.concat(this.actions).forEach((function(e){var a=n.api.i18n.t(e.title),r=b("div",[n.CSS.buttonBase,n.CSS.button],{innerHTML:e.icon,title:a});r.addEventListener("click",(function(){n.tuneClicked(e.name,e.action)})),r.dataset.tune=e.name,r.classList.toggle(n.CSS.buttonActive,t[e.name]),n.buttons.push(r),n.api.tooltip.onHover(r,a,{placement:"top"}),i.appendChild(r)})),i}},{key:"tuneClicked",value:function(e,t){if("function"==typeof t&&!t(e))return!1;var n=this.buttons.find((function(t){return t.dataset.tune===e}));n.classList.toggle(this.CSS.buttonActive,!n.classList.contains(this.CSS.buttonActive)),this.onChange(e)}},{key:"CSS",get:function(){return{wrapper:"",buttonBase:this.api.styles.settingsButton,button:"video-tool__tune",buttonActive:this.api.styles.settingsButtonActive}}}],[{key:"tunes",get:function(){return[{name:"withBorder",icon:S.a,title:"With border"},{name:"stretched",icon:I.a,title:"Stretch video"},{name:"withBackground",icon:j.a,title:"With background"}]}}]),e}(),B=n(21),P=n.n(B),k=n(22),T=n.n(k),E=n(5),D=n.n(E),L=function(){function e(t){var n=t.config,i=t.onUpload,a=t.onError;o()(this,e),this.config=n,this.onUpload=i,this.onError=a}return c()(e,[{key:"uploadSelectedFile",value:function(e){var t=this,n=e.onPreview,i=function(e){var t=new FileReader;t.readAsDataURL(e),t.onload=function(e){n(e.target.result)}};(this.config.uploader&&"function"==typeof this.config.uploader.uploadByFile?D.a.selectFiles({accept:this.config.types}).then((function(e){i(e[0]);var n=t.config.uploader.uploadByFile(e[0]);return U(n),n})):D.a.transport({url:this.config.endpoints.byFile,data:this.config.additionalRequestData,accept:this.config.types,headers:this.config.additionalRequestHeaders,beforeSend:function(e){i(e[0])},fieldName:this.config.field}).then((function(e){return e.body}))).then((function(e){t.onUpload(e)})).catch((function(e){t.onError(e)}))}},{key:"uploadByUrl",value:function(e){var t,n=this;this.config.uploader&&"function"==typeof this.config.uploader.uploadByUrl?U(t=this.config.uploader.uploadByUrl(e)):t=D.a.post({url:this.config.endpoints.byUrl,data:Object.assign({url:e},this.config.additionalRequestData),type:D.a.contentType.JSON,headers:this.config.additionalRequestHeaders}).then((function(e){return e.body})),t.then((function(e){n.onUpload(e)})).catch((function(e){n.onError(e)}))}},{key:"uploadByFile",value:function(e,t){var n,i=this,a=t.onPreview,r=new FileReader;if(r.readAsDataURL(e),r.onload=function(e){a(e.target.result)},this.config.uploader&&"function"==typeof this.config.uploader.uploadByFile)U(n=this.config.uploader.uploadByFile(e));else{var s=new FormData;s.append(this.config.field,e),this.config.additionalRequestData&&Object.keys(this.config.additionalRequestData).length&&Object.entries(this.config.additionalRequestData).forEach((function(e){var t=T()(e,2),n=t[0],i=t[1];s.append(n,i)})),n=D.a.post({url:this.config.endpoints.byFile,data:s,type:D.a.contentType.JSON,headers:this.config.additionalRequestHeaders}).then((function(e){return e.body}))}n.then((function(e){i.onUpload(e)})).catch((function(e){i.onError(e)}))}}]),e}();function U(e){return Promise.resolve(e)===e}
|
||
/**
|
||
* Video Tool for the Editor.js
|
||
*
|
||
* @author CodeX <team@codex.so>
|
||
* @license MIT
|
||
* @see {@link https://github.com/editor-js/video}
|
||
*
|
||
* To developers.
|
||
* To simplify Tool structure, we split it to 4 parts:
|
||
* 1) index.js — main Tool's interface, public API and methods for working with data
|
||
* 2) uploader.js — module that has methods for sending files via AJAX: from device, by URL or File pasting
|
||
* 3) ui.js — module for UI manipulations: render, showing preloader, etc
|
||
* 4) tunes.js — working with Block Tunes: render buttons, handle clicks
|
||
*
|
||
* For debug purposes there is a testing server
|
||
* that can save uploaded files and return a Response {@link UploadResponseFormat}
|
||
*
|
||
* $ node dev/server.js
|
||
*
|
||
* It will expose 8008 port, so you can pass http://localhost:8008 with the Tools config:
|
||
*
|
||
* video: {
|
||
* class: VideoTool,
|
||
* config: {
|
||
* endpoints: {
|
||
* byFile: 'http://localhost:8008/uploadFile',
|
||
* byUrl: 'http://localhost:8008/fetchUrl',
|
||
* }
|
||
* },
|
||
* },
|
||
*/var _=function(){function e(t){var n=this,i=t.data,a=t.config,r=t.api,s=t.readOnly;o()(this,e),this.api=r,this.readOnly=s,this.config={endpoints:a.endpoints||"",additionalRequestData:a.additionalRequestData||{},additionalRequestHeaders:a.additionalRequestHeaders||{},field:a.field||"video",types:a.types||"video/*",captionPlaceholder:this.api.i18n.t(a.captionPlaceholder||"Caption"),buttonContent:a.buttonContent||"",uploader:a.uploader||void 0,actions:a.actions||[],player:{pip:a.player.pip||!1,controls:a.player.controls||!1,light:a.player.light||!1,playing:a.player.playing||!1}},this.uploader=new L({config:this.config,onUpload:function(e){return n.onUpload(e)},onError:function(e){return n.uploadingFailed(e)}}),this.ui=new x({api:r,config:this.config,onSelectFile:function(){n.uploader.uploadSelectedFile({onPreview:function(e){n.ui.showPreloader(e)}})},readOnly:s}),this.tunes=new F({api:r,actions:this.config.actions,onChange:function(e){return n.tuneToggled(e)}}),this._data={},this.data=i}var t;return c()(e,null,[{key:"isReadOnlySupported",get:function(){return!0}},{key:"toolbox",get:function(){return{icon:P.a,title:"Video"}}}]),c()(e,[{key:"render",value:function(){return this.ui.render(this.data)}},{key:"save",value:function(){var e=this.ui.nodes.caption;return this._data.caption=e.innerHTML,this.data}},{key:"renderSettings",value:function(){return this.tunes.render(this.data)}},{key:"appendCallback",value:function(){this.ui.nodes.fileButton.click()}},{key:"onPaste",value:(t=s()(a.a.mark((function e(t){var n,i,r,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.type,e.next="tag"===e.t0?3:"pattern"===e.t0?15:"file"===e.t0?18:21;break;case 3:if(n=t.detail.data,!/^blob:/.test(n.src)){e.next=13;break}return e.next=7,fetch(n.src);case 7:return i=e.sent,e.next=10,i.blob();case 10:return r=e.sent,this.uploadFile(r),e.abrupt("break",21);case 13:return this.uploadUrl(n.src),e.abrupt("break",21);case 15:return s=t.detail.data,this.uploadUrl(s),e.abrupt("break",21);case 18:return l=t.detail.file,this.uploadFile(l),e.abrupt("break",21);case 21:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"onUpload",value:function(e){e.success&&e.file?this.video=e.file:this.uploadingFailed("incorrect response: "+JSON.stringify(e))}},{key:"uploadingFailed",value:function(e){this.api.notifier.show({message:this.api.i18n.t("Couldn’t upload video. Please try another."),style:"error"}),this.ui.hidePreloader()}},{key:"tuneToggled",value:function(e){this.setTune(e,!this._data[e])}},{key:"setTune",value:function(e,t){var n=this;this._data[e]=t,this.ui.applyTune(e,t),"stretched"===e&&Promise.resolve().then((function(){var e=n.api.blocks.getCurrentBlockIndex();n.api.blocks.stretchBlock(e,t)})).catch((function(e){}))}},{key:"uploadFile",value:function(e){var t=this;this.uploader.uploadByFile(e,{onPreview:function(e){t.ui.showPreloader(e)}})}},{key:"uploadUrl",value:function(e){this.ui.showPreloader(e),this.uploader.uploadByUrl(e)}},{key:"data",set:function(e){var t=this;this.video=e.file,this._data.caption=e.caption||"",this.ui.fillCaption(this._data.caption),F.tunes.forEach((function(n){var i=n.name,a=void 0!==e[i]&&(!0===e[i]||"true"===e[i]);t.setTune(i,a)}))},get:function(){return this._data}},{key:"video",set:function(e){this._data.file=e||{},e&&e.url&&this.ui.fillVideo(e.url)}}],[{key:"pasteConfig",get:function(){return{tags:["video"],patterns:{video:/https?:\/\/\S+\.(mp4)$/i},files:{mimeTypes:["video/*"]}}}}]),e}()}]).default;const yte=c(gte.exports);class xte{constructor({data:e}={}){this.data=e||{},this.wrapper=null}static get toolbox(){return{title:"Callout",icon:'<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>'}}render(){const e=document.createElement("div");return e.innerHTML=`\n <div style="border-left:4px solid #f59e0b;background:#fff7ed;padding:10px;border-radius:6px">\n <div style="display:flex;gap:8px;align-items:center">\n <input class="e-call-emoji" style="width:3rem" value="${this.data.emoji||"💡"}" />\n <input class="e-call-text" style="flex:1" placeholder="Highlight text…" value="${this.data.text||""}" />\n </div>\n </div>`,this.wrapper=e,e}save(e){return{emoji:(e.querySelector(".e-call-emoji")||{}).value||"💡",text:(e.querySelector(".e-call-text")||{}).value||""}}}class bte{constructor({data:e}={}){this.data=e||{},this.wrapper=null}static get toolbox(){return{title:"Call to action",icon:'<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M9 12l2 2 4-4"/></svg>'}}render(){const e=document.createElement("div");return e.className="editor-cta",e.innerHTML=`\n <div style="border:1px solid #e2e8f0;border-radius:8px;padding:12px;display:grid;gap:8px">\n <input placeholder="Heading" value="${this.data.heading||""}" class="e-cta-heading" />\n <input placeholder="Subheading" value="${this.data.subheading||""}" class="e-cta-subheading" />\n <div style="display:flex; gap:8px">\n <input placeholder="Button text" value="${this.data.buttonText||""}" class="e-cta-btntext" />\n <input placeholder="Button URL" value="${this.data.buttonUrl||""}" class="e-cta-btnurl" />\n <select class="e-cta-style">\n <option value="primary" ${"secondary"!==this.data.style?"selected":""}>Primary</option>\n <option value="secondary" ${"secondary"===this.data.style?"selected":""}>Secondary</option>\n </select>\n </div>\n </div>`,this.wrapper=e,e}save(e){return{heading:(e.querySelector(".e-cta-heading")||{}).value||"",subheading:(e.querySelector(".e-cta-subheading")||{}).value||"",buttonText:(e.querySelector(".e-cta-btntext")||{}).value||"",buttonUrl:(e.querySelector(".e-cta-btnurl")||{}).value||"",style:(e.querySelector(".e-cta-style")||{}).value||"primary"}}validate(e){return e.heading&&e.buttonText&&e.buttonUrl}}class wte{constructor({data:e}={}){this.data=e||{},this.wrapper=null}static get toolbox(){return{title:"Email content",icon:'<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>'}}render(){const e=document.createElement("div");return e.innerHTML=`\n <div style="border:1px dashed #cbd5e1;border-radius:8px;padding:12px;display:grid;gap:8px">\n <input placeholder="Subject" class="e-email-subject" value="${this.data.subject||""}" />\n <textarea placeholder="Body (HTML allowed)" rows="6" class="e-email-body">${this.data.bodyHtml||""}</textarea>\n </div>`,this.wrapper=e,e}save(e){return{subject:(e.querySelector(".e-email-subject")||{}).value||"",bodyHtml:(e.querySelector(".e-email-body")||{}).value||""}}}class jte{constructor({data:e}={}){this.data=e||{}}static get toolbox(){return{title:"Separator",icon:'<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><line x1="3" y1="12" x2="21" y2="12"/></svg>'}}render(){const e=document.createElement("div");e.innerHTML=`\n <div style="padding: 20px 0; display: flex; align-items: center; gap: 10px;">\n <select class="separator-style" style="padding: 4px 8px; border: 1px solid #e5e7eb; border-radius: 4px;">\n <option value="line" ${"line"===this.data.style?"selected":""}>Line</option>\n <option value="dots" ${"dots"===this.data.style?"selected":""}>Dots</option>\n <option value="stars" ${"stars"===this.data.style?"selected":""}>Stars</option>\n <option value="space" ${"space"===this.data.style?"selected":""}>Space</option>\n </select>\n <div class="separator-preview" style="flex: 1; display: flex; justify-content: center;">\n ${this.getPreview(this.data.style||"line")}\n </div>\n </div>\n `;const t=e.querySelector(".separator-style"),n=e.querySelector(".separator-preview");return t.addEventListener("change",(e=>{n.innerHTML=this.getPreview(e.target.value)})),e}getPreview(e){switch(e){case"dots":return'<div style="color: #64748b; font-size: 18px; letter-spacing: 8px;">• • •</div>';case"stars":return'<div style="color: #64748b; font-size: 16px; letter-spacing: 6px;">★ ★ ★</div>';case"space":return'<div style="height: 40px;"></div>';default:return'<hr style="border: none; border-top: 1px solid #e5e7eb; width: 100%; margin: 0;">'}}save(e){const t=e.querySelector(".separator-style");return{style:t?t.value:"line"}}static get isReadOnlySupported(){return!0}}class Cte{constructor({data:e,config:t,api:n}){this.api=n,this.data=e||{text:"",level:2},this.wrapper=null}static get toolbox(){return{title:"Heading",icon:'<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M6 12h12M6 4v16M18 4v16"/></svg>'}}render(){const e=document.createElement("div");e.innerHTML=`\n <div style="display: grid; gap: 8px;">\n <div style="display: flex; gap: 8px; align-items: center;">\n <select class="header-level" style="padding: 4px 8px; border: 1px solid #e5e7eb; border-radius: 4px; font-size: 12px;">\n <option value="1" ${1===this.data.level?"selected":""}>H1 - Main Title</option>\n <option value="2" ${2===this.data.level?"selected":""}>H2 - Section</option>\n <option value="3" ${3===this.data.level?"selected":""}>H3 - Subsection</option>\n <option value="4" ${4===this.data.level?"selected":""}>H4 - Minor</option>\n </select>\n <span class="seo-hint" style="font-size: 11px; color: #64748b;"></span>\n </div>\n <textarea \n class="header-input" \n placeholder="Enter heading text..." \n rows="1"\n style="border: none; outline: none; font-weight: 600; background: transparent; padding: 4px 0; resize: none; overflow: hidden; width: 100%; font-family: inherit;"\n >${this.data.text||""}</textarea>\n </div>\n `;const t=e.querySelector(".header-input"),n=e.querySelector(".header-level"),i=e.querySelector(".seo-hint"),a=()=>{t.style.height="auto",t.style.height=(t.scrollHeight||47)+"px"},r=()=>{const e=parseInt(n.value),r=1===e?"32px":2===e?"24px":3===e?"18px":"16px";t.style.fontSize=r,a();i.textContent={1:"⚠️ Use only one H1 per page",2:"✅ Great for main sections",3:"📝 Perfect for subsections",4:"📄 For minor headings"}[e]||""};return n.addEventListener("change",r),t.addEventListener("input",a),r(),a(),this.wrapper=e,e}save(e){const t=e.querySelector(".header-input"),n=e.querySelector(".header-level");return{text:t.value,level:parseInt(n.value)}}static get sanitize(){return{text:{},level:!1}}}class Ste{constructor({data:e}={}){this.data=e||{}}static get toolbox(){return{title:"Link",icon:'<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>'}}render(){const e=document.createElement("div");e.innerHTML=`\n <div style="border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; display: grid; gap: 8px;">\n <input \n class="link-text" \n placeholder="Link text" \n value="${this.data.text||""}"\n style="padding: 8px; border: 1px solid #e5e7eb; border-radius: 4px;"\n />\n <input \n class="link-url" \n placeholder="https://example.com" \n value="${this.data.url||""}"\n style="padding: 8px; border: 1px solid #e5e7eb; border-radius: 4px;"\n />\n <div style="display: flex; gap: 8px; align-items: center;">\n <label style="display: flex; align-items: center; gap: 4px; font-size: 12px;">\n <input type="checkbox" class="link-target" ${"_blank"===this.data.target?"checked":""}>\n Open in new tab\n </label>\n </div>\n <div class="link-preview" style="padding: 8px; background: #f8fafc; border-radius: 4px; font-size: 12px; color: #64748b;">\n Preview: <span class="preview-text">Enter link details above</span>\n </div>\n </div>\n `;const t=e.querySelector(".link-text"),n=e.querySelector(".link-url");e.querySelector(".link-target");const i=e.querySelector(".preview-text"),a=()=>{const e=t.value||"Link text",a=n.value||"#";i.innerHTML=`<a href="${a}" style="color: #3b82f6; text-decoration: underline;">${e}</a>`};return t.addEventListener("input",a),n.addEventListener("input",a),a(),e}save(e){const t=e.querySelector(".link-text"),n=e.querySelector(".link-url"),i=e.querySelector(".link-target");return{text:t.value,url:n.value,target:i.checked?"_blank":"_self"}}validate(e){return e.text&&e.url}}class Nte{constructor({data:e}={}){this.data=e||{},this.wrapper=null}async fetchSEOData(e){var t,n,i,a,r,s,l,o;try{const d=`https://api.codetabs.com/v1/proxy?quest=${encodeURIComponent(e)}`,c=await fetch(d),u=await c.text(),p=(new DOMParser).parseFromString(u,"text/html"),A=(null==(t=p.querySelector('meta[property="og:title"]'))?void 0:t.content)||(null==(n=p.querySelector('meta[name="twitter:title"]'))?void 0:n.content)||(null==(i=p.querySelector("title"))?void 0:i.textContent)||new URL(e).hostname,h=(null==(a=p.querySelector('meta[property="og:description"]'))?void 0:a.content)||(null==(r=p.querySelector('meta[name="twitter:description"]'))?void 0:r.content)||(null==(s=p.querySelector('meta[name="description"]'))?void 0:s.content)||`Visit ${new URL(e).hostname}`,f=(null==(l=p.querySelector('meta[property="og:image"]'))?void 0:l.content)||(null==(o=p.querySelector('meta[name="twitter:image"]'))?void 0:o.content)||"";return{title:A.trim(),description:h.trim(),image:f,url:e}}catch(d){const t=new URL(e).hostname;return{title:t.replace("www.","").split(".")[0].toUpperCase(),description:`Visit ${t}`,image:`https://www.google.com/s2/favicons?domain=${t}&sz=64`,url:e}}}static get toolbox(){return{title:"Bookmark",icon:'<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"/></svg>',description:"Create link previews with title, description and image"}}async loadPublishedBlogs(e){var t;try{const n=null==sessionStorage?void 0:sessionStorage.getItem("auth"),i=iA("MobileNo"),a=await Ne.get("https://www.pozo.dev/pozo-common-api/Blog?request.published=Y",{headers:{Authorization:n,MobileNo:i}}),r=(null==(t=null==a?void 0:a.data)?void 0:t.data)||[];e.innerHTML='<option value="">📚 Select a blog post...</option>',r.forEach((t=>{const n=document.createElement("option");n.value=`https://www.pozo.dev/home/blog/${null==t?void 0:t.Slug}`||"#",n.dataset.title=(null==t?void 0:t.BlogTitle)||"Untitled",n.dataset.desc=(null==t?void 0:t.BlogSubtitle)||"No description",n.textContent=`📝 ${null==t?void 0:t.BlogTitle}`,e.appendChild(n)}))}catch(n){e.innerHTML='<option value="">⚠️ Failed to load blogs</option>'}}render(){const e=this.data.title&&this.data.url,t=document.createElement("div");if(e){t.innerHTML=`\n <div class="link-preview-card" style="border:1px solid #e5e7eb;border-radius:12px;background:white;cursor:pointer;transition:all 0.2s ease;box-shadow:0 2px 8px rgba(0,0,0,0.1)">\n <div style="display:flex;gap:16px;padding:16px">\n <div style="flex:1">\n <div style="font-weight:700;font-size:16px;color:#1f2937;margin-bottom:8px;line-height:1.3">${this.data.title}</div>\n <div style="font-size:14px;color:#64748b;margin-bottom:12px;line-height:1.5">${this.data.description}</div>\n <div style="font-size:12px;color:#3b82f6;display:flex;align-items:center;gap:4px">\n 🔗 ${this.data.url?new URL(this.data.url).hostname:""}\n </div>\n </div>\n ${this.data.image?`<div style="width:120px;height:90px;flex-shrink:0"><img src="${this.data.image}" style="width:100%;height:100%;object-fit:cover;border-radius:8px" /></div>`:""}\n </div>\n </div>`;t.querySelector(".link-preview-card").onclick=()=>window.open(this.data.url,"_blank")}else{t.innerHTML='\n <div style="border:1px solid #e5e7eb;background:#f8fafc;padding:12px;border-radius:8px;border-left:4px solid #3b82f6">\n <div style="display:grid;gap:8px">\n <div style="display:flex;gap:8px;margin-bottom:8px">\n <button class="tab-external" style="padding:6px 12px;border:1px solid #3b82f6;background:#3b82f6;color:white;border-radius:6px;font-size:12px;cursor:pointer">External Link</button>\n <button class="tab-internal" style="padding:6px 12px;border:1px solid #d1d5db;background:white;color:#64748b;border-radius:6px;font-size:12px;cursor:pointer">My Blog Posts</button>\n </div>\n\n <div class="external-form">\n <input class="b-url" style="font-size:12px;border:1px solid #d1d5db;border-radius:4px;padding:8px;outline:none;width:100%" placeholder="🔗 Paste URL here..." />\n </div>\n\n <div class="internal-form" style="display:none">\n <select class="blog-select" style="font-size:12px;border:1px solid #d1d5db;border-radius:4px;padding:8px;outline:none;width:100%;background:white;min-height:40px">\n <option value="">📚 Loading blogs...</option>\n </select>\n </div>\n\n <div class="preview-card" style="display:none;gap:12px;padding:12px;background:white;border-radius:8px;border:1px solid #e5e7eb">\n <div style="flex:1">\n <div class="preview-title" style="font-weight:600;margin-bottom:6px;color:#1f2937;font-size:14px"></div>\n <div class="preview-desc" style="font-size:12px;color:#64748b;margin-bottom:8px"></div>\n <div class="preview-url" style="font-size:11px;color:#3b82f6"></div>\n </div>\n <div style="width:80px;height:60px;background:#f3f4f6;border-radius:6px;overflow:hidden;flex-shrink:0">\n <img class="preview-img" style="width:100%;height:100%;object-fit:cover;display:none" />\n <div class="img-placeholder" style="display:flex;align-items:center;justify-content:center;height:100%;font-size:12px;color:#9ca3af">🌐</div>\n </div>\n </div>\n </div>\n </div>';const e=t.querySelector(".b-url"),n=t.querySelector(".preview-card"),i=t.querySelector(".tab-external"),a=t.querySelector(".tab-internal"),r=t.querySelector(".external-form"),s=t.querySelector(".internal-form"),l=t.querySelector(".blog-select");let o;this.loadPublishedBlogs(l),i.addEventListener("click",(()=>{i.style.background="#3b82f6",i.style.color="white",a.style.background="white",a.style.color="#64748b",r.style.display="block",s.style.display="none",n.style.display="none"})),a.addEventListener("click",(()=>{a.style.background="#3b82f6",a.style.color="white",i.style.background="white",i.style.color="#64748b",r.style.display="none",s.style.display="block",n.style.display="none"})),l.addEventListener("change",(async e=>{const n=e.target.selectedOptions[0];if(!n.value)return;const i=n.value,a=t.querySelector(".preview-card"),r=t.querySelector(".preview-title"),s=t.querySelector(".preview-desc"),l=t.querySelector(".preview-url"),o=t.querySelector(".preview-img"),d=t.querySelector(".img-placeholder");a.style.display="flex",r.textContent="Loading SEO data...",s.textContent="Please wait...",l.textContent=new URL(i).hostname;try{const e=await this.fetchSEOData(i);r.textContent=e.title,s.textContent=e.description,l.textContent=new URL(i).hostname,e.image?(o.src=e.image,o.style.display="block",d.style.display="none"):(o.style.display="none",d.style.display="flex"),a.onclick=()=>window.open(i,"_blank")}catch(c){r.textContent=n.dataset.title||"Unknown Title",s.textContent=n.dataset.desc||"No description available",o.style.display="none",d.style.display="flex"}})),e.addEventListener("input",(e=>{const i=e.target.value.trim();if(clearTimeout(o),i&&i.match(/^https?:\/\/.+/)){const e=new URL(i).hostname;n.style.display="flex",t.querySelector(".preview-title").textContent="Loading...",t.querySelector(".preview-desc").textContent="Fetching SEO data...",t.querySelector(".preview-url").textContent=e,o=setTimeout((async()=>{try{const a=await this.fetchSEOData(i);t.querySelector(".preview-title").textContent=a.title,t.querySelector(".preview-desc").textContent=a.description,t.querySelector(".preview-url").textContent=e;const r=t.querySelector(".preview-img"),s=t.querySelector(".img-placeholder");a.image&&(r.src=a.image,r.style.display="block",s.style.display="none"),n.onclick=()=>window.open(i,"_blank")}catch{t.querySelector(".preview-title").textContent="Failed to load SEO data",t.querySelector(".preview-desc").textContent=`Visit ${e}`}}),1500)}else n.style.display="none"}))}return this.wrapper=t,t}save(e){const t=e.querySelector(".b-url"),n=e.querySelector(".preview-title"),i=e.querySelector(".preview-desc"),a=e.querySelector(".preview-img");return{url:t?t.value:this.data.url||"",title:n?n.textContent:this.data.title||"",description:i?i.textContent:this.data.description||"",image:a?a.src:this.data.image||""}}}class Ite{static get isInline(){return!0}static get shortcut(){return"CMD+SHIFT+L"}static get sanitize(){return{a:{href:!0,target:"_blank",rel:"noopener noreferrer"}}}constructor({api:e}){this.api=e,this.button=null,this.state=!1}render(){return this.button=document.createElement("button"),this.button.type="button",this.button.innerHTML='<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>',this.button.classList.add("ce-inline-tool"),this.button}surround(e){this.state?this.unwrap(e):this.wrap(e)}wrap(e){const t=e.extractContents(),n=prompt("Enter URL:","https://");if(n&&"https://"!==n){const i=document.createElement("a");i.href=n,i.target="_blank",i.rel="noopener noreferrer",i.appendChild(t),e.insertNode(i),this.api.selection.expandToTag(i)}else e.insertNode(t)}unwrap(e){const t=this.api.selection.findParentTag("A"),n=e.extractContents();t.remove(),e.insertNode(n)}checkState(){const e=this.api.selection.findParentTag("A");return this.state=!!e,this.state?this.button.classList.add("ce-inline-tool--active"):this.button.classList.remove("ce-inline-tool--active"),this.state}static get title(){return"Link"}}class Fte extends yte{render(){const e=super.render(),t=e=>{if(!e)return;e.controls=!0,e.setAttribute("controls",""),e.playsInline=!0,e.preload="metadata",e.style.width="100%",e.style.height="auto",e.crossOrigin="anonymous",e.addEventListener("canplay",(()=>{a()})),e.addEventListener("error",(()=>{a()}));const t=e.querySelector("source"),n=e.currentSrc||e.src||t&&t.src;if(t&&!t.type&&n){"mp4"===(n.split(".").pop()||"").split("?")[0].toLowerCase()&&(t.type="video/mp4")}!e.src&&t&&t.src&&(e.src=t.src),e.load()};let n=null;const i=()=>{if(n)return;n=document.createElement("div"),n.className="custom-video-skeleton",n.style.cssText="\n position:absolute;\n top:0;left:0;width:100%;height:100%;\n display:flex;align-items:center;justify-content:center;\n background:rgba(240,240,240,0.9);\n z-index:10;\n font-size:18px;\n color:#888;\n ",n.innerHTML='<div>\n <svg width="48" height="48" viewBox="0 0 50 50">\n <circle cx="25" cy="25" r="20" fill="none" stroke="#bbb" stroke-width="5" stroke-linecap="round" stroke-dasharray="31.4 31.4" transform="rotate(-90 25 25)">\n <animateTransform attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="1s" repeatCount="indefinite"/>\n </circle>\n </svg>\n <div>Loading video...</div>\n </div>';const t=e.querySelector(".video-tool__video > div");t&&(t.style.position="relative",t.appendChild(n))},a=()=>{n&&n.parentNode&&(n.parentNode.removeChild(n),n=null)},r=e.querySelector("video");r&&r.src?t(r):i();return new MutationObserver((()=>{const n=e.querySelector("video");n&&(n.src?(a(),t(n)):i())})).observe(e,{childList:!0,subtree:!0}),e}}const Bte=()=>{const e=a.useRef(null),{post:t,setField:n}=mte(),i=Mt(),{isEdit:r=!1}=(null==i?void 0:i.state)||{},s=a.useRef(!1),l=um(),o={class:Fte,config:{inlineToolbar:!0,player:{pip:!1},uploader:{async uploadByFile(e){var t;try{const n=await l(zy(e)).unwrap();if(null==(t=null==n?void 0:n.data)?void 0:t.image){if(n.data.image.startsWith("data:"))throw alert("Video upload returned a data URL. This will not work for large files. Please check your backend."),new Error("Video upload returned a data URL");return{success:1,file:{url:n.data.image}}}throw new Error("Invalid response")}catch(n){return{success:0,message:"Video upload failed"}}},uploadByUrl:e=>Promise.resolve({success:1,file:{url:e}})}}};return a.useEffect((()=>{let i;return(async()=>{var a;e.current||(i=new Ie({holder:"editorjs",tools:{link:Fe,inlineLink:Ite,header:Cte,paragraph:{class:Be,config:{placeholder:"Click the + button below to add content blocks (headings, images, paragraphs, etc.)..."},toolbox:{title:"Paragraph",icon:'<svg width="17" height="15" viewBox="0 0 336 276" xmlns="http://www.w3.org/2000/svg"><path d="M291 150V79c0-19-15-34-34-34H79c-19 0-34 15-34 34v42l67-44 81 72 103-32z"/></svg>'},inlineToolbar:["inlineLink","bold","italic"]},list:Pe,image:{class:ke,config:{uploader:{async uploadByFile(e){var t;try{const n=await l(zy(e)).unwrap();if(null==(t=null==n?void 0:n.data)?void 0:t.image)return{success:1,file:{url:n.data.image}};throw new Error("Invalid response from upload API")}catch(n){return{success:0,message:"Image upload failed"}}},uploadByUrl:e=>Promise.resolve({success:1,file:{url:e}})}}},quote:Te,code:Ee,embed:De,callout:xte,cta:bte,email:wte,separator:jte,bookmark:Nte,video:o,link:Ste},placeholder:"✨ Click the + button below to add content blocks (headings, images, paragraphs, etc.)...",data:r&&(null==(a=null==t?void 0:t.blocks)?void 0:a.length)>0?{blocks:t.blocks}:{},onChange:async()=>{const e=await i.save();n("blocks",null==e?void 0:e.blocks)}}),e.current=i)})(),()=>{e.current&&(e.current.destroy(),e.current=null)}}),[r,l]),a.useEffect((()=>{var n;r&&e.current&&(null==(n=null==t?void 0:t.blocks)?void 0:n.length)>0&&!s.current&&e.current.isReady.then((()=>{e.current.render({blocks:t.blocks}),s.current=!0}))}),[null==t?void 0:t.blocks,r]),Ye.jsx("div",{id:"editorjs",style:{minHeight:"400px",padding:"20px"}})},Pte=()=>{const{post:e,setField:t}=mte(),n=um(),[i,r]=a.useState(!1);return Ye.jsxs("div",{className:"editor-panel feature-image-picker",children:[Ye.jsxs("h3",{className:"panel-title",children:[Ye.jsx(qm,{})," Feature Image"]}),Ye.jsx("p",{className:"panel-instruction",children:"Upload a featured image for your post. Recommended size: 1200x630px for optimal social media sharing."}),e.featureImage&&Ye.jsx("div",{className:"image-preview",children:Ye.jsx("img",{src:e.featureImage,alt:"Feature",className:"preview-image"})}),Ye.jsxs("div",{className:"upload-section",children:[Ye.jsx("input",{type:"file",accept:"image/*",onChange:async e=>{var i,a,s;const l=null==(i=e.target.files)?void 0:i[0];if(l){r(!0);try{const e=await n(zy(l)).unwrap();(null==(a=null==e?void 0:e.data)?void 0:a.image)&&t("featureImage",null==(s=null==e?void 0:e.data)?void 0:s.image)}catch(o){alert("Image upload failed. Try again.")}finally{r(!1)}}},className:"file-input",disabled:i,id:"feature-image-input"}),Ye.jsx("label",{htmlFor:"feature-image-input",className:"upload-button "+(i?"loading":""),children:i?Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Tv,{className:"spinner"})," Uploading..."]}):Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(qm,{})," ",e.featureImage?"Change Image":"Upload Image"]})})]})]})},kte=()=>{const{post:e}=mte(),t=a.useMemo((()=>{const t=(e.blocks||[]).filter((e=>"header"===e.type)),n=t.filter((e=>{var t;return 1===(null==(t=e.data)?void 0:t.level)})).length,i=t.filter((e=>{var t;return 2===(null==(t=e.data)?void 0:t.level)})).length,a=t.filter((e=>{var t;return 3===(null==(t=e.data)?void 0:t.level)})).length,r=[],s=[];0===n?r.push({type:"error",text:"Missing H1 tag - Add one H1 for main topic"}):n>1?r.push({type:"warning",text:`${n} H1 tags found - Use only one H1 per page`}):s.push({type:"success",text:"Perfect H1 structure ✓"}),0===i?s.push({type:"info",text:"Consider adding H2 tags for better structure"}):i<3?s.push({type:"info",text:`${i} H2 tags - Consider adding more sections`}):s.push({type:"success",text:`Good H2 structure with ${i} sections ✓`});const l=(e.seoTitle||"").length;0===l?r.push({type:"error",text:"Missing SEO title"}):l<30?r.push({type:"warning",text:"SEO title too short (< 30 chars)"}):l>60?r.push({type:"warning",text:"SEO title too long (> 60 chars)"}):s.push({type:"success",text:"SEO title length is optimal ✓"});const o=(e.seoDescription||"").length;return 0===o?r.push({type:"error",text:"Missing meta description"}):o<120?r.push({type:"warning",text:"Meta description too short (< 120 chars)"}):o>160?r.push({type:"warning",text:"Meta description too long (> 160 chars)"}):s.push({type:"success",text:"Meta description length is optimal ✓"}),{issues:r,suggestions:s,headings:{h1Count:n,h2Count:i,h3Count:a}}}),[e]),n=e=>{switch(e){case"error":return"#ef4444";case"warning":return"#f59e0b";case"success":return"#10b981";case"info":return"#3b82f6";default:return"#64748b"}};return Ye.jsxs("div",{style:{border:"1px solid #e5e7eb",borderRadius:8,padding:12,display:"grid",gap:10},children:[Ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[Ye.jsx(Bv,{style:{color:"#3b82f6"}}),Ye.jsx("span",{style:{fontSize:14,fontWeight:600,color:"#3b82f6"},children:"SEO Analysis"}),Ye.jsxs("span",{style:{fontSize:12,color:"#518fd1ff"},children:["H1: ",t.headings.h1Count," | H2: ",t.headings.h2Count," | H3: ",t.headings.h3Count]})]}),Ye.jsxs("div",{style:{display:"grid",gap:6},children:[t.issues.map(((e,t)=>Ye.jsxs("div",{style:{fontSize:12,color:n(e.type),display:"flex",alignItems:"center",gap:4},children:[Ye.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:n(e.type)}}),e.text]},t))),t.suggestions.map(((e,t)=>Ye.jsxs("div",{style:{fontSize:12,color:n(e.type),display:"flex",alignItems:"center",gap:4},children:[Ye.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:n(e.type)}}),e.text]},t)))]}),Ye.jsxs("div",{style:{fontSize:11,color:"#64748b",marginTop:4},children:[Ye.jsx(yv,{style:{marginRight:4}})," Use H1 for main title, H2 for sections, H3 for subsections"]})]})},Tte=({show:e,onClose:t})=>{const{post:n}=mte(),[i,r]=a.useState("desktop");if(!e)return null;return Ye.jsx("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0,0,0,0.8)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",padding:"20px"},children:Ye.jsxs("div",{style:{background:"#fff",borderRadius:"16px",width:"95vw",maxWidth:"1200px",height:"90vh",display:"flex",flexDirection:"column",boxShadow:"0 25px 50px rgba(0,0,0,0.25)"},children:[Ye.jsxs("div",{style:{padding:"20px 24px",borderBottom:"1px solid #e5e7eb",display:"flex",justifyContent:"space-between",alignItems:"center",background:"linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%)",borderRadius:"16px 16px 0 0"},children:[Ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[Ye.jsxs("h2",{style:{margin:0,fontSize:"20px",fontWeight:700,color:"#1f2937",fontFamily:"Poppins, sans-serif"},children:[Ye.jsx(Cv,{style:{marginRight:"8px"}}),"Preview"]}),Ye.jsx("div",{style:{display:"flex",gap:"8px"},children:["mobile","tablet","desktop"].map((e=>Ye.jsxs("button",{onClick:()=>r(e),style:{padding:"6px 12px",borderRadius:"6px",border:"none",background:i===e?"#3b82f6":"#e5e7eb",color:i===e?"white":"#64748b",fontSize:"12px",fontWeight:500,cursor:"pointer",fontFamily:"Poppins, sans-serif"},children:["mobile"===e?Ye.jsx(Cv,{}):"tablet"===e?Ye.jsx(Dv,{}):Ye.jsx(dv,{})," ",e]},e)))})]}),Ye.jsx("button",{onClick:t,style:{background:"#ef4444",border:"none",borderRadius:"8px",color:"white",width:"32px",height:"32px",cursor:"pointer",fontSize:"18px",fontWeight:"bold",fontFamily:"Poppins, sans-serif"},children:"×"})]}),Ye.jsx("div",{style:{flex:1,overflow:"auto",padding:"24px",display:"flex",justifyContent:"center",minHeight:0},children:Ye.jsxs("div",{style:{width:(()=>{switch(i){case"mobile":return"375px";case"tablet":return"768px";default:return"100%"}})(),maxWidth:"100%",minWidth:"mobile"===i?"375px":"auto",background:"#fff",borderRadius:"12px",boxShadow:"desktop"!==i?"0 8px 24px rgba(0,0,0,0.12)":"none",border:"desktop"!==i?"1px solid #e5e7eb":"none",padding:"desktop"!==i?"24px":"0",height:"fit-content",overflow:"visible"},children:[Ye.jsxs("div",{style:{marginBottom:"2em"},children:[Ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"1em"},children:[Ye.jsx("div",{style:{padding:"4px 12px",background:"PUBLISHED"===n.status?"#dcfce7":"#fef3c7",color:"PUBLISHED"===n.status?"#166534":"#92400e",borderRadius:"20px",fontSize:"12px",fontWeight:600,fontFamily:"Poppins, sans-serif"},children:n.status}),Ye.jsx("div",{style:{fontSize:"14px",color:"#6b7280",fontFamily:"Poppins, sans-serif"},children:(new Date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]}),Ye.jsx("h1",{style:{margin:"0 0 1em 0",fontSize:"mobile"===i?"28px":"32px",fontWeight:600,lineHeight:1.3,color:"#1f2937",fontFamily:"Poppins, sans-serif"},children:n.title||"Untitled Post"}),n.seoDescription&&Ye.jsx("p",{style:{fontSize:"18px",color:"#6b7280",lineHeight:1.6,margin:"0 0 1.5em 0",fontStyle:"italic",fontFamily:"Poppins, sans-serif"},children:n.seoDescription})]}),n.featureImage&&Ye.jsx("div",{style:{marginBottom:"2em"},children:Ye.jsx("img",{src:n.featureImage,alt:"Feature",style:{width:"100%",height:"mobile"===i?"200px":"300px",objectFit:"cover",borderRadius:"12px",boxShadow:"0 8px 24px rgba(0,0,0,0.12)"}})}),Ye.jsx("div",{style:{fontSize:"16px",lineHeight:1.6,wordWrap:"break-word",overflowWrap:"break-word",fontFamily:"Poppins, sans-serif"},children:n.blocks?n.blocks.map(((e,t)=>{var n,i;switch(e.type){case"header":const a=`h${e.data.level}`,r={1:{fontSize:"32px",fontWeight:600,margin:"1.5em 0 0.8em 0",color:"#1f2937",lineHeight:1.3,fontFamily:"Poppins, sans-serif"},2:{fontSize:"24px",fontWeight:500,margin:"1.2em 0 0.6em 0",color:"#374151",lineHeight:1.4,fontFamily:"Poppins, sans-serif"},3:{fontSize:"20px",fontWeight:500,margin:"1em 0 0.5em 0",color:"#4b5563",lineHeight:1.4,fontFamily:"Poppins, sans-serif"},4:{fontSize:"18px",fontWeight:500,margin:"1em 0 0.5em 0",color:"#6b7280",lineHeight:1.4,fontFamily:"Poppins, sans-serif"}};return Ye.jsx(a,{style:r[e.data.level],children:e.data.text},t);case"link":return Ye.jsx("a",{href:e.data.url,target:e.data.target||"_self",style:{color:"#3b82f6",textDecoration:"underline",fontFamily:"Poppins, sans-serif",fontSize:"16px",display:"inline-block",margin:"0.5em 0"},children:e.data.text},t);case"paragraph":return Ye.jsx("p",{style:{margin:"0 0 1em 0",lineHeight:1.6,color:"#374151",fontSize:"16px",fontWeight:400,fontFamily:"Poppins, sans-serif"},dangerouslySetInnerHTML:{__html:e.data.text}},t);case"list":{const n=e.data||{},i=n.style||"unordered",a=Array.isArray(n.items)?n.items:[];if("checklist"===i)return Ye.jsx("ul",{style:{listStyle:"none",paddingLeft:0},children:a.map(((e,t)=>{var n;return Ye.jsxs("li",{style:{display:"flex",alignItems:"center",marginBottom:"0.5em",color:"#374151",fontFamily:"Poppins, sans-serif"},children:[Ye.jsx("input",{type:"checkbox",checked:(null==(n=e.meta)?void 0:n.checked)||!1,readOnly:!0,style:{marginRight:"8px"}}),Ye.jsx("span",{style:{fontFamily:"Poppins, sans-serif"},children:e.content})]},t)}))},t);const r="ordered"===i?"ol":"ul";return Ye.jsx(r,{style:{margin:"0 0 1.2em 0",paddingLeft:"1.5em",lineHeight:1.6},children:a.map(((e,t)=>Ye.jsx("li",{style:{marginBottom:"0.5em",color:"#374151",fontFamily:"Poppins, sans-serif"},children:e.content},t)))},t)}case"quote":return Ye.jsx("blockquote",{style:{margin:"1.5em 0",padding:"1.5em 2em",borderLeft:"4px solid #3b82f6",background:"linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%)",fontStyle:"italic",borderRadius:"0 8px 8px 0",fontSize:"18px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)"},children:Ye.jsx("div",{style:{color:"#1e40af",fontWeight:500,fontFamily:"Poppins, sans-serif"},children:e.data.text})},t);case"code":return Ye.jsx("pre",{style:{background:"linear-gradient(135deg, #1f2937 0%, #111827 100%)",color:"#f9fafb",padding:"1.5em",borderRadius:"12px",overflow:"auto",margin:"1.5em 0",fontSize:"14px",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",border:"1px solid #374151"},children:Ye.jsx("code",{style:{fontFamily:"Poppins, monospace"},children:e.data.code})},t);case"image":return Ye.jsxs("div",{style:{margin:"2em 0",textAlign:"center"},children:[Ye.jsx("img",{src:(null==(n=e.data.file)?void 0:n.url)||e.data.url,alt:e.data.caption||"Image",style:{maxWidth:"100%",width:"100%",height:"auto",borderRadius:"12px",boxShadow:"0 8px 24px rgba(0,0,0,0.12)",display:"block"},onError:e=>{e.target.style.display="none",e.target.nextSibling&&(e.target.nextSibling.textContent="Image failed to load")}}),e.data.caption&&Ye.jsx("p",{style:{fontSize:"14px",color:"#6b7280",marginTop:"0.5em",fontStyle:"italic",fontFamily:"Poppins, sans-serif"},children:e.data.caption})]},t);case"callout":return Ye.jsxs("div",{style:{background:"linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%)",border:"1px solid #fb923c",borderRadius:"12px",padding:"1.5em",margin:"1.5em 0",display:"flex",alignItems:"flex-start",gap:"12px"},children:[Ye.jsx("span",{style:{fontSize:"24px"},children:Ye.jsx(yv,{})}),Ye.jsx("div",{style:{flex:1,color:"#9a3412",fontWeight:500,fontFamily:"Poppins, sans-serif"},children:e.data.text})]},t);case"cta":return Ye.jsxs("div",{style:{background:"linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%)",border:"2px solid #3b82f6",borderRadius:"16px",padding:"2em",margin:"2em 0",textAlign:"center"},children:[Ye.jsx("h3",{style:{margin:"0 0 0.5em 0",color:"#1e40af",fontSize:"24px",fontFamily:"Poppins, sans-serif"},children:e.data.heading}),Ye.jsx("p",{style:{margin:"0 0 1.5em 0",color:"#3730a3",fontSize:"16px",fontFamily:"Poppins, sans-serif"},children:e.data.subheading}),Ye.jsx("a",{href:e.data.buttonUrl,style:{display:"inline-block",padding:"12px 24px",background:"#3b82f6",color:"white",textDecoration:"none",borderRadius:"8px",fontWeight:600,fontSize:"16px",fontFamily:"Poppins, sans-serif"},children:e.data.buttonText})]},t);case"bookmark":return Ye.jsx("div",{style:{margin:"1.5em 0"},children:Ye.jsx("a",{href:e.data.url,target:"_blank",rel:"noopener noreferrer",style:{display:"block",textDecoration:"none",border:"1px solid #e5e7eb",borderRadius:"12px",background:"white",cursor:"pointer",transition:"all 0.2s ease",boxShadow:"0 2px 8px rgba(0,0,0,0.1)"},children:Ye.jsxs("div",{style:{display:"flex",gap:"16px",padding:"16px"},children:[Ye.jsxs("div",{style:{flex:1},children:[Ye.jsx("div",{style:{fontWeight:700,fontSize:"16px",color:"#1f2937",marginBottom:"8px",lineHeight:1.3,fontFamily:"Poppins, sans-serif"},children:e.data.title}),Ye.jsx("div",{style:{fontSize:"14px",color:"#64748b",marginBottom:"12px",lineHeight:1.5,fontFamily:"Poppins, sans-serif"},children:e.data.description}),Ye.jsxs("div",{style:{fontSize:"12px",color:"#3b82f6",display:"flex",alignItems:"center",gap:"4px",fontFamily:"Poppins, sans-serif"},children:[Ye.jsx(xv,{style:{marginRight:"4px"}})," ",e.data.url?new URL(e.data.url).hostname:""]})]}),e.data.image&&Ye.jsx("div",{style:{width:"120px",height:"90px",flexShrink:0},children:Ye.jsx("img",{src:e.data.image,alt:e.data.title,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"8px"},onError:e=>{e.target.style.display="none"}})})]})})},t);case"video":const s=(null==(i=e.data.file)?void 0:i.url)||e.data.url;return Ye.jsxs("div",{style:{margin:"2em 0",textAlign:"center"},children:[Ye.jsx("div",{style:{position:"relative",paddingBottom:"56.25%",height:0,borderRadius:"12px",overflow:"hidden",boxShadow:"0 8px 24px rgba(0,0,0,0.12)"},children:Ye.jsx("video",{src:s,controls:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"12px"}})}),e.data.caption&&Ye.jsx("p",{style:{fontSize:"14px",color:"#6b7280",marginTop:"0.5em",fontStyle:"italic",fontFamily:"Poppins, sans-serif"},children:e.data.caption})]},t);case"index":const l=e.data.items||[],o="numbered"===e.data.style?"ol":"ul";return Ye.jsxs("div",{style:{border:"1px solid #e5e7eb",background:"#fefefe",padding:"16px",borderRadius:"8px",borderLeft:"4px solid #059669",margin:"1.5em 0",position:"sticky",top:"20px",zIndex:10},children:[Ye.jsxs("h4",{style:{margin:"0 0 12px 0",fontSize:"16px",fontWeight:600,fontFamily:"Poppins, sans-serif"},children:[Ye.jsx(bv,{style:{marginRight:"8px"}}),"Table of Contents"]}),Ye.jsx(o,{style:{margin:0,paddingLeft:"numbered"===e.data.style?"1.5em":"1em",listStyle:"numbered"===e.data.style?"decimal":"disc"},children:l.map(((e,t)=>Ye.jsx("li",{style:{padding:"4px 0",fontSize:"14px",fontFamily:"Poppins, sans-serif"},children:Ye.jsx("a",{href:`#${e.anchor}`,style:{color:"#3b82f6",textDecoration:"none",borderBottom:"1px solid transparent",transition:"all 0.2s ease"},onMouseEnter:e=>e.target.style.borderBottomColor="#3b82f6",onMouseLeave:e=>e.target.style.borderBottomColor="transparent",children:e.title})},t)))})]},t);default:return null}})):Ye.jsxs("div",{style:{textAlign:"center",padding:"3em 0",color:"#64748b",fontFamily:"Poppins, sans-serif"},children:[Ye.jsx("div",{style:{fontSize:"48px",marginBottom:"1em"},children:Ye.jsx(cv,{})}),Ye.jsx("p",{style:{fontFamily:"Poppins, sans-serif"},children:"No content to preview yet"}),Ye.jsx("p",{style:{fontSize:"14px",fontFamily:"Poppins, sans-serif"},children:"Start adding content blocks to see your preview"})]})})]})})]})})},Ete=e=>e?null==e?void 0:e.reduce(((e,t)=>{if(t.data&&t.data.text){return e+t.data.text.replace(/<[^>]*>/g,"").split(/\s+/).filter((e=>e.length>0)).length}return e}),0):0,Dte=e=>Math.ceil(e/200),Lte=()=>{const{post:e}=mte(),t=a.useMemo((()=>{const t=e.blocks||[],n=Ete(e.blocks),i=t.reduce(((e,t)=>{var n;return(null==(n=t.data)?void 0:n.text)?e+t.data.text.length:e}),0),a=t.filter((e=>"header"===e.type)),r=t.filter((e=>"paragraph"===e.type)),s=t.filter((e=>"image"===e.type)),l=t.filter((e=>"list"===e.type));return{words:n,characters:i,charactersNoSpaces:i-(e.title||"").split(" ").length+1,readingTime:Dte(n),blocks:t.length,headings:a.length,paragraphs:r.length,images:s.length,lists:l.length}}),[e]),n=[{label:"Words",value:t.words,icon:Ye.jsx(Sv,{}),color:"#3b82f6"},{label:"Characters",value:t.characters,icon:Ye.jsx(hv,{}),color:"#8b5cf6"},{label:"Reading Time",value:`${t.readingTime} min`,icon:Ye.jsx(iv,{}),color:"#10b981"},{label:"Blocks",value:t.blocks,icon:Ye.jsx(ov,{}),color:"#f59e0b"},{label:"Headings",value:t.headings,icon:Ye.jsx(mv,{}),color:"#ef4444"},{label:"Paragraphs",value:t.paragraphs,icon:Ye.jsx(pv,{}),color:"#06b6d4"},{label:"Images",value:t.images,icon:Ye.jsx(gv,{}),color:"#84cc16"},{label:"Lists",value:t.lists,icon:Ye.jsx(bv,{}),color:"#f97316"}];return Ye.jsxs("div",{style:{border:"1px solid #e5e7eb",borderRadius:8,padding:12},children:[Ye.jsxs("div",{style:{fontSize:14,fontWeight:400,marginBottom:12,color:"#007bff",display:"flex",alignItems:"center",gap:6},children:[Ye.jsx(Km,{style:{color:"#3b82f6",fontSize:"14px"}})," Content Metrics"]}),Ye.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:n.map(((e,t)=>Ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"6px 8px",background:"#f8fafc",borderRadius:4},children:[Ye.jsx("span",{style:{fontSize:12,color:e.color},children:e.icon}),Ye.jsxs("div",{style:{flex:1},children:[Ye.jsx("div",{style:{fontSize:11,color:"#64748b"},children:e.label}),Ye.jsx("div",{style:{fontSize:13,fontWeight:600,color:"#1f2937"},children:e.value})]})]},t)))})]})},Ute=({label:e,value:t,onChange:n,max:i,multiline:r,fieldType:s})=>{const{post:l}=mte(),o=(t||"").length,d=o>i?"#ef4444":o>.9*i?"#d97706":"#64748b",c=a.useMemo((()=>{const e=l.title||"",t=l.blocks||[];if(!e&&0===t.length)return[];const n=t.filter((e=>"header"===e.type)).map((e=>{var t;return(null==(t=e.data)?void 0:t.text)||""})),i=t.filter((e=>"paragraph"===e.type)).map((e=>{var t;return(null==(t=e.data)?void 0:t.text)||""})),a=[...n,...i].join(" "),r=i.find((e=>e.length>20))||i[0]||"",o=r.slice(0,100),d=(e+" "+a).toLowerCase().split(/\s+/).filter((e=>e.length>3&&!["this","that","with","from","they","have","been","will","your","what","when","where","there","their","these","those"].includes(e))),c={};d.forEach((e=>{c[e]=(c[e]||0)+1}));const u=Object.entries(c).sort((([,e],[,t])=>t-e)).slice(0,5).map((([e])=>e)),p=n.slice(0,3);switch(s){case"seoTitle":if(!e&&0===p.length)return[];const t=e||p[0]||"";return[t,p.length>1?`${t}: ${p[1]}`:`${t} - Complete Guide`,u.length>0?`${t} ${u[0]} Guide`:`How to ${t}`,o?`${t} - ${o.split(" ").slice(0,4).join(" ")}`:`${t} Tips & Tricks`].filter((e=>e.length<=60&&e.trim())).slice(0,4);case"seoDescription":if(!o&&!e)return[];return[o?`${o}... Learn more about ${e||"this topic"}.`:`Discover ${e} with our guide.`,r?`${r.slice(0,120)}...`:`Complete guide to ${e}. Tips, examples, and best practices.`,p.length>0?`Learn about ${p.join(", ")}. ${o.slice(0,80)}...`:`${e} explained with practical examples and actionable advice.`].filter((e=>e.length<=160&&e.trim())).slice(0,3);case"focusKeyword":return u.slice(0,3);default:return[]}}),[l.title,l.blocks,s]);return Ye.jsxs("div",{style:{display:"grid",gap:6},children:[Ye.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[Ye.jsx("label",{style:{fontSize:14,color:"#007bff",fontFamily:"Poppins"},children:e}),Ye.jsxs("span",{style:{fontSize:12,color:d},children:[o,"/",i]})]}),r?Ye.jsx("textarea",{rows:3,value:t||"",onChange:e=>n(e.target.value),style:{padding:8,border:"1px solid #e5e7eb",borderRadius:6}}):Ye.jsx("input",{value:t||"",onChange:e=>n(e.target.value),style:{padding:8,border:"1px solid #e5e7eb",borderRadius:6,fontFamily:"Poppins"}}),c.length>0&&Ye.jsxs("div",{style:{display:"grid",gap:4},children:[Ye.jsxs("div",{style:{fontSize:10,color:"#64748b",fontWeight:500,display:"flex",alignItems:"center",gap:4,fontFamily:"Poppins"},children:[Ye.jsx(yv,{size:12,color:"#d1b200ff"})," Suggestions:"]}),"focusKeyword"===s?Ye.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:4,fontFamily:"Poppins"},children:c.map(((e,t)=>Ye.jsx("button",{onClick:()=>n(e),style:{padding:"2px 6px",background:"#eff6ff",border:"1px solid #3b82f6",borderRadius:8,fontSize:10,cursor:"pointer",color:"#1e40af",fontFamily:"Poppins"},onMouseOver:e=>e.target.style.background="#dbeafe",onMouseOut:e=>e.target.style.background="#eff6ff",children:e},t)))}):c.slice(0,3).map(((e,t)=>Ye.jsx("button",{onClick:()=>n(e),style:{display:"block",width:"100%",textAlign:"left",padding:"4px 6px",background:"#f8fafc",border:"1px solid #e5e7eb",borderRadius:4,fontSize:10,cursor:"pointer",color:"#374151",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontFamily:"Poppins"},onMouseOver:e=>e.target.style.background="#eff6ff",onMouseOut:e=>e.target.style.background="#f8fafc",title:e,children:e},t)))]})]})},_te=()=>{const{post:e,setField:t}=mte();return a.useState(!1),Ye.jsxs("div",{style:{border:"1px solid #e5e7eb",borderRadius:8,padding:12},children:[Ye.jsxs("div",{style:{fontSize:14,fontWeight:400,marginBottom:12,color:"#007bff",display:"flex"},children:[Ye.jsx(En,{size:16,style:{marginRight:6,marginTop:2}})," Publishing"]}),Ye.jsxs("div",{style:{display:"grid",gap:10},children:[Ye.jsxs("div",{children:[Ye.jsx("label",{style:{fontSize:12,color:"#64748b",display:"block",marginBottom:4},children:"Publish Date"}),Ye.jsx("input",{type:"datetime-local",value:e.publishDate||"",onChange:e=>t("publishDate",e.target.value),min:(new Date).toISOString().slice(0,16),style:{width:"100%",padding:6,border:"1px solid #e5e7eb",borderRadius:4,fontSize:12}})]}),Ye.jsxs("div",{children:[Ye.jsx("label",{style:{fontSize:12,color:"#64748b",display:"block",marginBottom:4},children:"Category"}),Ye.jsxs("select",{value:e.category||"",onChange:e=>t("category",e.target.value),style:{width:"100%",padding:6,border:"1px solid #e5e7eb",borderRadius:4,fontSize:12},children:[Ye.jsx("option",{value:"",children:"Select Category"}),Ye.jsx("option",{value:"technology",children:"Technology"}),Ye.jsx("option",{value:"business",children:"Business"}),Ye.jsx("option",{value:"lifestyle",children:"Lifestyle"}),Ye.jsx("option",{value:"health",children:"Health"}),Ye.jsx("option",{value:"education",children:"Education"})]})]}),Ye.jsxs("div",{children:[Ye.jsx("label",{style:{fontSize:12,color:"#64748b",display:"block",marginBottom:4},children:"Author"}),Ye.jsx("input",{value:e.author||"",onChange:e=>t("author",e.target.value),placeholder:"Author name",style:{width:"100%",padding:6,border:"1px solid #e5e7eb",borderRadius:4,fontSize:12}})]}),Ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:8},children:[Ye.jsx("input",{type:"checkbox",id:"popular",checked:e.popular||!1,onChange:e=>t("popular",e.target.checked)}),Ye.jsxs("label",{htmlFor:"popular",style:{fontSize:12,color:"#374151"},children:[Ye.jsx(fi,{size:16,color:"#eeca00ff",style:{marginRight:4}})," Featured Post"]})]}),Ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[Ye.jsx("input",{type:"checkbox",id:"comments",checked:!1!==e.allowComments,onChange:e=>t("allowComments",e.target.checked)}),Ye.jsxs("label",{htmlFor:"comments",style:{fontSize:12,color:"#374151",display:"flex"},children:[Ye.jsx(Vn,{color:"#0f56dbff",size:16,style:{marginRight:4}})," Allow Comments"]})]})]})]})},Ote=()=>{const{post:e}=mte(),t=a.useMemo((()=>{const t=(e.blocks||[]).filter((e=>"paragraph"===e.type)).map((e=>{var t;return(null==(t=e.data)?void 0:t.text)||""})),n=t.join(" ").split(/[.!?]+/).filter((e=>e.trim().length>0)),i=n.length>0?n.reduce(((e,t)=>e+t.trim().split(/\s+/).length),0)/n.length:0,a=n.filter((e=>e.trim().split(/\s+/).length>20)).length,r=t.filter((e=>e.split(/\s+/).length<50)).length,s=Math.max(0,Math.min(100,100-2*i-5*a+2*r));return{score:Math.round(s),avgWordsPerSentence:Math.round(i),longSentences:a,shortParagraphs:r,totalSentences:n.length,totalParagraphs:t.length}}),[e.blocks]),n=e=>e>=80?"#10b981":e>=60?"#f59e0b":"#ef4444";return Ye.jsxs("div",{style:{border:"1px solid #e5e7eb",borderRadius:8,padding:12},children:[Ye.jsxs("div",{style:{fontSize:14,fontWeight:400,marginBottom:12,color:"#007bff"},children:[Ye.jsx(Vm,{style:{marginRight:6}})," Readability Analysis"]}),Ye.jsxs("div",{style:{display:"grid",gap:8},children:[Ye.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",background:"#f8fafc",borderRadius:6},children:[Ye.jsx("span",{style:{fontSize:12,fontWeight:500},children:"Readability Score"}),Ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[Ye.jsx("span",{style:{fontSize:16,fontWeight:700,color:n(t.score)},children:t.score}),Ye.jsx("span",{style:{fontSize:10,color:n(t.score)},children:(i=t.score,i>=80?"Excellent":i>=60?"Good":i>=40?"Fair":"Needs Work")})]})]}),Ye.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:6,fontSize:11},children:[Ye.jsxs("div",{style:{padding:"6px 8px",background:"#f1f5f9",borderRadius:4},children:[Ye.jsx("div",{style:{color:"#64748b"},children:"Avg Words/Sentence"}),Ye.jsx("div",{style:{fontWeight:600,color:"#1f2937"},children:t.avgWordsPerSentence})]}),Ye.jsxs("div",{style:{padding:"6px 8px",background:"#f1f5f9",borderRadius:4},children:[Ye.jsx("div",{style:{color:"#64748b"},children:"Long Sentences"}),Ye.jsx("div",{style:{fontWeight:600,color:"#1f2937"},children:t.longSentences})]}),Ye.jsxs("div",{style:{padding:"6px 8px",background:"#f1f5f9",borderRadius:4},children:[Ye.jsx("div",{style:{color:"#64748b"},children:"Total Sentences"}),Ye.jsx("div",{style:{fontWeight:600,color:"#1f2937"},children:t.totalSentences})]}),Ye.jsxs("div",{style:{padding:"6px 8px",background:"#f1f5f9",borderRadius:4},children:[Ye.jsx("div",{style:{color:"#64748b"},children:"Paragraphs"}),Ye.jsx("div",{style:{fontWeight:600,color:"#1f2937"},children:t.totalParagraphs})]})]}),Ye.jsxs("div",{style:{fontSize:10,color:"#64748b",fontStyle:"italic",marginTop:4,display:"flex"},children:[Ye.jsx(yv,{color:"#eeca00",size:14,style:{marginRight:4}})," Aim for 15-20 words per sentence for better readability"]})]})]});var i},Mte=()=>{const{post:e}=mte(),[t,n]=a.useState([]),[i,r]=a.useState(!1);a.useState(null);const[s,l]=a.useState(""),[o,d]=a.useState(!1);a.useEffect((()=>{if(e.blocks&&Array.isArray(e.blocks)){const t=[];e.blocks.forEach(((e,n)=>{if("header"===e.type){const i=e.data.level||1,a=e.data.text||`Header ${n+1}`,r=`header-${n}`;t.push({type:"header",text:a.replace(/<[^>]*>/g,""),level:i,id:r,index:n})}if("bookmark"===e.type){const i=e.data.title||"Untitled Bookmark",a=e.data.description||"",r=e.data.url||"",s=`bookmark-${n}`;t.push({type:"bookmark",text:i,description:a,url:r,preview:a.length>30?a.substring(0,30)+"...":a,id:s,index:n})}})),n(t)}}),[e.blocks]);return 0===t.length?null:Ye.jsxs("div",{className:"outline-panel "+(i?"outline-panel--collapsed":"outline-panel--expanded"),children:[Ye.jsx("div",{className:"outline-header",children:i?Ye.jsx(F,{title:"Indexing",placement:"left",children:Ye.jsx("button",{onClick:()=>r(!1),className:"outline-btn outline-btn--expand",children:Ye.jsx($D,{size:16})})}):Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"outline-header__content",children:[Ye.jsxs("div",{className:"outline-header__title",children:[Ye.jsx($D,{size:14})," Smart Outline",Ye.jsx("span",{className:"outline-header__badge",children:t.length})]}),Ye.jsxs("div",{className:"outline-header__actions",children:[Ye.jsx("button",{onClick:()=>d(!o),className:"outline-btn outline-btn--search "+(o?"active":""),children:Ye.jsx(KD,{size:12})}),Ye.jsx("button",{onClick:()=>r(!0),className:"outline-btn outline-btn--collapse",children:Ye.jsx(HD,{size:14})})]})]}),o&&Ye.jsx("input",{type:"text",placeholder:"Search outline...",value:s,onChange:e=>l(e.target.value),className:"outline-search"})]})}),!i&&Ye.jsxs("div",{className:"outline-content",children:[Ye.jsxs("div",{className:"outline-stats",children:[Ye.jsxs("span",{className:"outline-stats__item",children:[Ye.jsx(QD,{size:11})," ",t.filter((e=>"header"===e.type)).length]}),Ye.jsxs("span",{className:"outline-stats__item",children:[Ye.jsx(RD,{size:11})," ",t.filter((e=>"bookmark"===e.type)).length]}),Ye.jsxs("span",{className:"outline-stats__item",children:[Ye.jsx(VD,{size:11})," ~",Math.max(1,Math.ceil(t.length/3)),"min"]})]}),Ye.jsx("div",{className:"outline-list",children:t.filter((e=>e.text.toLowerCase().includes(s.toLowerCase())||e.description&&e.description.toLowerCase().includes(s.toLowerCase())||e.url&&e.url.toLowerCase().includes(s.toLowerCase()))).map(((e,t)=>Ye.jsxs("button",{onClick:()=>(e=>{const t=document.querySelectorAll("#editorjs .ce-block");t[e]&&(t[e].scrollIntoView({behavior:"smooth",block:"center"}),t[e].style.background="rgba(59, 130, 246, 0.1)",t[e].style.borderRadius="8px",t[e].style.transition="all 0.3s ease",setTimeout((()=>{t[e].style.background="",t[e].style.borderRadius=""}),1500))})(e.index),className:`outline-item outline-item--${e.type} ${"header"===e.type?`level-${e.level}`:""}`,children:[Ye.jsx("span",{className:"outline-item__icon",children:"header"===e.type?1===e.level?Ye.jsx(zD,{size:14}):2===e.level?Ye.jsx(YD,{size:14}):Ye.jsx($D,{size:14}):Ye.jsx(qD,{size:14})}),Ye.jsxs("div",{className:"outline-item__content",children:[Ye.jsx("span",{className:"outline-item__text",children:e.text}),"bookmark"===e.type&&e.description&&Ye.jsx("span",{className:"outline-item__description",children:e.preview||e.description}),"bookmark"===e.type&&e.url&&Ye.jsx("span",{className:"outline-item__url",children:e.url.length>40?e.url.substring(0,40)+"...":e.url})]}),"header"===e.type&&Ye.jsxs("span",{className:"outline-item__level",children:["H",e.level]})]},t)))})]})]})};function Rte(e){const t=Qt(),[n,i]=a.useState(!1),[r,s]=a.useState(!1),[o,d]=a.useState(null);!function(e,t){let{capture:n}=t||{};a.useEffect((()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}}),[e,n])}(l.useCallback((t=>{if(e&&!r)return t.preventDefault(),t.returnValue="You have unsaved changes. Are you sure you want to leave?"}),[e,r])),a.useEffect((()=>{if(!e||r)return;const t=e=>{e.preventDefault(),e.stopImmediatePropagation(),window.history.pushState(null,"",window.location.pathname),d({action:"POP",path:-1}),i(!0)};return window.history.pushState(null,"",window.location.pathname),window.addEventListener("popstate",t),()=>{window.removeEventListener("popstate",t)}}),[e,r]);return{showPrompt:n,handleConfirm:()=>{i(!1),s(!0),o&&("POP"===o.action?setTimeout((()=>{window.history.back()}),50):"PUSH"===o.action&&setTimeout((()=>{t(o.path)}),50)),setTimeout((()=>{s(!1),d(null)}),200)},handleCancel:()=>{i(!1),d(null),window.history.pushState(null,"",window.location.pathname)},blockNavigation:t=>!(!e||r)&&(d({action:"PUSH",path:t}),i(!0),!0)}}const Qte={primary:"#2563eb",primaryHover:"#1d4ed8",success:"#059669",successHover:"#047857",danger:"#dc2626",dangerHover:"#b91c1c",warning:"#d97706",gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"}},Hte={sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"};function Vte({show:e,msg:t}){return e?Ye.jsx("div",{className:"toast "+(e?"show":"hide"),children:Ye.jsxs("div",{className:"toast-content",children:[Ye.jsx("span",{className:"toast-icon",children:Ye.jsx(Xm,{})}),t]})}):null}function zte({status:e}){const t="PUBLISH"===e,n=t?Ye.jsx(nv,{style:{color:"#10b981"}}):Ye.jsx(nv,{style:{color:"#f59e0b"}});return Ye.jsxs("span",{className:"status-chip "+(t?"published":"draft"),children:[Ye.jsx("span",{className:"status-icon",children:n}),e]})}function qte({onExport:e,onImportClick:t,showPreview:n,setShowPreview:i}){var r,s,l;const{post:o,setPost:d,setField:c,saveToServer:u,saving:p,savedAt:A,hasUnsavedChanges:h}=mte(),{toast:f,show:m,msg:v}=(()=>{const[e,t]=a.useState(!1),[n,i]=a.useState("");return{toast:e=>{i(e),t(!0),setTimeout((()=>t(!1)),3e3)},show:e,msg:n}})(),g=Mt(),{blog:y,isEdit:x}=g.state||{};a.useState(!1);const[b,w]=a.useState(null),[j,C]=a.useState(null),S=Qt();Rte(h),a.useEffect((()=>{const e=e=>{(e.ctrlKey||e.metaKey)&&"s"===e.key.toLowerCase()&&(e.preventDefault(),u().then((e=>{const{success:t,error:n,data:i}=e;w(t?"success":"error"),C(t?null==i?void 0:i.response:n)})))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[f]),a.useEffect((()=>{var e,t;x&&y&&d({title:y.BlogTitle,seoDescription:y.SEOBlogSubTitle,seoTitle:y.SEOBlogTitle,publishDate:y.PublishDate?(null==(t=null==(e=y.PublishDate)?void 0:e.split("T"))?void 0:t[0])+"T"+y.PublishTime:null,publishTime:y.PublishTime,blocks:y.BlogContent,id:y.BlogId,featureImage:null==y?void 0:y.HeaderImage,status:"Y"===(null==y?void 0:y.IsPublished)?"PUBLISH":"DRAFT",focusKeyword:null==y?void 0:y.Keywords.join(" "),author:null==y?void 0:y.Author,popular:"Y"===(null==y?void 0:y.Popular),featured:"Y"===(null==y?void 0:y.IsFeatured),allowComments:"Y"===(null==y?void 0:y.AllowComments),slug:null==y?void 0:y.Slug})}),[x,y]),a.useMemo((()=>p?"Saving…":A?`Server: ${A.toLocaleTimeString()}`:h?"Draft saved locally":"No changes"),[p,A,h]);const N=()=>{S("/home/adminpanel")},I=a.useCallback((()=>{C(null),w(null)}),[]),[F,B]=a.useState(!1),[P,k]=a.useState(null),T=async()=>{const e="PUBLISH"===o.status,t=e?"DRAFT":"PUBLISH",n=await u({status:t}),{success:i,error:a}=n;w(i?"success":"error"),C(i?e?"Moved to Draft":"Published successfully!":a)};return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:b,messageData:j,onComplete:I}),Ye.jsxs("div",{className:"header-bar",children:[Ye.jsx(xe,{title:"Leave Page?",description:"You have unsaved changes. Are you sure you want to leave?",onConfirm:N,okText:"Yes",cancelText:"No",disabled:!h,children:Ye.jsx("button",{className:"backfromblg",onClick:h?void 0:N,children:Ye.jsx(Zg,{})})}),Ye.jsx("input",{className:"title-input",placeholder:"Add your post title here...",value:o.title,onChange:e=>c("title",e.target.value)}),"PUBLISH"===o.status&&Ye.jsxs("span",{className:"live-badge animate-pulse",children:[Ye.jsx(fv,{})," LIVE"]}),(null==(r=null==o?void 0:o.blocks)?void 0:r.length)>0&&Ye.jsxs("div",{className:"status-controls",children:[Ye.jsx(zte,{status:o.status}),Ye.jsx(xe,{title:"Publish Post?",description:"Are you sure you want to publish this post?",open:F,onConfirm:async()=>{B(!1);const e=await u({status:P}),{success:t,error:n}=e;w(t?"success":"error"),C(t?"Published successfully!":n),k(null)},onCancel:()=>{B(!1),k(null)},okText:"Yes",cancelText:"No",children:Ye.jsxs("select",{className:"status-select",value:o.status,onChange:e=>{var t;"PUBLISH"===(t=e.target.value)?(k(t),B(!0)):c("status",t)},children:[Ye.jsx("option",{value:"DRAFT",children:"Draft"}),Ye.jsx("option",{value:"PUBLISH",children:"Publish"})]})})]}),(null==(s=null==o?void 0:o.blocks)?void 0:s.length)>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("button",{className:"save-button",onClick:()=>{u().then((e=>{const{success:t,error:n,data:i}=e;w(t?"success":"error"),C(t?null==i?void 0:i.response:n)}))},disabled:p,title:"Ctrl/Cmd + S",children:p?Ye.jsx(Ye.Fragment,{children:Ye.jsx("span",{className:"animate-spin",children:Ye.jsx(vv,{})})}):Ye.jsx(Ye.Fragment,{children:Ye.jsx(Bn,{size:22})})}),p&&Ye.jsx("div",{className:"save-status",children:Ye.jsx("div",{className:"save-indicator",children:Ye.jsx("div",{className:"status-dot "+(p?"saving":A?"saved":"unsaved")})})})]}),(null==(l=null==o?void 0:o.blocks)?void 0:l.length)>0&&Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{className:"action-buttons",children:[Ye.jsx("button",{className:"btn-primary",onClick:()=>i(!0),children:"Preview"}),Ye.jsx(xe,{title:"Publish Post?",description:"Are you sure you want to publish this post?",onConfirm:T,okText:"Yes",cancelText:"No",disabled:"PUBLISH"===o.status,children:Ye.jsx("button",{className:"btn-"+("PUBLISH"===o.status?"danger":"success"),onClick:"PUBLISH"===o.status?T:void 0,children:"PUBLISH"===o.status?Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(cv,{})," Unpublish"]}):Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Fv,{})," Publish"]})})})]})})]}),Ye.jsx(Vte,{show:m,msg:v}),Ye.jsx(Tte,{show:n,onClose:()=>i(!1)})]})}function Wte(){var e,t,n,i;const{post:r,setField:s}=mte(),[l,o]=a.useState(Boolean(r.slug)),[d,c]=a.useState(!1),u=um(),p=Mt(),{isEdit:A,blog:h}=(null==p?void 0:p.state)||{};let f=!0;a.useEffect((()=>{if(!l&&r.title){const e=r.title.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"");e!==r.slug&&(s("slug",e,A&&f),f=!1)}}),[r.title,l,r.slug,s]);const m=function(e,t){const n=a.useRef(),i=a.useCallback(((...i)=>{clearTimeout(n.current),n.current=setTimeout((()=>{e(...i)}),t)}),[e,t]);return a.useEffect((()=>()=>clearTimeout(n.current)),[]),i}((async e=>{var t,n,i,a,r;if(!e)return s("slug",e,{error:!1,errorMessage:""}),s("errors",{error:!1,errorMessage:""}),void c(!1);c(!0);try{const l=await(null==(t=u(Ate({slug:e})))?void 0:t.unwrap());if((null==(i=null==(n=null==l?void 0:l.data)?void 0:n.data)?void 0:i.length)>0){const t=null==(r=null==(a=null==l?void 0:l.data)?void 0:a.data)?void 0:r.filter((e=>!A||(null==e?void 0:e.BlogId)!==(null==h?void 0:h.BlogId)));(null==t?void 0:t.length)>0?(s("slug",e),s("errors",{error:!0,errorMessage:"This slug already exists. Please choose another."})):(s("slug",e),s("errors",{error:!1,errorMessage:""}))}else s("slug",e),s("errors",{error:!1,errorMessage:""})}catch(l){s("slug",e),s("errors",{error:!0,errorMessage:"Error checking slug."})}c(!1)}),500),v=null==(e=null==r?void 0:r.errors)?void 0:e.error,g=null==(t=null==r?void 0:r.errors)?void 0:t.errorMessage;return Ye.jsxs("div",{className:"slug-control",children:[Ye.jsx("div",{className:"slug-header",children:Ye.jsxs("label",{className:"slug-label",children:[Ye.jsx(xv,{})," URL Slug"]})}),Ye.jsx("p",{className:"slug-instruction",children:"Creates your post's web address. Auto-generated from title or customize manually."}),Ye.jsx("div",{className:"slug-controls",children:Ye.jsxs("button",{className:"slug-toggle "+(l?"locked":""),onClick:()=>o((e=>!e)),title:l?"Unlock to edit":"Lock slug",children:[l?Ye.jsx(wv,{}):Ye.jsx(_v,{}),l?"Locked":"Auto"]})}),Ye.jsx("input",{className:"slug-input "+(l?"":"disabled"),value:"string"==typeof r.slug?r.slug:(null==(n=r.slug)?void 0:n.value)||"",onChange:l?e=>{const t=e.target.value;s("slug",t,{error:!1,errorMessage:""}),c(!0),m(t)}:void 0,disabled:!l,placeholder:"url-slug-here",style:v?{borderColor:"#dc2626"}:{}}),d&&Ye.jsx("div",{style:{color:"#d97706",fontSize:13},children:"Checking slug…"}),v&&!d&&Ye.jsx("div",{style:{color:"#dc2626",fontSize:13},children:g}),Ye.jsxs("div",{className:"slug-preview",children:[Ye.jsx("strong",{children:"Preview:"})," ","string"==typeof r.slug?`/blog/${r.slug}`:`/blog/${(null==(i=r.slug)?void 0:i.value)||"your-post-slug"}`]})]})}function Yte(){const{post:e}=mte(),t=a.useMemo((()=>Ete(e.blocks)),[e.blocks]),n=a.useMemo((()=>Dte(t)),[t]);return Ye.jsxs("div",{className:"metrics-card editor-panel",children:[Ye.jsxs("div",{className:"panel-title",children:[Ye.jsx(Km,{})," Content Metrics"]}),Ye.jsxs("div",{className:"metrics-grid",children:[Ye.jsxs("div",{className:"metric-item",children:[Ye.jsx("div",{className:"metric-value primary",children:t}),Ye.jsx("div",{className:"metric-label",children:"words"})]}),Ye.jsxs("div",{className:"metric-item",children:[Ye.jsxs("div",{className:"metric-value success",children:["~",n]}),Ye.jsx("div",{className:"metric-label",children:"min read"})]})]})]})}function Kte(){const{post:e,setField:t}=mte(),n=a.useRef(null),[i,r]=a.useState(!1);a.useState(!1);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(qte,{onExport:()=>{const t=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),n=URL.createObjectURL(t),i=document.createElement("a");i.href=n,i.download=`${e.slug||"post"}.json`,i.click(),URL.revokeObjectURL(n)},onImportClick:()=>{var e;return null==(e=n.current)?void 0:e.click()},showPreview:i,setShowPreview:r}),Ye.jsx("input",{ref:n,type:"file",accept:"application/json",onChange:e=>{var n;const i=null==(n=e.target.files)?void 0:n[0];if(!i)return;const a=new FileReader;a.onload=()=>{try{const e=JSON.parse(a.result);if(!e||"object"!=typeof e)throw new Error("Invalid JSON");t("title",e.title||""),t("slug",e.slug||""),t("status",e.status||"DRAFT"),t("featureImage",e.featureImage),t("seoTitle",e.seoTitle||""),t("seoDescription",e.seoDescription||""),t("blocks",e.blocks||[])}catch(e){alert("Import failed: "+e.message)}},a.readAsText(i),e.target.value=""},hidden:!0}),Ye.jsxs("div",{className:"editor-layout",children:[Ye.jsxs("div",{className:"editor-sidebar",children:[Ye.jsx(Pte,{}),Ye.jsx("div",{className:"editor-panel",children:Ye.jsx(Wte,{})}),Ye.jsxs("div",{className:"editor-panel seo-panel",children:[Ye.jsx(Ute,{label:"SEO Title (H1 equivalent)",value:e.seoTitle||"",onChange:e=>t("seoTitle",e),max:60,fieldType:"seoTitle"}),Ye.jsx(Ute,{label:"Meta Description",value:e.seoDescription||"",onChange:e=>t("seoDescription",e),max:160,multiline:!0,fieldType:"seoDescription"}),Ye.jsx(Ute,{label:"Focus Keyword",value:e.focusKeyword||"",onChange:e=>t("focusKeyword",e),max:50,fieldType:"focusKeyword"})]}),Ye.jsx(Yte,{}),Ye.jsx(_te,{}),Ye.jsx(Ote,{}),Ye.jsx(Lte,{}),Ye.jsx(kte,{})]}),Ye.jsx("div",{className:"editor-main",children:Ye.jsx(Bte,{})})]}),Ye.jsx("style",{children:`\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n @keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.7; }\n }\n @keyframes slideIn {\n from { transform: translateY(-10px); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n }\n \n .editor-layout {\n animation: slideIn 0.3s ease-out;\n }\n \n .editor-layout > div {\n animation: slideIn 0.4s ease-out;\n }\n \n @media (max-width: 1024px) {\n .editor-layout {\n grid-template-columns: 1fr !important;\n gap: 16px !important;\n padding: 0 16px !important;\n }\n }\n \n @media (max-width: 768px) {\n .editor-layout {\n padding: 0 12px !important;\n gap: 12px !important;\n }\n }\n \n #editorjs {\n word-wrap: break-word !important;\n overflow-wrap: break-word !important;\n padding: 16px !important;\n min-height: 500px !important;\n }\n \n #editorjs .ce-block {\n max-width: 100% !important;\n word-wrap: break-word !important;\n overflow-wrap: break-word !important;\n margin: 0.5em 0 !important;\n }\n \n #editorjs .ce-header {\n word-wrap: break-word !important;\n overflow-wrap: break-word !important;\n white-space: normal !important;\n font-weight: 700 !important;\n line-height: 1.2 !important;\n }\n \n #editorjs .ce-paragraph {\n line-height: 1.6 !important;\n color: ${Qte.gray[700]} !important;\n }\n \n #editorjs .ce-toolbar__plus {\n color: ${Qte.primary} !important;\n background: rgba(37, 99, 235, 0.1) !important;\n border: 2px solid ${Qte.primary} !important;\n border-radius: 8px !important;\n width: 32px !important;\n height: 32px !important;\n transition: all 0.2s ease !important;\n }\n \n #editorjs .ce-toolbar__plus:hover {\n background: ${Qte.primary} !important;\n color: white !important;\n transform: scale(1.1) !important;\n box-shadow: ${Hte.md} !important;\n }\n \n #editorjs .ce-toolbar__settings-btn {\n color: ${Qte.gray[600]} !important;\n border-radius: 6px !important;\n transition: all 0.2s ease !important;\n }\n \n #editorjs .ce-toolbar__settings-btn:hover {\n background: ${Qte.gray[100]} !important;\n color: ${Qte.gray[900]} !important;\n }\n \n #editorjs .ce-block--selected .ce-block__content {\n background: rgba(37, 99, 235, 0.05) !important;\n border-radius: 8px !important;\n }\n \n ::-webkit-scrollbar {\n width: 6px;\n }\n \n ::-webkit-scrollbar-track {\n background: ${Qte.gray[100]};\n border-radius: 3px;\n }\n \n ::-webkit-scrollbar-thumb {\n background: ${Qte.gray[400]};\n border-radius: 3px;\n transition: background 0.2s ease;\n }\n \n ::-webkit-scrollbar-thumb:hover {\n background: ${Qte.gray[500]};\n }\n \n button:focus-visible {\n outline: 2px solid ${Qte.primary} !important;\n outline-offset: 2px !important;\n }\n \n input:focus, select:focus, textarea:focus {\n outline: none !important;\n border-color: ${Qte.primary} !important;\n box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;\n }\n `})]})}const Gte=function(e){var t,n=qa(),i=e||{},a=i.reducer,r=void 0===a?void 0:a,s=i.middleware,l=void 0===s?n():s,o=i.devTools,d=void 0===o||o,c=i.preloadedState,u=void 0===c?void 0:c,p=i.enhancers,A=void 0===p?void 0:p;if("function"==typeof r)t=r;else{if(!function(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=ba(r)}var h=l;"function"==typeof h&&(h=h(n));var f=ja.apply(void 0,h),m=wa;d&&(m=Ra(Oa({trace:!1},"object"==typeof d&&d)));var v=new Va(f),g=v;return Array.isArray(A)?g=Pa([f],A):"function"==typeof A&&(g=A(v)),xa(t,u,m.apply(void 0,g))}({reducer:{centerPage:Jh,homePage:Hg,application:kD,companyPage:Sb,configtypePage:lk,currencyPage:M9,carouselPage:yT,configmasterPage:$P,userPage:eE,branchPage:Ey,exceluploadPage:uk,signInPage:Fm,applicationPage:Rb,applicationImagePage:wk,moduleAccess:Yh,userAccount:ID,bannerImage:DP,appAccessPage:XE,MessageTemplate:AM,paymentUPIdetails:FM,pricingType:fw,logs:hD,theme:tO,superAdminUserAccess:$g,seo:NU},middleware:e=>e({serializableCheck:!1})}),$te="https://www.pozo.dev",Xte="/apps/retail/app-page/home",Jte=({routesConfig:e})=>{const t=um(),n=iA("UserType"),i=iA("UserId"),[r,s]=a.useState(!1),[l,o]=a.useState(!1),d=async(e,n)=>{if(!e)return!1;const a=await(async()=>{var e,n,a,r;let s=await t(zg({UserId:i})).unwrap();return 1===(null==(e=null==s?void 0:s.data)?void 0:e.statusCode)?null==(r=null==(a=null==(n=null==s?void 0:s.data)?void 0:n.data)?void 0:a[0])?void 0:r.SuperAdminUserAccessDetails:null})();let r;r=n.endsWith("/new")?"AddAccess":n.endsWith("/update")?"UpdateAccess":"ReadAccess";return!!(null==a?void 0:a.find((t=>t.ConfigName===e&&"Y"===t[r])))},c=async e=>{var n;const i=await t(fm({UserId:e,status:"N"})).unwrap();1===(null==(n=null==i?void 0:i.data)?void 0:n.statusCode)&&(sessionStorage.clear(),window.location.replace(`${$te}`))},u=async(t,n)=>{if(r)return;const i=window.location.pathname,a=e.find((e=>{var t;return yt(e.path,i)||(null==(t=e.children)?void 0:t.some((t=>yt(`${e.path}/${t.path}`,i))))}));if(!a&&Xte!==i)return n?await c(n):(sessionStorage.clear(),window.location.replace(`${$te}`)),void s(!0);const l=((e,t)=>{var n;return yt(null==e?void 0:e.path,t)?e.empAccess||null:null==(n=e.children)?void 0:n.reduce(((n,i)=>{const a=`${e.path}/${i.path}`;return n||(yt(a,t)?i.empAccess:null)}),null)})(a,i),u=((e,t)=>{var n;return yt(null==e?void 0:e.path,t)?e.access||null:null==(n=e.children)?void 0:n.reduce(((n,i)=>{const a=`${e.path}/${i.path}`;return n||(yt(a,t)?i.access:null)}),null)})(a,i),p=((e,t)=>{var n;return yt(null==e?void 0:e.path,t)?e.employeeAccess||null:null==(n=e.children)?void 0:n.reduce(((n,i)=>{const a=`${e.path}/${i.path}`;return n||(yt(a,t)?i.employeeAccess:null)}),null)})(a,i),A=((e,t,n,i,a)=>{var r;const s={"Super Admin":()=>!1,"Super Admin User":async()=>"Super Admin User"!=n&&(!(await d(n,i))&&"Public"!==t),Admin:()=>"Admin"!==t&&"Public"!==t,Employee:()=>!a&&"Public"!==t,Marketing:async()=>"Marketing"!=n&&(!(await d(n,i))&&"Public"!==t)};return(null==(r=s[e])?void 0:r.call(s))??"Public"!==t})(t,u,l,i,p);await A&&Xte!==i&&(n?await c(n):(sessionStorage.clear(),window.location.replace(`${$te}`)),s(!0)),o(!0)};a.useEffect((()=>{(async()=>{var e,a,r,s,l,o,d,c,A;const h=p();if((null==(e=Object.keys(h))?void 0:e.length)>0){const e=aA(h.UD),n=aA(h.UT),i=aA(h.SD),p=aA(null==h?void 0:h.MN),f=aA(null==h?void 0:h.CD);if(e&&i){const m=await t(Im({UserId:e,SessionId:i})).unwrap();if(1==(null==(a=null==m?void 0:m.data)?void 0:a.statusCode)&&"True"==(null==(r=null==m?void 0:m.data)?void 0:r.response)){sessionStorage.setItem("auth",null==(s=null==m?void 0:m.data)?void 0:s.Token),nA("SessionId",null==(l=null==m?void 0:m.data)?void 0:l.SessionId);let i=null;if(null!=(null==h?void 0:h.UN)&&null!=(null==h?void 0:h.UN)&&(i=aA(null==h?void 0:h.UN)),p&&e&&n){nA("MobileNo",p),nA("UserId",e),nA("UserType",n),nA("CompId",f);let a,r=null;if(f){let e=await t(QE({CompId:f})).unwrap();r=1==(null==(o=null==e?void 0:e.data)?void 0:o.statusCode)?null==(A=null==(c=null==(d=null==e?void 0:e.data)?void 0:d.data)?void 0:c[0])?void 0:A.CompName:null}nA("CompName",r),null!=i&&nA("userName",i),null!=(null==h?void 0:h.AD)&&null!=(null==h?void 0:h.AD)&&(a=aA(null==h?void 0:h.AD)),null!=a&&nA("AdminId",a),await u(n,e)}}else sessionStorage.clear(),window.location.replace(`${$te}`)}}else await u(n,i)})()}),[n,e,r]);const p=()=>{const e=window.location.search,t=new URLSearchParams(e);return Object.fromEntries(t.entries())};return Ye.jsx(an,{children:l&&(A=e,A.map((({path:e,component:t,children:n})=>{const i=e;return t?Ye.jsx(tn,{path:i,element:Ye.jsx(t,{}),children:null==n?void 0:n.map((({path:e,component:t})=>t?Ye.jsx(tn,{path:e,element:Ye.jsx(t,{})},e):null))},i):null})))});var A};var Zte={},ene={exports:{}};!function(e,t){!function(n,i){var a="function",r="undefined",s="object",l="string",o="major",d="model",c="name",u="type",p="vendor",A="version",h="architecture",f="console",m="mobile",v="tablet",g="smarttv",y="wearable",x="embedded",b="Amazon",w="Apple",j="ASUS",C="BlackBerry",S="Browser",N="Chrome",I="Firefox",F="Google",B="Honor",P="Huawei",k="LG",T="Microsoft",E="Motorola",D="Nvidia",L="OnePlus",U="Opera",_="OPPO",O="Samsung",M="Sharp",R="Sony",Q="Xiaomi",H="Zebra",V="Facebook",z="Chromium OS",q="Mac OS",W=" Browser",Y=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},K=function(e,t){return typeof e===l&&-1!==G(t).indexOf(G(e))},G=function(e){return e.toLowerCase()},$=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===r?e:e.substring(0,500)},X=function(e,t){for(var n,r,l,o,d,c,u=0;u<t.length&&!d;){var p=t[u],A=t[u+1];for(n=r=0;n<p.length&&!d&&p[n];)if(d=p[n++].exec(e))for(l=0;l<A.length;l++)c=d[++r],typeof(o=A[l])===s&&o.length>0?2===o.length?typeof o[1]==a?this[o[0]]=o[1].call(this,c):this[o[0]]=o[1]:3===o.length?typeof o[1]!==a||o[1].exec&&o[1].test?this[o[0]]=c?c.replace(o[1],o[2]):i:this[o[0]]=c?o[1].call(this,c,o[2]):i:4===o.length&&(this[o[0]]=c?o[3].call(this,c.replace(o[1],o[2])):i):this[o]=c||i;u+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var a=0;a<t[n].length;a++)if(K(t[n][a],e))return"?"===n?i:n}else if(K(t[n],e))return"?"===n?i:n;return t.hasOwnProperty("*")?t["*"]:e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ee={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[A,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[A,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,A],[/opios[\/ ]+([\w\.]+)/i],[A,[c,U+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[A,[c,U+" GX"]],[/\bopr\/([\w\.]+)/i],[A,[c,U]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[A,[c,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[A,[c,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,A],[/quark(?:pc)?\/([-\w\.]+)/i],[A,[c,"Quark"]],[/\bddg\/([\w\.]+)/i],[A,[c,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[A,[c,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[A,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[A,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[A,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[A,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[A,[c,"Smart Lenovo "+S]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+S],A],[/\bfocus\/([\w\.]+)/i],[A,[c,I+" Focus"]],[/\bopt\/([\w\.]+)/i],[A,[c,U+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[A,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[A,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[A,[c,U+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[A,[c,"MIUI"+W]],[/fxios\/([\w\.-]+)/i],[A,[c,I]],[/\bqihoobrowser\/?([\w\.]*)/i],[A,[c,"360"]],[/\b(qq)\/([\w\.]+)/i],[[c,/(.+)/,"$1Browser"],A],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1"+W],A],[/samsungbrowser\/([\w\.]+)/i],[A,[c,O+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[A,[c,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,"Sogou Mobile"],A],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[c,A],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[c],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[A,c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,V],A],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[c,A],[/\bgsa\/([\w\.]+) .*safari\//i],[A,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[A,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[A,[c,N+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,N+" WebView"],A],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[A,[c,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,A],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[A,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[A,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[A,J,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,A],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],A],[/(wolvic|librewolf)\/([\w\.]+)/i],[c,A],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[A,[c,I+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[c,[A,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[c,[A,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[h,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[h,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[h,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[h,/ower/,"",G]],[/ sun4\w[;\)]/i],[[h,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[h,G]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,O],[u,v]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[p,O],[u,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[p,w],[u,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[p,w],[u,v]],[/(macintosh);/i],[d,[p,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[p,M],[u,m]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[d,[p,B],[u,v]],[/honor([-\w ]+)[;\)]/i],[d,[p,B],[u,m]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[d,[p,P],[u,v]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[p,P],[u,m]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[d,/_/g," "],[p,Q],[u,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[d,/_/g," "],[p,Q],[u,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[p,_],[u,m]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[d,[p,J,{OnePlus:["304","403","203"],"*":_}],[u,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[p,"Vivo"],[u,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[p,"Realme"],[u,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[p,E],[u,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[p,E],[u,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,k],[u,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[p,k],[u,m]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[d,[p,"Lenovo"],[u,v]],[/(nokia) (t[12][01])/i],[p,d,[u,v]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[d,/_/g," "],[u,m],[p,"Nokia"]],[/(pixel (c|tablet))\b/i],[d,[p,F],[u,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[p,F],[u,m]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[p,R],[u,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[p,R],[u,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[p,L],[u,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[p,b],[u,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[p,b],[u,m]],[/(playbook);[-\w\),; ]+(rim)/i],[d,p,[u,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[p,C],[u,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[p,j],[u,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[p,j],[u,m]],[/(nexus 9)/i],[d,[p,"HTC"],[u,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[d,/_/g," "],[u,m]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[p,"TCL"],[u,v]],[/(itel) ((\w+))/i],[[p,G],d,[u,J,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[p,"Acer"],[u,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[p,"Meizu"],[u,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[p,"Ulefone"],[u,m]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[d,[p,"Energizer"],[u,m]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[d,[p,"Cat"],[u,m]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[d,[p,"Smartfren"],[u,m]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[p,"Nothing"],[u,m]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[d,[p,"Archos"],[u,v]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[d,[p,"Archos"],[u,m]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[p,d,[u,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[p,d,[u,m]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,d,[u,v]],[/(surface duo)/i],[d,[p,T],[u,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[p,"Fairphone"],[u,m]],[/(u304aa)/i],[d,[p,"AT&T"],[u,m]],[/\bsie-(\w*)/i],[d,[p,"Siemens"],[u,m]],[/\b(rct\w+) b/i],[d,[p,"RCA"],[u,v]],[/\b(venue[\d ]{2,7}) b/i],[d,[p,"Dell"],[u,v]],[/\b(q(?:mv|ta)\w+) b/i],[d,[p,"Verizon"],[u,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[p,"Barnes & Noble"],[u,v]],[/\b(tm\d{3}\w+) b/i],[d,[p,"NuVision"],[u,v]],[/\b(k88) b/i],[d,[p,"ZTE"],[u,v]],[/\b(nx\d{3}j) b/i],[d,[p,"ZTE"],[u,m]],[/\b(gen\d{3}) b.+49h/i],[d,[p,"Swiss"],[u,m]],[/\b(zur\d{3}) b/i],[d,[p,"Swiss"],[u,v]],[/\b((zeki)?tb.*\b) b/i],[d,[p,"Zeki"],[u,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],d,[u,v]],[/\b(ns-?\w{0,9}) b/i],[d,[p,"Insignia"],[u,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[p,"NextBook"],[u,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],d,[u,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],d,[u,m]],[/\b(ph-1) /i],[d,[p,"Essential"],[u,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[p,"Envizen"],[u,v]],[/\b(trio[-\w\. ]+) b/i],[d,[p,"MachSpeed"],[u,v]],[/\btu_(1491) b/i],[d,[p,"Rotor"],[u,v]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[d,[p,D],[u,v]],[/(sprint) (\w+)/i],[p,d,[u,m]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,T],[u,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[p,H],[u,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[p,H],[u,m]],[/smart-tv.+(samsung)/i],[p,[u,g]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[p,O],[u,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,k],[u,g]],[/(apple) ?tv/i],[p,[d,w+" TV"],[u,g]],[/crkey/i],[[d,N+"cast"],[p,F],[u,g]],[/droid.+aft(\w+)( bui|\))/i],[d,[p,b],[u,g]],[/(shield \w+ tv)/i],[d,[p,D],[u,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[p,M],[u,g]],[/(bravia[\w ]+)( bui|\))/i],[d,[p,R],[u,g]],[/(mi(tv|box)-?\w+) bui/i],[d,[p,Q],[u,g]],[/Hbbtv.*(technisat) (.*);/i],[p,d,[u,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,$],[d,$],[u,g]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[d,[u,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[u,f]],[/droid.+; (shield)( bui|\))/i],[d,[p,D],[u,f]],[/(playstation \w+)/i],[d,[p,R],[u,f]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[p,T],[u,f]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[d,[p,O],[u,y]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[p,d,[u,y]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[d,[p,_],[u,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[p,w],[u,y]],[/(opwwe\d{3})/i],[d,[p,L],[u,y]],[/(moto 360)/i],[d,[p,E],[u,y]],[/(smartwatch 3)/i],[d,[p,R],[u,y]],[/(g watch r)/i],[d,[p,k],[u,y]],[/droid.+; (wt63?0{2,3})\)/i],[d,[p,H],[u,y]],[/droid.+; (glass) \d/i],[d,[p,F],[u,y]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,d,[u,y]],[/; (quest( \d| pro)?)/i],[d,[p,V],[u,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[u,x]],[/(aeobc)\b/i],[d,[p,b],[u,x]],[/(homepod).+mac os/i],[d,[p,w],[u,x]],[/windows iot/i],[[u,x]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[u,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[u,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,m]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[d,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[A,[c,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[c,A],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[A,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,A],[/ladybird\//i],[[c,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[A,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,A],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[c,[A,J,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[A,J,Z],[c,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[A,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,q],[A,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[A,c],[/(ubuntu) ([\w\.]+) like android/i],[[c,/(.+)/,"$1 Touch"],A],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[c,A],[/\(bb(10);/i],[A,[c,C]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[A,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[A,[c,I+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[A,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[A,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[A,[c,N+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,z],A],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,A],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],A],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,A]]},te=function(e,t){if(typeof e===s&&(t=e,e=i),!(this instanceof te))return new te(e,t).getResult();var f=typeof n!==r&&n.navigator?n.navigator:i,g=e||(f&&f.userAgent?f.userAgent:""),y=f&&f.userAgentData?f.userAgentData:i,x=t?function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2==0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n}(ee,t):ee,b=f&&f.userAgent==g;return this.getBrowser=function(){var e,t={};return t[c]=i,t[A]=i,X.call(t,g,x.browser),t[o]=typeof(e=t[A])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:i,b&&f&&f.brave&&typeof f.brave.isBrave==a&&(t[c]="Brave"),t},this.getCPU=function(){var e={};return e[h]=i,X.call(e,g,x.cpu),e},this.getDevice=function(){var e={};return e[p]=i,e[d]=i,e[u]=i,X.call(e,g,x.device),b&&!e[u]&&y&&y.mobile&&(e[u]=m),b&&"Macintosh"==e[d]&&f&&typeof f.standalone!==r&&f.maxTouchPoints&&f.maxTouchPoints>2&&(e[d]="iPad",e[u]=v),e},this.getEngine=function(){var e={};return e[c]=i,e[A]=i,X.call(e,g,x.engine),e},this.getOS=function(){var e={};return e[c]=i,e[A]=i,X.call(e,g,x.os),b&&!e[c]&&y&&y.platform&&"Unknown"!=y.platform&&(e[c]=y.platform.replace(/chrome os/i,z).replace(/macos/i,q)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return g},this.setUA=function(e){return g=typeof e===l&&e.length>500?$(e,500):e,this},this.setUA(g),this};te.VERSION="1.0.41",te.BROWSER=Y([c,A,o]),te.CPU=Y([h]),te.DEVICE=Y([d,p,u,f,m,g,v,y,x]),te.ENGINE=te.OS=Y([c,A]),e.exports&&(t=e.exports=te),t.UAParser=te;var ne=typeof n!==r&&(n.jQuery||n.Zepto);if(ne&&!ne.ua){var ie=new te;ne.ua=ie.getResult(),ne.ua.get=function(){return ie.getUA()},ne.ua.set=function(e){ie.setUA(e);var t=ie.getResult();for(var n in t)ne.ua[n]=t[n]}}}("object"==typeof window?window:d)}(ene,ene.exports);var tne=ene.exports;Object.defineProperty(Zte,"__esModule",{value:!0});var nne,ine=a,ane=(nne=ine)&&"object"==typeof nne&&"default"in nne?nne.default:nne,rne=tne,sne=new rne,lne=sne.getBrowser(),one=sne.getCPU(),dne=sne.getDevice(),cne=sne.getEngine(),une=sne.getOS(),pne=sne.getUA(),Ane=function(e){return sne.setUA(e)},hne=function(e){if(e){var t=new rne(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}},fne=Object.freeze({ClientUAInstance:sne,browser:lne,cpu:one,device:dne,engine:cne,os:une,ua:pne,setUa:Ane,parseUserAgent:hne});function mne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function vne(e){return(vne="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)}function gne(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function yne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xne(){return xne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},xne.apply(this,arguments)}function bne(e){return(bne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wne(e,t){return(wne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function jne(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n,i,a={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Cne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,a,r=[],s=!0,l=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);s=!0);}catch(o){l=!0,a=o}finally{try{s||null==n.return||n.return()}finally{if(l)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nne(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Ine="mobile",Fne="tablet",Bne="smarttv",Pne="console",kne="wearable",Tne="embedded",Ene=void 0,Dne={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},Lne={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},Une={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},_ne=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},One=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},Mne=function(e){var t=One();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},Rne=function(e,t,n,i){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mne(Object(n),!0).forEach((function(t){yne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{vendor:_ne(t.vendor),model:_ne(t.model),os:_ne(n.name),osVersion:_ne(n.version),ua:_ne(i)})};var Qne=function(e){return e.type===Ine},Hne=function(e){return e.type===Fne},Vne=function(e){var t=e.type;return t===Ine||t===Fne},zne=function(e){return e.type===Bne},qne=function(e){return e.type===Ene},Wne=function(e){return e.type===kne},Yne=function(e){return e.type===Pne},Kne=function(e){return e.type===Tne},Gne=function(e){var t=e.vendor;return _ne(t)},$ne=function(e){var t=e.model;return _ne(t)},Xne=function(e){var t=e.type;return _ne(t,"browser")},Jne=function(e){return e.name===Lne.Android},Zne=function(e){return e.name===Lne.Windows},eie=function(e){return e.name===Lne.MAC_OS},tie=function(e){return e.name===Lne.WindowsPhone},nie=function(e){return e.name===Lne.IOS},iie=function(e){var t=e.version;return _ne(t)},aie=function(e){var t=e.name;return _ne(t)},rie=function(e){return e.name===Dne.Chrome},sie=function(e){return e.name===Dne.Firefox},lie=function(e){return e.name===Dne.Chromium},oie=function(e){return e.name===Dne.Edge},die=function(e){return e.name===Dne.Yandex},cie=function(e){var t=e.name;return t===Dne.Safari||t===Dne.MobileSafari},uie=function(e){return e.name===Dne.MobileSafari},pie=function(e){return e.name===Dne.Opera},Aie=function(e){var t=e.name;return t===Dne.InternetExplorer||t===Dne.Ie},hie=function(e){return e.name===Dne.MIUI},fie=function(e){return e.name===Dne.SamsungBrowser},mie=function(e){var t=e.version;return _ne(t)},vie=function(e){var t=e.major;return _ne(t)},gie=function(e){var t=e.name;return _ne(t)},yie=function(e){var t=e.name;return _ne(t)},xie=function(e){var t=e.version;return _ne(t)},bie=function(){var e=One(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},wie=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},jie=function(){var e=One();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},Cie=function(){return Mne("iPad")},Sie=function(){return Mne("iPhone")},Nie=function(){return Mne("iPod")},Iie=function(e){return _ne(e)};function Fie(e){var t=e||fne,n=t.device,i=t.browser,a=t.os,r=t.engine,s=t.ua;return{isSmartTV:zne(n),isConsole:Yne(n),isWearable:Wne(n),isEmbedded:Kne(n),isMobileSafari:uie(i)||Cie(),isChromium:lie(i),isMobile:Vne(n)||Cie(),isMobileOnly:Qne(n),isTablet:Hne(n)||Cie(),isBrowser:qne(n),isDesktop:qne(n),isAndroid:Jne(a),isWinPhone:tie(a),isIOS:nie(a)||Cie(),isChrome:rie(i),isFirefox:sie(i),isSafari:cie(i),isOpera:pie(i),isIE:Aie(i),osVersion:iie(a),osName:aie(a),fullBrowserVersion:mie(i),browserVersion:vie(i),browserName:gie(i),mobileVendor:Gne(n),mobileModel:$ne(n),engineName:yie(r),engineVersion:xie(r),getUA:Iie(s),isEdge:oie(i)||wie(s),isYandex:die(i),deviceType:Xne(n),isIOS13:jie(),isIPad13:Cie(),isIPhone13:Sie(),isIPod13:Nie(),isElectron:bie(),isEdgeChromium:wie(s),isLegacyEdge:oie(i)&&!wie(s),isWindows:Zne(a),isMacOs:eie(a),isMIUI:hie(i),isSamsungBrowser:fie(i)}}var Bie=zne(dne),Pie=Yne(dne),kie=Wne(dne),Tie=Kne(dne),Eie=uie(lne)||Cie(),Die=lie(lne),Lie=Vne(dne)||Cie(),Uie=Qne(dne),_ie=Hne(dne)||Cie(),Oie=qne(dne),Mie=qne(dne),Rie=Jne(une),Qie=tie(une),Hie=nie(une)||Cie(),Vie=rie(lne),zie=sie(lne),qie=cie(lne),Wie=pie(lne),Yie=Aie(lne),Kie=iie(une),Gie=aie(une),$ie=mie(lne),Xie=vie(lne),Jie=gie(lne),Zie=Gne(dne),eae=$ne(dne),tae=yie(cne),nae=xie(cne),iae=Iie(pne),aae=oie(lne)||wie(pne),rae=die(lne),sae=Xne(dne),lae=jie(),oae=Cie(),dae=Sie(),cae=Nie(),uae=bie(),pae=wie(pne),Aae=oie(lne)&&!wie(pne),hae=Zne(une),fae=eie(une),mae=hie(lne),vae=fie(lne);function gae(e){var t=e||window.navigator.userAgent;return hne(t)}Zte.AndroidView=function(e){var t=e.renderWithFragment,n=e.children,i=jne(e,["renderWithFragment","children"]);return Rie?t?ane.createElement(ine.Fragment,null,n):ane.createElement("div",i,n):null},Zte.BrowserTypes=Dne,Zte.BrowserView=function(e){var t=e.renderWithFragment,n=e.children,i=jne(e,["renderWithFragment","children"]);return Oie?t?ane.createElement(ine.Fragment,null,n):ane.createElement("div",i,n):null},Zte.ConsoleView=function(e){var t=e.renderWithFragment,n=e.children,i=jne(e,["renderWithFragment","children"]);return Pie?t?ane.createElement(ine.Fragment,null,n):ane.createElement("div",i,n):null},Zte.CustomView=function(e){var t=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var i=e.condition,a=jne(e,["renderWithFragment","children","viewClassName","style","condition"]);return i?t?ane.createElement(ine.Fragment,null,n):ane.createElement("div",a,n):null},Zte.IEView=function(e){var t=e.renderWithFragment,n=e.children,i=jne(e,["renderWithFragment","children"]);return Yie?t?ane.createElement(ine.Fragment,null,n):ane.createElement("div",i,n):null},Zte.IOSView=function(e){var t=e.renderWithFragment,n=e.children,i=jne(e,["renderWithFragment","children"]);return Hie?t?ane.createElement(ine.Fragment,null,n):ane.createElement("div",i,n):null},Zte.MobileOnlyView=function(e){var t=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var i=jne(e,["renderWithFragment","children","viewClassName","style"]);return Uie?t?ane.createElement(ine.Fragment,null,n):ane.createElement("div",i,n):null},Zte.MobileView=function(e){var t=e.renderWithFragment,n=e.children,i=jne(e,["renderWithFragment","children"]);return Lie?t?ane.createElement(ine.Fragment,null,n):ane.createElement("div",i,n):null},Zte.OsTypes=Lne,Zte.SmartTVView=function(e){var t=e.renderWithFragment,n=e.children,i=jne(e,["renderWithFragment","children"]);return Bie?t?ane.createElement(ine.Fragment,null,n):ane.createElement("div",i,n):null},Zte.TabletView=function(e){var t=e.renderWithFragment,n=e.children,i=jne(e,["renderWithFragment","children"]);return _ie?t?ane.createElement(ine.Fragment,null,n):ane.createElement("div",i,n):null},Zte.WearableView=function(e){var t=e.renderWithFragment,n=e.children,i=jne(e,["renderWithFragment","children"]);return kie?t?ane.createElement(ine.Fragment,null,n):ane.createElement("div",i,n):null},Zte.WinPhoneView=function(e){var t=e.renderWithFragment,n=e.children,i=jne(e,["renderWithFragment","children"]);return Qie?t?ane.createElement(ine.Fragment,null,n):ane.createElement("div",i,n):null},Zte.browserName=Jie,Zte.browserVersion=Xie,Zte.deviceDetect=function(e){var t=e?hne(e):fne,n=t.device,i=t.browser,a=t.engine,r=t.os,s=t.ua,l=function(e){switch(e){case Ine:return{isMobile:!0};case Fne:return{isTablet:!0};case Bne:return{isSmartTV:!0};case Pne:return{isConsole:!0};case kne:return{isWearable:!0};case Ene:return{isBrowser:!0};case Tne:return{isEmbedded:!0};default:return Une}}(n.type),o=l.isBrowser,d=l.isMobile,c=l.isTablet,u=l.isSmartTV,p=l.isConsole,A=l.isWearable,h=l.isEmbedded;return o?function(e,t,n,i,a){return{isBrowser:e,browserMajorVersion:_ne(t.major),browserFullVersion:_ne(t.version),browserName:_ne(t.name),engineName:_ne(n.name),engineVersion:_ne(n.version),osName:_ne(i.name),osVersion:_ne(i.version),userAgent:_ne(a)}}(o,i,a,r,s):u?function(e,t,n,i){return{isSmartTV:e,engineName:_ne(t.name),engineVersion:_ne(t.version),osName:_ne(n.name),osVersion:_ne(n.version),userAgent:_ne(i)}}(u,a,r,s):p?function(e,t,n,i){return{isConsole:e,engineName:_ne(t.name),engineVersion:_ne(t.version),osName:_ne(n.name),osVersion:_ne(n.version),userAgent:_ne(i)}}(p,a,r,s):d||c?Rne(l,n,r,s):A?function(e,t,n,i){return{isWearable:e,engineName:_ne(t.name),engineVersion:_ne(t.version),osName:_ne(n.name),osVersion:_ne(n.version),userAgent:_ne(i)}}(A,a,r,s):h?function(e,t,n,i,a){return{isEmbedded:e,vendor:_ne(t.vendor),model:_ne(t.model),engineName:_ne(n.name),engineVersion:_ne(n.version),osName:_ne(i.name),osVersion:_ne(i.version),userAgent:_ne(a)}}(h,n,a,r,s):void 0},Zte.deviceType=sae,Zte.engineName=tae,Zte.engineVersion=nae,Zte.fullBrowserVersion=$ie,Zte.getSelectorsByUserAgent=function(e){if(e&&"string"==typeof e){var t=hne(e);return Fie({device:t.device,browser:t.browser,os:t.os,engine:t.engine,ua:t.ua})}},Zte.getUA=iae,Zte.isAndroid=Rie,Zte.isBrowser=Oie,Zte.isChrome=Vie,Zte.isChromium=Die,Zte.isConsole=Pie,Zte.isDesktop=Mie,Zte.isEdge=aae,Zte.isEdgeChromium=pae,Zte.isElectron=uae,Zte.isEmbedded=Tie,Zte.isFirefox=zie,Zte.isIE=Yie,Zte.isIOS=Hie,Zte.isIOS13=lae,Zte.isIPad13=oae,Zte.isIPhone13=dae,Zte.isIPod13=cae,Zte.isLegacyEdge=Aae,Zte.isMIUI=mae,Zte.isMacOs=fae,Zte.isMobile=Lie,Zte.isMobileOnly=Uie,Zte.isMobileSafari=Eie,Zte.isOpera=Wie,Zte.isSafari=qie,Zte.isSamsungBrowser=vae,Zte.isSmartTV=Bie,Zte.isTablet=_ie,Zte.isWearable=kie,Zte.isWinPhone=Qie,Zte.isWindows=hae,Zte.isYandex=rae,Zte.mobileModel=eae,Zte.mobileVendor=Zie,Zte.osName=Gie,Zte.osVersion=Kie,Zte.parseUserAgent=hne,Zte.setUserAgent=function(e){return Ane(e)},Zte.useDeviceData=gae,Zte.useDeviceSelectors=function(e){var t=gae(e||window.navigator.userAgent);return[Fie(t),t]},Zte.useMobileOrientation=function(){var e=Sne(ine.useState((function(){var e=window.innerWidth>window.innerHeight?90:0;return{isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"}})),2),t=e[0],n=e[1],i=ine.useCallback((function(){var e=window.innerWidth>window.innerHeight?90:0,i={isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"};t.orientation!==i.orientation&&n(i)}),[t.orientation]);return ine.useEffect((function(){return void 0!==("undefined"==typeof window?"undefined":vne(window))&&Lie&&(i(),window.addEventListener("load",i,!1),window.addEventListener("resize",i,!1)),function(){window.removeEventListener("resize",i,!1),window.removeEventListener("load",i,!1)}}),[i]),t},Zte.withOrientationChange=function(e){return function(){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Cne(e)}(this,bne(t).call(this,e))).isEventListenerAdded=!1,n.handleOrientationChange=n.handleOrientationChange.bind(Cne(n)),n.onOrientationChange=n.onOrientationChange.bind(Cne(n)),n.onPageLoad=n.onPageLoad.bind(Cne(n)),n.state={isLandscape:!1,isPortrait:!1},n}var n,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wne(e,t)}(t,ane.Component),n=t,(i=[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var e=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:0===e,isLandscape:90===e})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){void 0!==("undefined"==typeof window?"undefined":vne(window))&&Lie&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return ane.createElement(e,xne({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}])&&gne(n.prototype,i),a&&gne(n,a),t}()};const yae=Ja("applicationPrefernce/postapplicationPrefernce",(async e=>await fA.post("/ApplicationPreferenceMapping",e))),xae=Ja("applicationPrefernce/postapplicationPrefernce",(async()=>await fA.get("/ApplicationPreferenceMapping"))),bae=({formType:e})=>{const t=a.useRef(null),n=um(),i=Qt(),r=Mt(),s=null==r?void 0:r.state,l=null==s?void 0:s.editstate,[o,d]=a.useState([]),c=iA("UserId"),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState([]),[v,g]=a.useState(l?l.AppId:null),[y,x]=a.useState([]),[b,w]=a.useState([]);a.useEffect((()=>{n(Gh({items:[{name:"Home",link:"/landing-page/home"},{name:"Application Preference Mapping",link:"/setting/application-preference-mapping"}]})),j()}),[]);const j=async()=>{var t,i;const a=await n(MP("Common Setup")).unwrap();1===(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&async function(t){var i,a,r,s;const l=await n(BP()).unwrap(),o=t.map((e=>n(VP({TypeName:e.ConfigName})).unwrap())),c=(await Promise.all(o)).map((e=>{var t;return(null==(t=null==e?void 0:e.data)?void 0:t.data)||[]}));d(c);const u=await n(xae()).unwrap(),p=(null==(i=null==u?void 0:u.data)?void 0:i.data)||[];if(1===(null==(a=l.data)?void 0:a.statusCode)){const t=(null==(s=null==(r=l.data)?void 0:r.data)?void 0:s.filter((e=>"A"===(null==e?void 0:e.ActiveStatus))))||[],n=p.map((e=>e.AppId));m("add"===e?t.filter((e=>!n.includes(e.AppId))):t)}}(null==(i=null==a?void 0:a.data)?void 0:i.data)};a.useEffect((()=>{var e;if(l&&o.length>0){const{PreferenceDetails:n}=l;if(n){const i=[];n.forEach((e=>{e.PreferenceCatDetails.forEach((e=>{"Y"===e.PreferredStatus&&i.push(e.PreferredSubCatId)}))})),x(i);const a=o.map((e=>{var t;const i=null==(t=e[0])?void 0:t.TypeId,a=n.find((e=>e.PreferredCatId===i)),r=a?a.PreferenceCatDetails.filter((e=>"Y"===e.PreferredStatus)).map((e=>e.PreferredSubCatId)):[];return{PreferredCatId:i,PreferenceCatDetails:e.map((e=>({PreferredSubCatId:e.ConfigId,PreferredStatus:r.includes(e.ConfigId)?"Y":"N"})))}}));w(a),null==(e=t.current)||e.setFieldsValue({AppName:null==l?void 0:l.AppId}),g(null==l?void 0:l.AppId)}}}),[l,o]);const C=e=>{var t;if(y.includes(e))return p("error"),void h("Field Already Exists");const n=[e,...y];x(n);let i=null,a=null;const r=o.map(((t,r)=>{var s;return{PreferredCatId:null==(s=t[0])?void 0:s.TypeId,PreferenceCatDetails:t.map(((t,s)=>(e===t.ConfigId&&(i=s,a=r),{PreferredSubCatId:t.ConfigId,PreferredStatus:n.includes(t.ConfigId)?"Y":"N"})))}}));if((null==l?void 0:l.PreferenceDetails)&&(l.PreferenceDetails=null==(t=null==l?void 0:l.PreferenceDetails)?void 0:t.map((e=>{var t;return{...e,PreferenceCatDetails:null==(t=null==e?void 0:e.PreferenceCatDetails)?void 0:t.map((e=>({...e,PreferredStatus:n.includes(e.PreferredSubCatId)?"Y":"N"})))}}))),null!==i&&null!==a){const e=[...o],t=[...e[a]],n=t.splice(i,1)[0];t.unshift(n),e[a]=t,d(e)}w(r)};return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:u,messageData:A}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:" Application Preference Mapping"})}),Ye.jsx("div",{className:"formDiv",style:{overflowX:"hidden",width:"100%"},children:Ye.jsxs(I,{ref:t,className:"formDivAnt",onFinish:async()=>{var e,t;const a={AppId:v,PreferenceDetails:b,CreatedBy:c},r=await n(yae(a)).unwrap();1===(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)&&i("/setting/application-preference-mapping",{state:{Notiffy:{messageType:"success",messageData:null==(t=null==r?void 0:r.data)?void 0:t.response}}})},style:{width:"100%"},children:[Ye.jsx("div",{className:"formDivPreferrnces",style:{width:"100%"},children:Ye.jsxs("div",{className:"inputFormMappingfeatures",style:{width:"100%"},children:[Ye.jsx(I.Item,{name:"AppName",style:{width:"100%"},rules:[{required:!0,message:"You must select an application"}],children:Ye.jsx(_y,{options:f.map((e=>({value:e.AppId,label:e.AppName}))),label:"App Name",id:"AppName",onChangeFunction:e=>{var n;null==(n=t.current)||n.setFieldsValue({AppName:e}),g(e)},valueData:v,isOnchanges:"edit"===e,disabled:"edit"===e,className:"field-DropDown"})}),Ye.jsx("div",{className:"features-container",children:null==o?void 0:o.slice().sort(((e,t)=>t.length-e.length)).map(((e,t)=>{var n;const i=(null==(n=e[0])?void 0:n.TypeName)||`Group ${t+1}`,a=e.filter((e=>y.includes(e.ConfigId)));return Ye.jsxs("div",{className:"feature-group",children:[Ye.jsx("div",{className:"feature-field-dropdown",children:Ye.jsx(_y,{label:Ye.jsx("label",{children:i}),options:e.filter((e=>!y.includes(e.ConfigId))).map((e=>({label:e.ConfigName,value:e.ConfigId}))),onChangeFunction:C})}),Ye.jsx("div",{className:"prev-selected-fields",children:a.map(((e,t)=>Ye.jsxs("div",{className:"prev-selectedItems",children:[Ye.jsx("p",{children:`${t+1}. ${e.ConfigName}`}),Ye.jsx(eD,{size:25,onClick:()=>(e=>{const t=y.filter((t=>t!==e.ConfigId));x(t);const n=o.map((e=>{var n;return{PreferredCatId:null==(n=e[0])?void 0:n.TypeId,PreferenceCatDetails:e.map((e=>({PreferredSubCatId:e.ConfigId,PreferredStatus:t.includes(e.ConfigId)?"Y":"N"})))}}));w(n)})(e)})]},t)))})]},i)}))})]})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",icon:Ye.jsx(k,{})})})]})})]})})})},wae="/home/",jae="/",Cae=[{name:"Home",link:`${jae}app-page/home`},{name:"CommonMenuAccess",link:`${jae}setting/super-admin-user-menu-access`}],Sae=({formType:e})=>{const t=a.useRef(null),n=um(),i=Qt(),r=Mt(),s=null==r?void 0:r.state,l=null==s?void 0:s.editstate,[o,d]=a.useState({}),[c,u]=a.useState(1),[p,A]=a.useState(""),[h,f]=a.useState(null),[m,v]=a.useState(null),[g,y]=a.useState(),[x,b]=a.useState("Super Admin User"),[w,j]=a.useState([]),[C,S]=a.useState([]),[N,F]=a.useState([]),B=[{name:"Home",link:"/app-page/home"},{name:"CommonMenuAccess",link:"/setting/super-admin-user-menu-access"},{name:l?"Edit":"New",link:null}];a.useEffect((()=>{n(Gh({items:B})),async function(i){var a,r,s,o,d,c,u;let p=await n(Yg({UserType:i})).unwrap(),A=await n(Db()).unwrap();1===(null==(a=null==A?void 0:A.data)?void 0:a.statusCode)&&F(null==(s=null==(r=null==A?void 0:A.data)?void 0:r.data)?void 0:s.map(((e,t)=>({...e,key:null==e?void 0:e.ConfigId}))));1===(null==(o=null==p?void 0:p.data)?void 0:o.statusCode)&&j(null==(d=null==p?void 0:p.data)?void 0:d.data);if("edit"===e&&l){null==(c=t.current)||c.setFieldsValue({SuperAdminUserId:null==l?void 0:l.UserId}),y(null==l?void 0:l.UserId),F(null==l?void 0:l.SuperAdminUserAccessDetails);let e=(null==(u=null==l?void 0:l.SuperAdminUserAccessDetails)?void 0:u.filter((e=>"Y"===e.AddAccess||"Y"===e.UpdateAccess||"Y"===e.DeleteAccess||"Y"===e.ReadAccess))).map((e=>e.ConfigId));S(e)}}(x)}),[x]);const P=[{title:"SI.NO",key:"sno",align:"center",width:"80px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(c-1)+n+1})},{title:"Master Name",dataIndex:"ConfigName",key:"ConfigName",width:"180px",render:(e,t)=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[p],onFilter:(e,t)=>String(t.ConfigName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.ConfigName)?void 0:n.localeCompare(t.ConfigName)},sortOrder:"ConfigName"===o.columnKey?o.order:null,ellipsis:!0},{title:"View",dataIndex:"ReadAccess",key:"ReadAccess",align:"center",width:"100px",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:Ye.jsx(V,{checked:"Y"===e,onClick:()=>E("ReadAccess",t,"Y"===e?"N":"Y")})})},{title:"Add",dataIndex:"AddAccess",key:"AddAccess",align:"center",width:"100px",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:Ye.jsx(V,{checked:"Y"===e,disabled:!t.ReadAccess||"Y"!==t.ReadAccess,onClick:()=>E("AddAccess",t,"Y"===e?"N":"Y")})})},{title:"Edit",dataIndex:"UpdateAccess",key:"UpdateAccess",align:"center",width:"100px",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:Ye.jsx(V,{checked:"Y"===e,disabled:!t.ReadAccess||"Y"!==t.ReadAccess,onClick:()=>E("UpdateAccess",t,"Y"===e?"N":"Y")})})},{title:"Delete",dataIndex:"DeleteAccess",key:"DeleteAccess",align:"center",width:"100px",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:Ye.jsx(V,{checked:"Y"===e,disabled:!t.ReadAccess||"Y"!==t.ReadAccess,onClick:()=>E("DeleteAccess",t,"Y"===e?"N":"Y")})})}],T={selectedRowKeys:C,onChange:e=>{var t,n=C;if(0===(null==n?void 0:n.length)&&1===(null==e?void 0:e.length))var i=null==N?void 0:N.map((t=>parseInt(t.ConfigId)===parseInt(e[0])?{...t,key:null==t?void 0:t.key,ConfigId:null==t?void 0:t.ConfigId,ConfigName:null==t?void 0:t.ConfigName,AddAccess:"Y",UpdateAccess:"Y",ReadAccess:"Y",DeleteAccess:"Y"}:t));else if(0===(null==n?void 0:n.length)&&(null==e?void 0:e.length)>1)i=null==(t=[...N])?void 0:t.map(((e,t)=>t<10?{...e,key:null==e?void 0:e.key,ConfigId:null==e?void 0:e.ConfigId,ConfigName:null==e?void 0:e.ConfigName,AddAccess:"Y",UpdateAccess:"Y",ReadAccess:"Y",DeleteAccess:"Y"}:{...e}));else if(0===(null==e?void 0:e.length))i=null==N?void 0:N.map((e=>({...e,key:null==e?void 0:e.key,ConfigId:null==e?void 0:e.ConfigId,ConfigName:null==e?void 0:e.ConfigName,AddAccess:"N",UpdateAccess:"N",ReadAccess:"N",DeleteAccess:"N"})));else if((null==n?void 0:n.length)>0&&(null==e?void 0:e.length)>=1)if((null==n?void 0:n.length)<(null==e?void 0:e.length)){let t=null==e?void 0:e.filter((e=>!(null==n?void 0:n.includes(e))));i=null==N?void 0:N.map((e=>(null==t?void 0:t.includes(null==e?void 0:e.ConfigId))?{...e,key:null==e?void 0:e.key,ConfigId:null==e?void 0:e.ConfigId,ConfigName:null==e?void 0:e.ConfigName,AddAccess:"Y",UpdateAccess:"Y",ReadAccess:"Y",DeleteAccess:"Y"}:e))}else if((null==n?void 0:n.length)>(null==e?void 0:e.length)){let t=null==n?void 0:n.filter((t=>!(null==e?void 0:e.includes(t))));i=null==N?void 0:N.map((e=>(null==t?void 0:t.includes(null==e?void 0:e.ConfigId))?{...e,key:null==e?void 0:e.key,ConfigId:null==e?void 0:e.ConfigId,ConfigName:null==e?void 0:e.ConfigName,AddAccess:"N",UpdateAccess:"N",ReadAccess:"N",DeleteAccess:"N"}:e))}S(e),F(i)}},E=(e,t,n)=>{const i=N.map((i=>{if(parseInt(i.ConfigId)===parseInt(t.ConfigId)){let a={...i,[e]:n};"ReadAccess"===e&&"N"===n&&(a={...a,AddAccess:"N",UpdateAccess:"N",DeleteAccess:"N"});return["AddAccess","UpdateAccess","DeleteAccess","ReadAccess"].some((e=>"Y"===a[e]))?C.includes(t.ConfigId)||S([...C,t.ConfigId]):S(C.filter((e=>e!==t.ConfigId))),a}return i}));F(i)};return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:h,messageData:m}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Common Menu Access"})}),Ye.jsxs("div",{className:"formDiv",children:[Ye.jsxs(I,{style:{width:"100%",justifyContent:"space-between"},ref:t,className:"formDivAnt",onFinish:async t=>{var a,r,s;let o={};if("add"===e){let e={UserId:null==t?void 0:t.SuperAdminUserId,SuperAdminUserAccessDetails:null==N?void 0:N.map((e=>({ConfigId:null==e?void 0:e.ConfigId,ReadAccess:(null==e?void 0:e.ReadAccess)?null==e?void 0:e.ReadAccess:"N",AddAccess:(null==e?void 0:e.AddAccess)?null==e?void 0:e.AddAccess:"N",UpdateAccess:(null==e?void 0:e.UpdateAccess)?null==e?void 0:e.UpdateAccess:"N",DeleteAccess:(null==e?void 0:e.DeleteAccess)?null==e?void 0:e.DeleteAccess:"N"})))};e.CreatedBy=iA("UserId"),o=await n(Vg(e)).unwrap()}else if("edit"===e){let e={UserId:null==t?void 0:t.SuperAdminUserId,SuperAdminUserAccessDetails:null==N?void 0:N.map((e=>({ConfigId:null==e?void 0:e.ConfigId,ReadAccess:(null==e?void 0:e.ReadAccess)?null==e?void 0:e.ReadAccess:"N",AddAccess:(null==e?void 0:e.AddAccess)?null==e?void 0:e.AddAccess:"N",DeleteAccess:(null==e?void 0:e.DeleteAccess)?null==e?void 0:e.DeleteAccess:"N",AccessId:null==e?void 0:e.AccessId,UpdateAccess:(null==e?void 0:e.UpdateAccess)?null==e?void 0:e.UpdateAccess:"N"})))};l&&(e.UpdatedBy=iA("UserId")),o=await n(Wg(e)).unwrap()}1==(null==(a=null==o?void 0:o.data)?void 0:a.statusCode)?i("/setting/super-admin-user-menu-access/",{state:{Notiffy:{messageType:"success",messageData:null==(r=null==o?void 0:o.data)?void 0:r.response}}}):(f("error"),v(null==(s=null==o?void 0:o.data)?void 0:s.response))},initialValues:{...l},children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"UserType",rules:[{required:!0,message:"Please Select User Type"}],children:Ye.jsx(_y,{options:[{value:"Super Admin User",label:"Super Admin User"},{value:"Marketing",label:"Marketing"}],label:Ye.jsx("label",{className:"required",children:"User Type"}),id:"UserId",field:"UserId",fieldState:!0,fieldApi:!0,className:"field-DropDown-Emp",onChangeFunction:e=>(e=>{var n;b(e),null==(n=t.current)||n.setFieldsValue({UserType:e})})(e),isOnchanges:"edit"==e,valueData:x,disabled:"edit"==e})}),Ye.jsx(I.Item,{name:"SuperAdminUserId",rules:[{required:!0,message:"Please Select SuperAdminUser"}],children:Ye.jsx(_y,{options:null==w?void 0:w.map((e=>({value:e.UserId,label:e.UserName}))),label:Ye.jsx("label",{className:"required",children:"Super Admin User Name"}),id:"UserId",field:"UserId",fieldState:!0,fieldApi:!0,className:"field-DropDown-Emp",onChangeFunction:e=>(async e=>{var n;null==(n=t.current)||n.setFieldsValue({SuperAdminUserId:e}),y(e)})(e),isOnchanges:"edit"==e,valueData:g,disabled:"edit"==e})})]})}),Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{A(e)},onSearchChange:e=>{var t;A(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})})]}),Ye.jsxs("div",{className:"reportTable reportTable-appMenu reportTableSub",children:[Ye.jsx(Vb,{columns:P,data:N||[],dataSource:N,rowSelection:T,pagination:e=>{u(e)},onChange:(e,t,n)=>{d(n)}})," "]})]})]})})})},Nae=Ja("appMenuAccess/getSadminUser",(async()=>await fA.get("/login?Type=Super Admin User"))),Iae=Ja("appMenuAccess/getApplications",(async({UserId:e})=>{if(null!=e&&null!=e)return await fA.get(`/appAccess?UserId=${e}`)})),Fae=Ja("appMenuAccess/getMenu",(async({AppId:e})=>{if(null!=e&&null!=e)return await fA.get(`/appMenu?AppId=${e}`)})),Bae=Ja("appMenuAccess/getPreviousMenu",(async({AppId:e,UserId:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await fA.get(`/AppMenuAccess?AppId=${e}&UserId=${t}`)})),Pae=Ja("appMenuAccess/postAppMenuAccess",(async e=>await fA.post("/AppMenuAccess",e))),kae=Ja("appMenuAccess/putAppMenuAccess",(async e=>await fA.put("/AppMenuAccess",e))),Tae=Ja("SMSCount/getSMSCount",(async()=>await fA.get("/SMSAssign"))),Eae=Ja("SMSCount/postSMSCount",(async e=>await fA.post("/SMSAssign",e))),Dae=Ja("SMSCount/putSMSCount",(async e=>await fA.put("/SMSAssign",e))),Lae="/",Uae=[{name:"Home",link:`${Lae}landing-page/home`},{name:"SMS-Assigned-Detail",link:`${Lae}setting/sms-assigned-detail`}],_ae=({formType:e})=>{const t=Qt(),n=Mt(),[i]=I.useForm(),r=um(),s=null==n?void 0:n.state,l=null==s?void 0:s.editstate,[o,d]=a.useState(),[c,u]=a.useState(),[p,A]=a.useState(),[h,f]=a.useState(null),[m,v]=a.useState(null),[g,y]=a.useState(null),[x,b]=a.useState([]),[w,j]=a.useState([]),[C,S]=a.useState([]),[N,F]=a.useState([]),[B,P]=a.useState(iA("UserId")?iA("UserId"):null);a.useEffect((()=>{try{r(Gh({items:Uae})),r(E9()).unwrap(),async function(){var e,t,n,i;try{let a=await r(Fb()).unwrap(),s=await r(tte({TypeName:"SMS Type"})).unwrap();1==(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)&&b(null==(t=null==a?void 0:a.data)?void 0:t.data),1==(null==(n=null==s?void 0:s.data)?void 0:n.statusCode)&&j(null==(i=null==s?void 0:s.data)?void 0:i.data)}catch(a){}}(),"edit"==e&&(f(null==l?void 0:l.AppId),d(null==l?void 0:l.ServiceType),u(null==l?void 0:l.CompId),D(null==l?void 0:l.AppId),L(null==l?void 0:l.CompId,null==l?void 0:l.AppId),A(null==l?void 0:l.BranchId),i.setFieldsValue({BrId:null==l?void 0:l.BranchId}),i.setFieldsValue({AppId:null==l?void 0:l.AppId}),i.setFieldsValue({CompId:null==l?void 0:l.CompId}),i.setFieldsValue({Type:null==l?void 0:l.ServiceType}),i.setFieldsValue({Count:null==l?void 0:l.AssignedCount}))}catch(t){}}),[]);const T=async()=>{var n,a,s,m,g;if("add"==e){let e={BranchId:p,CompId:c,AppId:h,AssignedCount:i.getFieldValue("Count"),ServiceType:o,CreatedBy:B},s=await r(Eae(e)).unwrap();1==(null==(n=null==s?void 0:s.data)?void 0:n.statusCode)&&(v("success"),y("SMS Assigned Successfully"),i.resetFields(["BrId","CompId","AppId","Count","Type"]),f(null),A(null),u(null),d(null),t(`${Lae}setting/sms-assigned-detail`,{state:{Notiffy:{messageType:"success",messageData:null==(a=null==s?void 0:s.data)?void 0:a.response}}}))}else{let e={UniqueId:null==l?void 0:l.UniqueId,BranchId:p,CompId:c,AppId:h,AssignedCount:i.getFieldValue("Count"),ServiceType:o,UpdatedBy:B},n=await r(Dae(e)).unwrap();1==(null==(s=null==n?void 0:n.data)?void 0:s.statusCode)&&(v("success"),y(null==(m=null==n?void 0:n.data)?void 0:m.response),i.resetFields(["BrId","CompId","AppId","Count","Type"]),f(null),A(null),u(null),d(null),t(`${Lae}setting/sms-assigned-detail`,{state:{Notiffy:{messageType:"success",messageData:null==(g=null==n?void 0:n.data)?void 0:g.response}}}))}};const E=a.useCallback((()=>{y(null),v(null)}),[]),D=async e=>{var t,n;try{let i=await r(ob(e)).unwrap();1==(null==(t=null==i?void 0:i.data)?void 0:t.statusCode)&&S(null==(n=null==i?void 0:i.data)?void 0:n.data)}catch(i){}},L=async(e,t=h)=>{var n,a;i.setFieldsValue({CompId:e}),u(e),A(null),F([]),i.resetFields(["BrId"]);let s=await r(oy({AppId:t,CompId:e})).unwrap();1===(null==(n=null==s?void 0:s.data)?void 0:n.statusCode)&&F(null==(a=null==s?void 0:s.data)?void 0:a.data)};return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:m,messageData:g,onComplete:E}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{style:{margin:"1rem 0"},children:Ye.jsx(ab,{title:"SMS-Assigned-Detail"})}),Ye.jsxs("div",{className:"handleSubmitSMS",children:[Ye.jsxs(I,{form:i,onFinish:T,children:[Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application"}],children:Ye.jsx(_y,{options:null==x?void 0:x.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"Application",label:Ye.jsx("label",{className:"required",children:"Application"}),className:"field-DropDown",isOnchanges:!!h,onChangeFunction:async e=>{i.setFieldsValue({AppId:e}),f(e),A(null),u(null),F([]),S([]),i.resetFields(["BrId","CompId"]),D(e)},valueData:h,disabled:"edit"==e})}),Ye.jsx(I.Item,{name:"CompId",rules:[{required:!0,message:"Please Select Company"}],children:Ye.jsx(_y,{options:null==C?void 0:C.map((e=>({value:e.CompId,label:e.CompName}))),placeholder:"Company",label:Ye.jsx("label",{className:"required",children:"Company"}),className:"field-DropDown",isOnchanges:!!c,onChangeFunction:L,valueData:c,disabled:"edit"==e})}),Ye.jsx(I.Item,{name:"BrId",rules:[{required:!0,message:"Please Select Branch"}],children:Ye.jsx(_y,{options:null==N?void 0:N.map((e=>({value:e.BrId,label:e.BrName}))),placeholder:"Branch",label:Ye.jsx("label",{className:"required",children:"Branch"}),className:"field-DropDown",isOnchanges:!!p,onChangeFunction:e=>{i.setFieldsValue({BrId:e}),A(e)},valueData:p,disabled:"edit"==e})}),Ye.jsx(I.Item,{name:"Type",rules:[{required:!0,message:"Please Select Type"}],children:Ye.jsx(_y,{options:null==w?void 0:w.map((e=>({value:e.ConfigId,label:e.ConfigName}))),placeholder:"Type",label:Ye.jsx("label",{className:"required",children:"SMS-Type"}),className:"field-DropDown",isOnchanges:!!o,onChangeFunction:e=>{i.setFieldsValue({Type:e}),d(e)},valueData:o,disabled:"edit"==e})}),Ye.jsx(I.Item,{name:"Count",rules:[{required:!0,pattern:/^[0-9]+$/,message:"Please Enter Count"}],children:Ye.jsx(Oy,{field:"Count",name:"Count",label:Ye.jsx("label",{className:"required",children:"Count"}),onChange:e=>{return t=null==e?void 0:e.target.value,void i.setFieldsValue({Count:t});var t},className:"Input",fieldState:!!l,autocomplete:"off",isOnChange:!!l})})]}),Ye.jsx(I,{form:i,onFinish:T,children:Ye.jsx("div",{className:"submitButtonDiv",children:Ye.jsx(Ry,{buttonText:"Submit",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0})})})]})]})]})})})},Oae="/",Mae=[{name:"Home",link:`${Oae}landing-page/home`},{name:"SMS-Assigned-Detail",link:`${Oae}setting/sms-assigned-detail`}],Rae=()=>{const e=Qt(),t=um(),n=Mt(),[i,r]=a.useState({}),[s,l]=a.useState(""),[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState(1),[h,f]=a.useState(!1),[m,v]=a.useState([]),g=Tf(O9),[y,x]=a.useState([]);a.useEffect((()=>{var e,i,a;try{t(Gh({items:Mae})),t(E9()).unwrap(),N(),(null==(e=null==n?void 0:n.state)?void 0:e.Notiffy)&&(d(null==(i=null==n?void 0:n.state)?void 0:i.Notiffy.messageType),u(null==(a=null==n?void 0:n.state)?void 0:a.Notiffy.messageData))}catch(r){}}),[]);const b=[{title:"SI.NO",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(p-1)+n+1})},{title:"Branch Name",dataIndex:"BranchName",key:"BranchName",width:"100px",align:"left",filteredValue:[s],onFilter:(e,t)=>String(t.BranchName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.CurrName)?void 0:n.localeCompare(t.CurrName)},sortOrder:"CurrName"===i.columnKey?i.order:null,ellipsis:!0},{title:"Assigned Count",dataIndex:"TotalCount",key:"TotalCount",align:"right",width:"100px",render:(e,t)=>Ye.jsx("span",{title:"Click to view SMS details",style:{color:"#1890ff",textDecoration:"underline",cursor:"pointer",fontWeight:500,transition:"color 0.2s"},onClick:()=>{v(null==t?void 0:t.SMSDetails),f(!0)},onMouseOver:e=>e.currentTarget.style.color="#40a9ff",onMouseOut:e=>e.currentTarget.style.color="#1890ff",children:null==t?void 0:t.TotalCount})},{title:"Used Count",dataIndex:"UsedCount",key:"UsedCount",align:"right",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black"},children:"0"})},{title:"Balance Count",dataIndex:"UsedCount",key:"UsedCount",align:"right",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black"},children:"0"})}],w=[{title:"SI.NO",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(p-1)+n+1})},{title:"Branch Name",dataIndex:"BranchName",key:"BranchName",width:"100px",align:"left",filteredValue:[s]},{title:"Assigned Count",dataIndex:"AssignedCount",key:"AssignedCount",align:"left",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:null==t?void 0:t.AssignedCount})},{title:"Used Count",dataIndex:"ConvRate",key:"ConvRate",align:"right",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Assigned Date",dataIndex:"CreatedDate",key:"CreatedDate",align:"right",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black"},children:B(e)})},{title:"Action",key:"Action",dataIndex:"Action",width:"100px",align:"center",render:(e,t,n)=>g.length>=1?Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>F(t,n)})})}):null}],j=(e,t,n)=>{r(n)},S=e=>{A(e)},N=async()=>{var e,n;try{let i=await t(Tae()).unwrap();1==(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&x(null==(n=null==i?void 0:i.data)?void 0:n.data)}catch(i){}},I=a.useCallback((()=>{u(null),d(null)}),[]),F=(t,n)=>{e(`${Oae}setting/sms-assigned-detail/update`,{state:{editstate:t}},{key:n})};function B(e){var t,n;return null==(n=null==(t=e.split("T"))?void 0:t[0])?void 0:n.split("-").reverse().join("-")}return Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:o,messageData:c,onComplete:I}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"SMS-Assigned-Detail"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{l(e)},onSearchChange:e=>{var t;l(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",handleSubmit:()=>{e(`${Oae}setting/sms-assigned-detail/new`)},icon:Ye.jsx(C,{}),children:"OPEN"})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:b,data:y,dataSource:y,pagination:S,onChange:j})," "]})]}),Ye.jsx(SP,{open:h,title:"SMS Assigned Details",footer:!1,width:900,children:Ye.jsx("div",{children:Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:w,data:m,dataSource:m,pagination:S,onChange:j})," "]})}),handleCancel:()=>{f(!1)}})]})},Qae="/home/",Hae="/home/",Vae=({formType:e})=>{const t=Qt(),n=um(),i=Mt(),r=a.useRef(null),s=null==i?void 0:i.state,l=null==s?void 0:s.editstate,[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState(null),[h,f]=a.useState(null),[m,v]=a.useState([]),[g,y]=a.useState(null),[x,b]=a.useState([]),[w,j]=a.useState(null),[C,S]=a.useState(""),N=iA("UserId"),F=[{name:"Home",link:`${Hae}landing-page/home`},{name:"Testimonials",link:`${Hae}setting/testimonials`},{name:l?"Edit":"New",link:null}];a.useEffect((()=>{P(),b([])}),[h]),a.useEffect((()=>{var t,i,a,s,o,d,c;n(Gh({items:F})),"edit"===e&&l&&(S(null==l?void 0:l.ImageUrl),f(null==l?void 0:l.AdminId),y(null==l?void 0:l.AppName),j(null==l?void 0:l.CompName),null==(t=r.current)||t.setFieldsValue({UserId:null==l?void 0:l.AdminId}),null==(i=r.current)||i.setFieldsValue({AppId:null==l?void 0:l.AppName}),null==(a=r.current)||a.setFieldsValue({CompId:null==l?void 0:l.CompName}),null==(s=r.current)||s.setFieldsValue({CustName:null==l?void 0:l.CustomerName}),null==(o=r.current)||o.setFieldsValue({Link:null==l?void 0:l.VideoLink}),null==(d=r.current)||d.setFieldsValue({feedback:null==l?void 0:l.CustomerReview}),null==(c=r.current)||c.setFieldsValue({Designation:null==l?void 0:l.Designation})),B()}),[]);const B=async()=>{var e,t;let i=await n(H6()).unwrap();1===(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&A(null==(t=null==i?void 0:i.data)?void 0:t.data)},P=async()=>{var e,t;let i=await n(V6(h)).unwrap();1===(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)?v(null==(t=null==i?void 0:i.data)?void 0:t.data):v([])},T=a.useCallback((()=>{u(null),d(null)}),[]);return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:o,messageData:c,onComplete:T}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Testimonials"})}),Ye.jsx("div",{className:"formDiv formDivTestimonials",children:Ye.jsxs(I,{ref:r,className:"formDivAnt",onFinish:async i=>{var a,r,s,o,c,p;if("edit"===e){const e={AppId:null==l?void 0:l.AppId,CompId:null==l?void 0:l.CompId,CustomerName:null==i?void 0:i.CustName,VideoLink:null==i?void 0:i.Link,CustomerReview:null==i?void 0:i.feedback,ImageUrl:C,AdminId:null==l?void 0:l.AdminId,CreatedBy:N,Designation:null==i?void 0:i.Designation,UniqueId:null==l?void 0:l.UniqueId};let o=await n(Y6(e)).unwrap();1==(null==(a=null==o?void 0:o.data)?void 0:a.statusCode)?t(`${Hae}setting/testimonials/`,{state:{Notiffy:{messageType:"success",messageData:null==(r=null==o?void 0:o.data)?void 0:r.response}}}):(d("error"),u(null==(s=null==o?void 0:o.data)?void 0:s.response))}else{const e={AppId:g,CompId:w,CustomerName:null==i?void 0:i.CustName,VideoLink:null==i?void 0:i.Link,CustomerReview:null==i?void 0:i.feedback,Designation:null==i?void 0:i.Designation,ImageUrl:C,AdminId:h,CreatedBy:N};let a=await n(q6(e)).unwrap();1==(null==(o=null==a?void 0:a.data)?void 0:o.statusCode)?t(`${Hae}setting/testimonials/`,{state:{Notiffy:{messageType:"success",messageData:null==(c=null==a?void 0:a.data)?void 0:c.response}}}):(d("error"),u(null==(p=null==a?void 0:a.data)?void 0:p.response))}},initialValues:l,children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"UserId",rules:[{required:!0,message:"Please Select Admin Name "}],children:Ye.jsx(_y,{options:null==p?void 0:p.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?e.UserName:e.MobileNo}))),placeholder:"UserId",label:Ye.jsx("label",{className:"required",children:"Admin Name"}),className:"field-DropDown",isOnchanges:!("edit"!=e&&!h),onChangeFunction:async e=>{var t;null==(t=r.current)||t.setFieldsValue({UserId:e}),y(void 0),await f(e),j(),y()},valueData:h,disabled:"edit"==e})}),Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application Name "}],children:Ye.jsx(_y,{options:null==m?void 0:m.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"AppId",label:Ye.jsx("label",{className:"required",children:"Application Name"}),className:"field-DropDown",isOnchanges:!!g,onChangeFunction:async e=>{var t,i,a;null==(t=r.current)||t.setFieldsValue({AppId:e}),await y(e);let s=await n(z6({AppId:e,UserId:h})).unwrap();1===(null==(i=null==s?void 0:s.data)?void 0:i.statusCode)?b(null==(a=null==s?void 0:s.data)?void 0:a.data):b([])},valueData:g,disabled:"edit"==e})}),Ye.jsx(I.Item,{name:"CompId",rules:[{required:!0,message:"Please Select Company Name "}],children:Ye.jsx(_y,{options:null==x?void 0:x.map((e=>({value:e.CompId,label:e.CompName}))),placeholder:"CompId",label:Ye.jsx("label",{className:"required",children:"Company Name"}),className:"field-DropDown",isOnchanges:!!w,onChangeFunction:async e=>{var t;null==(t=r.current)||t.setFieldsValue({CompId:e}),await j(e)},valueData:w,disabled:"edit"==e})}),Ye.jsx(I.Item,{name:"CustName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter CustomerName"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"CustName",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Customer Name"}),fieldState:!0,fieldApi:!0,isOnChange:!!(null==l?void 0:l.Proprietor)})}),Ye.jsx(I.Item,{name:"Designation",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Designation"},{validator:async(e,t)=>(await lA(t),t&&t.length>50?Promise.reject("Designation should not exceed 50 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"Designation",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Designation"}),fieldState:!0,fieldApi:!0,isOnChange:!!(null==l?void 0:l.Designation)})}),Ye.jsx(I.Item,{name:"feedback",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Review"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(My,{field:"feedback",name:"test",label:Ye.jsx("label",{className:"required",children:"Customer Review"}),className:"Input",fieldState:!0,fieldApi:!0,autocomplete:"off",isOnChange:!!(null==l?void 0:l.CustomerReview)})}),Ye.jsx(I.Item,{name:"Link",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Video Link"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Link",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Video Link"}),fieldState:!0,fieldApi:!0,isOnChange:!!(null==l?void 0:l.VideoLink)})}),Ye.jsxs("div",{className:"upload_btn",children:[Ye.jsx("p",{children:"Customer Image"}),Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>{S(e)},ImageLink:"edit"==e?null==l?void 0:l.ImageUrl:""})]})]})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0})})]})})]})})})},zae=Ja("AppVersion/getConfigNames",(async()=>await fA.get("/configMaster?TypeName=Device App Name"))),qae=Ja("AppVersion/postDeviceVersion",(async e=>await fA.post("/AppVersions",e))),Wae=Ja("AppVersion/getDeviceVersion",(async()=>await fA.get("/AppVersions?activeStatus=A"))),Yae=Ja("AppVersion/getDeviceVersionManagement",(async e=>await fA.get(`/AppVersionManagement?appId=${null==e?void 0:e.appId}&compId=${null==e?void 0:e.compId}&branchId=${null==e?void 0:e.branchId}&appType=${null==e?void 0:e.appType}`))),Kae=Ja("AppVersion/AppVersionManagementPost",(async e=>await fA.put("/AppVersionManagement",e))),Gae=({updateAppUrl:e,AppLinkLink:t})=>{const n=um(),[i,r]=a.useState([]),[s,l]=a.useState(!1),o=["application/vnd.android.package-archive","application/x-msdownload"];a.useEffect((()=>{null==t&&(e(""),r([]))}),[t]);return Ye.jsx(w,{fileList:i,onChange:async({fileList:t})=>{var i,a;if(t.length>0){const d=t[0].originFileObj;if(!(d&&o.includes(d.type)))return j.error({title:"Invalid File Type",content:"Only .apk files are allowed."}),void r([]);l(!0);try{const t=await n(qy(d)).unwrap();if(null==(i=null==t?void 0:t.data)?void 0:i.status){const n=t.data.image;e(n),r([{url:n,name:d.name}]),x.success("APK uploaded successfully!")}else x.error((null==(a=null==t?void 0:t.data)?void 0:a.message)||"Upload failed")}catch(s){x.error("Upload failed")}finally{l(!1)}}else e(""),r([])},onPreview:()=>{j.info({title:"APK File",content:"APK files cannot be previewed."})},beforeUpload:e=>{const t=o.includes(e.type);return t||j.error({title:"Invalid File Type",content:"Only .apk files are allowed."}),t||w.LIST_IGNORE},showUploadList:{showPreviewIcon:!1},customRequest:({file:e,onSuccess:t})=>{setTimeout((()=>t("ok")),0)},children:0===i.length?Ye.jsx("div",{style:{border:"1px dashed gray",borderRadius:"50%",height:"4.5rem",width:"4.5rem",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",position:"relative"},children:s?Ye.jsx(be,{indicator:Ye.jsx(we,{style:{fontSize:24},spin:!0})}):Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(je,{}),Ye.jsx("div",{style:{marginTop:8},children:"Upload"})]})}):null})},$ae=({fieldState:e,fieldApi:t,...n})=>{const{value:i}=e,[r,s]=a.useState(""),{field:l,onChange:o,isOnChange:d,onBlur:c,label:u,forwardedRef:p,required:A,valueData:h,...f}=n;return a.useEffect((()=>{h||s(!1)}),[h]),Ye.jsx("div",{className:"example",children:Ye.jsx(Uy,{label:u,value:r,isOnChange:d,children:Ye.jsx(g,{...f,id:l,ref:p,defaultValue:null==i?void 0:i.toString(),required:A,onChange:e=>{var t;s(null==(t=null==e?void 0:e.target)?void 0:t.value),o&&o(e)},onBlur:e=>{c&&c(e)}})})})},Xae=({options:e,onChangeFunction:t,isOnchanges:n,className:i,defaultValue:r,disabled:s,...l})=>{const[o,d]=a.useState(""),[c,u]=a.useState(n),{field:p,onChange:A,label:h,onBlur:f,forwardedRef:g,required:y,valueData:x,labelChange:b,...w}=l;return Ye.jsx(Uy,{label:h,value:o,isOnChange:null!=x,children:Ye.jsx(m,{showSearch:!0,style:{width:250},defaultValue:r||null,optionFilterProp:"children",filterOption:b?null:(e,t)=>((null==t?void 0:t.label)??"").toLowerCase().includes(e.toLowerCase()),filterSort:b?null:(e,t)=>{var n,i;return null==(i=null==(n=(null==e?void 0:e.label)??"")?void 0:n.toLowerCase())?void 0:i.localeCompare(((null==t?void 0:t.label)??"").toLowerCase())},value:x,onChange:e=>t(e),onSelect:e=>(async()=>{await u(!0)})(),options:e,className:v(` ${i}`),disabled:!!s})})},Jae=Ja("signinDetails/getSigninDetails",(async e=>null!=(null==e?void 0:e.role)&&null!=(null==e?void 0:e.role)&&(null==e?void 0:e.pageNumber)?await fA.get(`/UserLoginLog?pageNumber=${null==e?void 0:e.pageNumber}&role=${null==e?void 0:e.role}`):await fA.get(`/UserLoginLog?pageNumber=${null==e?void 0:e.pageNumber}`))),Zae=Ja("signinDetails/getSigninDetails",(async({Fromdate:e,Todate:t,userId:n})=>null!=e&&null!=e&&null!=t&&null!=t&&null!=n&&null!=n?await fA.get(`/UserLoginLog?FromDate=${e}&ToDate=${t} &userId=${n}`):null!=n&&null!=n?await fA.get(`/UserLoginLog?userId=${n}`):void 0)),ere=Ja("feature/getOnlineUserTracking",(async e=>await fA.get(`/OnlineUserTracking?pageNumber=${null==e?void 0:e.pageNumber}`))),tre=Ja("signinDetails/getUserOtp",(async({AppId:e,BranchId:t,CompId:n,userTypeName:i,pageNumber:a})=>{const r=new URLSearchParams;return e&&r.append("AppId",e),t&&r.append("BranchId",t),n&&r.append("CompId",n),i&&r.append("userTypeName",i),a&&r.append("pageNumber",a),await fA.get(`/UserOtp?${r.toString()}`)})),nre=Ja("signinDetails/PostUserOtp",(async e=>await fA.post("/VerifyOtp",e))),ire="https://www.pozo.dev/pozo-common-api";Ja("getPurcheseInfo",(async()=>await fA.get(`${ire}/UserPurchaseHistory`)));const are=Ja("getPurcheseInfo",(async()=>await fA.get(`${ire}/UserPurchaseHistory/Count`))),rre=Ja("getPurcheseInfoFilter",(async e=>await fA.get(`${ire}/UserPurchaseHistory?type=${e}`))),sre=Ja("ticketDetails/getTicketMaster",(async({AppId:e,BranchId:t,CompId:n,status:i,pageNumber:a})=>{const r=new URLSearchParams;return e&&r.append("appId",e),t&&r.append("branchId",t),n&&r.append("compId",n),i&&r.append("status",i),r.append("pageNumber",a),await fA.get(`/TicketMaster?${r.toString()}`)})),lre=Ja("ticketDetails/getBranch",(async({AppId:e,CompId:t})=>{if(null!=e&&null!=e&&null!=t&&null!=t)return await fA.get(`/branch?appId=${e}&compId=${t}`)})),ore=Ja("ticketDetails/getCompany",(async({AppId:e})=>{if(null!=e&&null!=e)return await fA.get(`/Company?appId=${e}&activeStatus=A`)})),dre=Ja("ticketDetails/getConfigurationType",(async()=>await fA.get("/ConfigMaster?typeName=Ticket Status"))),cre=Ja("ticketDetails/getConfigurationType",(async e=>await fA.post("/TicketMaster",e))),ure=Ja("ticketDetails/getConfigurationType",(async e=>await fA.put("/TicketMaster",e))),pre=Ja("ticketDetails/getStatusCount",(async()=>await fA.get("/TicketLogHistory/Count"))),Are=[{name:"Home",link:"/app-page/home"}],hre=[{name:"Home",link:"/app-page/home"}],fre="/home/",mre=({formType:e})=>{const t=a.useRef(null),n=Mt(),i=null==n?void 0:n.state,r=null==i?void 0:i.editstate,s=um(),l=Qt(),o=iA("UserId"),[d,c]=a.useState(null),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState(null),[v,g]=a.useState(!1),[y,x]=a.useState(!1),[b,w]=a.useState(!1),[j,C]=a.useState(),[S,N]=a.useState(null),[B,P]=a.useState(null),[T,E]=a.useState(window.innerWidth),[D,L]=a.useState([]),U=iA("UserType");iA("UserId");const _=Tf(Py),O=Tf(wb),[M,R]=a.useState(null),[Q,H]=a.useState([]),V=[{name:"Home",link:`${fre}landing-page/home`},{name:"Warehouse",link:`${fre}setting/warehouse-master/`},{name:r?"Edit":"New",link:null}],z=a.useCallback((()=>{p(null),c(null)}),[]);a.useEffect((()=>{s(Gh({items:V})),"Admin"==U&&q()}),[]),a.useEffect((()=>{const e=()=>E(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),a.useEffect((()=>{if(r){(async()=>{var e,n,i,a,s,l,o,d,c,u,p,A;C(null==r?void 0:r.CompId),m(null==r?void 0:r.AppId),R(null==r?void 0:r.UserId),W(null==r?void 0:r.UserId),null==(e=t.current)||e.setFieldsValue({CompId:null==r?void 0:r.CompId}),null==(n=null==t?void 0:t.current)||n.setFieldsValue({AppId:null==r?void 0:r.AppId}),null==(i=null==t?void 0:t.current)||i.setFieldsValue({WarehouseName:null==r?void 0:r.BrName}),null==(a=null==t?void 0:t.current)||a.setFieldsValue({ContactPerson:null==r?void 0:r.BrInCharge}),null==(s=null==t?void 0:t.current)||s.setFieldsValue({MobileNumber:null==r?void 0:r.BrMobile}),null==(l=null==t?void 0:t.current)||l.setFieldsValue({Address1:null==r?void 0:r.Address1}),null==(o=null==t?void 0:t.current)||o.setFieldsValue({Address2:null==r?void 0:r.Address2}),null==(d=null==t?void 0:t.current)||d.setFieldsValue({Zip:null==r?void 0:r.Zip}),x(null==r?void 0:r.Zip),null==(c=null==t?void 0:t.current)||c.setFieldsValue({City:null==r?void 0:r.City}),null==(u=null==t?void 0:t.current)||u.setFieldsValue({Dist:null==r?void 0:r.Dist}),null==(p=null==t?void 0:t.current)||p.setFieldsValue({State:null==r?void 0:r.State}),null==(A=null==t?void 0:t.current)||A.setFieldsValue({Email:null==r?void 0:r.BrEmail})})()}}),[]),a.useEffect((()=>{K(f)}),[f]);const q=async()=>{var e,n,i,a,r,d,u,A,f;const{data:v}=await(null==(e=s(jy(o)))?void 0:e.unwrap());h(null==(n=null==v?void 0:v.data)?void 0:n.filter((e=>null==_?void 0:_.some((t=>{var n;return t.AppId==(null==e?void 0:e.AppId)&&(null==(n=null==t?void 0:t.FeatAddonDetails)?void 0:n.some((e=>"Warehouse"==(null==e?void 0:e.FeatAddonName)&&(null==e?void 0:e.Count)>0)))}))))),1===(null==(i=null==v?void 0:v.data)?void 0:i.length)?(g(!0),m(null==(r=null==(a=null==v?void 0:v.data)?void 0:a[0])?void 0:r.AppId),null==(A=null==t?void 0:t.current)||A.setFieldsValue({AppId:null==(u=null==(d=null==v?void 0:v.data)?void 0:d[0])?void 0:u.AppId})):(null==(f=null==v?void 0:v.data)?void 0:f.length)<1&&(l(`${fre}setting/warehouse-master/`),c("error"),p("You don't have an active application"))},W=e=>{const t=null==_?void 0:_.filter((t=>t.UserId===e)),n=Array.from(null==t?void 0:t.reduce(((e,t)=>{if("Active"===t.Status){const n=`${t.AppId}-${t.AppName}`;e.has(n)||e.set(n,t)}return e}),new Map).values());H(n)},Y=async e=>{var n,i,a,r,d,c,u;null==(n=null==t?void 0:t.current)||n.setFieldsValue({AppId:e}),t.current.resetFields(["CompId"]),C(null),m(e),K(e);var p=[];if(1==(null==(i=(p="Admin"===U?await s(xy({UserId:o,AppId:e,CompId:e})).unwrap():await s(xy({UserId:M,AppId:e,CompId:e})).unwrap()).data)?void 0:i.statusCode)){const e=null==(a=p.data)?void 0:a.data[0];null==(d=null==(r=p.data)?void 0:r.data)||d.length;let t=null==(u=null==(c=null==e?void 0:e.FeatAddonDetails)?void 0:c.find((e=>"Warehouse"==(null==e?void 0:e.FeatAddonName))))?void 0:u.Count;e&&((null==e?void 0:e.WarehouseCount)>=t||!t)&&setTimeout((function(){l(`${fre}setting/warehouse-master/`,{state:{Notiffy:{messageType:"error",messageData:t?"Your have already Created Maximum Number of Warhouse":"you have to buy Warehouse "}}},700)}))}else Trial=[]},K=async e=>{var t,n,i,a,r;let l=await s(wy({UserId:"Admin"!=U?M:o,AppId:e})).unwrap();1===(null==(t=null==l?void 0:l.data)?void 0:t.statusCode)?(await L(null==(i=null==(n=null==l?void 0:l.data)?void 0:n.data)?void 0:i.filter((e=>"D"!==e.ActiveStatus))),null==(r=null==(a=null==l?void 0:l.data)?void 0:a.data)||r.length):L([])};return Ye.jsx("section",{className:"warehouse-form-section",children:Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:d,messageData:u,onComplete:z}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Warehouse Creation"})}),Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:t,onFinish:async t=>{var n,i,a;const d={AppId:null==t?void 0:t.AppId,CompId:null==t?void 0:t.CompId,BrName:null==t?void 0:t.WarehouseName,BrInCharge:null==t?void 0:t.ContactPerson,BrMobile:null==t?void 0:t.MobileNumber,BrEmail:null==t?void 0:t.Email,Address1:null==t?void 0:t.Address1,Address2:null==t?void 0:t.Address2,Zip:null==t?void 0:t.Zip,City:null==t?void 0:t.City,Dist:null==t?void 0:t.Dist,State:null==t?void 0:t.State,Latitude:null==t?void 0:t.Latitude,Longitude:null==t?void 0:t.Longitude,LocationType:"W",BrShName:"AA",UserId:"Admin"!=U?M:o};let u={};if("add"===e){d.CreatedBy=o;const{data:e}=await(null==(n=s(dy(d)))?void 0:n.unwrap());u=e}else{d.UpdatedBy=o,d.BrId=null==r?void 0:r.BrId;const{data:e}=await(null==(i=s(cy(d)))?void 0:i.unwrap());u=e}1===(null==u?void 0:u.statusCode)?(c("succes"),p("Warehouse Added Successfully"),l(`${fre}setting/warehouse-master/`)):(c("error"),p(null==(a=null==u?void 0:u.data)?void 0:a.response))},initialValues:r,children:[Ye.jsxs("div",{className:"warehouse-form-items",children:["Super Admin"===U||"Super Admin User"===U?Ye.jsx(I.Item,{name:"UserId",rules:[{required:!0,message:"Please Select Admin"}],children:Ye.jsx(_y,{options:null==O?void 0:O.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?null==e?void 0:e.UserName:e.MobileNo}))),placeholder:"UserId",label:"Admin Name",className:"field-DropDown",isOnchanges:!("edit"!=e&&!M),onChangeFunction:async e=>{var n,i;null==(n=t.current)||n.setFieldsValue({UserId:e}),m(null),C(null),g(!1),null==(i=t.current)||i.resetFields(["AppId"]),t.current.resetFields(["CompId"]),await R(e),"Admin"!=U&&W(e)},valueData:M,disabled:"edit"==e})}):null,"Super Admin"===U||"Super Admin User"===U?Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application"}],children:Ye.jsx(_y,{options:null==Q?void 0:Q.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"AppId",label:"Application Name",className:"field-DropDown",isOnchanges:!("edit"!=e&&!f),onChangeFunction:Y,valueData:f,disabled:!("edit"!=e&&!v)})}):Ye.jsx(Ye.Fragment,{children:Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application"}],children:Ye.jsx(_y,{options:null==A?void 0:A.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"AppId",label:Ye.jsx("label",{className:"required",children:"Application Name"}),className:"field-DropDown",isOnchanges:!("edit"!=e&&!f),onChangeFunction:Y,valueData:f,disabled:!("edit"!=e&&!v)})})}),Ye.jsx(I.Item,{name:"CompId",rules:[{required:!0,message:"Please Select Company"}],children:Ye.jsx(_y,{options:null==D?void 0:D.map((e=>({value:e.CompId,label:e.CompName}))),placeholder:"CompId",label:Ye.jsx("label",{className:"required",children:"Company Name"}),className:"field-DropDown",isOnchanges:!!j,onChangeFunction:async e=>{var n;C(e),null==(n=t.current)||n.setFieldsValue({CompId:e})},valueData:j,disabled:"edit"==e})}),Ye.jsx(I.Item,{name:"WarehouseName",rules:[{required:!0,message:"Please Enter Warehouse Name"}],children:Ye.jsx(Oy,{fieldState:!0,autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Warehouse Name"}),isOnChange:"edit"==e,onChange:e=>{}})}),Ye.jsx(I.Item,{name:"ContactPerson",rules:[{required:!0,message:"Please Enter Contact Person"}],children:Ye.jsx(Oy,{fieldState:!0,autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Contact Person"}),isOnChange:"edit"==e,onChange:e=>{}})}),Ye.jsx(I.Item,{name:"MobileNumber",rules:[{required:!0,pattern:/^[0-9]{10}$/,message:"Enter a Valid Mobile No."}],children:Ye.jsx(Oy,{label:Ye.jsx("label",{className:"required",children:"Mobile Number"}),fieldState:!0,maxLength:"10",autoComplete:"nope",isOnChange:"edit"==e,inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")})}),Ye.jsx(I.Item,{name:"Email",rules:[{pattern:/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,message:"Enter a valid email address"}],children:Ye.jsx(Oy,{field:"Email",autoComplete:"nope",label:"Email",fieldState:!0,isOnChange:"edit"==e})})]}),Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("div",{className:"formAddressDiv",children:Ye.jsx("p",{children:" Address Details"})}),Ye.jsxs("div",{className:"subinputForm subinputForm2",children:[Ye.jsxs("div",{className:b&&T>768?"warehouse-add-with-map":"warehouse-add-without-map",children:[Ye.jsx(I.Item,{name:"Address1",rules:[{required:"edit"!=e,pattern:/^(?!\s*$).+/,message:"Please Enter Address1"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Address1",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Address Line1"}),fieldState:!0,fieldApi:!0,isOnChange:!!(null==r?void 0:r.Address1)})}),Ye.jsx(I.Item,{name:"Address2",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Address2"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Address2",autoComplete:"off",label:"Address Line2",fieldState:!0,fieldApi:!0,isOnChange:!!(null==r?void 0:r.Address2)})}),Ye.jsx(I.Item,{name:"Zip",rules:[{required:"edit"!=e,validator:(e,t)=>t?/^\d{6}$/.test(t)?Promise.resolve():Promise.reject("Zipcode must be exactly 6 digits"):Promise.reject("Please enter Zipcode")}],children:Ye.jsx(Oy,{field:"Zip",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Zipcode"}),maxLength:"6",fieldState:!0,fieldApi:!0,isOnChange:!!(null==r?void 0:r.Zip),onChange:async e=>{var n,i;if((null==(n=null==e?void 0:e.target)?void 0:n.value.length)<6)return x(!1),!1;await(async e=>{var n;let i="";await fetch(`https://api.postalpincode.in/pincode/${e}`).then((e=>e.text())).then((e=>i=JSON.parse(e))),"Success"===i[0].Status?(x(!0),null==(n=t.current)||n.setFieldsValue({City:i[0].PostOffice[0].Block,Dist:i[0].PostOffice[0].District,State:i[0].PostOffice[0].State})):x(!1)})(null==(i=null==e?void 0:e.target)?void 0:i.value)},inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")})}),y?Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(I.Item,{name:"City",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"City",disabled:!0,isOnChange:!0,label:"City",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"Dist",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Dist",disabled:!0,isOnChange:!0,label:"District",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"State",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"State",disabled:!0,isOnChange:!0,label:"State",fieldState:!0,fieldApi:!0})})]}):"",Ye.jsx(I.Item,{name:"Latitude",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Latitude"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Latitude",label:"Latitude",isOnChange:!(!S&&!(null==r?void 0:r.Latitude)),fieldState:!0,fieldApi:!0,autoComplete:"off",suffix:T>768&&Ye.jsx(F,{title:b?"Close Map":"View Map",children:Ye.jsx(jv,{style:{color:"#1677ff",fontSize:"18px",cursor:"pointer"},onClick:()=>(e=>{w(e)})(!b)})})})}),Ye.jsx(I.Item,{name:"Longitude",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Longitude"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"Longitude",label:"Longitude",isOnChange:!(!B&&!(null==r?void 0:r.Longitude)),fieldState:!0,fieldApi:!0,autoComplete:"off"})})]}),b&&Ye.jsx("div",{className:"MapDiv",children:Ye.jsx(ib,{onMarkerClick:async e=>{var n;N("function"==typeof e.lat?e.lat():S),P("function"==typeof e.lng?e.lng():B),null==(n=t.current)||n.setFieldsValue({Latitude:"function"==typeof e.lat?e.lat():S,Longitude:"function"==typeof e.lng?e.lng():B})},prevlca:r?{lat:r.Latitude,lng:r.Longitude}:null})})]})]}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0})})]})})]})})})})},vre="/home/";function gre(e,t,n){return Math.max(e,Math.min(t,n))}class yre{advance(e){var t;if(!this.isRunning)return;let n=!1;if(this.lerp)this.value=(i=this.value,a=this.to,r=60*this.lerp,s=e,function(e,t,n){return(1-n)*e+n*t}(i,a,1-Math.exp(-r*s))),Math.round(this.value)===this.to&&(this.value=this.to,n=!0);else{this.currentTime+=e;const t=gre(0,this.currentTime/this.duration,1);n=t>=1;const i=n?1:this.easing(t);this.value=this.from+(this.to-this.from)*i}var i,a,r,s;null==(t=this.onUpdate)||t.call(this,this.value,n),n&&this.stop()}stop(){this.isRunning=!1}fromTo(e,t,{lerp:n=.1,duration:i=1,easing:a=e=>e,onStart:r,onUpdate:s}){this.from=this.value=e,this.to=t,this.lerp=n,this.duration=i,this.easing=a,this.currentTime=0,this.isRunning=!0,null==r||r(),this.onUpdate=s}}class xre{constructor({wrapper:e,content:t,autoResize:n=!0,debounce:a=250}={}){i(this,"resize",(()=>{this.onWrapperResize(),this.onContentResize()})),i(this,"onWrapperResize",(()=>{this.wrapper===window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)})),i(this,"onContentResize",(()=>{this.wrapper===window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)})),this.wrapper=e,this.content=t,n&&(this.debouncedResize=function(e,t){let n;return function(){let i=arguments,a=this;clearTimeout(n),n=setTimeout((function(){e.apply(a,i)}),t)}}(this.resize,a),this.wrapper===window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var e,t;null==(e=this.wrapperResizeObserver)||e.disconnect(),null==(t=this.contentResizeObserver)||t.disconnect(),window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}}class bre{constructor(){this.events={}}emit(e,...t){let n=this.events[e]||[];for(let i=0,a=n.length;i<a;i++)n[i](...t)}on(e,t){var n;return(null==(n=this.events[e])?void 0:n.push(t))||(this.events[e]=[t]),()=>{var n;this.events[e]=null==(n=this.events[e])?void 0:n.filter((e=>t!==e))}}off(e,t){var n;this.events[e]=null==(n=this.events[e])?void 0:n.filter((e=>t!==e))}destroy(){this.events={}}}const wre=100/6;class jre{constructor(e,{wheelMultiplier:t=1,touchMultiplier:n=1}){i(this,"onTouchStart",(e=>{const{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})})),i(this,"onTouchMove",(e=>{const{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,i=-(t-this.touchStart.x)*this.touchMultiplier,a=-(n-this.touchStart.y)*this.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:i,y:a},this.emitter.emit("scroll",{deltaX:i,deltaY:a,event:e})})),i(this,"onTouchEnd",(e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})})),i(this,"onWheel",(e=>{let{deltaX:t,deltaY:n,deltaMode:i}=e;t*=1===i?wre:2===i?this.windowWidth:1,n*=1===i?wre:2===i?this.windowHeight:1,t*=this.wheelMultiplier,n*=this.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:n,event:e})})),i(this,"onWindowResize",(()=>{this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight})),this.element=e,this.wheelMultiplier=t,this.touchMultiplier=n,this.touchStart={x:null,y:null},this.emitter=new bre,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,{passive:!1}),this.element.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.addEventListener("touchend",this.onTouchEnd,{passive:!1})}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,{passive:!1}),this.element.removeEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.removeEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.removeEventListener("touchend",this.onTouchEnd,{passive:!1})}}class Cre{constructor({wrapper:e=window,content:t=document.documentElement,wheelEventsTarget:n=e,eventsTarget:i=n,smoothWheel:a=!0,syncTouch:r=!1,syncTouchLerp:s=.075,touchInertiaMultiplier:l=35,duration:o,easing:d=e=>Math.min(1,1.001-Math.pow(2,-10*e)),lerp:c=!o&&.1,infinite:u=!1,orientation:p="vertical",gestureOrientation:A="vertical",touchMultiplier:h=1,wheelMultiplier:f=1,autoResize:m=!0,__experimental__naiveDimensions:v=!1}={}){this.__isSmooth=!1,this.__isScrolling=!1,this.__isStopped=!1,this.__isLocked=!1,this.onVirtualScroll=({deltaX:e,deltaY:t,event:n})=>{if(n.ctrlKey)return;const i=n.type.includes("touch"),a=n.type.includes("wheel");if(this.options.syncTouch&&i&&"touchstart"===n.type&&!this.isStopped&&!this.isLocked)return void this.reset();const r=0===e&&0===t,s="vertical"===this.options.gestureOrientation&&0===t||"horizontal"===this.options.gestureOrientation&&0===e;if(r||s)return;let l=n.composedPath();if(l=l.slice(0,l.indexOf(this.rootElement)),l.find((e=>{var t,n,r,s,l;return(null===(t=e.hasAttribute)||void 0===t?void 0:t.call(e,"data-lenis-prevent"))||i&&(null===(n=e.hasAttribute)||void 0===n?void 0:n.call(e,"data-lenis-prevent-touch"))||a&&(null===(r=e.hasAttribute)||void 0===r?void 0:r.call(e,"data-lenis-prevent-wheel"))||(null===(s=e.classList)||void 0===s?void 0:s.contains("lenis"))&&!(null===(l=e.classList)||void 0===l?void 0:l.contains("lenis-stopped"))})))return;if(this.isStopped||this.isLocked)return void n.preventDefault();if(this.isSmooth=this.options.syncTouch&&i||this.options.smoothWheel&&a,!this.isSmooth)return this.isScrolling=!1,void this.animate.stop();n.preventDefault();let o=t;"both"===this.options.gestureOrientation?o=Math.abs(t)>Math.abs(e)?t:e:"horizontal"===this.options.gestureOrientation&&(o=e);const d=i&&this.options.syncTouch,c=i&&"touchend"===n.type&&Math.abs(o)>5;c&&(o=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+o,Object.assign({programmatic:!1},d?{lerp:c?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}))},this.onNativeScroll=()=>{if(!this.__preventNextScrollEvent&&!this.isScrolling){const e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.direction=Math.sign(this.animatedScroll-e),this.emit()}},window.lenisVersion="1.0.42",e!==document.documentElement&&e!==document.body||(e=window),this.options={wrapper:e,content:t,wheelEventsTarget:n,eventsTarget:i,smoothWheel:a,syncTouch:r,syncTouchLerp:s,touchInertiaMultiplier:l,duration:o,easing:d,lerp:c,infinite:u,gestureOrientation:A,orientation:p,touchMultiplier:h,wheelMultiplier:f,autoResize:m,__experimental__naiveDimensions:v},this.animate=new yre,this.emitter=new bre,this.dimensions=new xre({wrapper:e,content:t,autoResize:m}),this.toggleClassName("lenis",!0),this.velocity=0,this.isLocked=!1,this.isStopped=!1,this.isSmooth=r||a,this.isScrolling=!1,this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll=new jre(i,{touchMultiplier:h,wheelMultiplier:f}),this.virtualScroll.on("scroll",this.onVirtualScroll)}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.toggleClassName("lenis",!1),this.toggleClassName("lenis-smooth",!1),this.toggleClassName("lenis-scrolling",!1),this.toggleClassName("lenis-stopped",!1),this.toggleClassName("lenis-locked",!1)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}setScroll(e){this.isHorizontal?this.rootElement.scrollLeft=e:this.rootElement.scrollTop=e}resize(){this.dimensions.resize()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.isStopped=!1,this.reset())}stop(){this.isStopped||(this.isStopped=!0,this.animate.stop(),this.reset())}raf(e){const t=e-(this.time||e);this.time=e,this.animate.advance(.001*t)}scrollTo(e,{offset:t=0,immediate:n=!1,lock:i=!1,duration:a=this.options.duration,easing:r=this.options.easing,lerp:s=!a&&this.options.lerp,onComplete:l,force:o=!1,programmatic:d=!0}={}){if(!this.isStopped&&!this.isLocked||o){if(["top","left","start"].includes(e))e=0;else if(["bottom","right","end"].includes(e))e=this.limit;else{let n;if("string"==typeof e?n=document.querySelector(e):(null==e?void 0:e.nodeType)&&(n=e),n){if(this.options.wrapper!==window){const e=this.options.wrapper.getBoundingClientRect();t-=this.isHorizontal?e.left:e.top}const i=n.getBoundingClientRect();e=(this.isHorizontal?i.left:i.top)+this.animatedScroll}}if("number"==typeof e){if(e+=t,e=Math.round(e),this.options.infinite?d&&(this.targetScroll=this.animatedScroll=this.scroll):e=gre(0,e,this.limit),n)return this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),void(null==l||l(this));if(!d){if(e===this.targetScroll)return;this.targetScroll=e}this.animate.fromTo(this.animatedScroll,e,{duration:a,easing:r,lerp:s,onStart:()=>{i&&(this.isLocked=!0),this.isScrolling=!0},onUpdate:(e,t)=>{this.isScrolling=!0,this.velocity=e-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=e,this.setScroll(this.scroll),d&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),null==l||l(this),this.__preventNextScrollEvent=!0,requestAnimationFrame((()=>{delete this.__preventNextScrollEvent})))}})}}}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){return this.isHorizontal?this.rootElement.scrollLeft:this.rootElement.scrollTop}get scroll(){return this.options.infinite?(this.animatedScroll%(e=this.limit)+e)%e:this.animatedScroll;var e}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isSmooth(){return this.__isSmooth}set isSmooth(e){this.__isSmooth!==e&&(this.__isSmooth=e,this.toggleClassName("lenis-smooth",e))}get isScrolling(){return this.__isScrolling}set isScrolling(e){this.__isScrolling!==e&&(this.__isScrolling=e,this.toggleClassName("lenis-scrolling",e))}get isStopped(){return this.__isStopped}set isStopped(e){this.__isStopped!==e&&(this.__isStopped=e,this.toggleClassName("lenis-stopped",e))}get isLocked(){return this.__isLocked}set isLocked(e){this.__isLocked!==e&&(this.__isLocked=e,this.toggleClassName("lenis-locked",e))}get className(){let e="lenis";return this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isSmooth&&(e+=" lenis-smooth"),e}toggleClassName(e,t){this.rootElement.classList.toggle(e,t),this.emitter.emit("className change",this)}}function Sre(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nre(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}
|
||
/*!
|
||
* GSAP 3.13.0
|
||
* https://gsap.com
|
||
*
|
||
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
||
* Subject to the terms at https://gsap.com/standard-license
|
||
* @author: Jack Doyle, jack@greensock.com
|
||
*/var Ire,Fre,Bre,Pre,kre,Tre,Ere,Dre,Lre,Ure,_re,Ore,Mre,Rre,Qre,Hre,Vre,zre,qre,Wre,Yre,Kre,Gre,$re,Xre,Jre,Zre,ese,tse,nse,ise,ase,rse={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},sse={duration:.5,overwrite:!1,delay:0},lse=1e8,ose=1e-8,dse=2*Math.PI,cse=dse/4,use=0,pse=Math.sqrt,Ase=Math.cos,hse=Math.sin,fse=function(e){return"string"==typeof e},mse=function(e){return"function"==typeof e},vse=function(e){return"number"==typeof e},gse=function(e){return void 0===e},yse=function(e){return"object"==typeof e},xse=function(e){return!1!==e},bse=function(){return"undefined"!=typeof window},wse=function(e){return mse(e)||fse(e)},jse="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Cse=Array.isArray,Sse=/(?:-?\.?\d|\.)+/gi,Nse=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ise=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Fse=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Bse=/[+-]=-?[.\d]+/,Pse=/[^,'"\[\]\s]+/gi,kse=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Tse={},Ese={},Dse=function(e){return(Ese=dle(e,Tse))&&dde},Lse=function(e,t){return!t&&void 0},Use=function(e,t){return e&&(Tse[e]=t)&&Ese&&(Ese[e]=t)||Tse},_se=function(){return 0},Ose={suppressEvents:!0,isStart:!0,kill:!1},Mse={suppressEvents:!0,kill:!1},Rse={suppressEvents:!0},Qse={},Hse=[],Vse={},zse={},qse={},Wse=30,Yse=[],Kse="",Gse=function(e){var t,n,i=e[0];if(yse(i)||mse(i)||(e=[e]),!(t=(i._gsap||{}).harness)){for(n=Yse.length;n--&&!Yse[n].targetTest(i););t=Yse[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new joe(e[n],t)))||e.splice(n,1);return e},$se=function(e){return e._gsap||Gse(Rle(e))[0]._gsap},Xse=function(e,t,n){return(n=e[t])&&mse(n)?e[t]():gse(n)&&e.getAttribute&&e.getAttribute(t)||n},Jse=function(e,t){return(e=e.split(",")).forEach(t)||e},Zse=function(e){return Math.round(1e5*e)/1e5||0},ele=function(e){return Math.round(1e7*e)/1e7||0},tle=function(e,t){var n=t.charAt(0),i=parseFloat(t.substr(2));return e=parseFloat(e),"+"===n?e+i:"-"===n?e-i:"*"===n?e*i:e/i},nle=function(e,t){for(var n=t.length,i=0;e.indexOf(t[i])<0&&++i<n;);return i<n},ile=function(){var e,t,n=Hse.length,i=Hse.slice(0);for(Vse={},Hse.length=0,e=0;e<n;e++)(t=i[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},ale=function(e){return!!(e._initted||e._startAt||e.add)},rle=function(e,t,n,i){Hse.length&&!Fre&&ile(),e.render(t,n,i||!!(Fre&&t<0&&ale(e))),Hse.length&&!Fre&&ile()},sle=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(Pse).length<2?t:fse(e)?e.trim():e},lle=function(e){return e},ole=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},dle=function(e,t){for(var n in t)e[n]=t[n];return e},cle=function e(t,n){for(var i in n)"__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&(t[i]=yse(n[i])?e(t[i]||(t[i]={}),n[i]):n[i]);return t},ule=function(e,t){var n,i={};for(n in e)n in t||(i[n]=e[n]);return i},ple=function(e){var t,n=e.parent||Pre,i=e.keyframes?(t=Cse(e.keyframes),function(e,n){for(var i in n)i in e||"duration"===i&&t||"ease"===i||(e[i]=n[i])}):ole;if(xse(e.inherit))for(;n;)i(e,n.vars.defaults),n=n.parent||n._dp;return e},Ale=function(e,t,n,i,a){void 0===n&&(n="_first"),void 0===i&&(i="_last");var r,s=e[i];if(a)for(r=t[a];s&&s[a]>r;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[i]=t,t._prev=s,t.parent=t._dp=e,t},hle=function(e,t,n,i){void 0===n&&(n="_first"),void 0===i&&(i="_last");var a=t._prev,r=t._next;a?a._next=r:e[n]===t&&(e[n]=r),r?r._prev=a:e[i]===t&&(e[i]=a),t._next=t._prev=t.parent=null},fle=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},mle=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},vle=function(e,t,n,i){return e._startAt&&(Fre?e._startAt.revert(Mse):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,i))},gle=function e(t){return!t||t._ts&&e(t.parent)},yle=function(e){return e._repeat?xle(e._tTime,e=e.duration()+e._rDelay)*e:0},xle=function(e,t){var n=Math.floor(e=ele(e/t));return e&&n===e?n-1:n},ble=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},wle=function(e){return e._end=ele(e._start+(e._tDur/Math.abs(e._ts||e._rts||ose)||0))},jle=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=ele(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),wle(e),n._dirty||mle(n,e)),e},Cle=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=ble(e.rawTime(),t),(!t._dur||Ule(0,t.totalDuration(),n)-t._tTime>ose)&&t.render(n,!0)),mle(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-1e-8}},Sle=function(e,t,n,i){return t.parent&&fle(t),t._start=ele((vse(n)?n:n||e!==Pre?Ele(e,n,t):e._time)+t._delay),t._end=ele(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ale(e,t,"_first","_last",e._sort?"_start":0),Ble(t)||(e._recent=t),i||Cle(e,t),e._ts<0&&jle(e,e._tTime),e},Nle=function(e,t){return Tse.ScrollTrigger?Tse.ScrollTrigger.create(t,e):void 0},Ile=function(e,t,n,i,a){return koe(e,t,a),e._initted?!n&&e._pt&&!Fre&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&Lre!==coe.frame?(Hse.push(e),e._lazy=[a,i],1):void 0:1},Fle=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},Ble=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},Ple=function(e,t,n,i){var a=e._repeat,r=ele(t)||0,s=e._tTime/e._tDur;return s&&!i&&(e._time*=r/e._dur),e._dur=r,e._tDur=a?a<0?1e10:ele(r*(a+1)+e._rDelay*a):r,s>0&&!i&&jle(e,e._tTime=e._tDur*s),e.parent&&wle(e),n||mle(e.parent,e),e},kle=function(e){return e instanceof Soe?mle(e):Ple(e,e._dur)},Tle={_start:0,endTime:_se,totalDuration:_se},Ele=function e(t,n,i){var a,r,s,l=t.labels,o=t._recent||Tle,d=t.duration()>=lse?o.endTime(!1):t._dur;return fse(n)&&(isNaN(n)||n in l)?(r=n.charAt(0),s="%"===n.substr(-1),a=n.indexOf("="),"<"===r||">"===r?(a>=0&&(n=n.replace(/=/,"")),("<"===r?o._start:o.endTime(o._repeat>=0))+(parseFloat(n.substr(1))||0)*(s?(a<0?o:i).totalDuration()/100:1)):a<0?(n in l||(l[n]=d),l[n]):(r=parseFloat(n.charAt(a-1)+n.substr(a+1)),s&&i&&(r=r/100*(Cse(i)?i[0]:i).totalDuration()),a>1?e(t,n.substr(0,a-1),i)+r:d+r)):null==n?d:+n},Dle=function(e,t,n){var i,a,r=vse(t[1]),s=(r?2:1)+(e<2?0:1),l=t[s];if(r&&(l.duration=t[1]),l.parent=n,e){for(i=l,a=n;a&&!("immediateRender"in i);)i=a.vars.defaults||{},a=xse(a.vars.inherit)&&a.parent;l.immediateRender=xse(i.immediateRender),e<2?l.runBackwards=1:l.startAt=t[s-1]}return new Uoe(t[0],l,t[s+1])},Lle=function(e,t){return e||0===e?t(e):t},Ule=function(e,t,n){return n<e?e:n>t?t:n},_le=function(e,t){return fse(e)&&(t=kse.exec(e))?t[1]:""},Ole=[].slice,Mle=function(e,t){return e&&yse(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&yse(e[0]))&&!e.nodeType&&e!==kre},Rle=function(e,t,n){return Bre&&!t&&Bre.selector?Bre.selector(e):!fse(e)||n||!Tre&&uoe()?Cse(e)?function(e,t,n){return void 0===n&&(n=[]),e.forEach((function(e){var i;return fse(e)&&!t||Mle(e,1)?(i=n).push.apply(i,Rle(e)):n.push(e)}))||n}(e,n):Mle(e)?Ole.call(e,0):e?[e]:[]:Ole.call((t||Ere).querySelectorAll(e),0)},Qle=function(e){return e=Rle(e)[0]||Lse()||{},function(t){var n=e.current||e.nativeElement||e;return Rle(t,n.querySelectorAll?n:n===e?Lse()||Ere.createElement("div"):e)}},Hle=function(e){return e.sort((function(){return.5-Math.random()}))},Vle=function(e){if(mse(e))return e;var t=yse(e)?e:{each:e},n=goe(t.ease),i=t.from||0,a=parseFloat(t.base)||0,r={},s=i>0&&i<1,l=isNaN(i)||s,o=t.axis,d=i,c=i;return fse(i)?d=c={center:.5,edges:.5,end:1}[i]||0:!s&&l&&(d=i[0],c=i[1]),function(e,s,u){var p,A,h,f,m,v,g,y,x,b=(u||t).length,w=r[b];if(!w){if(!(x="auto"===t.grid?0:(t.grid||[1,lse])[1])){for(g=-1e8;g<(g=u[x++].getBoundingClientRect().left)&&x<b;);x<b&&x--}for(w=r[b]=[],p=l?Math.min(x,b)*d-.5:i%x,A=x===lse?0:l?b*c/x-.5:i/x|0,g=0,y=lse,v=0;v<b;v++)h=v%x-p,f=A-(v/x|0),w[v]=m=o?Math.abs("y"===o?f:h):pse(h*h+f*f),m>g&&(g=m),m<y&&(y=m);"random"===i&&Hle(w),w.max=g-y,w.min=y,w.v=b=(parseFloat(t.amount)||parseFloat(t.each)*(x>b?b-1:o?"y"===o?b/x:x:Math.max(x,b/x))||0)*("edges"===i?-1:1),w.b=b<0?a-b:a,w.u=_le(t.amount||t.each)||0,n=n&&b<0?moe(n):n}return b=(w[e]-w.min)/w.max||0,ele(w.b+(n?n(b):b)*w.v)+w.u}},zle=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var i=ele(Math.round(parseFloat(n)/e)*e*t);return(i-i%1)/t+(vse(n)?0:_le(n))}},qle=function(e,t){var n,i,a=Cse(e);return!a&&yse(e)&&(n=a=e.radius||lse,e.values?(e=Rle(e.values),(i=!vse(e[0]))&&(n*=n)):e=zle(e.increment)),Lle(t,a?mse(e)?function(t){return i=e(t),Math.abs(i-t)<=n?i:t}:function(t){for(var a,r,s=parseFloat(i?t.x:t),l=parseFloat(i?t.y:0),o=lse,d=0,c=e.length;c--;)(a=i?(a=e[c].x-s)*a+(r=e[c].y-l)*r:Math.abs(e[c]-s))<o&&(o=a,d=c);return d=!n||o<=n?e[d]:t,i||d===t||vse(t)?d:d+_le(t)}:zle(e))},Wle=function(e,t,n,i){return Lle(Cse(e)?!t:!0===n?!!(n=0):!i,(function(){return Cse(e)?e[~~(Math.random()*e.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+.99*n))/n)*n*i)/i}))},Yle=function(e,t,n){return Lle(n,(function(n){return e[~~t(n)]}))},Kle=function(e){for(var t,n,i,a,r=0,s="";~(t=e.indexOf("random(",r));)i=e.indexOf(")",t),a="["===e.charAt(t+7),n=e.substr(t+7,i-t-7).match(a?Pse:Sse),s+=e.substr(r,t-r)+Wle(a?n:+n[0],a?0:+n[1],+n[2]||1e-5),r=i+1;return s+e.substr(r,e.length-r)},Gle=function(e,t,n,i,a){var r=t-e,s=i-n;return Lle(a,(function(t){return n+((t-e)/r*s||0)}))},$le=function(e,t,n){var i,a,r,s=e.labels,l=lse;for(i in s)(a=s[i]-t)<0==!!n&&a&&l>(a=Math.abs(a))&&(r=i,l=a);return r},Xle=function(e,t,n){var i,a,r,s=e.vars,l=s[t],o=Bre,d=e._ctx;if(l)return i=s[t+"Params"],a=s.callbackScope||e,n&&Hse.length&&ile(),d&&(Bre=d),r=i?l.apply(a,i):l.call(a),Bre=o,r},Jle=function(e){return fle(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Fre),e.progress()<1&&Xle(e,"onInterrupt"),e},Zle=[],eoe=function(e){if(e)if(e=!e.name&&e.default||e,bse()||e.headless){var t=e.name,n=mse(e),i=t&&!n&&e.init?function(){this._props=[]}:e,a={init:_se,render:qoe,add:Boe,kill:Yoe,modifier:Woe,rawVars:0},r={targetTest:0,get:0,getSetter:Qoe,aliases:{},register:0};if(uoe(),e!==i){if(zse[t])return;ole(i,ole(ule(e,a),r)),dle(i.prototype,dle(a,ule(e,r))),zse[i.prop=t]=i,e.targetTest&&(Yse.push(i),Qse[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Use(t,i),e.register&&e.register(dde,i,$oe)}else Zle.push(e)},toe=255,noe={aqua:[0,toe,toe],lime:[0,toe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,toe],navy:[0,0,128],white:[toe,toe,toe],olive:[128,128,0],yellow:[toe,toe,0],orange:[toe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[toe,0,0],pink:[toe,192,203],cyan:[0,toe,toe],transparent:[toe,toe,toe,0]},ioe=function(e,t,n){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(n-t)*e*6:e<.5?n:3*e<2?t+(n-t)*(2/3-e)*6:t)*toe+.5|0},aoe=function(e,t,n){var i,a,r,s,l,o,d,c,u,p,A=e?vse(e)?[e>>16,e>>8&toe,e&toe]:0:noe.black;if(!A){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),noe[e])A=noe[e];else if("#"===e.charAt(0)){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),r=e.charAt(3),e="#"+i+i+a+a+r+r+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(A=parseInt(e.substr(1,6),16))>>16,A>>8&toe,A&toe,parseInt(e.substr(7),16)/255];A=[(e=parseInt(e.substr(1),16))>>16,e>>8&toe,e&toe]}else if("hsl"===e.substr(0,3))if(A=p=e.match(Sse),t){if(~e.indexOf("="))return A=e.match(Nse),n&&A.length<4&&(A[3]=1),A}else s=+A[0]%360/360,l=+A[1]/100,i=2*(o=+A[2]/100)-(a=o<=.5?o*(l+1):o+l-o*l),A.length>3&&(A[3]*=1),A[0]=ioe(s+1/3,i,a),A[1]=ioe(s,i,a),A[2]=ioe(s-1/3,i,a);else A=e.match(Sse)||noe.transparent;A=A.map(Number)}return t&&!p&&(i=A[0]/toe,a=A[1]/toe,r=A[2]/toe,o=((d=Math.max(i,a,r))+(c=Math.min(i,a,r)))/2,d===c?s=l=0:(u=d-c,l=o>.5?u/(2-d-c):u/(d+c),s=d===i?(a-r)/u+(a<r?6:0):d===a?(r-i)/u+2:(i-a)/u+4,s*=60),A[0]=~~(s+.5),A[1]=~~(100*l+.5),A[2]=~~(100*o+.5)),n&&A.length<4&&(A[3]=1),A},roe=function(e){var t=[],n=[],i=-1;return e.split(loe).forEach((function(e){var a=e.match(Ise)||[];t.push.apply(t,a),n.push(i+=a.length+1)})),t.c=n,t},soe=function(e,t,n){var i,a,r,s,l="",o=(e+l).match(loe),d=t?"hsla(":"rgba(",c=0;if(!o)return e;if(o=o.map((function(e){return(e=aoe(e,t,1))&&d+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"})),n&&(r=roe(e),(i=n.c).join(l)!==r.c.join(l)))for(s=(a=e.replace(loe,"1").split(Ise)).length-1;c<s;c++)l+=a[c]+(~i.indexOf(c)?o.shift()||d+"0,0,0,0)":(r.length?r:o.length?o:n).shift());if(!a)for(s=(a=e.split(loe)).length-1;c<s;c++)l+=a[c]+o[c];return l+a[s]},loe=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in noe)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),ooe=/hsl[a]?\(/,doe=function(e){var t,n=e.join(" ");if(loe.lastIndex=0,loe.test(n))return t=ooe.test(n),e[1]=soe(e[1],t),e[0]=soe(e[0],t,roe(e[1])),!0},coe=(zre=Date.now,qre=500,Wre=33,Yre=zre(),Kre=Yre,$re=Gre=1e3/240,Jre=function e(t){var n,i,a,r,s=zre()-Kre,l=!0===t;if((s>qre||s<0)&&(Yre+=s-Wre),((n=(a=(Kre+=s)-Yre)-$re)>0||l)&&(r=++Qre.frame,Hre=a-1e3*Qre.time,Qre.time=a/=1e3,$re+=n+(n>=Gre?4:Gre-n),i=1),l||(Ore=Mre(e)),i)for(Vre=0;Vre<Xre.length;Vre++)Xre[Vre](a,Hre,r,t)},Qre={time:0,frame:0,tick:function(){Jre(!0)},deltaRatio:function(e){return Hre/(1e3/(e||60))},wake:function(){Dre&&(!Tre&&bse()&&(kre=Tre=window,Ere=kre.document||{},Tse.gsap=dde,(kre.gsapVersions||(kre.gsapVersions=[])).push(dde.version),Dse(Ese||kre.GreenSockGlobals||!kre.gsap&&kre||{}),Zle.forEach(eoe)),Rre="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,Ore&&Qre.sleep(),Mre=Rre||function(e){return setTimeout(e,$re-1e3*Qre.time+1|0)},_re=1,Jre(2))},sleep:function(){(Rre?cancelAnimationFrame:clearTimeout)(Ore),_re=0,Mre=_se},lagSmoothing:function(e,t){qre=e||1/0,Wre=Math.min(t||33,qre)},fps:function(e){Gre=1e3/(e||240),$re=1e3*Qre.time+Gre},add:function(e,t,n){var i=t?function(t,n,a,r){e(t,n,a,r),Qre.remove(i)}:e;return Qre.remove(e),Xre[n?"unshift":"push"](i),uoe(),i},remove:function(e,t){~(t=Xre.indexOf(e))&&Xre.splice(t,1)&&Vre>=t&&Vre--},_listeners:Xre=[]},Qre),uoe=function(){return!_re&&coe.wake()},poe={},Aoe=/^[\d.\-M][\d.\-,\s]/,hoe=/["']/g,foe=function(e){for(var t,n,i,a={},r=e.substr(1,e.length-3).split(":"),s=r[0],l=1,o=r.length;l<o;l++)n=r[l],t=l!==o-1?n.lastIndexOf(","):n.length,i=n.substr(0,t),a[s]=isNaN(i)?i.replace(hoe,"").trim():+i,s=n.substr(t+1).trim();return a},moe=function(e){return function(t){return 1-e(1-t)}},voe=function e(t,n){for(var i,a=t._first;a;)a instanceof Soe?e(a,n):!a.vars.yoyoEase||a._yoyo&&a._repeat||a._yoyo===n||(a.timeline?e(a.timeline,n):(i=a._ease,a._ease=a._yEase,a._yEase=i,a._yoyo=n)),a=a._next},goe=function(e,t){return e&&(mse(e)?e:poe[e]||function(e){var t,n,i,a,r=(e+"").split("("),s=poe[r[0]];return s&&r.length>1&&s.config?s.config.apply(null,~e.indexOf("{")?[foe(r[1])]:(t=e,n=t.indexOf("(")+1,i=t.indexOf(")"),a=t.indexOf("(",n),t.substring(n,~a&&a<i?t.indexOf(")",i+1):i)).split(",").map(sle)):poe._CE&&Aoe.test(e)?poe._CE("",e):s}(e))||t},yoe=function(e,t,n,i){void 0===n&&(n=function(e){return 1-t(1-e)}),void 0===i&&(i=function(e){return e<.5?t(2*e)/2:1-t(2*(1-e))/2});var a,r={easeIn:t,easeOut:n,easeInOut:i};return Jse(e,(function(e){for(var t in poe[e]=Tse[e]=r,poe[a=e.toLowerCase()]=n,r)poe[a+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=poe[e+"."+t]=r[t]})),r},xoe=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}},boe=function e(t,n,i){var a=n>=1?n:1,r=(i||(t?.3:.45))/(n<1?n:1),s=r/dse*(Math.asin(1/a)||0),l=function(e){return 1===e?1:a*Math.pow(2,-10*e)*hse((e-s)*r)+1},o="out"===t?l:"in"===t?function(e){return 1-l(1-e)}:xoe(l);return r=dse/r,o.config=function(n,i){return e(t,n,i)},o},woe=function e(t,n){void 0===n&&(n=1.70158);var i=function(e){return e?--e*e*((n+1)*e+n)+1:0},a="out"===t?i:"in"===t?function(e){return 1-i(1-e)}:xoe(i);return a.config=function(n){return e(t,n)},a};Jse("Linear,Quad,Cubic,Quart,Quint,Strong",(function(e,t){var n=t<5?t+1:t;yoe(e+",Power"+(n-1),t?function(e){return Math.pow(e,n)}:function(e){return e},(function(e){return 1-Math.pow(1-e,n)}),(function(e){return e<.5?Math.pow(2*e,n)/2:1-Math.pow(2*(1-e),n)/2}))})),poe.Linear.easeNone=poe.none=poe.Linear.easeIn,yoe("Elastic",boe("in"),boe("out"),boe()),Zre=7.5625,nse=2*(tse=1/(ese=2.75)),ise=2.5*tse,yoe("Bounce",(function(e){return 1-ase(1-e)}),ase=function(e){return e<tse?Zre*e*e:e<nse?Zre*Math.pow(e-1.5/ese,2)+.75:e<ise?Zre*(e-=2.25/ese)*e+.9375:Zre*Math.pow(e-2.625/ese,2)+.984375}),yoe("Expo",(function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)})),yoe("Circ",(function(e){return-(pse(1-e*e)-1)})),yoe("Sine",(function(e){return 1===e?1:1-Ase(e*cse)})),yoe("Back",woe("in"),woe("out"),woe()),poe.SteppedEase=poe.steps=Tse.SteppedEase={config:function(e,t){void 0===e&&(e=1);var n=1/e,i=e+(t?0:1),a=t?1:0;return function(e){return((i*Ule(0,.99999999,e)|0)+a)*n}}},sse.ease=poe["quad.out"],Jse("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(e){return Kse+=e+","+e+"Params,"}));var joe=function(e,t){this.id=use++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Xse,this.set=t?t.getSetter:Qoe},Coe=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,Ple(this,+e.duration,1,1),this.data=e.data,Bre&&(this._ctx=Bre,Bre.data.push(this)),_re||coe.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Ple(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(uoe(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(jle(this,e),!n._dp||n.parent||Cle(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&Sle(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===ose||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),rle(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+yle(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+yle(this),t):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?xle(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?ble(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(Ule(-Math.abs(this._delay),this.totalDuration(),n),!1!==t),wle(this),function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e}(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(uoe(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==ose&&(this._tTime-=ose)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=e;var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Sle(t,this,e-this._delay),this}return this._start},t.endTime=function(e){return this._start+(xse(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ble(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=Rse);var t=Fre;return Fre=e,ale(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),Fre=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,kle(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,kle(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(Ele(this,e),xse(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,xse(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,n=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=n&&e<this.endTime(!0)-ose))},t.eventCallback=function(e,t,n){var i=this.vars;return arguments.length>1?(t?(i[e]=t,n&&(i[e+"Params"]=n),"onUpdate"===e&&(this._onUpdate=t)):delete i[e],this):i[e]},t.then=function(e){var t=this;return new Promise((function(n){var i=mse(e)?e:lle,a=function(){var e=t.then;t.then=null,mse(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),n(i),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a}))},t.kill=function(){Jle(this)},e}();ole(Coe.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Soe=function(e){function t(t,n){var i;return void 0===t&&(t={}),(i=e.call(this,t)||this).labels={},i.smoothChildTiming=!!t.smoothChildTiming,i.autoRemoveChildren=!!t.autoRemoveChildren,i._sort=xse(t.sortChildren),Pre&&Sle(t.parent||Pre,Sre(i),n),t.reversed&&i.reverse(),t.paused&&i.paused(!0),t.scrollTrigger&&Nle(Sre(i),t.scrollTrigger),i}Nre(t,e);var n=t.prototype;return n.to=function(e,t,n){return Dle(0,arguments,this),this},n.from=function(e,t,n){return Dle(1,arguments,this),this},n.fromTo=function(e,t,n,i){return Dle(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,ple(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Uoe(e,t,Ele(this,n),1),this},n.call=function(e,t,n){return Sle(this,Uoe.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,i,a,r,s){return n.duration=t,n.stagger=n.stagger||i,n.onComplete=r,n.onCompleteParams=s,n.parent=this,new Uoe(e,n,Ele(this,a)),this},n.staggerFrom=function(e,t,n,i,a,r,s){return n.runBackwards=1,ple(n).immediateRender=xse(n.immediateRender),this.staggerTo(e,t,n,i,a,r,s)},n.staggerFromTo=function(e,t,n,i,a,r,s,l){return i.startAt=n,ple(i).immediateRender=xse(i.immediateRender),this.staggerTo(e,t,i,a,r,s,l)},n.render=function(e,t,n){var i,a,r,s,l,o,d,c,u,p,A,h,f=this._time,m=this._dirty?this.totalDuration():this._tDur,v=this._dur,g=e<=0?0:ele(e),y=this._zTime<0!=e<0&&(this._initted||!v);if(this!==Pre&&g>m&&e>=0&&(g=m),g!==this._tTime||n||y){if(f!==this._time&&v&&(g+=this._time-f,e+=this._time-f),i=g,u=this._start,o=!(c=this._ts),y&&(v||(f=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(A=this._yoyo,l=v+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*l+e,t,n);if(i=ele(g%l),g===m?(s=this._repeat,i=v):((s=~~(p=ele(g/l)))&&s===p&&(i=v,s--),i>v&&(i=v)),p=xle(this._tTime,l),!f&&this._tTime&&p!==s&&this._tTime-p*l-this._dur<=0&&(p=s),A&&1&s&&(i=v-i,h=1),s!==p&&!this._lock){var x=A&&1&p,b=x===(A&&1&s);if(s<p&&(x=!x),f=x?0:g%v?v:g,this._lock=1,this.render(f||(h?0:ele(s*l)),t,!v)._lock=0,this._tTime=g,!t&&this.parent&&Xle(this,"onRepeat"),this.vars.repeatRefresh&&!h&&(this.invalidate()._lock=1),f&&f!==this._time||o!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,m=this._tDur,b&&(this._lock=2,f=x?v:-1e-4,this.render(f,!0),this.vars.repeatRefresh&&!h&&this.invalidate()),this._lock=0,!this._ts&&!o)return this;voe(this,h)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(d=function(e,t,n){var i;if(n>t)for(i=e._first;i&&i._start<=n;){if("isPause"===i.data&&i._start>t)return i;i=i._next}else for(i=e._last;i&&i._start>=n;){if("isPause"===i.data&&i._start<t)return i;i=i._prev}}(this,ele(f),ele(i)),d&&(g-=i-(i=d._start))),this._tTime=g,this._time=i,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,f=0),!f&&g&&!t&&!p&&(Xle(this,"onStart"),this._tTime!==g))return this;if(i>=f&&e>=0)for(a=this._first;a;){if(r=a._next,(a._act||i>=a._start)&&a._ts&&d!==a){if(a.parent!==this)return this.render(e,t,n);if(a.render(a._ts>0?(i-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(i-a._start)*a._ts,t,n),i!==this._time||!this._ts&&!o){d=0,r&&(g+=this._zTime=-1e-8);break}}a=r}else{a=this._last;for(var w=e<0?e:i;a;){if(r=a._prev,(a._act||w<=a._end)&&a._ts&&d!==a){if(a.parent!==this)return this.render(e,t,n);if(a.render(a._ts>0?(w-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(w-a._start)*a._ts,t,n||Fre&&ale(a)),i!==this._time||!this._ts&&!o){d=0,r&&(g+=this._zTime=w?-1e-8:ose);break}}a=r}}if(d&&!t&&(this.pause(),d.render(i>=f?0:-1e-8)._zTime=i>=f?1:-1,this._ts))return this._start=u,wle(this),this.render(e,t,n);this._onUpdate&&!t&&Xle(this,"onUpdate",!0),(g===m&&this._tTime>=this.totalDuration()||!g&&f)&&(u!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((e||!v)&&(g===m&&this._ts>0||!g&&this._ts<0)&&fle(this,1),t||e<0&&!f||!g&&!f&&m||(Xle(this,g===m&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(g<m&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(vse(t)||(t=Ele(this,t,e)),!(e instanceof Coe)){if(Cse(e))return e.forEach((function(e){return n.add(e,t)})),this;if(fse(e))return this.addLabel(e,t);if(!mse(e))return this;e=Uoe.delayedCall(0,e)}return this!==e?Sle(this,e,t):this},n.getChildren=function(e,t,n,i){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===i&&(i=-1e8);for(var a=[],r=this._first;r;)r._start>=i&&(r instanceof Uoe?t&&a.push(r):(n&&a.push(r),e&&a.push.apply(a,r.getChildren(!0,t,n)))),r=r._next;return a},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return fse(e)?this.removeLabel(e):mse(e)?this.killTweensOf(e):(e.parent===this&&hle(this,e),e===this._recent&&(this._recent=this._last),mle(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ele(coe.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=Ele(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var i=Uoe.delayedCall(0,t||_se,n);return i.data="isPause",this._hasPause=1,Sle(this,i,Ele(this,e))},n.removePause=function(e){var t=this._first;for(e=Ele(this,e);t;)t._start===e&&"isPause"===t.data&&fle(t),t=t._next},n.killTweensOf=function(e,t,n){for(var i=this.getTweensOf(e,n),a=i.length;a--;)Noe!==i[a]&&i[a].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n,i=[],a=Rle(e),r=this._first,s=vse(t);r;)r instanceof Uoe?nle(r._targets,a)&&(s?(!Noe||r._initted&&r._ts)&&r.globalTime(0)<=t&&r.globalTime(r.totalDuration())>t:!t||r.isActive())&&i.push(r):(n=r.getTweensOf(a,t)).length&&i.push.apply(i,n),r=r._next;return i},n.tweenTo=function(e,t){t=t||{};var n,i=this,a=Ele(i,e),r=t,s=r.startAt,l=r.onStart,o=r.onStartParams,d=r.immediateRender,c=Uoe.to(i,ole({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:t.duration||Math.abs((a-(s&&"time"in s?s.time:i._time))/i.timeScale())||ose,onStart:function(){if(i.pause(),!n){var e=t.duration||Math.abs((a-(s&&"time"in s?s.time:i._time))/i.timeScale());c._dur!==e&&Ple(c,e,0,1).render(c._time,!0,!0),n=1}l&&l.apply(c,o||[])}},t));return d?c.render(0):c},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,ole({startAt:{time:Ele(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return void 0===e&&(e=this._time),$le(this,Ele(this,e))},n.previousLabel=function(e){return void 0===e&&(e=this._time),$le(this,Ele(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+ose)},n.shiftChildren=function(e,t,n){void 0===n&&(n=0);for(var i,a=this._first,r=this.labels;a;)a._start>=n&&(a._start+=e,a._end+=e),a=a._next;if(t)for(i in r)r[i]>=n&&(r[i]+=e);return mle(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){void 0===e&&(e=!0);for(var t,n=this._first;n;)t=n._next,this.remove(n),n=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),mle(this)},n.totalDuration=function(e){var t,n,i,a=0,r=this,s=r._last,l=lse;if(arguments.length)return r.timeScale((r._repeat<0?r.duration():r.totalDuration())/(r.reversed()?-e:e));if(r._dirty){for(i=r.parent;s;)t=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>l&&r._sort&&s._ts&&!r._lock?(r._lock=1,Sle(r,s,n-s._delay,1)._lock=0):l=n,n<0&&s._ts&&(a-=n,(!i&&!r._dp||i&&i.smoothChildTiming)&&(r._start+=n/r._ts,r._time-=n,r._tTime-=n),r.shiftChildren(-n,!1,-1/0),l=0),s._end>a&&s._ts&&(a=s._end),s=t;Ple(r,r===Pre&&r._time>a?r._time:a,1,1),r._dirty=0}return r._tDur},t.updateRoot=function(e){if(Pre._ts&&(rle(Pre,ble(e,Pre)),Lre=coe.frame),coe.frame>=Wse){Wse+=rse.autoSleep||120;var t=Pre._first;if((!t||!t._ts)&&rse.autoSleep&&coe._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||coe.sleep()}}},t}(Coe);ole(Soe.prototype,{_lock:0,_hasPause:0,_forcing:0});var Noe,Ioe,Foe=function(e,t,n,i,a,r,s){var l,o,d,c,u,p,A,h,f=new $oe(this._pt,e,t,0,1,zoe,null,a),m=0,v=0;for(f.b=n,f.e=i,n+="",(A=~(i+="").indexOf("random("))&&(i=Kle(i)),r&&(r(h=[n,i],e,t),n=h[0],i=h[1]),o=n.match(Fse)||[];l=Fse.exec(i);)c=l[0],u=i.substring(m,l.index),d?d=(d+1)%5:"rgba("===u.substr(-5)&&(d=1),c!==o[v++]&&(p=parseFloat(o[v-1])||0,f._pt={_next:f._pt,p:u||1===v?u:",",s:p,c:"="===c.charAt(1)?tle(p,c)-p:parseFloat(c)-p,m:d&&d<4?Math.round:0},m=Fse.lastIndex);return f.c=m<i.length?i.substring(m,i.length):"",f.fp=s,(Bse.test(i)||A)&&(f.e=0),this._pt=f,f},Boe=function(e,t,n,i,a,r,s,l,o,d){mse(i)&&(i=i(a||0,e,r));var c,u=e[t],p="get"!==n?n:mse(u)?o?e[t.indexOf("set")||!mse(e["get"+t.substr(3)])?t:"get"+t.substr(3)](o):e[t]():u,A=mse(u)?o?Moe:Ooe:_oe;if(fse(i)&&(~i.indexOf("random(")&&(i=Kle(i)),"="===i.charAt(1)&&((c=tle(p,i)+(_le(p)||0))||0===c)&&(i=c)),!d||p!==i||Ioe)return isNaN(p*i)||""===i?Foe.call(this,e,t,p,i,A,l||rse.stringFilter,o):(c=new $oe(this._pt,e,t,+p||0,i-(p||0),"boolean"==typeof u?Voe:Hoe,0,A),o&&(c.fp=o),s&&c.modifier(s,this,e),this._pt=c)},Poe=function(e,t,n,i,a,r){var s,l,o,d;if(zse[e]&&!1!==(s=new zse[e]).init(a,s.rawVars?t[e]:function(e,t,n,i,a){if(mse(e)&&(e=Eoe(e,a,t,n,i)),!yse(e)||e.style&&e.nodeType||Cse(e)||jse(e))return fse(e)?Eoe(e,a,t,n,i):e;var r,s={};for(r in e)s[r]=Eoe(e[r],a,t,n,i);return s}(t[e],i,a,r,n),n,i,r)&&(n._pt=l=new $oe(n._pt,a,e,0,1,s.render,s,0,s.priority),n!==Ure))for(o=n._ptLookup[n._targets.indexOf(a)],d=s._props.length;d--;)o[s._props[d]]=l;return s},koe=function e(t,n,i){var a,r,s,l,o,d,c,u,p,A,h,f,m,v=t.vars,g=v.ease,y=v.startAt,x=v.immediateRender,b=v.lazy,w=v.onUpdate,j=v.runBackwards,C=v.yoyoEase,S=v.keyframes,N=v.autoRevert,I=t._dur,F=t._startAt,B=t._targets,P=t.parent,k=P&&"nested"===P.data?P.vars.targets:B,T="auto"===t._overwrite&&!Ire,E=t.timeline;if(E&&(!S||!g)&&(g="none"),t._ease=goe(g,sse.ease),t._yEase=C?moe(goe(!0===C?g:C,sse.ease)):0,C&&t._yoyo&&!t._repeat&&(C=t._yEase,t._yEase=t._ease,t._ease=C),t._from=!E&&!!v.runBackwards,!E||S&&!v.stagger){if(f=(u=B[0]?$se(B[0]).harness:0)&&v[u.prop],a=ule(v,Qse),F&&(F._zTime<0&&F.progress(1),n<0&&j&&x&&!N?F.render(-1,!0):F.revert(j&&I?Mse:Ose),F._lazy=0),y){if(fle(t._startAt=Uoe.set(B,ole({data:"isStart",overwrite:!1,parent:P,immediateRender:!0,lazy:!F&&xse(b),startAt:null,delay:0,onUpdate:w&&function(){return Xle(t,"onUpdate")},stagger:0},y))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(Fre||!x&&!N)&&t._startAt.revert(Mse),x&&I&&n<=0&&i<=0)return void(n&&(t._zTime=n))}else if(j&&I&&!F)if(n&&(x=!1),s=ole({overwrite:!1,data:"isFromStart",lazy:x&&!F&&xse(b),immediateRender:x,stagger:0,parent:P},a),f&&(s[u.prop]=f),fle(t._startAt=Uoe.set(B,s)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(Fre?t._startAt.revert(Mse):t._startAt.render(-1,!0)),t._zTime=n,x){if(!n)return}else e(t._startAt,ose,ose);for(t._pt=t._ptCache=0,b=I&&xse(b)||b&&!I,r=0;r<B.length;r++){if(c=(o=B[r])._gsap||Gse(B)[r]._gsap,t._ptLookup[r]=A={},Vse[c.id]&&Hse.length&&ile(),h=k===B?r:k.indexOf(o),u&&!1!==(p=new u).init(o,f||a,t,h,k)&&(t._pt=l=new $oe(t._pt,o,p.name,0,1,p.render,p,0,p.priority),p._props.forEach((function(e){A[e]=l})),p.priority&&(d=1)),!u||f)for(s in a)zse[s]&&(p=Poe(s,a,t,h,o,k))?p.priority&&(d=1):A[s]=l=Boe.call(t,o,s,"get",a[s],h,k,0,v.stringFilter);t._op&&t._op[r]&&t.kill(o,t._op[r]),T&&t._pt&&(Noe=t,Pre.killTweensOf(o,A,t.globalTime(n)),m=!t.parent,Noe=0),t._pt&&b&&(Vse[c.id]=1)}d&&Goe(t),t._onInit&&t._onInit(t)}t._onUpdate=w,t._initted=(!t._op||t._pt)&&!m,S&&n<=0&&E.render(lse,!0,!0)},Toe=function(e,t,n,i){var a,r,s=t.ease||i||"power1.inOut";if(Cse(t))r=n[e]||(n[e]=[]),t.forEach((function(e,n){return r.push({t:n/(t.length-1)*100,v:e,e:s})}));else for(a in t)r=n[a]||(n[a]=[]),"ease"===a||r.push({t:parseFloat(e),v:t[a],e:s})},Eoe=function(e,t,n,i,a){return mse(e)?e.call(t,n,i,a):fse(e)&&~e.indexOf("random(")?Kle(e):e},Doe=Kse+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Loe={};Jse(Doe+",id,stagger,delay,duration,paused,scrollTrigger",(function(e){return Loe[e]=1}));var Uoe=function(e){function t(t,n,i,a){var r;"number"==typeof n&&(i.duration=n,n=i,i=null);var s,l,o,d,c,u,p,A,h=(r=e.call(this,a?n:ple(n))||this).vars,f=h.duration,m=h.delay,v=h.immediateRender,g=h.stagger,y=h.overwrite,x=h.keyframes,b=h.defaults,w=h.scrollTrigger,j=h.yoyoEase,C=n.parent||Pre,S=(Cse(t)||jse(t)?vse(t[0]):"length"in n)?[t]:Rle(t);if(r._targets=S.length?Gse(S):Lse(0,!rse.nullTargetWarn)||[],r._ptLookup=[],r._overwrite=y,x||g||wse(f)||wse(m)){if(n=r.vars,(s=r.timeline=new Soe({data:"nested",defaults:b||{},targets:C&&"nested"===C.data?C.vars.targets:S})).kill(),s.parent=s._dp=Sre(r),s._start=0,g||wse(f)||wse(m)){if(d=S.length,p=g&&Vle(g),yse(g))for(c in g)~Doe.indexOf(c)&&(A||(A={}),A[c]=g[c]);for(l=0;l<d;l++)(o=ule(n,Loe)).stagger=0,j&&(o.yoyoEase=j),A&&dle(o,A),u=S[l],o.duration=+Eoe(f,Sre(r),l,u,S),o.delay=(+Eoe(m,Sre(r),l,u,S)||0)-r._delay,!g&&1===d&&o.delay&&(r._delay=m=o.delay,r._start+=m,o.delay=0),s.to(u,o,p?p(l,u,S):0),s._ease=poe.none;s.duration()?f=m=0:r.timeline=0}else if(x){ple(ole(s.vars.defaults,{ease:"none"})),s._ease=goe(x.ease||n.ease||"none");var N,I,F,B=0;if(Cse(x))x.forEach((function(e){return s.to(S,e,">")})),s.duration();else{for(c in o={},x)"ease"===c||"easeEach"===c||Toe(c,x[c],o,x.easeEach);for(c in o)for(N=o[c].sort((function(e,t){return e.t-t.t})),B=0,l=0;l<N.length;l++)(F={ease:(I=N[l]).e,duration:(I.t-(l?N[l-1].t:0))/100*f})[c]=I.v,s.to(S,F,B),B+=F.duration;s.duration()<f&&s.to({},{duration:f-s.duration()})}}f||r.duration(f=s.duration())}else r.timeline=0;return!0!==y||Ire||(Noe=Sre(r),Pre.killTweensOf(S),Noe=0),Sle(C,Sre(r),i),n.reversed&&r.reverse(),n.paused&&r.paused(!0),(v||!f&&!x&&r._start===ele(C._time)&&xse(v)&&gle(Sre(r))&&"nested"!==C.data)&&(r._tTime=-1e-8,r.render(Math.max(0,-m)||0)),w&&Nle(Sre(r),w),r}Nre(t,e);var n=t.prototype;return n.render=function(e,t,n){var i,a,r,s,l,o,d,c,u,p=this._time,A=this._tDur,h=this._dur,f=e<0,m=e>A-ose&&!f?A:e<ose?0:e;if(h){if(m!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(i=m,c=this.timeline,this._repeat){if(s=h+this._rDelay,this._repeat<-1&&f)return this.totalTime(100*s+e,t,n);if(i=ele(m%s),m===A?(r=this._repeat,i=h):(r=~~(l=ele(m/s)))&&r===l?(i=h,r--):i>h&&(i=h),(o=this._yoyo&&1&r)&&(u=this._yEase,i=h-i),l=xle(this._tTime,s),i===p&&!n&&this._initted&&r===l)return this._tTime=m,this;r!==l&&(c&&this._yEase&&voe(c,o),this.vars.repeatRefresh&&!o&&!this._lock&&i!==s&&this._initted&&(this._lock=n=1,this.render(ele(s*r),!0).invalidate()._lock=0))}if(!this._initted){if(Ile(this,f?e:i,n,t,m))return this._tTime=0,this;if(!(p===this._time||n&&this.vars.repeatRefresh&&r!==l))return this;if(h!==this._dur)return this.render(e,t,n)}if(this._tTime=m,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=d=(u||this._ease)(i/h),this._from&&(this.ratio=d=1-d),!p&&m&&!t&&!l&&(Xle(this,"onStart"),this._tTime!==m))return this;for(a=this._pt;a;)a.r(d,a.d),a=a._next;c&&c.render(e<0?e:c._dur*c._ease(i/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(f&&vle(this,e,0,n),Xle(this,"onUpdate")),this._repeat&&r!==l&&this.vars.onRepeat&&!t&&this.parent&&Xle(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(f&&!this._onUpdate&&vle(this,e,0,!0),(e||!h)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&fle(this,1),t||f&&!p||!(m||p||o)||(Xle(this,m===A?"onComplete":"onReverseComplete",!0),this._prom&&!(m<A&&this.timeScale()>0)&&this._prom()))}}else!function(e,t,n,i){var a,r,s,l=e.ratio,o=t<0||!t&&(!e._start&&Fle(e)&&(e._initted||!Ble(e))||(e._ts<0||e._dp._ts<0)&&!Ble(e))?0:1,d=e._rDelay,c=0;if(d&&e._repeat&&(c=Ule(0,e._tDur,t),r=xle(c,d),e._yoyo&&1&r&&(o=1-o),r!==xle(e._tTime,d)&&(l=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==l||Fre||i||e._zTime===ose||!t&&e._zTime){if(!e._initted&&Ile(e,t,i,n,c))return;for(s=e._zTime,e._zTime=t||(n?ose:0),n||(n=t&&!s),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=c,a=e._pt;a;)a.r(o,a.d),a=a._next;t<0&&vle(e,t,0,!0),e._onUpdate&&!n&&Xle(e,"onUpdate"),c&&e._repeat&&!n&&e.parent&&Xle(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&fle(e,1),n||Fre||(Xle(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)}(this,e,t,n);return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,i,a){_re||coe.wake(),this._ts||this.play();var r=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||koe(this,r),function(e,t,n,i,a,r,s,l){var o,d,c,u,p=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!p)for(p=e._ptCache[t]=[],c=e._ptLookup,u=e._targets.length;u--;){if((o=c[u][t])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==t&&o.fp!==t;)o=o._next;if(!o)return Ioe=1,e.vars[t]="+=0",koe(e,s),Ioe=0,l?Lse():1;p.push(o)}for(u=p.length;u--;)(o=(d=p[u])._pt||d).s=!i&&0!==i||a?o.s+(i||0)+r*o.c:i,o.c=n-o.s,d.e&&(d.e=Zse(n)+_le(d.e)),d.b&&(d.b=o.s+_le(d.b))}(this,e,t,n,i,this._ease(r/this._dur),r,a)?this.resetTo(e,t,n,i,1):(jle(this,0),this.parent||Ale(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(e,t){if(void 0===t&&(t="all"),!(e||t&&"all"!==t))return this._lazy=this._pt=0,this.parent?Jle(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Fre),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Noe&&!0!==Noe.vars.overwrite)._first||Jle(this),this.parent&&n!==this.timeline.totalDuration()&&Ple(this,this._dur*this.timeline._tDur/n,0,1),this}var i,a,r,s,l,o,d,c=this._targets,u=e?Rle(e):c,p=this._ptLookup,A=this._pt;if((!t||"all"===t)&&function(e,t){for(var n=e.length,i=n===t.length;i&&n--&&e[n]===t[n];);return n<0}(c,u))return"all"===t&&(this._pt=0),Jle(this);for(i=this._op=this._op||[],"all"!==t&&(fse(t)&&(l={},Jse(t,(function(e){return l[e]=1})),t=l),t=function(e,t){var n,i,a,r,s=e[0]?$se(e[0]).harness:0,l=s&&s.aliases;if(!l)return t;for(i in n=dle({},t),l)if(i in n)for(a=(r=l[i].split(",")).length;a--;)n[r[a]]=n[i];return n}(c,t)),d=c.length;d--;)if(~u.indexOf(c[d]))for(l in a=p[d],"all"===t?(i[d]=t,s=a,r={}):(r=i[d]=i[d]||{},s=t),s)(o=a&&a[l])&&("kill"in o.d&&!0!==o.d.kill(l)||hle(this,o,"_pt"),delete a[l]),"all"!==r&&(r[l]=1);return this._initted&&!this._pt&&A&&Jle(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return Dle(1,arguments)},t.delayedCall=function(e,n,i,a){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:a})},t.fromTo=function(e,t,n){return Dle(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return Pre.killTweensOf(e,t,n)},t}(Coe);ole(Uoe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Jse("staggerTo,staggerFrom,staggerFromTo",(function(e){Uoe[e]=function(){var t=new Soe,n=Ole.call(arguments,0);return n.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,n)}}));var _oe=function(e,t,n){return e[t]=n},Ooe=function(e,t,n){return e[t](n)},Moe=function(e,t,n,i){return e[t](i.fp,n)},Roe=function(e,t,n){return e.setAttribute(t,n)},Qoe=function(e,t){return mse(e[t])?Ooe:gse(e[t])&&e.setAttribute?Roe:_oe},Hoe=function(e,t){return t.set(t.t,t.p,Math.round(1e6*(t.s+t.c*e))/1e6,t)},Voe=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},zoe=function(e,t){var n=t._pt,i="";if(!e&&t.b)i=t.b;else if(1===e&&t.e)i=t.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*e):Math.round(1e4*(n.s+n.c*e))/1e4)+i,n=n._next;i+=t.c}t.set(t.t,t.p,i,t)},qoe=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Woe=function(e,t,n,i){for(var a,r=this._pt;r;)a=r._next,r.p===i&&r.modifier(e,t,n),r=a},Yoe=function(e){for(var t,n,i=this._pt;i;)n=i._next,i.p===e&&!i.op||i.op===e?hle(this,i,"_pt"):i.dep||(t=1),i=n;return!t},Koe=function(e,t,n,i){i.mSet(e,t,i.m.call(i.tween,n,i.mt),i)},Goe=function(e){for(var t,n,i,a,r=e._pt;r;){for(t=r._next,n=i;n&&n.pr>r.pr;)n=n._next;(r._prev=n?n._prev:a)?r._prev._next=r:i=r,(r._next=n)?n._prev=r:a=r,r=t}e._pt=i},$oe=function(){function e(e,t,n,i,a,r,s,l,o){this.t=t,this.s=i,this.c=a,this.p=n,this.r=r||Hoe,this.d=s||this,this.set=l||_oe,this.pr=o||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Koe,this.m=e,this.mt=n,this.tween=t},e}();Jse(Kse+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(e){return Qse[e]=1})),Tse.TweenMax=Tse.TweenLite=Uoe,Tse.TimelineLite=Tse.TimelineMax=Soe,Pre=new Soe({sortChildren:!1,defaults:sse,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),rse.stringFilter=doe;var Xoe=[],Joe={},Zoe=[],ede=0,tde=0,nde=function(e){return(Joe[e]||Zoe).map((function(e){return e()}))},ide=function(){var e=Date.now(),t=[];e-ede>2&&(nde("matchMediaInit"),Xoe.forEach((function(e){var n,i,a,r,s=e.queries,l=e.conditions;for(i in s)(n=kre.matchMedia(s[i]).matches)&&(a=1),n!==l[i]&&(l[i]=n,r=1);r&&(e.revert(),a&&t.push(e))})),nde("matchMediaRevert"),t.forEach((function(e){return e.onMatch(e,(function(t){return e.add(null,t)}))})),ede=e,nde("matchMedia"))},ade=function(){function e(e,t){this.selector=t&&Qle(t),this.data=[],this._r=[],this.isReverted=!1,this.id=tde++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){mse(e)&&(n=t,t=e,e=mse);var i=this,a=function(){var e,a=Bre,r=i.selector;return a&&a!==i&&a.data.push(i),n&&(i.selector=Qle(n)),Bre=i,e=t.apply(i,arguments),mse(e)&&i._r.push(e),Bre=a,i.selector=r,i.isReverted=!1,e};return i.last=a,e===mse?a(i,(function(e){return i.add(null,e)})):e?i[e]=a:a},t.ignore=function(e){var t=Bre;Bre=null,e(this),Bre=t},t.getTweens=function(){var t=[];return this.data.forEach((function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof Uoe&&!(n.parent&&"nested"===n.parent.data)&&t.push(n)})),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?function(){for(var t,i=n.getTweens(),a=n.data.length;a--;)"isFlip"===(t=n.data[a]).data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(e){return i.splice(i.indexOf(e),1)})));for(i.map((function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}})).sort((function(e,t){return t.g-e.g||-1/0})).forEach((function(t){return t.t.revert(e)})),a=n.data.length;a--;)(t=n.data[a])instanceof Soe?"nested"!==t.data&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):!(t instanceof Uoe)&&t.revert&&t.revert(e);n._r.forEach((function(t){return t(e,n)})),n.isReverted=!0}():this.data.forEach((function(e){return e.kill&&e.kill()})),this.clear(),t)for(var i=Xoe.length;i--;)Xoe[i].id===this.id&&Xoe.splice(i,1)},t.revert=function(e){this.kill(e||{})},e}(),rde=function(){function e(e){this.contexts=[],this.scope=e,Bre&&Bre.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){yse(e)||(e={matches:e});var i,a,r,s=new ade(0,n||this.scope),l=s.conditions={};for(a in Bre&&!s.selector&&(s.selector=Bre.selector),this.contexts.push(s),t=s.add("onMatch",t),s.queries=e,e)"all"===a?r=1:(i=kre.matchMedia(e[a]))&&(Xoe.indexOf(s)<0&&Xoe.push(s),(l[a]=i.matches)&&(r=1),i.addListener?i.addListener(ide):i.addEventListener("change",ide));return r&&t(s,(function(e){return s.add(null,e)})),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach((function(t){return t.kill(e,!0)}))},e}(),sde={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((function(e){return eoe(e)}))},timeline:function(e){return new Soe(e)},getTweensOf:function(e,t){return Pre.getTweensOf(e,t)},getProperty:function(e,t,n,i){fse(e)&&(e=Rle(e)[0]);var a=$se(e||{}).get,r=n?lle:sle;return"native"===n&&(n=""),e?t?r((zse[t]&&zse[t].get||a)(e,t,n,i)):function(t,n,i){return r((zse[t]&&zse[t].get||a)(e,t,n,i))}:e},quickSetter:function(e,t,n){if((e=Rle(e)).length>1){var i=e.map((function(e){return dde.quickSetter(e,t,n)})),a=i.length;return function(e){for(var t=a;t--;)i[t](e)}}e=e[0]||{};var r=zse[t],s=$se(e),l=s.harness&&(s.harness.aliases||{})[t]||t,o=r?function(t){var i=new r;Ure._pt=0,i.init(e,n?t+n:t,Ure,0,[e]),i.render(1,i),Ure._pt&&qoe(1,Ure)}:s.set(e,l);return r?o:function(t){return o(e,l,n?t+n:t,s,1)}},quickTo:function(e,t,n){var i,a=dde.to(e,ole(((i={})[t]="+=0.1",i.paused=!0,i.stagger=0,i),n||{})),r=function(e,n,i){return a.resetTo(t,e,n,i)};return r.tween=a,r},isTweening:function(e){return Pre.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=goe(e.ease,sse.ease)),cle(sse,e||{})},config:function(e){return cle(rse,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,i=e.plugins,a=e.defaults,r=e.extendTimeline;(i||"").split(",").forEach((function(e){return e&&!zse[e]&&!Tse[e]&&Lse()})),qse[t]=function(e,t,i){return n(Rle(e),ole(t||{},a),i)},r&&(Soe.prototype[t]=function(e,n,i){return this.add(qse[t](e,yse(n)?n:(i=n)&&{},this),i)})},registerEase:function(e,t){poe[e]=goe(t)},parseEase:function(e,t){return arguments.length?goe(e,t):poe},getById:function(e){return Pre.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var n,i,a=new Soe(e);for(a.smoothChildTiming=xse(e.smoothChildTiming),Pre.remove(a),a._dp=0,a._time=a._tTime=Pre._time,n=Pre._first;n;)i=n._next,!t&&!n._dur&&n instanceof Uoe&&n.vars.onComplete===n._targets[0]||Sle(a,n,n._start-n._delay),n=i;return Sle(Pre,a,0),a},context:function(e,t){return e?new ade(e,t):Bre},matchMedia:function(e){return new rde(e)},matchMediaRefresh:function(){return Xoe.forEach((function(e){var t,n,i=e.conditions;for(n in i)i[n]&&(i[n]=!1,t=1);t&&e.revert()}))||ide()},addEventListener:function(e,t){var n=Joe[e]||(Joe[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Joe[e],i=n&&n.indexOf(t);i>=0&&n.splice(i,1)},utils:{wrap:function e(t,n,i){var a=n-t;return Cse(t)?Yle(t,e(0,t.length),n):Lle(i,(function(e){return(a+(e-t)%a)%a+t}))},wrapYoyo:function e(t,n,i){var a=n-t,r=2*a;return Cse(t)?Yle(t,e(0,t.length-1),n):Lle(i,(function(e){return t+((e=(r+(e-t)%r)%r||0)>a?r-e:e)}))},distribute:Vle,random:Wle,snap:qle,normalize:function(e,t,n){return Gle(e,t,0,1,n)},getUnit:_le,clamp:function(e,t,n){return Lle(n,(function(n){return Ule(e,t,n)}))},splitColor:aoe,toArray:Rle,selector:Qle,mapRange:Gle,pipe:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(e,t){return t(e)}),e)}},unitize:function(e,t){return function(n){return e(parseFloat(n))+(t||_le(n))}},interpolate:function e(t,n,i,a){var r=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!r){var s,l,o,d,c,u=fse(t),p={};if(!0===i&&(a=1)&&(i=null),u)t={p:t},n={p:n};else if(Cse(t)&&!Cse(n)){for(o=[],d=t.length,c=d-2,l=1;l<d;l++)o.push(e(t[l-1],t[l]));d--,r=function(e){e*=d;var t=Math.min(c,~~e);return o[t](e-t)},i=n}else a||(t=dle(Cse(t)?[]:{},t));if(!o){for(s in n)Boe.call(p,t,s,"get",n[s]);r=function(e){return qoe(e,p)||(u?t.p:t)}}}return Lle(i,r)},shuffle:Hle},install:Dse,effects:qse,ticker:coe,updateRoot:Soe.updateRoot,plugins:zse,globalTimeline:Pre,core:{PropTween:$oe,globals:Use,Tween:Uoe,Timeline:Soe,Animation:Coe,getCache:$se,_removeLinkedListItem:hle,reverting:function(){return Fre},context:function(e){return e&&Bre&&(Bre.data.push(e),e._ctx=Bre),Bre},suppressOverwrites:function(e){return Ire=e}}};Jse("to,from,fromTo,delayedCall,set,killTweensOf",(function(e){return sde[e]=Uoe[e]})),coe.add(Soe.updateRoot),Ure=sde.to({},{duration:0});var lde=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},ode=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,i){i._onInit=function(e){var i,a;if(fse(n)&&(i={},Jse(n,(function(e){return i[e]=1})),n=i),t){for(a in i={},n)i[a]=t(n[a]);n=i}!function(e,t){var n,i,a,r=e._targets;for(n in t)for(i=r.length;i--;)(a=e._ptLookup[i][n])&&(a=a.d)&&(a._pt&&(a=lde(a,n)),a&&a.modifier&&a.modifier(t[n],e,r[i],n))}(e,n)}}}},dde=sde.registerPlugin({name:"attr",init:function(e,t,n,i,a){var r,s,l;for(r in this.tween=n,t)l=e.getAttribute(r)||"",(s=this.add(e,"setAttribute",(l||0)+"",t[r],i,a,0,0,r)).op=r,s.b=l,this._props.push(r)},render:function(e,t){for(var n=t._pt;n;)Fre?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},ode("roundProps",zle),ode("modifiers"),ode("snap",qle))||sde;Uoe.version=Soe.version=dde.version="3.13.0",Dre=1,bse()&&uoe(),poe.Power0,poe.Power1,poe.Power2,poe.Power3,poe.Power4,poe.Linear,poe.Quad,poe.Cubic,poe.Quart,poe.Quint,poe.Strong,poe.Elastic,poe.Back,poe.SteppedEase,poe.Bounce,poe.Sine,poe.Expo,poe.Circ;
|
||
/*!
|
||
* CSSPlugin 3.13.0
|
||
* https://gsap.com
|
||
*
|
||
* Copyright 2008-2025, GreenSock. All rights reserved.
|
||
* Subject to the terms at https://gsap.com/standard-license
|
||
* @author: Jack Doyle, jack@greensock.com
|
||
*/
|
||
var cde,ude,pde,Ade,hde,fde,mde,vde,gde={},yde=180/Math.PI,xde=Math.PI/180,bde=Math.atan2,wde=/([A-Z])/g,jde=/(left|right|width|margin|padding|x)/i,Cde=/[\s,\(]\S/,Sde={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Nde=function(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},Ide=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},Fde=function(e,t){return t.set(t.t,t.p,e?Math.round(1e4*(t.s+t.c*e))/1e4+t.u:t.b,t)},Bde=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},Pde=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},kde=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},Tde=function(e,t,n){return e.style[t]=n},Ede=function(e,t,n){return e.style.setProperty(t,n)},Dde=function(e,t,n){return e._gsap[t]=n},Lde=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Ude=function(e,t,n,i,a){var r=e._gsap;r.scaleX=r.scaleY=n,r.renderTransform(a,r)},_de=function(e,t,n,i,a){var r=e._gsap;r[t]=n,r.renderTransform(a,r)},Ode="transform",Mde=Ode+"Origin",Rde=function e(t,n){var i=this,a=this.target,r=a.style,s=a._gsap;if(t in gde&&r){if(this.tfm=this.tfm||{},"transform"===t)return Sde.transform.split(",").forEach((function(t){return e.call(i,t,n)}));if(~(t=Sde[t]||t).indexOf(",")?t.split(",").forEach((function(e){return i.tfm[e]=ace(a,e)})):this.tfm[t]=s.x?s[t]:ace(a,t),t===Mde&&(this.tfm.zOrigin=s.zOrigin),this.props.indexOf(Ode)>=0)return;s.svg&&(this.svgo=a.getAttribute("data-svg-origin"),this.props.push(Mde,n,"")),t=Ode}(r||n)&&this.props.push(t,n,r[t])},Qde=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Hde=function(){var e,t,n=this.props,i=this.target,a=i.style,r=i._gsap;for(e=0;e<n.length;e+=3)n[e+1]?2===n[e+1]?i[n[e]](n[e+2]):i[n[e]]=n[e+2]:n[e+2]?a[n[e]]=n[e+2]:a.removeProperty("--"===n[e].substr(0,2)?n[e]:n[e].replace(wde,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)r[t]=this.tfm[t];r.svg&&(r.renderTransform(),i.setAttribute("data-svg-origin",this.svgo||"")),(e=mde())&&e.isStart||a[Ode]||(Qde(a),r.zOrigin&&a[Mde]&&(a[Mde]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},Vde=function(e,t){var n={target:e,props:[],revert:Hde,save:Rde};return e._gsap||dde.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach((function(e){return n.save(e)})),n},zde=function(e,t){var n=ude.createElementNS?ude.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):ude.createElement(e);return n&&n.style?n:ude.createElement(e)},qde=function e(t,n,i){var a=getComputedStyle(t);return a[n]||a.getPropertyValue(n.replace(wde,"-$1").toLowerCase())||a.getPropertyValue(n)||!i&&e(t,Yde(n)||n,1)||""},Wde="O,Moz,ms,Ms,Webkit".split(","),Yde=function(e,t,n){var i=(t||hde).style,a=5;if(e in i&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(Wde[a]+e in i););return a<0?null:(3===a?"ms":a>=0?Wde[a]:"")+e},Kde=function(){"undefined"!=typeof window&&window.document&&(cde=window,ude=cde.document,pde=ude.documentElement,hde=zde("div")||{style:{}},zde("div"),Ode=Yde(Ode),Mde=Ode+"Origin",hde.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",vde=!!Yde("perspective"),mde=dde.core.reverting,Ade=1)},Gde=function(e){var t,n=e.ownerSVGElement,i=zde("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),a=e.cloneNode(!0);a.style.display="block",i.appendChild(a),pde.appendChild(i);try{t=a.getBBox()}catch(Ou){}return i.removeChild(a),pde.removeChild(i),t},$de=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Xde=function(e){var t,n;try{t=e.getBBox()}catch(i){t=Gde(e),n=1}return t&&(t.width||t.height)||n||(t=Gde(e)),!t||t.width||t.x||t.y?t:{x:+$de(e,["x","cx","x1"])||0,y:+$de(e,["y","cy","y1"])||0,width:0,height:0}},Jde=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!Xde(e))},Zde=function(e,t){if(t){var n,i=e.style;t in gde&&t!==Mde&&(t=Ode),i.removeProperty?("ms"!==(n=t.substr(0,2))&&"webkit"!==t.substr(0,6)||(t="-"+t),i.removeProperty("--"===n?t:t.replace(wde,"-$1").toLowerCase())):i.removeAttribute(t)}},ece=function(e,t,n,i,a,r){var s=new $oe(e._pt,t,n,0,1,r?kde:Pde);return e._pt=s,s.b=i,s.e=a,e._props.push(n),s},tce={deg:1,rad:1,turn:1},nce={grid:1,flex:1},ice=function e(t,n,i,a){var r,s,l,o,d=parseFloat(i)||0,c=(i+"").trim().substr((d+"").length)||"px",u=hde.style,p=jde.test(n),A="svg"===t.tagName.toLowerCase(),h=(A?"client":"offset")+(p?"Width":"Height"),f=100,m="px"===a,v="%"===a;if(a===c||!d||tce[a]||tce[c])return d;if("px"!==c&&!m&&(d=e(t,n,i,"px")),o=t.getCTM&&Jde(t),(v||"%"===c)&&(gde[n]||~n.indexOf("adius")))return r=o?t.getBBox()[p?"width":"height"]:t[h],Zse(v?d/r*f:d/100*r);if(u[p?"width":"height"]=f+(m?c:a),s="rem"!==a&&~n.indexOf("adius")||"em"===a&&t.appendChild&&!A?t:t.parentNode,o&&(s=(t.ownerSVGElement||{}).parentNode),s&&s!==ude&&s.appendChild||(s=ude.body),(l=s._gsap)&&v&&l.width&&p&&l.time===coe.time&&!l.uncache)return Zse(d/l.width*f);if(!v||"height"!==n&&"width"!==n)(v||"%"===c)&&!nce[qde(s,"display")]&&(u.position=qde(t,"position")),s===t&&(u.position="static"),s.appendChild(hde),r=hde[h],s.removeChild(hde),u.position="absolute";else{var g=t.style[n];t.style[n]=f+a,r=t[h],g?t.style[n]=g:Zde(t,n)}return p&&v&&((l=$se(s)).time=coe.time,l.width=s[h]),Zse(m?r*d/f:r&&d?f/r*d:0)},ace=function(e,t,n,i){var a;return Ade||Kde(),t in Sde&&"transform"!==t&&~(t=Sde[t]).indexOf(",")&&(t=t.split(",")[0]),gde[t]&&"transform"!==t?(a=fce(e,i),a="transformOrigin"!==t?a[t]:a.svg?a.origin:mce(qde(e,Mde))+" "+a.zOrigin+"px"):(!(a=e.style[t])||"auto"===a||i||~(a+"").indexOf("calc("))&&(a=oce[t]&&oce[t](e,t,n)||qde(e,t)||Xse(e,t)||("opacity"===t?1:0)),n&&!~(a+"").trim().indexOf(" ")?ice(e,t,a,n)+n:a},rce=function(e,t,n,i){if(!n||"none"===n){var a=Yde(t,e,1),r=a&&qde(e,a,1);r&&r!==n?(t=a,n=r):"borderColor"===t&&(n=qde(e,"borderTopColor"))}var s,l,o,d,c,u,p,A,h,f,m,v=new $oe(this._pt,e.style,t,0,1,zoe),g=0,y=0;if(v.b=n,v.e=i,n+="","var(--"===(i+="").substring(0,6)&&(i=qde(e,i.substring(4,i.indexOf(")")))),"auto"===i&&(u=e.style[t],e.style[t]=i,i=qde(e,t)||i,u?e.style[t]=u:Zde(e,t)),doe(s=[n,i]),i=s[1],o=(n=s[0]).match(Ise)||[],(i.match(Ise)||[]).length){for(;l=Ise.exec(i);)p=l[0],h=i.substring(g,l.index),c?c=(c+1)%5:"rgba("!==h.substr(-5)&&"hsla("!==h.substr(-5)||(c=1),p!==(u=o[y++]||"")&&(d=parseFloat(u)||0,m=u.substr((d+"").length),"="===p.charAt(1)&&(p=tle(d,p)+m),A=parseFloat(p),f=p.substr((A+"").length),g=Ise.lastIndex-f.length,f||(f=f||rse.units[t]||m,g===i.length&&(i+=f,v.e+=f)),m!==f&&(d=ice(e,t,u,f)||0),v._pt={_next:v._pt,p:h||1===y?h:",",s:d,c:A-d,m:c&&c<4||"zIndex"===t?Math.round:0});v.c=g<i.length?i.substring(g,i.length):""}else v.r="display"===t&&"none"===i?kde:Pde;return Bse.test(i)&&(v.e=0),this._pt=v,v},sce={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},lce=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n,i,a,r=t.t,s=r.style,l=t.u,o=r._gsap;if("all"===l||!0===l)s.cssText="",i=1;else for(a=(l=l.split(",")).length;--a>-1;)n=l[a],gde[n]&&(i=1,n="transformOrigin"===n?Mde:Ode),Zde(r,n);i&&(Zde(r,Ode),o&&(o.svg&&r.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",fce(r,1),o.uncache=1,Qde(s)))}},oce={clearProps:function(e,t,n,i,a){if("isFromStart"!==a.data){var r=e._pt=new $oe(e._pt,t,n,0,0,lce);return r.u=i,r.pr=-10,r.tween=a,e._props.push(n),1}}},dce=[1,0,0,1,0,0],cce={},uce=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},pce=function(e){var t=qde(e,Ode);return uce(t)?dce:t.substr(7).match(Nse).map(Zse)},Ace=function(e,t){var n,i,a,r,s=e._gsap||$se(e),l=e.style,o=pce(e);return s.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(o=[(a=e.transform.baseVal.consolidate().matrix).a,a.b,a.c,a.d,a.e,a.f]).join(",")?dce:o:(o!==dce||e.offsetParent||e===pde||s.svg||(a=l.display,l.display="block",(n=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(r=1,i=e.nextElementSibling,pde.appendChild(e)),o=pce(e),a?l.display=a:Zde(e,"display"),r&&(i?n.insertBefore(e,i):n?n.appendChild(e):pde.removeChild(e))),t&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},hce=function(e,t,n,i,a,r){var s,l,o,d=e._gsap,c=a||Ace(e,!0),u=d.xOrigin||0,p=d.yOrigin||0,A=d.xOffset||0,h=d.yOffset||0,f=c[0],m=c[1],v=c[2],g=c[3],y=c[4],x=c[5],b=t.split(" "),w=parseFloat(b[0])||0,j=parseFloat(b[1])||0;n?c!==dce&&(l=f*g-m*v)&&(o=w*(-m/l)+j*(f/l)-(f*x-m*y)/l,w=w*(g/l)+j*(-v/l)+(v*x-g*y)/l,j=o):(w=(s=Xde(e)).x+(~b[0].indexOf("%")?w/100*s.width:w),j=s.y+(~(b[1]||b[0]).indexOf("%")?j/100*s.height:j)),i||!1!==i&&d.smooth?(y=w-u,x=j-p,d.xOffset=A+(y*f+x*v)-y,d.yOffset=h+(y*m+x*g)-x):d.xOffset=d.yOffset=0,d.xOrigin=w,d.yOrigin=j,d.smooth=!!i,d.origin=t,d.originIsAbsolute=!!n,e.style[Mde]="0px 0px",r&&(ece(r,d,"xOrigin",u,w),ece(r,d,"yOrigin",p,j),ece(r,d,"xOffset",A,d.xOffset),ece(r,d,"yOffset",h,d.yOffset)),e.setAttribute("data-svg-origin",w+" "+j)},fce=function(e,t){var n=e._gsap||new joe(e);if("x"in n&&!t&&!n.uncache)return n;var i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B,P,k,T,E,D,L=e.style,U=n.scaleX<0,_="px",O="deg",M=getComputedStyle(e),R=qde(e,Mde)||"0";return i=a=r=o=d=c=u=p=A=0,s=l=1,n.svg=!(!e.getCTM||!Jde(e)),M.translate&&("none"===M.translate&&"none"===M.scale&&"none"===M.rotate||(L[Ode]=("none"!==M.translate?"translate3d("+(M.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==M.rotate?"rotate("+M.rotate+") ":"")+("none"!==M.scale?"scale("+M.scale.split(" ").join(",")+") ":"")+("none"!==M[Ode]?M[Ode]:"")),L.scale=L.rotate=L.translate="none"),m=Ace(e,n.svg),n.svg&&(n.uncache?(I=e.getBBox(),R=n.xOrigin-I.x+"px "+(n.yOrigin-I.y)+"px",N=""):N=!t&&e.getAttribute("data-svg-origin"),hce(e,N||R,!!N||n.originIsAbsolute,!1!==n.smooth,m)),h=n.xOrigin||0,f=n.yOrigin||0,m!==dce&&(x=m[0],b=m[1],w=m[2],j=m[3],i=C=m[4],a=S=m[5],6===m.length?(s=Math.sqrt(x*x+b*b),l=Math.sqrt(j*j+w*w),o=x||b?bde(b,x)*yde:0,(u=w||j?bde(w,j)*yde+o:0)&&(l*=Math.abs(Math.cos(u*xde))),n.svg&&(i-=h-(h*x+f*w),a-=f-(h*b+f*j))):(D=m[6],T=m[7],B=m[8],P=m[9],k=m[10],E=m[11],i=m[12],a=m[13],r=m[14],d=(v=bde(D,k))*yde,v&&(N=C*(g=Math.cos(-v))+B*(y=Math.sin(-v)),I=S*g+P*y,F=D*g+k*y,B=C*-y+B*g,P=S*-y+P*g,k=D*-y+k*g,E=T*-y+E*g,C=N,S=I,D=F),c=(v=bde(-w,k))*yde,v&&(g=Math.cos(-v),E=j*(y=Math.sin(-v))+E*g,x=N=x*g-B*y,b=I=b*g-P*y,w=F=w*g-k*y),o=(v=bde(b,x))*yde,v&&(N=x*(g=Math.cos(v))+b*(y=Math.sin(v)),I=C*g+S*y,b=b*g-x*y,S=S*g-C*y,x=N,C=I),d&&Math.abs(d)+Math.abs(o)>359.9&&(d=o=0,c=180-c),s=Zse(Math.sqrt(x*x+b*b+w*w)),l=Zse(Math.sqrt(S*S+D*D)),v=bde(C,S),u=Math.abs(v)>2e-4?v*yde:0,A=E?1/(E<0?-E:E):0),n.svg&&(N=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!uce(qde(e,Ode)),N&&e.setAttribute("transform",N))),Math.abs(u)>90&&Math.abs(u)<270&&(U?(s*=-1,u+=o<=0?180:-180,o+=o<=0?180:-180):(l*=-1,u+=u<=0?180:-180)),t=t||n.uncache,n.x=i-((n.xPercent=i&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-i)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+_,n.y=a-((n.yPercent=a&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-a)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+_,n.z=r+_,n.scaleX=Zse(s),n.scaleY=Zse(l),n.rotation=Zse(o)+O,n.rotationX=Zse(d)+O,n.rotationY=Zse(c)+O,n.skewX=u+O,n.skewY=p+O,n.transformPerspective=A+_,(n.zOrigin=parseFloat(R.split(" ")[2])||!t&&n.zOrigin||0)&&(L[Mde]=mce(R)),n.xOffset=n.yOffset=0,n.force3D=rse.force3D,n.renderTransform=n.svg?jce:vde?wce:gce,n.uncache=0,n},mce=function(e){return(e=e.split(" "))[0]+" "+e[1]},vce=function(e,t,n){var i=_le(t);return Zse(parseFloat(t)+parseFloat(ice(e,"x",n+"px",i)))+i},gce=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,wce(e,t)},yce="0deg",xce="0px",bce=") ",wce=function(e,t){var n=t||this,i=n.xPercent,a=n.yPercent,r=n.x,s=n.y,l=n.z,o=n.rotation,d=n.rotationY,c=n.rotationX,u=n.skewX,p=n.skewY,A=n.scaleX,h=n.scaleY,f=n.transformPerspective,m=n.force3D,v=n.target,g=n.zOrigin,y="",x="auto"===m&&e&&1!==e||!0===m;if(g&&(c!==yce||d!==yce)){var b,w=parseFloat(d)*xde,j=Math.sin(w),C=Math.cos(w);w=parseFloat(c)*xde,b=Math.cos(w),r=vce(v,r,j*b*-g),s=vce(v,s,-Math.sin(w)*-g),l=vce(v,l,C*b*-g+g)}f!==xce&&(y+="perspective("+f+bce),(i||a)&&(y+="translate("+i+"%, "+a+"%) "),(x||r!==xce||s!==xce||l!==xce)&&(y+=l!==xce||x?"translate3d("+r+", "+s+", "+l+") ":"translate("+r+", "+s+bce),o!==yce&&(y+="rotate("+o+bce),d!==yce&&(y+="rotateY("+d+bce),c!==yce&&(y+="rotateX("+c+bce),u===yce&&p===yce||(y+="skew("+u+", "+p+bce),1===A&&1===h||(y+="scale("+A+", "+h+bce),v.style[Ode]=y||"translate(0, 0)"},jce=function(e,t){var n,i,a,r,s,l=t||this,o=l.xPercent,d=l.yPercent,c=l.x,u=l.y,p=l.rotation,A=l.skewX,h=l.skewY,f=l.scaleX,m=l.scaleY,v=l.target,g=l.xOrigin,y=l.yOrigin,x=l.xOffset,b=l.yOffset,w=l.forceCSS,j=parseFloat(c),C=parseFloat(u);p=parseFloat(p),A=parseFloat(A),(h=parseFloat(h))&&(A+=h=parseFloat(h),p+=h),p||A?(p*=xde,A*=xde,n=Math.cos(p)*f,i=Math.sin(p)*f,a=Math.sin(p-A)*-m,r=Math.cos(p-A)*m,A&&(h*=xde,s=Math.tan(A-h),a*=s=Math.sqrt(1+s*s),r*=s,h&&(s=Math.tan(h),n*=s=Math.sqrt(1+s*s),i*=s)),n=Zse(n),i=Zse(i),a=Zse(a),r=Zse(r)):(n=f,r=m,i=a=0),(j&&!~(c+"").indexOf("px")||C&&!~(u+"").indexOf("px"))&&(j=ice(v,"x",c,"px"),C=ice(v,"y",u,"px")),(g||y||x||b)&&(j=Zse(j+g-(g*n+y*a)+x),C=Zse(C+y-(g*i+y*r)+b)),(o||d)&&(s=v.getBBox(),j=Zse(j+o/100*s.width),C=Zse(C+d/100*s.height)),s="matrix("+n+","+i+","+a+","+r+","+j+","+C+")",v.setAttribute("transform",s),w&&(v.style[Ode]=s)},Cce=function(e,t,n,i,a){var r,s,l=360,o=fse(a),d=parseFloat(a)*(o&&~a.indexOf("rad")?yde:1)-i,c=i+d+"deg";return o&&("short"===(r=a.split("_")[1])&&(d%=l)!==d%180&&(d+=d<0?l:-360),"cw"===r&&d<0?d=(d+36e9)%l-~~(d/l)*l:"ccw"===r&&d>0&&(d=(d-36e9)%l-~~(d/l)*l)),e._pt=s=new $oe(e._pt,t,n,i,d,Ide),s.e=c,s.u="deg",e._props.push(n),s},Sce=function(e,t){for(var n in t)e[n]=t[n];return e},Nce=function(e,t,n){var i,a,r,s,l,o,d,c=Sce({},n._gsap),u=n.style;for(a in c.svg?(r=n.getAttribute("transform"),n.setAttribute("transform",""),u[Ode]=t,i=fce(n,1),Zde(n,Ode),n.setAttribute("transform",r)):(r=getComputedStyle(n)[Ode],u[Ode]=t,i=fce(n,1),u[Ode]=r),gde)(r=c[a])!==(s=i[a])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(a)<0&&(l=_le(r)!==(d=_le(s))?ice(n,a,r,d):parseFloat(r),o=parseFloat(s),e._pt=new $oe(e._pt,i,a,l,o-l,Nde),e._pt.u=d||0,e._props.push(a));Sce(i,c)};Jse("padding,margin,Width,Radius",(function(e,t){var n="Top",i="Right",a="Bottom",r="Left",s=(t<3?[n,i,a,r]:[n+r,n+i,a+i,a+r]).map((function(n){return t<2?e+n:"border"+n+e}));oce[t>1?"border"+e:e]=function(e,t,n,i,a){var r,l;if(arguments.length<4)return r=s.map((function(t){return ace(e,t,n)})),5===(l=r.join(" ")).split(r[0]).length?r[0]:l;r=(i+"").split(" "),l={},s.forEach((function(e,t){return l[e]=r[t]=r[t]||r[(t-1)/2|0]})),e.init(t,l,a)}}));var Ice,Fce,Bce,Pce={name:"css",register:Kde,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,i,a){var r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S=this._props,N=e.style,I=n.vars.startAt;for(u in Ade||Kde(),this.styles=this.styles||Vde(e),x=this.styles.props,this.tween=n,t)if("autoRound"!==u&&(s=t[u],!zse[u]||!Poe(u,t,n,i,e,a)))if(d=typeof s,c=oce[u],"function"===d&&(d=typeof(s=s.call(n,i,e,a))),"string"===d&&~s.indexOf("random(")&&(s=Kle(s)),c)c(this,e,u,s,n)&&(y=1);else if("--"===u.substr(0,2))r=(getComputedStyle(e).getPropertyValue(u)+"").trim(),s+="",loe.lastIndex=0,loe.test(r)||(p=_le(r),A=_le(s)),A?p!==A&&(r=ice(e,u,r,A)+A):p&&(s+=p),this.add(N,"setProperty",r,s,i,a,0,0,u),S.push(u),x.push(u,0,N[u]);else if("undefined"!==d){if(I&&u in I?(r="function"==typeof I[u]?I[u].call(n,i,e,a):I[u],fse(r)&&~r.indexOf("random(")&&(r=Kle(r)),_le(r+"")||"auto"===r||(r+=rse.units[u]||_le(ace(e,u))||""),"="===(r+"").charAt(1)&&(r=ace(e,u))):r=ace(e,u),o=parseFloat(r),(h="string"===d&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),l=parseFloat(s),u in Sde&&("autoAlpha"===u&&(1===o&&"hidden"===ace(e,"visibility")&&l&&(o=0),x.push("visibility",0,N.visibility),ece(this,N,"visibility",o?"inherit":"hidden",l?"inherit":"hidden",!l)),"scale"!==u&&"transform"!==u&&~(u=Sde[u]).indexOf(",")&&(u=u.split(",")[0])),f=u in gde)if(this.styles.save(u),"string"===d&&"var(--"===s.substring(0,6)&&(s=qde(e,s.substring(4,s.indexOf(")"))),l=parseFloat(s)),m||((v=e._gsap).renderTransform&&!t.parseTransform||fce(e,t.parseTransform),g=!1!==t.smoothOrigin&&v.smooth,(m=this._pt=new $oe(this._pt,N,Ode,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===u)this._pt=new $oe(this._pt,v,"scaleY",v.scaleY,(h?tle(v.scaleY,h+l):l)-v.scaleY||0,Nde),this._pt.u=0,S.push("scaleY",u),u+="X";else{if("transformOrigin"===u){x.push(Mde,0,N[Mde]),w=void 0,j=void 0,C=void 0,w=(b=s).split(" "),j=w[0],C=w[1]||"50%","top"!==j&&"bottom"!==j&&"left"!==C&&"right"!==C||(b=j,j=C,C=b),w[0]=sce[j]||j,w[1]=sce[C]||C,s=w.join(" "),v.svg?hce(e,s,0,g,0,this):((A=parseFloat(s.split(" ")[2])||0)!==v.zOrigin&&ece(this,v,"zOrigin",v.zOrigin,A),ece(this,N,u,mce(r),mce(s)));continue}if("svgOrigin"===u){hce(e,s,1,g,0,this);continue}if(u in cce){Cce(this,v,u,o,h?tle(o,h+s):s);continue}if("smoothOrigin"===u){ece(this,v,"smooth",v.smooth,s);continue}if("force3D"===u){v[u]=s;continue}if("transform"===u){Nce(this,s,e);continue}}else u in N||(u=Yde(u)||u);if(f||(l||0===l)&&(o||0===o)&&!Cde.test(s)&&u in N)l||(l=0),(p=(r+"").substr((o+"").length))!==(A=_le(s)||(u in rse.units?rse.units[u]:p))&&(o=ice(e,u,r,A)),this._pt=new $oe(this._pt,f?v:N,u,o,(h?tle(o,h+l):l)-o,f||"px"!==A&&"zIndex"!==u||!1===t.autoRound?Nde:Bde),this._pt.u=A||0,p!==A&&"%"!==A&&(this._pt.b=r,this._pt.r=Fde);else if(u in N)rce.call(this,e,u,r,h?h+s:s);else if(u in e)this.add(e,u,r||e[u],h?h+s:s,i,a);else if("parseTransform"!==u)continue;f||(u in N?x.push(u,0,N[u]):"function"==typeof e[u]?x.push(u,2,e[u]()):x.push(u,1,r||e[u])),S.push(u)}y&&Goe(this)},render:function(e,t){if(t.tween._time||!mde())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:ace,aliases:Sde,getSetter:function(e,t,n){var i=Sde[t];return i&&i.indexOf(",")<0&&(t=i),t in gde&&t!==Mde&&(e._gsap.x||ace(e,"x"))?n&&fde===n?"scale"===t?Lde:Dde:(fde=n||{})&&("scale"===t?Ude:_de):e.style&&!gse(e.style[t])?Tde:~t.indexOf("-")?Ede:Qoe(e,t)},core:{_removeProperty:Zde,_getMatrix:Ace}};dde.utils.checkPrefix=Yde,dde.core.getStyleSaver=Vde,Bce=Jse((Ice="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Fce="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(e){gde[e]=1})),Jse(Fce,(function(e){rse.units[e]="deg",cce[e]=1})),Sde[Bce[13]]=Ice+","+Fce,Jse("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(e){var t=e.split(":");Sde[t[1]]=Bce[t[0]]})),Jse("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(e){rse.units[e]="px"})),dde.registerPlugin(Pce);var kce=dde.registerPlugin(Pce)||dde;function Tce(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}kce.core.Tween;
|
||
/*!
|
||
* Observer 3.13.0
|
||
* https://gsap.com
|
||
*
|
||
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
||
* Subject to the terms at https://gsap.com/standard-license
|
||
* @author: Jack Doyle, jack@greensock.com
|
||
*/
|
||
var Ece,Dce,Lce,Uce,_ce,Oce,Mce,Rce,Qce,Hce,Vce,zce,qce,Wce=function(){return Ece||"undefined"!=typeof window&&(Ece=window.gsap)&&Ece.registerPlugin&&Ece},Yce=1,Kce=[],Gce=[],$ce=[],Xce=Date.now,Jce=function(e,t){return t},Zce=function(e,t){return~$ce.indexOf(e)&&$ce[$ce.indexOf(e)+1][t]},eue=function(e){return!!~Hce.indexOf(e)},tue=function(e,t,n,i,a){return e.addEventListener(t,n,{passive:!1!==i,capture:!!a})},nue=function(e,t,n,i){return e.removeEventListener(t,n,!!i)},iue="scrollLeft",aue="scrollTop",rue=function(){return Vce&&Vce.isPressed||Gce.cache++},sue=function(e,t){var n=function n(i){if(i||0===i){Yce&&(Lce.history.scrollRestoration="manual");var a=Vce&&Vce.isPressed;i=n.v=Math.round(i)||(Vce&&Vce.iOS?1:0),e(i),n.cacheID=Gce.cache,a&&Jce("ss",i)}else(t||Gce.cache!==n.cacheID||Jce("ref"))&&(n.cacheID=Gce.cache,n.v=e());return n.v+n.offset};return n.offset=0,e&&n},lue={s:iue,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:sue((function(e){return arguments.length?Lce.scrollTo(e,oue.sc()):Lce.pageXOffset||Uce[iue]||_ce[iue]||Oce[iue]||0}))},oue={s:aue,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:lue,sc:sue((function(e){return arguments.length?Lce.scrollTo(lue.sc(),e):Lce.pageYOffset||Uce[aue]||_ce[aue]||Oce[aue]||0}))},due=function(e,t){return(t&&t._ctx&&t._ctx.selector||Ece.utils.toArray)(e)[0]||("string"==typeof e&&!1!==Ece.config().nullTargetWarn?void 0:null)},cue=function(e,t){var n=t.s,i=t.sc;eue(e)&&(e=Uce.scrollingElement||_ce);var a=Gce.indexOf(e),r=i===oue.sc?1:2;!~a&&(a=Gce.push(e)-1),Gce[a+r]||tue(e,"scroll",rue);var s=Gce[a+r],l=s||(Gce[a+r]=sue(Zce(e,n),!0)||(eue(e)?i:sue((function(t){return arguments.length?e[n]=t:e[n]}))));return l.target=e,s||(l.smooth="smooth"===Ece.getProperty(e,"scrollBehavior")),l},uue=function(e,t,n){var i=e,a=e,r=Xce(),s=r,l=t||50,o=Math.max(500,3*l),d=function(e,t){var o=Xce();t||o-r>l?(a=i,i=e,s=r,r=o):n?i+=e:i=a+(e-a)/(o-s)*(r-s)};return{update:d,reset:function(){a=i=n?0:i,s=r=0},getVelocity:function(e){var t=s,l=a,c=Xce();return(e||0===e)&&e!==i&&d(e),r===s||c-s>o?0:(i+(n?l:-l))/((n?c:r)-t)*1e3}}},pue=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Aue=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},hue=function(){var e,t,n,i;(Qce=Ece.core.globals().ScrollTrigger)&&Qce.core&&(e=Qce.core,t=e.bridge||{},n=e._scrollers,i=e._proxies,n.push.apply(n,Gce),i.push.apply(i,$ce),Gce=n,$ce=i,Jce=function(e,n){return t[e](n)})},fue=function(e){return Ece=e||Wce(),!Dce&&Ece&&"undefined"!=typeof document&&document.body&&(Lce=window,Uce=document,_ce=Uce.documentElement,Oce=Uce.body,Hce=[Lce,Uce,_ce,Oce],Ece.utils.clamp,qce=Ece.core.context||function(){},Rce="onpointerenter"in Oce?"pointer":"mouse",Mce=mue.isTouch=Lce.matchMedia&&Lce.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Lce||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,zce=mue.eventTypes=("ontouchstart"in _ce?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in _ce?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return Yce=0}),500),hue(),Dce=1),Dce};lue.op=oue,Gce.cache=0;var mue=function(){function e(e){this.init(e)}var t,n,i;return e.prototype.init=function(e){Dce||fue(Ece),Qce||hue();var t=e.tolerance,n=e.dragMinimum,i=e.type,a=e.target,r=e.lineHeight,s=e.debounce,l=e.preventDefault,o=e.onStop,d=e.onStopDelay,c=e.ignore,u=e.wheelSpeed,p=e.event,A=e.onDragStart,h=e.onDragEnd,f=e.onDrag,m=e.onPress,v=e.onRelease,g=e.onRight,y=e.onLeft,x=e.onUp,b=e.onDown,w=e.onChangeX,j=e.onChangeY,C=e.onChange,S=e.onToggleX,N=e.onToggleY,I=e.onHover,F=e.onHoverEnd,B=e.onMove,P=e.ignoreCheck,k=e.isNormalizer,T=e.onGestureStart,E=e.onGestureEnd,D=e.onWheel,L=e.onEnable,U=e.onDisable,_=e.onClick,O=e.scrollSpeed,M=e.capture,R=e.allowClicks,Q=e.lockAxis,H=e.onLockAxis;this.target=a=due(a)||_ce,this.vars=e,c&&(c=Ece.utils.toArray(c)),t=t||1e-9,n=n||0,u=u||1,O=O||1,i=i||"wheel,touch,pointer",s=!1!==s,r||(r=parseFloat(Lce.getComputedStyle(Oce).lineHeight)||22);var V,z,q,W,Y,K,G,$=this,X=0,J=0,Z=e.passive||!l&&!1!==e.passive,ee=cue(a,lue),te=cue(a,oue),ne=ee(),ie=te(),ae=~i.indexOf("touch")&&!~i.indexOf("pointer")&&"pointerdown"===zce[0],re=eue(a),se=a.ownerDocument||Uce,le=[0,0,0],oe=[0,0,0],de=0,ce=function(){return de=Xce()},ue=function(e,t){return($.event=e)&&c&&function(e,t){for(var n=t.length;n--;)if(t[n]===e||t[n].contains(e))return!0;return!1}(e.target,c)||t&&ae&&"touch"!==e.pointerType||P&&P(e,t)},pe=function(){var e=$.deltaX=Aue(le),n=$.deltaY=Aue(oe),i=Math.abs(e)>=t,a=Math.abs(n)>=t;C&&(i||a)&&C($,e,n,le,oe),i&&(g&&$.deltaX>0&&g($),y&&$.deltaX<0&&y($),w&&w($),S&&$.deltaX<0!=X<0&&S($),X=$.deltaX,le[0]=le[1]=le[2]=0),a&&(b&&$.deltaY>0&&b($),x&&$.deltaY<0&&x($),j&&j($),N&&$.deltaY<0!=J<0&&N($),J=$.deltaY,oe[0]=oe[1]=oe[2]=0),(W||q)&&(B&&B($),q&&(A&&1===q&&A($),f&&f($),q=0),W=!1),K&&!(K=!1)&&H&&H($),Y&&(D($),Y=!1),V=0},Ae=function(e,t,n){le[n]+=e,oe[n]+=t,$._vx.update(e),$._vy.update(t),s?V||(V=requestAnimationFrame(pe)):pe()},he=function(e,t){Q&&!G&&($.axis=G=Math.abs(e)>Math.abs(t)?"x":"y",K=!0),"y"!==G&&(le[2]+=e,$._vx.update(e,!0)),"x"!==G&&(oe[2]+=t,$._vy.update(t,!0)),s?V||(V=requestAnimationFrame(pe)):pe()},fe=function(e){if(!ue(e,1)){var t=(e=pue(e,l)).clientX,i=e.clientY,a=t-$.x,r=i-$.y,s=$.isDragging;$.x=t,$.y=i,(s||(a||r)&&(Math.abs($.startX-t)>=n||Math.abs($.startY-i)>=n))&&(q=s?2:1,s||($.isDragging=!0),he(a,r))}},me=$.onPress=function(e){ue(e,1)||e&&e.button||($.axis=G=null,z.pause(),$.isPressed=!0,e=pue(e),X=J=0,$.startX=$.x=e.clientX,$.startY=$.y=e.clientY,$._vx.reset(),$._vy.reset(),tue(k?a:se,zce[1],fe,Z,!0),$.deltaX=$.deltaY=0,m&&m($))},ve=$.onRelease=function(e){if(!ue(e,1)){nue(k?a:se,zce[1],fe,!0);var t=!isNaN($.y-$.startY),n=$.isDragging,i=n&&(Math.abs($.x-$.startX)>3||Math.abs($.y-$.startY)>3),r=pue(e);!i&&t&&($._vx.reset(),$._vy.reset(),l&&R&&Ece.delayedCall(.08,(function(){if(Xce()-de>300&&!e.defaultPrevented)if(e.target.click)e.target.click();else if(se.createEvent){var t=se.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,Lce,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}))),$.isDragging=$.isGesturing=$.isPressed=!1,o&&n&&!k&&z.restart(!0),q&&pe(),h&&n&&h($),v&&v($,i)}},ge=function(e){return e.touches&&e.touches.length>1&&($.isGesturing=!0)&&T(e,$.isDragging)},ye=function(){return($.isGesturing=!1)||E($)},xe=function(e){if(!ue(e)){var t=ee(),n=te();Ae((t-ne)*O,(n-ie)*O,1),ne=t,ie=n,o&&z.restart(!0)}},be=function(e){if(!ue(e)){e=pue(e,l),D&&(Y=!0);var t=(1===e.deltaMode?r:2===e.deltaMode?Lce.innerHeight:1)*u;Ae(e.deltaX*t,e.deltaY*t,0),o&&!k&&z.restart(!0)}},we=function(e){if(!ue(e)){var t=e.clientX,n=e.clientY,i=t-$.x,a=n-$.y;$.x=t,$.y=n,W=!0,o&&z.restart(!0),(i||a)&&he(i,a)}},je=function(e){$.event=e,I($)},Ce=function(e){$.event=e,F($)},Se=function(e){return ue(e)||pue(e,l)&&_($)};z=$._dc=Ece.delayedCall(d||.25,(function(){$._vx.reset(),$._vy.reset(),z.pause(),o&&o($)})).pause(),$.deltaX=$.deltaY=0,$._vx=uue(0,50,!0),$._vy=uue(0,50,!0),$.scrollX=ee,$.scrollY=te,$.isDragging=$.isGesturing=$.isPressed=!1,qce(this),$.enable=function(e){return $.isEnabled||(tue(re?se:a,"scroll",rue),i.indexOf("scroll")>=0&&tue(re?se:a,"scroll",xe,Z,M),i.indexOf("wheel")>=0&&tue(a,"wheel",be,Z,M),(i.indexOf("touch")>=0&&Mce||i.indexOf("pointer")>=0)&&(tue(a,zce[0],me,Z,M),tue(se,zce[2],ve),tue(se,zce[3],ve),R&&tue(a,"click",ce,!0,!0),_&&tue(a,"click",Se),T&&tue(se,"gesturestart",ge),E&&tue(se,"gestureend",ye),I&&tue(a,Rce+"enter",je),F&&tue(a,Rce+"leave",Ce),B&&tue(a,Rce+"move",we)),$.isEnabled=!0,$.isDragging=$.isGesturing=$.isPressed=W=q=!1,$._vx.reset(),$._vy.reset(),ne=ee(),ie=te(),e&&e.type&&me(e),L&&L($)),$},$.disable=function(){$.isEnabled&&(Kce.filter((function(e){return e!==$&&eue(e.target)})).length||nue(re?se:a,"scroll",rue),$.isPressed&&($._vx.reset(),$._vy.reset(),nue(k?a:se,zce[1],fe,!0)),nue(re?se:a,"scroll",xe,M),nue(a,"wheel",be,M),nue(a,zce[0],me,M),nue(se,zce[2],ve),nue(se,zce[3],ve),nue(a,"click",ce,!0),nue(a,"click",Se),nue(se,"gesturestart",ge),nue(se,"gestureend",ye),nue(a,Rce+"enter",je),nue(a,Rce+"leave",Ce),nue(a,Rce+"move",we),$.isEnabled=$.isPressed=$.isDragging=!1,U&&U($))},$.kill=$.revert=function(){$.disable();var e=Kce.indexOf($);e>=0&&Kce.splice(e,1),Vce===$&&(Vce=0)},Kce.push($),k&&eue(a)&&(Vce=$),$.enable(p)},t=e,(n=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&Tce(t.prototype,n),i&&Tce(t,i),e}();mue.version="3.13.0",mue.create=function(e){return new mue(e)},mue.register=fue,mue.getAll=function(){return Kce.slice()},mue.getById=function(e){return Kce.filter((function(t){return t.vars.id===e}))[0]},Wce()&&Ece.registerPlugin(mue);
|
||
/*!
|
||
* ScrollTrigger 3.13.0
|
||
* https://gsap.com
|
||
*
|
||
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
||
* Subject to the terms at https://gsap.com/standard-license
|
||
* @author: Jack Doyle, jack@greensock.com
|
||
*/
|
||
var vue,gue,yue,xue,bue,wue,jue,Cue,Sue,Nue,Iue,Fue,Bue,Pue,kue,Tue,Eue,Due,Lue,Uue,_ue,Oue,Mue,Rue,Que,Hue,Vue,zue,que,Wue,Yue,Kue,Gue,$ue,Xue,Jue,Zue,epe,tpe=1,npe=Date.now,ipe=npe(),ape=0,rpe=0,spe=function(e,t,n){var i=xpe(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return n["_"+t+"Clamp"]=i,i?e.substr(6,e.length-7):e},lpe=function(e,t){return!t||xpe(e)&&"clamp("===e.substr(0,6)?e:"clamp("+e+")"},ope=function e(){return rpe&&requestAnimationFrame(e)},dpe=function(){return Pue=1},cpe=function(){return Pue=0},upe=function(e){return e},ppe=function(e){return Math.round(1e5*e)/1e5||0},Ape=function(){return"undefined"!=typeof window},hpe=function(){return vue||Ape()&&(vue=window.gsap)&&vue.registerPlugin&&vue},fpe=function(e){return!!~jue.indexOf(e)},mpe=function(e){return("Height"===e?Yue:yue["inner"+e])||bue["client"+e]||wue["client"+e]},vpe=function(e){return Zce(e,"getBoundingClientRect")||(fpe(e)?function(){return PAe.width=yue.innerWidth,PAe.height=Yue,PAe}:function(){return Vpe(e)})},gpe=function(e,t){var n=t.s,i=t.d2,a=t.d,r=t.a;return Math.max(0,(n="scroll"+i)&&(r=Zce(e,n))?r()-vpe(e)()[a]:fpe(e)?(bue[n]||wue[n])-mpe(i):e[n]-e["offset"+i])},ype=function(e,t){for(var n=0;n<Lue.length;n+=3)(!t||~t.indexOf(Lue[n+1]))&&e(Lue[n],Lue[n+1],Lue[n+2])},xpe=function(e){return"string"==typeof e},bpe=function(e){return"function"==typeof e},wpe=function(e){return"number"==typeof e},jpe=function(e){return"object"==typeof e},Cpe=function(e,t,n){return e&&e.progress(t?0:1)&&n&&e.pause()},Spe=function(e,t){if(e.enabled){var n=e._ctx?e._ctx.add((function(){return t(e)})):t(e);n&&n.totalTime&&(e.callbackAnimation=n)}},Npe=Math.abs,Ipe="left",Fpe="right",Bpe="bottom",Ppe="width",kpe="height",Tpe="Right",Epe="Left",Dpe="Top",Lpe="Bottom",Upe="padding",_pe="margin",Ope="Width",Mpe="Height",Rpe="px",Qpe=function(e){return yue.getComputedStyle(e)},Hpe=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Vpe=function(e,t){var n=t&&"matrix(1, 0, 0, 1, 0, 0)"!==Qpe(e)[kue]&&vue.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return n&&n.progress(0).kill(),i},zpe=function(e,t){var n=t.d2;return e["offset"+n]||e["client"+n]||0},qpe=function(e){var t,n=[],i=e.labels,a=e.duration();for(t in i)n.push(i[t]/a);return n},Wpe=function(e){var t=vue.utils.snap(e),n=Array.isArray(e)&&e.slice(0).sort((function(e,t){return e-t}));return n?function(e,i,a){var r;if(void 0===a&&(a=.001),!i)return t(e);if(i>0){for(e-=a,r=0;r<n.length;r++)if(n[r]>=e)return n[r];return n[r-1]}for(r=n.length,e+=a;r--;)if(n[r]<=e)return n[r];return n[0]}:function(n,i,a){void 0===a&&(a=.001);var r=t(n);return!i||Math.abs(r-n)<a||r-n<0==i<0?r:t(i<0?n-e:n+e)}},Ype=function(e,t,n,i){return n.split(",").forEach((function(n){return e(t,n,i)}))},Kpe=function(e,t,n,i,a){return e.addEventListener(t,n,{passive:!i,capture:!!a})},Gpe=function(e,t,n,i){return e.removeEventListener(t,n,!!i)},$pe=function(e,t,n){(n=n&&n.wheelHandler)&&(e(t,"wheel",n),e(t,"touchmove",n))},Xpe={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Jpe={toggleActions:"play",anticipatePin:0},Zpe={top:0,left:0,center:.5,bottom:1,right:1},eAe=function(e,t){if(xpe(e)){var n=e.indexOf("="),i=~n?+(e.charAt(n-1)+1)*parseFloat(e.substr(n+1)):0;~n&&(e.indexOf("%")>n&&(i*=t/100),e=e.substr(0,n-1)),e=i+(e in Zpe?Zpe[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},tAe=function(e,t,n,i,a,r,s,l){var o=a.startColor,d=a.endColor,c=a.fontSize,u=a.indent,p=a.fontWeight,A=xue.createElement("div"),h=fpe(n)||"fixed"===Zce(n,"pinType"),f=-1!==e.indexOf("scroller"),m=h?wue:n,v=-1!==e.indexOf("start"),g=v?o:d,y="border-color:"+g+";font-size:"+c+";color:"+g+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((f||l)&&h?"fixed;":"absolute;"),(f||l||!h)&&(y+=(i===oue?Fpe:Bpe)+":"+(r+parseFloat(u))+"px;"),s&&(y+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),A._isStart=v,A.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),A.style.cssText=y,A.innerText=t||0===t?e+"-"+t:e,m.children[0]?m.insertBefore(A,m.children[0]):m.appendChild(A),A._offset=A["offset"+i.op.d2],nAe(A,0,i,v),A},nAe=function(e,t,n,i){var a={display:"block"},r=n[i?"os2":"p2"],s=n[i?"p2":"os2"];e._isFlipped=i,a[n.a+"Percent"]=i?-100:0,a[n.a]=i?"1px":0,a["border"+r+Ope]=1,a["border"+s+Ope]=0,a[n.p]=t+"px",vue.set(e,a)},iAe=[],aAe={},rAe=function(){return npe()-ape>34&&(Xue||(Xue=requestAnimationFrame(jAe)))},sAe=function(){(!Mue||!Mue.isPressed||Mue.startX>wue.clientWidth)&&(Gce.cache++,Mue?Xue||(Xue=requestAnimationFrame(jAe)):jAe(),ape||pAe("scrollStart"),ape=npe())},lAe=function(){Hue=yue.innerWidth,Que=yue.innerHeight},oAe=function(e){Gce.cache++,(!0===e||!Bue&&!Oue&&!xue.fullscreenElement&&!xue.webkitFullscreenElement&&(!Rue||Hue!==yue.innerWidth||Math.abs(yue.innerHeight-Que)>.25*yue.innerHeight))&&Cue.restart(!0)},dAe={},cAe=[],uAe=function e(){return Gpe(_Ae,"scrollEnd",e)||xAe(!0)},pAe=function(e){return dAe[e]&&dAe[e].map((function(e){return e()}))||cAe},AAe=[],hAe=function(e){for(var t=0;t<AAe.length;t+=5)(!e||AAe[t+4]&&AAe[t+4].query===e)&&(AAe[t].style.cssText=AAe[t+1],AAe[t].getBBox&&AAe[t].setAttribute("transform",AAe[t+2]||""),AAe[t+3].uncache=1)},fAe=function(e,t){var n;for(Tue=0;Tue<iAe.length;Tue++)!(n=iAe[Tue])||t&&n._ctx!==t||(e?n.kill(1):n.revert(!0,!0));Kue=!0,t&&hAe(t),t||pAe("revert")},mAe=function(e,t){Gce.cache++,(t||!Jue)&&Gce.forEach((function(e){return bpe(e)&&e.cacheID++&&(e.rec=0)})),xpe(e)&&(yue.history.scrollRestoration=que=e)},vAe=0,gAe=function(){wue.appendChild(Wue),Yue=!Mue&&Wue.offsetHeight||yue.innerHeight,wue.removeChild(Wue)},yAe=function(e){return Sue(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach((function(t){return t.style.display=e?"none":"block"}))},xAe=function(e,t){if(bue=xue.documentElement,wue=xue.body,jue=[yue,xue,bue,wue],!ape||e||Kue){gAe(),Jue=_Ae.isRefreshing=!0,Gce.forEach((function(e){return bpe(e)&&++e.cacheID&&(e.rec=e())}));var n=pAe("refreshInit");Uue&&_Ae.sort(),t||fAe(),Gce.forEach((function(e){bpe(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))})),iAe.slice(0).forEach((function(e){return e.refresh()})),Kue=!1,iAe.forEach((function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?"offsetWidth":"offsetHeight",n=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-n),e.refresh()}})),Gue=1,yAe(!0),iAe.forEach((function(e){var t=gpe(e.scroller,e._dir),n="max"===e.vars.end||e._endClamp&&e.end>t,i=e._startClamp&&e.start>=t;(n||i)&&e.setPositions(i?t-1:e.start,n?Math.max(i?t:e.start+1,t):e.end,!0)})),yAe(!1),Gue=0,n.forEach((function(e){return e&&e.render&&e.render(-1)})),Gce.forEach((function(e){bpe(e)&&(e.smooth&&requestAnimationFrame((function(){return e.target.style.scrollBehavior="smooth"})),e.rec&&e(e.rec))})),mAe(que,1),Cue.pause(),vAe++,Jue=2,jAe(2),iAe.forEach((function(e){return bpe(e.vars.onRefresh)&&e.vars.onRefresh(e)})),Jue=_Ae.isRefreshing=!1,pAe("refresh")}else Kpe(_Ae,"scrollEnd",uAe)},bAe=0,wAe=1,jAe=function(e){if(2===e||!Jue&&!Kue){_Ae.isUpdating=!0,epe&&epe.update(0);var t=iAe.length,n=npe(),i=n-ipe>=50,a=t&&iAe[0].scroll();if(wAe=bAe>a?-1:1,Jue||(bAe=a),i&&(ape&&!Pue&&n-ape>200&&(ape=0,pAe("scrollEnd")),Iue=ipe,ipe=n),wAe<0){for(Tue=t;Tue-- >0;)iAe[Tue]&&iAe[Tue].update(0,i);wAe=1}else for(Tue=0;Tue<t;Tue++)iAe[Tue]&&iAe[Tue].update(0,i);_Ae.isUpdating=!1}Xue=0},CAe=[Ipe,"top",Bpe,Fpe,_pe+Lpe,_pe+Tpe,_pe+Dpe,_pe+Epe,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],SAe=CAe.concat([Ppe,kpe,"boxSizing","max"+Ope,"max"+Mpe,"position",_pe,Upe,Upe+Dpe,Upe+Tpe,Upe+Lpe,Upe+Epe]),NAe=function(e,t,n,i){if(!e._gsap.swappedIn){for(var a,r=CAe.length,s=t.style,l=e.style;r--;)s[a=CAe[r]]=n[a];s.position="absolute"===n.position?"absolute":"relative","inline"===n.display&&(s.display="inline-block"),l[Bpe]=l[Fpe]="auto",s.flexBasis=n.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[Ppe]=zpe(e,lue)+Rpe,s[kpe]=zpe(e,oue)+Rpe,s[Upe]=l[_pe]=l.top=l[Ipe]="0",FAe(i),l[Ppe]=l["max"+Ope]=n[Ppe],l[kpe]=l["max"+Mpe]=n[kpe],l[Upe]=n[Upe],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},IAe=/([A-Z])/g,FAe=function(e){if(e){var t,n,i=e.t.style,a=e.length,r=0;for((e.t._gsap||vue.core.getCache(e.t)).uncache=1;r<a;r+=2)n=e[r+1],t=e[r],n?i[t]=n:i[t]&&i.removeProperty(t.replace(IAe,"-$1").toLowerCase())}},BAe=function(e){for(var t=SAe.length,n=e.style,i=[],a=0;a<t;a++)i.push(SAe[a],n[SAe[a]]);return i.t=e,i},PAe={left:0,top:0},kAe=function(e,t,n,i,a,r,s,l,o,d,c,u,p,A){bpe(e)&&(e=e(l)),xpe(e)&&"max"===e.substr(0,3)&&(e=u+("="===e.charAt(4)?eAe("0"+e.substr(3),n):0));var h,f,m,v=p?p.time():0;if(p&&p.seek(0),isNaN(e)||(e=+e),wpe(e))p&&(e=vue.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,u,e)),s&&nAe(s,n,i,!0);else{bpe(t)&&(t=t(l));var g,y,x,b,w=(e||"0").split(" ");m=due(t,l)||wue,(g=Vpe(m)||{})&&(g.left||g.top)||"none"!==Qpe(m).display||(b=m.style.display,m.style.display="block",g=Vpe(m),b?m.style.display=b:m.style.removeProperty("display")),y=eAe(w[0],g[i.d]),x=eAe(w[1]||"0",n),e=g[i.p]-o[i.p]-d+y+a-x,s&&nAe(s,x,i,n-x<20||s._isStart&&x>20),n-=n-x}if(A&&(l[A]=e||-.001,e<0&&(e=0)),r){var j=e+n,C=r._isStart;h="scroll"+i.d2,nAe(r,j,i,C&&j>20||!C&&(c?Math.max(wue[h],bue[h]):r.parentNode[h])<=j+1),c&&(o=Vpe(s),c&&(r.style[i.op.p]=o[i.op.p]-i.op.m-r._offset+Rpe))}return p&&m&&(h=Vpe(m),p.seek(u),f=Vpe(m),p._caScrollDist=h[i.p]-f[i.p],e=e/p._caScrollDist*u),p&&p.seek(v),p?e:Math.round(e)},TAe=/(webkit|moz|length|cssText|inset)/i,EAe=function(e,t,n,i){if(e.parentNode!==t){var a,r,s=e.style;if(t===wue){for(a in e._stOrig=s.cssText,r=Qpe(e))+a||TAe.test(a)||!r[a]||"string"!=typeof s[a]||"0"===a||(s[a]=r[a]);s.top=n,s.left=i}else s.cssText=e._stOrig;vue.core.getCache(e).uncache=1,t.appendChild(e)}},DAe=function(e,t,n){var i=t,a=i;return function(t){var r=Math.round(e());return r!==i&&r!==a&&Math.abs(r-i)>3&&Math.abs(r-a)>3&&(t=r,n&&n()),a=i,i=Math.round(t)}},LAe=function(e,t,n){var i={};i[t.p]="+="+n,vue.set(e,i)},UAe=function(e,t){var n=cue(e,t),i="_scroll"+t.p2,a=function t(a,r,s,l,o){var d=t.tween,c=r.onComplete,u={};s=s||n();var p=DAe(n,s,(function(){d.kill(),t.tween=0}));return o=l&&o||0,l=l||a-s,d&&d.kill(),r[i]=a,r.inherit=!1,r.modifiers=u,u[i]=function(){return p(s+l*d.ratio+o*d.ratio*d.ratio)},r.onUpdate=function(){Gce.cache++,t.tween&&jAe()},r.onComplete=function(){t.tween=0,c&&c.call(d)},d=t.tween=vue.to(e,r)};return e[i]=n,n.wheelHandler=function(){return a.tween&&a.tween.kill()&&(a.tween=0)},Kpe(e,"wheel",n.wheelHandler),_Ae.isTouch&&Kpe(e,"touchmove",n.wheelHandler),a},_Ae=function(){function e(t,n){gue||e.register(vue),zue(this),this.init(t,n)}return e.prototype.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),rpe){var i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B,P,k,T,E,D,L,U,_,O,M,R,Q,H,V,z,q=t=Hpe(xpe(t)||wpe(t)||t.nodeType?{trigger:t}:t,Jpe),W=q.onUpdate,Y=q.toggleClass,K=q.id,G=q.onToggle,$=q.onRefresh,X=q.scrub,J=q.trigger,Z=q.pin,ee=q.pinSpacing,te=q.invalidateOnRefresh,ne=q.anticipatePin,ie=q.onScrubComplete,ae=q.onSnapComplete,re=q.once,se=q.snap,le=q.pinReparent,oe=q.pinSpacer,de=q.containerAnimation,ce=q.fastScrollEnd,ue=q.preventOverlaps,pe=t.horizontal||t.containerAnimation&&!1!==t.horizontal?lue:oue,Ae=!X&&0!==X,he=due(t.scroller||yue),fe=vue.core.getCache(he),me=fpe(he),ve="fixed"===("pinType"in t?t.pinType:Zce(he,"pinType")||me&&"fixed"),ge=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],ye=Ae&&t.toggleActions.split(" "),xe="markers"in t?t.markers:Jpe.markers,be=me?0:parseFloat(Qpe(he)["border"+pe.p2+Ope])||0,we=this,je=t.onRefreshInit&&function(){return t.onRefreshInit(we)},Ce=function(e,t,n){var i=n.d,a=n.d2,r=n.a;return(r=Zce(e,"getBoundingClientRect"))?function(){return r()[i]}:function(){return(t?mpe(a):e["client"+a])||0}}(he,me,pe),Se=function(e,t){return!t||~$ce.indexOf(e)?vpe(e):function(){return PAe}}(he,me),Ne=0,Ie=0,Fe=0,Be=cue(he,pe);if(we._startClamp=we._endClamp=!1,we._dir=pe,ne*=45,we.scroller=he,we.scroll=de?de.time.bind(de):Be,s=Be(),we.vars=t,n=n||t.animation,"refreshPriority"in t&&(Uue=1,-9999===t.refreshPriority&&(epe=we)),fe.tweenScroll=fe.tweenScroll||{top:UAe(he,oue),left:UAe(he,lue)},we.tweenTo=i=fe.tweenScroll[pe.p],we.scrubDuration=function(e){(L=wpe(e)&&e)?D?D.duration(e):D=vue.to(n,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:L,paused:!0,onComplete:function(){return ie&&ie(we)}}):(D&&D.progress(1).kill(),D=0)},n&&(n.vars.lazy=!1,n._initted&&!we.isReverted||!1!==n.vars.immediateRender&&!1!==t.immediateRender&&n.duration()&&n.render(0,!0,!0),we.animation=n.pause(),n.scrollTrigger=we,we.scrubDuration(X),T=0,K||(K=n.vars.id)),se&&(jpe(se)&&!se.push||(se={snapTo:se}),"scrollBehavior"in wue.style&&vue.set(me?[wue,bue]:he,{scrollBehavior:"auto"}),Gce.forEach((function(e){return bpe(e)&&e.target===(me?xue.scrollingElement||bue:he)&&(e.smooth=!1)})),r=bpe(se.snapTo)?se.snapTo:"labels"===se.snapTo?function(e){return function(t){return vue.utils.snap(qpe(e),t)}}(n):"labelsDirectional"===se.snapTo?(H=n,function(e,t){return Wpe(qpe(H))(e,t.direction)}):!1!==se.directional?function(e,t){return Wpe(se.snapTo)(e,npe()-Ie<500?0:t.direction)}:vue.utils.snap(se.snapTo),U=se.duration||{min:.1,max:2},U=jpe(U)?Nue(U.min,U.max):Nue(U,U),_=vue.delayedCall(se.delay||L/2||.1,(function(){var e=Be(),t=npe()-Ie<500,a=i.tween;if(!(t||Math.abs(we.getVelocity())<10)||a||Pue||Ne===e)we.isActive&&Ne!==e&&_.restart(!0);else{var s,l,c=(e-o)/m,u=n&&!Ae?n.totalProgress():c,p=t?0:(u-E)/(npe()-Iue)*1e3||0,A=vue.utils.clamp(-c,1-c,Npe(p/2)*p/.185),h=c+(!1===se.inertia?0:A),f=se,v=f.onStart,g=f.onInterrupt,y=f.onComplete;if(s=r(h,we),wpe(s)||(s=h),l=Math.max(0,Math.round(o+s*m)),e<=d&&e>=o&&l!==e){if(a&&!a._initted&&a.data<=Npe(l-e))return;!1===se.inertia&&(A=s-c),i(l,{duration:U(Npe(.185*Math.max(Npe(h-u),Npe(s-u))/p/.05||0)),ease:se.ease||"power3",data:Npe(l-e),onInterrupt:function(){return _.restart(!0)&&g&&g(we)},onComplete:function(){we.update(),Ne=Be(),n&&!Ae&&(D?D.resetTo("totalProgress",s,n._tTime/n._tDur):n.progress(s)),T=E=n&&!Ae?n.totalProgress():we.progress,ae&&ae(we),y&&y(we)}},e,A*m,l-e-A*m),v&&v(we,i.tween)}}})).pause()),K&&(aAe[K]=we),(Q=(J=we.trigger=due(J||!0!==Z&&Z))&&J._gsap&&J._gsap.stRevert)&&(Q=Q(we)),Z=!0===Z?J:due(Z),xpe(Y)&&(Y={targets:J,className:Y}),Z&&(!1===ee||ee===_pe||(ee=!(!ee&&Z.parentNode&&Z.parentNode.style&&"flex"===Qpe(Z.parentNode).display)&&Upe),we.pin=Z,(a=vue.core.getCache(Z)).spacer?v=a.pinState:(oe&&((oe=due(oe))&&!oe.nodeType&&(oe=oe.current||oe.nativeElement),a.spacerIsNative=!!oe,oe&&(a.spacerState=BAe(oe))),a.spacer=x=oe||xue.createElement("div"),x.classList.add("pin-spacer"),K&&x.classList.add("pin-spacer-"+K),a.pinState=v=BAe(Z)),!1!==t.force3D&&vue.set(Z,{force3D:!0}),we.spacer=x=a.spacer,k=Qpe(Z),N=k[ee+pe.os2],w=vue.getProperty(Z),j=vue.quickSetter(Z,pe.a,Rpe),NAe(Z,x,k),y=BAe(Z)),xe){h=jpe(xe)?Hpe(xe,Xpe):Xpe,p=tAe("scroller-start",K,he,pe,h,0),A=tAe("scroller-end",K,he,pe,h,0,p),b=p["offset"+pe.op.d2];var Pe=due(Zce(he,"content")||he);c=this.markerStart=tAe("start",K,Pe,pe,h,b,0,de),u=this.markerEnd=tAe("end",K,Pe,pe,h,b,0,de),de&&(R=vue.quickSetter([c,u],pe.a,Rpe)),ve||$ce.length&&!0===Zce(he,"fixedMarkers")||(z=Qpe(V=me?wue:he).position,V.style.position="absolute"===z||"fixed"===z?z:"relative",vue.set([p,A],{force3D:!0}),F=vue.quickSetter(p,pe.a,Rpe),P=vue.quickSetter(A,pe.a,Rpe))}if(de){var ke=de.vars.onUpdate,Te=de.vars.onUpdateParams;de.eventCallback("onUpdate",(function(){we.update(0,0,1),ke&&ke.apply(de,Te||[])}))}if(we.previous=function(){return iAe[iAe.indexOf(we)-1]},we.next=function(){return iAe[iAe.indexOf(we)+1]},we.revert=function(e,t){if(!t)return we.kill(!0);var i=!1!==e||!we.enabled,a=Bue;i!==we.isReverted&&(i&&(O=Math.max(Be(),we.scroll.rec||0),Fe=we.progress,M=n&&n.progress()),c&&[c,u,p,A].forEach((function(e){return e.style.display=i?"none":"block"})),i&&(Bue=we,we.update(i)),!Z||le&&we.isActive||(i?function(e,t,n){FAe(n);var i=e._gsap;if(i.spacerIsNative)FAe(i.spacerState);else if(e._gsap.swappedIn){var a=t.parentNode;a&&(a.insertBefore(e,t),a.removeChild(t))}e._gsap.swappedIn=!1}(Z,x,v):NAe(Z,x,Qpe(Z),I)),i||we.update(i),Bue=a,we.isReverted=i)},we.refresh=function(a,r,h,b){if(!Bue&&we.enabled||r)if(Z&&a&&ape)Kpe(e,"scrollEnd",uAe);else{!Jue&&je&&je(we),Bue=we,i.tween&&!h&&(i.tween.kill(),i.tween=0),D&&D.pause(),te&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren&&n.getChildren(!0,!0,!1).forEach((function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}))),we.isReverted||we.revert(!0,!0),we._subPinOffset=!1;var j,N,F,P,k,T,E,L,U,R,Q,H,V,z=Ce(),q=Se(),W=de?de.duration():gpe(he,pe),Y=m<=.01||!m,K=0,G=b||0,X=jpe(h)?h.end:t.end,ne=t.endTrigger||J,ie=jpe(h)?h.start:t.start||(0!==t.start&&J?Z?"0 0":"0 100%":0),ae=we.pinnedContainer=t.pinnedContainer&&due(t.pinnedContainer,we),re=J&&Math.max(0,iAe.indexOf(we))||0,se=re;for(xe&&jpe(h)&&(H=vue.getProperty(p,pe.p),V=vue.getProperty(A,pe.p));se-- >0;)(T=iAe[se]).end||T.refresh(0,1)||(Bue=we),!(E=T.pin)||E!==J&&E!==Z&&E!==ae||T.isReverted||(R||(R=[]),R.unshift(T),T.revert(!0,!0)),T!==iAe[se]&&(re--,se--);for(bpe(ie)&&(ie=ie(we)),ie=spe(ie,"start",we),o=kAe(ie,J,z,pe,Be(),c,p,we,q,be,ve,W,de,we._startClamp&&"_startClamp")||(Z?-.001:0),bpe(X)&&(X=X(we)),xpe(X)&&!X.indexOf("+=")&&(~X.indexOf(" ")?X=(xpe(ie)?ie.split(" ")[0]:"")+X:(K=eAe(X.substr(2),z),X=xpe(ie)?ie:(de?vue.utils.mapRange(0,de.duration(),de.scrollTrigger.start,de.scrollTrigger.end,o):o)+K,ne=J)),X=spe(X,"end",we),d=Math.max(o,kAe(X||(ne?"100% 0":W),ne,z,pe,Be()+K,u,A,we,q,be,ve,W,de,we._endClamp&&"_endClamp"))||-.001,K=0,se=re;se--;)(E=(T=iAe[se]).pin)&&T.start-T._pinPush<=o&&!de&&T.end>0&&(j=T.end-(we._startClamp?Math.max(0,T.start):T.start),(E===J&&T.start-T._pinPush<o||E===ae)&&isNaN(ie)&&(K+=j*(1-T.progress)),E===Z&&(G+=j));if(o+=K,d+=K,we._startClamp&&(we._startClamp+=K),we._endClamp&&!Jue&&(we._endClamp=d||-.001,d=Math.min(d,gpe(he,pe))),m=d-o||(o-=.01)&&.001,Y&&(Fe=vue.utils.clamp(0,1,vue.utils.normalize(o,d,O))),we._pinPush=G,c&&K&&((j={})[pe.a]="+="+K,ae&&(j[pe.p]="-="+Be()),vue.set([c,u],j)),!Z||Gue&&we.end>=gpe(he,pe)){if(J&&Be()&&!de)for(N=J.parentNode;N&&N!==wue;)N._pinOffset&&(o-=N._pinOffset,d-=N._pinOffset),N=N.parentNode}else j=Qpe(Z),P=pe===oue,F=Be(),C=parseFloat(w(pe.a))+G,!W&&d>1&&(Q={style:Q=(me?xue.scrollingElement||bue:he).style,value:Q["overflow"+pe.a.toUpperCase()]},me&&"scroll"!==Qpe(wue)["overflow"+pe.a.toUpperCase()]&&(Q.style["overflow"+pe.a.toUpperCase()]="scroll")),NAe(Z,x,j),y=BAe(Z),N=Vpe(Z,!0),L=ve&&cue(he,P?lue:oue)(),ee?((I=[ee+pe.os2,m+G+Rpe]).t=x,(se=ee===Upe?zpe(Z,pe)+m+G:0)&&(I.push(pe.d,se+Rpe),"auto"!==x.style.flexBasis&&(x.style.flexBasis=se+Rpe)),FAe(I),ae&&iAe.forEach((function(e){e.pin===ae&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)})),ve&&Be(O)):(se=zpe(Z,pe))&&"auto"!==x.style.flexBasis&&(x.style.flexBasis=se+Rpe),ve&&((k={top:N.top+(P?F-o:L)+Rpe,left:N.left+(P?L:F-o)+Rpe,boxSizing:"border-box",position:"fixed"})[Ppe]=k["max"+Ope]=Math.ceil(N.width)+Rpe,k[kpe]=k["max"+Mpe]=Math.ceil(N.height)+Rpe,k[_pe]=k[_pe+Dpe]=k[_pe+Tpe]=k[_pe+Lpe]=k[_pe+Epe]="0",k[Upe]=j[Upe],k[Upe+Dpe]=j[Upe+Dpe],k[Upe+Tpe]=j[Upe+Tpe],k[Upe+Lpe]=j[Upe+Lpe],k[Upe+Epe]=j[Upe+Epe],g=function(e,t,n){for(var i,a=[],r=e.length,s=n?8:0;s<r;s+=2)i=e[s],a.push(i,i in t?t[i]:e[s+1]);return a.t=e.t,a}(v,k,le),Jue&&Be(0)),n?(U=n._initted,_ue(1),n.render(n.duration(),!0,!0),S=w(pe.a)-C+m+G,B=Math.abs(m-S)>1,ve&&B&&g.splice(g.length-2,2),n.render(0,!0,!0),U||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),_ue(0)):S=m,Q&&(Q.value?Q.style["overflow"+pe.a.toUpperCase()]=Q.value:Q.style.removeProperty("overflow-"+pe.a));R&&R.forEach((function(e){return e.revert(!1,!0)})),we.start=o,we.end=d,s=l=Jue?O:Be(),de||Jue||(s<O&&Be(O),we.scroll.rec=0),we.revert(!1,!0),Ie=npe(),_&&(Ne=-1,_.restart(!0)),Bue=0,n&&Ae&&(n._initted||M)&&n.progress()!==M&&n.progress(M||0,!0).render(n.time(),!0,!0),(Y||Fe!==we.progress||de||te||n&&!n._initted)&&(n&&!Ae&&(n._initted||Fe||!1!==n.vars.immediateRender)&&n.totalProgress(de&&o<-.001&&!Fe?vue.utils.normalize(o,d,0):Fe,!0),we.progress=Y||(s-o)/m===Fe?0:Fe),Z&&ee&&(x._pinOffset=Math.round(we.progress*S)),D&&D.invalidate(),isNaN(H)||(H-=vue.getProperty(p,pe.p),V-=vue.getProperty(A,pe.p),LAe(p,pe,H),LAe(c,pe,H-(b||0)),LAe(A,pe,V),LAe(u,pe,V-(b||0))),Y&&!Jue&&we.update(),!$||Jue||f||(f=!0,$(we),f=!1)}},we.getVelocity=function(){return(Be()-l)/(npe()-Iue)*1e3||0},we.endAnimation=function(){Cpe(we.callbackAnimation),n&&(D?D.progress(1):n.paused()?Ae||Cpe(n,we.direction<0,1):Cpe(n,n.reversed()))},we.labelToScroll=function(e){return n&&n.labels&&(o||we.refresh()||o)+n.labels[e]/n.duration()*m||0},we.getTrailing=function(e){var t=iAe.indexOf(we),n=we.direction>0?iAe.slice(0,t).reverse():iAe.slice(t+1);return(xpe(e)?n.filter((function(t){return t.vars.preventOverlaps===e})):n).filter((function(e){return we.direction>0?e.end<=o:e.start>=d}))},we.update=function(e,t,a){if(!de||a||e){var r,c,u,A,h,f,v,b=!0===Jue?O:we.scroll(),w=e?0:(b-o)/m,I=w<0?0:w>1?1:w||0,k=we.progress;if(t&&(l=s,s=de?Be():b,se&&(E=T,T=n&&!Ae?n.totalProgress():I)),ne&&Z&&!Bue&&!tpe&&ape&&(!I&&o<b+(b-l)/(npe()-Iue)*ne?I=1e-4:1===I&&d>b+(b-l)/(npe()-Iue)*ne&&(I=.9999)),I!==k&&we.enabled){if(A=(h=(r=we.isActive=!!I&&I<1)!==(!!k&&k<1))||!!I!=!!k,we.direction=I>k?1:-1,we.progress=I,A&&!Bue&&(c=I&&!k?0:1===I?1:1===k?2:3,Ae&&(u=!h&&"none"!==ye[c+1]&&ye[c+1]||ye[c],v=n&&("complete"===u||"reset"===u||u in n))),ue&&(h||v)&&(v||X||!n)&&(bpe(ue)?ue(we):we.getTrailing(ue).forEach((function(e){return e.endAnimation()}))),Ae||(!D||Bue||tpe?n&&n.totalProgress(I,!(!Bue||!Ie&&!e)):(D._dp._time-D._start!==D._time&&D.render(D._dp._time-D._start),D.resetTo?D.resetTo("totalProgress",I,n._tTime/n._tDur):(D.vars.totalProgress=I,D.invalidate().restart()))),Z)if(e&&ee&&(x.style[ee+pe.os2]=N),ve){if(A){if(f=!e&&I>k&&d+1>b&&b+1>=gpe(he,pe),le)if(e||!r&&!f)EAe(Z,x);else{var L=Vpe(Z,!0),U=b-o;EAe(Z,wue,L.top+(pe===oue?U:0)+Rpe,L.left+(pe===oue?0:U)+Rpe)}FAe(r||f?g:y),B&&I<1&&r||j(C+(1!==I||f?0:S))}}else j(ppe(C+S*I));se&&!i.tween&&!Bue&&!tpe&&_.restart(!0),Y&&(h||re&&I&&(I<1||!$ue))&&Sue(Y.targets).forEach((function(e){return e.classList[r||re?"add":"remove"](Y.className)})),W&&!Ae&&!e&&W(we),A&&!Bue?(Ae&&(v&&("complete"===u?n.pause().totalProgress(1):"reset"===u?n.restart(!0).pause():"restart"===u?n.restart(!0):n[u]()),W&&W(we)),!h&&$ue||(G&&h&&Spe(we,G),ge[c]&&Spe(we,ge[c]),re&&(1===I?we.kill(!1,1):ge[c]=0),h||ge[c=1===I?1:3]&&Spe(we,ge[c])),ce&&!r&&Math.abs(we.getVelocity())>(wpe(ce)?ce:2500)&&(Cpe(we.callbackAnimation),D?D.progress(1):Cpe(n,"reverse"===u?1:!I,1))):Ae&&W&&!Bue&&W(we)}if(P){var M=de?b/de.duration()*(de._caScrollDist||0):b;F(M+(p._isFlipped?1:0)),P(M)}R&&R(-b/de.duration()*(de._caScrollDist||0))}},we.enable=function(t,n){we.enabled||(we.enabled=!0,Kpe(he,"resize",oAe),me||Kpe(he,"scroll",sAe),je&&Kpe(e,"refreshInit",je),!1!==t&&(we.progress=Fe=0,s=l=Ne=Be()),!1!==n&&we.refresh())},we.getTween=function(e){return e&&i?i.tween:D},we.setPositions=function(e,t,n,i){if(de){var a=de.scrollTrigger,r=de.duration(),s=a.end-a.start;e=a.start+s*e/r,t=a.start+s*t/r}we.refresh(!1,!1,{start:lpe(e,n&&!!we._startClamp),end:lpe(t,n&&!!we._endClamp)},i),we.update()},we.adjustPinSpacing=function(e){if(I&&e){var t=I.indexOf(pe.d)+1;I[t]=parseFloat(I[t])+e+Rpe,I[1]=parseFloat(I[1])+e+Rpe,FAe(I)}},we.disable=function(t,n){if(we.enabled&&(!1!==t&&we.revert(!0,!0),we.enabled=we.isActive=!1,n||D&&D.pause(),O=0,a&&(a.uncache=1),je&&Gpe(e,"refreshInit",je),_&&(_.pause(),i.tween&&i.tween.kill()&&(i.tween=0)),!me)){for(var r=iAe.length;r--;)if(iAe[r].scroller===he&&iAe[r]!==we)return;Gpe(he,"resize",oAe),me||Gpe(he,"scroll",sAe)}},we.kill=function(e,i){we.disable(e,i),D&&!i&&D.kill(),K&&delete aAe[K];var r=iAe.indexOf(we);r>=0&&iAe.splice(r,1),r===Tue&&wAe>0&&Tue--,r=0,iAe.forEach((function(e){return e.scroller===we.scroller&&(r=1)})),r||Jue||(we.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),i||n.kill()),c&&[c,u,p,A].forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),epe===we&&(epe=0),Z&&(a&&(a.uncache=1),r=0,iAe.forEach((function(e){return e.pin===Z&&r++})),r||(a.spacer=0)),t.onKill&&t.onKill(we)},iAe.push(we),we.enable(!1,!1),Q&&Q(we),n&&n.add&&!m){var Ee=we.update;we.update=function(){we.update=Ee,Gce.cache++,o||d||we.refresh()},vue.delayedCall(.01,we.update),m=.01,o=d=0}else we.refresh();Z&&function(){if(Zue!==vAe){var e=Zue=vAe;requestAnimationFrame((function(){return e===vAe&&xAe(!0)}))}}()}else this.update=this.refresh=this.kill=upe},e.register=function(t){return gue||(vue=t||hpe(),Ape()&&window.document&&e.enable(),gue=rpe),gue},e.defaults=function(e){if(e)for(var t in e)Jpe[t]=e[t];return Jpe},e.disable=function(e,t){rpe=0,iAe.forEach((function(n){return n[t?"kill":"disable"](e)})),Gpe(yue,"wheel",sAe),Gpe(xue,"scroll",sAe),clearInterval(Fue),Gpe(xue,"touchcancel",upe),Gpe(wue,"touchstart",upe),Ype(Gpe,xue,"pointerdown,touchstart,mousedown",dpe),Ype(Gpe,xue,"pointerup,touchend,mouseup",cpe),Cue.kill(),ype(Gpe);for(var n=0;n<Gce.length;n+=3)$pe(Gpe,Gce[n],Gce[n+1]),$pe(Gpe,Gce[n],Gce[n+2])},e.enable=function(){if(yue=window,xue=document,bue=xue.documentElement,wue=xue.body,vue&&(Sue=vue.utils.toArray,Nue=vue.utils.clamp,zue=vue.core.context||upe,_ue=vue.core.suppressOverwrites||upe,que=yue.history.scrollRestoration||"auto",bAe=yue.pageYOffset||0,vue.core.globals("ScrollTrigger",e),wue)){rpe=1,(Wue=document.createElement("div")).style.height="100vh",Wue.style.position="absolute",gAe(),ope(),mue.register(vue),e.isTouch=mue.isTouch,Vue=mue.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Rue=1===mue.isTouch,Kpe(yue,"wheel",sAe),jue=[yue,xue,bue,wue],vue.matchMedia&&(e.matchMedia=function(e){var t,n=vue.matchMedia();for(t in e)n.add(t,e[t]);return n},vue.addEventListener("matchMediaInit",(function(){return fAe()})),vue.addEventListener("matchMediaRevert",(function(){return hAe()})),vue.addEventListener("matchMedia",(function(){xAe(0,1),pAe("matchMedia")})),vue.matchMedia().add("(orientation: portrait)",(function(){return lAe(),lAe}))),lAe(),Kpe(xue,"scroll",sAe);var t,n,i=wue.hasAttribute("style"),a=wue.style,r=a.borderTopStyle,s=vue.core.Animation.prototype;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),a.borderTopStyle="solid",t=Vpe(wue),oue.m=Math.round(t.top+oue.sc())||0,lue.m=Math.round(t.left+lue.sc())||0,r?a.borderTopStyle=r:a.removeProperty("border-top-style"),i||(wue.setAttribute("style",""),wue.removeAttribute("style")),Fue=setInterval(rAe,250),vue.delayedCall(.5,(function(){return tpe=0})),Kpe(xue,"touchcancel",upe),Kpe(wue,"touchstart",upe),Ype(Kpe,xue,"pointerdown,touchstart,mousedown",dpe),Ype(Kpe,xue,"pointerup,touchend,mouseup",cpe),kue=vue.utils.checkPrefix("transform"),SAe.push(kue),gue=npe(),Cue=vue.delayedCall(.2,xAe).pause(),Lue=[xue,"visibilitychange",function(){var e=yue.innerWidth,t=yue.innerHeight;xue.hidden?(Eue=e,Due=t):Eue===e&&Due===t||oAe()},xue,"DOMContentLoaded",xAe,yue,"load",xAe,yue,"resize",oAe],ype(Kpe),iAe.forEach((function(e){return e.enable(0,1)})),n=0;n<Gce.length;n+=3)$pe(Gpe,Gce[n],Gce[n+1]),$pe(Gpe,Gce[n],Gce[n+2])}},e.config=function(t){"limitCallbacks"in t&&($ue=!!t.limitCallbacks);var n=t.syncInterval;n&&clearInterval(Fue)||(Fue=n)&&setInterval(rAe,n),"ignoreMobileResize"in t&&(Rue=1===e.isTouch&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(ype(Gpe)||ype(Kpe,t.autoRefreshEvents||"none"),Oue=-1===(t.autoRefreshEvents+"").indexOf("resize"))},e.scrollerProxy=function(e,t){var n=due(e),i=Gce.indexOf(n),a=fpe(n);~i&&Gce.splice(i,a?6:2),t&&(a?$ce.unshift(yue,t,wue,t,bue,t):$ce.unshift(n,t))},e.clearMatchMedia=function(e){iAe.forEach((function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)}))},e.isInViewport=function(e,t,n){var i=(xpe(e)?due(e):e).getBoundingClientRect(),a=i[n?Ppe:kpe]*t||0;return n?i.right-a>0&&i.left+a<yue.innerWidth:i.bottom-a>0&&i.top+a<yue.innerHeight},e.positionInViewport=function(e,t,n){xpe(e)&&(e=due(e));var i=e.getBoundingClientRect(),a=i[n?Ppe:kpe],r=null==t?a/2:t in Zpe?Zpe[t]*a:~t.indexOf("%")?parseFloat(t)*a/100:parseFloat(t)||0;return n?(i.left+r)/yue.innerWidth:(i.top+r)/yue.innerHeight},e.killAll=function(e){if(iAe.slice(0).forEach((function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()})),!0!==e){var t=dAe.killAll||[];dAe={},t.forEach((function(e){return e()}))}},e}();_Ae.version="3.13.0",_Ae.saveStyles=function(e){return e?Sue(e).forEach((function(e){if(e&&e.style){var t=AAe.indexOf(e);t>=0&&AAe.splice(t,5),AAe.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),vue.core.getCache(e),zue())}})):AAe},_Ae.revert=function(e,t){return fAe(!e,t)},_Ae.create=function(e,t){return new _Ae(e,t)},_Ae.refresh=function(e){return e?oAe(!0):(gue||_Ae.register())&&xAe(!0)},_Ae.update=function(e){return++Gce.cache&&jAe(!0===e?2:0)},_Ae.clearScrollMemory=mAe,_Ae.maxScroll=function(e,t){return gpe(e,t?lue:oue)},_Ae.getScrollFunc=function(e,t){return cue(due(e),t?lue:oue)},_Ae.getById=function(e){return aAe[e]},_Ae.getAll=function(){return iAe.filter((function(e){return"ScrollSmoother"!==e.vars.id}))},_Ae.isScrolling=function(){return!!ape},_Ae.snapDirectional=Wpe,_Ae.addEventListener=function(e,t){var n=dAe[e]||(dAe[e]=[]);~n.indexOf(t)||n.push(t)},_Ae.removeEventListener=function(e,t){var n=dAe[e],i=n&&n.indexOf(t);i>=0&&n.splice(i,1)},_Ae.batch=function(e,t){var n,i=[],a={},r=t.interval||.016,s=t.batchMax||1e9,l=function(e,t){var n=[],i=[],a=vue.delayedCall(r,(function(){t(n,i),n=[],i=[]})).pause();return function(e){n.length||a.restart(!0),n.push(e.trigger),i.push(e),s<=n.length&&a.progress(1)}};for(n in t)a[n]="on"===n.substr(0,2)&&bpe(t[n])&&"onRefreshInit"!==n?l(0,t[n]):t[n];return bpe(s)&&(s=s(),Kpe(_Ae,"refresh",(function(){return s=t.batchMax()}))),Sue(e).forEach((function(e){var t={};for(n in a)t[n]=a[n];t.trigger=e,i.push(_Ae.create(t))})),i};var OAe,MAe=function(e,t,n,i){return t>i?e(i):t<0&&e(0),n>i?(i-t)/(n-t):n<0?t/(t-n):1},RAe=function e(t,n){!0===n?t.style.removeProperty("touch-action"):t.style.touchAction=!0===n?"auto":n?"pan-"+n+(mue.isTouch?" pinch-zoom":""):"none",t===bue&&e(wue,n)},QAe={auto:1,scroll:1},HAe=function(e){var t,n=e.event,i=e.target,a=e.axis,r=(n.changedTouches?n.changedTouches[0]:n).target,s=r._gsap||vue.core.getCache(r),l=npe();if(!s._isScrollT||l-s._isScrollT>2e3){for(;r&&r!==wue&&(r.scrollHeight<=r.clientHeight&&r.scrollWidth<=r.clientWidth||!QAe[(t=Qpe(r)).overflowY]&&!QAe[t.overflowX]);)r=r.parentNode;s._isScroll=r&&r!==i&&!fpe(r)&&(QAe[(t=Qpe(r)).overflowY]||QAe[t.overflowX]),s._isScrollT=l}(s._isScroll||"x"===a)&&(n.stopPropagation(),n._gsapAllow=!0)},VAe=function(e,t,n,i){return mue.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:i=i&&HAe,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return n&&Kpe(xue,mue.eventTypes[0],qAe,!1,!0)},onDisable:function(){return Gpe(xue,mue.eventTypes[0],qAe,!0)}})},zAe=/(input|label|select|textarea)/i,qAe=function(e){var t=zAe.test(e.target.tagName);(t||OAe)&&(e._gsapAllow=!0,OAe=t)},WAe=function(e){jpe(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,n,i,a,r,s,l,o,d=e,c=d.normalizeScrollX,u=d.momentum,p=d.allowNestedScroll,A=d.onRelease,h=due(e.target)||bue,f=vue.core.globals().ScrollSmoother,m=f&&f.get(),v=Vue&&(e.content&&due(e.content)||m&&!1!==e.content&&!m.smooth()&&m.content()),g=cue(h,oue),y=cue(h,lue),x=1,b=(mue.isTouch&&yue.visualViewport?yue.visualViewport.scale*yue.visualViewport.width:yue.outerWidth)/yue.innerWidth,w=0,j=bpe(u)?function(){return u(t)}:function(){return u||2.8},C=VAe(h,e.type,!0,p),S=function(){return a=!1},N=upe,I=upe,F=function(){n=gpe(h,oue),I=Nue(Vue?1:0,n),c&&(N=Nue(0,gpe(h,lue))),i=vAe},B=function(){v._gsap.y=ppe(parseFloat(v._gsap.y)+g.offset)+"px",v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(v._gsap.y)+", 0, 1)",g.offset=g.cacheID=0},P=function(){F(),r.isActive()&&r.vars.scrollY>n&&(g()>n?r.progress(1)&&g(n):r.resetTo("scrollY",n))};return v&&vue.set(v,{y:"+=0"}),e.ignoreCheck=function(e){return Vue&&"touchmove"===e.type&&function(){if(a){requestAnimationFrame(S);var e=ppe(t.deltaY/2),n=I(g.v-e);if(v&&n!==g.v+g.offset){g.offset=n-g.v;var i=ppe((parseFloat(v&&v._gsap.y)||0)-g.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+i+", 0, 1)",v._gsap.y=i+"px",g.cacheID=Gce.cache,jAe()}return!0}g.offset&&B(),a=!0}()||x>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){a=!1;var e=x;x=ppe((yue.visualViewport&&yue.visualViewport.scale||1)/b),r.pause(),e!==x&&RAe(h,x>1.01||!c&&"x"),s=y(),l=g(),F(),i=vAe},e.onRelease=e.onGestureStart=function(e,t){if(g.offset&&B(),t){Gce.cache++;var i,a,s=j();c&&(a=(i=y())+.05*s*-e.velocityX/.227,s*=MAe(y,i,a,gpe(h,lue)),r.vars.scrollX=N(a)),a=(i=g())+.05*s*-e.velocityY/.227,s*=MAe(g,i,a,gpe(h,oue)),r.vars.scrollY=I(a),r.invalidate().duration(s).play(.01),(Vue&&r.vars.scrollY>=n||i>=n-1)&&vue.to({},{onUpdate:P,duration:s})}else o.restart(!0);A&&A(e)},e.onWheel=function(){r._ts&&r.pause(),npe()-w>1e3&&(i=0,w=npe())},e.onChange=function(e,t,n,a,r){if(vAe!==i&&F(),t&&c&&y(N(a[2]===t?s+(e.startX-e.x):y()+t-a[1])),n){g.offset&&B();var o=r[2]===n,d=o?l+e.startY-e.y:g()+n-r[1],u=I(d);o&&d!==u&&(l+=u-d),g(u)}(n||t)&&jAe()},e.onEnable=function(){RAe(h,!c&&"x"),_Ae.addEventListener("refresh",P),Kpe(yue,"resize",P),g.smooth&&(g.target.style.scrollBehavior="auto",g.smooth=y.smooth=!1),C.enable()},e.onDisable=function(){RAe(h,!0),Gpe(yue,"resize",P),_Ae.removeEventListener("refresh",P),C.kill()},e.lockAxis=!1!==e.lockAxis,(t=new mue(e)).iOS=Vue,Vue&&!g()&&g(1),Vue&&vue.ticker.add(upe),o=t._dc,r=vue.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:DAe(g,g(),(function(){return r.pause()}))},onUpdate:jAe,onComplete:o.vars.onComplete}),t};_Ae.sort=function(e){if(bpe(e))return iAe.sort(e);var t=yue.pageYOffset||0;return _Ae.getAll().forEach((function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+yue.innerHeight})),iAe.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+-1e6*(t.vars.refreshPriority||0))})},_Ae.observe=function(e){return new mue(e)},_Ae.normalizeScroll=function(e){if(void 0===e)return Mue;if(!0===e&&Mue)return Mue.enable();if(!1===e)return Mue&&Mue.kill(),void(Mue=e);var t=e instanceof mue?e:WAe(e);return Mue&&Mue.target===t.target&&Mue.kill(),fpe(t.target)&&(Mue=t),t},_Ae.core={_getVelocityProp:uue,_inputObserver:VAe,_scrollers:Gce,_proxies:$ce,bridge:{ss:function(){ape||pAe("scrollStart"),ape=npe()},ref:function(){return Bue}}},hpe()&&vue.registerPlugin(_Ae);const YAe=()=>Ye.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"SoftwareApplication",name:"PozoApp",applicationCategory:"BusinessApplication",operatingSystem:"Web, Android, iOS",offers:{"@type":"Offer",price:"0",priceCurrency:"INR"},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",reviewCount:"150"},author:{"@type":"Organization",name:"PozoMind Technologies"}})}),KAe=({industryRef:e,closingIndustry:t,AppCategory:n=[],redirectApp:i})=>{const a=(e=>{const t={foodBeverages:[],wellness:[],fashion:[],electronics:[],grocery:[],services:[],others:[]};return e.forEach((e=>{var n;const i=(null==(n=e.AppName)?void 0:n.toLowerCase())||"";/(bakery|restaurant|dairy|food|cafe|coffee|ice|pickle|pozoresto|resto|resto|eatery|diner|bistro|pizz|burger|juice|sweet|snack)/i.test(i)?t.foodBeverages.push(e):/(salon|spa|beauty|cosmetics|fitness|gym|yoga|wellness|massage|parlour|parlor)/i.test(i)?t.wellness.push(e):/(fashion|jewellery|jewelry|footwear|lifestyle|apparel|textile|cloth|garment|shoe|sandal|accessory)/i.test(i)?t.fashion.push(e):/(electronic|mobile|computer|appliance|laptop|phone|device|gadget|tech)/i.test(i)?t.electronics.push(e):/(grocery|departmental|wholesale|supermarket|mart|retail|store)/i.test(i)?t.grocery.push(e):/(stationery|xerox|print|coaching|cement|tuition|education|training|class)/i.test(i)?t.services.push(e):t.others.push(e)})),t})((null==n?void 0:n.filter((e=>/(Consumer)/i.test(e.CategoryName))))||[]),r=null==n?void 0:n.some((e=>/(Consumer)/i.test(e.CategoryName))),s=n&&n.length>0;return Ye.jsxs("div",{ref:e,className:"IndustriesTypes "+(t?"closing":""),onWheel:e=>{e.stopPropagation()},children:[!s&&Ye.jsx("div",{style:{padding:"20px",textAlign:"center",color:"#666"},children:"Loading industries..."}),r&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"IndustriesOne",children:[Ye.jsxs("div",{className:"main-heading",children:["Retail Universe: Grocery, ",Ye.jsx("br",{})," Wellness, Fashion & More"]}),a.foodBeverages.length>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"sub-category",children:[Ye.jsx(ii,{})," Food & Beverages"]}),a.foodBeverages.map((e=>Ye.jsx("p",{onClick:()=>{var t;return i(null==(t=e.AppName)?void 0:t.toLowerCase(),e.AppId)},children:e.AppName},e.AppId)))]}),a.wellness.length>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"sub-category",children:[Ye.jsx(ci,{})," Wellness & Beauty"]}),a.wellness.map((e=>Ye.jsx("p",{onClick:()=>{var t;return i(null==(t=e.AppName)?void 0:t.toLowerCase(),e.AppId)},children:e.AppName},e.AppId)))]}),a.fashion.length>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"sub-category",children:[Ye.jsx(di,{})," Fashion & Lifestyle"]}),a.fashion.map((e=>Ye.jsx("p",{onClick:()=>{var t;return i(null==(t=e.AppName)?void 0:t.toLowerCase(),e.AppId)},children:e.AppName},e.AppId)))]}),a.electronics.length>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"sub-category",children:[Ye.jsx(zn,{})," Electronics & Tech"]}),a.electronics.map((e=>Ye.jsx("p",{onClick:()=>{var t;return i(null==(t=e.AppName)?void 0:t.toLowerCase(),e.AppId)},children:e.AppName},e.AppId)))]}),a.grocery.length>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"sub-category",children:[Ye.jsx(ui,{})," Grocery & Retail"]}),a.grocery.map((e=>Ye.jsx("p",{onClick:()=>{var t;return i(null==(t=e.AppName)?void 0:t.toLowerCase(),e.AppId)},children:e.AppName},e.AppId)))]}),a.services.length>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"sub-category",children:[Ye.jsx(Hn,{})," Professional Services"]}),a.services.map((e=>Ye.jsx("p",{onClick:()=>{var t;return i(null==(t=e.AppName)?void 0:t.toLowerCase(),e.AppId)},children:e.AppName},e.AppId)))]}),a.others.length>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"sub-category",children:[Ye.jsx(oi,{})," More Industries"]}),a.others.map((e=>Ye.jsx("p",{onClick:()=>{var t;return i(null==(t=e.AppName)?void 0:t.toLowerCase(),e.AppId)},children:e.AppName},e.AppId)))]})]}),(null==n?void 0:n.some((e=>/(manufacturing|healthcare|pharma)/i.test(e.CategoryName))))&&Ye.jsx("hr",{})]}),(null==n?void 0:n.some((e=>/(manufacturing|healthcare|pharma)/i.test(e.CategoryName))))&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"IndustriesTwo",children:[Ye.jsxs("div",{className:"main-heading",children:["Manufacturing, Healthcare & ",Ye.jsx("br",{})," Pharma"]}),(null==n?void 0:n.filter((e=>/(healthcare|pharma)/i.test(e.CategoryName)||/(health|optical)/i.test(e.AppName))).length)>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"sub-category",children:[Ye.jsx(Zn,{})," Healthcare & Pharma"]}),null==n?void 0:n.filter((e=>/(healthcare|pharma)/i.test(e.CategoryName)||/(health|optical)/i.test(e.AppName))).map((e=>Ye.jsx("p",{onClick:()=>{var t;return i(null==(t=e.AppName)?void 0:t.toLowerCase(),e.AppId)},children:e.AppName},e.AppId)))]}),(null==n?void 0:n.filter((e=>/(manufacturing)/i.test(e.CategoryName)||/(manufacturer)/i.test(e.AppName))).length)>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"sub-category",children:[Ye.jsx(Xn,{})," Manufacturing"]}),null==n?void 0:n.filter((e=>/(manufacturing)/i.test(e.CategoryName)||/(manufacturer)/i.test(e.AppName))).map((e=>Ye.jsx("p",{onClick:()=>{var t;return i(null==(t=e.AppName)?void 0:t.toLowerCase(),e.AppId)},children:e.AppName},e.AppId)))]})]}),(null==n?void 0:n.some((e=>/(transportation|logistics|hospitality|entertainment)/i.test(e.CategoryName))))&&Ye.jsx("hr",{})]}),(null==n?void 0:n.some((e=>/(transportation|logistics|hospitality|entertainment)/i.test(e.CategoryName))))&&Ye.jsxs("div",{className:"IndustriesThree",style:{borderRight:"unset"},children:[Ye.jsxs("div",{className:"main-heading",children:["Transportation, Logistics ",Ye.jsx("br",{}),"Hospitality and ",Ye.jsx("br",{}),"Entertainment"]}),(null==n?void 0:n.filter((e=>/(transportation|logistics)/i.test(e.CategoryName)||/(parking|boating)/i.test(e.AppName))).length)>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"sub-category",children:[Ye.jsx(ti,{})," Transportation & Logistics"]}),null==n?void 0:n.filter((e=>/(transportation|logistics)/i.test(e.CategoryName)||/(parking|boating)/i.test(e.AppName))).map((e=>Ye.jsx("p",{onClick:()=>{var t;return i(null==(t=e.AppName)?void 0:t.toLowerCase(),e.AppId)},children:e.AppName},e.AppId)))]}),(null==n?void 0:n.filter((e=>/(hospitality|entertainment)/i.test(e.CategoryName)||/(hotel|resort)/i.test(e.AppName))).length)>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"sub-category",children:[Ye.jsx(Rn,{})," Hospitality & Entertainment"]}),null==n?void 0:n.filter((e=>/(hospitality|entertainment)/i.test(e.CategoryName)||/(hotel|resort)/i.test(e.AppName))).map((e=>Ye.jsx("p",{onClick:()=>{var t;return i(null==(t=e.AppName)?void 0:t.toLowerCase(),e.AppId)},children:e.AppName},e.AppId)))]})]})]})},GAe=Object.freeze(Object.defineProperty({__proto__:null,default:KAe},Symbol.toStringTag,{value:"Module"})),$Ae="/home/",XAe=({isScrolled:e=!1,forceTopZero:t=!1,AppCategory:n,industryRef:i,closingIndustry:r,setClosingIndustry:s=()=>{},industry:l,setIndustry:o=()=>{},companyRef:d,closingCompany:c,setClosingCompany:u=()=>{},company:p,setCompany:A=()=>{},solutionsOpen:h,setSolutionsOpen:f=()=>{},closingSolutions:m,setClosingSolutions:v=()=>{},solutionsRef:g,demoModal:y,handleDemoModal:x,handleDemoModalClose:b})=>{const w=Qt(),j=Mt(),C=um(),[S,N]=a.useState(!1),[I,B]=a.useState(!1),[P,k]=a.useState(!1),[T,E]=a.useState(!1),D=iA("UserId"),[L,U]=a.useState([]),_=j.pathname.includes("/solutions/"),O=()=>{w(`${$Ae}signin`)},M=()=>{p?(u(!0),setTimeout((()=>{A(!1),u(!1)}),200)):(h&&(v(!0),setTimeout((()=>{f(!1),v(!1)}),100)),l&&(s(!0),setTimeout((()=>{o(!1),s(!1)}),100)),A(!0))},R=()=>{l?(s(!0),setTimeout((()=>{o(!1),s(!1)}),200)):(h&&(v(!0),setTimeout((()=>{f(!1),v(!1)}),100)),p&&(u(!0),setTimeout((()=>{A(!1),u(!1)}),100)),o(!0))},[Q,H]=a.useState(!1),V=()=>{h?(v(!0),setTimeout((()=>{f(!1),v(!1)}),200)):(l&&(s(!0),setTimeout((()=>{o(!1),s(!1)}),100)),p&&(u(!0),setTimeout((()=>{A(!1),u(!1)}),100)),f(!0))},z=()=>{document.documentElement.scrollTop=0,document.body.scrollTop=0,window.scrollTo(0,0),setTimeout((()=>{document.documentElement.scrollTop=0,document.body.scrollTop=0,window.scrollTo(0,0)}),1),P?(E(!0),setTimeout((()=>{k(!1),E(!1)}),300)):k(!0)},q=()=>{w(`${$Ae}contact-us`)},W=()=>{w(`${$Ae}`),setTimeout((()=>{window.scrollTo({top:0,behavior:"instant"})}),500)},Y=()=>{w(`${$Ae}pricing`)},K=()=>{w(`${$Ae}blog`)},G=()=>{if(j.pathname!==$Ae&&j.pathname!==`${$Ae}/`)w(`${$Ae}`),setTimeout((()=>{const e=document.getElementById("Offerings");e&&e.scrollIntoView({behavior:"smooth",block:"start"})}),500);else{const e=document.getElementById("Offerings");e&&e.scrollIntoView({behavior:"smooth",block:"start"})}},$=()=>{window.open("https://pozo.app/apps/retail-public/app-page","_blank","noopener,noreferrer")};a.useEffect((()=>{P?(document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top="0",document.body.style.width="100%"):(document.body.style.overflow="unset",document.documentElement.style.overflow="unset",document.body.style.position="unset",document.body.style.top="unset")}),[P]),a.useEffect((()=>{if(l||p||h){const e=window.scrollY;return document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top=`-${e}px`,document.body.style.width="100%",()=>{document.body.style.overflow="unset",document.documentElement.style.overflow="unset",document.body.style.position="unset",document.body.style.top="unset",window.scrollTo(0,e)}}}),[l,p,h]),a.useEffect((()=>{const e=e=>{"Escape"===e.key&&(h&&V(),l&&R(),p&&M())},t=e=>{g.current&&!g.current.contains(e.target)&&!e.target.closest(".navbarOption p")&&h&&V(),i.current&&!i.current.contains(e.target)&&l&&R(),d.current&&!d.current.contains(e.target)&&p&&M()};return document.addEventListener("keydown",e),document.addEventListener("mousedown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t)}}),[h,l,p]),a.useEffect((()=>{X()}),[]);const X=async()=>{var e,t,n;const i=await(null==(e=C(SU()))?void 0:e.unwrap());1===(null==(t=null==i?void 0:i.data)?void 0:t.statusCode)?U((null==(n=null==i?void 0:i.data)?void 0:n.data)||[]):U([])};return Ye.jsxs("div",{style:{position:"relative"},children:[Ye.jsxs("div",{className:"Navbar-Master",style:{backgroundColor:P?"black":"#fff",color:P?"#fff":"",transition:"all 0.2s ease-in",position:"fixed",top:t||e?"0":"22px",zIndex:1e3,backdropFilter:e||h||l||p?"blur(10px)":"none",background:P?"#000000ff":h||l||p?"rgba(255, 255, 255, 0.95)":e?"#ffffff":"transparent",color:e||h||l||p?"#000000ff":"#ffffffff",padding:e?"0.5rem 1.6rem":"1rem 1.6rem",boxShadow:e||h||l||p?"rgba(17, 12, 46, 0.15) 0px 2px 50px 0px":"none"},children:[Ye.jsx("div",{className:"appNameLeft "+(P?"responsiveMenuOpen":""),onClick:W,style:{color:P?"#ffffff":e||h||l||p?"#000":"#fff"},children:"PozoApp"}),Ye.jsxs("div",{className:"navbarOption",children:[Ye.jsx("p",{onClick:W,children:"Home"}),Ye.jsx("p",{onClick:G,children:"Offerings"}),Ye.jsxs("p",{onClick:V,style:{color:h||_?"#1473f8ff":""},"data-solutions-link":"true",children:["Solutions"," ",h?Ye.jsx(bE,{size:10}):Ye.jsx(Jm,{size:10})]}),Ye.jsxs("p",{onClick:R,style:{color:l?"#1473f8ff":""},children:["Industries"," ",l?Ye.jsx(bE,{size:10}):Ye.jsx(Jm,{size:10})]}),Ye.jsxs("p",{onClick:M,style:{color:p?"#1473f8ff":""},children:["Company"," ",p?Ye.jsx(bE,{size:10}):Ye.jsx(Jm,{size:10})]}),Ye.jsx("p",{onClick:Y,children:"Pricing"}),Ye.jsx("p",{onClick:K,children:"Blog"}),Ye.jsx("p",{onClick:()=>w(`${$Ae}case-studies`),children:"Case Studies"}),Ye.jsx("p",{onClick:q,children:"Contact Us"})]}),Ye.jsxs("div",{className:"signinBtnNavbar",children:[Ye.jsx("div",{onClick:x,children:"Book Demo"}),Ye.jsxs("div",{onClick:$,children:[Ye.jsx("sub",{style:{fontSize:"14px"},children:"Store"}),Ye.jsx("sup",{children:"BETA"})]}),Ye.jsx("div",{onClick:()=>window.open("https://wa.me/917324000014","_blank"),style:{cursor:"pointer",display:"flex",alignItems:"center",gap:"0.5rem"},children:Ye.jsx(Um,{style:{fontSize:"20px"}})}),D?Ye.jsxs(F,{color:"#fff",overlayInnerStyle:{backgroundColor:"#fff"},trigger:"click",placement:"bottom",title:Ye.jsx("div",{className:"nav-user-fullview",children:Ye.jsxs("div",{className:"user-nav-opt-fullview",style:{backgroundColor:"#fff"},children:[D&&Ye.jsxs("li",{className:"usr-acc",style:{cursor:"pointer",color:"black"},onMouseLeave:e=>{e.target.style.color="black",e.target.style.fontWeight="400"},onClick:()=>(async()=>{w(`${$Ae}landing-page/user-account`)})(),children:[" ","My Account"," "]}),Ye.jsxs("li",{className:"usr-acc",style:{cursor:"pointer",color:"black"},onMouseLeave:e=>{e.target.style.color="black",e.target.style.fontWeight="400"},onClick:()=>(rA(),void w(`${$Ae}`)),children:[" ","Sign Out"," "]})]})}),children:[Ye.jsx(HO,{style:{cursor:"pointer",fontSize:"19px"}})," "]}):Ye.jsxs("button",{onClick:O,children:["Sign in",Ye.jsxs("div",{className:"icon-container",children:[Ye.jsx(IO,{className:"icon-main"}),Ye.jsx(IO,{className:"icon-hover"})]})]})]}),Ye.jsxs("div",{className:"responsiveMenuNavbar",children:[Ye.jsx("div",{style:{color:e?"black":"#fff"},className:"ResNavHeaderClose",onClick:z,children:P?Ye.jsxs("div",{style:{color:P?"#fff":""},children:["Close ",Ye.jsx(ey,{style:{marginBottom:"-4px"}})]}):Ye.jsxs("div",{style:{color:P?"#fff":""},children:["Menu ",Ye.jsx(OD,{})]})}),P&&Ye.jsxs("div",{className:"NavbarMenuResponsive "+(T?"closing":""),children:[Ye.jsxs("div",{className:"ResnavbarOption",children:[Ye.jsx("span",{onClick:W,className:"indusOpen",children:"Home"}),Ye.jsx("span",{onClick:()=>{G(),z()},className:"indusOpen",children:"Offerings"}),Ye.jsxs("span",{onClick:()=>{H(!Q)},className:"indusOpen",children:["Solutions"," ",Q?Ye.jsx(bE,{size:10}):Ye.jsx(Jm,{size:10})]}),Q&&Ye.jsxs("div",{className:"solutions-dropdown-mobile",children:[Ye.jsx("div",{className:"solution-item-mobile",onClick:()=>w(`${$Ae}solutions/retail-billing`),children:"Retail Billing"}),Ye.jsx("div",{className:"solution-item-mobile",onClick:()=>w(`${$Ae}solutions/inventory-purchase`),children:"Inventory & Purchase"}),Ye.jsx("div",{className:"solution-item-mobile",onClick:()=>w(`${$Ae}solutions/weighing-scale-pos`),children:"Weighing Scale POS"}),Ye.jsx("div",{className:"solution-item-mobile",onClick:()=>w(`${$Ae}solutions/multi-store-erp`),children:"Multi-Store ERP"}),Ye.jsx("div",{className:"solution-item-mobile",onClick:()=>w(`${$Ae}solutions/gst-billing-e-invoice`),children:"GST Billing & E-Invoice"}),Ye.jsx("div",{className:"solution-item-mobile",onClick:()=>w(`${$Ae}solutions/offline-billing`),children:"Offline Billing"})]}),Ye.jsxs("span",{onClick:()=>{B(!I)},className:"indusOpen",children:["Industries"," ",I?Ye.jsx(bE,{size:10}):Ye.jsx(Jm,{size:10})]}),I&&Ye.jsx(Ye.Fragment,{children:Ye.jsx(KAe,{closingIndustry:r,AppCategory:n,redirectApp:(e,t)=>{nA("AppId",t),nA("AppName",e);const n=e.replace(/[,]/g,"").replace(/\s+/g,"-").replace(/&/g,"and").replace(/[^a-z0-9-]/gi,"").toLowerCase();w(`${$Ae}industries/${n}`),window.location.reload()}})}),Ye.jsxs("span",{className:"indusOpen",onClick:()=>{N(!S)},children:["Company ",Ye.jsx(Jm,{size:10})]}),S&&Ye.jsx("div",{className:"industryRes",children:Ye.jsxs("div",{className:"compnayListsRes",children:[Ye.jsx("p",{onClick:()=>{w(`${$Ae}about-us`)},children:"About Us"}),Ye.jsx("p",{onClick:()=>{w(`${$Ae}privacy-policy`)},children:"Privacy Policy "}),Ye.jsx("p",{onClick:()=>{w(`${$Ae}testimonials`)},children:"Testimonials "})]})}),Ye.jsx("span",{onClick:Y,className:"indusOpen",children:"Pricing"}),Ye.jsx("span",{onClick:K,className:"indusOpen",children:"Blog"}),Ye.jsx("span",{onClick:()=>w(`${$Ae}case-studies`),className:"indusOpen",children:"Case Studies"}),Ye.jsx("span",{onClick:q,className:"indusOpen",children:"Contact Us"})]}),Ye.jsxs("div",{className:"signinBtnNavbarRes",children:[Ye.jsx("div",{onClick:x,children:"Book Demo"}),Ye.jsxs("div",{onClick:$,children:[Ye.jsx("sub",{style:{fontSize:"14px"},children:"Store"}),Ye.jsx("sup",{children:"BETA"})]}),Ye.jsx("div",{onClick:()=>window.open("https://wa.me/917324000014","_blank"),style:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.5rem"},children:Ye.jsx(Um,{style:{fontSize:"20px"}})}),Ye.jsxs("button",{onClick:O,children:[Ye.jsx("div",{}),"Sign in",Ye.jsxs("div",{className:"icon-container",children:[Ye.jsx(IO,{className:"icon-main"}),Ye.jsx(IO,{className:"icon-hover"})]})]})]})]})]})]}),Ye.jsxs("div",{className:"mobile-sticky-footer",children:[Ye.jsx("div",{onClick:x,className:"mobile-sticky-btn",children:"Book Demo"}),Ye.jsx("div",{onClick:()=>window.open("https://wa.me/917324000014","_blank"),className:"mobile-sticky-btn whatsapp-btn",children:Ye.jsx(Um,{style:{fontSize:"20px"}})})]})]})};
|
||
/*!
|
||
* SplitText 3.13.0
|
||
* https://gsap.com
|
||
*
|
||
* @license Copyright 2025, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license.
|
||
* @author: Jack Doyle
|
||
*/
|
||
let JAe,ZAe,ehe,the="undefined"!=typeof Intl?new Intl.Segmenter:0,nhe=e=>"string"==typeof e?nhe(document.querySelectorAll(e)):"length"in e?Array.from(e):[e],ihe=e=>nhe(e).filter((e=>e instanceof HTMLElement)),ahe=[],rhe=function(){},she=/\s+/g,lhe=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),ohe={left:0,top:0,width:0,height:0},dhe=(e,t)=>{if(t){let n,i,a,r,s=new Set(e.join("").match(t)||ahe),l=e.length;if(s.size)for(;--l>-1;)for(a of(i=e[l],s))if(a.startsWith(i)&&a.length>i.length){for(n=0,r=i;a.startsWith(r+=e[l+ ++n])&&r.length<a.length;);if(n&&r.length===a.length){e[l]=a,e.splice(l+1,n);break}}}return e},che=e=>"inline"===window.getComputedStyle(e).display&&(e.style.display="inline-block"),uhe=(e,t,n)=>t.insertBefore("string"==typeof e?document.createTextNode(e):e,n),phe=(e,t,n)=>{let i=t[e+"sClass"]||"",{tag:a="div",aria:r="auto",propIndex:s=!1}=t,l="line"===e?"block":"inline-block",o=i.indexOf("++")>-1,d=t=>{let d=document.createElement(a),c=n.length+1;return i&&(d.className=i+(o?" "+i+c:"")),s&&d.style.setProperty("--"+e,c+""),"none"!==r&&d.setAttribute("aria-hidden","true"),"span"!==a&&(d.style.position="relative",d.style.display=l),d.textContent=t,n.push(d),d};return o&&(i=i.replace("++","")),d.collection=n,d},Ahe=(e,t,n,i,a,r,s,l,o,d)=>{var c;let u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B=Array.from(e.childNodes),P=0,{wordDelimiter:k,reduceWhiteSpace:T=!0,prepareText:E}=t,D=e.getBoundingClientRect(),L=D,U=!T&&"pre"===window.getComputedStyle(e).whiteSpace.substring(0,3),_=0,O=n.collection;for("object"==typeof k?(A=k.delimiter||k,p=k.replaceWith||""):p=""===k?"":k||" ",u=" "!==p;P<B.length;P++)if(h=B[P],3===h.nodeType){for(S=h.textContent||"",T?S=S.replace(she," "):U&&(S=S.replace(/\n/g,p+"\n")),E&&(S=E(S,e)),h.textContent=S,f=p||A?S.split(A||p):S.match(l)||ahe,I=f[f.length-1],g=u?" "===I.slice(-1):!I,I||f.pop(),L=D,v=u?" "===f[0].charAt(0):!f[0],v&&uhe(" ",e,h),f[0]||f.shift(),dhe(f,o),r&&d||(h.textContent=""),y=1;y<=f.length;y++)if(N=f[y-1],!T&&U&&"\n"===N.charAt(0)&&(null==(c=h.previousSibling)||c.remove(),uhe(document.createElement("br"),e,h),N=N.slice(1)),T||""!==N)if(" "===N)e.insertBefore(document.createTextNode(" "),h);else{if(u&&" "===N.charAt(0)&&uhe(" ",e,h),_&&1===y&&!v&&O.indexOf(_.parentNode)>-1?(m=O[O.length-1],m.appendChild(document.createTextNode(i?"":N))):(m=n(i?"":N),uhe(m,e,h),_&&1===y&&!v&&m.insertBefore(_,m.firstChild)),i)for(b=the?dhe([...the.segment(N)].map((e=>e.segment)),o):N.match(l)||ahe,F=0;F<b.length;F++)m.appendChild(" "===b[F]?document.createTextNode(" "):i(b[F]));if(r&&d){if(S=h.textContent=S.substring(N.length+1,S.length),x=m.getBoundingClientRect(),x.top>L.top&&x.left<=L.left){for(w=e.cloneNode(),j=e.childNodes[0];j&&j!==m;)C=j,j=j.nextSibling,w.appendChild(C);e.parentNode.insertBefore(w,e),a&&che(w)}L=x}(y<f.length||g)&&uhe(y>=f.length?" ":u&&" "===N.slice(-1)?" "+p:p,e,h)}else uhe(p,e,h);e.removeChild(h),_=0}else 1===h.nodeType&&(s&&s.indexOf(h)>-1?(O.indexOf(h.previousSibling)>-1&&O[O.length-1].appendChild(h),_=h):(Ahe(h,t,n,i,a,r,s,l,o,!0),_=0),a&&che(h))};const hhe=class e{constructor(e,t){this.isSplit=!1,ehe||fhe.register(window.gsap),this.elements=ihe(e),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=t,this._split=()=>this.isSplit&&this.split(this.vars);let n,i=[],a=()=>{let e,t=i.length;for(;t--;){e=i[t];let n=e.element.offsetWidth;if(n!==e.width)return e.width=n,void this._split()}};this._data={orig:i,obs:"undefined"!=typeof ResizeObserver&&new ResizeObserver((()=>{clearTimeout(n),n=setTimeout(a,200)}))},rhe(this),this.split(t)}split(e){this.isSplit&&this.revert(),this.vars=e=e||this.vars||{};let t,{type:n="chars,words,lines",aria:i="auto",deepSlice:a=!0,smartWrap:r,onSplit:s,autoSplit:l=!1,specialChars:o,mask:d}=this.vars,c=n.indexOf("lines")>-1,u=n.indexOf("chars")>-1,p=n.indexOf("words")>-1,A=u&&!p&&!c,h=o&&("push"in o?new RegExp("(?:"+o.join("|")+")","gu"):o),f=h?new RegExp(h.source+"|"+lhe.source,"gu"):lhe,m=!!e.ignore&&ihe(e.ignore),{orig:v,animTime:g,obs:y}=this._data;return(u||p||c)&&(this.elements.forEach(((t,n)=>{v[n]={element:t,html:t.innerHTML,ariaL:t.getAttribute("aria-label"),ariaH:t.getAttribute("aria-hidden")},"auto"===i?t.setAttribute("aria-label",(t.textContent||"").trim()):"hidden"===i&&t.setAttribute("aria-hidden","true");let s,l,o,d,g=[],y=[],x=[],b=u?phe("char",e,g):null,w=phe("word",e,y);if(Ahe(t,e,w,b,A,a&&(c||A),m,f,h,!1),c){let n,i=nhe(t.childNodes),a=((e,t,n,i)=>{let a=phe("line",n,i),r=window.getComputedStyle(e).textAlign||"left";return(n,i)=>{let s=a("");for(s.style.textAlign=r,e.insertBefore(s,t[n]);n<i;n++)s.appendChild(t[n]);s.normalize()}})(t,i,e,x),r=[],l=0,o=i.map((e=>1===e.nodeType?e.getBoundingClientRect():ohe)),d=ohe;for(s=0;s<i.length;s++)n=i[s],1===n.nodeType&&("BR"===n.nodeName?(r.push(n),a(l,s+1),l=s+1,d=o[l]):(s&&o[s].top>d.top&&o[s].left<=d.left&&(a(l,s),l=s),d=o[s]));l<s&&a(l,s),r.forEach((e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}))}if(!p){for(s=0;s<y.length;s++)if(l=y[s],u||!l.nextSibling||3!==l.nextSibling.nodeType)if(r&&!c){for(o=document.createElement("span"),o.style.whiteSpace="nowrap";l.firstChild;)o.appendChild(l.firstChild);l.replaceWith(o)}else l.replaceWith(...l.childNodes);else d=l.nextSibling,d&&3===d.nodeType&&(d.textContent=(l.textContent||"")+(d.textContent||""),l.remove());y.length=0,t.normalize()}this.lines.push(...x),this.words.push(...y),this.chars.push(...g)})),d&&this[d]&&this.masks.push(...this[d].map((e=>{let t=e.cloneNode();return e.replaceWith(t),t.appendChild(e),e.className&&(t.className=e.className.replace(/(\b\w+\b)/g,"$1-mask")),t.style.overflow="clip",t})))),this.isSplit=!0,ZAe&&(l?ZAe.addEventListener("loadingdone",this._split):ZAe.status),(t=s&&s(this))&&t.totalTime&&(this._data.anim=g?t.totalTime(g):t),c&&l&&this.elements.forEach(((e,t)=>{v[t].width=e.offsetWidth,y&&y.observe(e)})),this}revert(){var e,t;let{orig:n,anim:i,obs:a}=this._data;return a&&a.disconnect(),n.forEach((({element:e,html:t,ariaL:n,ariaH:i})=>{e.innerHTML=t,n?e.setAttribute("aria-label",n):e.removeAttribute("aria-label"),i?e.setAttribute("aria-hidden",i):e.removeAttribute("aria-hidden")})),this.chars.length=this.words.length=this.lines.length=n.length=this.masks.length=0,this.isSplit=!1,null==ZAe||ZAe.removeEventListener("loadingdone",this._split),i&&(this._data.animTime=i.totalTime(),i.revert()),null==(t=(e=this.vars).onRevert)||t.call(e,this),this}static create(t,n){return new e(t,n)}static register(e){JAe=JAe||e||window.gsap,JAe&&(nhe=JAe.utils.toArray,rhe=JAe.core.context||rhe),!ehe&&window.innerWidth>0&&(ZAe=document.fonts,ehe=!0)}};hhe.version="3.13.0";let fhe=hhe;kce.registerPlugin(_Ae,fhe);const mhe=({children:e,className:t="",animationType:n="fadeUp",delay:i=0,duration:r=.5,trigger:s=null,start:l="top 80%",end:o="top 20%",bidirectional:d=!0})=>{const c=a.useRef(null);return a.useEffect((()=>{const e=c.current;if(!e)return;(()=>{switch(n){case"fadeUp":kce.set(e,{opacity:0,y:50});break;case"fadeDown":kce.set(e,{opacity:0,y:-50});break;case"fadeLeft":kce.set(e,{opacity:0,x:50});break;case"fadeRight":kce.set(e,{opacity:0,x:-50});break;case"scaleUp":kce.set(e,{opacity:0,scale:.8});break;case"scaleDown":kce.set(e,{opacity:0,scale:1.2});break;case"rotateIn":kce.set(e,{opacity:0,rotation:-180});break;case"slideUp":kce.set(e,{y:100,opacity:0});break;case"slideDown":kce.set(e,{y:-100,opacity:0});break;case"typewriter":case"splitReveal":case"splitWords":case"splitChars":case"splitLines":case"letterWriting":case"wordByWord":case"drawing":case"typewriter":case"wave":case"bounce":case"elastic":case"magnetic":case"morphing":kce.set(e,{opacity:0});break;case"blurIn":kce.set(e,{opacity:0,filter:"blur(10px)"});break;case"glitch":kce.set(e,{opacity:0,skewX:20});break;default:kce.set(e,{opacity:0,y:30})}})();return(()=>{const t=kce.timeline({scrollTrigger:{trigger:s||e,start:l,end:o,toggleActions:d?"play none none reverse":"play none none none",scrub:!1,refreshPriority:-1,onEnter:()=>{kce.set(e,{visibility:"visible"})},onLeave:()=>{d||kce.set(e,{visibility:"hidden"})},onEnterBack:()=>{kce.set(e,{visibility:"visible"})},onLeaveBack:()=>{d||kce.set(e,{visibility:"hidden"})}}});switch(n){case"fadeUp":case"fadeDown":default:t.to(e,{opacity:1,y:0,duration:r,delay:i,ease:"power2.out"});break;case"fadeLeft":case"fadeRight":t.to(e,{opacity:1,x:0,duration:r,delay:i,ease:"power2.out"});break;case"scaleUp":case"scaleDown":t.to(e,{opacity:1,scale:1,duration:r,delay:i,ease:"back.out(1.7)"});break;case"rotateIn":t.to(e,{opacity:1,rotation:0,duration:r,delay:i,ease:"power2.out"});break;case"slideUp":case"slideDown":t.to(e,{y:0,opacity:1,duration:r,delay:i,ease:"power3.out"});break;case"typewriter":t.to(e,{opacity:1,duration:.1,delay:i}).to(e,{duration:r,ease:"none"});break;case"blurIn":t.to(e,{opacity:1,filter:"blur(0px)",duration:r,delay:i,ease:"power2.out"});break;case"glitch":t.to(e,{opacity:1,skewX:0,duration:r,delay:i,ease:"power2.out"});break;case"splitReveal":const n=fhe.create(e,{type:"words,lines",linesClass:"split-line",autoSplit:!0,mask:"lines"});t.set(e,{opacity:1}).from(n.lines,{duration:r,yPercent:100,opacity:0,stagger:.1,ease:"expo.out",delay:i});break;case"splitWords":const a=fhe.create(e,{type:"words",autoSplit:!0});t.set(e,{opacity:1}).from(a.words,{duration:r,y:50,opacity:0,stagger:.05,ease:"power2.out",delay:i});break;case"splitChars":const s=fhe.create(e,{type:"chars",autoSplit:!0});t.set(e,{opacity:1}).from(s.chars,{duration:r,y:30,opacity:0,stagger:.02,ease:"power2.out",delay:i});break;case"splitLines":const l=fhe.create(e,{type:"lines",autoSplit:!0});t.set(e,{opacity:1}).from(l.lines,{duration:r,y:50,opacity:0,stagger:.1,ease:"power2.out",delay:i});break;case"letterWriting":const o=fhe.create(e,{type:"chars",autoSplit:!0});t.set(e,{opacity:1}).from(o.chars,{duration:.1,opacity:0,scale:0,rotation:180,stagger:.05,ease:"back.out(1.7)",delay:i});break;case"wordByWord":const d=fhe.create(e,{type:"words",autoSplit:!0});t.set(e,{opacity:1}).from(d.words,{duration:.8*r,y:100,opacity:0,scale:.5,stagger:.15,ease:"elastic.out(1, 0.3)",delay:i});break;case"drawing":const c=fhe.create(e,{type:"chars",autoSplit:!0});t.set(e,{opacity:1}).from(c.chars,{duration:.3,opacity:0,scaleX:0,transformOrigin:"left center",stagger:.02,ease:"power2.out",delay:i});break;case"typewriter":const u=fhe.create(e,{type:"chars",autoSplit:!0});t.set(e,{opacity:1}).from(u.chars,{duration:.05,opacity:0,stagger:{amount:r,from:"start"},ease:"none",delay:i});break;case"wave":const p=fhe.create(e,{type:"chars",autoSplit:!0});t.set(e,{opacity:1}).from(p.chars,{duration:.5*r,y:50,opacity:0,stagger:{amount:.3*r,from:"start"},ease:"power2.out",delay:i});break;case"bounce":const A=fhe.create(e,{type:"words",autoSplit:!0});t.set(e,{opacity:1}).from(A.words,{duration:r,y:-100,opacity:0,stagger:.1,ease:"bounce.out",delay:i});break;case"elastic":const h=fhe.create(e,{type:"chars",autoSplit:!0});t.set(e,{opacity:1}).from(h.chars,{duration:r,scale:0,opacity:0,stagger:.02,ease:"elastic.out(1, 0.3)",delay:i});break;case"magnetic":const f=fhe.create(e,{type:"chars",autoSplit:!0});t.set(e,{opacity:1}).from(f.chars,{duration:.8*r,x:e=>e%2==0?-100:100,y:e=>e%3==0?-50:50,opacity:0,stagger:.03,ease:"power3.out",delay:i});break;case"morphing":const m=fhe.create(e,{type:"chars",autoSplit:!0});t.set(e,{opacity:1}).from(m.chars,{duration:r,scale:0,rotation:360,opacity:0,stagger:.05,ease:"power2.out",delay:i})}})(),()=>{_Ae.getAll().forEach((t=>{t.trigger!==e&&t.trigger!==t||t.kill()})),kce.set(e,{clearProps:"all"})}}),[n,i,r,s,l,o,d]),Ye.jsx("div",{ref:c,className:t,children:e})},vhe="data:image/webp;base64,UklGRjwGAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSCEDAAABoHbb2iFJntB5nueNtnts27Zt27Zt45Nt27Zt23a7O2uiM+4ocr0ZETEB5F5oPA3fSNawLRo3xbt03+oMcLNODMsy1XkY4Azc6/We+Xji1wdWwA1IditZV9JNmNkU70kfX5ts8ft/kS4mKKjaeXxDneXcrD/XAgyg/5nSakZZUWQhVp6GUdoGJ1GkcMx5RJexQxRkDtrqHwCfStoScLbQrWQ3fhHJpiZRXrjQ6CtJ/YhYUwd4rjhbw8MO08fQcyAjzrSppf7JTtfwyON9dVj4YTpJ7z+v42jpeL3xnQYEf35LXrtP0E93MK1GbE9Mcom+BP1IzKMZLAs6zLBztTMJBwuDrzW1w4hHybqEBoJxlmYi9Tnq6jUoeFpTB9gJZZ5LxpIoeLhFLKzqV/1GzK85U3Jm0fAsb78Nn0o6zdCrMLmegZakLeijZQ2wOtvo9DPW4dv7oLxouXWwDYUR28liqtUWGX0ZaQY485Rzh9fx0YTWB/x0G/y1EwR7loAtpSIBf15Ewoe2x5fb1iX+++mzoKqtlWxKbeTOR3/C69XE6gqYMEUCvO7/7/iNmGm/zUa+j92tW3b6XnNG0sW77YdPq5nIaJsqAb6GpnUOHtv+bvrEYyIwdhZZ+2sNI6bUl2AGBMyoL3H46L08fPE9oPfg/QPxxJBXdmIqPU8M10p5fB7NH/yivl9KWos3NV5bH6L9jFcmkvujkl6MkKajfTCjbuNi6WhLq2gly+Sh9+nFw1MH5Q78folx5E6WBukJsqfZ9BIFBqra1dUAMVx/4LkSLKQRfQLSTHvtvDeGs4V+wbE8ifJ6G1xq2eB/DXhYt4NuxLJEVYUFT2mg/Q/4kVrVLNbT9WTdviSB07qJel0WgG8gy2IU/Pe+7+uGahYDCIos9Xf8UDeJpqeJdzXNrv2h/6T/P72GpO7ZBuq0klnXGP3olNPVT6VDaMD5dNo+vHt2lSb0dKjprGt8/fVeh9fvo63o/qjT6bR1aAO+Hvfk8/XPaeXuOS99/HY55r0P36p+/ODTo2mgA99fDVQbAdaA//72wSbbb6btaazNXkn6jLwAVlA4IPQCAADwDgCdASowADAAPlEijUWjoaETnAW0OAUEtIAKkA8Z/550RqRt8GVZcY/k/EB3h/5b+mXIDTEv6X/ufUAzQPlv+L/4f9m+AL+Ifzb/cf3Xsx+gd+mK9gYKa4+Nj7AQGVPYXjlLxVJb+iigMj/6HBA06nNR7fG+asOZHxOaqvN1AAD+/xyv6wrsf2w2RenVLDdu34MT1APIoJ6D/8qnQu7i9+tZ2nqXnT/dGuSGxFhPQUUtXW9izlfYcby2LcTG9G9sYgGdvqUr8f/iHYntLbxRkCdf79SYUqKGOXr4xOvjDXsUS8/LaBhNx4U07H39TZz0qkWP1AOhGBfJfuoyelSbzxHUB/0tdcOXEAiV88LNNUlGUG/U1430nBDgFESdKeWERKbm3+ns//itaBYjV/XCqbLVxSIm2khUz3FQIckNfGxXIJT+VJnJTMtvUKm/hIVSfpuJtomeZHIGrmjWvT1fHdesyD8Us4xfo2n0+mYKF03cK6TBcQe+1L156yWPXoHhzKKvj//sSRzFAPcK6/eCibekRg4cARmeSyzDnS3B9als+lBCWehbqLC55TLB5T72ndi1EjjplsU6eBLsIKYcit6Bf9pWBSgc+ldgx/n+Hd0CyXv6m/HfgA62BEyQsDD38ScdTOOTy35k4Ev/u2CO4HilXskVkHBKGtoIFNB/QzraTIny3SZZNsK5NW/r+1/+aUZTNSN4zRqiNt8Rok0+Dk7YfsQQyzD7HbAJdARiN4mtsCnaLNrol/BYjNC2dWDL8xlQce7Hv4Pz49rQLzvZWzH//DFbO8mLnH+24Jr1jAAnoT4HfvCG2WsF/n6f/+7w//3YD//93UFIujif1DlLPC+4oc/jYu/t4RMYU3Jh9ELYSWSiLP++mg7mbCivDtnYMzhZDw+lFLwnsNLqIr1BXajXeepAbx83fwBVsHm8vpw83bExPqvF7VcTOe89YA6pQ/UkDp/ZvWRoiJHJDsnvK/2EecozC5xrWskbRpb94guAAAA=",ghe="data:image/webp;base64,UklGRnQGAABXRUJQVlA4WAoAAAAQAAAAMwAAIwAAQUxQSOICAAABoHbb2iFJFn+e941s27Zt27Y9tm3btm3btm3bnkndD/lGRE5ExARQ3YhRN7778ZPb4siuty9VeuOZH6VpZlnxFLUHQM9/NdtlhSc0zgxw/KmalpFmuolw1FLnktEd1MZC8PWvWblARvzthaycqSjBA1Vz4JOtVncX99OXKQwX4ow7sEQ19QYW8OO1myXyY96t4SpsoLQomZ2hg3Bg1kAiGSo/DdB81rf//Pb3/O5YnONtPdkWau0gtXbERzWn3qbPtO1Qmqus41aqrHmEzYDLpeJf0o8NwCwGlfV1TtLDzfQvGN9rWMizx7/qT709H3r2rIG4J3UCPuZPdaQmZ+lsRukXeE3rLeAb/6UflrUzI1h/8ftSf7OKKPpP9dlSDwO/3TNl44l5Ar6bNBsz4o3h0oIAdl6h1vUd1ctRR/9K/6gDgDWU6ngjued3DXYVfPuPpOJhwO/aYqZKYAa7qqkndUTxSyAHN+r2Ll9qDOQwcxBh22kcaxxV9FN78fOHmKcWETUdCQ3pP7BqAKdKuxppjdZTntBWumxiCxcycKEcw5fqsXeKcweTS8YWkl7kJ0kjQxz3VuQD/FWWeo2T9BUpd9arjtq4HzQ+YOOl9wjn1auGt9w0/ZLCuEqPAh9pL8Jf/H2wWlpFVEfqDiOU91EyHN9/RX3yT2MYMFgH1dUzBH0vTXGsVauI1Lrtbp310u8QscOl7xaE3apPHjiku4MDNL+QX6mlpK4v6XGVBfxc0m9vbWVW99WvJHWHWwr6+kflT0rH3rfUo92jCx0U/gMwDLhA47FaT62GbR91lsqAUwGDwfqPCMA4V/cDBouGg6OaTfTCkvXr189irP72FZyux2iw/fr167bQZVT7QgVPYr42Vni9R1sF/3JWJUfTli1atGjex61WOzMcX39D5+YtW7Zo0ZqI//1C5Tj6/eY8mCfDH3w6Mi/phjVqkqHPCvp1pHtIUrPsWM1Dl2COtgcvoLpWUDggbAMAAJAQAJ0BKjQAJAA+USKNRSOiIRQFVDgFBLOAQdT0gfhz5k+BD0DuXlBHF/57/qOMDSBYuP9z6R3+j9s3sa+eP+T7gf8f/m/+Y/Of/L/LN6zf2S9hX9Xy3NZ76/6YLQArzZ0gOsFO9SUHIwrQn5lFQ9nfaTjJNylP+a4acfdyo8rHUBrPwWlJGYQ/dXThAAD+/7ls3/vKj+Jfara/mfVeBXR/V008pa32jw0W/kyo+T+9HHGOslgJAe14pWbUt+H4mP7+qf+R5J3veq/PXQbQge/76TI+jcYgqb0aGEnlCMB5f/obt+/sdh1ard7KWX6swrVXvCzlwnZl5YYdowdDxr4/UPxWLJDLZWfW9X6byNHzfOhK4VAJZ0ukksjRydcxDmjGuvYlc9mwEm4lXcwh1AOdDZLARFOhVbD5/nB9h+YmThKj8BkwQBuMqGgcSjMyiW8qOjP/oRpj+8zNBXknV7VvwxWkv0AxE4RbT8LZr4PxFuKb672D20UrfjZ2MBW1RIlqXFYgoll1+w/PXyL/2sQ4l565oLt47DiKTGMSqDpwS1OPtfX2TXCGpiHoLsrBjkhX8626cMlrWuh/qeGvLVb9fJewqpFXSYAF4ksoTcmcr6iQt7HHMldlIok5g2CECrfT4M4tBKHdjwrHO77Zf1xp4AkURoKUw//E+f/iY+TttyXf/iZR5Vbm7LTVJ189OKkT8k7dW6bTn7hk5fmI1FdUzXIf6xv4RgwM174JQJTs+fJ3j1rgdsfnU8JEdpExhLV54OYkgnKCFlC9gLE7/BpV06YIioGh0v7H2g3ejzeKAMv7oapZg6phR02FgDIg7TqjicBK23f/6iVTTNUTLhvPrVhX2q+tldNsU+16HyylFprMCL1d2qLGrWy1jeuE+vxMwHz5r9Olz45Ku30C/gplvk81ZWfoIzHkkQrhbOjW41Ft04r8QMYuRdYGMhQ98x6NAfPyVSlDqRnoTuDT1p7LYxng/eHvIXAEsh3yukCOu7bVnLuOvzOylqVMm81ZUFuhb6HUegI/YzbziO5uKySx/6xc///7HYtt6Mr/bn6eDY3F/EwH2DAaxy/+/wpUx7Pp0i/xCHMrP/+p5aeKe15xdf58pn/wQT+VFJyFuqcekhad5DTtcRrhhkgLHC5nPK+hv/9PSEHoAAAAAA==",yhe="data:image/webp;base64,UklGRhoGAABXRUJQVlA4WAoAAAAQAAAAMwAANAAAQUxQSDcDAAABoEVr2xnJer7//9M8tm3btm3btm3btm2MbdszmR62OdWV9yA9XamruYyICWAJpqW5orIthnXp0qX3rRSt4aCLmlqalAMDKwK/3i94qiYDN2ipwPVXYZn5NaVkq8v1GbCrfltxnHQNlpFfU9oxLzVuCtgYSWcN07VYJmFNadnAl7uDKw+wys9rOibpKrKVKgMONpmZk+Y+F+GJmKYNMrHbdLER4MZFPz71/jTpNLxbSePJ1DFaK7KGtiV1/bm6F2arwmcC72otSvovB9awI45R2omFNWTplzvjA/ViRYczNtWTK7lAWx1Ha8B1W2GFQlL9xugPsOMlKWBnayfGtkvbUGjL/WbYpjoDmNW27j47Glap54CjtEMG3wBHaRPgKuk+IqDlL2AfbZ/R4doMHNsN0wyA1v/tnUmPcthAZ4NtdMOuA1SOLasnoOws7VgwclL7DrROwJipRB+Du1pbUSNps4IFv8cdGsSz2sMFNtdNhIDmcIa+PmZFK9j/n9O6tGptczZ5U3PM1ubUzyVbzwwt7ZeVruX/OzfrHJisFUMmvKgjHaF0mjTkm671yu+J+cpkPtku0toeD3v1rs+1jL/KcARibZBJqJQ2dKV9TwAM2HDI9lCt48jWV0onSdJOANWS7p6sE7Bs8BVS3cqH6Wtgd70VdZdOwMg6LPMsgbkxgXtVGXH0ERjF6OAPJUleOTAwitTW+v7dd9/99HQy92lRipFa8j/fgSvEurVxHFcNJvXw6jiO531F6oPz4ziuuYFCnqmZUyfXqTTlXU2eOmFRTdrY/ISpE5KBBTlBK8ATilJeFjBoQdqw+UBj9wJtAG8sRimM6qgaaCpAhDsoDWcl8ETKXPABBqT8BaETDFZem8HXyusEapNE5TBV7VqrLMknTUB7kldJZ86VHgVbb4C0DO8qdxHYTnEyH4YldYcZHNmQ9KKTjvM0jMhtmFOF97yvryjhGNUQIkboBkp4UH0IncBxnqrYTKrw4HlfXThV1QSIGKH7eUl9CHTacZ4mSBUewPO++quaABAxQj3Vl0ABHedIFZ5UzztaQCA1Yph6Eyio48BlPB16ziPQYcRlBIrRWGzDWOIIAFZQOCC8AgAAEA8AnQEqNAA1AD5RJo5Fo6IhEgwFtDgFBLSACvAP47+EHe93u1YXfKIEdJLRPm/ERxef4fwBosfQwzhvPnsAfyL+l/8bsEehR+py3EAq40OfyXgdB0Ka2k3VzI1XdnX36HzXFHA8EhVp81EnBO0KlkJ5vN+z79kpt6FB/fMfV6gAAP7oB5/o4eDMGUvbszl0a/m5GF5D+6/fEwdf2zSKZxpxOTIPhouUf47DImA/68rkWAeideJLYE6nZo454SQsEe21Xtw1jnygbwQ3KS8o0VBh0wp1lq2FfqViSBfdd13XRNj4OQBt9kfRNxC3chKbb/rfgDHWtm0XP9JbZl8J/fsUDvevzE000dKrGPYj+XuifUV30DOi0cNL+glehan8Hq7X5UpDiOoIUfuL7alR3b6NPbAbXn8u+Zy/ULMyX6TOblH8Rf+EJIwSOF4NbUhqlGmQMs3SQsQ4Qu5Cb8YSUQ/N7jxyr6YjeYG7yT1EoSq9zow7fzEkLxtY0FH/WQQ/t65sDRay/uihuNUD052s2DwsCQZiSK6u2qM73b3Pd957VUmcOxL+erh7eSjE9n2btLz4cDLlXYXQQPSLfahW6TWpJQAOq3PuNf8GSOKUaR6T16C/dQLFB2+kFP9OE96swsMMURQEHZQh5TwuEmD2BysEXU607ZX/8mfu5Y/lQ5pPS9X8eaxveBCtfC8vmvJhZbZcsma8bWJOwmUvcVdeH67RkWz/dKw2aihq7Way2OuM7zTM32FVLlwDGdqbvo1sMLr05IkZ7e8yWcwyHLXPgv2QITdds1VbXTjUZevIvMWeh3mO/EyThdWUSG7qv6fqdTltdZGqy/5XiIq6VCo8ikJeif8fukzEkaC6yz4BawWmgM6TWquUMEY3MnG+oerGys4CybetrvwB+egqW9m3DzatjkGACI/52EgAAA==";!function(){function e(){for(var e=arguments.length,t=0;t<e;t++){var n=t<0||arguments.length<=t?void 0:arguments[t];1===n.nodeType||11===n.nodeType?this.appendChild(n):this.appendChild(document.createTextNode(String(n)))}}function t(){for(;this.lastChild;)this.removeChild(this.lastChild);arguments.length&&this.append.apply(this,arguments)}function n(){for(var e=this.parentNode,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var a=n.length;if(e)for(a||e.removeChild(this);a--;){var r=n[a];"object"!=typeof r?r=this.ownerDocument.createTextNode(r):r.parentNode&&r.parentNode.removeChild(r),a?e.insertBefore(this.previousSibling,r):e.replaceChild(r,this)}}"undefined"!=typeof Element&&(Element.prototype.append||(Element.prototype.append=e,DocumentFragment.prototype.append=e),Element.prototype.replaceChildren||(Element.prototype.replaceChildren=t,DocumentFragment.prototype.replaceChildren=t),Element.prototype.replaceWith||(Element.prototype.replaceWith=n,DocumentFragment.prototype.replaceWith=n))}();var xhe,bhe;xhe={splitClass:"",lineClass:"line",wordClass:"word",charClass:"char",types:["lines","words","chars"],absolute:!1,tagName:"div"},bhe={},Object.getOwnPropertyNames(Object(xhe)).reduce((function(e,t){var n=Object.getOwnPropertyDescriptor(Object(xhe),t),i=Object.getOwnPropertyDescriptor(Object(bhe),t);return Object.defineProperty(e,t,i||n)}),{}),Ja("adminPanel/postAdminPanel",(async e=>await fA.post("/HomePage",e))),Ja("adminPanel/putAdminPanel",(async e=>await fA.put("/HomePage",e)));const whe=Ja("adminPanel/getAdminPanel",(async({sectionName:e})=>{if(null!=e)return await fA.get(`/HomePage?SectionName=${e}`)}));kce.registerPlugin(_Ae,fhe);const jhe=({modalSignIn:e,handleModalSignIn:t,handleModalSignInClose:n})=>{const i=Qt(),r=um(),s=a.useRef(null),o=a.useRef([]),d=a.useRef(null),[c,u]=a.useState({mainHeadline:"Retail ERP & POS built for Indian MSMEs — fast billing, smart inventory, GST-ready.",description:"A SaaS platform that empowers Small and Medium Businesses by digitizing operations and reducing Total Cost of Ownership with minimal investment.",ctaButtonText:"Experience Now",ctaButtonLink:"/signin"}),[p,A]=a.useState([{id:1,icon:ghe,title:"Experience",desc:"Proven expertise delivering real value"},{id:2,icon:yhe,title:"Innovation",desc:"Smarter intelligence for better outcomes"},{id:3,icon:vhe,title:"Cost Efficiency",desc:"Maximum value with minimal cost"}]);a.useEffect((()=>{h(),f()}),[]);const h=async()=>{var e,t,n;try{const i=await r(whe({sectionName:"HeroSection"})).unwrap();if(1===(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&(null==(n=null==(t=null==i?void 0:i.data)?void 0:t.data)?void 0:n.length)>0){const e=i.data.data[0];if(e.Content){const t=JSON.parse(e.Content);u({mainHeadline:t.mainHeadline||c.mainHeadline,description:t.description||c.description,ctaButtonText:t.ctaButtonText||c.ctaButtonText,ctaButtonLink:t.ctaButtonLink||c.ctaButtonLink})}}}catch(i){}},f=async()=>{var e,t,n;try{const i=await r(whe({sectionName:"Offerings"})).unwrap();if(1===(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&(null==(n=null==(t=null==i?void 0:i.data)?void 0:t.data)?void 0:n.length)>0){const e=i.data.data[0];if(e.Content){const t=JSON.parse(e.Content);if(t.offerings&&t.offerings.length>0){const e=t.offerings.map((e=>({...e,icon:"experience"===e.icon?ghe:"innovation"===e.icon?yhe:"cost"===e.icon?vhe:ghe})));A(e)}}}}catch(i){}},m=p;return a.useEffect((()=>{const e=new fhe(s.current,{type:"lines"});return kce.fromTo(e.lines,{yPercent:100,opacity:0},{yPercent:0,opacity:1,duration:1,stagger:.1,ease:"expo.out",delay:.2,scrollTrigger:{trigger:s.current,start:"top 85%",toggleActions:"play none none reverse"}}),o.current.forEach(((e,t)=>{e&&kce.fromTo(e,{opacity:0,x:100,scale:.8},{opacity:1,x:0,scale:1,duration:.8,delay:.15*t,ease:"back.out(1.7)",scrollTrigger:{trigger:e,start:"top 85%",toggleActions:"play none none reverse"}})})),kce.fromTo(d.current,{opacity:0,scale:.5,rotation:10},{opacity:1,scale:1,rotation:0,duration:1,delay:.6,ease:"elastic.out(1, 0.3)",scrollTrigger:{trigger:d.current,start:"top 80%",toggleActions:"play none none reverse"}}),()=>{_Ae.getAll().forEach((e=>e.kill()))}}),[]),Ye.jsxs("div",{className:"OverView-Master",children:[Ye.jsx("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"bg-video",preload:"none",loading:"lazy",children:Ye.jsx("source",{src:"/assets/OverView-3b51b525.webm",type:"video/webm"})}),Ye.jsx("div",{className:"overviewSlogan",ref:s,children:c.mainHeadline.split("\n").map(((e,t)=>Ye.jsxs(l.Fragment,{children:[e,t<c.mainHeadline.split("\n").length-1&&Ye.jsx("br",{})]},t)))}),Ye.jsxs("div",{className:"hero-left",children:[Ye.jsx("div",{className:"feature-list",children:m.map(((e,t)=>Ye.jsxs("div",{className:"feature-item",ref:e=>o.current[t]=e,children:[Ye.jsx("img",{src:e.icon,alt:e.title,width:40,loading:"lazy"}),Ye.jsxs("div",{className:"feature-text",children:[Ye.jsx("h3",{children:e.title}),Ye.jsx("p",{children:e.desc})]})]},t)))}),Ye.jsx("div",{className:"hero-right",children:Ye.jsxs("div",{className:"ai-card",children:[Ye.jsx("p",{children:c.description}),Ye.jsxs("button",{className:"experience-btn",onClick:()=>i(`/${c.ctaButtonLink.replace(/^\//,"")}`),children:[c.ctaButtonText,Ye.jsxs("div",{className:"icon-container",children:[Ye.jsx(IO,{className:"icon-main"}),Ye.jsx(IO,{className:"icon-hover"})]})]})]})})]})]})},Che=()=>Ye.jsx("div",{className:"loader-wrapper",children:Ye.jsxs("div",{className:"spinner",children:[Ye.jsx("div",{className:"wheel"}),Ye.jsx("div",{className:"wheel"})]})}),She=a.lazy((()=>pr((()=>import("./Offering-b01c7232.js")),["assets/Offering-b01c7232.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js","assets/Offering-c48c83ab.css"]))),Nhe=a.lazy((()=>pr((()=>import("./DigitalSection-16171116.js")),["assets/DigitalSection-16171116.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js","assets/DigitalSection-fc334ca1.css"]))),Ihe=a.lazy((()=>pr((()=>import("./PozoVideo-675603f4.js")),["assets/PozoVideo-675603f4.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js","assets/PozoVideo-39e183a2.css"]))),Fhe=a.lazy((()=>pr((()=>import("./TrendingApp-733f86b5.js")),["assets/TrendingApp-733f86b5.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js","assets/TrendingApp-81303a40.css"]))),Bhe=a.lazy((()=>pr((()=>import("./FaqSection-5850d5cb.js")),["assets/FaqSection-5850d5cb.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js","assets/FaqSection-a9193505.css"]))),Phe=a.lazy((()=>pr((()=>import("./Insiders-ee0bed6b.js")),["assets/Insiders-ee0bed6b.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js","assets/Insiders-93e1fcb1.css"]))),khe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>Yhe))),void 0))),The=a.lazy((()=>pr((()=>Promise.resolve().then((()=>GAe))),void 0))),Ehe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>Mhe))),void 0))),Dhe=a.lazy((()=>pr((()=>import("./SolutionsList-e4ceaac8.js")),["assets/SolutionsList-e4ceaac8.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js"]))),Lhe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>Qhe))),void 0))),Uhe=a.lazy((()=>pr((()=>import("./ModalSignIn-d6326004.js")),["assets/ModalSignIn-d6326004.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js","assets/ModalSignIn-7f007a95.css"])));kce.registerPlugin(_Ae);const _he="/home/",Ohe=({companyRef:e,closingCompany:t})=>{const n=Qt();return Ye.jsxs("div",{ref:e,className:"compnayLists "+(t?"closing":""),children:[Ye.jsx("p",{onClick:()=>{n(`${_he}about-us`)},children:"About Us"}),Ye.jsx("p",{onClick:()=>{n(`${_he}privacy-policy`)},children:"Privacy Policy"}),Ye.jsx("p",{onClick:()=>{n(`${_he}testimonials`)},children:"Testimonials"})]})},Mhe=Object.freeze(Object.defineProperty({__proto__:null,default:Ohe},Symbol.toStringTag,{value:"Module"})),Rhe=({onClose:e})=>{const[t,n]=a.useState(!1),i=()=>{n(!0),setTimeout((()=>{e()}),300)};return a.useEffect((()=>{const e=e=>{"Escape"===e.key&&i()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[e]),Ye.jsx("div",{className:"BookDemo-Master "+(t?"closing":""),onClick:i,children:Ye.jsxs("div",{className:"BookDemoMain",onClick:e=>e.stopPropagation(),children:[Ye.jsxs("div",{className:"BookDemoHeader",children:[Ye.jsxs("div",{className:"BookDemoHeaderLeft",children:[Ye.jsx("div",{children:"Book a Free Demo "}),Ye.jsx("p",{children:"Experience a smarter way to manage your business. No forms, no hassle."})]}),Ye.jsx("div",{className:"BookDemoHeaderRight",onClick:i,children:Ye.jsxs("div",{className:"icon-container",children:[Ye.jsx(mE,{className:"icon-main"}),Ye.jsx(mE,{className:"icon-hover"})]})})]}),Ye.jsxs("div",{className:"DemoTypesMain",children:[Ye.jsxs("div",{className:"DemoType",onClick:()=>window.open("https://wa.me/917324000014","_blank"),style:{cursor:"pointer"},children:[Ye.jsx("img",{src:"data:image/webp;base64,UklGRjgCAABXRUJQVlA4WAoAAAAQAAAAGQAAGQAAQUxQSEcAAAABP0AQABnlwAEJDoiIwGOuApvYtuJ8FgsMChhaJGBhTSRQZ/dfcNu0Ef2fACnvtwySPmpO5B+0f3iyf/iyB+0HihlZqavpBABWUDggygEAANAJAJ0BKhoAGgA+USKNRSOiIRQFVDgFBLYATplCPM/M3HGuwDyAOs2/a4pW/nlfzvlo+TvYH/S//dcDH+wAdnHVqqlslPgUNdwFemgSZSA64bY8zxR/gAD+FBuIaN7Gt9gykq3BVPs+C3XIhqYT6n73IPgbuECPwk+x50j+p/j/3Jn3+/X/xcTv5qHcP1FjJ7aOD4RlLwz3Ii7Rw8150kt9PMv2+G3xmXy/94kD97GpfDCmZjstf/7exE2Vub/M24f5Ob/Rv+qWaz1+id+Wn9fxKPn+c1NwjA/KEQ/tu/XYie8XfBkCGeRhlij6h9BrOLW2r9P2Efe3BSKHjGEnpfu/MFwcrvfRN2yqdb0QuYhTqmhRzjOgmrF3nwegNg0ptMj33geqjZcVX3+Kc27mXg7aLO042f+//w1b57dzi4f78bLrYiPEZVMaPxpgwkgxaoJxCU0+Tq+A/+qI+IVC3/te5hfY/P11FnzlbLtw1eh7tZiQt39L1fX44GvFqRGO3+lP9so+6JFwH7l66/5SJdbU7o44B+sC1/M67Iyv8SI1rrJ/clUEKOPd3LGdT/PLkagVGSDGapSDfKAAikofFzacXg8cT2ZoAAAA",alt:""}),"Whatsapp"]}),Ye.jsxs("div",{className:"DemoType",onClick:()=>window.open("mailto:support@pozoapp.com","_blank"),style:{cursor:"pointer"},children:[Ye.jsx("img",{src:"data:image/webp;base64,UklGRsQBAABXRUJQVlA4WAoAAAAQAAAAGQAAGgAAQUxQSE8AAAABT0AgQBnkQQ94QkSE4PGgYBvbVpTPTgMuISWYGlqGJVACmYbEO/3KS00j+j8BdNXxHQS5PuaRPwPdE3Q3yI9/W6FQoPOFrOtA5HS0iV8IAFZQOCBOAQAAcAgAnQEqGgAbAD5RIo5FI6IhFAVUOAUEtgBWGXs7RH87ueDuGA/VXdQOsA3hd8AZ3nmAB3X3JqBVLBvPbj1aeXULNSopNY5BmuX4AAD+/tjBXpH1o2IAfr6Gh7KizkfXwFtKRwUdgC3tKZ5qc9VGarYx49gklLQkSCoxL7frtQfeLbdoyMbK9V+bdJzkjunXcIOduAf0PzTZ274gHRbJF+kc0KQ2PCb/73cO4DnRAsLG1RmREpqsNdgQspMJlAG9hivLXrLLM7EFc2hSpxRoXamPNSI5Hxpx/QEr0lfkpKdMT4Wn1cm8HTP/FIqwpf+fGFs9oeKCD4xYidMSVCL/grRsNUmsSFAn8CstfRbwmvDiBLkdt56T/pRX9dLvx/z/z+xtj6bvXraK/8zOMys542ZY3GGIF25C+aoodERzfmza/1GV9VLl9qRo5MQAAA==",alt:""}),"Email"]}),Ye.jsxs("div",{className:"DemoType",children:[Ye.jsx("img",{src:"data:image/webp;base64,UklGRhwCAABXRUJQVlA4WAoAAAAQAAAAIAAAIAAAQUxQSCAAAAABHyAQIDjxP2kjIoITRNo2yz3ev5Sj8cOI/k9ANbeYAlZQOCDWAQAAMAgAnQEqIQAhAD5RJI1EI6IhFV1WADgFBKANGdgEyAbxmntuYE6wcABwCf9TzZ/0QTSjYu5YVB0o7FJX+lktkD+5bI01nDoi1yAA/vcuf996H0MtCf8HmAPx9onw+Gf2/44Lgh8Js47IA0GuvgtP+cxHHU+tnKHo/qYybgHQhBbblKXVDdHWnsHLCgdvGD4+4T+RguPVWsRSGG8Lf/3w1zo4n70HFxNFESaE3//+op/5r/d2f9z/zG3//QIf7D/mza/3N/T0qF+a//vfTNMqBib8f1PpPISo67+ej3CTwECPPP55BJDm9xLYmLYF/7oukrERyGR5GsLQKTThX8GogLKbQCcl0AMoGRB3Bb/HBenC7e++f0v/7DRt/9+bw8K/2+2899CRNvL/x+cKgXpfsvOx1lLoFWZtiGupUf3uTqc75Qlc7C19xbS8jz01an/NxNbaH8zvTT+9ZuZdRRGoD0EO/dvvT789bVSM73kRItHtB2ieHGfaIjydf7eBkHy8l3pIc5f+IvCcLozxk4IPDOdUAcMnLuyrrOjoNrv/nWiVMA+cJnGpoUe4c3/vY7tZcxOFQS9C3YX9BF56PTYD7L8v+aARYK71bKfEL48hTkYf+qhwAAA=",alt:""}),"Schedule a Demo"]})]}),Ye.jsxs("div",{className:"demoChat",children:[Ye.jsx("div",{children:"Chat with Us for a Free Demo"}),Ye.jsx("img",{src:"data:image/webp;base64,UklGRswCAABXRUJQVlA4IMACAAAwEQCdASo6ADoAPkUci0QioaEc+7QAKAREtQBfuOBgRvYXeT8Rst85V8gH+A9gHiAf1zqX+YDzuekA/t3UAegB5Yv7FfCd+2/7Qez1QFbjATbPyJfSm/V9AAV7XshCcypSLVmuVAwlQwAkvAKGFnRnmRZsgYPwfEIwzyK+jZrfyOxYCFt2rlYDpQlymyM73NL6AAD+/zJbeDx2IZN3nScdJ7oKYiz3KN6T/8nAy3UI0qrWE83mJRS4XGHXaSfIBVfShz+/O+8xuJ2h5Y4jz9cZ2BHsMJqaz/m4Z6Lz+ER77R7CmzOEmG4ERUtq8QabdjDWt/FzGn+MqbPEoITdqrq2COqeyK3+o6uk4hg2CRsQf9GvHEPnW1WoT6glyQPtMy6AYoTrK26GgQNyRxNzVd9//Gmbq9ZpJ71sZlTE3sNcxy6llxzQ11N97UKd2ZTF/TvcWXMv1lWgI7vLsXw+uSdfBsdQMEguvH6MNxVcODaZi+c7xcfheI+TtcJZG0Dj/4yb0kGR7oq3O+ms31t7dMkmFJut6vV4XJBqYSP6bz84E2SK/6G/+VPPwV4+I+NVnJxUrs/rCTlYhgiqJYY3HbGE3DlUbJ+jWD2ENL/81iywNcORHpsqYsG/is/2HRRgIGzN41EqWY+O1K9nyZ8NIj/NtfudUk2o9Kq3owW7ZJx6//qhbRbvW4sLPPBxEpz2h50ne39/zOL8nB7RUJdka6UpQBCbtr3GMffQwPOCirNtwSWHDFblgEsTY2mQw18QUUZc4GTQMltKbPyPzPziD43aIcHd0lYnL8uhg6eZwYFBVfwR4bmNi5UvYFzgemU9/exQQlqTJbsBv/J0Ps39UvwSfumf20fEpC2mewyfHOuQkO2gJvP0eA/rzDNVbmNuvU1LUh+jxYTGLTc4vzFqUKIaZez9kovRebpa+MCu0EyoAA==",alt:""})]})]})})},Qhe=Object.freeze(Object.defineProperty({__proto__:null,default:Rhe},Symbol.toStringTag,{value:"Module"})),Hhe=a.lazy((()=>pr((()=>import("./SolutionsList-e4ceaac8.js")),["assets/SolutionsList-e4ceaac8.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js"]))),Vhe="/",zhe="/";kce.registerPlugin(_Ae);kce.registerPlugin(_Ae);const qhe="/home/",Whe=({AppCategory:e=[]})=>{const t=Qt(),n=a.useRef(null),i=a.useRef(null),r=a.useRef(null);a.useState(""),a.useState(!1);const[s,l]=a.useState(""),[o,d]=a.useState(""),[c,u]=a.useState(""),[p,A]=a.useState([]),[h,f]=a.useState(0);a.useEffect((()=>{n.current&&kce.fromTo(n.current,{opacity:0,scale:.8,rotation:-10},{opacity:1,scale:1,rotation:0,duration:1.2,ease:"back.out(1.7)",scrollTrigger:{trigger:n.current,start:"top 85%",toggleActions:"play none none reverse"}}),i.current&&kce.fromTo(i.current,{opacity:0,y:50},{opacity:1,y:0,duration:1,ease:"power2.out",scrollTrigger:{trigger:i.current,start:"top 85%",toggleActions:"play none none reverse"}})}),[]);const m=(e,n)=>{nA("AppId",n),nA("AppName",e);const i=e.replace(/[,]/g,"").replace(/\s+/g,"-").replace(/&/g,"and").replace(/[^a-z0-9-]/gi,"").toLowerCase();t(`${qhe}industries/${i}`),window.scrollTo(0,0)},v=a.useMemo((()=>(e=>{const t={foodBeverages:[],wellness:[],fashion:[],electronics:[],grocery:[],services:[],others:[],healthcare:[],manufacturing:[],transportation:[],hospitality:[]};return e.forEach((e=>{var n,i;const a=(null==(n=e.AppName)?void 0:n.toLowerCase())||"",r=(null==(i=e.CategoryName)?void 0:i.toLowerCase())||"";/(consumer)/i.test(r)?/(bakery|restaurant|dairy|food|cafe|coffee|ice|pickle|pozoresto|resto|eatery|diner|bistro|pizz|burger|juice|sweet|snack)/i.test(a)?t.foodBeverages.push(e):/(salon|spa|beauty|cosmetics|fitness|gym|yoga|wellness|massage|parlour|parlor)/i.test(a)?t.wellness.push(e):/(fashion|jewellery|jewelry|footwear|lifestyle|apparel|textile|cloth|garment|shoe|sandal|accessory)/i.test(a)?t.fashion.push(e):/(electronic|mobile|computer|appliance|laptop|phone|device|gadget|tech)/i.test(a)?t.electronics.push(e):/(grocery|departmental|wholesale|supermarket|mart|retail|store)/i.test(a)?t.grocery.push(e):/(stationery|xerox|print|coaching|cement|tuition|education|training|class)/i.test(a)?t.services.push(e):t.others.push(e):/(healthcare|pharma)/i.test(r)||/(health|optical)/i.test(a)?t.healthcare.push(e):/(manufacturing)/i.test(r)||/(manufacturer)/i.test(a)?t.manufacturing.push(e):/(transportation|logistics)/i.test(r)||/(parking|boating)/i.test(a)?t.transportation.push(e):(/(hospitality|entertainment)/i.test(r)||/(hotel|resort)/i.test(a))&&t.hospitality.push(e)})),t})(e)),[e]);a.useEffect((()=>{if(""===c.trim())A([]);else{const t=e.filter((e=>{var t;return null==(t=e.AppName)?void 0:t.toLowerCase().includes(c.toLowerCase())}));A(t)}}),[c,e]);const g=a.useMemo((()=>{const e=[];return v.foodBeverages.length>0&&e.push({title:"Food & Beverages",apps:v.foodBeverages}),v.wellness.length>0&&e.push({title:"Wellness & Beauty",apps:v.wellness}),v.fashion.length>0&&e.push({title:"Fashion & Lifestyle",apps:v.fashion}),v.electronics.length>0&&e.push({title:"Electronics & Tech",apps:v.electronics}),v.grocery.length>0&&e.push({title:"Grocery & Retail",apps:v.grocery}),v.services.length>0&&e.push({title:"Services",apps:v.services}),v.healthcare.length>0&&e.push({title:"Healthcare & Pharma",apps:v.healthcare}),v.manufacturing.length>0&&e.push({title:"Manufacturing",apps:v.manufacturing}),v.transportation.length>0&&e.push({title:"Transportation",apps:v.transportation}),v.hospitality.length>0&&e.push({title:"Hospitality",apps:v.hospitality}),v.others.length>0&&e.push({title:"More Industries",apps:v.others}),e}),[v]),y=Math.max(1,Math.ceil(g.length/3)),x=3*h,b=g.slice(x,x+3);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"Footer-Master",ref:r,children:[Ye.jsxs("div",{className:"footerLeft",children:[Ye.jsx("div",{className:"logoDesc",children:Ye.jsxs("div",{children:["AI platform with Agentic AI that ",Ye.jsx("br",{})," acts smarter, beyond traditional ",Ye.jsx("br",{})," apps."]})}),Ye.jsxs("div",{className:"clutter",children:["Stay informed with only what matters ",Ye.jsx("br",{}),"—no spam, no clutter."]}),s&&Ye.jsx("div",{className:`subscription-message ${o}`,children:s})]}),Ye.jsxs("div",{className:"footerRight",children:[Ye.jsxs("div",{className:"footerProducts",ref:i,children:[Ye.jsxs("div",{className:"products-top-bar",children:[Ye.jsx("div",{className:"products-heading",children:"Products"}),Ye.jsxs("div",{className:"products-search-box",children:[Ye.jsx(Jv,{className:"products-search-icon"}),Ye.jsx("input",{type:"text",placeholder:"Search products...",value:c,onChange:e=>{u(e.target.value)},className:"products-search-input"}),c&&Ye.jsx("button",{onClick:()=>{u("")},className:"products-search-clear",children:"✕"})]}),!c&&Ye.jsxs("div",{className:"footer-navigation",children:[Ye.jsx("button",{onClick:()=>{f((e=>Math.max(0,e-1)))},disabled:0===h,className:"footer-nav-btn",children:"‹"}),Ye.jsxs("div",{className:"footer-page-indicator",children:[h+1," / ",y]}),Ye.jsx("button",{onClick:()=>{f((e=>Math.min(y-1,e+1)))},disabled:h===y-1,className:"footer-nav-btn",children:"›"})]})]}),c&&Ye.jsxs("div",{className:"products-search-results-count",children:[p.length," ",1===p.length?"result":"results"," found"]}),c&&p.length>0?Ye.jsx("div",{className:"footer-search-results",children:p.map((e=>Ye.jsx("p",{onClick:()=>m(e.AppName,e.AppId),className:"search-result-item",style:{cursor:"pointer"},children:e.AppName},e.AppId)))}):c&&0===p.length?Ye.jsx("div",{className:"footer-no-results",children:Ye.jsxs("p",{children:['No products found for "',c,'"']})}):e.length>0?Ye.jsx("div",{className:"footer-columns-wrapper",children:b.map(((e,t)=>Ye.jsxs("div",{className:"footer-column",children:[Ye.jsx("div",{className:"footer-category",children:e.title}),e.apps.map((e=>Ye.jsx("p",{onClick:()=>m(e.AppName,e.AppId),style:{cursor:"pointer"},children:e.AppName},e.AppId)))]},t)))}):Ye.jsxs("div",{className:"footer-columns-wrapper",children:[Ye.jsxs("div",{className:"footer-column",children:[Ye.jsx("div",{className:"footer-category",children:"Food & Beverages"}),Ye.jsx("p",{onClick:()=>t(`${qhe}industries/dairy-delights`),children:"Dairy Delights"}),Ye.jsx("p",{onClick:()=>t(`${qhe}industries/restaurant`),children:"Restaurant"}),Ye.jsx("p",{onClick:()=>t(`${qhe}industries/bakery`),children:"Bakery"})]}),Ye.jsxs("div",{className:"footer-column",children:[Ye.jsx("div",{className:"footer-category",children:"Wellness & Beauty"}),Ye.jsx("p",{onClick:()=>t(`${qhe}industries/beauty-and-cosmetics-shop`),children:"Beauty and Cosmetics shop"}),Ye.jsx("p",{onClick:()=>t(`${qhe}industries/fitness`),children:"Fitness"}),Ye.jsx("p",{onClick:()=>t(`${qhe}industries/salon-spa-and-beauty-parlour`),children:"Salon, Spa and Beauty Parlour"})]}),Ye.jsxs("div",{className:"footer-column",children:[Ye.jsx("div",{className:"footer-category",children:"Fashion & Lifestyle"}),Ye.jsx("p",{onClick:()=>t(`${qhe}industries/lifestyle-and-fashion`),children:"Lifestyle and Fashion"}),Ye.jsx("p",{onClick:()=>t(`${qhe}industries/fashion-jewellery`),children:"Fashion Jewellery"}),Ye.jsx("p",{onClick:()=>t(`${qhe}industries/footwear`),children:"Footwear"})]})]})]}),Ye.jsxs("div",{className:"footerContact",children:[Ye.jsx("div",{children:"Contact"}),Ye.jsx("a",{href:"",children:"info@pozo.app"})]}),Ye.jsxs("div",{className:"footePhone",children:[Ye.jsx("div",{children:"Phone"}),Ye.jsx("a",{href:"tel:7324000011",children:"73 24 00 00 11"}),Ye.jsx("a",{href:"tel:7324000012",children:"73 24 00 00 12"})]})]})]}),Ye.jsxs("div",{className:"policyDiv",children:[Ye.jsxs("div",{className:"FooterPolicy",children:[Ye.jsx("p",{children:" © 2025 PozoApp"}),Ye.jsx("p",{onClick:()=>{t(`${qhe}privacy-policy`)},children:"Privacy Policy"}),Ye.jsx("p",{onClick:()=>{t(`${qhe}cookie-policy`)},children:"Cookie Policy"}),Ye.jsx("p",{onClick:()=>{t(`${qhe}faq`)},children:"Faq"})]}),Ye.jsxs("div",{className:"footerSocial",children:[Ye.jsxs("div",{children:["Let's get social",Ye.jsx("a",{href:"https://www.instagram.com/pozomind/",target:"_blank",rel:"noopener noreferrer",children:Ye.jsx(tL,{size:18})}),Ye.jsx("a",{href:"https://www.facebook.com/pozomind/",target:"_blank",rel:"noopener noreferrer",children:Ye.jsx(km,{})}),Ye.jsx("a",{href:"https://x.com/pozomind",target:"_blank",rel:"noopener noreferrer",children:Ye.jsx(ug,{})}),Ye.jsx("a",{href:"https://www.youtube.com/@pozomind",target:"_blank",rel:"noopener noreferrer",children:Ye.jsx(_m,{})})]}),Ye.jsx("p",{children:"For queries contact us: Manager, No 51 Step Colony, Dharga,Hosur, Krishnagiri, Tamilnadu-635126, India"})]})]}),Ye.jsx("hr",{}),Ye.jsx("div",{className:"footerPozoApp",children:Ye.jsx("p",{children:"PozoApp"})})]})},Yhe=Object.freeze(Object.defineProperty({__proto__:null,default:Whe},Symbol.toStringTag,{value:"Module"})),Khe="https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=600&h=400&fit=crop&q=90",Ghe="https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=600&h=400&fit=crop&q=90",$he="https://images.unsplash.com/photo-1542838132-92c53300491e?w=600&h=400&fit=crop&q=90",Xhe="https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=600&h=400&fit=crop&q=90",Jhe="https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=600&h=400&fit=crop&q=90",Zhe="https://images.unsplash.com/photo-1563013544-824ae1b704d3?w=600&h=400&fit=crop&q=90",efe=a.lazy((()=>pr((()=>import("./SolutionsList-e4ceaac8.js")),["assets/SolutionsList-e4ceaac8.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js"])));kce.registerPlugin(_Ae);const tfe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>GAe))),void 0))),nfe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>Mhe))),void 0))),ife=a.lazy((()=>pr((()=>import("./SolutionsList-e4ceaac8.js")),["assets/SolutionsList-e4ceaac8.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js"])));kce.registerPlugin(_Ae);const afe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>GAe))),void 0))),rfe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>Mhe))),void 0))),sfe=a.lazy((()=>pr((()=>import("./SolutionsList-e4ceaac8.js")),["assets/SolutionsList-e4ceaac8.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js"])));kce.registerPlugin(_Ae);const lfe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>GAe))),void 0))),ofe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>Mhe))),void 0))),dfe=a.lazy((()=>pr((()=>import("./SolutionsList-e4ceaac8.js")),["assets/SolutionsList-e4ceaac8.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js"])));kce.registerPlugin(_Ae);const cfe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>GAe))),void 0))),ufe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>Mhe))),void 0))),pfe=a.lazy((()=>pr((()=>import("./SolutionsList-e4ceaac8.js")),["assets/SolutionsList-e4ceaac8.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js"])));kce.registerPlugin(_Ae);const Afe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>GAe))),void 0))),hfe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>Mhe))),void 0))),ffe=a.lazy((()=>pr((()=>import("./SolutionsList-e4ceaac8.js")),["assets/SolutionsList-e4ceaac8.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js"])));kce.registerPlugin(_Ae);const mfe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>GAe))),void 0))),vfe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>Mhe))),void 0))),gfe=a.lazy((()=>pr((()=>import("./SolutionsList-e4ceaac8.js")),["assets/SolutionsList-e4ceaac8.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js"])));kce.registerPlugin(_Ae);const yfe=a.lazy((()=>pr((()=>import("./SolutionsList-e4ceaac8.js")),["assets/SolutionsList-e4ceaac8.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js"]))),xfe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>GAe))),void 0))),bfe=a.lazy((()=>pr((()=>Promise.resolve().then((()=>Mhe))),void 0))),wfe="/",jfe=({formType:e="add"})=>{const t=um(),n=Mt(),i=Qt(),r=null==n?void 0:n.state,s=null==r?void 0:r.editstate,l=a.useRef(null),[o]=I.useForm(),d=iA("UserId"),[c,u]=a.useState(null),[p,A]=a.useState(null),[h,f]=a.useState("sms"),[m,v]=a.useState(!1),[g,y]=a.useState([]),[x,b]=a.useState([]),[w,j]=a.useState([]),C=[{name:"Home",link:`${wfe}landing-page/home`},{name:"Gateway Master Configuration",link:`${wfe}setting/gateway-master-configuration/${"add"===e?"new":"edit"===e?"update":"new"}`},{name:s?"Edit":"New",link:null}];a.useEffect((()=>{S(),N(),F(),t(Gh({items:C}))}),[]),a.useEffect((()=>{if(s){const e="S"===(null==s?void 0:s.ServiceType)?"sms":"W"===(null==s?void 0:s.ServiceType)?"whatsapp":"E"===(null==s?void 0:s.ServiceType)?"email":"sms";f(e),o.setFieldsValue({Provider:null==s?void 0:s.Provider}),o.setFieldsValue({AccountSID:null==s?void 0:s.APIKey}),o.setFieldsValue({AuthToken:null==s?void 0:s.APISecret}),o.setFieldsValue({Number:null==s?void 0:s.SenderNumber}),o.setFieldsValue({apiurl:null==s?void 0:s.APIUrl}),o.setFieldsValue({"Email Provider":null==s?void 0:s.Provider}),o.setFieldsValue({"Email Address":null==s?void 0:s.APIKey}),o.setFieldsValue({Password:null==s?void 0:s.APISecret})}}),[s]);const S=async()=>{var e,n;let i=await t(HP({TypeName:"SMSProviders"})).unwrap();1===(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)?y(null==(n=null==i?void 0:i.data)?void 0:n.data):y([])},N=async()=>{var e,n;let i=await t(HP({TypeName:"WhatsAppProviders"})).unwrap();1===(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)?b(null==(n=null==i?void 0:i.data)?void 0:n.data):b([])},F=async()=>{var e,n;let i=await t(HP({TypeName:"EmailProviders"})).unwrap();1===(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)?j(null==(n=null==i?void 0:i.data)?void 0:n.data):j([])},B=async n=>{var a;try{v(!0);let r,l={ServiceType:"sms"===h?"S":"whatsapp"===h?"W":"email"===h?"E":null,GatewayType:"our",GatewayStatus:"N",Provider:null==n?void 0:n.Provider,APIKey:null==n?void 0:n.AccountSID,APISecret:null==n?void 0:n.AuthToken,SenderNumber:null==n?void 0:n.Number,APIUrl:null==n?void 0:n.apiurl};"email"===h&&(l.Provider=null==n?void 0:n["Email Provider"],l.APIKey=null==n?void 0:n["Email Address"],l.APISecret=null==n?void 0:n.Password,l.SenderNumber=null,l.APIUrl=null),"edit"===e?(l.UpdatedBy=d,l.UniqueId=null==s?void 0:s.UniqueId,r=await t(PA(l)).unwrap()):"add"===e&&(l.CreatedBy=d,r=await t(BA(l)).unwrap()),1===(null==(a=null==r?void 0:r.data)?void 0:a.statusCode)&&(A(`${h.toUpperCase()} gateway configuration saved successfully`),u("success"),o.resetFields(),i(`${wfe}setting/gateway-master-configuration/new`,{replace:!0,state:null}))}catch(r){A("Failed to save configuration: "+r.message),u("error")}finally{v(!1)}},P=a.useCallback((()=>{A(null),u(null)}),[]);return Ye.jsxs("div",{className:"pageOverAll",children:[Ye.jsx(Qy,{messageType:c,messageData:p,onComplete:P}),Ye.jsxs("div",{className:"userPage",children:[Ye.jsxs("div",{className:"formName",children:[Ye.jsxs("div",{className:"formNameHeader",children:[Ye.jsx(ab,{title:"Gateway Master Configuration"}),Ye.jsx("div",{className:"viewList",onClick:()=>{i(`${wfe}setting/gateway-master-configuration/list`)},children:"View List"})]}),Ye.jsx("p",{children:"Configure your SMS, WhatsApp, and Email gateways"})]}),Ye.jsxs("div",{className:"gateway-tabs",children:[Ye.jsx("button",{onClick:()=>f("sms"),className:`${"sms"===h?"btnActive":""} ${s&&"S"!==(null==s?void 0:s.ServiceType)?"tab-disabled":""}`,children:"SMS Gateway"}),Ye.jsx("button",{onClick:()=>f("whatsapp"),className:`${"whatsapp"===h?"btnActive":""} ${s&&"W"!==(null==s?void 0:s.ServiceType)?"tab-disabled":""}`,children:"WhatsApp Gateway"}),Ye.jsx("button",{onClick:()=>f("email"),className:`${"email"===h?"btnActive":""} ${s&&"E"!==(null==s?void 0:s.ServiceType)?"tab-disabled":""}`,children:"Email Gateway"})]}),Ye.jsxs("div",{className:"formDiv formDivGatewayMaster",children:["sms"===h&&Ye.jsx("div",{className:"gateway-section",children:Ye.jsxs(I,{ref:l,className:"formDivAnt",onFinish:B,layout:"vertical",form:o,children:[Ye.jsxs("div",{className:"formDivSGate",children:[Ye.jsx(I.Item,{name:"Provider",rules:[{required:!0,message:"Please Select Provider"}],children:Ye.jsx(_y,{placeholder:"Provider",label:Ye.jsx("label",{className:"required",children:"Provider"}),className:"field-DropDown",options:(null==g?void 0:g.map((e=>({value:null==e?void 0:e.ConfigId,label:null==e?void 0:e.ConfigName}))))||[],valueData:o.getFieldValue("Provider"),onChangeFunction:e=>{o.setFieldsValue({Provider:e})},filterSort:(e,t)=>{const n=String((null==e?void 0:e.label)??""),i=String((null==t?void 0:t.label)??"");return n.toLowerCase().localeCompare(i.toLowerCase())}})}),Ye.jsx(I.Item,{name:"AccountSID",rules:[{required:!0,message:"Enter a valid AccountSID"}],children:Ye.jsx(Oy,{field:"AccountSID",label:Ye.jsx("label",{className:"required",children:"Account SID / API Key"}),fieldState:!0,fieldApi:!0,maxLength:"30",autoComplete:"off",isOnChange:(null==s?void 0:s.APIKey)?null==s?void 0:s.APIKey:null})}),Ye.jsx(I.Item,{name:"AuthToken",rules:[{required:!0,message:"Enter a valid Auth Token / API Secret"}],children:Ye.jsx(Oy,{field:"AuthToken",label:Ye.jsx("label",{className:"required",children:"Auth Token / API Secret"}),fieldState:!0,fieldApi:!0,maxLength:"30",autoComplete:"off",isOnChange:(null==s?void 0:s.APISecret)?null==s?void 0:s.APISecret:null})}),Ye.jsx(I.Item,{name:"Number",rules:[{required:!0,message:"Enter a valid from number / sender ID"}],children:Ye.jsx(Oy,{field:"Number",label:Ye.jsx("label",{className:"required",children:"From Number / Sender ID"}),fieldState:!0,fieldApi:!0,maxLength:"30",autoComplete:"off",isOnChange:(null==s?void 0:s.SenderNumber)?null==s?void 0:s.SenderNumber:null})}),Ye.jsx(I.Item,{name:"apiurl",children:Ye.jsx(Oy,{field:"apiurl",label:Ye.jsx("label",{children:"API URL (Optional)"}),fieldState:!0,fieldApi:!0,maxLength:"30",autoComplete:"off",isOnChange:(null==s?void 0:s.APIUrl)?null==s?void 0:s.APIUrl:null})})]}),Ye.jsx(I.Item,{children:Ye.jsx("button",{type:"submit",className:"save-btn-primary",disabled:m,children:m?"edit"===e?"Updating...":"Saving...":"edit"===e?"Update SMS Configuration":"Save SMS Configuration"})})]})}),"whatsapp"===h&&Ye.jsx("div",{className:"gateway-section",children:Ye.jsxs(I,{ref:l,className:"formDivAnt",onFinish:B,layout:"vertical",form:o,children:[Ye.jsxs("div",{className:"formDivSGate",children:[Ye.jsx(I.Item,{name:"Provider",rules:[{required:!0,message:"Please Select Provider"}],children:Ye.jsx(_y,{placeholder:"Provider",label:Ye.jsx("label",{className:"required",children:"Provider"}),className:"field-DropDown",options:(null==x?void 0:x.map((e=>({value:null==e?void 0:e.ConfigId,label:null==e?void 0:e.ConfigName}))))||[],valueData:o.getFieldValue("Provider"),onChangeFunction:e=>{o.setFieldsValue({Provider:e})},filterSort:(e,t)=>{const n=String((null==e?void 0:e.label)??""),i=String((null==t?void 0:t.label)??"");return n.toLowerCase().localeCompare(i.toLowerCase())}})}),Ye.jsx(I.Item,{name:"AccountSID",rules:[{required:!0,message:"Enter a valid Account SID / API Key"}],children:Ye.jsx(Oy,{field:"AccountSID",label:Ye.jsx("label",{className:"required",children:"Account SID / API Key"}),fieldState:!0,fieldApi:!0,maxLength:"30",autoComplete:"off",isOnChange:(null==s?void 0:s.APIKey)?null==s?void 0:s.APIKey:null})}),Ye.jsx(I.Item,{name:"AuthToken",rules:[{required:!0,message:"Enter a valid Auth Token / API Secret"}],children:Ye.jsx(Oy,{field:"AuthToken",label:Ye.jsx("label",{className:"required",children:"Auth Token / API Secret"}),fieldState:!0,fieldApi:!0,maxLength:"30",autoComplete:"off",isOnChange:(null==s?void 0:s.APISecret)?null==s?void 0:s.APISecret:null})}),Ye.jsx(I.Item,{name:"Number",rules:[{required:!0,message:"Enter a valid WhatsApp number"}],children:Ye.jsx(Oy,{field:"Number",label:Ye.jsx("label",{className:"required",children:"WhatsApp Business Number"}),fieldState:!0,fieldApi:!0,maxLength:"30",autoComplete:"off",isOnChange:(null==s?void 0:s.SenderNumber)?null==s?void 0:s.SenderNumber:null})}),Ye.jsx(I.Item,{name:"apiurl",children:Ye.jsx(Oy,{field:"apiurl",label:Ye.jsx("label",{children:"API URL (Optional)"}),fieldState:!0,fieldApi:!0,maxLength:"30",autoComplete:"off",isOnChange:(null==s?void 0:s.APIUrl)?null==s?void 0:s.APIUrl:null})})]}),Ye.jsx(I.Item,{children:Ye.jsx("button",{type:"submit",className:"save-btn-primary",disabled:m,children:m?"edit"===e?"Updating...":"Saving...":"edit"===e?"Update WhatsApp Configuration":"Save WhatsApp Configuration"})})]})}),"email"===h&&Ye.jsx("div",{className:"email-section",children:Ye.jsxs(I,{ref:l,className:"formDivAnt",onFinish:B,layout:"vertical",form:o,children:[Ye.jsxs("div",{className:"formDivSGate",children:[Ye.jsx(I.Item,{name:"Email Provider",rules:[{required:!0,message:"Please select email provider"}],children:Ye.jsx(_y,{placeholder:"Provider",label:Ye.jsx("label",{className:"required",children:"Email Provider"}),className:"field-DropDown",options:(null==w?void 0:w.map((e=>({value:null==e?void 0:e.ConfigId,label:null==e?void 0:e.ConfigName}))))||[],onChangeFunction:e=>o.setFieldsValue({"Email Provider":e}),valueData:o.getFieldValue("Email Provider")})}),Ye.jsx(I.Item,{name:"Email Address",rules:[{required:!0,message:"Email address is required"}],children:Ye.jsx(Oy,{field:"Email Address",label:Ye.jsx("label",{className:"required",children:"Email Address"}),fieldState:!0,fieldApi:!0,maxLength:"30",autoComplete:"off",isOnChange:(null==s?void 0:s.APIKey)?null==s?void 0:s.APIKey:null})}),Ye.jsx(I.Item,{name:"Password",rules:[{required:!0,message:"Enter a valid app password"}],children:Ye.jsx(Oy,{field:"Password",label:Ye.jsx("label",{className:"required",children:"App Password"}),fieldState:!0,fieldApi:!0,maxLength:"30",autoComplete:"off",isOnChange:(null==s?void 0:s.APISecret)?null==s?void 0:s.APISecret:null})})]}),Ye.jsx(I.Item,{children:Ye.jsx("button",{type:"submit",className:"save-btn-primary",disabled:m,children:m?"edit"===e?"Updating...":"Saving...":"edit"===e?"Update Email Configuration":"Save Email Configuration"})})]})})]})]})]})},{Search:Cfe}=g,Sfe="/",Nfe=a.createContext(),Ife=({children:e})=>{const[t,n]=a.useState({BannerSectionForm:[{id:1,title:"Summer Sale Banner",description:"Promotional banner for summer sale campaign",image:"https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=400&h=300&fit=crop",active:!0,priority:"high",date:"Dec 22, 2024"}],CTASectionForm:[{id:1,title:"Get Started CTA",description:"Primary call-to-action for new users",image:"https://images.unsplash.com/photo-1559136555-9303baea8ebd?w=400&h=300&fit=crop",active:!0,priority:"high",date:"Dec 21, 2024"}],EcosystemForm:[{id:1,title:"Smart City Solutions",description:"Comprehensive urban development platform integrating IoT, data analytics, and citizen engagement.",image:"https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=400&h=300&fit=crop",active:!0,priority:"high",date:"Dec 21, 2024"},{id:2,title:"Healthcare Innovation Hub",description:"Connected healthcare ecosystem with telemedicine, AI diagnostics, and patient management.",image:"https://images.unsplash.com/photo-1559757148-5c350d0d3c56?w=400&h=300&fit=crop",active:!0,priority:"medium",date:"Dec 20, 2024"}],FaqSectionForm:[{id:1,title:"How to Get Started",description:"Step-by-step guide for new users to begin using our platform",image:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=400&h=300&fit=crop",active:!0,priority:"high",date:"Dec 20, 2024"}],FooterForm:[{id:1,title:"Main Footer",description:"Primary footer with contact information and links",image:"https://images.unsplash.com/photo-1557804506-669a67965ba0?w=400&h=300&fit=crop",active:!0,priority:"medium",date:"Dec 19, 2024"}],HeroSectionForm:[{id:1,title:"Support the Environment",description:"Environmental conservation through waste management, and sustainable practices for a better future.",image:"https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?w=400&h=300&fit=crop",active:!0,priority:"medium",date:"Dec 19, 2024"},{id:2,title:"Water, Sanitation & Hygiene",description:"Providing clean water access, sanitation facilities, hygiene education to improve community health and wellbeing.",image:"https://images.unsplash.com/photo-1559027615-cd4628902d4a?w=400&h=300&fit=crop",active:!0,priority:"high",date:"Dec 18, 2024"}],OfferingsForm:[{id:1,title:"Digital Transformation",description:"Comprehensive digital solutions to modernize your business operations and enhance customer experience.",image:"https://images.unsplash.com/photo-1551434678-e076c223a692?w=400&h=300&fit=crop",active:!0,priority:"high",date:"Dec 18, 2024"},{id:2,title:"Cloud Infrastructure",description:"Scalable cloud solutions for secure data storage, processing, and seamless business operations.",image:"https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=400&h=300&fit=crop",active:!0,priority:"medium",date:"Dec 17, 2024"}],TrendingAppsForm:[{id:1,name:"PozoPay",description:"Secure mobile payment solution with advanced encryption and fraud protection.",icon:"https://images.unsplash.com/photo-1563013544-824ae1b704d3?w=100&h=100&fit=crop",category:"Finance",rating:4.8,downloads:"1.2M",status:"active",priority:"high",date:"Dec 22, 2024"},{id:2,name:"SmartInventory",description:"AI-powered inventory management system with real-time tracking and analytics.",icon:"https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=100&h=100&fit=crop",category:"Business",rating:4.6,downloads:"850K",status:"active",priority:"medium",date:"Dec 21, 2024"},{id:3,name:"HealthTracker",description:"Comprehensive health monitoring app with wearable device integration.",icon:"https://images.unsplash.com/photo-1559757175-0eb30cd8c063?w=100&h=100&fit=crop",category:"Health",rating:4.9,downloads:"2.1M",status:"active",priority:"high",date:"Dec 20, 2024"}],AppDemo:[{id:1,title:"Product Demo Video",description:"Comprehensive demonstration of our latest product features and capabilities",image:"https://images.unsplash.com/photo-1574717024653-61fd2cf4d44d?w=400&h=300&fit=crop",active:!0,priority:"high",date:"Dec 19, 2024"}]}),i={sectionData:t,addItem:(e,t)=>{n((n=>({...n,[e]:[...n[e],{...t,id:Date.now()}]})))},updateItem:(e,t,i)=>{n((n=>({...n,[e]:n[e].map((e=>e.id===t?{...e,...i}:e))})))},deleteItem:(e,t)=>{n((n=>({...n,[e]:n[e].filter((e=>e.id!==t))})))},toggleItemStatus:(e,t)=>{n((n=>({...n,[e]:n[e].map((e=>e.id===t?{...e,active:!e.active}:e))})))},updateSectionData:(e,t)=>{n((n=>({...n,[e]:t})))}};return Ye.jsx(Nfe.Provider,{value:i,children:e})},Ffe="/home/",Bfe=()=>{var e,t,n;const i=um(),r=Qt(),[s,l]=a.useState(!1),[o,d]=a.useState(""),[c,u]=a.useState(""),[p,A]=a.useState(null),[h,f]=a.useState(""),[m,v]=a.useState(""),[g,y]=a.useState([{DtlTitle:"",DtlDescription:[""],DtlImages:[null],DtlVideos:[null]}]),b=iA("UserId"),[w,j]=a.useState([]),[C,S]=a.useState(-1),[N,I]=a.useState(!1),[F,B]=a.useState(!1),[P,k]=a.useState(null),[T,E]=a.useState(""),[D,L]=a.useState(!1),[U,_]=a.useState("all"),[O,M]=a.useState("");a.useEffect((()=>{R()}),[]);const R=async()=>{var e,t;try{let n=await i(ute()).unwrap();if(1==(null==(e=null==n?void 0:n.data)?void 0:e.statusCode)){const e=null==(t=null==n?void 0:n.data)?void 0:t.data;j(e)}else j([])}catch(n){}},Q=()=>{d(""),u(""),A(null),f(""),v(""),y([{DtlTitle:"",DtlDescription:[""],DtlImages:[null],DtlVideos:[null]}])},H=()=>{I(!N)},V=(e,t)=>{k(e),E(t),B(!0)},z=async(e,t,n=null,a=null)=>{var r,s,l;if(e)try{const o=await i(EP(e)).unwrap(),d=(null==(r=null==o?void 0:o.data)?void 0:r.status)?null==(s=null==o?void 0:o.data)?void 0:s.image:e;if("poster"===t)A(d);else if("image"===t&&null!==n&&null!==a){const e=[...g];e[n].DtlImages[a]=d,y(e)}else if("video"===t&&null!==n&&null!==a){const e=[...g];e[n].DtlVideos[a]=d,y(e)}(null==(l=null==o?void 0:o.data)?void 0:l.status)?x.success(("video"===t?"Video":"Image")+" uploaded successfully!"):x.warning(("video"===t?"Video":"Image")+" upload failed. Using local preview.")}catch(o){if(x.error(`Error uploading ${t}. Please try again.`),"poster"===t)A(e);else if("image"===t&&null!==n&&null!==a){const t=[...g];t[n].DtlImages[a]=e,y(t)}else if("video"===t&&null!==n&&null!==a){const t=[...g];t[n].DtlVideos[a]=e,y(t)}}},q=e=>e?"string"==typeof e?e:e instanceof File||e instanceof Blob?URL.createObjectURL(e):"":"";function W(e){const[t,n]=e.split(":");let i=parseInt(t,10);const a=n,r=i>=12?"PM":"AM";return i%=12,i=0===i?12:i,`${i.toString().padStart(2,"0")}:${a} ${r}`}const Y=(null==w?void 0:w.filter((e=>{var t,n,i;let a=!0;"published"===U?a="Y"===e.IsPublished:"unpublished"===U?a="N"===e.IsPublished:"draft"===U&&(a=!e.PublishDate&&"N"===e.IsPublished);const r=!O||(null==(t=e.BlogTitle)?void 0:t.toLowerCase().includes(O.toLowerCase()))||(null==(n=e.BlogSubtitle)?void 0:n.toLowerCase().includes(O.toLowerCase()))||(null==(i=e.Author)?void 0:i.toLowerCase().includes(O.toLowerCase()));return a&&r})))||[];return Ye.jsxs("div",{className:"blog-form-master",children:[Ye.jsxs("div",{className:"blog-form-header",children:[Ye.jsxs("div",{className:"blog-form-header-content",children:[Ye.jsx("h2",{children:"Blog Management"}),Ye.jsx("p",{children:"Create and manage your blog posts and content."})]}),Ye.jsx("button",{className:"blog-form-create-btn",onClick:()=>{r(`${Ffe}PostEditorPage`)},children:s?Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("span",{children:"←"})," Back"]}):Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("span",{children:"+"})," Create Blog Post"]})})]}),Ye.jsxs("div",{className:"blog-form-layout",children:[s&&Ye.jsx("div",{className:"blog-form-left",children:Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"blog-form-container",children:[Ye.jsx("h3",{children:"Poster Section"}),Ye.jsxs("div",{className:"blog-form-field",children:[Ye.jsx("label",{children:"Blog Title"}),Ye.jsx("input",{type:"text",value:o,onChange:e=>d(e.target.value),autoFocus:!0})]}),Ye.jsxs("div",{className:"blog-form-field",children:[Ye.jsx("label",{children:"Blog Subtitle"}),Ye.jsx("input",{type:"text",value:c,onChange:e=>u(e.target.value)})]}),Ye.jsxs("div",{className:"blog-form-field",children:[Ye.jsx("label",{children:"Upload Image"}),Ye.jsx("input",{type:"file",accept:"image/*",onChange:e=>z(e.target.files[0],"poster")}),p&&Ye.jsx("div",{className:"file-preview",children:Ye.jsx("img",{src:q(p),alt:"Poster preview",style:{maxWidth:"100px",maxHeight:"100px",marginTop:"10px",borderRadius:"8px"}})})]}),Ye.jsx("div",{className:"section-header",style:{marginTop:"3rem"},children:N?Ye.jsx("div",{onClick:H,style:{cursor:"pointer"},children:"Hide Details"}):Ye.jsx("h3",{onClick:H,style:{cursor:"pointer"},children:"Add More Details"})}),N&&Ye.jsxs(Ye.Fragment,{children:[g.map(((e,t)=>{var n,i;return Ye.jsxs("div",{className:"detail-section",children:[Ye.jsxs("div",{children:["More Details (",g.length,")"]}),Ye.jsxs("div",{className:"blog-form-field",children:[Ye.jsx("label",{children:"Title"}),Ye.jsx("input",{type:"text",value:e.DtlTitle,onChange:e=>{const n=[...g];n[t].DtlTitle=e.target.value,y(n)}})]}),Ye.jsxs("div",{className:"dynamic-inputs",children:[Ye.jsxs("div",{className:"input-group",children:[Ye.jsxs("div",{className:"group-header",children:[Ye.jsx("label",{children:"Description"}),Ye.jsx("button",{className:"add-btn",onClick:()=>(e=>{const t=[...g];t[e].DtlDescription.push(""),y(t)})(t),children:"+ Add"})]}),null==e?void 0:e.DtlDescription.map(((n,i)=>Ye.jsxs("div",{className:"input-wrapper",children:[Ye.jsx("textarea",{value:n,onChange:e=>{const n=[...g];n[t].DtlDescription[i]=e.target.value,y(n)}}),(null==e?void 0:e.DtlDescription.length)>1&&Ye.jsx("button",{className:"remove-btn",onClick:()=>((e,t)=>{const n=[...g];n[e].DtlDescription.splice(t,1),y(n)})(t,i),children:"Remove"})]},i)))]}),Ye.jsxs("div",{className:"input-group",children:[Ye.jsx("div",{className:"group-header",children:Ye.jsx("label",{children:"Images"})}),null==(n=(null==e?void 0:e.DtlImages)||[null])?void 0:n.map(((n,i)=>{var a;return Ye.jsxs("div",{className:"input-wrapper",children:[Ye.jsx("input",{type:"file",accept:"image/*",onChange:e=>z(e.target.files[0],"image",t,i)}),n&&Ye.jsx("div",{className:"file-preview",children:Ye.jsx("img",{src:q(n),alt:`Image ${i+1}`,style:{maxWidth:"150px",maxHeight:"100px",marginTop:"8px",borderRadius:"6px"}})}),Ye.jsxs("div",{className:"button-group",children:[Ye.jsx("button",{className:"add-btn",onClick:()=>(e=>{const t=[...g];t[e].DtlImages.push(null),y(t)})(t),children:"Add"}),(null==(a=null==e?void 0:e.DtlImages)?void 0:a.length)>1&&Ye.jsx("button",{className:"remove-btn",onClick:()=>((e,t)=>{const n=[...g];n[e].DtlImages.splice(t,1),y(n)})(t,i),children:"Remove"})]})]},i)}))]}),Ye.jsxs("div",{className:"input-group",children:[Ye.jsx("div",{className:"group-header",children:Ye.jsx("label",{children:"Videos"})}),null==(i=(null==e?void 0:e.DtlVideos)||[null])?void 0:i.map(((n,i)=>{var a;return Ye.jsxs("div",{className:"input-wrapper",children:[Ye.jsx("input",{type:"file",accept:"video/*",onChange:e=>z(e.target.files[0],"video",t,i)}),n&&Ye.jsx("div",{className:"file-preview",children:Ye.jsx("video",{controls:!0,style:{maxWidth:"200px",maxHeight:"120px",marginTop:"8px",borderRadius:"6px"},children:Ye.jsx("source",{src:"string"==typeof n?n:URL.createObjectURL(n),type:"string"==typeof n?"video/mp4":n.type})})}),Ye.jsxs("div",{className:"button-group",children:[Ye.jsx("button",{type:"button",className:"add-btn",onClick:()=>(e=>{const t=[...g];t[e].DtlVideos.push(null),y(t)})(t),children:"Add"}),(null==(a=null==e?void 0:e.DtlVideos)?void 0:a.length)>1&&Ye.jsx("button",{type:"button",className:"remove-btn",onClick:()=>((e,t)=>{const n=[...g];n[e].DtlVideos.splice(t,1),y(n)})(t,i),children:"Remove"})]})]},i)}))]})]})]},t)})),Ye.jsxs("div",{className:"section-buttons",children:[Ye.jsx("button",{className:"add-btn",onClick:()=>{y([...g,{DtlTitle:"",DtlDescription:[""],DtlImages:[null],DtlVideos:[null]}])},children:"+ Add More"}),g.length>1&&Ye.jsx("button",{className:"remove-btn",onClick:()=>(e=>{const t=[...g];t.splice(e,1),y(t)})(g.length-1),children:"Remove"})]})]})]}),Ye.jsxs("div",{className:"blog-form-actions",children:[Ye.jsx("button",{className:"blog-form-btn-primary",onClick:async()=>{var e,t,n,a;if(o.trim()?c.trim()||(x.error("Blog subtitle is required"),0):(x.error("Blog title is required"),0)){L(!0);try{const r=g.map((e=>({...C>-1?{BlogId:null==e?void 0:e.BlogId}:{},...C>-1?{UniqueId:null==e?void 0:e.UniqueId}:{},DtlTitle:(null==e?void 0:e.DtlTitle)??"",DtlDescription:(null==e?void 0:e.DtlDescription)??[],DtlImages:e.DtlImages??[],DtlVideos:e.DtlVideos??[],ActiveStatus:"A",...C>-1?{UpdatedBy:b||1}:{CreatedBy:b||1}}))),s={BlogTitle:o,BlogSubtitle:c,HeaderImage:p,PublishDate:h||"",PublishTime:m||"",ActiveStatus:(null==(e=w[C])?void 0:e.ActiveStatus)?null==(t=w[C])?void 0:t.ActiveStatus:"A",...C>-1?{BlogId:w[C].BlogId,UpdatedBy:b||1}:{CreatedBy:b||1},BlogDetails:r,IsPublished:(null==(n=w[C])?void 0:n.IsPublished)?null==(a=w[C])?void 0:a.IsPublished:"N"};(C>-1?await i(dte(s)).unwrap():await i(ote(s)).unwrap())?(x.success("Blog post saved successfully!"),await R(),Q(),l(!1)):x.error("No response from server")}catch(r){x.error(`Failed to save: ${(null==r?void 0:r.message)||"Please check your connection and try again"}`)}finally{L(!1),S(-1)}}},disabled:D,children:D?"Saving...":"Save"}),Ye.jsx("button",{className:"blog-form-btn-secondary",onClick:()=>{Q(),S(-1),l(!1)},children:"Cancel"}),Ye.jsx(xe,{title:"Clear form?",description:"This will clear all your work ",onConfirm:Q,okText:"Yes",cancelText:"No",children:Ye.jsx("button",{className:"blog-form-btn-secondary",children:"Clear"})})]})]})}),!s&&Ye.jsxs("div",{className:"blog-form-right",children:[Ye.jsxs("div",{className:"blogFilter",children:[Ye.jsxs("div",{className:"search-container",children:[Ye.jsx(wg,{className:"search-icon"}),Ye.jsx("input",{type:"text",className:"search-input",placeholder:"Search blogs by title, subtitle, or author...",value:O,onChange:e=>M(e.target.value)})]}),Ye.jsxs("div",{className:"filter-buttons",children:[Ye.jsx("span",{className:"filter-label",children:"Filter:"}),[{value:"all",label:"All",count:(null==w?void 0:w.length)||0},{value:"published",label:"Published",count:(null==(e=null==w?void 0:w.filter((e=>"Y"===e.IsPublished)))?void 0:e.length)||0},{value:"unpublished",label:"Unpublished",count:(null==(t=null==w?void 0:w.filter((e=>"N"===e.IsPublished)))?void 0:t.length)||0},{value:"draft",label:"Draft",count:(null==(n=null==w?void 0:w.filter((e=>!e.PublishDate&&"N"===e.IsPublished)))?void 0:n.length)||0}].map((e=>Ye.jsxs("button",{className:"filter-btn "+(U===e.value?"active":""),onClick:()=>_(e.value),children:[e.label,Ye.jsx("span",{className:"count-badge "+(U===e.value?"active":""),children:e.count})]},e.value)))]})]}),(null==Y?void 0:Y.length)>0?Ye.jsx("div",{className:"blog-display",children:Ye.jsx("div",{className:"blog-grid",children:null==Y?void 0:Y.map(((e,t)=>{var n,a,s,l;return Ye.jsxs("div",{className:"blog-card "+("N"===e.IsPublished?"blog-inactive":""),children:[Ye.jsx("div",{className:"blog-card-header",children:Ye.jsx("h3",{children:e.BlogTitle})}),Ye.jsxs("div",{className:"blog-card-content",children:[e.BlogSubtitle&&Ye.jsxs("p",{children:[" ",e.BlogSubtitle]}),e.HeaderImage&&Ye.jsx("div",{className:"poster-preview",children:Ye.jsx("img",{src:q(e.HeaderImage),alt:"Poster",style:{width:"80px",maxHeight:"120px",objectFit:"cover",borderRadius:"6px",cursor:"pointer",marginBottom:"10px"},onClick:()=>V(e.HeaderImage,"image")})}),null==(n=null==e?void 0:e.BlogDetails)?void 0:n.map(((e,t)=>{var n,i,a,r,s,l;return(e.DtlTitle||(null==(n=e.DtlDescription)?void 0:n.length)>0||(null==(i=e.DtlImages)?void 0:i.length)>0||(null==(a=e.DtlVideos)?void 0:a.length)>0)&&Ye.jsxs("div",{children:[e.DtlTitle&&Ye.jsxs("p",{children:[Ye.jsxs("strong",{children:["Section ",t+1,":"]})," ",e.DtlTitle]}),null==(r=e.DtlDescription)?void 0:r.map(((e,t)=>Ye.jsxs("p",{children:["• ",e.substring(0,50),e.length>50?"...":""]},t))),(null==(s=e.DtlImages)?void 0:s.length)>0&&Ye.jsxs("div",{className:"media-preview",children:[Ye.jsxs("p",{children:[Ye.jsx(hg,{style:{marginRight:"5px"}})," ",e.DtlImages.length," image(s)"]}),Ye.jsxs("div",{style:{display:"flex",gap:"5px",flexWrap:"wrap",marginBottom:"8px"},children:[e.DtlImages.slice(0,3).map(((e,t)=>Ye.jsx("img",{src:q(e),alt:`Image ${t+1}`,style:{maxWidth:"150px",maxHeight:"100px",marginTop:"8px",borderRadius:"6px",cursor:"pointer"},onClick:()=>V(e,"image")},t))),e.DtlImages.length>3&&Ye.jsxs("div",{style:{width:"50px",height:"50px",background:"#f0f0f0",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",color:"#666"},children:["+",e.DtlImages.length-3]})]})]}),(null==(l=e.DtlVideos)?void 0:l.length)>0&&Ye.jsxs("div",{className:"media-preview",children:[Ye.jsxs("p",{children:[Ye.jsx(mg,{style:{marginRight:"5px"}})," ",e.DtlVideos.length," video(s)"]}),Ye.jsxs("div",{style:{display:"flex",gap:"5px",flexWrap:"wrap",marginBottom:"8px"},children:[e.DtlVideos.slice(0,2).map(((e,t)=>Ye.jsx("div",{style:{width:"60px",height:"40px",background:"#000",borderRadius:"4px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:"16px"},onClick:()=>V(e,"video"),children:Ye.jsx(fg,{})},t))),e.DtlVideos.length>2&&Ye.jsxs("div",{style:{width:"60px",height:"40px",background:"#f0f0f0",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",color:"#666"},children:["+",e.DtlVideos.length-2]})]})]})]},t)})),Ye.jsxs("p",{className:"blog-status "+("Y"===e.IsPublished?"blog-active":"blog-inactive"),children:["Status: ","Y"===e.IsPublished?"Published":"Unpublished"]}),e.PublishDate&&Ye.jsxs("p",{children:[Ye.jsx("strong",{children:"Scheduled:"})," ",null==(s=null==(a=e.PublishDate)?void 0:a.split("T"))?void 0:s[0]," ",W(e.PublishTime)||"00:00"]}),Ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"12px",color:"#666",fontFamily:"Poppins"},children:["Posted By: ",e.Author||"Admin"]}),Ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"12px",color:"#666",fontFamily:"Poppins"},children:["Created: ",e.CreatedDate?new Date(e.CreatedDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"N/A"," ",e.CreatedDate?W((null==(l=e.CreatedDate.split("T")[1])?void 0:l.split(".")[0])||"00:00:00"):""]})]}),Ye.jsxs("div",{className:"blog-card-actions",children:[Ye.jsx("button",{className:"blog-edit-btn",onClick:()=>(e=>{const t=w[e];r(`${Ffe}PostEditorPage`,{state:{blog:t,isEdit:!0}})})(t),children:Ye.jsx(_O,{size:18})}),Ye.jsx(xe,{title:"Delete Blog",description:"Are you sure you want to delete this blog post?",onConfirm:()=>(async(e,t)=>{var n;const a="A"===t?"D":"A",r=await i(cte({blogId:e,activeStatus:a,updatedBy:b})).unwrap();1==(null==(n=null==r?void 0:r.data)?void 0:n.statusCode)?(x.success("Blog status deleted successfully!"),await R()):x.error("Failed to update blog status. Please try again."),S(-1)})(null==e?void 0:e.BlogId,null==e?void 0:e.ActiveStatus),okText:"Yes",cancelText:"No",children:Ye.jsx("button",{className:"blog-delete-btn",children:Ye.jsx(LO,{size:18})})}),Ye.jsx("button",{className:"blog-status-btn "+("Y"===e.IsPublished?"blog-deactivate":"blog-activate"),onClick:()=>(async e=>{var t,n;const a=[...w],r="Y"===a[e].IsPublished;a[e].IsPublished=r?"N":"Y",r&&(a[e].PublishDate=null,a[e].PublishTime=null);const s=await(null==(t=i(dte(a[e])))?void 0:t.unwrap());1==(null==(n=null==s?void 0:s.data)?void 0:n.statusCode)?(x.success("Publish status updated successfully!"),await R()):x.error("Failed to update blog status. Please try again.")})(t),children:"Y"===e.IsPublished?"Unpublish":"Publish"})]})]},e.BlogId)}))})}):Ye.jsxs("div",{className:"blog-placeholder-content",children:[Ye.jsx("div",{className:"blog-placeholder-icon",children:Ye.jsx(lg,{})}),Ye.jsx("h2",{children:"No Blog Posts Found"}),Ye.jsx("p",{children:'Click "Create Blog Post" to start creating a new blog post'})]})]})]}),Ye.jsxs(SP,{open:F,title:"image"===T?"Image Preview":"Video Preview",handleCancel:()=>{B(!1),k(null),E("")},width:800,footer:null,children:[P&&"image"===T&&Ye.jsx("img",{src:q(P),alt:"Preview",style:{width:"100%",maxHeight:"500px",objectFit:"contain"}}),P&&"video"===T&&Ye.jsx("video",{controls:!0,style:{maxWidth:"200px",maxHeight:"120px",marginTop:"8px",borderRadius:"6px"},children:Ye.jsx("source",{src:q(P),type:"string"==typeof vid?"video/mp4":P.type})})]})]})},Pfe=()=>{const e=um(),[t,n]=a.useState(!0);a.useState([{}]);const[i,r]=a.useState({pageName:"",metaTitle:"",metaDescription:"",keywords:"",imageAltText:""}),[s,l]=a.useState([]),[o,d]=a.useState(!1);a.useEffect((()=>{c()}),[]);const c=async()=>{var t,n;let i=await e(HP({TypeName:"SEO"})).unwrap();1==(null==(t=null==i?void 0:i.data)?void 0:t.statusCode)&&l(null==(n=null==i?void 0:i.data)?void 0:n.data)},u=async t=>{var n,a,s;const{name:l,value:o}=t.target;if("pageName"===l)if(o)try{const t=await e(CU({PageId:o})).unwrap();if(1===(null==(n=null==t?void 0:t.data)?void 0:n.statusCode)&&(null==(s=null==(a=null==t?void 0:t.data)?void 0:a.data)?void 0:s.length)>0){const e=t.data.data[0];r({pageName:o,metaTitle:e.MetaTitle||"",metaDescription:e.MetaDesc||"",keywords:e.Keywords||"",imageAltText:e.ImgAltText||""}),d(!0)}else r({pageName:o,metaTitle:"",metaDescription:"",keywords:"",imageAltText:""}),d(!1)}catch(c){r({pageName:o,metaTitle:"",metaDescription:"",keywords:"",imageAltText:""}),d(!1)}else r({pageName:"",metaTitle:"",metaDescription:"",keywords:"",imageAltText:""}),d(!1);else r({...i,[l]:o})};return Ye.jsxs("div",{className:"seo-form-master",children:[Ye.jsx("div",{className:"seo-form-header",children:Ye.jsxs("div",{className:"seo-form-header-content",children:[Ye.jsx("h2",{children:"SEO Management"}),Ye.jsx("p",{children:"Configure SEO settings for pages and content."})]})}),Ye.jsx("div",{className:"seo-form-layout",children:Ye.jsx("div",{className:"seo-form-left",children:Ye.jsxs("div",{className:"seo-form-container",children:[Ye.jsx("h3",{children:"SEO Configuration"}),Ye.jsxs("form",{onSubmit:async t=>{if(t.preventDefault(),!i.pageName)return void x.error("Please select a page");const n={PageId:i.pageName,MetaTitle:i.metaTitle,MetaDesc:i.metaDescription,Keywords:i.keywords,ImgAltText:i.imageAltText,ImageUrl:"",ActiveStatus:"A",CreatedBy:1};try{o?(await e(jU(n)).unwrap(),x.success("SEO Settings updated successfully!")):(await e(wU(n)).unwrap(),x.success("SEO Settings created successfully!"),d(!0)),await(async e=>{try{await fetch("/api/update-seo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch(t){}})({metaTitle:i.metaTitle,metaDescription:i.metaDescription,keywords:i.keywords})}catch(a){x.error("Failed to save SEO settings")}},children:[Ye.jsxs("div",{className:"seo-form-field",children:[Ye.jsx("label",{children:"Select Page *"}),Ye.jsxs("select",{name:"pageName",value:i.pageName,onChange:u,required:!0,children:[Ye.jsx("option",{value:"",children:"Choose a page..."}),null==s?void 0:s.map((e=>Ye.jsx("option",{value:e.ConfigId,children:e.ConfigName},e.ConfigId)))]})]}),Ye.jsxs("div",{className:"seo-form-field",children:[Ye.jsx("label",{children:"Meta Title"}),Ye.jsx("input",{type:"text",name:"metaTitle",value:i.metaTitle,onChange:u,placeholder:"Enter meta title..."})]}),Ye.jsxs("div",{className:"seo-form-field",children:[Ye.jsx("label",{children:"Meta Description"}),Ye.jsx("textarea",{name:"metaDescription",value:i.metaDescription,onChange:u,rows:"4",placeholder:"Enter meta description..."})]}),Ye.jsxs("div",{className:"seo-form-field",children:[Ye.jsx("label",{children:"Keywords"}),Ye.jsx("input",{type:"text",name:"keywords",value:i.keywords,onChange:u,placeholder:"Enter keywords separated by commas..."})]}),Ye.jsxs("div",{className:"seo-form-field",children:[Ye.jsx("label",{children:"Image Alt Text"}),Ye.jsx("input",{type:"text",name:"imageAltText",value:i.imageAltText,onChange:u,placeholder:"Enter image alt text..."})]}),Ye.jsxs("div",{className:"seo-form-actions",children:[Ye.jsx("button",{type:"submit",className:"seo-form-btn-primary",children:o?"Update SEO Settings":"Create SEO Settings"}),Ye.jsx("button",{type:"button",className:"seo-form-btn-secondary",onClick:()=>n(!1),children:"Cancel"})]})]})]})})})]})},kfe="/",Tfe=()=>{const[e,t]=a.useState(0),[n,i]=a.useState(!1),r=Qt(),s=um(),l=iA("UserType"),o=[{id:0,title:"Blog",subtitle:"Post Content Control",icon:Ye.jsx(PU,{size:25}),component:Bfe,key:"BlogSection"},{id:10,title:"SEO",subtitle:"Content Management",icon:Ye.jsx(Mv,{}),component:Pfe,key:"SEOForm"}],d=o.find((t=>t.id===e));return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(bU,{title:"PozoApp Admin Panel - Manage Your Business Settings",description:"Access PozoApp's comprehensive admin panel to configure your business settings, manage users, and customize your experience.",keywords:"admin panel, business settings, user management, configuration",url:`${kfe}admin-panel`,image:"/og/admin-og.jpg",type:"website",noindex:!0}),Ye.jsxs("div",{className:"admin-panel-container",children:[Ye.jsxs("div",{className:"admin-panel-mobile-header",children:[Ye.jsxs("div",{className:"admin-panel-mobile-logo",children:[Ye.jsx(rv,{})," Admin Panel"]}),Ye.jsx("button",{className:"admin-panel-mobile-toggle",onClick:()=>i(!n),children:n?Ye.jsx(Uv,{}):Ye.jsx(Hm,{})})]}),Ye.jsxs("div",{className:"admin-panel-sidebar "+(n?"mobile-open":""),children:[Ye.jsx("div",{className:"admin-panel-sidebar-header",children:Ye.jsxs("div",{className:"admin-panel-logo",children:[Ye.jsx(rv,{}),Ye.jsx("h1",{children:"Admin Panel"})]})}),Ye.jsx("nav",{className:"admin-panel-sidebar-nav",children:o.map((n=>Ye.jsxs("div",{className:"admin-panel-nav-item "+(e===n.id?"active":""),onClick:()=>(e=>{t(null==e?void 0:e.id),i(!1)})(n),children:[Ye.jsx("div",{className:"admin-panel-nav-icon",children:n.icon}),Ye.jsxs("div",{className:"admin-panel-nav-content",children:[Ye.jsx("span",{className:"admin-panel-nav-title",children:n.title}),Ye.jsx("span",{className:"admin-panel-nav-subtitle",children:n.subtitle})]}),e===n.id&&Ye.jsx("div",{className:"admin-panel-active-indicator"})]},n.id)))}),Ye.jsxs("div",{className:"admin-panel-sidebar-footer",children:[Ye.jsxs("div",{className:"admin-panel-user-profile",children:[Ye.jsx("div",{className:"admin-panel-user-avatar",children:"SA"}),Ye.jsxs("div",{className:"admin-panel-user-info",children:[Ye.jsx("span",{className:"admin-panel-user-name",children:"Marketing Administrator"}),Ye.jsx("span",{className:"admin-panel-user-role",children:"Super Admin"})]})]}),Ye.jsxs("button",{className:"admin-panel-signout-btn",onClick:async()=>{var e;const t=iA("UserId"),n=await s(fm({UserId:t,status:"N"})).unwrap();1===(null==(e=null==n?void 0:n.data)?void 0:e.statusCode)&&(rA(),r(`${kfe}`))},children:[Ye.jsx(kv,{})," Sign Out"]})]})]}),n&&Ye.jsx("div",{className:"admin-panel-mobile-overlay",onClick:()=>i(!1)}),Ye.jsxs("div",{className:"admin-panel-main-content",children:[Ye.jsxs("div",{className:"admin-panel-top-header",children:[Ye.jsxs("div",{className:"admin-panel-breadcrumbs",children:[Ye.jsx("span",{children:"Dashboard"}),d&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(ev,{className:"admin-panel-breadcrumb-arrow"}),Ye.jsxs("span",{children:[d.title," Management"]})]})]}),Ye.jsxs("div",{className:"backtohomefromAdminpanel",onClick:()=>r("Super Admin"===l?`${kfe}landing-page/home`:`${kfe}`),children:["Back to Home ",Ye.jsx(SO,{size:18})]})]}),Ye.jsx("div",{className:"admin-panel-content-area",children:(null==d?void 0:d.component)?Ye.jsx(d.component,{sectionKey:d.key}):Ye.jsxs("div",{className:"admin-panel-placeholder-content",children:[Ye.jsx("div",{className:"admin-panel-placeholder-icon",children:Ye.jsx(Lv,{})}),Ye.jsx("h2",{children:"Welcome to Admin Panel"}),Ye.jsx("p",{children:"Select a section from the sidebar to get started"})]})})]})]})]})};a.lazy((()=>pr((()=>import("./SolutionsList-e4ceaac8.js")),["assets/SolutionsList-e4ceaac8.js","assets/vendor-c65bce76.js","assets/ui-2d515953.js","assets/utils-faf49605.js","assets/editor-e98c3426.js"])));function Efe(e){return Cn({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386 13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z",fill:"currentColor"}}]})(e)}const Dfe=({allowComments:e,blogId:t})=>{var n;const[i,r]=a.useState(null),s=um(),l=Qt(),o=iA("UserId"),[d,c]=a.useState({name:"",email:"",comment:""});a.useEffect((()=>{(async()=>{try{const e=await s(pte()).unwrap();if(1===e.data.statusCode){const t=e.data.data;r(t)}}catch(e){}})()}),[]);const u=e=>{c({...d,[e.target.name]:e.target.value})};return Ye.jsxs("div",{className:"blog-extras",children:["Y"===e&&Ye.jsxs("div",{className:"comments-section",children:[Ye.jsx("h3",{children:"Leave a Comment"}),Ye.jsxs("form",{onSubmit:async e=>{var t,n;e.preventDefault();try{const e={Name:null==d?void 0:d.name,Email:null==d?void 0:d.email,Comment:null==d?void 0:d.comment,CreatedBy:o||0},i=await(null==(t=s(hte(e)))?void 0:t.unwrap());1===(null==(n=null==i?void 0:i.data)?void 0:n.statusCode)?(x.success("Comment submitted successfully!"),c({name:"",email:"",comment:""})):x.error("Failed to submit comment. Please try again.")}catch(i){x.error("Failed to submit comment. Please try again.")}},className:"comment-form",children:[Ye.jsx("div",{className:"form-group",children:Ye.jsx("input",{type:"text",name:"name",placeholder:"Your Name",value:d.name,onChange:u,required:!0})}),Ye.jsx("div",{className:"form-group",children:Ye.jsx("input",{type:"email",name:"email",placeholder:"Your Email",value:d.email,onChange:u,required:!0})}),Ye.jsx("div",{className:"form-group",children:Ye.jsx("textarea",{name:"comment",placeholder:"Write your comment...",value:d.comment,onChange:u,rows:"4",required:!0})}),Ye.jsx("button",{type:"submit",className:"submit-btn",children:"Post Comment"})]})]}),i&&(null==(n=null==i?void 0:i.filter((e=>"Y"===(null==e?void 0:e.Popular)&&(null==e?void 0:e.BlogId)!==t)))?void 0:n.length)>0&&Ye.jsxs("div",{className:"featured-posts",children:[Ye.jsx("h3",{children:"Featured Posts"}),i.filter((e=>"Y"===e.Popular&&(null==e?void 0:e.BlogId)!==t)).slice(0,3).map((e=>Ye.jsxs("div",{className:"featured-post-item",onClick:()=>l(`/home/blog/${e.Slug}`),style:{cursor:"pointer"},children:[Ye.jsx("img",{src:e.HeaderImage,alt:"Post"}),Ye.jsxs("div",{className:"featured-post-content",children:[Ye.jsx("h4",{children:e.BlogTitle}),Ye.jsx("span",{children:new Date(e.CreatedDate).toLocaleDateString()})]})]},e.BlogId)))]}),Ye.jsxs("div",{className:"social-section",children:[Ye.jsx("h3",{children:"Follow Us"}),Ye.jsxs("div",{className:"social-links",children:[Ye.jsx("a",{href:"https://www.facebook.com/pozomind/",className:"social-link facebook",target:"_blank",rel:"noopener noreferrer",children:Ye.jsx(Pm,{})}),Ye.jsx("a",{href:"https://www.instagram.com/pozomind/",className:"social-link instagram",target:"_blank",rel:"noopener noreferrer",children:Ye.jsx(Tm,{})}),Ye.jsx("a",{href:"https://wa.me/917324000014",className:"social-link whatsapp",target:"_blank",rel:"noopener noreferrer",children:Ye.jsx(Um,{})})]})]})]})},Lfe="/home/",Ufe="/home/",_fe=[{question:"What is POZO?",answer:"Pozomind is a SaaS product startup, established with a vision of empowering businesses to enhance their potential through innovation, experience and cost efficiency."},{question:"Who is POZO for?",answer:"POZO is exclusively designed to meet specific business needs of SMBs who are rapidly evolving. We create visibility, eliminate operational complexity and help you generate revenue."},{question:"Does POZO work offline during internet drops?",answer:"Yes, POZO works offline during internet drops."},{question:"Which weighing scales, printers and scanners are supported?",answer:"Customisable to all scales grades"},{question:"Do you support WhatsApp e-bills?",answer:"Yes but the service was supposed to be opted by the customer"},{question:"How quickly can I get set up?",answer:"24 to 48 Hrs"},{question:"Is my data safe, and who owns it?",answer:"Yes, data cant be accessed by POZO team also with client's approval"},{question:"Do you offer on-site setup in Bengaluru?",answer:"Yes, dedicated team and office is there to support in Bangalore"}],Ofe="/home/",Mfe=[{path:`${Ofe}`,component:()=>{const e=a.useRef(null),t=Qt(),[n,i]=a.useState(!0),[r,s]=a.useState(!0),[l,o]=a.useState(null),[d,c]=a.useState(!1),[u,p]=a.useState(!1),[A,h]=a.useState(!1),[f,m]=a.useState([]),[v,g]=a.useState([]),[y,x]=a.useState([]);a.useState(null);const[b,w]=a.useState(!1),[j,C]=a.useState(!1),[S,N]=a.useState(!1),[I,F]=a.useState(!1),[B,P]=a.useState(!1),[k,T]=a.useState(!1),[E,D]=a.useState(!1),L=a.useRef(null),U=a.useRef(null),_=um();iA("UserId");const[O,M]=a.useState(null),[R,Q]=a.useState([]);a.useEffect((()=>{(async()=>{var e,t,n,i,a;try{const[r,s,l]=await Promise.all([_(HP({TypeName:"SEO"})).unwrap(),_(dL()).unwrap(),_(cL({username:"1000000001",password:"1234"})).unwrap()]);if(1===(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)){const e=r.data.data;Q(e);const n=null==(t=e.find((e=>"home"===e.ConfigName)))?void 0:t.ConfigId;n&&_(CU({PageId:n})).unwrap().then((e=>{var t;if(1===(null==(t=null==e?void 0:e.data)?void 0:t.statusCode)){const t=e.data.data.find((e=>e.PageId===n));t&&M({metaTitle:null==t?void 0:t.MetaTitle,metaDescription:null==t?void 0:t.MetaDesc,keywords:null==t?void 0:t.Keywords,imageAltText:null==t?void 0:t.ImgAltText})}}))}if(1===(null==(n=null==s?void 0:s.data)?void 0:n.statusCode)){const e=null==(a=null==(i=null==s?void 0:s.data)?void 0:i.data)?void 0:a.filter((e=>"A"===(null==e?void 0:e.ActiveStatus)));x(e)}}catch(r){}})()}),[]),a.useEffect((()=>{const e=setTimeout((()=>s(!1)),300),t=new Cre({duration:1.2,easing:e=>Math.min(1,1.001-Math.pow(2,-10*e)),smoothWheel:!0,smoothTouch:!0,wheelMultiplier:1,touchMultiplier:2});return o(t),t.on("scroll",(e=>{_Ae.update(),c(e.scroll>500),w(e.scroll>50)})),kce.ticker.add((e=>{t.raf(1e3*e)})),kce.ticker.lagSmoothing(0),()=>{clearTimeout(e),t.destroy(),_Ae.getAll().forEach((e=>e.kill()))}}),[]),a.useEffect((()=>{y.length>0||(async()=>{var e,t,n;try{const i=await _(aL()).unwrap();if(1===(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)){const e=null==(t=null==i?void 0:i.data)?void 0:t.data;m(e),(null==(n=null==e?void 0:e[0])?void 0:n.CateId)&&_(lL(e[0].CateId)).unwrap().then((e=>{var t,n,i;if(1===(null==(t=null==e?void 0:e.data)?void 0:t.statusCode)){const t=null==(i=null==(n=null==e?void 0:e.data)?void 0:n.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));g(t)}})).catch((e=>{}))}}catch(i){}})()}),[f]);const H=()=>p(!1),V=()=>h(!1);if(r)return Ye.jsx(Che,{});return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(bU,{title:(null==O?void 0:O.metaTitle)||"Retail ERP & POS for Indian MSMEs | POZO",description:(null==O?void 0:O.metaDescription)||"Fast billing, smart inventory, GST-ready POS. POZO helps kirana, mini-supermarkets & retail chains speed checkout, connect weighing scales, and manage multi-store ops.",keywords:(null==O?void 0:O.keywords)||"POS software, retail ERP, billing software, inventory management, GST billing, weighing scale POS, multi-store ERP",url:"/",image:(null==O?void 0:O.imageAltText)||"/og/home.jpg",type:"website",customJsonLd:{"@context":"https://schema.org","@graph":[{"@type":"Organization",name:"POZO",url:"https://www.pozo.app/",logo:"https://www.pozo.app/static/brand/logo.png",foundingDate:"2019",sameAs:[]},{"@type":"WebSite",name:"POZO",url:"https://www.pozo.app/",potentialAction:{"@type":"SearchAction",target:"https://www.pozo.app/search?q={query}","query-input":"required name=query"}},{"@type":"WebPage",url:"https://www.pozo.app/",name:"Retail ERP & POS for Indian MSMEs | POZO",isPartOf:{"@id":"https://www.pozo.app/"},description:"Fast billing, smart inventory, GST-ready POS. POZO helps kirana, mini-supermarkets & retail chains speed checkout, connect weighing scales, and manage multi-store ops."}]}}),Ye.jsxs("div",{className:"HomePage-Master",children:[n&&Ye.jsxs("div",{style:{cursor:"pointer"},className:"headLineJoin",children:[Ye.jsx("div",{onClick:()=>{t("/live-Session")},children:"Live Session - No Cost to Join!"}),Ye.jsx(ey,{onClick:()=>{document.querySelector(".headLineJoin").style.animation="fadeOut 0.5s ease-out forwards",setTimeout((()=>i(!1)),500)},style:{cursor:"pointer"}})]}),Ye.jsx(XAe,{isScrolled:b,forceTopZero:!0,AppCategory:y,closingIndustry:S,setClosingIndustry:N,industry:j,setIndustry:C,companyRef:L,closingCompany:B,setClosingCompany:P,company:I,setCompany:F,solutionsOpen:k,setSolutionsOpen:T,closingSolutions:E,setClosingSolutions:D,solutionsRef:U,demoModal:u,handleDemoModal:()=>p(!0),handleDemoModalClose:H}),Ye.jsx("section",{children:Ye.jsx(jhe,{modalSignIn:A,handleModalSignIn:()=>h(!0),handleModalSignInClose:V})}),Ye.jsxs(a.Suspense,{fallback:null,children:[Ye.jsx("section",{children:Ye.jsx(She,{})}),Ye.jsx("section",{children:Ye.jsx(Nhe,{})}),Ye.jsx("section",{children:Ye.jsx(Ihe,{})}),Ye.jsx("section",{children:Ye.jsx(Fhe,{})}),Ye.jsx("section",{children:Ye.jsx(Bhe,{})}),Ye.jsx("section",{children:Ye.jsx(Phe,{})}),Ye.jsx("section",{children:Ye.jsx(khe,{AppCategory:y})})]}),Ye.jsx("div",{className:"folatingWhatsapp",onClick:()=>window.open("https://wa.me/917324000014","_blank"),style:{cursor:"pointer"},children:Ye.jsx(Um,{})}),d&&Ye.jsx("div",{className:"backToTop",onClick:()=>{l?l.scrollTo(0,{duration:1.5}):window.scrollTo({top:0,behavior:"smooth"})},children:Ye.jsx(tv,{})}),j&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(The,{industryRef:e,closingIndustry:S,AppCategory:y,redirectApp:async(e,n)=>{nA("AppId",n),nA("AppName",e);const i=e.replace(/[,]/g,"").replace(/\s+/g,"-").replace(/&/g,"and").replace(/[^a-z0-9-]/gi,"").toLowerCase();t(`/industries/${i}`),window.location.reload()}})}),I&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(Ehe,{companyRef:L,closingCompany:B})}),k&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(Dhe,{solutionsRef:U,closingSolutions:E})}),u&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(Lhe,{onClose:H})}),A&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(Uhe,{onClose:V})}),Ye.jsx(YAe,{})]})]})},access:"Public"},{path:`${Ofe}development`,component:()=>Ye.jsx("div",{className:"coming-soon-container",children:Ye.jsxs("div",{className:"coming-soon-sub-container",children:[Ye.jsx("div",{children:Ye.jsx("img",{src:"/assets/commingsoon-3a72aafe.png",style:{width:"15rem"},alt:""})}),Ye.jsx("h1",{children:"Coming Soon"}),Ye.jsx("p",{children:"We're working hard to bring you an amazing experience!"}),Ye.jsxs("div",{className:"countdown",children:[Ye.jsx("p",{children:"Stay tuned! Launching in:"}),Ye.jsx("div",{className:"countdown-timer"})]})]})}),access:"Public"},{path:`${Ofe}adminpanel`,component:()=>Ye.jsx(Ife,{children:Ye.jsx(Tfe,{})}),access:"Marketing",empAccess:"Admin Panel"},{path:`${Ofe}:appName`,component:c8,access:"Public"},{path:`${Ofe}industries/:appName`,component:c8,access:"Public"},{path:`${Ofe}feature1`,component:d5},{path:`${Ofe}pdf`,component:uE,access:"Admin"},{path:`${Ofe}payment-page-download`,component:()=>{var e,t,n,i,r,s,l,o,d,c,u,p,A,h,f,m;const v=um(),[g,y]=a.useState([]),[x,b]=a.useState(null),[w,j]=a.useState(null),[C,S]=a.useState(null),[N,I]=a.useState(null);a.useEffect((()=>{(async()=>{var e,t;const n=await function(){const e=window.location.search;if(!e)return{};const t=new URLSearchParams(e),n={};for(const[i,a]of t.entries())n[i]=a;return n}();if(n){let i=await v(Jb(null==n?void 0:n.BookingId)).unwrap();1===(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&y(null==(t=null==i?void 0:i.data)?void 0:t.data)}})()}),[]),a.useEffect((()=>{(null==g?void 0:g.length)>0&&F()}),[g]);const F=async()=>{const e=document.getElementById("Pdfbodydownload");try{const t=new W8("p","pt","a4"),n=t.internal.pageSize.getWidth(),i=t.internal.pageSize.getHeight();k9(e).then((e=>{const a=e.toDataURL("image/png");t.addImage(a,"PNG",0,0,n,i),t.save("PozoInvoice.pdf")}))}catch(t){}};return Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{className:"Pdf-body",id:"Pdfbodydownload",children:[Ye.jsxs("div",{className:"Pdf-Div",children:[Ye.jsxs("div",{style:{color:"#2b2b2b"},children:[Ye.jsx("img",{src:cE,className:"headlogo-img"}),Ye.jsxs("div",{children:[Ye.jsx("p",{className:"Pdf-head",children:" Invoice "}),Ye.jsx("p",{style:{fontFamily:"Poppins",color:"#52C41A"},children:" Pozomind Technologies "})]})]}),Ye.jsxs("div",{className:"Pdf-amt-details",children:[Ye.jsxs("p",{children:[" Invoice Number : ",Ye.jsxs("span",{className:"Pdf-amt-digit",children:[" ",(null==g?void 0:g.length)>0?null==(e=g[0])?void 0:e.UniqueId:null," "]})," "]}),Ye.jsxs("p",{children:[" Amount: ",Ye.jsxs("span",{className:"Pdf-amt-digit",children:["₹ ",(null==g?void 0:g.length)>0?null==(t=g[0])?void 0:t.NetPrice:null," "]})," "]})]}),Ye.jsxs("div",{className:"Pdf-amt-details",children:[Ye.jsxs("p",{children:[" Payment Method : ",Ye.jsxs("span",{className:"Pdf-amt-digit",children:[" ",(null==g?void 0:g.length)>0?null==(n=g[0])?void 0:n.PaymentModeName:null," "]})]}),Ye.jsxs("p",{children:[" Date : ",Ye.jsxs("span",{className:"Pdf-amt-digit",children:[" ",(null==g?void 0:g.length)>0?tA(null==(i=g[0])?void 0:i.PurDate):null," "]})," "]})]})]}),Ye.jsx("div",{className:"Pdf-Cont-Div",children:Ye.jsxs("div",{className:"Pdf-cont",children:[Ye.jsxs("div",{className:"Pdf-cont-txt",children:[Ye.jsx("p",{className:"Pdf-cont-subhead",children:" Billed From"}),Ye.jsxs("p",{className:"Pdf-cont-text",children:["Pozomind Technologies Private Limited",Ye.jsx("p",{children:"Phone : 7324000011"})]})]}),Ye.jsxs("div",{className:"Pdf-cont-txt",children:[Ye.jsx("p",{className:"Pdf-cont-subhead",children:" Billed To "}),Ye.jsxs("p",{className:"Pdf-cont-text",children:[(null==g?void 0:g.length)>0?null!=(null==(r=g[0])?void 0:r.UserName)?null==(s=g[0])?void 0:s.UserName:null==(l=g[0])?void 0:l.MobileNo:"",",",Ye.jsx("br",{}),Ye.jsx("p",{className:"Pdf-cont-text",children:null!=x?x:null}),null!=C?C:null," ",null!=N?N:null," ",null!=w?w:null,Ye.jsxs("p",{children:["Phone : ",(null==g?void 0:g.length)>0?null==(o=g[0])?void 0:o.MobileNo:null]})]})]})]})}),Ye.jsx("hr",{className:"new3"}),Ye.jsx("div",{className:"Pdf-Table-Div",children:Ye.jsxs("table",{children:[Ye.jsx("caption",{children:"Statement Summary"}),Ye.jsx("thead",{children:Ye.jsxs("tr",{children:[Ye.jsx("th",{scope:"col",children:"Description"}),Ye.jsx("th",{scope:"col",children:"Purchase Date"}),Ye.jsx("th",{scope:"col",children:"Period"}),Ye.jsx("th",{scope:"col",children:"Amount"})]})}),Ye.jsx("tbody",{children:Ye.jsxs("tr",{children:[Ye.jsx("td",{"data-label":"Account",children:(null==g?void 0:g.length)>0?null==(d=g[0])?void 0:d.AppName:null}),Ye.jsx("td",{"data-label":"Due Date",children:(null==g?void 0:g.length)>0?tA(null==(c=g[0])?void 0:c.PurDate):null}),Ye.jsxs("td",{"data-label":"Period",children:[(null==g?void 0:g.length)>0?tA(null==(u=g[0])?void 0:u.ValidityStart):null," - ",(null==g?void 0:g.length)>0?tA(null==(p=g[0])?void 0:p.ValidityEnd):null]}),Ye.jsxs("td",{"data-label":"Amount",children:["₹",(null==g?void 0:g.length)>0?null==(A=g[0])?void 0:A.NetPrice:null]})]})})]})}),Ye.jsx("hr",{className:"new3"}),Ye.jsx("div",{className:"Pdf-Table-Div",children:Ye.jsx("table",{children:Ye.jsxs("tbody",{children:[Ye.jsxs("tr",{children:[Ye.jsx("th",{children:" "}),Ye.jsx("th",{children:" "}),Ye.jsx("th",{"data-label":"Sub Total",children:"Sub Total"}),Ye.jsxs("td",{children:["₹",(null==g?void 0:g.length)>0?null==(h=g[0])?void 0:h.Price:null]})]}),Ye.jsxs("tr",{children:[Ye.jsx("td",{children:" "}),Ye.jsx("td",{children:" "}),Ye.jsx("th",{"data-label":"Tax",children:"Tax "}),Ye.jsxs("td",{children:["₹",(null==g?void 0:g.length)>0?null==(f=g[0])?void 0:f.TaxAmount:0]})]}),Ye.jsxs("tr",{children:[Ye.jsx("th",{children:" "}),Ye.jsx("th",{children:" "}),Ye.jsx("th",{"data-label":"Total",children:"Total"}),Ye.jsxs("td",{children:["₹",(null==g?void 0:g.length)>0?null==(m=g[0])?void 0:m.NetPrice:null]})]})]})})}),Ye.jsx("hr",{className:"new4"})]})})},access:"Admin"},{path:`${Ofe}public-signup`,component:()=>{const e=um(),t=Qt(),n=a.useRef(null),[i,r]=a.useState(!1),[s,l]=a.useState(""),[o,d]=a.useState(""),[c,u]=a.useState(""),[p,A]=a.useState(""),[h,f]=a.useState(""),[m,v]=a.useState(""),[g,y]=a.useState(""),[x,b]=a.useState(!1),[w,j]=a.useState(!1),[C,S]=a.useState(null),[N,F]=a.useState(!1),[B,P]=a.useState(null),[T,E]=a.useState(null),[D,L]=a.useState(!1),[U,_]=a.useState(!1),[O,M]=a.useState(null);a.useEffect((()=>{if(0===C&&(j(!1),S(null)),!C)return;const e=setInterval((()=>{S(C-1)}),1e3);return()=>clearInterval(e)}),[C]),a.useEffect((()=>{let e=o+""+c+p+h+m+g;6===e.length&&(parseInt(e)===s?H(O):(F(!1),P("warning"),E("please enter valid OTP"),F(!0),setTimeout((()=>{F(!1),P(null),E(null)}),3e3)))}),[o,c,p,h,m,g]);const H=async n=>{var i,a,r;let s=n;const l=await e(wm({MobileNo:s})).unwrap();if(1===(null==(i=null==l?void 0:l.data)?void 0:i.statusCode)){let e=null==(a=null==l?void 0:l.data)?void 0:a.UserId;nA("UserId",e),nA("UserType","Admin"),iA("AppId")?t(`${ED}invoice-detail`):t(`${ED}landing-page/apps`)}else F(!1),P("warning"),E(null==(r=null==l?void 0:l.data)?void 0:r.response),F(!0),setTimeout((()=>{F(!1),P(null),E(null)}),3e3)},V=async(e,t)=>{var n,i,a,r,s,l;switch(e){case"setotp1":await d(null==(n=null==t?void 0:t.target)?void 0:n.value);break;case"setotp2":u(null==(i=null==t?void 0:t.target)?void 0:i.value);break;case"setotp3":A(null==(a=null==t?void 0:t.target)?void 0:a.value);break;case"setotp4":f(null==(r=null==t?void 0:t.target)?void 0:r.value);break;case"setotp5":v(null==(s=null==t?void 0:t.target)?void 0:s.value);break;case"setotp6":await y(null==(l=null==t?void 0:t.target)?void 0:l.value)}},z=e=>{if("Delete"===e.key||"Backspace"===e.key){const t=e.target.tabIndex-2;t>-1&&e.target.form.elements[t].focus()}else{const t=e.target.tabIndex;t<6&&e.target.form.elements[t].focus()}},q=async()=>{b(!0)};return Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{className:"Signup_container",children:[N?Ye.jsx(Qy,{messageType:B,messageData:T}):null,Ye.jsx("div",{className:"Signup_Card",children:Ye.jsxs(R,{children:[Ye.jsxs(Q,{flex:"1 1 100px",children:[Ye.jsxs("div",{className:"Signup_headtexts",children:[Ye.jsxs("a",{onClick:()=>t(`${ED}`),children:[" ",Ye.jsx($,{})," Back to Home"]}),Ye.jsx("h5",{className:"Signuptxt1",children:"Welcome to Our POZO"}),Ye.jsxs("p",{className:"Signuptxt2",children:["Explore Free products"," ",Ye.jsxs("a",{style:{fontWeight:"400",fontSize:"14px",color:"gray"},children:["with a new POZO account..."," "]})]}),Ye.jsx("img",{src:"/assets/globe-GIF-source-58d7e5d1.gif",className:"Globegif2"})]}),Ye.jsxs("div",{className:"Signupimgdiv",children:[" ",Ye.jsx("img",{src:"/assets/userreg-eb98e1d2.jpg",className:"Signupimg"})," "]})]}),Ye.jsx(Q,{flex:"1 1 200px",children:Ye.jsx("div",{className:"Signupbg",children:Ye.jsxs(I,{ref:n,onFinish:async t=>{var n,i;d(""),u(""),A(""),f(""),v(""),y(""),S(15),j(!0),L(!0);let a=t.MobileNo;M(t.MobileNo);const s=await e(bm({MobileNo:a})).unwrap();1===(null==(n=null==s?void 0:s.data)?void 0:n.statusCode)?(_(!0),F(!1),P("success"),E("OTP Sended Successfully"),F(!0),setTimeout((()=>{F(!1),P(null),E(null)}),3e3),r(!0),l(null==(i=null==s?void 0:s.data)?void 0:i.OTP)):(F(!1),j(!1),P("warning"),E("OTP Not Sended"),F(!0),setTimeout((()=>{F(!1),P(null),E(null)}),3e3))},children:[Ye.jsx("img",{src:TD,style:{width:"7vh"}}),Ye.jsx("h5",{className:"Signuptxt1",children:"Get Started for Free"}),Ye.jsxs("div",{className:"inputfieldstyle",children:[Ye.jsx(I.Item,{name:"MobileNo",rules:[{required:!0}],children:Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",type:"numeric",onChange:async e=>{var t,n;r(!1),_(!1),l(""),d(""),u(""),A(""),f(""),b(!1),j(!1),10===(null==(t=null==e?void 0:e.target)?void 0:t.value.length)&&(await q(null==(n=null==e?void 0:e.target)?void 0:n.value),await r(!0))},label:"Mobile Number",id:"MobileNo",field:"MobileNo",maxlength:"10",suffix:Ye.jsx(sg,{className:"site-form-item-icon "})})}),!0===i&&!0===U?Ye.jsx(I,{children:Ye.jsxs("div",{className:"otpContainer",children:[Ye.jsxs("h",{className:"timersec",children:[" ",Ye.jsx(nD,{})," ",C," "]}),Ye.jsx("input",{name:"otp1",type:"text",autoComplete:"off",className:"otpInput",value:o,onChange:e=>V("setotp1",e),tabIndex:"1",maxLength:"1",onKeyUp:e=>z(e)}),Ye.jsx("input",{name:"otp2",type:"text",autoComplete:"none",className:"otpInput",value:c,onChange:e=>V("setotp2",e),tabIndex:"2",maxLength:"1",onKeyUp:e=>z(e)}),Ye.jsx("input",{name:"otp3",type:"text",autoComplete:"none",className:"otpInput",value:p,onChange:e=>V("setotp3",e),tabIndex:"3",maxLength:"1",onKeyUp:e=>z(e)}),Ye.jsx("input",{name:"otp4",type:"text",autoComplete:"none",className:"otpInput",value:h,onChange:e=>V("setotp4",e),tabIndex:"4",maxLength:"1",onKeyUp:e=>z(e)}),Ye.jsx("input",{name:"otp5",type:"text",autoComplete:"none",className:"otpInput",value:m,onChange:e=>V("setotp5",e),tabIndex:"5",maxLength:"1",onKeyUp:e=>z(e)}),Ye.jsx("input",{name:"otp6",type:"text",autoComplete:"none",className:"otpInput",value:g,onChange:e=>V("setotp6",e),tabIndex:"6",maxLength:"1",onKeyUp:e=>z(e)})]})}):null,0!=x?Ye.jsx("div",{children:Ye.jsx(Ry,{type:"submit",buttonText:D?"Resend OTP":"Send OTP",disabled:w,icon:Ye.jsx(k,{})})}):null]})]})})}),Ye.jsxs("div",{className:"footertag",children:[" ",Ye.jsx("a",{href:"#!",className:"small text-muted ftrtxt ",children:"@2025, Pozo All Rights Reserved."})]})]})})]})})},access:"Public"},{path:`${Ofe}signinOld`,component:()=>{const e=um(),t=Mt(),n=null==t?void 0:t.state,i=Qt(),r=a.useRef(null),[s,l]=a.useState(null),[o,d]=a.useState(null),[c,u]=a.useState(!1),[p,A]=a.useState("NULL"),[h,f]=a.useState(!1),[m,v]=a.useState(!1),[g,y]=a.useState(""),[x,b]=a.useState(""),[w,C]=a.useState(""),[S,N]=a.useState(""),[F,B]=a.useState(""),[P,T]=a.useState(""),[E,D]=a.useState(!1),[L,U]=a.useState(!1),[_,O]=a.useState(!1),[M,R]=a.useState([]),[Q,H]=a.useState(null),[V,Y]=a.useState(!1),[K,G]=a.useState(!1),[$,X]=a.useState("O"),[J,te]=a.useState(null),[ne,ie]=a.useState(!1),[ae,re]=a.useState(!1),[se,le]=a.useState({type:!1,data:{}}),[oe,de]=a.useState(),ce=Tf(U_),[ue,pe]=a.useState(null),[Ae,he]=a.useState({}),[fe,me]=a.useState(""),[ve,ge]=a.useState("");let ye=[E?{value:"PIN",label:"PIN"}:null,_?{value:"Password",label:"Password"}:null,{value:"OTP",label:"OTP"}];a.useEffect((()=>{be(),async function(){await e(n_()).unwrap()}()}),[]),a.useEffect((()=>{if(0===Q&&H(null),!Q)return;const e=setInterval((()=>{H(Q-1)}),1e3);return()=>clearInterval(e)}),[Q]);const xe=async()=>{let e=localStorage.getItem("device_id");return e||(e=sO(),localStorage.setItem("device_id",e)),e};a.useEffect((()=>{let t=g+""+x+w+S+F+P;6===t.length&&(async(t,n)=>{var i,a,r,s,o;const c=await xe();let p=t;const A=await e(jm({MobileNo:p,OTP:n,IP:ue,Browser:Ae.name,Version:Ae.version,OS:fe,LoginType:ve,AnotherWindow:ne?"Y":"N",deviceId:c,SessionId:ne?"Y":"N"})).unwrap();let h=null==(i=null==A?void 0:A.data)?void 0:i.token;if(de(h),1==(null==(a=null==A?void 0:A.data)?void 0:a.statusCode))if(sessionStorage.setItem("auth",(null==(r=M[0])?void 0:r.token)||oe||h),"N"===$)Fe(J);else{let t=M[0].UserId,n="Y";const i=await e(fm({UserId:t,status:n})).unwrap();1===(null==(s=null==i?void 0:i.data)?void 0:s.statusCode)&&je(M,null==(o=null==i?void 0:i.data)?void 0:o.response,h)}else u(!1),l("warning"),d("please enter valid OTP"),u(!0),setTimeout((()=>{u(!1),l(null),d(null)}),5e3)})(J,parseInt(t))}),[g,x,w,S,F,P]);const be=async()=>{await Ne.get("https://ifconfig.me").then((e=>pe(null==e?void 0:e.data))).catch((e=>{}));const e=t_.getParser(window.navigator.userAgent);he(e.getBrowser()),me(e.getOS().name),ge(e.getPlatform().type)},we=async(e,t)=>{var n,i,a,r,s,l;switch(e){case"setotp1":await y(null==(n=null==t?void 0:t.target)?void 0:n.value);break;case"setotp2":b(null==(i=null==t?void 0:t.target)?void 0:i.value);break;case"setotp3":C(null==(a=null==t?void 0:t.target)?void 0:a.value);break;case"setotp4":N(null==(r=null==t?void 0:t.target)?void 0:r.value);break;case"setotp5":B(null==(s=null==t?void 0:t.target)?void 0:s.value);break;case"setotp6":await T(null==(l=null==t?void 0:t.target)?void 0:l.value)}},je=async(t,a,r)=>{var s,o,c,p,A,h,f,m;nA("SessionId",a),nA("userName",(null==(s=t[0])?void 0:s.UserName)?null==(o=t[0])?void 0:o.UserName:null),sessionStorage.setItem("auth",(null==(c=t[0])?void 0:c.token)||oe||r),nA("UserId",null==(p=t[0])?void 0:p.UserId),nA("UserType",null==(A=t[0])?void 0:A.UserTypeName),nA("CompId",null==(h=t[0])?void 0:h.CompId),nA("CompName",null==(f=t[0])?void 0:f.CompName),nA("MobileNo",null==(m=t[0])?void 0:m.MobileNo),"Super Admin"===t[0].UserTypeName||"Super Admin User"===t[0].UserTypeName?(l("success"),d("Sign In Successfully"),u(!0),setTimeout((()=>{u(!1),l(null),d(null)}),5e3),i(`${AO}landing-page/home`)):"Admin"===t[0].UserTypeName?(async t=>{var a,r,s,o,c,p,A,h,f,m,v;const g=null==n?void 0:n.AppId,y=await e(lw({UserId:t,AppId:g})).unwrap(),x=null==(a=null==y?void 0:y.data)?void 0:a.data,b=await e(Sm({UserId:t})).unwrap();if(l("success"),d("Sign In Successfully"),u(!0),setTimeout((()=>{u(!1),l(null),d(null)}),5e3),iA("AppId"))if("Free"===(null==n?void 0:n.PricingName))if(0===(null==x?void 0:x.length)){let t={UserId:iA("UserId"),AppId:null==n?void 0:n.AppId,PricingId:null==n?void 0:n.PricingId,PurDate:null==n?void 0:n.PurDate,PaymentStatus:null==n?void 0:n.PaymentStatus,LicenseStatus:null==n?void 0:n.LicenseStatus,Price:null==n?void 0:n.Price,ValidityStart:null==n?void 0:n.ValidityStart,ValidityEnd:null==n?void 0:n.ValidityEnd,CreatedBy:iA("UserId")};const a=[];await e(Gb(t)).unwrap(),(1===(null==(r=null==a?void 0:a.data)?void 0:r.statusCode)||2===(null==(s=null==a?void 0:a.data)?void 0:s.statusCode))&&i(`${AO}landing-page/home`)}else u(!1),l("warning"),d("Free Already Used"),u(!0),setTimeout((()=>{u(!1),l(null),d(null),i(`${null==n?void 0:n.locationpathname}`)}),3e3);else{let a={AppId:g,UserId:t,type:"L"};const r=await e(DE(a)).unwrap();let s=null==ce?void 0:ce.filter((e=>(null==e?void 0:e.AppId)===(null==n?void 0:n.AppId))),l=s.length>0&&s[0].AppName;const d=null==x?void 0:x.filter((e=>(null==e?void 0:e.AppName)===l));let u=null==d?void 0:d.filter((e=>"Free"!=e.PricingName));const v=null==u?void 0:u.reduce(((e,t)=>e+t.RemainingDays),0),y=await e(sw({UserId:t,AppId:g})).unwrap(),w=null==(c=null==(o=null==b?void 0:b.data)?void 0:o.data)?void 0:c.map((e=>({...e,Sadmin:"Y"})));i(`${AO}invoice-detail`,{state:{pricingData:null==n?void 0:n.pricingData,PackName:null==n?void 0:n.PackName,purchasedAmt:1==(null==(p=null==b?void 0:b.data)?void 0:p.statusCode)&&(null==(h=null==(A=null==y?void 0:y.data)?void 0:A.data)?void 0:h[0]),differenceDays:v,AppExpDate:d,locationpathname:null==n?void 0:n.locationpathname,Exist:1==(null==(f=null==r?void 0:r.data)?void 0:f.statusCode)&&(null==(m=r.data)?void 0:m.data),SAdmin:!1,UserId:t,lastappPurchase:w}})}else 1===(null==(v=null==b?void 0:b.data)?void 0:v.statusCode)?i(`${AO}landing-page/home`):i(`${AO}landing-page/apps`)})(t[0].UserId):"Employee"===t[0].UserTypeName&&(async t=>{var n,a,r,s,o,c,p,A,h,f,m,v,g,y,x;const b=await e(Cm({UserId:t})).unwrap();if(1===(null==(n=null==b?void 0:b.data)?void 0:n.statusCode))if(l("success"),d("Sign In Successfully"),u(!0),setTimeout((()=>{u(!1),l(null),d(null)}),5e3),1===(null==(r=null==(a=null==b?void 0:b.data)?void 0:a.data)?void 0:r.length)&&(null==(o=null==(s=null==b?void 0:b.data)?void 0:s.data[0])?void 0:o.RemainingDays)>0){let e=null==(p=null==(c=null==b?void 0:b.data)?void 0:c.data[0])?void 0:p.AppUrl;nA("BranchId",null==(h=null==(A=null==b?void 0:b.data)?void 0:A.data[0])?void 0:h.BranchId),nA("CompId",null==(m=null==(f=null==b?void 0:b.data)?void 0:f.data[0])?void 0:m.CompId),nA("AppId",null==(g=null==(v=null==b?void 0:b.data)?void 0:v.data[0])?void 0:g.AppId),nA("AppName",null==(x=null==(y=null==b?void 0:b.data)?void 0:y.data[0])?void 0:x.AppName),i(`${e}`),window.location.reload()}else i(`${AO}landing-page/home`);else u(!1),l("warning"),d("Contact Admin For Access"),u(!0),setTimeout((()=>{u(!1),l(null),d(null),i(`${AO}signin/`),window.location.reload()}),4e3)})(t[0].UserId)},Ce=e=>{if("Delete"!==e.key&&"Backspace"!==e.key||""!==e.target.value){if(/^\d$/.test(e.target.value)){const t=e.target.tabIndex;t<6&&e.target.form.elements[t].focus()}}else{const t=e.target.tabIndex-2;t>-1&&e.target.form.elements[t].focus()}},{Panel:Se}=ee,Ie=async(e,t)=>{var n,i,a,s,l,o;G(!1),A("NULL"),v(!1),Y(!1),null==(n=r.current)||n.setFieldsValue({password:""}),y(""),b(""),C(""),N(""),B(""),T(""),D(!1),U(!1),O(!1),X("O");const d=await xe();/^[0-9]*$/.test(null==(i=null==e?void 0:e.target)?void 0:i.value)&&(10===(null==(s=null==(a=null==e?void 0:e.target)?void 0:a.value)?void 0:s.length)&&t?(te(null==(l=null==e?void 0:e.target)?void 0:l.value),await Be(null==(o=null==e?void 0:e.target)?void 0:o.value,d)):U(!1))},Fe=async t=>{var a,r,s,o,c,p,A;let h=t;const f=await xe(),m=await e(wm({MobileNo:h,deviceId:f})).unwrap();if(1==(null==(a=null==m?void 0:m.data)?void 0:a.statusCode)){let t=null==(r=null==m?void 0:m.data)?void 0:r.UserId,a="Y";const l=await e(fm({UserId:t,status:a})).unwrap();if(1===(null==(s=l.data)?void 0:s.statusCode)&&nA("SessionId",null==(o=l.data)?void 0:o.response),nA("UserId",t),nA("UserType","Admin"),iA("AppId")){if(1===(null==(c=(await e(Nm({AppId:iA("AppId")})).unwrap()).data)?void 0:c.statusCode))if(null!=n&&"Free"==(null==n?void 0:n.PricingName)){let t={UserId:iA("UserId"),AppId:null==n?void 0:n.AppId,PricingId:null==n?void 0:n.PricingId,PurDate:null==n?void 0:n.PurDate,PaymentStatus:null==n?void 0:n.PaymentStatus,LicenseStatus:null==n?void 0:n.LicenseStatus,Price:null==n?void 0:n.Price,ValidityStart:null==n?void 0:n.ValidityStart,ValidityEnd:null==n?void 0:n.ValidityEnd,CreatedBy:iA("UserId")};const a=await e(Gb(t)).unwrap();1===(null==(p=null==a?void 0:a.data)?void 0:p.statusCode)&&i(`${AO}landing-page/home`)}else i(`${AO}invoice-detail`)}else i(`${AO}landing-page/apps`)}else u(!1),l("error"),d(null==(A=null==m?void 0:m.data)?void 0:A.response),u(!0),setTimeout((()=>{u(!1),l(null),d(null)}),4e3)},Be=async(t,n)=>{var i,a,r;A("NULL"),D(!1),O(!0);const s=await e(vm({MobileNo:t,deviceId:n})).unwrap();if(1===(null==(i=null==s?void 0:s.data)?void 0:i.statusCode)){const{AppId:e,CompId:t,BranchId:n,UserId:i,MobileNo:l,ActiveStatus:o,Pin:d,Password:c,SessionId:u}=null==(a=null==s?void 0:s.data)?void 0:a.data[0];if(nA("MobileNo",l),"A"===o){const e="Y"===d?"PIN":"Y"===c?"Password":"NULL";A(e),U(!0),O("Y"===c),D("Y"===d),R(null==(r=null==s?void 0:s.data)?void 0:r.data),ie("Y"===u),v("NULL"===e)}else le({type:!0,data:{AppId:e,CompId:t,BranchId:n,UserId:i}})}else A("NULL"),U(!0),X("N"),v(!0),nA("MobileNo",t)},Pe=e=>/^[6-9]\d{9}$/.test(e)?{valid:!0}:{valid:!1,message:"Invalid mobile number format"};return Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"Sing_bg signinbody",children:Ye.jsxs("div",{className:"Signin_cont",children:[c?Ye.jsx(Qy,{messageType:s,messageData:o}):null,ae&&Ye.jsx(j,{className:"signbodymodal",centered:!0,title:Ye.jsxs("div",{className:"signbodymodal-content",style:{display:"flex",gap:"1rem"},children:[Ye.jsx(Z,{style:{color:"rgb(231 176 12)",fontSize:"30px"}}),Ye.jsx("h3",{style:{color:"#e33333",fontWeight:"700"},children:"Your session is currently active in another window/browser/system"})]}),open:ae,onCancel:()=>{(async()=>{var e;re(!1),await Ie(0),null==(e=r.current)||e.resetFields()})()},maskTransitionName:"",transitionName:""}),se.type&&Ye.jsx(j,{centered:!0,title:Ye.jsx("p",{style:{color:"#e33333",fontWeight:"700"},children:"Access Denied Contact Your Administrator"}),width:700,open:se.type,onCancel:()=>{(async()=>{var e;le({type:!1,data:{}}),await Ie(0),null==(e=r.current)||e.resetFields()})()},children:Ye.jsx(pO,{data:{...se.data}})}),Ye.jsx("div",{className:"signCard",style:{width:"100%"},children:Ye.jsxs("div",{className:"signin_div",children:[Ye.jsxs("div",{className:" loginbg",children:[iA("AppName")?Ye.jsxs("div",{className:"signinhdtxt",children:[Ye.jsx("img",{src:TD,onClick:()=>i(`${AO}`),style:{width:"7vh",cursor:"pointer"}}),Ye.jsx("a",{style:{fontFamily:"Poppins ",fontSize:"12px",textTransform:"uppercase",fontWeight:"600",color:"#000"},children:iA("AppName")})]}):Ye.jsx("img",{src:TD,onClick:()=>i(`${AO}`),style:{width:"7vh",cursor:"pointer"}}),Ye.jsxs("div",{className:"signintxts",children:[Ye.jsx("h5",{className:"logintxt1",children:"Sign In"}),Ye.jsx("p",{className:"logintxt2",children:"Initiate Your Billing Journey with POZO Software"})]}),Ye.jsx(I,{ref:r,onFinish:async t=>{var n,i,a,r,s;const o=await xe();if(m)(async t=>{var n,i;y(""),b(""),C(""),N(""),B(""),T(""),H(30),G(!0);let a=t.MobileNo;if("N"===$)var r=await e(bm({MobileNo:a})).unwrap();else r=await e(xm({MobileNo:a})).unwrap();1===(null==(n=null==r?void 0:r.data)?void 0:n.statusCode)?(l("success"),d("OTP Sended Successfully"),u(!0),Y(!0),setTimeout((()=>{u(!1),l(null),d(null)}),5e3),u(!1),v(!0)):(u(!1),l("warning"),d(null==(i=null==r?void 0:r.data)?void 0:i.response),u(!0),setTimeout((()=>{u(!1),l(null),d(null)}),5e3))})(t);else{let A=t.MobileNo,h=t.password;if("PIN"===p){let t=h;var c=await e(ym({MobileNo:A,Pin:t,IP:ue,Browser:Ae.name,Version:Ae.version,OS:fe,LoginType:ve,AnotherWindow:ne?"Y":"N",deviceId:o,SessionId:ne?"Y":"N"})).unwrap()}else c=await e(gm({MobileNo:A,Password:h,IP:ue,Browser:Ae.name,Version:Ae.version,OS:fe,LoginType:ve,AnotherWindow:ne?"Y":"N",deviceId:o,SessionId:ne?"Y":"N"})).unwrap();if(1===(null==(n=null==c?void 0:c.data)?void 0:n.statusCode)){R(null==(i=null==c?void 0:c.data)?void 0:i.data);let t=null==(a=null==c?void 0:c.data)?void 0:a.data;if(ne)re(!0);else{let n=t[0].UserId,i="Y";const a=await e(fm({UserId:n,status:i})).unwrap();1==(null==(r=null==a?void 0:a.data)?void 0:r.statusCode)&&(R(t),await je(t,null==(s=null==a?void 0:a.data)?void 0:s.response))}}else u(!1),l("warning"),d("Enter Valid "+p),u(!0),setTimeout((()=>{u(!1),l(null),d(null)}),5e3)}},children:Ye.jsxs("div",{className:"inputfieldstyle",children:[Ye.jsx(I.Item,{name:"MobileNo",rules:[{validator:(e,t)=>{if(!t)return Promise.reject("Please enter your mobile number");return Pe(t).valid?Promise.resolve():Promise.reject("Please enter Valid mobile number")}}],children:Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autoComplete:"off",label:"Mobile Number",id:"MobileNo",field:"MobileNo",maxLength:"10",inputMode:"numeric",suffix:Ye.jsx(sg,{className:"site-form-item-icon "}),onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,""),onChange:e=>{const t=e.target.value,n=Pe(t);Ie(e,n.valid)}})}),"NULL"!=p&&"OTP"!=p?Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"password",rules:[{required:!0,message:"Please Enter "+p},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{className:"inputfieldstyle2",inputMode:"PIN"===p&&"numeric",name:"password",fieldState:!0,fieldApi:!0,maxLength:"PIN"===p&&"4",type:h?"text":"password",label:"Enter "+p,field:"Password",id:"password",suffix:Ye.jsx(Ye.Fragment,{children:h?Ye.jsx(q,{onClick:()=>{f(!1)}}):Ye.jsx(W,{onClick:()=>{f(!0)}})}),onInput:e=>"PIN"===p&&(e.target.value=e.target.value.replace(/[^0-9]/g,""))})})}):null,!0===m&&!0===V?Ye.jsx(I,{children:Ye.jsxs("div",{className:"otpContainer",children:[Ye.jsx("input",{name:"otp1",type:"text",autoComplete:"off",className:"otpInput",value:g,onChange:e=>we("setotp1",e),tabIndex:"1",maxLength:"1",onKeyUp:e=>Ce(e),inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")}),Ye.jsx("input",{name:"otp2",type:"text",autoComplete:"none",className:"otpInput",value:x,onChange:e=>we("setotp2",e),tabIndex:"2",maxLength:"1",onKeyUp:e=>Ce(e),inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")}),Ye.jsx("input",{name:"otp3",type:"text",autoComplete:"none",className:"otpInput",value:w,onChange:e=>we("setotp3",e),tabIndex:"3",maxLength:"1",onKeyUp:e=>Ce(e),inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")}),Ye.jsx("input",{name:"otp4",type:"text",autoComplete:"none",className:"otpInput",value:S,onChange:e=>we("setotp4",e),tabIndex:"4",maxLength:"1",onKeyUp:e=>Ce(e),inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")}),Ye.jsx("input",{name:"otp5",type:"text",autoComplete:"none",className:"otpInput",value:F,onChange:e=>we("setotp5",e),tabIndex:"5",maxLength:"1",onKeyUp:e=>Ce(e),inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")}),Ye.jsx("input",{name:"otp6",type:"text",autoComplete:"none",className:"otpInput",value:P,onChange:e=>we("setotp6",e),tabIndex:"6",maxLength:"1",onKeyUp:e=>Ce(e),inputMode:"numeric",onInput:e=>e.target.value=e.target.value.replace(/[^0-9]/g,"")})]})}):null,!1===m&&"NULL"!=p?Ye.jsx("div",{className:"Signinbtn",children:Ye.jsx(Ry,{type:"submit",buttonText:"Sign In",icon:Ye.jsx(k,{})})}):0!=L?Ye.jsxs("div",{className:"timersecdiv",children:[K&&null!=Q?Ye.jsxs("div",{className:"timersecsubdiv",children:[Ye.jsx("div",{children:Ye.jsx(z,{})}),Ye.jsxs("div",{style:{color:Q<=10?"#FF4D4F":"#52C41A"},children:["0 : ",Q<10?"0"+Q:Q," "]})]}):K?Ye.jsx(Ry,{type:"submit",buttonText:"Resend OTP",icon:Ye.jsx(k,{})}):"",!K&&Ye.jsx(Ry,{type:"submit",buttonText:"Send OTP",icon:Ye.jsx(k,{})})]}):null]})}),Ye.jsxs("div",{className:"txt6",style:{margin:"2rem 0rem"},children:["NULL"!=p?Ye.jsx(ee,{children:Ye.jsx(Se,{header:"Try Another Way",children:Ye.jsx(fk,{content:ye.filter((e=>null!=e)),fieldState:!0,defaultSelect:p,onSelectFuntion:e=>(e=>{A(e),v("OTP"===e)})(e)})},"1")}):null,Ye.jsx("p",{href:"#!",className:"txt5",children:"@2025, Pozo All Rights Reserved."})]})]}),Ye.jsx("div",{children:Ye.jsxs("div",{className:"imgcrsl",children:[" ",Ye.jsx(HU,{})," "]})})]})})]})})})},access:"Public"},{path:`${Ofe}signin`,component:()=>{const e=Qt(),t=Mt(),n=um(),i=null==t?void 0:t.state,r=Tf(U_),[s,l]=a.useState(!0),[o,d]=a.useState("PIN"),[c,u]=a.useState(!1),[p,A]=a.useState(""),[h,f]=a.useState(""),[m,v]=a.useState(!1),[g,y]=a.useState(""),[x,b]=a.useState(""),[w,C]=a.useState(""),[S,N]=a.useState(""),[I,F]=a.useState(""),[B,P]=a.useState(""),[k,T]=a.useState(null),[E,D]=a.useState("NULL"),[L,U]=a.useState(!1),[_,O]=a.useState(!1),[M,R]=a.useState(!1),[Q,H]=a.useState([]),[V,z]=a.useState("O"),[q,W]=a.useState(null),[Y,K]=a.useState(!1),[G,$]=a.useState(!1),[X,J]=a.useState({type:!1,data:{}}),[ee,te]=a.useState(),[ne,ie]=a.useState({show:!1,type:"",message:""}),[ae,re]=a.useState(null),[se,le]=a.useState({}),[oe,de]=a.useState(""),[ce,ue]=a.useState(""),[pe,Ae]=a.useState(!1),[he,fe]=a.useState(!1);a.useEffect((()=>{const e=setTimeout((()=>{l(!1)}),300);return ve(),(async()=>{await n(n_()).unwrap()})(),()=>clearTimeout(e)}),[]),a.useEffect((()=>{(async()=>{var e,t,i,a,r,s,l;try{const o=await n(HP({TypeName:"SEO"})).unwrap();if(1===(null==(e=null==o?void 0:o.data)?void 0:e.statusCode)){const e=null==(a=null==(i=null==(t=null==o?void 0:o.data)?void 0:t.data)?void 0:i.find((e=>"signin"===e.ConfigName)))?void 0:a.ConfigId;if(!e)return;const d=await n(CU({PageId:e})).unwrap();if(1===(null==(r=null==d?void 0:d.data)?void 0:r.statusCode)&&(null==(l=null==(s=null==d?void 0:d.data)?void 0:s.data)?void 0:l.length)>0){const e=d.data.data[0];setSeoData({metaTitle:null==e?void 0:e.MetaTitle,metaDescription:null==e?void 0:e.MetaDesc,keywords:null==e?void 0:e.Keywords,imageAltText:null==e?void 0:e.ImgAltText})}}}catch(o){}})()}),[n]);const me=async()=>{let e=localStorage.getItem("device_id");return e||(e=sO(),localStorage.setItem("device_id",e)),e};a.useEffect((()=>{const e=g+x+w+S+I+B;6===e.length&&(async(e,t)=>{var i,a,r,s,l;const o=await me(),d=await n(jm({MobileNo:e,OTP:t,IP:ae,Browser:se.name,Version:se.version,OS:oe,LoginType:ce,AnotherWindow:Y?"Y":"N",deviceId:o,SessionId:Y?"Y":"N"})).unwrap();let c=null==(i=null==d?void 0:d.data)?void 0:i.token;if(te(c),1===(null==(a=null==d?void 0:d.data)?void 0:a.statusCode))if(sessionStorage.setItem("auth",(null==(r=Q[0])?void 0:r.token)||ee||c),"N"===V)Se(q);else{let e=Q[0].UserId,t="Y";const i=await n(fm({UserId:e,status:t})).unwrap();1===(null==(s=null==i?void 0:i.data)?void 0:s.statusCode)&&Ie(Q,null==(l=null==i?void 0:i.data)?void 0:l.response,c)}else xe("error","Please enter valid OTP")})(q,parseInt(e))}),[g,x,w,S,I,B]);const ve=async()=>{try{const e=await Ne.get("https://ifconfig.me");re(null==e?void 0:e.data)}catch(t){}const e=t_.getParser(window.navigator.userAgent);le(e.getBrowser()),de(e.getOS().name),ue(e.getPlatform().type)},ge=()=>{e(`${rte}`)},ye=e=>/^[6-9]\d{9}$/.test(e),xe=(e,t)=>{ie({show:!0,type:e,message:t}),setTimeout((()=>{ie({show:!1,type:"",message:""})}),4e3)},be=()=>{D("NULL"),U(!1),O(!1),R(!1),z("O"),Ae(!1),v(!1),fe(!1)},we=async(e,t)=>{var i,a,r;D("NULL"),U(!1),O(!1);const s=await n(vm({MobileNo:e,deviceId:t})).unwrap();if(1===(null==(i=null==s?void 0:s.data)?void 0:i.statusCode)){const{AppId:e,CompId:t,BranchId:n,UserId:i,MobileNo:l,ActiveStatus:o,Pin:c,Password:u,SessionId:p}=null==(a=null==s?void 0:s.data)?void 0:a.data[0];if(nA("MobileNo",l),"A"===o){const e="Y"===c?"PIN":"Y"===u?"Password":"NULL";D(e),d("NULL"===e?"OTP":e),R(!0),O("Y"===u),U("Y"===c),H(null==(r=null==s?void 0:s.data)?void 0:r.data),K("Y"===p),Ae("NULL"===e)}else J({type:!0,data:{AppId:e,CompId:t,BranchId:n,UserId:i}})}else D("NULL"),R(!0),z("N"),Ae(!0),d("OTP"),nA("MobileNo",e)},je=e=>{d(e),"OTP"===e?(Ae(!0),v(!1)):(Ae(!1),v(!1))},Ce=async()=>{p&&ye(p)?pe||"OTP"===o?await(async()=>{var e,t;let i;y(""),b(""),C(""),N(""),F(""),P(""),T(30),fe(!0),v(!0),i="N"===V?await n(bm({MobileNo:p})).unwrap():await n(xm({MobileNo:p})).unwrap(),1===(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)?(xe("success","OTP Sent Successfully"),Ae(!0)):xe("error",null==(t=null==i?void 0:i.data)?void 0:t.response)})():await(async()=>{var e,t,i,a,r;if(!h)return void xe("error",`Please enter ${o}`);const s=await me();let l;if(l="PIN"===o?await n(ym({MobileNo:p,Pin:h,IP:ae,Browser:se.name,Version:se.version,OS:oe,LoginType:ce,AnotherWindow:Y?"Y":"N",deviceId:s,SessionId:Y?"Y":"N"})).unwrap():await n(gm({MobileNo:p,Password:h,IP:ae,Browser:se.name,Version:se.version,OS:oe,LoginType:ce,AnotherWindow:Y?"Y":"N",deviceId:s,SessionId:Y?"Y":"N"})).unwrap(),1===(null==(e=null==l?void 0:l.data)?void 0:e.statusCode)){H(null==(t=null==l?void 0:l.data)?void 0:t.data);let e=null==(i=null==l?void 0:l.data)?void 0:i.data;if(Y)$(!0);else{let t=e[0].UserId,i="Y";const s=await n(fm({UserId:t,status:i})).unwrap();1===(null==(a=null==s?void 0:s.data)?void 0:a.statusCode)&&(H(e),await Ie(e,null==(r=null==s?void 0:s.data)?void 0:r.response))}}else xe("error",`Enter Valid ${o}`)})():xe("error","Please enter a valid mobile number")};a.useEffect((()=>{if(0===k&&T(null),!k)return;const e=setInterval((()=>{T(k-1)}),1e3);return()=>clearInterval(e)}),[k]);const Se=async t=>{var a,r,s,l,o,d,c;const u=await me(),p=await n(wm({MobileNo:t,deviceId:u})).unwrap();if(1===(null==(a=null==p?void 0:p.data)?void 0:a.statusCode)){let t=null==(r=null==p?void 0:p.data)?void 0:r.UserId,a="Y";const c=await n(fm({UserId:t,status:a})).unwrap();if(1===(null==(s=c.data)?void 0:s.statusCode)&&nA("SessionId",null==(l=c.data)?void 0:l.response),nA("UserId",t),nA("UserType","Admin"),iA("AppId")){if(1===(null==(o=(await n(Nm({AppId:iA("AppId")})).unwrap()).data)?void 0:o.statusCode))if("Free"===(null==i?void 0:i.PricingName)){let t={UserId:iA("UserId"),AppId:null==i?void 0:i.AppId,PricingId:null==i?void 0:i.PricingId,PurDate:null==i?void 0:i.PurDate,PaymentStatus:null==i?void 0:i.PaymentStatus,LicenseStatus:null==i?void 0:i.LicenseStatus,Price:null==i?void 0:i.Price,ValidityStart:null==i?void 0:i.ValidityStart,ValidityEnd:null==i?void 0:i.ValidityEnd,CreatedBy:iA("UserId")};const a=await n(Gb(t)).unwrap();1===(null==(d=null==a?void 0:a.data)?void 0:d.statusCode)&&e(`${rte}landing-page/home`)}else e(`${rte}invoice-detail`)}else e(`${rte}landing-page/apps`)}else xe("error",null==(c=null==p?void 0:p.data)?void 0:c.response)},Ie=async(t,a,s)=>{var l,o,d,c,u,p,A;nA("SessionId",a),nA("userName",(null==(l=t[0])?void 0:l.UserName)||null),sessionStorage.setItem("auth",(null==(o=t[0])?void 0:o.token)||ee||s),nA("UserId",null==(d=t[0])?void 0:d.UserId),nA("UserType",null==(c=t[0])?void 0:c.UserTypeName),nA("CompId",null==(u=t[0])?void 0:u.CompId),nA("CompName",null==(p=t[0])?void 0:p.CompName),nA("MobileNo",null==(A=t[0])?void 0:A.MobileNo),"Super Admin"===t[0].UserTypeName||"Super Admin User"===t[0].UserTypeName?(xe("success","Sign In Successfully"),e(`${rte}landing-page/home`)):"Admin"===t[0].UserTypeName?(async t=>{var a,s,l,o,d,c,u,p,A;const h=null==i?void 0:i.AppId,f=await n(lw({UserId:t,AppId:h})).unwrap(),m=null==(a=null==f?void 0:f.data)?void 0:a.data,v=await n(Sm({UserId:t})).unwrap();if(xe("success","Sign In Successfully"),iA("AppId"))if("Free"===(null==i?void 0:i.PricingName))if(0===(null==m?void 0:m.length)){let t={UserId:iA("UserId"),AppId:null==i?void 0:i.AppId,PricingId:null==i?void 0:i.PricingId,PurDate:null==i?void 0:i.PurDate,PaymentStatus:null==i?void 0:i.PaymentStatus,LicenseStatus:null==i?void 0:i.LicenseStatus,Price:null==i?void 0:i.Price,ValidityStart:null==i?void 0:i.ValidityStart,ValidityEnd:null==i?void 0:i.ValidityEnd,CreatedBy:iA("UserId")};await n(Gb(t)).unwrap(),e(`${rte}landing-page/home`)}else xe("warning","Free Already Used"),setTimeout((()=>{e(`${null==i?void 0:i.locationpathname}`)}),3e3);else{let a={AppId:h,UserId:t,type:"L"};const A=await n(DE(a)).unwrap();let f=null==r?void 0:r.filter((e=>(null==e?void 0:e.AppId)===(null==i?void 0:i.AppId))),g=f.length>0&&f[0].AppName;const y=null==m?void 0:m.filter((e=>(null==e?void 0:e.AppName)===g));let x=null==y?void 0:y.filter((e=>"Free"!==e.PricingName));const b=null==x?void 0:x.reduce(((e,t)=>e+t.RemainingDays),0),w=await n(sw({UserId:t,AppId:h})).unwrap(),j=null==(l=null==(s=null==v?void 0:v.data)?void 0:s.data)?void 0:l.map((e=>({...e,Sadmin:"Y"})));e(`${rte}invoice-detail`,{state:{pricingData:null==i?void 0:i.pricingData,PackName:null==i?void 0:i.PackName,purchasedAmt:1==(null==(o=null==v?void 0:v.data)?void 0:o.statusCode)&&(null==(c=null==(d=null==w?void 0:w.data)?void 0:d.data)?void 0:c[0]),differenceDays:b,AppExpDate:y,locationpathname:null==i?void 0:i.locationpathname,Exist:1==(null==(u=null==A?void 0:A.data)?void 0:u.statusCode)&&(null==(p=A.data)?void 0:p.data),SAdmin:!1,UserId:t,lastappPurchase:j}})}else 1===(null==(A=null==v?void 0:v.data)?void 0:A.statusCode)?e(`${rte}landing-page/home`):e(`${rte}landing-page/apps`)})(t[0].UserId):"Employee"===t[0].UserTypeName?(async t=>{var i,a,r,s,l,o,d,c,u,p,A,h,f,m,v;const g=await n(Cm({UserId:t})).unwrap();if(1===(null==(i=null==g?void 0:g.data)?void 0:i.statusCode))if(xe("success","Sign In Successfully"),1===(null==(r=null==(a=null==g?void 0:g.data)?void 0:a.data)?void 0:r.length)&&(null==(l=null==(s=null==g?void 0:g.data)?void 0:s.data[0])?void 0:l.RemainingDays)>0){let t=null==(d=null==(o=null==g?void 0:g.data)?void 0:o.data[0])?void 0:d.AppUrl;nA("BranchId",null==(u=null==(c=null==g?void 0:g.data)?void 0:c.data[0])?void 0:u.BranchId),nA("CompId",null==(A=null==(p=null==g?void 0:g.data)?void 0:p.data[0])?void 0:A.CompId),nA("AppId",null==(f=null==(h=null==g?void 0:g.data)?void 0:h.data[0])?void 0:f.AppId),nA("AppName",null==(v=null==(m=null==g?void 0:g.data)?void 0:m.data[0])?void 0:v.AppName),e(`${t}`),window.location.reload()}else e(`${rte}landing-page/home`);else xe("warning","Contact Admin For Access"),setTimeout((()=>{e(`${rte}signin/`),window.location.reload()}),4e3)})(t[0].UserId):"Marketing"===t[0].UserTypeName&&(xe("success","Admin access granted"),e(`${rte}adminpanel`))};if(s)return Ye.jsx(Q6,{});if(s)return Ye.jsx(Q6,{});const Fe=(()=>{try{const e=localStorage.getItem("seo_signin");return e?JSON.parse(e):{}}catch(e){return{}}})();return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(bU,{title:Fe.metaTitle||"Signin to PozoApp - Access Your Business Dashboard",description:Fe.metaDescription||"Sign in to your PozoApp account to manage your business operations, view reports, and access all features.",keywords:Fe.keywords||"PozoApp Signin, business dashboard, user account, sign in",url:`${rte}signin`,image:Fe.imageAltText||"../../../public/og/Signin-og.jpg",type:"website",noindex:!0}),Ye.jsxs("div",{className:"SignIn-Master",children:[Ye.jsxs("div",{className:"SignInMain",children:[Ye.jsxs("div",{className:"SignInContent",children:[Ye.jsx("img",{src:ate,alt:"pozoAppLogo",width:120,onClick:ge}),Ye.jsxs("div",{className:"promotionText",children:[Ye.jsxs("div",{children:["Have it all, ",Ye.jsx("br",{}),"your way"]}),Ye.jsxs("p",{children:["All-in-one platform designed to centralize, automate, and ",Ye.jsx("br",{})," ","unlock limitless business potential."]})]})]}),Ye.jsxs("div",{className:"SignInInputs",children:[Ye.jsx("div",{className:"signinClose",onClick:ge,children:Ye.jsx(ey,{strokeWidth:.1})}),Ye.jsxs("div",{className:"inputsTitle",children:[Ye.jsx("img",{className:"whitelogoPng",src:ate,alt:"",onClick:ge}),Ye.jsx("div",{children:"Welcome PozoApp"}),Ye.jsx("p",{children:"Take charge of your world with Pozo."})]}),Ye.jsxs("div",{className:"InputSigin",children:[Ye.jsx("label",{htmlFor:"Mobile",children:"Mobile"}),Ye.jsx("input",{type:"text",placeholder:"Enter Mobile Number",value:p,onChange:async e=>{u(!1),y(""),b(""),C(""),N(""),F(""),P(""),U(!1),A(!1),f(null);const t=e.target.value.replace(/[^0-9]/g,"");if(t.length<=10)if(A(t),10===t.length&&ye(t)){W(t);const e=await me();await we(t,e)}else be()},maxLength:"10"})]}),"NULL"!==E&&"OTP"!==E&&!pe&&Ye.jsxs("div",{className:"InputSigin",children:[Ye.jsx("label",{htmlFor:"auth",children:o}),Ye.jsx("input",{type:"password",placeholder:"PIN"===o?"Enter PIN":"Enter Password",value:h,onChange:e=>{let t=e.target.value;"PIN"===o?(t=t.replace(/[^0-9]/g,""),t.length<=4&&f(t)):f(t)},onKeyDown:e=>{"Enter"===e.key&&h&&Ce()},maxLength:"PIN"===o?"4":void 0})]}),m&&he&&Ye.jsxs("div",{className:"InputSigin",children:[Ye.jsx("label",{htmlFor:"otp",children:"Enter OTP"}),Ye.jsx("div",{className:"otpContainer",children:Ye.jsx("input",{type:"text",className:"otpInput1",maxLength:"6",placeholder:"Enter 6 digit OTP",value:g+x+w+S+I+B,onChange:e=>{const t=e.target.value.replace(/[^0-9]/g,"");t.length<=6&&(y(t[0]||""),b(t[1]||""),C(t[2]||""),N(t[3]||""),F(t[4]||""),P(t[5]||""))},onKeyDown:e=>{"Enter"===e.key&&6===(g+x+w+S+I+B).length&&Ce()}})})]}),"NULL"!==E&&Ye.jsxs("div",{className:"anotherWay",children:[Ye.jsxs("div",{onClick:()=>u(!c),children:["Try Another Way ",Ye.jsx(Jm,{size:10})]}),c&&Ye.jsxs("div",{className:"authOptions",children:[L&&Ye.jsxs("label",{children:[Ye.jsx("input",{type:"radio",name:"authMethod",value:"PIN",checked:"PIN"===o,onChange:e=>je(e.target.value)}),"PIN"]}),_&&Ye.jsxs("label",{children:[Ye.jsx("input",{type:"radio",name:"authMethod",value:"Password",checked:"Password"===o,onChange:e=>je(e.target.value)}),"Password"]}),Ye.jsxs("label",{children:[Ye.jsx("input",{type:"radio",name:"authMethod",value:"OTP",checked:"OTP"===o,onChange:e=>je(e.target.value)}),"OTP"]})]})]}),k&&Ye.jsx("div",{className:"timerDiv",children:Ye.jsxs("span",{style:{color:k<=10?"#FF4D4F":"#52C41A"},children:["0:",k<10?"0"+k:k]})}),M&&Ye.jsxs("button",{className:"NewSignInBTN",onClick:Ce,children:[Ye.jsx("div",{}),m&&null===k?"RESEND OTP":pe?"SEND OTP":"SIGN IN",Ye.jsxs("div",{className:"icon-container",children:[Ye.jsx(eg,{className:"icon-main"}),Ye.jsx(eg,{className:"icon-hover"})]})]})]})]}),G&&Ye.jsx(j,{centered:!0,title:Ye.jsxs("div",{style:{display:"flex",gap:"1rem"},children:[Ye.jsx(Z,{style:{color:"rgb(231 176 12)",fontSize:"30px"}}),Ye.jsx("h3",{style:{color:"#e33333",fontWeight:"700",fontSize:"20px"},children:"Your session is currently active in another window/browser/system"})]}),open:G,onCancel:async()=>{$(!1),be(),A(""),f("")},footer:null}),X.type&&Ye.jsx(j,{centered:!0,title:Ye.jsx("p",{style:{color:"#e33333",fontWeight:"700"},children:"Access Denied Contact Your Administrator"}),width:700,open:X.type,onCancel:async()=>{J({type:!1,data:{}}),be(),A(""),f("")},footer:null}),ne.show&&Ye.jsx("div",{className:`notification ${ne.type}`,style:{position:"fixed",top:"45px",right:"22%",padding:"8px 20px",borderRadius:"6px",color:"#fff",fontSize:"14px",fontSize:"14px",fontFamily:"Poppins, sans-serif",zIndex:9999,backgroundColor:"success"===ne.type?"#44cc00ff":"error"===ne.type?"#e60004ff":"warning"===ne.type?"#ee9f00ff":"#0076e4ff",fontWeight:"400"},children:ne.message})]})]})},access:"Public"},{path:`${Ofe}payment-pdf`,component:()=>{const e=um(),t=Qt(),n=window.location.href;var i=new URL(n).searchParams.get("paymentId");const[r,s]=a.useState(i||null),[l,o]=a.useState([]),[d,c]=a.useState(null),[u,p]=a.useState(null);a.useEffect((()=>{A()}),[]);const A=async()=>{var n,i,a;let s=await e(TM(r)).unwrap();1===(null==(n=null==s?void 0:s.data)?void 0:n.statusCode)&&("S"===(null==(i=null==s?void 0:s.data)?void 0:i.data[0].PaymentStatus)?o(null==(a=null==s?void 0:s.data)?void 0:a.data[0]):(c("error"),p("Sorry, No details found"),t("/")))},h=a.useCallback((()=>{p(null),c(null)}),[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:d,messageData:u,onComplete:h}),Ye.jsxs("div",{className:"Pdf-body",id:"Pdfbody",children:[Ye.jsxs("div",{className:"Pdf-Div",children:[Ye.jsxs("div",{className:"Pdf-head-div",children:[Ye.jsx("img",{src:cE,style:{width:"50px",height:"70px"}}),Ye.jsxs("div",{children:[Ye.jsx("p",{className:"Pdf-head",children:" Invoices "}),Ye.jsx("p",{children:"Pozomind Technologies Private Limited"})]}),Ye.jsx("span",{className:"square"})]}),Ye.jsxs("div",{className:"Pdf-amt-details",children:[Ye.jsxs("p",{children:[" Invoice Number : ",Ye.jsxs("span",{className:"Pdf-amt-digit",children:[" ",l?null==l?void 0:l.UniqueId:null," "]})," "]}),Ye.jsxs("p",{children:[" Amount: ",Ye.jsxs("span",{className:"Pdf-amt-digit",children:["₹ ",l?null==l?void 0:l.NetPrice:0," "]})," "]})]}),Ye.jsxs("div",{className:"Pdf-amt-details",children:[Ye.jsxs("p",{children:[" Payment Method : ",Ye.jsxs("span",{className:"Pdf-amt-digit",children:[" ",l?l.PaymentModeName:null," "]})]}),Ye.jsxs("p",{children:[" Date : ",Ye.jsxs("span",{className:"Pdf-amt-digit",children:[" ",l?tA(l.PurDate):null," "]})," "]})]})]}),Ye.jsx("div",{className:"Pdf-Cont-Div",children:Ye.jsxs("div",{className:"Pdf-cont",children:[Ye.jsxs("div",{className:"Pdf-cont-txt",children:[Ye.jsx("p",{className:"Pdf-cont-subhead",children:" Billed From"}),Ye.jsxs("p",{className:"Pdf-cont-text",children:["Pozomind Technologies Private Limited",Ye.jsx("p",{children:"Phone : 7324000011"})]})]}),Ye.jsxs("div",{className:"Pdf-cont-txt",children:[Ye.jsx("p",{className:"Pdf-cont-subhead",children:" Billed To "}),Ye.jsxs("p",{className:"Pdf-cont-text",children:[l?null!=l.UserName?l.UserName:l.MobileNo:"hh",",",Ye.jsx("br",{}),Ye.jsx("p",{className:"Pdf-cont-text",children:null}),null," ",null," ",null,Ye.jsxs("p",{children:["Phone : ",l?l.MobileNo:null]})]})]})]})}),Ye.jsx("hr",{className:"new3"}),Ye.jsx("div",{className:"Pdf-Table-Div",children:Ye.jsxs("table",{children:[Ye.jsx("caption",{children:"Statement Summary"}),Ye.jsx("thead",{children:Ye.jsxs("tr",{children:[Ye.jsx("th",{scope:"col",children:"Description"}),Ye.jsx("th",{scope:"col",children:"Purchase Date"}),Ye.jsx("th",{scope:"col",children:"Period"}),Ye.jsx("th",{scope:"col",children:"Amount"})]})}),Ye.jsx("tbody",{children:Ye.jsxs("tr",{children:[Ye.jsx("td",{"data-label":"Account",children:l?l.AppName:null}),Ye.jsx("td",{"data-label":"Due Date",children:l?tA(l.PurDate):null}),Ye.jsxs("td",{"data-label":"Period",children:[l?tA(l.ValidityStart):null," - ",l?tA(l.ValidityEnd):null]}),Ye.jsxs("td",{"data-label":"Amount",children:["₹",l?l.NetPrice:0]})]})})]})}),Ye.jsx("hr",{className:"new3"}),Ye.jsx("div",{className:"Pdf-Table-Div",children:Ye.jsx("table",{children:Ye.jsxs("tbody",{children:[Ye.jsxs("tr",{children:[Ye.jsx("th",{children:" "}),Ye.jsx("th",{children:" "}),Ye.jsx("th",{"data-label":"Sub Total",children:"Sub Total"}),Ye.jsxs("td",{children:["₹",l?l.Price:0]})]}),Ye.jsxs("tr",{children:[Ye.jsx("td",{children:" "}),Ye.jsx("td",{children:" "}),Ye.jsx("th",{"data-label":"Tax",children:"Tax "}),Ye.jsxs("td",{children:["₹",l?l.TaxAmount:0]})]}),Ye.jsxs("tr",{children:[Ye.jsx("th",{children:" "}),Ye.jsx("th",{children:" "}),Ye.jsx("th",{"data-label":"Total",children:"Total"}),Ye.jsxs("td",{children:["₹",l?l.NetPrice:0]})]})]})})}),Ye.jsx("hr",{className:"new4"})]})]})},access:"Admin"},{path:`${Ofe}pricing-details`,component:()=>{const[e,t]=a.useState("Y"),[n,i]=a.useState(null),[r,s]=a.useState(null),o=Qt(),d=um(),c=Tf((e=>e.pricingType.PricingType)),u=iA("AppId"),p=iA("UserId"),A=a.useCallback((()=>{s(null),i(null)}),[]);a.useEffect((()=>{d(Wb({toggleValue:e,AppId:u,UserId:p}))}),[e,u,p,d]);const h=()=>{o(`${DM}landing-page/home`),window.location.reload()},f=()=>{o(`${DM}signin`),window.location.reload()},m=a.useCallback((e=>{nA("AppId",e.AppId),nA("AppName",e.AppName),nA("PricingId",e.PricingId),iA("UserId")?o(`${DM}invoice-detail`):o(`${DM}public-signup`)}),[]);return Ye.jsxs("div",{className:"pricing",children:[Ye.jsx(Qy,{messageType:n,messageData:r,onComplete:A}),Ye.jsxs("div",{children:[Ye.jsx("p",{children:"PRICING"}),Ye.jsx("div",{className:"pricingtext",children:Ye.jsx("p",{children:"Simple, transparent pricing"})}),Ye.jsxs("div",{className:"pricingtoggle",children:[Ye.jsx("div",{className:"pricingsubtext",children:Ye.jsxs("p",{children:["Choose the package that suits you.",Ye.jsx("span",{children:"No Contracts. No surprise fees."})," "]})}),Ye.jsxs("div",{className:"subtoggle",children:[Ye.jsxs("div",{className:"monthtext",children:["Monthly ",Ye.jsx(Hy,{defaultChecked:!0,functionName:e=>{const n=e?"Y":"M";t(n),d(Wb({toggleValue:n,AppId:u,UserId:p}))}})]}),Ye.jsxs("div",{className:"yeartext",children:["Yearly",Ye.jsx("button",{className:"discountdiv",children:" 10% Discount "})]})]})]}),Ye.jsx("div",{className:"sliderdiv"}),Ye.jsx("div",{className:"pricingcont",children:Ye.jsx("div",{children:Ye.jsx("div",{className:"pricingdiv",children:Ye.jsxs("div",{className:"pricingcardsdiv",children:[null==c?void 0:c.map(((e,t)=>{var n;return"FEATURENAME"===e.PricingName.toUpperCase()&&Ye.jsxs("div",{className:"pricingcardsFeature",children:[Ye.jsx("div",{className:"pricingname",children:Ye.jsx("p",{children:e.PricingName.toUpperCase()})}),Ye.jsx("div",{className:"divFeature",children:null==(n=e.FeatureDetail)?void 0:n.map(((e,t)=>Ye.jsxs(l.Fragment,{children:[0===t&&Ye.jsx("p",{className:"small-font",style:{lineHeight:"0.1em",margin:"1px 0"},children:" "})," ",Ye.jsx("p",{className:"small-font",children:"Y"==(null==e?void 0:e.Status)?Ye.jsx(ae,{}):null==(null==e?void 0:e.Status)?null==e?void 0:e.FeatName:""})]},t)))})]},t)})),Ye.jsx("div",{className:"pricingFeaturesCards",children:[c.find((e=>"FREE"===e.PricingName.toUpperCase())),...c.filter((e=>"FREE"!==e.PricingName.toUpperCase()&&"FEATURENAME"!=e.PricingName.toUpperCase()))].map(((e,t)=>{var n;return e?Ye.jsxs("div",{className:"FEATURENAME"===e.PricingName.toUpperCase()?"pricingcardsFeature ":"pricingcards",children:[Ye.jsx("div",{className:"pricingname",children:Ye.jsx("p",{children:e.PricingName.toUpperCase()})}),Ye.jsx("div",{className:"pricingcontent",children:Ye.jsx("div",{children:"FREE"==e.PricingName.toUpperCase()?Ye.jsx("img",{className:"gitfimg",src:EM}):"FEATURENAME"==e.PricingName.toUpperCase()?Ye.jsxs("div",{className:"divFeatureDetails",children:[Ye.jsx("span",{className:"net-price"}),Ye.jsx("span",{className:"net-price-strike"})]}):Ye.jsxs("div",{children:[Ye.jsxs("span",{className:"net-price",children:["₹",e.NetPrice]}),Ye.jsxs("span",{className:"net-price-strike",children:["₹",e.DisplayPrice]})]})})}),Ye.jsx("div",{className:"pricingstart",children:"FREE"===e.PricingName.toUpperCase()?Ye.jsx("div",{className:"freebtn "+("Already Used"===e.Status?"disabled":""),onClick:()=>(async e=>{var t,n,a;const r=new Date,l=Se(r).format("YYYY-MM-DD HH:mm:ss"),c=Se(r).format("YYYY-MM-DD HH:mm:ss");let u=Se(r).add(e-1..NoOfDays,"days").format("YYYY-MM-DD HH:mm:ss"),p=new Date(u);const A=p.setDate(p.getDate()-1).toISOString().slice(0,19).replace("T"," ");if("Start Free"===e.Status)if(iA("UserId")){const r={UserId:iA("UserId"),AppId:iA("AppId"),PricingId:e.PricingId,PurDate:l,PaymentStatus:"S",LicenseStatus:"A",Price:e.Price,ValidityStart:c,ValidityEnd:A,CreatedBy:iA("UserId")},o=await d(Gb(r)).unwrap();1==(null==(t=null==o?void 0:o.data)?void 0:t.statusCode)?(i("success"),s(null==(n=null==o?void 0:o.data)?void 0:n.response),iA("UserId")?await h():await f()):(i("error"),s(null==(a=null==o?void 0:o.data)?void 0:a.response))}else o(`${DM}signin`),window.location.reload();else s("Free Already Used"),i("warning")})(e),children:"Already Used"===e.Status?Ye.jsx("button",{className:"disabled-button-free",disabled:!0,children:"Already Used"}):Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("p",{children:"Start Now"}),Ye.jsx(k,{})]})}):"FEATURENAME"===e.PricingName.toUpperCase()?Ye.jsx("div",{}):Ye.jsxs("div",{className:"btntext",onClick:()=>m(e),children:["Extend Pack"===e.Status?"Extend Pack":"Start Now"," ",Ye.jsx(k,{})]})}),Ye.jsx("div",{className:"divFeature",children:"FREE"!==e.PricingName.toUpperCase()&&Ye.jsx(Ye.Fragment,{children:null==(n=e.FeatureDetail)?void 0:n.map(((e,t)=>Ye.jsxs(l.Fragment,{children:[0===t&&Ye.jsx("p",{className:"small-font",style:{lineHeight:"0.1em",margin:"1px 0"},children:" "})," ",Ye.jsx("p",{className:"small-font",children:"Y"==(null==e?void 0:e.Status)?Ye.jsx(ae,{}):null==(null==e?void 0:e.Status)?null==e?void 0:e.FeatName:""})]},t)))})})]},t):null}))})]})})})})]})]})},access:"Public"},{path:`${Ofe}invoice-detail`,component:()=>{var e,t,n,i,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,C,S,N,F,B,P,T,D,L,U,_,O,M,z,q,W,Y,K,G,$,X,J,Z,te,ne,ie,ae,re,se,le,oe,de,ce,ue,pe,Ae,he,fe,me,ve,ge,ye,xe,be,we,je,Se,Ne,Ie,Fe,Be,Pe,ke,Te,Ee,De,Le,Ue,_e,Oe,Me,Re,Qe,He,Ve,ze;const qe=Tf(Z_),We=Tf(Aw),[Ke,Ge]=a.useState(!1),[$e,Xe]=a.useState(!1),[Je,Ze]=a.useState(!1),et=a.useRef(null),tt=a.useRef(null),nt=um(),it=Qt(),at=iA("PricingId")?iA("PricingId"):null,rt=iA("AppId"),st=iA("CompId"),lt=Mt(),ot=lt,dt=null==(e=null==ot?void 0:ot.state)?void 0:e.pricingData,ct=null==(t=null==ot?void 0:ot.state)?void 0:t.locationpathname,ut=null==(n=null==ot?void 0:ot.state)?void 0:n.purchasedAmt,pt=null==(i=null==ot?void 0:ot.state)?void 0:i.differenceDays,At=null==(r=null==ot?void 0:ot.state)?void 0:r.AppExpDate,ht=null==(s=null==ot?void 0:ot.state)?void 0:s.PackName,ft=null==(l=null==ot?void 0:ot.state)?void 0:l.Exist,mt=null==(o=null==ot?void 0:ot.state)?void 0:o.SAdmin,vt=null==(d=null==ot?void 0:ot.state)?void 0:d.UserId,gt=null==(c=null==ot?void 0:ot.state)?void 0:c.AddonPurchase,yt=null==(u=null==ot?void 0:ot.state)?void 0:u.addonData,xt=vt||iA("UserId"),[bt,wt]=a.useState([]),[jt,Ct]=a.useState([]),[St,Nt]=a.useState([]),[It,Ft]=a.useState(!1),[Bt,Pt]=a.useState(null),[kt,Tt]=a.useState(null),[Et,Dt]=a.useState(null),[Lt,Ut]=a.useState(null),[_t,Ot]=a.useState(null),[Rt,Ht]=a.useState(null),[Vt,zt]=a.useState(!1),[qt,Wt]=a.useState(!1),[Yt,Kt]=a.useState(!1),[Gt,$t]=a.useState(null),[Xt,Jt]=a.useState(null),[Zt,en]=a.useState(null),[tn,nn]=a.useState(null),[an,rn]=a.useState(null),[sn,ln]=a.useState(null),[on,dn]=a.useState(null!=(null==(p=null==lt?void 0:lt.state)?void 0:p.MailId)?null==(A=null==lt?void 0:lt.state)?void 0:A.MailId:null),[cn,un]=a.useState(!1),[pn,An]=a.useState([]),[hn,fn]=a.useState(!0),[mn,vn]=a.useState(!0),[gn,yn]=a.useState(!0),[xn,bn]=a.useState(!0),[wn,jn]=a.useState(!0),[Cn,Sn]=a.useState(!0),[Nn,In]=a.useState(null),[Fn,Bn]=a.useState(),[Pn,kn]=a.useState(),[Tn,En]=a.useState(),[Dn,Ln]=a.useState(),[Un,_n]=a.useState(),[On,Mn]=a.useState(),[Rn,Qn]=a.useState(!1),[Hn,Vn]=a.useState(!1),[zn,qn]=a.useState(!1),[Wn,Kn]=a.useState(""),[Gn,$n]=a.useState(""),[Xn,Jn]=a.useState(),[Zn,ei]=a.useState(),[ti,ni]=a.useState(),[ii,ai]=a.useState(),[ri,si]=a.useState(0),[li,oi]=a.useState(!1),[di,ci]=a.useState([]),[ui,pi]=a.useState([]),[Ai,hi]=a.useState(null),[fi,mi]=a.useState(!1),vi=Math.floor(Ai/60),gi=Math.floor(Ai%60),yi=/^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Za-z]{1}[Z]{1}[0-9A-Za-z]{1}$/,xi=/^[0-9]+$/,[bi,wi]=a.useState(iA("userName")?iA("userName"):null),[ji,Ci]=a.useState(0),[Si,Ni]=a.useState(1),[Ii,Fi]=a.useState("Company"),[Bi,Pi]=a.useState(),[ki,Ti]=a.useState(),[Ei,Di]=a.useState(),[Li,Ui]=a.useState(),[_i,Oi]=a.useState([]),[Mi,Ri]=a.useState([]),Qi=null==Mi?void 0:Mi.reduce(((e,t)=>e+parseFloat(t.NetPrice)),0),Hi=Mi.reduce(((e,t)=>e+parseFloat(t.TaxAmount)),0),Vi=null==Mi?void 0:Mi.reduce(((e,t)=>e+parseFloat(t.Price)),0),zi=gt?null==(h=null==ft?void 0:ft[0])?void 0:h.NoOfDays:null==(f=null==jt?void 0:jt[0])?void 0:f.NoOfDays,[qi,Wi]=a.useState(!1),[Yi,Ki]=a.useState([]),[Gi,$i]=a.useState([]),[Xi,Ji]=a.useState([]),[Zi,ea]=a.useState([]),[ta,na]=a.useState([]),[ia,aa]=a.useState([]),[ra,sa]=a.useState([]),[la,oa]=a.useState([]),[da,ca]=a.useState(),[ua,pa]=a.useState(0),[Aa,ha]=a.useState(null==(m=null==jt?void 0:jt[0])?void 0:m.PricingId),[fa,ma]=a.useState(),[va,ga]=a.useState(),[ya,xa]=a.useState(),[ba,wa]=a.useState(),[ja,Ca]=a.useState(),[Sa,Na]=a.useState();a.useEffect((()=>{let e=null==ki?void 0:ki.filter((e=>null==ra?void 0:ra.includes(e.CompId))),t=null==e?void 0:e.map((e=>e.key));na(t);let n=null==Ei?void 0:Ei.filter((e=>null==ra?void 0:ra.includes(e.CompId))),i=null==n?void 0:n.map((e=>e.key));aa(i)}),[ra]),a.useEffect((()=>{let e=null==Ei?void 0:Ei.filter((e=>null==la?void 0:la.includes(e.BranchId))),t=null==e?void 0:e.map((e=>e.key));aa(t)}),[la]),a.useEffect((()=>{var e;Ci(null==(e=null==jt?void 0:jt[0])?void 0:e.NetPrice)}),[jt]),a.useEffect((()=>{let e=null==At?void 0:At.reduce(((e,t)=>e+t.PlanNoOfDays),0);si(e)}),[At]);const Ia=null==At?void 0:At.reduce(((e,t)=>e+t.ExistingPlanNetPrice),0),Fa="annual"===Wn?365:30,Ba=function(e){const t=null==e?void 0:e.filter((e=>"Free"!=e.PricingName));return null==t?void 0:t.reduce(((e,t)=>e+t.RemainingDays),0)}(At),Pa=parseFloat(Ia/(null==At?void 0:At.reduce(((e,t)=>e+t.PlanNoOfDays),0))).toFixed(2),ka=(null==(g=null==(v=null==At?void 0:At.filter((e=>"Free"!=e.PricingName)))?void 0:v[0])?void 0:g.NoOfDaysUsed)?null==(x=null==(y=null==At?void 0:At.filter((e=>"Free"!=e.PricingName)))?void 0:y[0])?void 0:x.NoOfDaysUsed:0,Ta=ka*parseFloat(Ia/(null==At?void 0:At.reduce(((e,t)=>e+parseFloat(t.PlanNoOfDays)),0))),Ea=Pa*pt,Da="annual"!=Wn?Xn:Zn,La="annual"===Wn?ti:ii,Ua=Ea/Da*Fa,_a=Math.floor(Ea/Xn*Fa),Oa=Math.floor(Ea/Zn*Fa);a.useEffect((()=>{var e,t;(null==(e=null==jt?void 0:jt[0])?void 0:e.PricingId)&&ha(null==(t=null==jt?void 0:jt[0])?void 0:t.PricingId)}),[null==(b=null==jt?void 0:jt[0])?void 0:b.PricingId]),a.useEffect((()=>{var e;(null==(e=null==jt?void 0:jt[0])?void 0:e.NoOfDays)>31?Kn("annual"):Kn("monthly")}),[jt]),a.useEffect((()=>{qa(),Qa(),hr(),(null==At?void 0:At.length)>0?qn("Extend Pack"!==ht):qn(!1),Ra(),Ha()}),[]),a.useEffect((()=>{var e;gt&&oi(!0),gt&&yt&&(null==At?void 0:At.length)>0?(null==(e=null==At?void 0:At[0])||e.NoOfDays,qn(!1)):gt&&oi(!0)}),[gt,yt,At]),a.useEffect((()=>{Ma()}),[null==(w=null==jt?void 0:jt[0])?void 0:w.PricingName]);const Ma=async()=>{var e,t,n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B,P,k,T,E,D,L,U,_,O,M,R,Q,H,V;const z=await nt(Yb({toggleValue:"M",AppId:rt,UserId:xt})),q=await nt(Yb({toggleValue:"Y",AppId:rt,UserId:xt}));if(1==(null==(t=null==(e=null==z?void 0:z.payload)?void 0:e.data)?void 0:t.statusCode)&&1==(null==(i=null==(n=null==q?void 0:q.payload)?void 0:n.data)?void 0:i.statusCode)){const e=null==(l=null==(s=null==(r=null==(a=null==z?void 0:z.payload)?void 0:a.data)?void 0:r.data)?void 0:s.find((e=>{var t;return e.PricingName===(null==(t=null==jt?void 0:jt[0])?void 0:t.PricingName)})))?void 0:l.NetPrice,t=null==(u=null==(c=null==(d=null==(o=null==q?void 0:q.payload)?void 0:o.data)?void 0:d.data)?void 0:c.find((e=>{var t;return e.PricingName===(null==(t=null==jt?void 0:jt[0])?void 0:t.PricingName)})))?void 0:u.NetPrice;Jn(e),ei(t);let n={status:null==(f=null==(h=null==(A=null==(p=null==q?void 0:q.payload)?void 0:p.data)?void 0:A.data)?void 0:h.find((e=>{var t;return e.PricingName===(null==(t=null==jt?void 0:jt[0])?void 0:t.PricingName)})))?void 0:f.Status,plan:null==(y=null==(g=null==(v=null==(m=null==q?void 0:q.payload)?void 0:m.data)?void 0:v.data)?void 0:g.find((e=>{var t;return e.PricingName===(null==(t=null==jt?void 0:jt[0])?void 0:t.PricingName)})))?void 0:y.PricingName,NoOfDays:null==(j=null==(w=null==(b=null==(x=null==q?void 0:q.payload)?void 0:x.data)?void 0:b.data)?void 0:w.find((e=>{var t;return e.PricingName===(null==(t=null==jt?void 0:jt[0])?void 0:t.PricingName)})))?void 0:j.NoOfDays,PricingId:null==(I=null==(N=null==(S=null==(C=null==q?void 0:q.payload)?void 0:C.data)?void 0:S.data)?void 0:N.find((e=>{var t;return e.PricingName===(null==(t=null==jt?void 0:jt[0])?void 0:t.PricingName)})))?void 0:I.PricingId},i={status:null==(k=null==(P=null==(B=null==(F=null==z?void 0:z.payload)?void 0:F.data)?void 0:B.data)?void 0:P.find((e=>{var t;return e.PricingName===(null==(t=null==jt?void 0:jt[0])?void 0:t.PricingName)})))?void 0:k.Status,NoOfDays:null==(L=null==(D=null==(E=null==(T=null==q?void 0:q.payload)?void 0:T.data)?void 0:E.data)?void 0:D.find((e=>{var t;return e.PricingName===(null==(t=null==jt?void 0:jt[0])?void 0:t.PricingName)})))?void 0:L.NoOfDays,plan:null==(M=null==(O=null==(_=null==(U=null==z?void 0:z.payload)?void 0:U.data)?void 0:_.data)?void 0:O.find((e=>{var t;return e.PricingName===(null==(t=null==jt?void 0:jt[0])?void 0:t.PricingName)})))?void 0:M.PricingName,PricingId:null==(V=null==(H=null==(Q=null==(R=null==z?void 0:z.payload)?void 0:R.data)?void 0:Q.data)?void 0:H.find((e=>{var t;return e.PricingName===(null==(t=null==jt?void 0:jt[0])?void 0:t.PricingName)})))?void 0:V.PricingId};ni(n),ai(i)}else{let e={status:"No Data Found",plan:" ",NoOfDays:" "};ni({status:"No Data Found",plan:" ",NoOfDays:" "}),ai(e)}};let Ra=async()=>{var e,t,n,i,a,r,s;const l=await nt(BE()).unwrap();if(1==(null==(e=null==l?void 0:l.data)?void 0:e.statusCode)){Bn(null==(t=null==l?void 0:l.data)?void 0:t.data);let e=await(null==(i=null==(n=null==l?void 0:l.data)?void 0:n.data)?void 0:i.findIndex((e=>"NetBanking"==e.MethodName)));kn(e),Ln(null==(s=null==(r=null==(a=null==l?void 0:l.data)?void 0:a.data)?void 0:r[e])?void 0:s.Details)}},Qa=async()=>{var e,t,n,i;let a=await nt(n_()).unwrap(),r=null==(t=null==(e=null==a?void 0:a.data)?void 0:e.data)?void 0:t.filter((e=>(null==e?void 0:e.AppId)===iA("AppId")));await nt(r_(null==(n=r[0])?void 0:n.AppName)).unwrap();let s=await nt(nk({typeName:"Manual PaymentType"})).unwrap();ma(null==(i=null==s?void 0:s.data)?void 0:i.data)},Ha=async()=>{var e,t,n,i,a,r;let s=await nt(n_()).unwrap(),l=null==(t=null==(e=null==s?void 0:s.data)?void 0:e.data)?void 0:t.filter((e=>(null==e?void 0:e.AppId)===iA("AppId")));await nt(r_(null==(n=null==l?void 0:l[0])?void 0:n.AppName)).unwrap();let o=await nt(aT(null==(i=null==l?void 0:l[0])?void 0:i.AppId));Ui(null==(r=null==(a=null==o?void 0:o.payload)?void 0:a.data)?void 0:r.data)};a.useEffect((()=>{const e=setInterval((()=>{hi(Ai-1)}),1e3);return null!=kt&&za(),0===Ai&&(Va(),clearInterval(e)),null===Ai&&clearInterval(e),()=>{clearInterval(e)}}),[Ai]);const Va=async()=>{var e,t,n,i,a,r,s;let l={};l.UpdatedBy=xt,l.PaymentStatus="F",l.UniqueId=kt;let o=await nt(Zb(l)).unwrap();if(1===(null==(e=null==o?void 0:o.data)?void 0:e.statusCode)&&(Ge(!1),hi(0),null==(t=null==o?void 0:o.data)?void 0:t.UserMail)){const e={UniqueId:null==(n=null==o?void 0:o.data)?void 0:n.UniqueId,userData:null==(i=null==o?void 0:o.data)?void 0:i.userData,messageTemplatesList:null==(a=null==o?void 0:o.data)?void 0:a.messageTemplatesList,UserMail:null==(r=null==o?void 0:o.data)?void 0:r.UserMail,PaymentStatus:null==(s=null==o?void 0:o.data)?void 0:s.PaymentStatus};await nt(UE(e))}},za=async()=>{var e,t;let n=await nt(Jb(kt)).unwrap();1===(null==(e=null==n?void 0:n.data)?void 0:e.statusCode)&&(ci(null==(t=null==n?void 0:n.data)?void 0:t.data),Kt(!0),hi(null),Ut("success"),Ot("Payment Success!"),setTimeout((()=>{Wa()}),15e3))},qa=async()=>{var e,t,n,i,a;let r=await nt(ew()).unwrap();1===(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)&&(An(null==(t=null==r?void 0:r.data)?void 0:t.data),pi(null==(a=null==(i=null==(n=null==r?void 0:r.data)?void 0:n.data)?void 0:i[0])?void 0:a.PaymentUPIDetailsId))},Wa=async()=>{it(`${iR}landing-page/home`)};a.useEffect((()=>{if(0===Rt&&(zt(!1),Ht(null)),!Rt)return;const e=setInterval((()=>{Ht(Rt-1)}),1e3);return()=>clearInterval(e)}),[Rt]),a.useEffect((()=>{Ya(at)}),[at]),a.useEffect((()=>{Ka()}),[]);const Ya=async e=>{var t,n,i,a;const r=await nt(NE(e)).unwrap();if(1===(null==(t=null==r?void 0:r.data)?void 0:t.statusCode)){let e=null==(i=null==(n=null==r?void 0:r.data)?void 0:n.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));wt(e?null==(a=null==e?void 0:e[0])?void 0:a.FeatureDetails:[]),Ct(e)}},Ka=async()=>{var e,t,n,i;const a=await nt($b(xt)).unwrap();if(1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)){let e=null==(t=null==a?void 0:a.data)?void 0:t.data;Nt(e||[]),Pt((null==e?void 0:e.length)>0?null==(n=null==e?void 0:e[0])?void 0:n.MobileNo:iA("MobileNo")),dn((null==e?void 0:e.length)>0?null==(i=null==e?void 0:e[0])?void 0:i.MailId:null)}},Ga=async e=>{In(e)};const $a=async e=>{Jt(e)},Xa=async e=>{dn(e)},Ja=async e=>{pi(e)};async function Za(e){6===(null==e?void 0:e.length)&&xi.test(e)?(fn(!0),$a(e),await(async e=>{var t,n,i,a,r,s;let l="";await fetch(`https://api.postalpincode.in/pincode/${e}`).then((e=>e.text())).then((e=>l=JSON.parse(e))),"Success"===(null==l?void 0:l[0].Status)&&(nn(null==(n=null==(t=null==l?void 0:l[0].PostOffice)?void 0:t[0])?void 0:n.Block),rn(null==(a=null==(i=null==l?void 0:l[0].PostOffice)?void 0:i[0])?void 0:a.District),ln(null==(s=null==(r=null==l?void 0:l[0].PostOffice)?void 0:r[0])?void 0:s.State),bn(!0),jn(!0))})(e)):0===(null==e?void 0:e.length)?fn(!0):(fn(!1),nn(null),ln(null)),$a(e)}const er=async()=>{oi(!0)},tr=[{key:"1",label:("CRDC"==(null==(C=null==Fn?void 0:Fn[Pn])?void 0:C.CardType)||"DBCRD"==(null==(S=null==Fn?void 0:Fn[Pn])?void 0:S.CardType)?"Choose Your Card":"WLT"==(null==(N=null==Fn?void 0:Fn[Pn])?void 0:N.CardType)?"Choose Your Wallet":"Choose Your Bank")+" ",children:Ye.jsx(H.Group,{onChange:e=>{var t,n,i,a,r;En(null==(t=null==e?void 0:e.target)?void 0:t.value),_n("CCAvenue"==(null==(i=null==Dn?void 0:Dn[null==(n=null==e?void 0:e.target)?void 0:n.value])?void 0:i.dataAcceptedAt)?"Y":"N"),Mn(null==(r=null==Dn?void 0:Dn[null==(a=null==e?void 0:e.target)?void 0:a.value])?void 0:r.cardName)},value:Tn,style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:null==Dn?void 0:Dn.map(((e,t)=>Ye.jsx(Ye.Fragment,{children:Ye.jsx(H,{value:t,style:{width:"106%",marginLeft:"-15px",borderBottom:"1px solid #dadada"},children:e.cardName})})))})}];function nr(e,t){const n=new Date(e);n.setDate(n.getDate()+t);return`${n.getFullYear()}-${(n.getMonth()+1).toString().padStart(2,"0")}-${n.getDate().toString().padStart(2,"0")} ${n.getHours().toString().padStart(2,"0")}:${n.getMinutes().toString().padStart(2,"0")}:${n.getSeconds().toString().padStart(2,"0")}.${n.getMilliseconds().toString().padStart(3,"0")}`}const ir=e=>{const t=Ce.AES.encrypt(JSON.stringify(e),"3a939a2eed2cca4b64cd47f51b23b135b2b9b765273f695d47682ea803c8429d").toString();if(t)return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},ar=e=>{var t,n,i,a;Kn(null==(t=null==e?void 0:e.target)?void 0:t.value),(null==At?void 0:At.length)>0&&"Extend Pack"!=(null==La?void 0:La.status)&&"No Data Found"!=(null==La?void 0:La.status)&&"Free"!=(null==(n=null==At?void 0:At[0])?void 0:n.PricingName)&&Ci("monthly"===(null==(i=null==e?void 0:e.target)?void 0:i.value)?Xn:Zn);let r="annual"===(null==(a=null==e?void 0:e.target)?void 0:a.value)?ti:ii;ha(null==r?void 0:r.PricingId)};a.useEffect((()=>{(()=>{const e=new Date,t=`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")} ${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`;$n(t)})()}),[]);const rr=()=>{qn(!1),Wi(!1),it(`${ct}`)},sr=Ia-Math.abs((pt-Ba)*Pa),lr=sr>Da?sr-Da:0,or=Da/365,dr=Math.floor(lr/or)+365,cr=Ia-Math.abs((pt-Ba)*Pa),ur=cr>Da?cr-Da:0,pr=Da/30,Ar=Math.floor(ur/pr)+30,hr=async()=>{var e,t,n,i,a,r;let s={AppId:rt,UserId:xt},l=await nt(kE(s)).unwrap(),o=0==(null==(e=null==l?void 0:l.data)?void 0:e.statusCode);if(ca(o),1==(null==(t=null==l?void 0:l.data)?void 0:t.statusCode)){const e=null==(n=null==l?void 0:l.data)?void 0:n.data;let t=[],s=[],o=[];null==(i=null==e?void 0:e.CompanyDetails)||i.map(((e,n)=>{t.push({...e,key:n})})),null==(a=null==e?void 0:e.BranchDetails)||a.map(((e,t)=>{s.push({...e,key:t})})),null==(r=null==e?void 0:e.UserDetails)||r.map(((e,t)=>{o.push({...e,key:t})})),Ti(s),Pi(t),Di(o)}},fr=e=>{Fi(e)},mr=[{title:" ",width:"20px",align:"center",key:"CompName",render:(e,t,n)=>Ye.jsx(V,{onChange:e=>{((e,t,n)=>{if(t.target.checked){ea([...Zi,n]);let t=e.CompId;sa([...ra,t])}else{let t=null==Zi?void 0:Zi.filter((e=>e!=n));ea(t);let i=null==ra?void 0:ra.filter((t=>t!=e.CompId));sa(i)}})(t,e,n)},checked:Zi.includes(n),disabled:Zi.length==kr&&!Zi.includes(n)})},{title:"SI.NO",key:"sno",align:"center",width:"60px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(Si-1)+n+1})},{title:"Company Name",dataIndex:"CompName",key:"CompName",editable:!0},{title:"Active Status",dataIndex:"ActiveStatus",key:"ActiveStatus",editable:!0}],vr=[{title:" ",width:"20px",align:"center",key:"CompName",render:(e,t,n)=>Ye.jsx(V,{onChange:e=>{((e,t,n)=>{if(t.target.checked){na((e=>(e||(e=[]),[...e,n])));let t=e.BrId;oa((e=>(e||(e=[]),[...e,t])))}else na((e=>(e||(e=[]),e.filter((e=>e!==n))))),oa((t=>(t||(t=[]),t.filter((t=>t!==e.BrId)))))})(t,e,n)},checked:null==ta?void 0:ta.includes(n),disabled:(null==ta?void 0:ta.length)==Tr&&!(null==ta?void 0:ta.includes(n))||(null==ra?void 0:ra.includes(null==t?void 0:t.CompId))})},{title:"SI.NO",key:"sno",align:"center",width:"60px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(Si-1)+n+1})},{title:"Company Name",dataIndex:"CompName",key:"CompName",editable:!0},{title:"Branch Name",dataIndex:"BrName",key:"BrName",editable:!0},{title:"Branch Address",dataIndex:"Address1",key:"Address1",editable:!0},{title:"Active Status",dataIndex:"ActiveStatus",key:"ActiveStatus",editable:!0}],gr=[{title:" ",width:"20px",align:"center",key:"CompName",render:(e,t,n)=>Ye.jsx(V,{onChange:e=>{((e,t,n)=>{t&&t.target&&void 0!==t.target.checked&&(t.target.checked?0===(null==ia?void 0:ia.length)?aa([n]):aa((e=>Array.isArray(e)?[...e,n]:[n])):aa((e=>Array.isArray(e)?e.filter((e=>e!==n)):[])))})(0,e,n)},checked:null==ia?void 0:ia.includes(n),disabled:(null==ia?void 0:ia.length)===Er&&!(null==ia?void 0:ia.includes(n))||(null==la?void 0:la.includes(null==t?void 0:t.BranchId))||(null==ra?void 0:ra.includes(null==t?void 0:t.CompId))})},{title:"SI.NO",key:"sno",align:"center",width:"60px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(Si-1)+n+1})},{title:"Company Name",dataIndex:"CompName",key:"CompName",editable:!0},{title:"Branch Name",dataIndex:"BrName",key:"BrName",editable:!0},{title:"Branch Address",dataIndex:"Address1",key:"Address1",editable:!0},{title:"User Name / User Mobile.No",dataIndex:"UserName",key:"UserName",editable:!0,render:(e,t)=>Ye.jsx("span",{children:t.UserName?null==t?void 0:t.UserName:null==t?void 0:t.MobileNo})},{title:"Active Status",dataIndex:"ActiveStatus",key:"ActiveStatus",editable:!0}],yr=null==(F=null==ft?void 0:ft[0])?void 0:F.ExistingPlanNetPrice,xr=null==(B=null==ft?void 0:ft[0])?void 0:B.RemainingDays,br=null==(P=null==jt?void 0:jt[0])?void 0:P.NetPrice;null==(T=null==jt?void 0:jt[0])||T.NoOfDays;var wr=null==(U=null==(L=null==(D=null==jt?void 0:jt[0])?void 0:D.FeatureDetails)?void 0:L.find((e=>"Company"===e.FeatName)))?void 0:U.FeatConstraint,jr=null==(M=null==(O=null==(_=null==jt?void 0:jt[0])?void 0:_.FeatureDetails)?void 0:O.find((e=>"Branch"===e.FeatName)))?void 0:M.FeatConstraint,Cr=null==(W=null==(q=null==(z=null==jt?void 0:jt[0])?void 0:z.FeatureDetails)?void 0:q.find((e=>"User"===e.FeatName)))?void 0:W.FeatConstraint,Sr=null==(G=null==(K=null==(Y=null==ft?void 0:ft[0])?void 0:Y.FeatureDetails)?void 0:K.find((e=>"Company"===e.FeatName)))?void 0:G.FeatConstraint,Nr=null==(J=null==(X=null==($=null==ft?void 0:ft[0])?void 0:$.FeatureDetails)?void 0:X.find((e=>"Branch"===e.FeatName)))?void 0:J.FeatConstraint,Ir=null==(ne=null==(te=null==(Z=null==ft?void 0:ft[0])?void 0:Z.FeatureDetails)?void 0:te.find((e=>"User"===e.FeatName)))?void 0:ne.FeatConstraint,Fr=null==Bi?void 0:Bi.length,Br=null==ki?void 0:ki.length,Pr=(null==Ei?void 0:Ei.length)+1,kr=Fr-wr,Tr=Br-jr,Er=Pr-Cr;const Dr=[{value:"Company",label:"Company"},{value:"Branch",label:"Branch"},{value:"User",label:"User"}].filter((e=>"Company"===e.value?0==!kr&&Fr>Sr-wr:"Branch"===e.value?(0!==Tr||Tr<0)&&Br>Nr-jr&&jr!==Nr&&Tr>0:"User"!==e.value||0==!Er&&Pr>Cr-Ir&&Er>0));a.useEffect((()=>{br<yr&&xr<0&&(Sr!=wr||Nr!=jr||Ir!=Cr)&&(kr>0||Tr>0||Er>0)&&Wi(!0)}),[yr,br]),a.useEffect((()=>{Lr()}),[kt]);const Lr=async()=>{let e={UniqueId:kt,PostData:[{User:null==Xi?void 0:Xi.map((e=>({UserId:e.UserId,CompId:e.CompId,BranchId:e.BranchId,AppId:e.AppId}))),Company:null==Yi?void 0:Yi.map((e=>({CompId:e.CompId}))),Branch:null==Gi?void 0:Gi.map((e=>({BranchId:e.BranchId,CompId:e.CompId})))}]};(kt&&"annual"==Wn&&Da<Ia||kt&&"monthly"==Wn&&Da<Ia)&&await nt(TE(e)).unwrap()},Ur=a.useCallback((()=>{Ot(null),Ut(null)}),[]);a.useEffect((()=>{st||0!=(null==At?void 0:At.length)||qn(!1),_r()}),[]);const _r=async()=>{var e;let t={UserId:xt,AppId:rt,Type:"R"},n=await nt(_E(t)).unwrap();Ca(null==(e=null==n?void 0:n.data)?void 0:e.data)};return Ye.jsxs(Ye.Fragment,{children:[((null==At?void 0:At.length)>0?"Extend Pack"!=(null==La?void 0:La.status)&&"No Data Found"!=(null==La?void 0:La.status)&&"Free"!=(null==(ie=null==At?void 0:At[0])?void 0:ie.PricingName):"Extend Pack"!=(null==La?void 0:La.status)&&" "==(null==La?void 0:La.status))&&xr>=0&&Ye.jsx(SP,{open:zn,width:1e3,title:Ye.jsx("h3",{children:" Change Your Plan"}),footer:!0,children:Ye.jsxs("div",{style:{display:"flex",rowGap:"1rem",flexDirection:"column"},children:[Ye.jsx("div",{style:{fontSize:"17px",fontWeight:"600",position:"absolute",left:"15rem",top:"3rem",border:"1px solid gray",padding:"2px 8px",borderRadius:"5px",background:"annual"==Wn?"annual"==Wn&&Da>(null==(ae=null==At?void 0:At[0])?void 0:ae.ExistingPlanNetPrice)?"green":"red":Da>(null==(re=null==At?void 0:At[0])?void 0:re.ExistingPlanNetPrice)?"green":"red",color:"#fff"},children:"annual"==Wn?"annual"==Wn&&Da>(null==(se=null==At?void 0:At[0])?void 0:se.ExistingPlanNetPrice)?"upgrade":"downgrade":Da>(null==(le=null==At?void 0:At[0])?void 0:le.ExistingPlanNetPrice)?"upgrade":"downgrade"}),Ye.jsxs("div",{style:{display:"flex",columnGap:"2rem",flexWrap:"wrap"},children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[Ye.jsx("p",{style:{fontSize:"12px",fontWeightL:"600"},children:"FROM"}),Ye.jsx("h1",{style:{fontSize:"22px"},children:null==ut?void 0:ut.PricingName}),Ye.jsx("p",{children:(null==(oe=null==At?void 0:At[0])?void 0:oe.PlanNoOfDays)<365?"monthly":"Annual"})]}),Ye.jsx("div",{style:{display:"flex",alignItems:"flex-end"},children:Ye.jsx(Yn,{style:{fontSize:"50px"}})}),Ye.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[Ye.jsxs("p",{style:{color:"green",fontSize:"12px",fontWeightL:"600"},children:["CHANGE TO"," "]}),Ye.jsx("h1",{style:{fontSize:"22px"},children:null==dt?void 0:dt.PricingName}),Ye.jsx("p",{children:"annual"===Wn?"Annual":"monthly"})]})]}),Ye.jsx("hr",{}),Ye.jsxs("div",{style:{display:"flex",rowGap:"0.7rem",columnGap:"1rem",flexWrap:"wrap"},children:[Xn&&Ye.jsxs("label",{className:"custom-radio-label",style:{display:"flex",columnGap:"0.5rem",border:"1px solid gray",padding:"0.7rem",borderRadius:"5px",backgroundColor:"monthly"===Wn&&"#f5ead5",cursor:"pointer"},children:[Ye.jsx("input",{type:"radio",name:"Plan",value:"monthly",checked:"monthly"===Wn,onChange:ar}),Ye.jsxs("p",{style:{display:"flex",flexDirection:"column",fontSize:"20px"},children:["Monthly Plan",Ye.jsxs("span",{style:{fontSize:"12px"},children:["₹",Xn," billed monthly"," "]})]})]}),Zn&&Ye.jsxs("label",{className:"custom-radio-label",style:{display:"flex",columnGap:"0.5rem",border:"1px solid gray",padding:"0.7rem",borderRadius:"5px",backgroundColor:"annual"===Wn&&"#f5ead5",cursor:"pointer"},children:[Ye.jsx("input",{type:"radio",name:"Plan",value:"annual",checked:"annual"===Wn,onChange:ar}),Ye.jsxs("p",{style:{display:"flex",flexDirection:"column",fontSize:"20px"},children:["Annual Plan",Ye.jsxs("span",{style:{fontSize:"12px"},children:["₹",Zn," billed anually"," "]})]})]})]}),Ye.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",rowGap:"0.4rem"},children:[Ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[Ye.jsx("p",{children:"Current Plan Amount"}),Ye.jsxs("p",{style:{fontWeight:"600"},children:[":₹ ",Ia]})]}),Ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[Ye.jsx("p",{children:"Remaining days of current plan / per day amount :"}),Ye.jsxs("p",{style:{fontWeight:"600"},children:[pt," ",pt>1?"days":"day"," / ₹"," ",Pa]})]}),Ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[Ye.jsx("p",{children:"consumed Amount of current plan / consumed Days :"}),Ye.jsxs("p",{style:{fontWeight:"600"},children:["₹ ",Math.abs(Ta).toFixed(2),"/",ka," ",ka>1?"days":"day"]})]}),Ia-Pa>0&&Ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[Ye.jsx("p",{children:"Remaining available amount from the current plan :"}),Ye.jsxs("p",{style:{fontWeight:"600"},children:["₹ ",Math.abs(Ea).toFixed(2)]})]}),Ye.jsx("div",{children:Ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[Ye.jsxs("p",{children:["This ",Wn," Plan includes :"]}),Ye.jsxs("p",{style:{fontWeight:"600"},children:[Math.floor(Ua)," ",Ua>1?"days":"day"]})]})}),Ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[Ye.jsx("p",{children:"Selected plan Amount"}),Ye.jsxs("p",{style:{fontWeight:"600"},children:[":₹ ",Da]})]}),Ye.jsx("div",{style:{display:"flex",justifyContent:"center",fontSize:"20px"},children:Ea-Da>=0?Ye.jsxs("p",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[Ye.jsx("span",{style:{fontWeight:"600"}}),Ye.jsxs("span",{style:{fontWeight:"600",color:"green"},children:[" ","You don't need to pay the bill"]})]}):Ia-(pt-Ba)*Pa-Da!=0&&Ye.jsxs("p",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[Ye.jsx("span",{style:{fontWeight:"600"},children:"Payable Amount"}),Ye.jsxs("span",{style:{fontWeight:"600",color:"red"},children:[":₹"," ",Math.abs(Ea-Da).toFixed(2)]})]})})]}),Ye.jsx("hr",{}),Da<Ia&&Ye.jsxs("div",{children:[kr>0||Tr>0||Er>0&&Ye.jsx("h1",{children:"Deactivation Of Features For Your Current plan"}),Fr>Sr-wr&&0==!kr&&Ye.jsxs("div",{children:[Ye.jsxs("h4",{children:["Number of Company's Of Your Previous Plan :",Fr," "]}),Ye.jsxs("p",{children:["Your Eligible Company's For This Current Plan is :"," ",wr," & Deactivate : ",kr," ","Company's"]})]}),Br>Nr-jr&&0!=Tr&&jr!==Nr&&Tr>0&&Ye.jsxs("div",{children:[Ye.jsxs("h4",{children:["Number of Branches Of Your Previous Plan:"," ",Br]}),Ye.jsxs("p",{children:["Your Eligible Branches For This Current Plan is:"," ",jr]}),Tr>0&&Ye.jsxs("p",{children:["Deactivate: ",Tr," Branch's"]})]}),Cr<Ir&&Pr>Cr-Ir&&Er>0&&Ye.jsxs("div",{children:[Ye.jsxs("h4",{children:["Number of User's Of Your Previous Plan :",Pr," & Incuding Admin : 1"]}),Ye.jsxs("p",{children:["Your Eligible User's For This Current Plan is :"," ",Cr," "]}),Er>0&&Ye.jsxs("p",{children:["Deactivate: ",Er," User's"]})]}),Ye.jsx("div",{children:Ye.jsx(fk,{content:Dr,defaultSelect:Ii,onSelectFuntion:e=>{fr(e)}})}),Ye.jsxs("div",{children:["Company"===Ii&&Fr-wr!==0&&Fr>0&&Ye.jsx(E,{columns:mr,dataSource:Bi}),"Branch"===Ii&&Br-jr!==0&&jr!==Nr&&Tr>0&&Ye.jsx(E,{columns:vr,dataSource:ki}),"User"===Ii&&Er>0&&Ye.jsx(E,{columns:gr,dataSource:Ei})]})]}),Ye.jsx("div",{style:{border:"1px solid orange",borderRadius:"7px",padding:"1rem"},children:Ye.jsxs("ul",{children:[Ye.jsxs("p",{style:{fontSize:"13px"},children:["1. Once the current billing period ends you will be billed monthly. By choosing an annual subscription you save 17% on the subscription fee."," "]}),Ye.jsx("br",{}),Ye.jsxs("p",{style:{fontSize:"13px"},children:["2. Please note, if you downgrade your plan, any reduction in the amount paid is your responsibility. Pozo is not responsible for any changes or refunds due to the plan change."," "]})]})}),Ye.jsx("div",{className:"Planchanges",children:mt&&!(Ea-Da>=0)&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(_y,{options:null==fa?void 0:fa.map((e=>({value:e.ConfigId,label:e.ConfigName}))),placeholder:"Type",label:"Type",className:"field-DropDown",isOnchanges:!!va,onChangeFunction:e=>(e=>{ga(e)})(e),valueData:va}),Ye.jsx(My,{field:"AppDescription",autoComplete:"off",label:"Reason",fieldState:!0,onChange:e=>(e=>{var t;xa(null==(t=null==e?void 0:e.target)?void 0:t.value)})(e)})]})})]}),handleCancel:rr,handleSubmit:()=>(async e=>{var t,n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B,P,k,T,E,D,L,U,_,O,M,R,Q,H,V,z,q,W,Y,K,G,$,X,J,Z,ee,te,ne,ie,ae,re,se,le,oe,de,ce,ue,pe,Ae,he,fe,me,ve,ge,ye,xe,be,we,je,Ce,Se,Ne,Ie,Fe,Be,Pe,ke,Te,Ee,De,Le,Ue,_e,Oe,Me,Re,Qe,He,Ve,ze,qe,We,Ye,Ke,Ge,$e,Je,et,tt,at,st,lt,ot,dt,ct,ut,ht,ft,vt,gt,yt,bt,wt,Ct,St,Nt,It,Ft,Bt,Pt,kt,Et,Lt,_t,Mt,Rt,Qt,Ht,Vt,zt,qt,Wt,Yt,Kt,Gt,$t,Xt,Jt,Zt,en,tn,nn,an,rn,sn,ln,on,dn,cn,un,pn,An,hn,fn,mn,vn,gn,yn,xn,bn,wn,jn,Cn,Sn,Nn,In,Fn,Bn,Pn,kn,Tn,En,Dn,Ln,Un,_n,On,Mn,Rn,Qn,Hn,Vn,zn,Yn,Kn,$n,Xn,Jn,Zn,ei,ti,ni,ii,ai,si,li,oi,di,ci,ui,pi,Ai,hi,fi,mi,vi;if(mt&&Ea-Da>=0){var gi=e*(null==(t=null==jt?void 0:jt[0])?void 0:t.TaxPercentage)/(100+(null==(n=null==jt?void 0:jt[0])?void 0:n.TaxPercentage));Ci(Math.abs(Ea-Da).toFixed(2));let Z=Ea-Da>=0?"monthly"===Wn?_a:Oa:"monthly"===Wn?30:365;if(Ia/ri*pt-Da>=0){let t,n=null==At?void 0:At.map((e=>e.UniqueId)),E={UserId:xt,AppId:null==(i=null==jt?void 0:jt[0])?void 0:i.AppId,PricingId:Aa||(null==(a=null==jt?void 0:jt[0])?void 0:a.PricingId),CompId:null==(r=null==At?void 0:At[0])?void 0:r.CompId,PurDate:Gn,PaymentMode:27,PaymentStatus:"P",LicenseStatus:"A",Price:Ea-Da>=0?0:e-gi,TaxId:null==(s=null==jt?void 0:jt[0])?void 0:s.TaxId,TaxAmount:Ea-Da>=0?0:gi,NetPrice:Ea-Da>=0?0:e-ua,ValidityStart:Gn,ValidityEnd:nr(Gn,Z),NoofDays:Z,oldUniqueId:n,Debit:0,Credit:0,CreatedBy:xt};if("annual"==Wn)if(Da>(null==(l=null==At?void 0:At[0])?void 0:l.ExistingPlanNetPrice)){if(t=await nt(eT(E)),null==(o=null==t?void 0:t.data)?void 0:o.SMSbody){const e={body:null==(d=null==t?void 0:t.data)?void 0:d.SMSbody};await nt(aw(e))}}else kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)||Tr===(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)||Er<=(null==ia?void 0:ia.length)||kr<=0&&Tr<=0&&Er<=0?(0!=Fr&&0!=Br&&0!=Pr||kr<=0&&Tr<=0&&Er<=0)&&(t=await nt(eT(E))):(Ut("error"),Ot("Deactive features"));if("monthly"==Wn)if(Da>(null==(c=null==At?void 0:At[0])?void 0:c.ExistingPlanNetPrice))t=await nt(eT(E));else if(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)||Tr===(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)||Er<=(null==ia?void 0:ia.length)||kr<=0&&Tr<=0&&Er<=0){if((0!=Fr&&0!=Br&&0!=Pr||kr<=0&&Tr<=0&&Er<=0)&&(t=await nt(eT(E)),null==(u=null==t?void 0:t.data)?void 0:u.SMSbody)){const e={body:null==(p=null==t?void 0:t.data)?void 0:p.SMSbody};await nt(aw(e))}}else Ut("error"),Ot("Deactive features");if(1==(null==(h=null==(A=null==t?void 0:t.payload)?void 0:A.data)?void 0:h.statusCode)){let e={PaymentStatus:"S",UniqueId:null==(m=null==(f=null==t?void 0:t.payload)?void 0:f.data)?void 0:m.BookingId,UpdatedBy:xt},n=await nt(tT(e)).unwrap();1==(null==(v=null==n?void 0:n.data)?void 0:v.statusCode)?(it(`${iR}setting/purchaseinfo`),qn(!1)):(qn(!1),Ut("error"),Ot(null==(g=null==n?void 0:n.data)?void 0:g.response));let i=[],a=[],r=[];null==ia||ia.map((e=>{var t,n,i,a,s,l;return null==r?void 0:r.push({UserId:null==(n=null==(t=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:n.UserId,CompId:null==(a=null==(i=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:i[0])?void 0:a.CompId,BranchId:null==(l=null==(s=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:s[0])?void 0:l.BranchId,AppId:rt})})),null==ta||ta.map((e=>{var t,n,i,r;return null==a?void 0:a.push({BranchId:null==(n=null==(t=null==ki?void 0:ki.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:n.BrId,CompId:null==(r=null==(i=null==ki?void 0:ki.filter(((t,n)=>n===e)))?void 0:i[0])?void 0:r.CompId})})),null==Zi||Zi.map((e=>{var t,n;return null==i?void 0:i.push({CompId:null==(n=null==(t=null==Bi?void 0:Bi.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:n.CompId})}));let s={UniqueId:null==(x=null==(y=null==t?void 0:t.payload)?void 0:y.data)?void 0:x.BookingId,PostData:[{User:null==r?void 0:r.map((e=>({UserId:e.UserId,CompId:e.CompId,BranchId:e.BranchId,AppId:e.AppId}))),Company:null==i?void 0:i.map((e=>({CompId:e.CompId}))),Branch:null==a?void 0:a.map((e=>({BranchId:e.BranchId,CompId:e.CompId})))}]};if("annual"==Wn&&Da<Ia&&(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===(null==ia?void 0:ia.length))){let e=await nt(TE(s)).unwrap();if(1==(null==(b=null==e?void 0:e.data)?void 0:b.statusCode)){let e=await nt(EE({UniqueId:null==(j=null==(w=null==t?void 0:t.payload)?void 0:w.data)?void 0:j.BookingId})).unwrap();1==(null==(C=null==e?void 0:e.data)?void 0:C.statusCode)?(Ze(!0),qn(!1)):(qn(!1),Ut("error"),Ot(null==(S=null==e?void 0:e.data)?void 0:S.response))}else qn(!1),Ut("error"),Ot(null==(N=null==e?void 0:e.data)?void 0:N.response)}else if("monthly"==Wn&&Da<Ia&&(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===ia.length)){let e=await nt(TE(s)).unwrap();if(1==(null==(I=null==e?void 0:e.data)?void 0:I.statusCode)){let e=await nt(EE({UniqueId:null==(B=null==(F=null==t?void 0:t.payload)?void 0:F.data)?void 0:B.BookingId})).unwrap();1==(null==(P=null==e?void 0:e.data)?void 0:P.statusCode)?(Ze(!0),qn(!1)):(qn(!1),Ut("error"),Ot(null==(k=null==e?void 0:e.data)?void 0:k.response))}else qn(!1),Ut("error"),Ot(null==(T=null==e?void 0:e.data)?void 0:T.response)}}}else{let t,n=null==At?void 0:At.map((e=>e.UniqueId)),i={UserId:xt,AppId:null==(E=null==jt?void 0:jt[0])?void 0:E.AppId,PricingId:Aa||(null==(D=null==jt?void 0:jt[0])?void 0:D.PricingId),CompId:null==(L=null==At?void 0:At[0])?void 0:L.CompId,PurDate:Gn,PaymentMode:27,PaymentStatus:"P",LicenseStatus:"A",Price:Ea-Da>=0?0:e-gi,TaxId:null==(U=null==jt?void 0:jt[0])?void 0:U.TaxId,TaxAmount:Ea-Da>=0?0:gi,NetPrice:Ea-Da>=0?0:e,ValidityStart:Gn,ValidityEnd:nr(Gn,Z),NoofDays:Z,oldUniqueId:n,Debit:0,Credit:0,CreatedBy:xt};if("annual"==Wn&&(Da>(null==(_=null==At?void 0:At[0])?void 0:_.ExistingPlanNetPrice)||kr===(null==Zi?void 0:Zi.length)&&Tr>=(null==ta?void 0:ta.length)&&Er>=(null==ia?void 0:ia.length)||Er>=(null==ia?void 0:ia.length)||Tr<=(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)?(t=await nt(eT(i)),qn(!1)):(Ut("error"),Ot("Deactive features"))),"monthly"==Wn)if(Da>(null==(O=null==At?void 0:At[0])?void 0:O.ExistingPlanNetPrice)){if(t=await nt(eT(i)),null==(M=null==t?void 0:t.data)?void 0:M.SMSbody){const e={body:null==(R=null==t?void 0:t.data)?void 0:R.SMSbody};await nt(aw(e))}qn(!1)}else kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===(null==ia?void 0:ia.length)||kr<=0&&Tr<=0&&Er<=0?0!=Fr&&0!=Br&&0!=Pr||kr<=0&&Tr<=0&&Er<=0?(t=await nt(eT(i)),qn(!1)):(0==Fr&&0==Br&&0==Pr||(t=await nt(eT(i))),t=await nt(eT(i)),qn(!1)):(Ut("error"),Ot("Deactive features"));if(1==(null==(H=null==(Q=null==t?void 0:t.payload)?void 0:Q.data)?void 0:H.statusCode)){Tt(null==(z=null==(V=null==t?void 0:t.payload)?void 0:V.data)?void 0:z.BookingId),Dt(null==(W=null==(q=null==t?void 0:t.payload)?void 0:q.data)?void 0:W.OrderId),Xe(!0);let e=[],n=[],i=[];null==ia||ia.map((e=>{var t,n,a,r,s,l;return i.push({UserId:null==(n=null==(t=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:n.UserId,CompId:null==(r=null==(a=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:a[0])?void 0:r.CompId,BranchId:null==(l=null==(s=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:s[0])?void 0:l.BranchId,AppId:rt})})),null==ta||ta.map((e=>{var t,i,a,r;return n.push({BranchId:null==(i=null==(t=null==ki?void 0:ki.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:i.BrId,CompId:null==(r=null==(a=null==ki?void 0:ki.filter(((t,n)=>n===e)))?void 0:a[0])?void 0:r.CompId})})),null==Zi||Zi.map((t=>{var n,i;return e.push({CompId:null==(i=null==(n=null==Bi?void 0:Bi.filter(((e,n)=>n===t)))?void 0:n[0])?void 0:i.CompId})}));let a={UniqueId:null==(K=null==(Y=null==t?void 0:t.payload)?void 0:Y.data)?void 0:K.BookingId,PostData:[{User:null==i?void 0:i.map((e=>({UserId:e.UserId,CompId:e.CompId,BranchId:e.BranchId,AppId:e.AppId}))),Company:null==e?void 0:e.map((e=>({CompId:e.CompId}))),Branch:null==n?void 0:n.map((e=>({BranchId:e.BranchId,CompId:e.CompId})))}]};if("annual"==Wn&&Da<Ia&&(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===(null==ia?void 0:ia.length))){let e=await nt(TE(a)).unwrap();1==(null==(G=null==e?void 0:e.data)?void 0:G.statusCode)?(Ze(!0),qn(!1)):(qn(!1),Ut("error"),Ot(null==($=null==e?void 0:e.data)?void 0:$.response))}else if("monthly"==Wn&&Da<Ia&&(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===(null==ia?void 0:ia.length))){let e=await nt(TE(a)).unwrap();1==(null==(X=null==e?void 0:e.data)?void 0:X.statusCode)?(Ze(!0),qn(!1)):(qn(!1),Ut("error"),Ot(null==(J=null==e?void 0:e.data)?void 0:J.response))}else qn(!1)}}}else if(mt)if(va){gi=e*(null==(Z=null==jt?void 0:jt[0])?void 0:Z.TaxPercentage)/(100+(null==(ee=null==jt?void 0:jt[0])?void 0:ee.TaxPercentage)),Ci(Math.abs(Ea-Da).toFixed(2));let t=Ea-Da>=0?"monthly"===Wn?_a:Oa:"monthly"===Wn?30:365;if(Ia/ri*pt-Da>=0){let n,i=null==At?void 0:At.map((e=>e.UniqueId)),a={UserId:xt,AppId:null==(te=null==jt?void 0:jt[0])?void 0:te.AppId,PricingId:Aa||(null==(ne=null==jt?void 0:jt[0])?void 0:ne.PricingId),CompId:null==(ie=null==At?void 0:At[0])?void 0:ie.CompId,PurDate:Gn,PaymentMode:27,PaymentStatus:"P",LicenseStatus:"A",Price:Ea-Da>=0?0:e-gi,TaxId:null==(ae=null==jt?void 0:jt[0])?void 0:ae.TaxId,TaxAmount:Ea-Da>=0?0:gi,NetPrice:Ea-Da>=0?0:e,ValidityStart:Gn,ValidityEnd:nr(Gn,t),NoofDays:t,oldUniqueId:i,Debit:0,Credit:0,CreatedBy:xt,Reason:ya||"",PaymentType:va||""};if("annual"==Wn)if(Da>(null==(re=null==At?void 0:At[0])?void 0:re.ExistingPlanNetPrice)){if(n=await nt(eT(a)),1==(null==(le=null==(se=null==n?void 0:n.payload)?void 0:se.data)?void 0:le.statusCode)){let e={PaymentStatus:"S",UniqueId:null==(de=null==(oe=null==n?void 0:n.payload)?void 0:oe.data)?void 0:de.BookingId,UpdatedBy:xt},t=await nt(tT(e)).unwrap();1==(null==(ce=null==t?void 0:t.data)?void 0:ce.statusCode)?(qn(!1),it(`${iR}setting/purchaseinfo`)):(qn(!1),Ut("error"),Ot(null==(ue=null==t?void 0:t.data)?void 0:ue.response))}}else if(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)||Tr===(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)||Er<=(null==ia?void 0:ia.length)||kr<=0&&Tr<=0&&Er<=0){if(0!=Fr&&0!=Br&&0!=Pr||kr<=0&&Tr<=0&&Er<=0){if(n=await nt(eT(a)),null==(pe=null==n?void 0:n.data)?void 0:pe.SMSbody){const e={body:null==(Ae=null==n?void 0:n.data)?void 0:Ae.SMSbody};await nt(aw(e))}if(1==(null==(fe=null==(he=null==n?void 0:n.payload)?void 0:he.data)?void 0:fe.statusCode)){let e={PaymentStatus:"S",UniqueId:null==(ve=null==(me=null==n?void 0:n.payload)?void 0:me.data)?void 0:ve.BookingId,UpdatedBy:xt},t=await nt(tT(e)).unwrap();1==(null==(ge=null==t?void 0:t.data)?void 0:ge.statusCode)?(qn(!1),it(`${iR}setting/purchaseinfo`)):(qn(!1),Ut("error"),Ot(null==(ye=null==t?void 0:t.data)?void 0:ye.response))}}}else Ut("error"),Ot("Deactive features");if("monthly"==Wn)if(Da>(null==(xe=null==At?void 0:At[0])?void 0:xe.ExistingPlanNetPrice)){if(n=await nt(eT(a)),1==(null==(we=null==(be=null==n?void 0:n.payload)?void 0:be.data)?void 0:we.statusCode)){let e={PaymentStatus:"S",UniqueId:null==(Ce=null==(je=null==n?void 0:n.payload)?void 0:je.data)?void 0:Ce.BookingId,UpdatedBy:xt},t=await nt(tT(e)).unwrap();if(1==(null==(Se=null==t?void 0:t.data)?void 0:Se.statusCode)){if(null==(Ne=null==t?void 0:t.data)?void 0:Ne.UserMail){const e={UniqueId:null==(Ie=null==t?void 0:t.data)?void 0:Ie.UniqueId,userData:null==(Fe=null==t?void 0:t.data)?void 0:Fe.userData,messageTemplatesList:null==(Be=null==t?void 0:t.data)?void 0:Be.messageTemplatesList,UserMail:null==(Pe=null==t?void 0:t.data)?void 0:Pe.UserMail,PaymentStatus:null==(ke=null==t?void 0:t.data)?void 0:ke.PaymentStatus};await nt(UE(e))}if(null==(Te=null==t?void 0:t.data)?void 0:Te.SMSbody){const e={body:null==(Ee=null==t?void 0:t.data)?void 0:Ee.SMSbody};await nt(aw(e))}qn(!1),it(`${iR}setting/purchaseinfo`)}else qn(!1),Ut("error"),Ot(null==(De=null==t?void 0:t.data)?void 0:De.response)}}else if(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)||Tr===(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)||Er<=(null==ia?void 0:ia.length)||kr<=0&&Tr<=0&&Er<=0){if((0!=Fr&&0!=Br&&0!=Pr||kr<=0&&Tr<=0&&Er<=0)&&(n=await nt(eT(a)),1==(null==(Ue=null==(Le=null==n?void 0:n.payload)?void 0:Le.data)?void 0:Ue.statusCode))){let e={PaymentStatus:"S",UniqueId:null==(Oe=null==(_e=null==n?void 0:n.payload)?void 0:_e.data)?void 0:Oe.BookingId,UpdatedBy:xt},t=await nt(tT(e)).unwrap();1==(null==(Me=null==t?void 0:t.data)?void 0:Me.statusCode)?(qn(!1),it(`${iR}setting/purchaseinfo`)):(qn(!1),Ut("error"),Ot(null==(Re=null==t?void 0:t.data)?void 0:Re.response))}}else Ut("error"),Ot("Deactive features");if(1==(null==(He=null==(Qe=null==n?void 0:n.payload)?void 0:Qe.data)?void 0:He.statusCode)){let e={PaymentStatus:"S",UniqueId:null==(ze=null==(Ve=null==n?void 0:n.payload)?void 0:Ve.data)?void 0:ze.BookingId,UpdatedBy:xt},t=await nt(tT(e)).unwrap();1==(null==(qe=null==t?void 0:t.data)?void 0:qe.statusCode)?(qn(!1),it(`${iR}setting/purchaseinfo`)):(qn(!1),Ut("error"),Ot(null==(We=null==t?void 0:t.data)?void 0:We.response));let i=[],a=[],r=[];null==ia||ia.map((e=>{var t,n,i,a,s,l;return null==r?void 0:r.push({UserId:null==(n=null==(t=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:n.UserId,CompId:null==(a=null==(i=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:i[0])?void 0:a.CompId,BranchId:null==(l=null==(s=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:s[0])?void 0:l.BranchId,AppId:rt})})),null==ta||ta.map((e=>{var t,n,i,r;return null==a?void 0:a.push({BranchId:null==(n=null==(t=null==ki?void 0:ki.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:n.BrId,CompId:null==(r=null==(i=null==ki?void 0:ki.filter(((t,n)=>n===e)))?void 0:i[0])?void 0:r.CompId})})),null==Zi||Zi.map((e=>{var t,n;return null==i?void 0:i.push({CompId:null==(n=null==(t=null==Bi?void 0:Bi.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:n.CompId})}));let s={UniqueId:null==(Ke=null==(Ye=null==n?void 0:n.payload)?void 0:Ye.data)?void 0:Ke.BookingId,PostData:[{User:null==r?void 0:r.map((e=>({UserId:e.UserId,CompId:e.CompId,BranchId:e.BranchId,AppId:e.AppId}))),Company:null==i?void 0:i.map((e=>({CompId:e.CompId}))),Branch:null==a?void 0:a.map((e=>({BranchId:e.BranchId,CompId:e.CompId})))}]};if("annual"==Wn&&Da<Ia&&(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===(null==ia?void 0:ia.length))){let e=await nt(TE(s)).unwrap();if(1==(null==(Ge=null==e?void 0:e.data)?void 0:Ge.statusCode)){let e=await nt(EE({UniqueId:null==(Je=null==($e=null==n?void 0:n.payload)?void 0:$e.data)?void 0:Je.BookingId})).unwrap();1==(null==(et=null==e?void 0:e.data)?void 0:et.statusCode)?(Ze(!0),qn(!1),it(`${iR}setting/purchaseinfo`)):(qn(!1),Ut("error"),Ot(null==(tt=null==e?void 0:e.data)?void 0:tt.response))}else qn(!1),Ut("error"),Ot(null==(at=null==e?void 0:e.data)?void 0:at.response)}else if("monthly"==Wn&&Da<Ia&&(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===ia.length)){let e=await nt(TE(s)).unwrap();if(1==(null==(st=null==e?void 0:e.data)?void 0:st.statusCode)){let e=await nt(EE({UniqueId:null==(ot=null==(lt=null==n?void 0:n.payload)?void 0:lt.data)?void 0:ot.BookingId})).unwrap();1==(null==(dt=null==e?void 0:e.data)?void 0:dt.statusCode)?(Ze(!0),qn(!1),it(`${iR}landing-page/home`)):(qn(!1),Ut("error"),Ot(null==(ct=null==e?void 0:e.data)?void 0:ct.response))}else qn(!1),Ut("error"),Ot(null==(ut=null==e?void 0:e.data)?void 0:ut.response)}}}else{let n,i=null==At?void 0:At.map((e=>e.UniqueId)),a={UserId:xt,AppId:null==(ht=null==jt?void 0:jt[0])?void 0:ht.AppId,PricingId:Aa||(null==(ft=null==jt?void 0:jt[0])?void 0:ft.PricingId),CompId:null==(vt=null==At?void 0:At[0])?void 0:vt.CompId,PurDate:Gn,PaymentMode:27,PaymentStatus:"P",LicenseStatus:"A",Price:Ea-Da>=0?0:e-gi,TaxId:null==(gt=null==jt?void 0:jt[0])?void 0:gt.TaxId,TaxAmount:Ea-Da>=0?0:gi,NetPrice:Ea-Da>=0?0:e,ValidityStart:Gn,ValidityEnd:nr(Gn,t),NoofDays:t,oldUniqueId:i,Debit:0,Credit:0,CreatedBy:xt,Reason:ya||"",PaymentType:va||""};if("annual"==Wn)if(Da>(null==(yt=null==At?void 0:At[0])?void 0:yt.ExistingPlanNetPrice)){if(n=await nt(eT(a)),null==(bt=null==n?void 0:n.data)?void 0:bt.SMSbody){const e={body:null==(wt=null==n?void 0:n.data)?void 0:wt.SMSbody};await nt(aw(e))}if(1==(null==(St=null==(Ct=null==n?void 0:n.payload)?void 0:Ct.data)?void 0:St.statusCode)){let e={PaymentStatus:"S",UniqueId:null==(It=null==(Nt=null==n?void 0:n.payload)?void 0:Nt.data)?void 0:It.BookingId,UpdatedBy:xt},t=await nt(tT(e)).unwrap();1==(null==(Ft=null==t?void 0:t.data)?void 0:Ft.statusCode)?(qn(!1),it(`${iR}setting/purchaseinfo`)):(qn(!1),Ut("error"),Ot(null==(Bt=null==t?void 0:t.data)?void 0:Bt.response))}}else if(kr===(null==Zi?void 0:Zi.length)&&Tr>=(null==ta?void 0:ta.length)&&Er>=(null==ia?void 0:ia.length)||Er>=(null==ia?void 0:ia.length)||Tr<=(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)){if(n=await nt(eT(a)),null==(Pt=null==n?void 0:n.data)?void 0:Pt.SMSbody){const e={body:null==(kt=null==n?void 0:n.data)?void 0:kt.SMSbody};await nt(aw(e))}if(1==(null==(Lt=null==(Et=null==n?void 0:n.payload)?void 0:Et.data)?void 0:Lt.statusCode)){let e={PaymentStatus:"S",UniqueId:null==(Mt=null==(_t=null==n?void 0:n.payload)?void 0:_t.data)?void 0:Mt.BookingId,UpdatedBy:xt},t=await nt(tT(e)).unwrap();1==(null==(Rt=null==t?void 0:t.data)?void 0:Rt.statusCode)?(qn(!1),it(`${iR}setting/purchaseinfo`)):(qn(!1),Ut("error"),Ot(null==(Qt=null==t?void 0:t.data)?void 0:Qt.response))}}else Ut("error"),Ot("Deactive features");if("monthly"==Wn)if(Da>(null==(Ht=null==At?void 0:At[0])?void 0:Ht.ExistingPlanNetPrice)){if(n=await nt(eT(a)),null==(Vt=null==n?void 0:n.data)?void 0:Vt.SMSbody){const e={body:null==(zt=null==n?void 0:n.data)?void 0:zt.SMSbody};await nt(aw(e))}if(1==(null==(Wt=null==(qt=null==n?void 0:n.payload)?void 0:qt.data)?void 0:Wt.statusCode)){let e={PaymentStatus:"S",UniqueId:null==(Kt=null==(Yt=null==n?void 0:n.payload)?void 0:Yt.data)?void 0:Kt.BookingId,UpdatedBy:xt},t=await nt(tT(e)).unwrap();1==(null==(Gt=null==t?void 0:t.data)?void 0:Gt.statusCode)?(qn(!1),it(`${iR}setting/purchaseinfo`)):(qn(!1),Ut("error"),Ot(null==($t=null==t?void 0:t.data)?void 0:$t.response))}}else if(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===(null==ia?void 0:ia.length)||kr<=0&&Tr<=0&&Er<=0)if(0!=Fr&&0!=Br&&0!=Pr||kr<=0&&Tr<=0&&Er<=0){if(n=await nt(eT(a)),null==(Xt=null==n?void 0:n.data)?void 0:Xt.SMSbody){const e={body:null==(Jt=null==n?void 0:n.data)?void 0:Jt.SMSbody};await nt(aw(e))}if(1==(null==(en=null==(Zt=null==n?void 0:n.payload)?void 0:Zt.data)?void 0:en.statusCode)){let e={PaymentStatus:"S",UniqueId:null==(nn=null==(tn=null==n?void 0:n.payload)?void 0:tn.data)?void 0:nn.BookingId,UpdatedBy:xt},t=await nt(tT(e)).unwrap();1==(null==(an=null==t?void 0:t.data)?void 0:an.statusCode)?(qn(!1),it(`${iR}setting/purchaseinfo`)):(qn(!1),Ut("error"),Ot(null==(rn=null==t?void 0:t.data)?void 0:rn.response))}}else{if(0==Fr&&0==Br&&0==Pr||(n=await nt(eT(a))),n=await nt(eT(a)),null==(sn=null==n?void 0:n.data)?void 0:sn.SMSbody){const e={body:null==(ln=null==n?void 0:n.data)?void 0:ln.SMSbody};await nt(aw(e))}qn(!1)}else Ut("error"),Ot("Deactive features");if(1==(null==(dn=null==(on=null==n?void 0:n.payload)?void 0:on.data)?void 0:dn.statusCode)){Tt(null==(un=null==(cn=null==n?void 0:n.payload)?void 0:cn.data)?void 0:un.BookingId),Dt(null==(An=null==(pn=null==n?void 0:n.payload)?void 0:pn.data)?void 0:An.OrderId),Xe(!0);let e=[],t=[],i=[];null==ia||ia.map((e=>{var t,n,a,r,s,l;return i.push({UserId:null==(n=null==(t=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:n.UserId,CompId:null==(r=null==(a=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:a[0])?void 0:r.CompId,BranchId:null==(l=null==(s=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:s[0])?void 0:l.BranchId,AppId:rt})})),null==ta||ta.map((e=>{var n,i,a,r;return t.push({BranchId:null==(i=null==(n=null==ki?void 0:ki.filter(((t,n)=>n===e)))?void 0:n[0])?void 0:i.BrId,CompId:null==(r=null==(a=null==ki?void 0:ki.filter(((t,n)=>n===e)))?void 0:a[0])?void 0:r.CompId})})),null==Zi||Zi.map((t=>{var n,i;return e.push({CompId:null==(i=null==(n=null==Bi?void 0:Bi.filter(((e,n)=>n===t)))?void 0:n[0])?void 0:i.CompId})}));let a={UniqueId:null==(fn=null==(hn=null==n?void 0:n.payload)?void 0:hn.data)?void 0:fn.BookingId,PostData:[{User:null==i?void 0:i.map((e=>({UserId:e.UserId,CompId:e.CompId,BranchId:e.BranchId,AppId:e.AppId}))),Company:null==e?void 0:e.map((e=>({CompId:e.CompId}))),Branch:null==t?void 0:t.map((e=>({BranchId:e.BranchId,CompId:e.CompId})))}]};if("annual"==Wn&&Da<Ia&&(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===(null==ia?void 0:ia.length))){let e=await nt(TE(a)).unwrap();1==(null==(mn=null==e?void 0:e.data)?void 0:mn.statusCode)?(Ze(!0),qn(!1),it(`${iR}setting/purchaseinfo`)):(qn(!1),Ut("error"),Ot(null==(vn=null==e?void 0:e.data)?void 0:vn.response))}else if("monthly"==Wn&&Da<Ia&&(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===(null==ia?void 0:ia.length))){let e=await nt(TE(a)).unwrap();1==(null==(gn=null==e?void 0:e.data)?void 0:gn.statusCode)?(Ze(!0),qn(!1),it(`${iR}setting/purchaseinfo`)):(qn(!1),Ut("error"),Ot(null==(yn=null==e?void 0:e.data)?void 0:yn.response))}else qn(!1)}}}else Ut("error"),Ot("Please Choose Payment Type");else{gi=e*(null==(xn=null==jt?void 0:jt[0])?void 0:xn.TaxPercentage)/(100+(null==(bn=null==jt?void 0:jt[0])?void 0:bn.TaxPercentage)),Ci(Math.abs(Ea-Da).toFixed(2));let t=Ea-Da>=0?"monthly"===Wn?_a:Oa:"monthly"===Wn?30:365;if(Ia/ri*pt-Da>=0){let n,i=null==At?void 0:At.map((e=>e.UniqueId)),a={UserId:xt,AppId:null==(wn=null==jt?void 0:jt[0])?void 0:wn.AppId,PricingId:Aa||(null==(jn=null==jt?void 0:jt[0])?void 0:jn.PricingId),CompId:null==(Cn=null==At?void 0:At[0])?void 0:Cn.CompId,PurDate:Gn,PaymentMode:27,PaymentStatus:"P",LicenseStatus:"A",Price:Ea-Da>=0?0:e-gi,TaxId:null==(Sn=null==jt?void 0:jt[0])?void 0:Sn.TaxId,TaxAmount:Ea-Da>=0?0:gi,NetPrice:Ea-Da>=0?0:e,ValidityStart:Gn,ValidityEnd:nr(Gn,t),NoofDays:t,oldUniqueId:i,Debit:0,Credit:0,CreatedBy:xt};if("annual"==Wn)if(Da>(null==(Nn=null==At?void 0:At[0])?void 0:Nn.ExistingPlanNetPrice)){if(n=await nt(eT(a)),null==(In=null==n?void 0:n.data)?void 0:In.SMSbody){const e={body:null==(Fn=null==n?void 0:n.data)?void 0:Fn.SMSbody};await nt(aw(e))}}else kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)||Tr===(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)||Er<=(null==ia?void 0:ia.length)||kr<=0&&Tr<=0&&Er<=0?(0!=Fr&&0!=Br&&0!=Pr||kr<=0&&Tr<=0&&Er<=0)&&(n=await nt(eT(a))):(Ut("error"),Ot("Deactive features"));if("monthly"==Wn&&(Da>(null==(Bn=null==At?void 0:At[0])?void 0:Bn.ExistingPlanNetPrice)?n=await nt(eT(a)):kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)||Tr===(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)||Er<=(null==ia?void 0:ia.length)||kr<=0&&Tr<=0&&Er<=0?(0!=Fr&&0!=Br&&0!=Pr||kr<=0&&Tr<=0&&Er<=0)&&(n=await nt(eT(a))):(Ut("error"),Ot("Deactive features"))),1==(null==(kn=null==(Pn=null==n?void 0:n.payload)?void 0:Pn.data)?void 0:kn.statusCode)){let e={PaymentStatus:"S",UniqueId:null==(En=null==(Tn=null==n?void 0:n.payload)?void 0:Tn.data)?void 0:En.BookingId,UpdatedBy:xt},t=await nt(tT(e)).unwrap();1==(null==(Dn=null==t?void 0:t.data)?void 0:Dn.statusCode)?(it(`${iR}landing-page/home`),qn(!1)):(qn(!1),Ut("error"),Ot(null==(Ln=null==t?void 0:t.data)?void 0:Ln.response));let i=[],a=[],r=[];null==ia||ia.map((e=>{var t,n,i,a,s,l;return null==r?void 0:r.push({UserId:null==(n=null==(t=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:n.UserId,CompId:null==(a=null==(i=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:i[0])?void 0:a.CompId,BranchId:null==(l=null==(s=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:s[0])?void 0:l.BranchId,AppId:rt})})),null==ta||ta.map((e=>{var t,n,i,r;return null==a?void 0:a.push({BranchId:null==(n=null==(t=null==ki?void 0:ki.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:n.BrId,CompId:null==(r=null==(i=null==ki?void 0:ki.filter(((t,n)=>n===e)))?void 0:i[0])?void 0:r.CompId})})),null==Zi||Zi.map((e=>{var t,n;return null==i?void 0:i.push({CompId:null==(n=null==(t=null==Bi?void 0:Bi.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:n.CompId})}));let s={UniqueId:null==(_n=null==(Un=null==n?void 0:n.payload)?void 0:Un.data)?void 0:_n.BookingId,PostData:[{User:null==r?void 0:r.map((e=>({UserId:e.UserId,CompId:e.CompId,BranchId:e.BranchId,AppId:e.AppId}))),Company:null==i?void 0:i.map((e=>({CompId:e.CompId}))),Branch:null==a?void 0:a.map((e=>({BranchId:e.BranchId,CompId:e.CompId})))}]};if("annual"==Wn&&Da<Ia&&(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===(null==ia?void 0:ia.length))){let e=await nt(TE(s)).unwrap();if(1==(null==(On=null==e?void 0:e.data)?void 0:On.statusCode)){let e=await nt(EE({UniqueId:null==(Rn=null==(Mn=null==n?void 0:n.payload)?void 0:Mn.data)?void 0:Rn.BookingId})).unwrap();1==(null==(Qn=null==e?void 0:e.data)?void 0:Qn.statusCode)?(Ze(!0),qn(!1)):(qn(!1),Ut("error"),Ot(null==(Hn=null==e?void 0:e.data)?void 0:Hn.response))}else qn(!1),Ut("error"),Ot(null==(Vn=null==e?void 0:e.data)?void 0:Vn.response)}else if("monthly"==Wn&&Da<Ia&&(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===ia.length)){let e=await nt(TE(s)).unwrap();if(1==(null==(zn=null==e?void 0:e.data)?void 0:zn.statusCode)){let e=await nt(EE({UniqueId:null==(Kn=null==(Yn=null==n?void 0:n.payload)?void 0:Yn.data)?void 0:Kn.BookingId})).unwrap();1==(null==($n=null==e?void 0:e.data)?void 0:$n.statusCode)?(Ze(!0),qn(!1)):(qn(!1),Ut("error"),Ot(null==(Xn=null==e?void 0:e.data)?void 0:Xn.response))}else qn(!1),Ut("error"),Ot(null==(Jn=null==e?void 0:e.data)?void 0:Jn.response)}}}else{let n,i=null==At?void 0:At.map((e=>e.UniqueId)),a={UserId:xt,AppId:null==(Zn=null==jt?void 0:jt[0])?void 0:Zn.AppId,PricingId:Aa||(null==(ei=null==jt?void 0:jt[0])?void 0:ei.PricingId),CompId:null==(ti=null==At?void 0:At[0])?void 0:ti.CompId,PurDate:Gn,PaymentMode:27,PaymentStatus:"P",LicenseStatus:"A",Price:Ea-Da>=0?0:e-gi,TaxId:null==(ni=null==jt?void 0:jt[0])?void 0:ni.TaxId,TaxAmount:Ea-Da>=0?0:gi,NetPrice:Ea-Da>=0?0:e,ValidityStart:Gn,ValidityEnd:nr(Gn,t),NoofDays:t,oldUniqueId:i,Debit:0,Credit:0,CreatedBy:xt};if("annual"==Wn&&(Da>(null==(ii=null==At?void 0:At[0])?void 0:ii.ExistingPlanNetPrice)||kr===(null==Zi?void 0:Zi.length)&&Tr>=(null==ta?void 0:ta.length)&&Er>=(null==ia?void 0:ia.length)||Er>=(null==ia?void 0:ia.length)||Tr<=(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)?(n=await nt(eT(a)),qn(!1)):(Ut("error"),Ot("Deactive features"))),"monthly"==Wn&&(Da>(null==(ai=null==At?void 0:At[0])?void 0:ai.ExistingPlanNetPrice)?(n=await nt(eT(a)),qn(!1)):kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===(null==ia?void 0:ia.length)||kr<=0&&Tr<=0&&Er<=0?0!=Fr&&0!=Br&&0!=Pr||kr<=0&&Tr<=0&&Er<=0?(n=await nt(eT(a)),qn(!1)):(0==Fr&&0==Br&&0==Pr||(n=await nt(eT(a))),n=await nt(eT(a)),qn(!1)):(Ut("error"),Ot("Deactive features"))),1==(null==(li=null==(si=null==n?void 0:n.payload)?void 0:si.data)?void 0:li.statusCode)){Tt(null==(di=null==(oi=null==n?void 0:n.payload)?void 0:oi.data)?void 0:di.BookingId),Dt(null==(ui=null==(ci=null==n?void 0:n.payload)?void 0:ci.data)?void 0:ui.OrderId),Xe(!0);let e=[],t=[],i=[];null==ia||ia.map((e=>{var t,n,a,r,s,l;return i.push({UserId:null==(n=null==(t=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:n.UserId,CompId:null==(r=null==(a=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:a[0])?void 0:r.CompId,BranchId:null==(l=null==(s=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:s[0])?void 0:l.BranchId,AppId:rt})})),null==ta||ta.map((e=>{var n,i,a,r;return t.push({BranchId:null==(i=null==(n=null==ki?void 0:ki.filter(((t,n)=>n===e)))?void 0:n[0])?void 0:i.BrId,CompId:null==(r=null==(a=null==ki?void 0:ki.filter(((t,n)=>n===e)))?void 0:a[0])?void 0:r.CompId})})),null==Zi||Zi.map((t=>{var n,i;return e.push({CompId:null==(i=null==(n=null==Bi?void 0:Bi.filter(((e,n)=>n===t)))?void 0:n[0])?void 0:i.CompId})}));let a={UniqueId:null==(Ai=null==(pi=null==n?void 0:n.payload)?void 0:pi.data)?void 0:Ai.BookingId,PostData:[{User:null==i?void 0:i.map((e=>({UserId:e.UserId,CompId:e.CompId,BranchId:e.BranchId,AppId:e.AppId}))),Company:null==e?void 0:e.map((e=>({CompId:e.CompId}))),Branch:null==t?void 0:t.map((e=>({BranchId:e.BranchId,CompId:e.CompId})))}]};if("annual"==Wn&&Da<Ia&&(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===(null==ia?void 0:ia.length))){let e=await nt(TE(a)).unwrap();1==(null==(hi=null==e?void 0:e.data)?void 0:hi.statusCode)?(Ze(!0),qn(!1)):(qn(!1),Ut("error"),Ot(null==(fi=null==e?void 0:e.data)?void 0:fi.response))}else if("monthly"==Wn&&Da<Ia&&(kr===(null==Zi?void 0:Zi.length)&&Tr===(null==ta?void 0:ta.length)||Er===(null==ia?void 0:ia.length))){let e=await nt(TE(a)).unwrap();1==(null==(mi=null==e?void 0:e.data)?void 0:mi.statusCode)?(Ze(!0),qn(!1)):(qn(!1),Ut("error"),Ot(null==(vi=null==e?void 0:e.data)?void 0:vi.response))}else qn(!1)}}}})(Math.abs(Ea-Da).toFixed(2)),buttonText:"SAVE"}),Ye.jsx("div",{style:{display:"none"},children:Ye.jsx(_M,{printingdata:di,CompanyName:Gt,zipcode:Xt,address:Zt,City:tn})}),Ye.jsx(Qy,{messageType:Lt,messageData:_t,onComplete:Ur}),Ye.jsxs("div",{className:"breadCrumbClass",style:{alignItems:"center"},children:[Ye.jsxs("div",{style:{padding:"1rem 0rem"},onClick:()=>it(`${iR}`),children:[" ",Ye.jsx("img",{style:{width:"70px"},src:cE,alt:""})," "]}),Ye.jsxs("div",{className:"tooltip",children:[Ye.jsx("p",{"data-letters":bi?(null==bi?void 0:bi.slice(0,1))+(null==bi?void 0:bi.slice(-1)):"GU",style:{textTransform:"uppercase",fontFamily:"Gilroy"}}),Ye.jsx("span",{className:"tooltiptext",style:{fontFamily:"Gilroy"},children:bi||Bt})]})]}),Ye.jsx("div",{className:"invoice-detail-bg",children:Ye.jsxs("div",{className:"invoice-detail-div",children:[Ye.jsxs("div",{className:"Invoice-detail-cont",children:[Ye.jsxs("div",{style:{padding:"0.5rem 2rem"},children:[Ye.jsxs("p",{className:"invoice-1st-txt",children:[" ","Flexible & transparent pricing"," "]}),Ye.jsxs("div",{className:"invoice-2nd-txt",style:{display:"flex",alignItems:"center"},children:["No Contracts. No surprise fees. "," ",Ye.jsx("p",{children:" Pay less by using more"})," "," ",Ye.jsxs("p",{style:{textDecoration:"underline",color:"#1292EE",fontSize:"14px",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.2rem"},onClick:()=>{Vn(!Hn)},children:["Feature Details ",Ye.jsx(UO,{})," "]})]}),Hn&&Ye.jsxs("div",{className:"invoice-drop-items",children:[Ye.jsx("div",{className:"invoice-4th-row",children:Ye.jsxs("div",{style:{display:"flex",overflow:"auto",width:"max-content"},children:[Ye.jsxs("table",{style:{display:"inline-block",borderCollapse:"collapse",border:"1px solid #ddd",borderRadius:"5px",width:"inherit",overflow:"hidden",margin:"0 10px"},children:[Ye.jsx("thead",{style:{background:"#faebd7"},children:Ye.jsxs("tr",{children:[Ye.jsx("th",{style:{border:"1px solid #ddd",padding:"8px",textAlign:"left"},children:"Feature Name"}),Ye.jsx("th",{style:{border:"1px solid #ddd",padding:"8px",textAlign:"left"},children:"Constraint"})]})}),Ye.jsx("tbody",{children:null==(de=null==bt?void 0:bt.slice(0,Math.ceil((null==bt?void 0:bt.length)/3)))?void 0:de.map(((e,t)=>Ye.jsxs("tr",{children:[Ye.jsx("td",{style:{border:"1px solid #ddd",padding:"8px",textAlign:"left"},children:Ye.jsx("div",{children:null==e?void 0:e.FeatName})}),Ye.jsx("td",{style:{border:"1px solid #ddd",padding:"8px",textAlign:"center"},children:0===(null==e?void 0:e.FeatConstraint)?Ye.jsx(gE,{style:{color:"#52C41A",fontSize:"16px"}}):null==e?void 0:e.FeatConstraint})]},t)))})]}),(null==bt?void 0:bt.length)>1&&Ye.jsxs("table",{style:{display:"inline-block",borderCollapse:"collapse",border:"1px solid #ddd",borderRadius:"5px",width:"inherit",overflow:"hidden",margin:"0 10px"},children:[Ye.jsx("thead",{style:{background:"#faebd7"},children:Ye.jsxs("tr",{children:[Ye.jsx("th",{style:{border:"1px solid #ddd",padding:"8px",textAlign:"left"},children:"Feature Name"}),Ye.jsx("th",{style:{border:"1px solid #ddd",padding:"8px",textAlign:"left"},children:"Constraint"})]})}),Ye.jsx("tbody",{children:null==(ce=null==bt?void 0:bt.slice(Math.ceil((null==bt?void 0:bt.length)/3),Math.ceil(2*(null==bt?void 0:bt.length)/3)))?void 0:ce.map(((e,t)=>Ye.jsxs("tr",{children:[Ye.jsx("td",{style:{border:"1px solid #ddd",padding:"8px",textAlign:"left"},children:Ye.jsx("div",{children:null==e?void 0:e.FeatName})}),Ye.jsx("td",{style:{border:"1px solid #ddd",padding:"8px",textAlign:"center"},children:0===(null==e?void 0:e.FeatConstraint)?Ye.jsx(gE,{style:{color:"#52C41A",fontSize:"16px"}}):null==e?void 0:e.FeatConstraint})]},t)))})]}),(null==bt?void 0:bt.length)>2&&Ye.jsxs("table",{style:{display:"inline-block",borderCollapse:"collapse",border:"1px solid #ddd",borderRadius:"5px",width:"inherit",overflow:"hidden",margin:"0 10px"},children:[Ye.jsx("thead",{style:{background:"#faebd7"},children:Ye.jsxs("tr",{children:[Ye.jsx("th",{style:{border:"1px solid #ddd",padding:"8px",textAlign:"left"},children:"Feature Name"}),Ye.jsx("th",{style:{border:"1px solid #ddd",padding:"8px",textAlign:"left"},children:"Constraint"})]})}),Ye.jsx("tbody",{children:null==(ue=null==bt?void 0:bt.slice(Math.ceil(2*(null==bt?void 0:bt.length)/3)))?void 0:ue.map(((e,t)=>Ye.jsxs("tr",{children:[Ye.jsx("td",{style:{border:"1px solid #ddd",padding:"8px",textAlign:"left"},children:Ye.jsx("div",{children:null==e?void 0:e.FeatName})}),Ye.jsx("td",{style:{border:"1px solid #ddd",padding:"8px",textAlign:"center"},children:0===(null==e?void 0:e.FeatConstraint)?Ye.jsx(gE,{style:{color:"#52C41A",fontSize:"16px"}}):null==e?void 0:e.FeatConstraint})]},t)))})]})]})}),!$e&&(null==(pe=null==Li?void 0:Li[0])?void 0:pe.FeatDetails.length)>0&&Ye.jsx("div",{className:"ttt",onClick:er,style:{paddingTop:"185px"},children:Ye.jsx(Ry,{type:"submit",buttonText:"Feature-Addon",className:"sbmt-btn",handleSubmit:er,icon:Ye.jsx(k,{})})})]})]}),Ye.jsx("div",{className:"Invoice-details-bg",children:Ye.jsx("div",{className:"Invoice-details-pricedetails",children:!We&&Ye.jsx("div",{className:"pricedetails-div",children:Ye.jsx("div",{style:{background:" ",display:"flex",flexDirection:"row",justifyContent:"space-around"},children:Ye.jsxs("div",{style:{background:" ",display:"flex",flexDirection:"column",rowGap:"1rem"},children:[Ye.jsxs("div",{style:{backgroundColor:"#52c41a2e",padding:"1rem 1rem",borderRadius:"10px",display:"flex",flexDirection:"row",rowGap:"2rem",justifyContent:"space-between"},children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:"0.2rem"},children:[Ye.jsxs("div",{style:{display:"flex",fontFamily:"Gilroy",fontSize:"clamp(18px, 2.5vw, 25px)",fontWeight:"600",color:"green",borderRadius:"3px",alignItems:"center",columnGap:"0.2rem"},children:[Ye.jsx(OO,{}),gt?null==(Ae=null==ft?void 0:ft[0])?void 0:Ae.PricingName:jt&&jt.length>0?null==(he=jt[0])?void 0:he.PricingName:0," ","/"," ",gt?30===(null==(fe=null==ft?void 0:ft[0])?void 0:fe.NoOfDays)?Ye.jsx("p",{style:{fontFamily:"gilroy"},children:" Monthly"}):Ye.jsx("p",{style:{fontFamily:"gilroy"},children:"Yearly"}):jt&&jt.length>0?30===(null==(me=jt[0])?void 0:me.NoOfDays)?Ye.jsx("p",{style:{fontFamily:"gilroy"},children:" Monthly"}):Ye.jsx("p",{style:{fontFamily:"gilroy"},children:"Yearly"}):null,Ye.jsxs("div",{style:{marginLeft:"10rem",paddingRight:"1rem"},children:[(null==ja?void 0:ja.length)<1&&Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",label:"Refferal Id",className:"EmpID",id:"EmpID",field:"EmpID",onChange:async function(e){var t,n,i,a,r;if(Na([]),8==(null==(t=null==e?void 0:e.target)?void 0:t.value.length)){wa(null==(n=null==e?void 0:e.target)?void 0:n.value);let t=await nt(OE({referralCode:null==(i=null==e?void 0:e.target)?void 0:i.value,MobileNo:iA("MobileNo")})).unwrap();1==(null==(a=null==t?void 0:t.data)?void 0:a.statusCode)?Na(null==(r=null==t?void 0:t.data)?void 0:r.data):(Ut("error"),Ot(t.data.response))}else Ut("error"),Ot("Enter 8 Digit Code")}}),Ye.jsxs("div",{children:[(null==(ve=null==Sa?void 0:Sa[0])?void 0:ve.UserName)?Ye.jsxs("p",{style:{fontFamily:"gilroy",fontSize:"15px"},children:["Username : ",null==(ge=null==Sa?void 0:Sa[0])?void 0:ge.UserName]}):"",(null==(ye=null==Sa?void 0:Sa[0])?void 0:ye.MobileNo)?Ye.jsxs("p",{style:{fontFamily:"gilroy",fontSize:"15px"},children:["MobileNo : ",null==(xe=null==Sa?void 0:Sa[0])?void 0:xe.MobileNo]}):""]})]})]}),Ye.jsxs("div",{children:[Ye.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:"0.5rem",color:"green"},children:[Ye.jsx("p",{style:{fontSize:"clamp(16px, 2.5vw, 20px)",fontWeight:"500"},children:gt||jt&&jt.length>0?(null==Mi?void 0:Mi.length)>0?Ye.jsxs(Ye.Fragment,{children:["₹ ",(Qi||0)+(ji||0)]}):Ye.jsxs(Ye.Fragment,{children:["₹ ",ji-ua>=0?ji-ua:0,ji-ua>=0&&ua>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("span",{children:" + "}),Ye.jsx(nR,{color:"#d78300",size:"1rem",width:"40px"}),Ye.jsx("span",{children:ji>ua?ua:ua-(ua-ji)})]})]}):"₹ 0.00"}),Ye.jsx("p",{children:" to Pay "})]}),(null==(be=null==ft?void 0:ft[0])?void 0:be.BalanceCommissionAmount)>0?Ye.jsx("div",{className:"wallet-option-container",children:Ye.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:["Free"!=(null==(we=null==At?void 0:At[0])?void 0:we.PricingName)&&Ye.jsx(V,{onChange:e=>{var t;mi(e.target.checked),e.target.checked?pa(null==(t=null==ft?void 0:ft[0])?void 0:t.BalanceCommissionAmount):pa(0)},checked:fi,style:{color:"#292fff",fontSize:"15px",fontWeight:"900"},children:"Pay Using Credit points"}),Ye.jsxs("p",{style:{fontSize:"13px",fontWeight:"900",display:"flex",alignItems:"center",gap:"5px"},children:[" ",Ye.jsx(nR,{color:"#d78300",size:"1rem",width:"40px"})," Available Balance: ",ji>ua?(null==(je=null==ft?void 0:ft[0])?void 0:je.BalanceCommissionAmount)-(ji>ua?ua:ua-ji):ji>ua?ua:ua-ji]})]})}):""]})]}),Ye.jsxs("div",{children:[Ye.jsx("div",{className:gn?"NoError":"ShowError",children:(null==(Se=null==St?void 0:St[0])?void 0:Se.MailId)?Ye.jsx("p",{style:{fontSize:"clamp(16px, 2.5vw, 17px)",fontWeight:"500",color:"green"},children:null==(Ne=null==St?void 0:St[0])?void 0:Ne.MailId}):Ye.jsxs("div",{children:[Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",label:"Email",className:"mailInpt",id:"Email",field:"Email",onChange:function(e){var t,n,i;i=null==(t=null==e?void 0:e.target)?void 0:t.value,/^[a-zA-Z0-9._%+-]{1,64}@[a-zA-Z0-9.-]{1,255}\.[a-zA-Z]{2,}$/.test(i)?(yn(!0),Xa(null==(n=null==e?void 0:e.target)?void 0:n.value)):yn(!1)}}),gn||null!==on?"":Ye.jsx("p",{style:{color:"#FF4D4F",fontSize:"12px",marginTop:"28px"},children:"Enter Valid Email"})]})}),Ye.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:"0.2rem",fontSize:"20px",fontWeight:"600",color:"green"},children:[Ye.jsx(ny,{}),Ye.jsxs("p",{style:{fontFamily:"Poppins",fontSize:"clamp(16px, 2.5vw, 20px)",fontWeight:"500",color:"green",borderRadius:"3px",padding:"6px 0 0 0"},children:[" ",(null==St?void 0:St.length)>0?null==(Ie=null==St?void 0:St[0])?void 0:Ie.MobileNo:""]})]}),Ye.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",textDecoration:"underline",color:"green",fontSize:"12px",cursor:"pointer",columnGap:"0.2rem",alignItems:"center"},onClick:()=>{Qn(!Rn)},children:["More Info ",Ye.jsx(dE,{})," "]}),Rn&&Ye.jsx(Ye.Fragment,{children:Ye.jsx(SP,{open:Rn,footer:!1,children:Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:"1rem"},className:"adduserinfo",children:[Ye.jsx("div",{children:Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",label:"Company / Billing Name",id:"organization",field:"organization",value:Gt,isOnChange:!!Gt,onChange:e=>(async e=>{var t;$t(null==(t=null==e?void 0:e.target)?void 0:t.value)})(e)})}),Ye.jsx("div",{className:Cn?"NoError":"ShowError",children:Ye.jsxs("div",{children:[Ye.jsx(My,{field:"Address",autoComplete:"off",label:"Address",fieldState:!0,fieldApi:!0,value:Zt,isOnChange:!!Zt,onChange:e=>(async e=>{var t;en(null==(t=null==e?void 0:e.target)?void 0:t.value),Sn(!0)})(e)}),Cn?"":Ye.jsx("p",{style:{color:"#FF4D4F",fontSize:"12px",margin:"-10px 0px 0px 13px"},children:"Enter Address"})]})}),Ye.jsx("div",{className:mn?"NoError":"ShowError",children:Ye.jsxs("div",{children:[Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",type:"numeric",label:"GST",value:Nn,isOnChange:!!Nn,onChange:e=>{var t,n;return 15===(null==(n=null==(t=null==e?void 0:e.target)?void 0:t.value)?void 0:n.length)&&(null==yi?void 0:yi.test(n))?(vn(!0),Ga(n)):0===(null==n?void 0:n.length)?vn(!0):vn(!1),void Ga(n)}}),mn?"":Ye.jsx("p",{style:{color:"#FF4D4F",fontSize:"12px",margin:"-10px 0px 0px 13px"},children:"Enter Valid Gst"})]})}),Ye.jsx("div",{className:hn?"NoError":"ShowError",children:Ye.jsxs("div",{children:[Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",type:"numeric",label:"Zip",maxLength:"6",value:Xt,isOnChange:!!Xt,onChange:e=>{var t;return Za(null==(t=null==e?void 0:e.target)?void 0:t.value)}}),hn?"":Ye.jsx("p",{style:{color:"#FF4D4F",fontSize:"12px",margin:"-10px 0px 0px 13px"},children:"Enter Valid Zipcode"})]})}),Ye.jsx("div",{className:xn?"NoError":"ShowError",children:Ye.jsxs("div",{children:[Ye.jsx(Oy,{fieldState:tn||!1,fieldApi:!0,autocomplete:"off",label:"City",id:"city",field:"city",onChange:e=>{var t;return(async e=>{var t;nn(null==(t=null==e?void 0:e.target)?void 0:t.value),bn(!0)})(null==(t=null==e?void 0:e.target)?void 0:t.value)},value:tn,isOnChange:!!tn,disabled:!!tn}),xn?"":Ye.jsx("p",{style:{color:"#FF4D4F",fontSize:"12px",margin:"-10px 0px 0px 13px"},children:"Enter City"})]})}),Ye.jsx("div",{className:wn?"NoError":"ShowError",children:Ye.jsxs("div",{children:[Ye.jsx(Oy,{fieldState:sn||!1,fieldApi:!0,autocomplete:"off",label:"State",id:"state",field:"state",onChange:e=>{var t;return(async e=>{var t;ln(null==(t=null==e?void 0:e.target)?void 0:t.value),jn(!0)})(null==(t=null==e?void 0:e.target)?void 0:t.value)},value:sn,isOnChange:!!sn,disabled:!!sn}),wn?"":Ye.jsx("p",{style:{color:"#FF4D4F",fontSize:"12px",margin:"-10px 0px 0px 13px"},children:"Enter State"})]})})]})})}),handleCancel:()=>{Qn(!1)}})})]})]}),(gt?Qi>0:ji-ua>0)?Ye.jsx("div",{style:{background:" "},children:Ye.jsxs("div",{className:"Invoice-PaymentOption-MasterDiv",children:[Ye.jsxs("div",{className:"Invoice-PaymentOption-Div",children:[Ye.jsx("div",{className:"Invoice-PaymentOption",style:{},children:"Payment options"}),null==Fn?void 0:Fn.map(((e,t)=>Ye.jsxs("div",{className:"Invoice-PaymentOptions",style:{borderLeft:Pn===t?"5px solid #52C41A":"none",backgroundColor:Pn===t?" #52c41a2e":" ",color:Pn===t?" #000":" "},onClick:()=>{var e,n;kn(t),Ln(null==(e=null==Fn?void 0:Fn[t])?void 0:e.Details),En("UPI"==(null==(n=null==Fn?void 0:Fn[t])?void 0:n.MethodName)?t:void 0)},children:[Ye.jsxs("div",{children:["EMI"==(null==e?void 0:e.MethodName)&&Ye.jsx("img",{src:RM,alt:"emi"}),"CreditCard"==(null==e?void 0:e.MethodName)&&Ye.jsx("img",{src:QM,alt:"CrediCard"}),"DebitCard"==(null==e?void 0:e.MethodName)&&Ye.jsx("img",{src:HM,alt:"DebitCard"}),"NetBanking"==(null==e?void 0:e.MethodName)&&Ye.jsx("img",{src:zM,alt:"NetBanking"}),"CashCard"==(null==e?void 0:e.MethodName)&&Ye.jsx("img",{src:VM,alt:"CashCard"}),"Wallet"==(null==e?void 0:e.MethodName)&&Ye.jsx("img",{src:qM,alt:"Wallet"}),"UPI"==(null==e?void 0:e.MethodName)&&Ye.jsx("img",{src:WM,alt:"Wallet"})]}),Ye.jsxs("div",{className:"paymentoptions",children:[Ye.jsx("div",{style:{fontSize:"16px"},children:null==e?void 0:e.MethodName}),Ye.jsx("div",{style:{fontSize:"10px",fontWeight:"400",fontFamily:"Poppins"},children:"Google Pay PhonePe & More"})]})]},t)))]}),Ye.jsx("div",{className:"Invoice-PaymentProcess-Div",children:null!=Pn&&Ye.jsxs("div",{className:"Invoice-PaymentProcess-UPI",children:["UPI"!=(null==(Fe=null==Fn?void 0:Fn[Pn])?void 0:Fe.CardType)&&Ye.jsx(zb,{placeholder:"CRDC"==(null==(Be=null==Fn?void 0:Fn[Pn])?void 0:Be.CardType)||"DBCRD"==(null==(Pe=null==Fn?void 0:Fn[Pn])?void 0:Pe.CardType)?"Search Your Card":"WLT"==(null==(ke=null==Fn?void 0:Fn[Pn])?void 0:ke.CardType)?"Search Your Wallet":"Search Your Bank",onSearchChange:e=>{var t,n;let i=null==(t=null==Fn?void 0:Fn[Pn])?void 0:t.Details,a=null==(n=null==e?void 0:e.target)?void 0:n.value.toLowerCase(),r=i.filter((e=>e.cardName.toLowerCase().startsWith(a)));Ln(r)},prefix:Ye.jsx(WO,{})}),Ye.jsx("div",{className:"Invoice-PaymentProcess-UPI-collapse",children:"UPI"!=(null==(Te=null==Fn?void 0:Fn[Pn])?void 0:Te.CardType)&&Ye.jsx(ee,{items:tr,defaultActiveKey:["1"]})}),Ye.jsxs("div",{className:"Invoice-PaymentProcess-UPI-body",children:[Ye.jsxs("div",{className:"OverallAMtCount",children:["INR"," ",gt||jt&&jt.length>0?(null==Mi?void 0:Mi.length)>0?(Qi||0)+(ji||0):Ye.jsxs(Ye.Fragment,{children:["₹ ",ji-ua>=0?ji-ua:0,ji-ua>=0&&ua>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("span",{children:"+"}),Ye.jsx(nR,{color:"#d78300",size:"1rem",width:"40px"}),Ye.jsx("span",{children:ji>ua?ua:ua-(ua-ji)})]})]}):"₹ 0.00"]}),Ye.jsx("div",{className:"pricedetails-prcedbutton",children:Ye.jsxs("div",{children:[Ye.jsx(Ry,{type:"submit",buttonText:"PROCEED TO PAY",className:"sbmt-btn",handleSubmit:gt?async()=>{var e,t,n,i,a,r,s,l,o,d,c,u,p;if(!on)return Ot("Enter Mail Id"),void Ut("warning");let A={PayOpt:null==(e=null==Fn?void 0:Fn[Pn])?void 0:e.PayOpt,CardType:null==(t=null==Fn?void 0:Fn[Pn])?void 0:t.CardType,cardName:"UPI"!==(null==(n=null==Fn?void 0:Fn[Pn])?void 0:n.CardType)?On:"UPI"};const h={BookingId:null==(i=null==At?void 0:At[0])?void 0:i.UniqueId,Price:Qi||0,TaxId:(null==(a=null==Mi?void 0:Mi[0])?void 0:a.TaxId)??0,TaxAmount:null==Mi?void 0:Mi.reduce(((e,t)=>e+parseFloat(t.TaxAmount||0)),0),NetPrice:Qi-ua>=0?Qi-ua:0,OrderId:0,Type:"I",Details:Mi,CreatedBy:iA("UserId"),CommissionAmount:Qi>ua?ua:ua-(ua-Qi)};if((null==A?void 0:A.PayOpt)&&(null==A?void 0:A.CardType)&&(null==A?void 0:A.cardName)){let e=await nt(BT(h));if(1===(null==(s=null==(r=null==e?void 0:e.payload)?void 0:r.data)?void 0:s.statusCode)){const t=document.createElement("form");t.method="POST",t.action=`${rR}/ccavRequestHandler`,t.style.display="none";const n={merchant_id:"15191",order_id:null==(o=null==(l=null==e?void 0:e.payload)?void 0:l.data)?void 0:o.OrderId,currency:"INR",amount:Qi-ua>=0?Qi-ua:0,redirect_url:"https://pozo.app/CustomPaymentGateway/CustomPaymentGateway/ccavResponseHandler",cancel_url:"https://pozo.app/CustomPaymentGateway/CustomPaymentGateway/ccavResponseHandler",payment_option:null==(d=null==Fn?void 0:Fn[Pn])?void 0:d.PayOpt,card_type:null==(c=null==Fn?void 0:Fn[Pn])?void 0:c.CardType,card_name:"UPI"!==(null==(u=null==Fn?void 0:Fn[Pn])?void 0:u.CardType)?On:"UPI",data_accept:Un,language:"EN",billing_name:null!=Gt?Gt:"User",billing_address:null!=Zt?Zt:"xyz",billing_city:null!=tn?tn:"xyz",billing_state:null!=sn?sn:"xyz",billing_zip:null!=Xt?Xt:"000000",billing_country:"India",billing_tel:iA("MobileNo"),billing_email:on,delivery_name:"F",delivery_address:"N",delivery_city:null!=an?an:"xyz",delivery_state:"",delivery_zip:"O",delivery_country:"India",delivery_tel:(null==yi?void 0:yi.test(Nn))?Nn:null,merchant_param1:iA("SessionId"),merchant_param2:kt,merchant_param3:iA("UserId"),merchant_param4:"",merchant_param5:"PaymentHandler.html",promo_code:"",customer_identifier:""};null==(p=Object.keys(n))||p.forEach((e=>{const i=document.createElement("input");i.type="hidden",i.name=e,i.value=ir(n[e]),t.appendChild(i)})),document.body.appendChild(t),t.submit()}else Ot("Select Payment option"),Ut("warning")}}:async()=>{var e,t,n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B,P,k,T,E,D,L,U;let _={PayOpt:null==(e=null==Fn?void 0:Fn[Pn])?void 0:e.PayOpt,CardType:null==(t=null==Fn?void 0:Fn[Pn])?void 0:t.CardType,cardName:"UPI"!=(null==(n=null==Fn?void 0:Fn[Pn])?void 0:n.CardType)?On:"UPI"},O=new Date;var M=new Date,R=M.setDate(M.getDate()+parseInt(jt!=[]?null==(i=null==jt?void 0:jt[0])?void 0:i.NoOfDays:0));let Q={};if(Q.UserId=xt,Q.AppId=iA("AppId"),Q.PricingId=Aa||(null==(a=null==jt?void 0:jt[0])?void 0:a.PricingId),Q.PurDate=tA(O),Q.NoofDays=jt!=[]?null==(r=null==jt?void 0:jt[0])?void 0:r.NoOfDays:0,Q.PaymentMode=27,Q.PaymentStatus="P",Q.LicenseStatus="A",Q.Price=(null==Mi?void 0:Mi.length)>0?Vi+(jt!=[]?null==(s=null==jt?void 0:jt[0])?void 0:s.Price:0):jt!=[]?null==(l=null==jt?void 0:jt[0])?void 0:l.Price:0,Q.TaxId=jt!=[]?null==(o=null==jt?void 0:jt[0])?void 0:o.TaxId:0,Q.NetPrice=(null==Mi?void 0:Mi.length)>0?Qi+(jt!=[]?null==(d=null==jt?void 0:jt[0])?void 0:d.NetPrice:0):jt!=[]?(null==(c=null==jt?void 0:jt[0])?void 0:c.NetPrice)-ua<=0?0:(null==(u=null==jt?void 0:jt[0])?void 0:u.NetPrice)-ua:0,Q.ValidityStart=tA(O),Q.ValidityEnd=tA(new Date(R)),Q.CreatedBy=iA("UserId"),Q.TaxAmount=(null==Mi?void 0:Mi.length)>0?Hi+(jt!=[]?null==(p=null==jt?void 0:jt[0])?void 0:p.TaxAmount:0):jt!=[]?null==(A=null==jt?void 0:jt[0])?void 0:A.TaxAmount:0,Q.MobileNo=Bt,Q.MailId=on,Q.Gst=(null==yi?void 0:yi.test(Nn))?Nn:null,Q.BillingName=Gt,Q.Zip=xi.test(Xt)?Xt:null,Q.City=tn,Q.State=sn,Q.Address=Zt,Q.District=an,Q.ReferredBy=null==(h=null==Sa?void 0:Sa[0])?void 0:h.UserId,Q.ReferralCode=ba,Q.UserType=null==(f=null==Sa?void 0:Sa[0])?void 0:f.UserType,Q.CommissionAmount=ji>ua?ua:ua-(ua-ji),(null==Mi?void 0:Mi.length)>0&&(Q.Details=Mi),null!=on){let e={};if(null!=(null==_?void 0:_.PayOpt)&&null!=(null==_?void 0:_.CardType)&&null!=(null==_?void 0:_.cardName)&&void 0!==Tn)if($e)if($e&&null!=kt){const e=document.createElement("form");e.method="POST",e.action=`${rR}/ccavRequestHandler`,e.style.display="none";const t={merchant_id:"15191",order_id:Et,currency:"INR",amount:(null==(P=null==jt?void 0:jt[0])?void 0:P.NetPrice)-ua<=0?0:(null==(k=null==jt?void 0:jt[0])?void 0:k.NetPrice)-ua,redirect_url:"https://pozo.app/CustomPaymentGateway/CustomPaymentGateway/ccavResponseHandler",cancel_url:"https://pozo.app/CustomPaymentGateway/CustomPaymentGateway/ccavResponseHandler",payment_option:null==(T=null==Fn?void 0:Fn[Pn])?void 0:T.PayOpt,card_type:null==(E=null==Fn?void 0:Fn[Pn])?void 0:E.CardType,card_name:"UPI"!=(null==(D=null==Fn?void 0:Fn[Pn])?void 0:D.CardType)?On:"UPI",data_accept:Un,language:"EN",billing_name:null!=Gt?Gt:"User",billing_address:null!=Zt?Zt:"xyz",billing_city:null!=tn?tn:"xyz",billing_state:null!=sn?sn:"xyz",billing_zip:null!=Xt?Xt:"000000",billing_country:"India",billing_tel:iA("MobileNo"),billing_email:on,delivery_name:"N",delivery_address:Je?"Y":"N",delivery_city:null!=an?an:"xyz",delivery_state:"monthly"==Wn?Ar:dr,delivery_zip:"N",delivery_country:"India",delivery_tel:"",merchant_param1:iA("SessionId"),merchant_param2:kt,merchant_param3:iA("UserId"),merchant_param4:null==(L=null==jt?void 0:jt[0])?void 0:L.PricingName,merchant_param5:"paymentHandler.html",promo_code:"",customer_identifier:""};null==(U=Object.keys(t))||U.forEach((n=>{const i=document.createElement("input");i.type="hidden",i.name=n,i.value=ir(t[n]),e.appendChild(i)})),document.body.appendChild(e),e.submit()}else Ut("error"),Ot("Something Went Wrong");else if(e=await nt(IE(Q)).unwrap(),1==(null==(m=null==e?void 0:e.data)?void 0:m.statusCode)){Tt(null==(v=null==e?void 0:e.data)?void 0:v.BookingId),Dt(null==(g=null==e?void 0:e.data)?void 0:g.OrderId);const t=document.createElement("form");t.method="POST",t.action=`${rR}/ccavRequestHandler`,t.style.display="none";const n={merchant_id:"15191",order_id:null==(y=null==e?void 0:e.data)?void 0:y.OrderId,currency:"INR",amount:(null==Mi?void 0:Mi.length)>0?Qi+(jt!=[]?null==(x=null==jt?void 0:jt[0])?void 0:x.NetPrice:0):jt!=[]?(null==(b=null==jt?void 0:jt[0])?void 0:b.NetPrice)-ua<=0?0:(null==(w=null==jt?void 0:jt[0])?void 0:w.NetPrice)-ua:0,redirect_url:"https://pozo.app/CustomPaymentGateway/CustomPaymentGateway/ccavResponseHandler",cancel_url:"https://pozo.app/CustomPaymentGateway/CustomPaymentGateway/ccavResponseHandler",payment_option:null==(j=null==Fn?void 0:Fn[Pn])?void 0:j.PayOpt,card_type:null==(C=null==Fn?void 0:Fn[Pn])?void 0:C.CardType,card_name:"UPI"!=(null==(S=null==Fn?void 0:Fn[Pn])?void 0:S.CardType)?On:"UPI",data_accept:Un,language:"EN",billing_name:null!=Gt?Gt:"User",billing_address:null!=Zt?Zt:"xyz",billing_city:null!=tn?tn:"xyz",billing_state:null!=sn?sn:"xyz",billing_zip:null!=Xt?Xt:"000000",billing_country:"India",billing_tel:iA("MobileNo"),billing_email:on,delivery_name:(null==Mi?void 0:Mi.length)>0?"F":"N",delivery_address:Je?"Y":"N",delivery_city:null!=an?an:"xyz",delivery_state:"monthly"==Wn?Ar:dr,delivery_zip:"O",delivery_country:"India",delivery_tel:(null==yi?void 0:yi.test(Nn))?Nn:null,merchant_param1:iA("SessionId"),merchant_param2:null==(N=null==e?void 0:e.data)?void 0:N.BookingId,merchant_param3:iA("UserId"),merchant_param4:null==(I=null==jt?void 0:jt[0])?void 0:I.PricingName,merchant_param5:"paymentHandler.html",promo_code:"",customer_identifier:""};null==(F=Object.keys(n))||F.forEach((e=>{const i=document.createElement("input");i.type="hidden",i.name=e,i.value=ir(n[e]),t.appendChild(i)})),document.body.appendChild(t),t.submit()}else Ut("error"),Ot(null==(B=null==e?void 0:e.data)?void 0:B.response);else Ut("error"),Ot("Please Select the Payment")}else yn(!1),Ut("error"),Ot("Please Enter Email")},icon:Ye.jsx(k,{})}),Ye.jsxs("a",{className:"prcdPay",children:["By proceeding, you agree to our Privacy Policy"," "]})]})})]})]})})]})}):Ye.jsxs("div",{children:[Ye.jsx("p",{style:{textAlign:"center"},children:"You No Need To Pay"}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(Ry,{type:"submit",buttonText:"PROCEED TO PAY",className:"sbmt-btn",handleSubmit:async()=>{var e,t,n,i,a,r,s,l,o,d,c,u,p,A,h,f,m;let v=null==At?void 0:At.map((e=>e.UniqueId)),g=new Date;var y=new Date,x=y.setDate(y.getDate()+parseInt(jt!=[]?null==(e=null==jt?void 0:jt[0])?void 0:e.NoOfDays:0));let b={};b.UserId=xt,b.AppId=iA("AppId"),b.PricingId=Aa||(null==(t=null==jt?void 0:jt[0])?void 0:t.PricingId),b.PurDate=tA(g),b.NoofDays=jt!=[]?null==(n=null==jt?void 0:jt[0])?void 0:n.NoOfDays:0,b.PaymentMode=27,b.PaymentStatus="P",b.LicenseStatus="A",b.Price=0,b.TaxId=jt!=[]?null==(i=null==jt?void 0:jt[0])?void 0:i.TaxId:0,b.NetPrice=0,b.ValidityStart=tA(g),b.ValidityEnd=tA(new Date(x)),b.CreatedBy=iA("UserId"),b.TaxAmount=0,b.MobileNo=Bt,b.MailId=on,b.Gst=(null==yi?void 0:yi.test(Nn))?Nn:null,b.BillingName=Gt,b.Zip=xi.test(Xt)?Xt:null,b.City=tn,b.State=sn,b.Address=Zt,b.District=an,b.ReferredBy=null==(a=null==Sa?void 0:Sa[0])?void 0:a.UserId,b.ReferralCode=ba,b.oldUniqueId=v,b.UserType=null==(r=null==Sa?void 0:Sa[0])?void 0:r.UserType,b.CommissionAmount=ji>ua?ua:ua-(ua-ji),(null==Mi?void 0:Mi.length)>0&&(b.Details=Mi);let w=Ea-Da>=0?"monthly"===Wn?_a:Oa:"monthly"===Wn?30:365,j={UserId:xt,AppId:null==(s=null==jt?void 0:jt[0])?void 0:s.AppId,PricingId:Aa||(null==(l=null==jt?void 0:jt[0])?void 0:l.PricingId),CompId:null==(o=null==At?void 0:At[0])?void 0:o.CompId,PurDate:Gn,PaymentMode:27,PaymentStatus:"S",LicenseStatus:"A",Price:0,TaxId:null==(d=null==jt?void 0:jt[0])?void 0:d.TaxId,TaxAmount:0,NetPrice:0,ValidityStart:Gn,ValidityEnd:nr(Gn,w),NoofDays:w,oldUniqueId:v,Debit:0,Credit:0,CreatedBy:xt};if(null!=on){let e;if("Extend Pack"!=(null==La?void 0:La.status)&&void 0!==(null==(c=null==At?void 0:At[0])?void 0:c.ExistingPlanNetPrice)){let e=await nt(eT(b)).unwrap();if(1==(null==(u=null==e?void 0:e.data)?void 0:u.statusCode)){let t={PaymentStatus:"S",UniqueId:null==(p=null==e?void 0:e.data)?void 0:p.BookingId,UpdatedBy:xt},n=await nt(tT(t)).unwrap();if(1==(null==(A=null==n?void 0:n.data)?void 0:A.statusCode)&&it(`${iR}landing-page/home`),null==(h=null==n?void 0:n.data)?void 0:h.SMSbody){const e={body:null==(f=null==n?void 0:n.data)?void 0:f.SMSbody};await nt(aw(e))}}}else e=await nt(IE(j)).unwrap();1==(null==(m=null==e?void 0:e.data)?void 0:m.statusCode)&&it(`${iR}landing-page/home`)}else yn(!1),Ut("error"),Ot("Please Enter Email")},icon:Ye.jsx(k,{})})})]})]})})})})}),Ye.jsxs("div",{children:["Faq1"==(null==(Ee=qe.Faq)?void 0:Ee[0])&&Ye.jsx(XM,{data:qe.Faq[1]}),"Faq2"==(null==(De=qe.Faq)?void 0:De[0])&&Ye.jsx(eR,{data:qe.Faq[1]})]})]}),"Footer1"==(null==(Le=qe.Footer)?void 0:Le[0])&&Ye.jsx(YM,{data:qe.Footer[1]}),"Footer2"==(null==(Ue=qe.Footer)?void 0:Ue[0])&&Ye.jsx(OM,{data:qe.Footer[1]})]})}),Ye.jsx(j,{title:Ye.jsxs("p",{className:"logodiv",children:[Ye.jsx("img",{className:"logoStyle",src:cE,alt:"logo"}),"PAYMENT OPTIONS"," "]}),centered:!0,open:Ke,onCancel:()=>Va(),width:1200,children:Ye.jsx("div",{className:"Pay_options-div",children:Ye.jsxs(R,{children:[Ye.jsx(Q,{children:Ye.jsx("div",{className:"Pay_options",children:Ye.jsxs("div",{className:"Pay_options-fields",children:[It?null:Ye.jsxs("div",{className:"Pay_options-imgfield",children:[(null==pn?void 0:pn.length)>1&&Ye.jsx("div",{className:"Upi-imgfield",children:null==pn?void 0:pn.map(((e,t)=>e?Ye.jsxs("button",{className:"Upi-img",id:ui===e.PaymentUPIDetailsId?"activeData":null,children:[" ",Ye.jsx("img",{src:"Paytm"===e.ModeName?UM:"GooglePay"===e.ModeName?LM:"PhonePay"===e.ModeName?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAbCAYAAABiFp9rAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMCSURBVHgB3VZbSBRRGP5mZ90bmrqlRmpG7aJF5uWhhG7kk1ApUr4rVFQQQQ+BURDRS0U9SIQ9VBI9lJllRFAPZiIhdDHt4qqs4a6klmu7667uZS6dM4I2OzPrPqQPfjAwc85/zvef7/vPmcOIongaQBqWFr0MIfpBXjZgadGkwzJh5RHpEw0UBRHB6SgC3ghMFj1WWY3Q6RiASWx8fCIRcA350N48gu/dk/B5whAIoY5hkGI1wFacjvLDebCXWMEw8Rk1q46LCuhqc+PxTQf4qCiRGsys1C7w4nwcyzLYXZ2LmlMFYPWaTqhXHc8LaGlw4OGN/jkSunSjDievFqP2QiFIcv/EiuhocaGxvkeSVwsKIjpJ13M3OlpdMv25iIBH1x0oLMvAlu1rFBN9efcbT245ZEnEJfJPhvHirlM1eGwkiOaGflQetYFR0aKzdRSuAb/qWEUxdL0cxbQnMr8aI/GlrCJ7IYAkbE5OIp5sxoQriI/t4wj4IlJXJMTj/eufyCtIXZxouM8rk8xkYVF1zA5zil6SL0oevUGHfTXrEQpyGPzsmSei4wY+TUnyxVahQoDZACf79k1GcLbyDcaGA3h2ewjnDr3FvUt9Uty1492kPSiLn5oIIRoWYqdVORlivSSJhWc54gkDnhOkVdCHYibIKzYsx8nLX5OITYIqaOnq2LlZqXRasBD/jCZW0a7wKNuWgqEeuU90Nc5vXpQTXyh2VKzTPHo2bk0Fwyo7FamV7F0LfVKMkYSorXEQv1yzOFBnQ3qmCWqgRVC8J0u1T0GUX7p6LuMYmQO+KBrOfEB9dQfuX/6q9JLAVpSOwp2ZSIiI4uAROzJyLMoOWhhkr3Acj9AMT0xfqC5zsh6157dJJ7saNA9V96Afdy72YnwkqBxECOkBSvcVJbeQPXbiSinsRVZooCnunSES5vHqwTA6n7rhnwrLNiH1w0Cqb1dVLvbXbUJymhFx0JTQ5cTrCcHZ64Wz74/klYXIlJO/SvIki0i82L8oYaL/gBV4C1o2/AU8e0B5qELRzQAAAABJRU5ErkJggg==":null,className:"Upi-imgG",alt:e.ModeName,onClick:()=>Ja(e.mode)})," "]}):null))}),"or",Ye.jsxs("button",{className:"switch-pay-btn",onClick:()=>{Ft(!0)},children:[" ","Get UPI Link ",Ye.jsx(k,{})," "]}),Ye.jsxs("h",{className:"timersec",children:[" ",Ye.jsx(nD,{})," ",vi,":",gi," "]})]}),It?Ye.jsxs("div",{className:"Pay_options-inpfield",children:[Ye.jsx(I,{ref:et,onFinish:async()=>{var e,t;let n=`${aR}${iR}payment-page?paymentId=${kt}&Id=${ui}`,i=await nt(Xb({MobileNo:Bt,url:n})).unwrap();1===(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&(Ut("success"),zt(!0),Wt(!0),Ot(null==(t=null==i?void 0:i.data)?void 0:t.response),Ht(60))},children:Ye.jsxs("div",{className:"inputfieldstyle",children:[Ye.jsx(I.Item,{name:"MobileNo",hasFeedback:!0,rules:[{required:!0}],children:Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",type:"numeric",onChange:async e=>{var t,n,i;10===(null==(n=null==(t=null==e?void 0:e.target)?void 0:t.value)?void 0:n.length)&&Pt(null==(i=null==e?void 0:e.target)?void 0:i.value)},label:"Mobile Number",id:"MobileNo",field:"MobileNo",maxlength:"10",suffix:Ye.jsx(sg,{className:"site-form-item-icon "})})}),Ye.jsx("div",{className:"prcd-btn",children:Ye.jsx(Ry,{type:"submit",buttonText:!0===qt?"ReSend UPI Link":"Send UPI Link",disabled:Vt,icon:Ye.jsx(k,{})})})]})}),Ye.jsx("div",{children:"(or)"}),Ye.jsxs("button",{className:"switch-pay-btn",onClick:()=>{Ft(!1)},children:[" ","SCAN & PAY ",Ye.jsx(k,{})," "]}),Ye.jsx("a",{className:"tc-apply",children:" *Terms & Conditions apply ! "}),(null==pn?void 0:pn.length)>1&&Ye.jsx("div",{className:"Upi-imgfield",children:null==pn?void 0:pn.map(((e,t)=>e?Ye.jsxs("button",{className:"Upi-img",id:ui===e.PaymentUPIDetailsId?"activeData":null,children:[" ",Ye.jsx("img",{src:"Paytm"===e.ModeName?UM:"GooglePay"===e.ModeName?LM:"PhonePay"===e.ModeName?"PhonePay":null,className:"Upi-imgG",alt:e.ModeName,onClick:()=>Ja(e.PaymentUPIDetailsId)})," "]}):null))}),Ye.jsxs("h",{className:"timersec",children:[" ","Remaining Time ",Ye.jsx(nD,{})," ",vi,":",gi," "]})]}):null]})})}),Ye.jsx(Q,{lg:{span:8,offset:1},children:Ye.jsx("div",{className:"Pay_options",children:Ye.jsxs("div",{className:"Pay_options-fields",children:[Ye.jsx("div",{className:"Pay_options-imgfield"}),Ye.jsxs("div",{className:"Invoice-cont",children:[Yt?Ye.jsx("img",{src:"/assets/successtick2-a67c3273.png",className:"success-img"}):null,Yt?Ye.jsxs("div",{className:"Invoice-cont-headcont",children:[Ye.jsx("p",{className:"Invoice-cont-head",children:" Payment Success ! "}),Ye.jsxs("p",{className:"Invoice-cont-sub",children:[" ","Your payment has been successfully done !"]})]}):null,Yt?null:Ye.jsx("img",{src:cE,className:"success-img"}),Yt?null:Ye.jsx("div",{className:"Invoice-cont-headcont",children:Ye.jsx("p",{className:"Invoice-cont-head",children:" Purchase Invoice "})}),Ye.jsx("hr",{className:"new2"}),Ye.jsxs("div",{className:"Invoice-Amtdetails",children:[Ye.jsxs("div",{className:"Invoice-Amtdetail-txt",children:[Ye.jsx("p",{children:" Amount "}),Ye.jsxs("p",{children:[" ",jt!=[]?null==(_e=null==jt?void 0:jt[0])?void 0:_e.Price:0]})]}),(null==(Oe=null==jt?void 0:jt[0])?void 0:Oe.TaxAmount)?Ye.jsxs("div",{className:"Invoice-Amtdetail-txt",children:[Ye.jsx("p",{children:" Tax "}),Ye.jsxs("p",{children:[" ",jt!=[]&&null!=(null==(Me=null==jt?void 0:jt[0])?void 0:Me.TaxAmount)?null==(Re=null==jt?void 0:jt[0])?void 0:Re.TaxAmount:0]})]}):null,Ye.jsxs("div",{className:"Invoice-Amtdetail-txt",children:[Ye.jsx("p",{className:"Invoice-AmPay",children:"Net Amount"}),Ye.jsxs("p",{className:"Invoice-AmPay",children:[" ",jt!=[]?null==(Qe=null==jt?void 0:jt[0])?void 0:Qe.NetPrice:0," "]})]})]}),Ye.jsx("hr",{className:"new3"})]}),Yt?Ye.jsxs("button",{className:"Invoice-dwld-btn",onClick:async()=>{await sA("Pdfbody","<style>\n*{\n font-family:Poppins;\n}\n.Pdf-body{ \n background-color: #33585c1f;\n height: 100%;\n margin: 0vw 0vh;\n padding: 1vw 2vh;\n}\n\n@media *{\n element.class {\n font-family: \"Courier New\";\n font-size: 10pt;\n }\n /* You can add additional styles here which you need */\n}\n\n.Pdf-Div{\n padding: 1vw 1vh;\n background-color:rgb(255, 255, 255);\n border-radius: 8px; \n position: relative;\n z-index: 1;\n display: flex;\n flex-wrap: wrap;\n justify-content: space-around; \n}\n\n.Pdf-head-div{\n padding: 0vw 1vh;\n color: #2b2b2b;\n}\n\n.Pdf-head{\n font-size:45px;\n font-weight:600; \n color: #000000; \n line-height: 0;\n}\n\n.headlogo-img{ \nwidth: 70px;\n}\n\n.Pdf-amt-digit{\nfont-weight:600;\n}\n.square {\n height: 240px;\n width: 240px;\n // background-color: #851764; \n background-color: #f5f5f5; \n border-radius: 5%;\n display: inline-block; \n position: relative;\n z-index: -1; \n margin-top: -18rem;\n margin-left: -2rem;\n}\n\n.Pdf-Cont-Div{\n background-color: #ffffff; \n padding: 0vw 2vh; \n \n}\n\n.Pdf-cont{\n // background-color: #33585c1f; \n margin: 0vw 0vh;\n padding: 0vw 0vh;\n display: flex; \n // flex-wrap: wrap;\n row-gap: 1rem;\n justify-content: space-evenly; \n}\n\n.Pdf-amt-details{\n text-align: right;\n}\n\n\n.Pdf-cont-txt{\n padding: 0vw 1vh; \n}\n\n.Pdf-cont-subhead{\n font-size:20px;\n font-weight: 500;\n}\n\n.Pdf-cont-text{\n font-size:14px;\n}\n\n\n\n.Pdf-Table-Div{\n background-color: #ffffff; \n padding: 3vw 0vh; \n \n}\n\n\n.Pdf-Table-Div table {\n // border: 1px solid #ccc;\n border-collapse: collapse;\n margin: 0;\n padding: 0;\n width: 100%;\n table-layout: fixed;\n font-family:'Poppins';\n}\n\n.Pdf-Table-Div table caption {\n font-size: 1.2em;\n margin: .0em 0 .95em;\n padding: 1vw 3vh;\n font-family: 'Poppins' !important;\n text-transform: uppercase;\n font-weight:600;\n letter-spacing:3px;\n background-color: #f5f5f5;\n}\n\n.Pdf-Table-Div table tr {\n\n padding: .35em;\n}\n\n.Pdf-Table-Div table th,\n.Pdf-Table-Div table td {\n padding: 1vw 1vh; \n text-align: center;\n}\n\n.Pdf-Table-Div table th {\n font-size: .85em;\n letter-spacing: .1em;\n text-transform: uppercase;\n}\n\n\n.table-2div{ \n text-align: right;\n display: flex;\n flex-wrap: wrap;\n flex-direction: column;\n}\n\n.table-cont2{\n display: flex;\n justify-content: space-evenly;\n}\n\n.Pdf-footer-div{\n background-color: #ffffff; \n padding: 0vw 0vh; \n display: flex;\n flex-wrap: wrap;\n row-gap: 2rem;\n justify-content: center;\n}\n\n.Pdf-footer-subdiv{\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n row-gap: 0rem;\n align-items: center;\n width:300px;\n justify-content: space-around;\n\n}\n.Pdf-footer-txt1{\n font-size:18px;\n width: 500px;\n font-weight: 600; \n}\n\n.Pdf-footer-txt{\n font-size:13px;\n width: 500px;\n}\n\n.Pdf-footer-subdiv-txt-div{ \n justify-content: space-evenly;\n font-size: 15px;\n}\n\n.Pdf-footer-subdiv-txt{\n display: flex;\n align-items: center;\n text-align: left;\n line-height: 0;\n justify-content: start; \n \n}\n\n\n.logo-img{\n padding: 1vw 1vh;\n}\n\n@media screen and (max-width: 600px) {\n .Pdf-Table-Div table {\n border: 0;\n }\n\n .Pdf-Table-Div table caption {\n font-size: 1.3em;\n }\n \n .Pdf-Table-Div table thead {\n border: none;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n }\n \n .Pdf-Table-Div table tr {\n border-bottom: 3px solid #ddd;\n display: block;\n margin-bottom: .625em;\n }\n \n .Pdf-Table-Div table td {\n border-bottom: 1px solid #ddd;\n display: block;\n font-size: .8em;\n text-align: right;\n }\n \n .Pdf-Table-Div table td::before {\n /*\n * aria-label has no advantage, it won't be read inside a table\n content: attr(aria-label);\n */\n content: attr(data-label);\n float: left;\n font-weight: bold;\n text-transform: uppercase;\n }\n \n .Pdf-Table-Div table td:last-child {\n border-bottom: 0;\n }\n}\n\nhr.new3 { \n border-top: 1px dotted rgb(90, 90, 90); \n}\n\nhr.new4 { \n border :16px solid #2e4f53; \n}\n\n\n\n\n@media screen and (max-width: 976px) {\n\n.Pdf-Div{\n display: flex !important; \n margin: 0vw 0vh !important; \n flex-direction: row;\n justify-content: space-between !important;\n row-gap: 3rem;\n}\n\n.Pdf-head-div{\n display: flex !important; \n margin: 0vw 7vh !important;\n align-items: center;\n flex-direction: row;\n column-gap: 2rem;\n}\n\n.square{\ndisplay: none !important; \n}\n\n.Pdf-footer-div { \njustify-content: space-around !important;\n}\n\n}\n</style>")},children:[" ","Get PDF Receipts ",Ye.jsx(yg,{})," "]}):null,Yt?Ye.jsxs("div",{className:"mail-div",children:[Ye.jsxs("a",{onClick:async e=>{un(!0)},children:[" ",":: Send Invoice to Another e-mail ::"]}),cn?Ye.jsxs(I,{ref:et,className:"formDivAnt",onFinish:async e=>{var t,n,i,a,r,s,l;let o={UniqueId:kt,MailId:e.EmailId,Link:`${aR}${iR}payment-page?paymentId=${kt}&Id=${ui}`},d=await nt(iw({data:o})).unwrap();if(1===(null==(t=null==d?void 0:d.data)?void 0:t.statusCode)){if(null==(n=null==d?void 0:d.data)?void 0:n.UserMail){const e={UniqueId:null==(i=null==d?void 0:d.data)?void 0:i.UniqueId,userData:null==(a=null==d?void 0:d.data)?void 0:a.userData,messageTemplatesList:null==(r=null==d?void 0:d.data)?void 0:r.messageTemplatesList,UserMail:null==(s=null==d?void 0:d.data)?void 0:s.UserMail,PaymentStatus:null==(l=null==d?void 0:d.data)?void 0:l.PaymentStatus};await nt(UE(e))}Ut("success"),Ot("Receipt Sent Successfully")}un(!1),et.resetFields()},children:[Ye.jsx("div",{className:"mail-inp-btn",children:Ye.jsx(I.Item,{name:"EmailId",hasFeedback:!0,rules:[{validator:(e,t)=>/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(t)?Promise.resolve():Promise.reject("Please Enter Valid Email")}],children:Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",type:"numeric",label:"Email Id",id:"EmailId",field:"MobileNo",maxlength:""})})}),Ye.jsxs("button",{className:"mail-btn",type:"submit",children:[" ","SHARE"," "]})]}):null]}):null]})})})]})})}),Ye.jsx(j,{title:Ye.jsxs("p",{className:"formHead",style:{fontSize:"20px"},children:["Feature Addon"," "]}),centered:!0,open:li,onCancel:()=>(async()=>{oi(!1)})(),width:980,children:Ye.jsxs(I,{ref:tt,className:"formDivAnt1",onFinish:async e=>{(null==Mi?void 0:Mi.length)>0?oi(!1):(Ut("error"),Ot("Please add any one of the feature"))},style:{display:"flex",flexDirection:"row",flexWrap:"wrap",overflow:"auto",height:"70vh"},children:[Li?null==(ze=null==(Ve=null==(He=null==Li?void 0:Li[0])?void 0:He.FeatDetails)?void 0:Ve.filter((e=>"D"!==(null==e?void 0:e.ActiveStatus))))?void 0:ze.map((e=>Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"250px",rowGap:"1rem",paddingTop:"15px"},children:[Ye.jsxs("div",{style:{display:"flex",fontSize:"20px",width:"100px",fontWeight:"400",color:"#1292ee"},children:[e.FeatName," "]}),Ye.jsx("div",{className:"featureAmt",children:Ye.jsx(I.Item,{name:e.FeatName,rules:[{pattern:/^\d+$/,message:"Only numbers are allowed"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autoComplete:"off",type:"text",label:"Count",id:"Count",field:"organization",className:"featureAmt",onChange:t=>{var n;((e,t,n,i,a,r,s)=>{var l,o,d;const c=e<=-1?0:e,u=gt?null==(l=null==ft?void 0:ft[0])?void 0:l.NoOfDays:null==(o=null==jt?void 0:jt[0])?void 0:o.NoOfDays,p=[{FeatAddonId:null==s?void 0:s.UniqueId,Count:c,Price:((u>31?null==s?void 0:s.YearlyPrice:null==s?void 0:s.MonthlyPrice)*c).toFixed(2),TaxAmount:((u>31?null==s?void 0:s.YearlyTaxAmount:null==s?void 0:s.MonthlyTaxAmount)*c).toFixed(2),TaxId:null==s?void 0:s.TaxId,NetPrice:((u>31?null==s?void 0:s.YearlyNetPrice:null==s?void 0:s.MonthlyNetPrice)*c).toFixed(2)},...null==Mi?void 0:Mi.filter((e=>(null==e?void 0:e.FeatAddonId)!==(null==s?void 0:s.UniqueId)))];Ri(p),Ri(p);const A=c*(u>31?null==s?void 0:s.YearlyPrice:null==s?void 0:s.MonthlyPrice),h=c*(u>31?null==s?void 0:s.YearlyTaxAmount:null==s?void 0:s.MonthlyTaxAmount);null==(d=tt.current)||d.setFieldsValue({[t]:c,[n]:null==A?void 0:A.toFixed(2),[a]:null==h?void 0:h.toFixed(2)}),setTimeout((()=>{Oi((e=>({...e,[t]:c})))}),0)})(null==(n=null==t?void 0:t.target)?void 0:n.value.replace(/\D/g,""),e.FeatName,e.FeatName+"Amt",e.NetPrice,e.FeatName+"Taxdetails",e.TaxAmount,e)}})})}),Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",fontSize:"12px",width:"200px",paddingTop:"10px"},children:[Ye.jsxs("div",{style:{fontSize:"14px",fontWeight:"500px"},children:[" ","Tax Amount :"," ",(null==_i?void 0:_i[e.FeatName])?((null==_i?void 0:_i[e.FeatName])*(zi>31?null==e?void 0:e.YearlyTaxAmount:null==e?void 0:e.MonthlyTaxAmount)).toFixed(2):" "," "]}),Ye.jsxs("div",{style:{fontSize:"14px",fontWeight:"500px"},children:[" ","Price :"," ",(null==_i?void 0:_i[e.FeatName])?((null==_i?void 0:_i[e.FeatName])*(zi>31?null==e?void 0:e.YearlyPrice:null==e?void 0:e.MonthlyPrice)).toFixed(2):" "," "]}),Ye.jsxs("div",{style:{fontSize:"16px",fontWeight:"700",paddingTop:"1px"},children:["NetAmount:"," ",(null==_i?void 0:_i[e.FeatName])?((null==_i?void 0:_i[e.FeatName])*(zi>31?null==e?void 0:e.YearlyNetPrice:null==e?void 0:e.MonthlyNetPrice)).toFixed(2):" "]})]})]},e.id))):" ",Ye.jsx("div",{className:"submitbtn-position",style:{display:"flex",flexDirection:"column-reverse",position:"absolute",bottom:"2rem",right:"3rem"},children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0})})]})}),Ye.jsx(SP,{open:qi,title:Ye.jsx("h3",{children:"Deactivation Of Features For Your Current plan"}),footer:!0,children:Ye.jsxs("div",{style:{display:"flex",rowGap:"1rem",flexDirection:"column"},children:[Ye.jsx("hr",{}),Ye.jsxs("div",{children:[Fr>Sr-wr&&0==!kr&&Ye.jsxs("div",{children:[Ye.jsxs("h4",{children:["Number of Company's Of Your Previous Plan :",Fr," "]}),Ye.jsxs("p",{children:["Your Eligible Company's For This Current Plan is :"," ",wr," & Deactivate : ",kr," Company's"]})]}),Br>Nr-jr&&0!=Tr&&jr!==Nr&&Tr>0&&Ye.jsxs("div",{children:[Ye.jsxs("h4",{children:["Number of Branches Of Your Previous Plan:"," ",Br]}),Ye.jsxs("p",{children:["Your Eligible Branches For This Current Plan is:"," ",jr]}),Tr>0&&Ye.jsxs("p",{children:["Deactivate: ",Tr," Branch's"]})]}),Cr<Ir&&Pr>Cr-Ir&&Er>0&&Ye.jsxs("div",{children:[Ye.jsxs("h4",{children:["Number of User's Of Your Previous Plan :",Pr," & Incuding Admin : 1"]}),Ye.jsxs("p",{children:["Your Eligible User's For This Current Plan is :"," ",Cr," "]}),Er>0&&Ye.jsxs("p",{children:["Deactivate: ",Er," User's"]})]}),Ye.jsx("div",{children:Ye.jsx(fk,{content:Dr,defaultSelect:Ii,onSelectFuntion:e=>{fr(e)}})}),Ye.jsxs("div",{children:["Company"===Ii&&Fr-wr!==0&&Fr>0&&Ye.jsx(E,{columns:mr,dataSource:Bi}),"Branch"===Ii&&Br-jr!==0&&jr!==Nr&&Tr>0&&Ye.jsx(E,{columns:vr,dataSource:ki}),"User"===Ii&&Er>0&&Ye.jsx(E,{columns:gr,dataSource:Ei})]})]}),Ye.jsx("hr",{})]}),handleCancel:rr,handleSubmit:()=>(async()=>{let e=[],t=[],n=[];null==ia||ia.map((e=>{var t,i,a,r,s,l;return n.push({UserId:null==(i=null==(t=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:t[0])?void 0:i.UserId,CompId:null==(r=null==(a=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:a[0])?void 0:r.CompId,BranchId:null==(l=null==(s=null==Ei?void 0:Ei.filter(((t,n)=>n===e)))?void 0:s[0])?void 0:l.BranchId,AppId:rt})})),null==ta||ta.map((e=>{var n,i,a,r;return t.push({BranchId:null==(i=null==(n=null==ki?void 0:ki.filter(((t,n)=>n===e)))?void 0:n[0])?void 0:i.BrId,CompId:null==(r=null==(a=null==ki?void 0:ki.filter(((t,n)=>n===e)))?void 0:a[0])?void 0:r.CompId})})),null==Zi||Zi.map((t=>{var n,i;return e.push({CompId:null==(i=null==(n=null==Bi?void 0:Bi.filter(((e,n)=>n===t)))?void 0:n[0])?void 0:i.CompId})})),Ki(e),$i(t),Ji(n),kr===(null==Zi?void 0:Zi.length)&&Tr>0&&Tr===(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)||Tr===(null==ta?void 0:ta.length)&&Er<=(null==ia?void 0:ia.length)||kr===(null==Zi?void 0:Zi.length)&&Er<=(null==ia?void 0:ia.length)||Er<=(null==ia?void 0:ia.length)||da?(Ze(!0),Wi(!1)):(Ut("error"),Ot("Deactive features"))})(),buttonText:"SAVE"})]})},access:"Admin"},{path:`${Ofe}payment-page`,component:()=>{var e,t,n,i,r;const s=um(),l=window.location.href;var o=new URL(l),d=o.searchParams.get("paymentId"),c=o.searchParams.get("Id");const[u,p]=a.useState(d||null),[A,h]=a.useState([]),[f,m]=a.useState(null),[v,g]=a.useState(null),[y,x]=a.useState(!1),[b,w]=a.useState([]);a.useEffect((()=>{j(),S(c)}),[]);const j=async()=>{var e,t,n,i;let a=await s(nw(u)).unwrap();1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)&&("P"===(null==(t=null==a?void 0:a.data)?void 0:t.data[0].PaymentStatus)?(h(null==(n=null==a?void 0:a.data)?void 0:n.data),x(!0)):(h(null==(i=null==a?void 0:a.data)?void 0:i.data),m("error"),g("Sorry, Payment Link Expired"),x(!1)))},C=a.useCallback((()=>{g(null),m(null)}),[]),S=async e=>{var t,n;let i=await s(tw(e)).unwrap();1===(null==(t=null==i?void 0:i.data)?void 0:t.statusCode)&&w(null==(n=null==i?void 0:i.data)?void 0:n.data)};return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Qy,{messageType:f,messageData:v,onComplete:C}),Ye.jsx("div",{className:"payment-page-div",children:Ye.jsxs("div",{className:"payment-page-cont",children:[Ye.jsx("img",{src:cE,className:"payment-logo-img"}),Ye.jsxs("div",{className:"payment-txt-cont",children:[Ye.jsx("p",{children:" Checkout "}),Ye.jsx("p",{className:"payment-sub-head",children:" UPI Transaction Details"})]}),Ye.jsxs("div",{className:"payment-Amtdetails",children:[Ye.jsxs("div",{className:"Invoice-Amtdetails",children:[Ye.jsxs("div",{className:"Invoice-Amtdetail-txt",children:[Ye.jsx("p",{children:" App Name "}),Ye.jsxs("p",{className:"payment-Amtdetail-txt",children:[": ",A?null==(e=A[0])?void 0:e.AppName:null]})]}),Ye.jsxs("div",{className:"Invoice-Amtdetail-txt",children:[Ye.jsx("p",{children:" Pricing Name "}),Ye.jsxs("p",{children:[": ",A?null==(t=A[0])?void 0:t.PricingName:null]})]}),Ye.jsxs("div",{className:"Invoice-Amtdetail-txt",children:[Ye.jsx("p",{children:" Mobile Number "}),Ye.jsxs("p",{className:"payment-Amtdetail-txt",children:[": ",A?null==(n=A[0])?void 0:n.MobileNo:null," "]})]}),Ye.jsxs("div",{className:"Invoice-Amtdetail-txt",children:[Ye.jsx("p",{children:" Transaction No "}),Ye.jsxs("p",{children:[": ",A?null==(i=A[0])?void 0:i.UniqueId:null," "]})]}),Ye.jsxs("div",{className:"Invoice-Amtdetail-txt",children:[Ye.jsx("p",{className:"Invoice-AmPay",children:" Net Amount"}),Ye.jsxs("p",{className:"Invoice-AmPay",children:[": ",A?null==(r=A[0])?void 0:r.NetPrice:null," "]})]})]}),y?Ye.jsxs("button",{className:"payment-pay-btn",onClick:async()=>{var e,t;let n=u+""+(null==(e=A[0])?void 0:e.AppName);window.open("intent://play.google.com/store/apps/details?id=com.prematix.paypreupilite&launch=true&url-para=upi://pay?pa="+b[0].UPIId+"&pn="+b[0].Name+"&tid="+b[0].MerchantId+"&tr="+u+"&tn="+n+"&am="+(null==(t=A[0])?void 0:t.NetPrice)+"&cu=INR&url=&mc="+b[0].MerchantCode+"&type=boating#Intent;scheme=https;action=android.intent.action.VIEW;package=com.android.vending;end","_blank","height=600, width=400, status=yes, toolbar=no, menubar=no, location=no,addressbar=no")},children:[" Pay Now ",Ye.jsx(k,{})," "]}):null]})]})})]})},access:"Admin"},{path:`${Ofe}FeatureInvoice`,component:()=>{var e,t,n,i,r,s,l,o,d,c,u,p,A,h,f,m,v;const g=um(),y=Qt(),x=Mt(),[b,w]=a.useState(null),[j,C]=a.useState(null),[S,N]=a.useState(),[I,F]=a.useState(),[B,P]=a.useState(!0),[T,E]=a.useState(!0),[D,L]=a.useState(null),[U,_]=a.useState(!0),[O,M]=a.useState(!0),[R,Q]=a.useState(null),[z,q]=a.useState(null),[W,Y]=a.useState(null),[K,G]=a.useState(!0),[$,X]=a.useState(null),[J,Z]=a.useState(null),[te,ne]=a.useState(),[ie,ae]=a.useState(),[re,se]=a.useState(!1),[le,oe]=a.useState(),[de,ce]=a.useState(!0),[ue,pe]=a.useState(null),[Ae,he]=a.useState(null!=(null==(e=null==x?void 0:x.state)?void 0:e.MailId)&&null!=(null==(t=null==x?void 0:x.state)?void 0:t.MailId)?null==(n=null==x?void 0:x.state)?void 0:n.MailId:""),[fe,me]=a.useState(),ve=/^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Za-z]{1}[Z]{1}[0-9A-Za-z]{1}$/,ge=/^[0-9]+$/,ye=null==(i=null==x?void 0:x.state)?void 0:i.TotalAmount,xe=null==(r=null==x?void 0:x.state)?void 0:r.BookingId,be=null==(s=null==x?void 0:x.state)?void 0:s.postData,we=null==(l=null==x?void 0:x.state)?void 0:l.UserAppMap,[je,Se]=a.useState(!1),[Ne,Ie]=a.useState(0);a.useEffect((()=>{Fe()}),[]);let Fe=async()=>{var e,t,n,i,a,r,s;const l=await g(BE()).unwrap();if(1==(null==(e=null==l?void 0:l.data)?void 0:e.statusCode)){N(null==(t=null==l?void 0:l.data)?void 0:t.data);let e=await(null==(i=null==(n=null==l?void 0:l.data)?void 0:n.data)?void 0:i.findIndex((e=>"NetBanking"==e.MethodName)));F(e),ne(null==(s=null==(r=null==(a=null==l?void 0:l.data)?void 0:a.data)?void 0:r[e])?void 0:s.Details)}};const Be=[{key:"1",label:("CRDC"==(null==(o=null==S?void 0:S[I])?void 0:o.CardType)||"DBCRD"==(null==(d=null==S?void 0:S[I])?void 0:d.CardType)?"Choose Your Card":"WLT"==(null==(c=null==S?void 0:S[I])?void 0:c.CardType)?"Choose Your Wallet":"Choose Your Bank")+" ",children:Ye.jsx(H.Group,{onChange:e=>{var t,n,i,a,r;oe(null==(t=null==e?void 0:e.target)?void 0:t.value),me("CCAvenue"==(null==(i=null==te?void 0:te[null==(n=null==e?void 0:e.target)?void 0:n.value])?void 0:i.dataAcceptedAt)?"Y":"N"),ae(null==(r=null==te?void 0:te[null==(a=null==e?void 0:e.target)?void 0:a.value])?void 0:r.cardName)},value:le,style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:null==te?void 0:te.map(((e,t)=>Ye.jsx(Ye.Fragment,{children:Ye.jsx(H,{value:t,style:{width:"106%",marginLeft:"-15px",borderBottom:"1px solid #dadada"},children:e.cardName})})))})}],Pe=async e=>{L(e)};async function ke(e){6===(null==e?void 0:e.length)&&ge.test(e)?(_(!0),Te(e),await(async e=>{let t="";await fetch(`https://api.postalpincode.in/pincode/${e}`).then((e=>e.text())).then((e=>t=JSON.parse(e))),"Success"===t[0].Status&&(Q(t[0].PostOffice[0].Block),q(t[0].PostOffice[0].District),Y(t[0].PostOffice[0].State),M(!0),G(!0))})(e)):0===(null==e?void 0:e.length)?_(!0):(_(!1),Q(null),Y(null)),Te(e)}const Te=async e=>{X(e)};const Ee=a.useCallback((()=>{C(null),w(null)}),[]);return Ye.jsxs("div",{children:[Ye.jsx(Qy,{messageType:b,messageData:j,onComplete:Ee}),Ye.jsx("div",{className:"Invoice-details-bg",children:Ye.jsx("div",{className:"Invoice-details-pricedetails",children:Ye.jsx("div",{className:"pricedetails-div",children:Ye.jsx("div",{style:{background:" ",display:"flex",flexDirection:"row",justifyContent:"space-around"},children:Ye.jsxs("div",{style:{background:" ",display:"flex",flexDirection:"column",rowGap:"1rem"},children:[Ye.jsxs("div",{style:{backgroundColor:"#52c41a2e",padding:"1rem 1rem",borderRadius:"10px",display:"flex",flexDirection:"row",rowGap:"2rem",justifyContent:"space-between"},children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:"0.2rem"},children:[Ye.jsx("div",{children:Ye.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:"0.5rem",color:"green"},children:[Ye.jsxs("p",{style:{fontSize:"clamp(16px, 2.5vw, 20px)",fontWeight:"500"},children:["₹ ",ye-Ne>=0?ye-Ne:0,ye-Ne>=0&&Ne>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("span",{children:"+"}),Ye.jsx(nR,{color:"#d78300",size:"1rem",width:"40px"}),Ye.jsx("span",{children:ye>Ne?Ne:Ne-(Ne-ye)})]})]}),Ye.jsx("p",{children:" to Pay "})]})}),(null==(u=null==we?void 0:we[0])?void 0:u.BalanceCommissionAmount)>0?Ye.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[Ye.jsx(V,{onChange:e=>{var t;Se(e.target.checked),e.target.checked?Ie(null==(t=null==we?void 0:we[0])?void 0:t.BalanceCommissionAmount):Ie(0)},style:{color:"#292fff",fontSize:"15px",fontWeight:"900"},children:"Pay Using Credit points"}),Ye.jsxs("p",{style:{fontSize:"13px",fontWeight:"900",display:"flex",alignItems:"center",gap:"5px"},children:[" ",Ye.jsx(nR,{color:"#d78300",size:"1rem",width:"40px"})," Available Balance: ",ye>Ne?(null==(p=null==we?void 0:we[0])?void 0:p.BalanceCommissionAmount)-(ye>Ne?Ne:Ne-ye):ye>Ne?Ne:Ne-ye]})]}):""]}),Ye.jsxs("div",{children:[Ye.jsx("div",{className:de?"NoError":"ShowError",children:Ye.jsxs("div",{children:[Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",label:"Email",className:"mailInpt",id:"Email",field:"Email",onChange:function(e){var t,n,i;i=null==(t=null==e?void 0:e.target)?void 0:t.value,/^[a-zA-Z0-9._%+-]{1,64}@[a-zA-Z0-9.-]{1,255}\.[a-zA-Z]{2,}$/.test(i)?(ce(!0),(async e=>{he(e)})(null==(n=null==e?void 0:e.target)?void 0:n.value)):ce(!1)}}),de?"":Ye.jsx("p",{style:{color:"#FF4D4F",fontSize:"12px",marginTop:"28px"},children:"Enter Valid Email"})]})}),Ye.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:"0.2rem",fontSize:"20px",fontWeight:"600",color:"green"},children:[Ye.jsx(ny,{}),Ye.jsxs("p",{style:{fontFamily:"Poppins",fontSize:"clamp(16px, 2.5vw, 20px)",fontWeight:"500",color:"green",borderRadius:"3px"},children:[" ",iA("MobileNo")]})]}),Ye.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",textDecoration:"underline",color:"green",fontSize:"12px",cursor:"pointer",columnGap:"0.2rem",alignItems:"center"},onClick:()=>{se(!re)},children:["More Info ",Ye.jsx(dE,{})," "]}),re&&Ye.jsx(Ye.Fragment,{children:Ye.jsx(SP,{open:re,footer:!1,children:Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:"1rem"},className:"adduserinfo",children:[Ye.jsx("div",{children:Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",label:"Company / Billing Name",id:"organization",field:"organization",value:ue,isOnChange:!!ue,onChange:e=>(async e=>{var t;pe(null==(t=null==e?void 0:e.target)?void 0:t.value)})(e)})}),Ye.jsx("div",{className:B?"NoError":"ShowError",children:Ye.jsxs("div",{children:[Ye.jsx(My,{field:"Address",autoComplete:"off",label:"Address",fieldState:!0,fieldApi:!0,value:J,isOnChange:!!J,onChange:e=>(async e=>{var t;Z(null==(t=null==e?void 0:e.target)?void 0:t.value),P(!0)})(e)}),B?"":Ye.jsx("p",{style:{color:"#FF4D4F",fontSize:"12px",margin:"-10px 0px 0px 13px"},children:"Enter Address"})]})}),Ye.jsx("div",{className:T?"NoError":"ShowError",children:Ye.jsxs("div",{children:[Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",type:"numeric",label:"GST",value:D,isOnChange:!!D,onChange:e=>{var t,n;return 15===(null==(n=null==(t=null==e?void 0:e.target)?void 0:t.value)?void 0:n.length)&&(null==ve?void 0:ve.test(n))?(E(!0),Pe(n)):0===(null==n?void 0:n.length)?E(!0):E(!1),void Pe(n)}}),T?"":Ye.jsx("p",{style:{color:"#FF4D4F",fontSize:"12px",margin:"-10px 0px 0px 13px"},children:"Enter Valid Gst"})]})}),Ye.jsx("div",{className:U?"NoError":"ShowError",children:Ye.jsxs("div",{children:[Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",type:"numeric",label:"Zip",maxLength:"6",value:$,isOnChange:!!$,onChange:e=>{var t;return ke(null==(t=null==e?void 0:e.target)?void 0:t.value)}}),U?"":Ye.jsx("p",{style:{color:"#FF4D4F",fontSize:"12px",margin:"-10px 0px 0px 13px"},children:"Enter Valid Zipcode"})]})}),Ye.jsx("div",{className:O?"NoError":"ShowError",children:Ye.jsxs("div",{children:[Ye.jsx(Oy,{fieldState:R||!1,fieldApi:!0,autocomplete:"off",label:"City",id:"city",field:"city",onChange:e=>{var t;return(async e=>{var t;Q(null==(t=null==e?void 0:e.target)?void 0:t.value),M(!0)})(null==(t=null==e?void 0:e.target)?void 0:t.value)},value:R,isOnChange:!!R,disabled:!!R}),O?"":Ye.jsx("p",{style:{color:"#FF4D4F",fontSize:"12px",margin:"-10px 0px 0px 13px"},children:"Enter City"})]})}),Ye.jsx("div",{className:K?"NoError":"ShowError",children:Ye.jsxs("div",{children:[Ye.jsx(Oy,{fieldState:W||!1,fieldApi:!0,autocomplete:"off",label:"State",id:"state",field:"state",onChange:e=>{var t;return(async e=>{var t;Y(null==(t=null==e?void 0:e.target)?void 0:t.value),G(!0)})(null==(t=null==e?void 0:e.target)?void 0:t.value)},value:W,isOnChange:!!W,disabled:!!W}),K?"":Ye.jsx("p",{style:{color:"#FF4D4F",fontSize:"12px",margin:"-10px 0px 0px 13px"},children:"Enter State"})]})})]})})}),handleCancel:()=>{se(!1)}})})]})]}),ye-Ne>0?Ye.jsx("div",{style:{background:" "},children:Ye.jsxs("div",{className:"Invoice-PaymentOption-MasterDiv",children:[Ye.jsxs("div",{className:"Invoice-PaymentOption-Div",children:[Ye.jsx("div",{className:"Invoice-PaymentOption",style:{},children:"Payment options"}),null==S?void 0:S.map(((e,t)=>Ye.jsxs("div",{className:"Invoice-PaymentOptions",style:{borderLeft:I===t?"5px solid #52C41A":"none",backgroundColor:I===t?" #52c41a2e":" ",color:I===t?" #000":" "},onClick:()=>{var e;F(t),ne(null==(e=null==S?void 0:S[t])?void 0:e.Details),oe()},children:[Ye.jsxs("div",{children:["EMI"==(null==e?void 0:e.MethodName)&&Ye.jsx("img",{src:RM,alt:"emi"}),"CreditCard"==(null==e?void 0:e.MethodName)&&Ye.jsx("img",{src:QM,alt:"CrediCard"}),"DebitCard"==(null==e?void 0:e.MethodName)&&Ye.jsx("img",{src:HM,alt:"DebitCard"}),"NetBanking"==(null==e?void 0:e.MethodName)&&Ye.jsx("img",{src:zM,alt:"NetBanking"}),"CashCard"==(null==e?void 0:e.MethodName)&&Ye.jsx("img",{src:VM,alt:"CashCard"}),"Wallet"==(null==e?void 0:e.MethodName)&&Ye.jsx("img",{src:qM,alt:"Wallet"}),"UPI"==(null==e?void 0:e.MethodName)&&Ye.jsx("img",{src:WM,alt:"Wallet"})]}),Ye.jsxs("div",{className:"paymentoptions",children:[Ye.jsx("div",{style:{fontSize:"16px"},children:null==e?void 0:e.MethodName}),Ye.jsx("div",{style:{fontSize:"10px",fontWeight:"400",fontFamily:"Poppins"},children:"Google Pay PhonePe & More"})]})]},t)))]}),Ye.jsx("div",{className:"Invoice-PaymentProcess-Div",children:null!=I&&Ye.jsxs("div",{className:"Invoice-PaymentProcess-UPI",children:["UPI"!=(null==(A=null==S?void 0:S[I])?void 0:A.CardType)&&Ye.jsx(zb,{placeholder:"CRDC"==(null==(h=null==S?void 0:S[I])?void 0:h.CardType)||"DBCRD"==(null==(f=null==S?void 0:S[I])?void 0:f.CardType)?"Search Your Card":"WLT"==(null==(m=null==S?void 0:S[I])?void 0:m.CardType)?"Search Your Wallet":"Search Your Bank",onSearchChange:e=>{var t,n;let i=null==(t=null==S?void 0:S[I])?void 0:t.Details,a=null==(n=null==e?void 0:e.target)?void 0:n.value.toLowerCase(),r=i.filter((e=>e.cardName.toLowerCase().startsWith(a)));ne(r)},prefix:Ye.jsx(WO,{})}),Ye.jsx("div",{className:"Invoice-PaymentProcess-UPI-collapse",children:"UPI"!=(null==(v=null==S?void 0:S[I])?void 0:v.CardType)&&Ye.jsx(ee,{items:Be,defaultActiveKey:["1"]})}),Ye.jsxs("div",{className:"Invoice-PaymentProcess-UPI-body",children:[Ye.jsxs("div",{className:"OverallAMtCount",children:["₹ ",ye-Ne>=0?ye-Ne:0,ye-Ne>=0&&Ne>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("span",{children:"+"}),Ye.jsx(nR,{color:"#d78300",size:"1rem",width:"40px"}),Ye.jsx("span",{children:ye>Ne?Ne:Ne-(Ne-ye)})]})]}),Ye.jsx("div",{className:"pricedetails-prcedbutton",children:Ye.jsxs("div",{children:[Ye.jsx(Ry,{type:"submit",buttonText:"PROCEED TO PAY",className:"sbmt-btn",handleSubmit:async()=>{var e,t,n,i,a,r,s,l,o,d,c;let u={PayOpt:null==(e=null==S?void 0:S[I])?void 0:e.PayOpt,CardType:null==(t=null==S?void 0:S[I])?void 0:t.CardType,cardName:"UPI"!=(null==(n=null==S?void 0:S[I])?void 0:n.CardType)?ie:"UPI"};if(Ae){if(be.NetPrice=ye-Ne>=0?ye-Ne:0,be.CommissionAmount=ye>Ne?Ne:Ne-(Ne-ye),null!=(null==u?void 0:u.PayOpt)&&null!=(null==u?void 0:u.CardType)&&null!=(null==u?void 0:u.cardName)){let e=await g(BT(be));if(1==(null==(a=null==(i=null==e?void 0:e.payload)?void 0:i.data)?void 0:a.statusCode)){const t=document.createElement("form");t.method="POST",t.action="https://pozo.app/CustomPaymentGateway/CustomPaymentGateway/ccavRequestHandler",t.style.display="none";const n={merchant_id:"15191",order_id:null==(s=null==(r=null==e?void 0:e.payload)?void 0:r.data)?void 0:s.OrderId,currency:"INR",amount:ye-Ne>=0?ye-Ne:0,redirect_url:"https://pozo.app/CustomPaymentGateway/CustomPaymentGateway/ccavResponseHandler",cancel_url:"https://pozo.app/CustomPaymentGateway/CustomPaymentGateway/ccavResponseHandler",payment_option:null==(l=null==S?void 0:S[I])?void 0:l.PayOpt,card_type:null==(o=null==S?void 0:S[I])?void 0:o.CardType,card_name:"UPI"!=(null==(d=null==S?void 0:S[I])?void 0:d.CardType)?ie:"UPI",data_accept:fe,language:"EN",billing_name:null!=ue?ue:"User",billing_address:null!=J?J:"xyz",billing_city:null!=R?R:"xyz",billing_state:null!=W?W:"xyz",billing_zip:null!=$?$:"000000",billing_country:"India",billing_tel:iA("MobileNo"),billing_email:Ae,delivery_name:"F",delivery_address:"N",delivery_city:null!=z?z:"xyz",delivery_state:"",delivery_zip:"O",delivery_country:"India",delivery_tel:(null==ve?void 0:ve.test(D))?D:null,merchant_param1:iA("SessionId"),merchant_param2:xe,merchant_param3:iA("UserId"),merchant_param4:"",merchant_param5:"PaymentHandler.html",promo_code:"",customer_identifier:""};null==(c=Object.keys(n))||c.forEach((e=>{const i=document.createElement("input");i.type="hidden",i.name=e,i.value=(e=>{const t=Ce.AES.encrypt(JSON.stringify(e),"3a939a2eed2cca4b64cd47f51b23b135b2b9b765273f695d47682ea803c8429d").toString();if(t)return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")})(n[e]),t.appendChild(i)})),document.body.appendChild(t),t.submit()}else C("Select Payment option"),w("warning")}}else C("Enter Mail Id"),w("warning")},icon:Ye.jsx(k,{})}),Ye.jsxs("a",{className:"prcdPay",children:[" ","By proceeding, you agree to our Privacy Policy"," "]})]})})]})]})})]})}):Ye.jsxs("div",{children:[" ",Ye.jsx("p",{style:{textAlign:"center"},children:"You Noo Need To Pay"}),Ye.jsx(Ry,{type:"submit",buttonText:"PROCEED TO PAY",className:"sbmt-btn",handleSubmit:async()=>{var e,t;if(Ae)C("Enter Mail Id"),w("warning");else{be.NetPrice=ye-Ne>=0?ye-Ne:0,be.CommissionAmount=ye>Ne?Ne:Ne-(Ne-ye);let n={BookingId:null==be?void 0:be.BookingId,Price:0,TaxId:null==be?void 0:be.TaxId,TaxAmount:0,NetPrice:0,Type:null==be?void 0:be.Type,PaymentStatus:"S",PaymentType:0,UserId:iA("UserId"),CommissionAmount:ye>Ne?Ne:Ne-(Ne-ye),Details:null==be?void 0:be.Details,CreatedBy:iA("UserId")},i=await g(BT(n));1==(null==(t=null==(e=null==i?void 0:i.payload)?void 0:e.data)?void 0:t.statusCode)&&y("/home/landing-page/home")}},icon:Ye.jsx(k,{})})," "]})]})})})})})]})},access:"Admin"},{path:`${Ofe}testimonials`,component:()=>{const e=um(),t=Qt(),[n,i]=a.useState(!1),[r,s]=a.useState(),l=a.useRef(null),[o,d]=a.useState([]),[c,u]=a.useState([]),[p,A]=a.useState(!1);a.useEffect((()=>{h()}),[]);const h=async()=>{var t,n,i;let a=await e(W6()).unwrap();1===(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)?d(null==(i=null==(n=null==a?void 0:a.data)?void 0:n.data)?void 0:i.filter((e=>"A"==(null==e?void 0:e.ActiveStatus)))):d([])},f=()=>{A(!1),i(!1)};return Ye.jsxs("div",{id:"Testimonials",className:"PozoTestimonial-Master",children:[Ye.jsx("div",{className:"PozoTestimonial-Navbar",children:Ye.jsx(MO,{onClick:()=>{t("/")}})}),Ye.jsxs("div",{className:"PozoTestimonial-main",children:[Ye.jsxs("div",{className:"PozoTestimonial-header",children:["Authentic Stories from Our Valued pozo.app Clients"," "]}),Ye.jsxs("p",{className:"PozoTestimonial-Subheader",children:["Start Your Success Journey Today with ",Ye.jsx("span",{children:"POZOAPP"})]}),Ye.jsxs("div",{className:"TrustedCustomer-title",children:["Genuine Stories Highlighting True Success"," "]}),Ye.jsx("div",{className:"CustomerStories-story",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"80vw"},children:Ye.jsxs("div",{className:"CustomerStories-main",children:[o.map(((e,t)=>{var n;return Ye.jsxs("div",{className:"CustomerStories",children:[Ye.jsxs("div",{className:"CustomerStories-image",children:[Ye.jsx("img",{src:e.ImageUrl,alt:"Thumbnai1"}),Ye.jsx(FO,{className:"playicon-testimonial",onClick:()=>(e=>{s(null==e?void 0:e.VideoLink),u({Review:e.CustomerReview,CompName:e.CompName}),i(!0)})(e)})]}),Ye.jsxs("div",{className:"CustomerStories-shopDetails",style:{padding:!e.CompLogo&&"4px 26px"},children:[e.CompLogo&&Ye.jsx("div",{className:"shopDetails-logo",children:Ye.jsx("img",{src:e.CompLogo,alt:"apparel"})}),Ye.jsxs("div",{className:"AllDetailsOfShop-main",children:[Ye.jsxs("div",{className:"testimonial-adminName",children:[" ",e.CustomerName]}),Ye.jsxs("div",{className:"testimonial-AdminDestionation",children:[" ",e.Designation]}),Ye.jsxs("div",{className:"testimonial-ShopName",children:[" ",e.CompName]})]})]}),Ye.jsxs("div",{className:"customer-reviewStores",children:[Ye.jsx("div",{className:"reviewStores-div",ref:l,children:e.CustomerReview}),(null==(n=e.CustomerReview)?void 0:n.length)>250&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("p",{style:{color:"#1292ee",cursor:"pointer"},onClick:()=>{(e=>{A(!0),u({Review:e.CustomerReview,CompName:e.CompName})})(e)},children:"More ...."})})]})]},t)})),Ye.jsx(j,{title:c.CompName,visible:p,onCancel:f,footer:null,centered:!0,width:900,className:"reviewModal-testimonial",children:c.Review}),Ye.jsx(j,{title:c.CompName,visible:n,onCancel:f,footer:null,centered:!0,width:900,children:Ye.jsx("iframe",{src:(null==r?void 0:r.includes("youtube.com/watch"))?`https://www.youtube.com/embed/${new URL(r).searchParams.get("v")}`:(null==r?void 0:r.includes("youtu.be/"))?`https://www.youtube.com/embed/${null==r?void 0:r.split("youtu.be/")[1].split("?")[0]}`:r,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,style:{width:"100%",height:"500px"}})})]})})]})]})},access:"Public"},{path:`${Ofe}faq`,component:()=>{const e=Qt(),[t,n]=a.useState(null);a.useEffect((()=>{window.scrollTo(0,0)}),[]);return Ye.jsxs("div",{className:"privacy-policy-container",children:[Ye.jsxs("div",{className:"privacy-header",children:[Ye.jsxs("div",{onClick:()=>{e("/home/")},className:"back-link ",children:[Ye.jsx(Zv,{})," Back to Home"]}),Ye.jsxs("div",{className:"header-content",children:[Ye.jsx(bg,{className:"privacy-icon"}),Ye.jsx("h1",{children:"Frequently Asked Questions"}),Ye.jsx("p",{children:"Find quick answers to common questions"})]})]}),Ye.jsxs("div",{className:"privacy-content",children:[Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"Quick Answers"}),Ye.jsx("p",{style:{marginBottom:"2rem"},children:"Have questions about PozoApp? We've got answers! Browse through our most frequently asked questions below."}),Ye.jsx("div",{className:"faq-list",children:_fe.map(((e,i)=>Ye.jsxs("div",{className:"faq-item",style:{marginBottom:"1rem",border:"1px solid rgba(53, 136, 253, 0.2)",borderRadius:"8px",overflow:"hidden",transition:"all 0.3s ease"},children:[Ye.jsxs("div",{onClick:()=>(e=>{n(t===e?null:e)})(i),style:{padding:"1.25rem 1.5rem",cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:t===i?"rgba(53, 136, 253, 0.1)":"transparent",transition:"all 0.3s ease"},children:[Ye.jsx("h3",{style:{margin:0,fontSize:"1.1rem",color:t===i?"#3588fd":"inherit",fontWeight:500},children:e.question}),Ye.jsx("span",{style:{fontSize:"1.5rem",fontWeight:"300",color:"#3588fd",minWidth:"30px",textAlign:"center"},children:t===i?"−":"+"})]}),Ye.jsx("div",{style:{maxHeight:t===i?"500px":"0",overflow:"hidden",transition:"max-height 0.3s ease"},children:Ye.jsx("div",{style:{padding:t===i?"0 1.5rem 1.25rem 1.5rem":"0 1.5rem",color:"#666",lineHeight:"1.6"},children:e.answer})})]},i)))})]}),Ye.jsxs("section",{className:"privacy-section",style:{marginTop:"3rem",padding:"2rem",background:"linear-gradient(135deg, rgba(53, 136, 253, 0.05) 0%, rgba(53, 136, 253, 0.1) 100%)",borderRadius:"12px",border:"1px solid rgba(53, 136, 253, 0.2)"},children:[Ye.jsx("h2",{children:"Still Have Questions?"}),Ye.jsx("p",{children:"Can't find what you're looking for? Our support team is here to help! Contact us through any of these channels:"}),Ye.jsxs("ul",{style:{marginTop:"1.5rem"},children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Email:"})," ",Ye.jsx("a",{href:"mailto:info@pozo.app",style:{color:"#3588fd"},children:"info@pozo.app"})]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Phone:"})," ",Ye.jsx("a",{href:"tel:7324000011",style:{color:"#3588fd"},children:"73 24 00 00 11"})," or ",Ye.jsx("a",{href:"tel:7324000012",style:{color:"#3588fd"},children:"73 24 00 00 12"})]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"WhatsApp:"})," ",Ye.jsx("a",{href:"https://wa.me/917324000014",target:"_blank",rel:"noopener noreferrer",style:{color:"#3588fd"},children:"Chat with us"})]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Address:"})," Manager, No 51 Step Colony, Dharga, Hosur, Krishnagiri, Tamilnadu-635126, India"]})]})]})]})]})},access:"Public"},{path:`${Ofe}homepage`,component:()=>{const e=um(),t=Qt(),[n,i]=a.useState([]),[r,s]=a.useState([]),[l,o]=a.useState([]),[d,c]=a.useState(null),[u,p]=a.useState({}),A=iA("UserId");a.useEffect((()=>{var e,t;null!=(null==(e=null==n?void 0:n[0])?void 0:e.CateId)&&m(null==(t=null==n?void 0:n[0])?void 0:t.CateId)}),[n]),a.useEffect((()=>{var e;r!=[]&&f(null==(e=null==r?void 0:r[0])?void 0:e.SubCateId)}),[r]),a.useEffect((()=>{v(),h(),LU.init({duration:1e3}),sessionStorage.getItem("auth")||g()}),[]);const h=async()=>{var t,n,i;try{const a=await e(CU({PageId:1})).unwrap();if(1===(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&(null==(i=null==(n=null==a?void 0:a.data)?void 0:n.data)?void 0:i.length)>0){const e=a.data.data[0];p({title:e.MetaTitle,description:e.MetaDesc,keywords:e.Keywords,image:e.ImageUrl||"/og/home.jpg"})}}catch(a){p({title:"PozoApp - Complete Business Management Solution",description:"AI-powered POS and SaaS solutions for MSMEs and enterprises",keywords:"POS software, billing software, inventory management",image:"/og/home.jpg"})}},f=async t=>{var n,i,a;const r=await e(oL(t)).unwrap();if(1===(null==(n=null==r?void 0:r.data)?void 0:n.statusCode)){let e=null==(a=null==(i=null==r?void 0:r.data)?void 0:i.data)?void 0:a.filter((e=>"A"===e.ActiveStatus));o(e)}},m=async t=>{var n,i,a;o([]);const r=await e(lL(t)).unwrap();if(1===(null==(n=null==r?void 0:r.data)?void 0:n.statusCode)){let e=null==(a=null==(i=null==r?void 0:r.data)?void 0:i.data)?void 0:a.filter((e=>"A"===e.ActiveStatus));s(e)}},v=async()=>{var t,n;s([]),o([]);const a=await e(aL()).unwrap();if(1===(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)){let e=null==(n=null==a?void 0:a.data)?void 0:n.data;i(e)}},g=async()=>{let t={username:"1000000001",password:"1234"};try{await e(cL(t)).unwrap()}catch(n){}};return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(bU,{title:u.title||"PozoApp - Complete Business Management Solution",description:u.description||"AI-powered POS and SaaS solutions for MSMEs and enterprises",keywords:u.keywords||"POS software, billing software, inventory management",url:"/home/",image:u.image}),Ye.jsxs("div",{className:"Public_Overall_Body",children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"3rem"},children:[Ye.jsx("div",{style:{position:"fixed",zIndex:"1"},children:Ye.jsx(pL,{})}),Ye.jsxs("div",{"data-aos":"zoom-out-up",className:"publictopDIv",style:{display:"flex",flexDirection:"column",gap:"1rem",padding:"5rem 0rem"},children:[Ye.jsx("div",{className:"Public_home_Texts"}),Ye.jsx("p",{className:"firsttxt",children:" simple | speed | smart | secure "}),Ye.jsxs("div",{className:"Public_home_Texts-new",children:[Ye.jsxs("div",{className:"Public_home-content",children:[Ye.jsxs("h1",{className:"home-header-one",children:["Simplify your business operation ",Ye.jsx("br",{})," with pozo apps powered by GenAI"]}),Ye.jsx("div",{className:"home-header-two",children:"Experience, Automation, Cost Efficient"}),Ye.jsx("div",{className:"home-header-three",children:"Our SaaS offering is designed for businesses of all sizes from small & medium enterprises to large enterprises"}),Ye.jsx("div",{children:Ye.jsx(An,{to:A?`${RU}landing-page/home`:`${RU}signin`,className:"btn btn-primary",children:Ye.jsxs("button",{className:"startbtn",children:[Ye.jsx("p",{children:"Experience Now"}),Ye.jsx(FU,{})]})})})]}),Ye.jsx("div",{className:"Public_home-video",children:Ye.jsx("video",{src:"/assets/Landing_Video-3264f9d6.mp4",autoPlay:!0,loop:!0,muted:!0,controls:!1,className:"landing_video"})})]})]})]}),Ye.jsx("div",{id:"Offers",style:{display:"flex",flexDirection:"column"},children:Ye.jsxs("div",{className:"Spec_container",children:[Ye.jsx("p",{className:"Spec-header",children:"POZO Offerings"}),Ye.jsxs("p",{className:"Spec-heade",children:[" ","Think Business, Think POZO Discover what POZO can do for you"]}),Ye.jsxs("div",{className:"hpcard-container",style:{display:"flex",gap:"1rem"},children:[Ye.jsxs("div",{className:"card 1",children:[Ye.jsx("div",{className:"card_image",children:Ye.jsx("img",{src:"/assets/inventory-1022c681.png",alt:"BusinessImg"})}),Ye.jsxs("div",{className:"card_title title-black",children:[Ye.jsx("p",{children:"Inventory/Warhouse Management"}),Ye.jsx("p",{className:"card_description",children:"It is all about keeping track of what you have in stock and making sure you have enough of the right stuff at the right time."})]})]}),Ye.jsxs("div",{className:"card 2",children:[Ye.jsx("div",{className:"card_image",children:Ye.jsx("img",{src:"/assets/bill-47228412.png",alt:"BusinessImg"})}),Ye.jsxs("div",{className:"card_title title-white",children:[Ye.jsx("p",{children:"Billing/POS "}),Ye.jsxs("p",{className:"card_description",children:[" ","customization options, and integration with payment gateways make it an indispensable asset for modern businesses"," "]})]})]}),Ye.jsxs("div",{className:"card 3",children:[Ye.jsx("div",{className:"card_image",children:Ye.jsx("img",{src:"/assets/Accounting1-17a5f1b7.png",alt:"BusinessImg"})}),Ye.jsxs("div",{className:"card_title title-white",children:[Ye.jsx("p",{children:"Accounting "}),Ye.jsxs("p",{className:"card_description",children:[" ","It is all about keeping tabs on all the money moving through the store - from sales to expenses - to ensure the business stays profitable and organized"," "]})]})]})]}),Ye.jsx("div",{}),Ye.jsx("div",{})]})}),"~",Ye.jsx("div",{"data-aos":"fade-down-right",children:Ye.jsx("div",{className:"floatHand",children:Ye.jsx("img",{className:"floatHandImg",src:"/assets/bighand-e66d63bf.png",alt:"BusinessImg"})})}),Ye.jsxs("div",{className:"Valueofpozo_container",children:[Ye.jsxs("div",{className:"Valueofpozo_texts",style:{display:"flex",flexDirection:"column"},children:[" ",Ye.jsxs("p",{style:{fontSize:"23px",fontWeight:"600",textTransform:"uppercase"},children:[" ","Values of"]})," ",Ye.jsx("p",{className:" Pozotxt",children:" POZO"})," "]}),Ye.jsx("div",{className:"carosel-width",style:{borderRadius:"10px"},children:Ye.jsxs(J,{autoplay:!0,children:[Ye.jsx("div",{children:Ye.jsxs("h3",{style:MU,children:[" ",Ye.jsx("img",{src:"/assets/template1-4eabbead.png",style:{width:"100%"},alt:"BusinessImg"})," "]})}),Ye.jsx("div",{children:Ye.jsxs("h3",{style:MU,children:[" ",Ye.jsx("img",{src:"/assets/template2-9070c95d.png",style:{width:"100%"},alt:"BusinessImg"})," "]})}),Ye.jsx("div",{children:Ye.jsxs("h3",{style:MU,children:[" ",Ye.jsx("img",{src:"/assets/Template3-7dbefd3d.png",style:{width:"100%"},alt:"BusinessImg"})," "]})})]})}),Ye.jsx("div",{children:Ye.jsx("p",{className:"carouselDesc",style:{fontSize:"20px"},children:"POZO billing software simplifies billing processes by providing customization, automation, and integrated with payment gateways."})})]}),Ye.jsx("div",{className:"Home_Style",children:Ye.jsxs("div",{className:"Apps_container",id:"Products",children:[Ye.jsx("h4",{className:"forthtxt",children:" "}),Ye.jsxs("p",{className:"fifthtxt",children:["A complete digital platform for restaurants, hotels, cafes, bars, food courts, Garments and ",Ye.jsx("br",{})," more in one application"]}),Ye.jsxs("div",{className:"swipee-sliderDiv",children:[Ye.jsx(EU,{scrollSpeed:20,showLeftButton:!1,showRightButton:!1,children:Ye.jsx("div",{"data-aos":"fade-down",children:n.length>0?Ye.jsx("div",{style:{display:"flex",width:"100%",overflow:"auto",flexDirection:"row",columnGap:"0.5rem",justifyContent:"center"},children:n.map(((e,t)=>Ye.jsxs("label",{style:{overflow:"hidden"},children:[Ye.jsx("input",{className:"ModuleCard-style",type:"radio",name:"optradio",checked:(null==e?void 0:e.CateId)===d,onClick:()=>{m(null==e?void 0:e.CateId),c(null==e?void 0:e.CateId)}}),Ye.jsxs("span",{className:"ModuleCard",children:[Ye.jsx("div",{style:{width:"50px",height:"50px",objectFit:"stretch"},children:Ye.jsx("img",{src:""!=e.CategoryImage&&null!=e.CategoryImage?null==e?void 0:e.CategoryImage:"https://api.pozo.app/pozo-common-image-api/upload?fileId=655c9649fe20def9916edf1b.png",alt:"AppImg",style:{width:"50px",height:"50px"}})}),Ye.jsx("p",{style:{textAlign:"center",fontSize:"14px"},children:null==e?void 0:e.CategoryName}),Ye.jsx("div",{className:"card_description",style:{height:"28vh",overflow:"auto",width:"180px",padding:"2rem 0rem",fontSize:"13px",fontFamily:"Poppins"},children:e.Description})]})]},t)))}):null})}),null!==d&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{onClick:()=>{c(null)},style:{padding:"1rem 1rem ",display:"flex",alignItems:"center",gap:"0.5rem"},children:[Ye.jsx(UU,{style:{fontSize:"20px",cursor:"pointer",backgroundColor:"white"}})," ",Ye.jsx("a",{style:{fontSize:"12px"},children:" "})]}),Ye.jsxs("div",{className:"appSubcatDiv",style:{background:"#ffff",padding:"0rem 1rem",display:"flex",overflow:"hidden",height:"450px"},children:[Ye.jsx("div",{className:"tabapps",style:{display:"flex",flexDirection:"column",overflow:"scroll",gap:"0.5rem"},children:null==r?void 0:r.map(((e,t)=>Ye.jsxs("label",{children:[Ye.jsx("input",{className:"input-style",type:"radio",name:"optradio1",defaultChecked:0===t,onClick:()=>f(null==e?void 0:e.SubCateId)}),Ye.jsx("span",{className:"SubModuleCard",children:Ye.jsxs("p",{children:[" ",null==e?void 0:e.SubCategoryName," "]})})]})))}),null!==d&&Ye.jsx("div",{className:"AppMastdiv",children:Ye.jsx("div",{className:"apptabapps",children:null==l?void 0:l.map((e=>Ye.jsxs("div",{className:"tab_cont",onClick:()=>(async(e,n)=>{nA("AppId",e),nA("AppName",n),t(`${RU+(null==n?void 0:n.toLowerCase())}`),window.location.reload()})(null==e?void 0:e.AppId,null==e?void 0:e.AppName),children:[Ye.jsxs("p",{className:"tab_conetent",children:[Ye.jsx("img",{src:e?e.AppLogo:"/assets/retail-92ca9e5c.svg",alt:"AppImg",style:{maxWidth:"60px"}}),e.AppName,Ye.jsx("p",{style:{height:"8vh",overflow:"auto",fontSize:"12px",textTransform:"capitalize",fontWeight:"400"},children:e.AppDescription})]}),Ye.jsxs("p",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[" ","Explore Now ",Ye.jsx(ZD,{})," "]})]})))})})]})]})]}),Ye.jsx("div",{id:"Video",children:Ye.jsx(kU,{})}),Ye.jsx("div",{className:"area",children:Ye.jsxs("ul",{className:"circles",children:[Ye.jsx("li",{}),Ye.jsx("li",{}),Ye.jsx("li",{}),Ye.jsx("li",{}),Ye.jsx("li",{}),Ye.jsx("li",{}),Ye.jsx("li",{}),Ye.jsx("li",{}),Ye.jsx("li",{}),Ye.jsx("li",{})]})})]})})]}),Ye.jsxs("div",{className:"publicHomeFtr",children:[Ye.jsxs("div",{style:{width:"20rem",lineHeight:"2rem"},children:[Ye.jsx("img",{src:Bm,alt:"logo",width:90,className:"footer-logo"}),Ye.jsx("p",{className:"footer-content-text",children:"Enabling Business Expansion with Limited Staff, Basic Skills, and Reliable Solutions inspired the inception of Pozo as an extension of this core principle."})]}),Ye.jsxs("div",{className:"footer-getstarter-quick-container",children:[Ye.jsxs("div",{className:"footer-getstartednow",children:[Ye.jsx("p",{className:"footer-bigText",children:"GET STARTED NOW"}),Ye.jsx("p",{className:"footer-smallText",children:"Sign up"})]}),Ye.jsx("div",{style:{display:"flex",gap:"2rem",width:"7erm"},children:Ye.jsxs("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",rowGap:"0.6rem"},children:[Ye.jsx("p",{className:"footer-bigText",children:"MOBILE APPS"}),Ye.jsx(F,{title:"Currently under development",children:Ye.jsxs("div",{className:"footer-app-container",style:{},children:[Ye.jsx("img",{src:"/assets/playstorenew-b6f923f2.png",style:{width:"9.5rem",cursor:"pointer"},alt:""}),Ye.jsx("img",{src:"/assets/appstorenew-37b10088.png",style:{width:"9.5rem",cursor:"pointer"},alt:""})]})})]})})]}),Ye.jsx("div",{className:"footer-company-app-container",children:Ye.jsxs("div",{className:"footer-Company",children:[Ye.jsx("p",{className:"footer-bigText",children:"COMPANY"}),Ye.jsx("p",{className:"footer-smallText",children:"Privacy Policy"}),Ye.jsx("p",{className:"footer-smallText",children:"Terms"})]})}),Ye.jsxs("div",{className:"footer-contact-container",children:[Ye.jsx("p",{className:"footer-bigText",children:"PHONE"}),Ye.jsxs("div",{className:"footer-contact-div",children:[Ye.jsx(ZE,{style:{color:"black",fontSize:"25px"}}),Ye.jsx("p",{className:"footer-contact-text",children:"73 24 00 00 11"})]}),Ye.jsxs("div",{className:"footer-contact-div",children:[Ye.jsx("div",{children:Ye.jsx(pg,{style:{color:"#228e32",fontSize:"25px"}})}),Ye.jsx("p",{className:"footer-contact-text",children:"73 24 00 00 12"})]})]})]}),Ye.jsx("hr",{style:{backgroundColor:"rgb(153, 153, 153)"}}),Ye.jsx("div",{className:"footer-contact-container",children:Ye.jsx("p",{style:{textAlign:"center",padding:"5px"},className:"footer-bigText",children:"© 2025 POZO All Rights Reserved."})})]})},access:"Public"},{path:`${Ofe}pricing`,component:()=>{var e,t,n,i;const r=Qt(),s=um(),l=Tf((e=>{var t;return(null==(t=null==e?void 0:e.pricingType)?void 0:t.PricingType)||[]})),o=null==l?void 0:l.filter((e=>"Extend Pack"===(null==e?void 0:e.Status))),[d,c]=a.useState("monthly"),[u,p]=a.useState("Y"),[A,h]=a.useState([]),[f,m]=a.useState(null),[v,g]=a.useState("Bakery"),[y,x]=a.useState(null),[b,w]=a.useState(null),[j,C]=a.useState([]),[S,N]=a.useState(!0),[I,F]=a.useState(1),[B,P]=a.useState(null),k=null==(e=null==B?void 0:B[0])?void 0:e.RemainingDays,T=null==j?void 0:j.filter((e=>"2"===e.CoreAddon)),E=null==j?void 0:j.filter((e=>"3"===e.CoreAddon)),D=null==A?void 0:A.filter((e=>(null==e?void 0:e.AppName)===v)),[L,U]=a.useState(0);iA("UserType");const _=iA("UserId"),[O,M]=a.useState(""),R=a.useRef(null),[Q,H]=a.useState([]),[V,z]=a.useState(null),[q,W]=a.useState(!1),[Y,K]=a.useState(!1),[G,$]=a.useState(!1),[X,J]=a.useState(!1);a.useRef(null);const[Z,ee]=a.useState(!1),[te,ne]=a.useState(!1),ie=a.useRef(null),[ae,re]=a.useState({});let se=(null==(n=null==(t=null==l?void 0:l.filter((e=>{var t;return"FREE"!==(null==(t=e.PricingName)?void 0:t.toUpperCase())})))?void 0:t.filter((e=>"Extend Pack"==(null==e?void 0:e.Status))))?void 0:n.length)>0;const le=Q.filter((e=>{var t;const n=(null==O?void 0:O.toLowerCase())||"";return null==(t=null==e?void 0:e.AppName)?void 0:t.toLowerCase().includes(n)})),oe=e=>{const t=R.current;if(t){const n=200;t.scrollBy({left:"left"===e?-n:n,behavior:"smooth"})}},de=a.useRef(null),[ce,ue]=a.useState(!1),pe=e=>{const t=de.current;if(t){const n=350;t.scrollBy({left:"left"===e?-n:n,behavior:"smooth"})}},[Ae,he]=a.useState(0),[fe,me]=a.useState(!1),ve=()=>{const e=de.current,t=window.innerWidth;me(t<=768),ue(e&&!fe?e.scrollWidth>e.clientWidth:t<=768&&l.length>1)},ge=e=>{"right"===e&&Ae<l.length-1?he(Ae+1):"left"===e&&Ae>0&&he(Ae-1)};a.useEffect((()=>(ve(),window.addEventListener("resize",ve),()=>window.removeEventListener("resize",ve))),[l,fe]),a.useEffect((()=>{Ce()}),[]),a.useEffect((()=>{const e=setTimeout((()=>N(!1)),500);LU.init({duration:500});const t=new Cre({duration:1.2,easing:e=>Math.min(1,1.001-Math.pow(2,-10*e)),smoothWheel:!0,smoothTouch:!0,wheelMultiplier:1,touchMultiplier:2});return z(t),t.on("scroll",(e=>{_Ae.update(),W(e.scroll>500),K(e.scroll>50)})),kce.ticker.add((e=>{t.raf(1e3*e)})),kce.ticker.lagSmoothing(0),kce.fromTo(".PricingPozoAppTitle",{y:100,opacity:0},{y:0,opacity:1,duration:1.2,ease:"power3.out"}),kce.fromTo(".pricingCard",{y:80,opacity:0},{y:0,opacity:1,duration:1,stagger:.2,delay:.5,ease:"power2.out"}),kce.fromTo(".addonCard",{scale:.8,opacity:0},{scale:1,opacity:1,duration:.8,stagger:.1,delay:1,ease:"back.out(1.7)"}),()=>{clearTimeout(e),t.destroy(),_Ae.getAll().forEach((e=>e.kill()))}}),[]),a.useEffect((()=>{let e=null==D?void 0:D.filter((e=>"Free"!=e.PricingName)),t=null==e?void 0:e.reduce(((e,t)=>e+t.RemainingDays),0);U(t)}),[D]),a.useEffect((()=>{nA("AppId",I)}),[I]),a.useEffect((()=>{xe(),we(),be(),ye()}),[I,_]),a.useEffect((()=>{(async()=>{var e,t,n,i,a,r,l;try{const o=await s(HP({TypeName:"SEO"})).unwrap();if(1===(null==(e=null==o?void 0:o.data)?void 0:e.statusCode)){const e=null==(i=null==(n=null==(t=null==o?void 0:o.data)?void 0:t.data)?void 0:n.find((e=>"pricing"===e.ConfigName)))?void 0:i.ConfigId;if(!e)return;const d=await s(CU({PageId:e})).unwrap();if(1===(null==(a=null==d?void 0:d.data)?void 0:a.statusCode)&&(null==(l=null==(r=null==d?void 0:d.data)?void 0:r.data)?void 0:l.length)>0){const e=d.data.data[0];re({metaTitle:null==e?void 0:e.MetaTitle,metaDescription:null==e?void 0:e.MetaDesc,keywords:null==e?void 0:e.Keywords,imageAltText:null==e?void 0:e.ImgAltText})}}}catch(o){}})()}),[s]);const ye=async()=>{var e;let t=await s(lw({UserId:_,AppId:I})).unwrap();h(null==(e=null==t?void 0:t.data)?void 0:e.data)},xe=async()=>{var e,t,n;let i=await s(sw({UserId:_,AppId:I})).unwrap();1==(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&m(null==(n=null==(t=null==i?void 0:i.data)?void 0:t.data)?void 0:n[0])},be=async()=>{var e,t,n;let i=await s(aT(I)).unwrap();C(null==(n=null==(t=null==(e=null==i?void 0:i.data)?void 0:e.data)?void 0:t[0])?void 0:n.FeatDetails)},we=async()=>{var e,t;let n={AppId:I,UserId:_,type:"L"},i=await s(ow(n)).unwrap();1==(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&P(null==(t=i.data)?void 0:t.data)};a.useEffect((()=>{s(_?Wb({toggleValue:u,AppId:I,UserId:_}):Kb({toggleValue:u,AppId:I})),s(rw({toggleValue:u,AppId:I})).unwrap()}),[u,I,_,s]);const je=e=>{p(e),s(_?Wb({toggleValue:e,AppId:I,UserId:_}):Kb({toggleValue:e,AppId:I}))},Ce=async()=>{var e,t,n,i,a;const r=await s(dL()).unwrap();if(1===(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)){let e=null==(n=null==(t=null==r?void 0:r.data)?void 0:t.data)?void 0:n.filter((e=>"A"===e.ActiveStatus));H(e),F(null==(i=null==e?void 0:e[0])?void 0:i.AppId),g(null==(a=null==e?void 0:e[0])?void 0:a.AppName)}},Ne=async e=>{var t,n,i,a;const l=new Date,o=Se(l).format("YYYY-MM-DD HH:mm:ss"),d=Se(l).format("YYYY-MM-DD HH:mm:ss"),c=Se(l).add(e.NoOfDays,"days").format("YYYY-MM-DD HH:mm:ss");var u=new Date(c);u.setDate(u.getDate()-1);const p=u.toISOString().slice(0,19).replace("T"," ");if(_)if("Start Free"===e.Status){const a={UserId:_,AppId:iA("AppId"),PricingId:e.PricingId,PurDate:o,PaymentStatus:"S",LicenseStatus:"A",Price:e.Price,ValidityStart:d,ValidityEnd:p,CreatedBy:iA("UserId")},r=await s(Gb(a)).unwrap();1==(null==(t=null==r?void 0:r.data)?void 0:t.statusCode)?(x("success"),w(null==(n=null==r?void 0:r.data)?void 0:n.response),_?await Fe():await Be()):(x("error"),w(null==(i=null==r?void 0:r.data)?void 0:i.response))}else w("Free Already Used"),x("warning");else r(`${zhe}signin`,{state:{AppId:I,PricingId:e.PricingId,PurDate:o,PaymentStatus:"S",LicenseStatus:"A",Price:e.Price,ValidityStart:d,ValidityEnd:p,PricingName:"Free",locationpathname:null==(a=window.location)?void 0:a.pathname}}),window.location.reload()},Ie=a.useCallback((async(e,t)=>{var n,i;(e=>{const t=iA("UserId"),n=iA("AppId"),i=JSON.parse(localStorage.getItem("visitLogFormat")||"null"),a={VisitTime:(new Date).toISOString(),Location:window.location.pathname};let r;if(i){const n=Array.isArray(i.LocationVistDtl)?i.LocationVistDtl:[];r={...i,PricingId:(null==e?void 0:e.PricingId)||i.PricingId||null,LocationVistDtl:[...n,a],CreatedBy:t}}else r={UserId:t,AppId:n,CreatedBy:t,PricingId:(null==e?void 0:e.PricingId)||null,LocationVistDtl:[a]};localStorage.setItem("visitLogFormat",JSON.stringify(r))})(e);let a=(e=>{var t;const n=new Set,i=[];for(const a of e.LocationVistDtl){const e=null==(t=null==a?void 0:a.Location)?void 0:t.toLowerCase();n.has(e)||(n.add(e),i.push(a))}return{...e,LocationVistDtl:i}})(JSON.parse(localStorage.getItem("visitLogFormat")||"null"));await s(lT(a)),localStorage.removeItem("visitLogFormat"),nA("AppId",e.AppId),nA("PricingId",e.PricingId);const l=new Date,o=Se(l).format("YYYY-MM-DD HH:mm:ss"),d=Se(l).format("YYYY-MM-DD HH:mm:ss"),c=Se(l).add(e.NoOfDays,"days").format("YYYY-MM-DD HH:mm:ss");var u=new Date(c);u.setDate(u.getDate()-1);const p=u.toISOString().slice(0,19).replace("T"," ");_?(r(`${zhe}invoice-detail`,{state:{pricingData:e,PackName:null==e?void 0:e.Status,purchasedAmt:f,differenceDays:L,AppExpDate:D,locationpathname:null==(n=window.location)?void 0:n.pathname,Exist:B,SAdmin:!1,UserId:_,lastappPurchase:A}}),window.location.reload()):r(`${zhe}signin`,{state:{pricingData:e,AppId:iA("AppId"),PricingId:e.PricingId,PurDate:o,PaymentStatus:"S",LicenseStatus:"A",Price:e.Price,ValidityStart:d,ValidityEnd:p,PackName:null==e?void 0:e.Status,purchasedAmt:f,differenceDays:L,AppExpDate:D,locationpathname:null==(i=window.location)?void 0:i.pathname,Exist:A}})}),[o]),Fe=()=>{r(`${zhe}landing-page/home`),window.location.reload()},Be=()=>{r(`${zhe}signin`),window.location.reload()},Pe=a.useCallback(((e,t,n)=>{var i,a;if(nA("AppId",I),nA("Addon","Y"),_){if(!t>0)return w("Please purchase a plan first before buying an addon."),void x("warning");r(`${zhe}invoice-detail`,{state:{pricingData:[],PackName:[],purchasedAmt:f,differenceDays:t,AppExpDate:n,locationpathname:null==(a=window.location)?void 0:a.pathname,Exist:n,SAdmin:!1,UserId:_,lastappPurchase:A,AddonPurchase:!0,addonData:e}}),window.location.reload()}else r(`${zhe}signin`,{state:{AppId:iA("AppId"),PricingId:l.PricingId,PurDate:"",PaymentStatus:"S",LicenseStatus:"A",Price:l.Price,purchasedAmt:f,locationpathname:null==(i=window.location)?void 0:i.pathname,SAdmin:!1,AddonPurchase:!0,addonData:e}})}),[_,f]),ke=a.useCallback((()=>{w(null),x(null)}),[]);if(S)return Ye.jsx(Che,{});return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(bU,{title:ae.metaTitle||"Pricing - Retail ERP & POS Plans | POZO",description:ae.metaDescription||"Simple plans for MSMEs. Fast billing, inventory, GST e-invoice, weighing-scale integration, WhatsApp e-bills & multi-store controls. Book a demo.",keywords:ae.keywords||"pricing, POS software pricing, retail ERP plans, billing software pricing, inventory management pricing, GST billing plans",url:`${zhe}pricing`,image:ae.imageAltText||"/og/pricing-og.jpg",type:"website",customJsonLd:[{"@context":"https://schema.org","@type":"SoftwareApplication",name:"POZO",applicationCategory:"BusinessApplication",operatingSystem:"Web",url:"https://www.pozo.app/pricing",offers:{"@type":"Offer",priceCurrency:"INR",availability:"https://schema.org/InStock"},featureList:["Fast POS billing","Inventory & purchase","GST e-invoice","Weighing-scale integration","WhatsApp e-bill","Multi-store ERP"]},{"@context":"https://schema.org","@type":"WebPage","@id":"https://www.pozo.app/pricing",name:"Pricing — Retail ERP & POS Plans | POZO",description:"Simple plans for MSMEs with POS billing, inventory, GST e-invoice & multi-store controls."},{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://www.pozo.app/"},{"@type":"ListItem",position:2,name:"Pricing",item:"https://www.pozo.app/pricing"}]}]}),Ye.jsxs("div",{className:"PricingPozoApp-Master",children:[Ye.jsx(Qy,{messageType:y,messageData:b,onComplete:ke}),Ye.jsx(XAe,{isScrolled:Y,forceTopZero:!0,AppCategory:Q,closingIndustry:X,setClosingIndustry:J,industry:G,setIndustry:$,companyRef:ie,closingCompany:te,setClosingCompany:ne,company:Z,setCompany:ee}),Ye.jsxs("div",{className:"PricingPozoAppMain",children:[Ye.jsxs("div",{className:"PricingPozoAppTitle",children:[Ye.jsxs("div",{children:["We have crafted a plan ",Ye.jsx("br",{})," just for you!"]}),Ye.jsxs("p",{children:["Flexible pricing for every stage of growth"," ",Ye.jsx("span",{onClick:()=>Ne(freePlan),children:"Try it Free 14 days trial"})]})]}),Ye.jsxs("div",{className:"userReview",children:[Ye.jsx("img",{src:"/assets/userIMG-505960af.webp",alt:""}),Ye.jsxs("div",{children:[Ye.jsxs("p",{children:[" ",Ye.jsx(aD,{})," ",Ye.jsx(aD,{})," ",Ye.jsx(aD,{})," ",Ye.jsx(aD,{})," ",Ye.jsx(aD,{})," ","4.5"]}),Ye.jsx("p",{children:"from our customers"})]})]}),Ye.jsxs("div",{className:"indusrtyDivsSearch",children:[Ye.jsx(WO,{className:"searchIcon",size:22}),Ye.jsx("input",{type:"search",placeholder:" ",value:O,onChange:e=>M(e.target.value)}),Ye.jsx("p",{className:"animatedPlaceholder",children:"Search industries..."})]}),Ye.jsxs("div",{className:"indusrtyDivs",children:[Ye.jsx(yE,{onClick:()=>oe("left"),style:{cursor:"pointer"}}),Ye.jsx("div",{className:"industiresPricingTab",ref:R,children:le.map(((e,t)=>Ye.jsx("p",{className:I==e.AppId?"active":"",onClick:()=>{F(null==e?void 0:e.AppId),g(null==e?void 0:e.AppName)},children:e.AppName},e.AppId||t)))}),Ye.jsx(xE,{onClick:()=>oe("right"),style:{cursor:"pointer"}})]}),Ye.jsxs("div",{className:"pricingSection",children:[Ye.jsx("div",{className:"planTabs",children:Ye.jsxs("div",{className:"tabGroup",children:[Ye.jsx("button",{className:"tab "+("M"===u?"active":""),onClick:()=>je("M"),children:"Monthly Plan"}),Ye.jsx("button",{className:"tab "+("Y"===u?"active":""),onClick:()=>je("Y"),children:"Yearly Plan"}),Ye.jsx("span",{className:"saveBadge",children:"Save 17%"}),Ye.jsx("div",{className:"saveArrow",children:Ye.jsx("img",{src:"/assets/LeftArrow-72cce6f5.webp",alt:""})})]})}),Ye.jsxs("div",{className:"pricingCards",children:[ce&&Ye.jsx("div",{className:"pricingscrolBTN",onClick:()=>fe?ge("left"):pe("left"),children:Ye.jsx(yE,{})}),Ye.jsx("div",{className:"pricingCardsContainer",ref:de,children:null==(i=[...l])?void 0:i.map(((e,t)=>{var n,i,a,r,s,l,d,c,p,A;return Ye.jsxs("div",{className:`pricingCard ${"PREMIUM"===(null==(n=e.PricingName)?void 0:n.toUpperCase())&&"rightside"} ${(null==e?void 0:e.PriceTagName)?"popular":""}`,style:{display:fe?t===Ae?"block":"none":"block"},children:["FREE"!==(null==(i=null==e?void 0:e.PricingName)?void 0:i.toUpperCase())&&Ye.jsx("div",{className:"popularTag",children:null==e?void 0:e.PriceTagName}),Ye.jsx("div",{className:"planName",children:(null==e?void 0:e.PricingName)||""}),Ye.jsxs("div",{className:"price",children:[Ye.jsxs("span",{className:"amount",children:["₹",null==e?void 0:e.DisplayPrice]}),Ye.jsxs("span",{className:"period",children:["/"," ","M"===u?"month billed monthly":"month billed annually"]})]}),Ye.jsx("button",{className:"planButton "+("FREE"!==(null==(a=e.PricingName)?void 0:a.toUpperCase())||"Already Used"!==e.Status&&!se?"red":"gray"),disabled:"FREE"===(null==(r=e.PricingName)?void 0:r.toUpperCase())&&("Already Used"===e.Status||se),style:{cursor:"FREE"!==(null==(s=e.PricingName)?void 0:s.toUpperCase())||"Already Used"!==e.Status&&!se?"pointer":"not-allowed"},onClick:()=>{var t,n,i,a;"FREE"===(null==(t=e.PricingName)?void 0:t.toUpperCase())?Ne(e):Ie(e,(null==(n=null==D?void 0:D[0])?void 0:n.RemainingDays)>0?"Extend Pack"===e.Status?"Extend Pack":"Extend Pack"===(null==(i=null==o?void 0:o[0])?void 0:i.Status)?(null==e?void 0:e.DisplayPrice)<(null==(a=null==o?void 0:o[0])?void 0:a.DisplayPrice)?"Switch":"Upgrade":"Switch":"Extend Pack"===e.Status?"Extend Pack":"Get Started Now")},children:"FREE"!==(null==(l=e.PricingName)?void 0:l.toUpperCase())||"Already Used"!==e.Status&&!se?(null==(d=null==D?void 0:D[0])?void 0:d.RemainingDays)>0?"Extend Pack"===e.Status?"Extend Pack":"Extend Pack"===(null==(c=null==o?void 0:o[0])?void 0:c.Status)?(null==e?void 0:e.DisplayPrice)<(null==(p=null==o?void 0:o[0])?void 0:p.DisplayPrice)?"Switch":`Upgrade to ${null==e?void 0:e.PricingName}`:"Switch":"Extend Pack"===e.Status?"Extend Pack":"Get Started Now":"Already Used"}),(null==(A=null==e?void 0:e.FeatureDetails)?void 0:A.length)>0&&Ye.jsxs("div",{className:"features",children:[Ye.jsx("h4",{children:"FEATURES"}),Ye.jsx("ul",{children:null==e?void 0:e.FeatureDetails.map(((e,t)=>Ye.jsxs("li",{children:[Ye.jsx(LD,{className:"checkIcon"}),null==e?void 0:e.FeatConstraint," "," ",null==e?void 0:e.FeatName]},t)))})]})]},t)}))}),ce&&Ye.jsx("div",{className:"pricingscrolBTN",onClick:()=>fe?ge("right"):pe("right"),children:Ye.jsx(xE,{})})]})]}),fe&&Ye.jsxs("div",{className:"cardCounter",children:[Ae+1," / ",l.length]})]}),Ye.jsxs("div",{className:"addonsSection",children:[(null==E?void 0:E.length)>0||(null==T?void 0:T.length)>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{className:"addonsHeader",children:[Ye.jsx("h2",{children:"Add-ons & Upgrades"}),Ye.jsx("p",{children:"Extra features you can add to your plan for a better experience."})]}),Ye.jsx("div",{className:"planTabs",children:Ye.jsxs("div",{className:"tabGroup",children:[Ye.jsx("button",{className:"tab "+("monthly"===d?"active":""),onClick:()=>c("monthly"),children:"Monthly Plan"}),Ye.jsx("button",{className:"tab "+("yearly"===d?"active":""),onClick:()=>c("yearly"),children:"Yearly Plan"}),Ye.jsx("span",{className:"saveBadge",children:"Save 17%"})]})})]}),(null==T?void 0:T.length)>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("div",{className:"addonCards",children:null==T?void 0:T.map(((e,t)=>Ye.jsxs("div",{className:"addonCard",children:[Ye.jsxs("div",{className:"addonCardMain",children:[Ye.jsxs("div",{children:[Ye.jsxs("div",{className:"addonPrice",children:[Ye.jsx("h4",{children:e.FeatName}),Ye.jsxs("span",{className:"amount",children:["₹","monthly"===d?e.MonthlyNetPrice:e.YearlyNetPrice]}),Ye.jsxs("span",{className:"originalPrice",children:["₹","monthly"===d?(1.17*e.MonthlyNetPrice).toFixed(2):(1.17*e.YearlyNetPrice).toFixed(2)]})]}),Ye.jsx("p",{children:null==e?void 0:e.FeatDescription})]}),Ye.jsx("div",{className:"addonIcon",children:(null==e?void 0:e.FeatIcon)?Ye.jsx("img",{src:e.FeatIcon,alt:e.FeatName||"addon icon",style:{width:"60px",height:"60px",objectFit:"contain"}}):null})]}),Ye.jsx("button",{className:"buyButton",onClick:()=>Pe(e,k,B),children:"BUY NOW"})]},t)))}),Ye.jsx("br",{})," ",Ye.jsx("br",{})]}),(null==E?void 0:E.length)>0&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("div",{style:{position:"absolute",marginTop:"2rem",fontSize:"2.5vw",fontWeight:"500"},children:"Package"}),Ye.jsx("div",{className:"addonCards",style:{paddingTop:"6rem",borderTop:"1px solid #e1e1e1",display:"flex"},children:null==E?void 0:E.map(((e,t)=>Ye.jsxs("div",{className:"addonCard",style:{width:"250px"},children:[Ye.jsxs("div",{className:"addonCardMain",children:[Ye.jsxs("div",{children:[Ye.jsxs("div",{className:"addonPrice",children:[Ye.jsx("h4",{children:e.FeatName}),Ye.jsxs("span",{className:"amount",children:["₹",null==e?void 0:e.YearlyNetPrice]}),Ye.jsxs("span",{className:"originalPrice",children:["₹",(1.17*(null==e?void 0:e.YearlyNetPrice)).toFixed(2)]})]}),Ye.jsx("p",{children:e.FeatDescription})]}),Ye.jsx("div",{className:"addonIcon",children:(null==e?void 0:e.FeatIcon)?Ye.jsx("img",{src:e.FeatIcon,alt:e.FeatName||"addon icon",style:{width:"80px",height:"60px",objectFit:"contain"}}):null})]}),Ye.jsx("button",{className:"buyButton",children:"BUY NOW"})]},t)))})]})]}),Ye.jsxs("div",{className:"liveFooterMain",children:[Ye.jsxs("div",{className:"liveFooterLeft",children:[Ye.jsx("p",{className:"listTitle",children:"Quick Links"}),Ye.jsxs("div",{className:"LiveFooterList",children:[Ye.jsx("p",{children:"About Pozo"}),Ye.jsx("p",{children:"All Products "}),Ye.jsx("p",{children:"Pricing Plans "}),Ye.jsx("p",{children:"Contact Us "}),Ye.jsx("p",{children:"FAQs "})]})]}),Ye.jsxs("div",{className:"liveFooterRight",children:[Ye.jsx("p",{className:"listTitle",children:"Support & Help"}),Ye.jsxs("div",{className:"LiveFooterList",children:[Ye.jsx("p",{children:"info@pozo.app"}),Ye.jsx("p",{children:"73 24 00 00 11"}),Ye.jsx("p",{children:"73 24 00 00 12"})," ",Ye.jsxs("span",{children:["Let's get social",Ye.jsx(cg,{}),Ye.jsx(pE,{}),Ye.jsx(ug,{}),Ye.jsx(_m,{})]})]})]})]}),Ye.jsxs("div",{className:"liveFooterRights",children:[Ye.jsxs("div",{children:["© 2025 PozoApp ",Ye.jsx("span",{children:"Privacy Policy Cookie Policy"})]}),Ye.jsx("p",{children:"For queries contact us: Manager, No 51 Step Colony, Dharga,Hosur, Krishnagiri, Tamilnadu-635126, India"})]}),G&&Ye.jsx(KAe,{closingIndustry:X,AppCategory:Q,redirectApp:(e,t)=>{nA("AppId",t),nA("AppName",e),F(t),g(e),G&&(G?(J(!0),setTimeout((()=>{$(!1),J(!1)}),200)):$(!0))}}),Z&&Ye.jsx(Ohe,{companyRef:ie,closingCompany:te}),q&&Ye.jsx("div",{className:"backToTop",onClick:()=>{V?V.scrollTo(0,{duration:1.5}):window.scrollTo({top:0,behavior:"smooth"})},children:Ye.jsx(tv,{})})]})]})},access:"Public"},{path:`${Ofe}live-Session`,component:()=>{const[e,t]=a.useState(!0),[n,i]=a.useState(!1);return a.useEffect((()=>{const e=setTimeout((()=>{t(!1)}),500);return()=>clearTimeout(e)}),[]),a.useEffect((()=>{const e=new Cre({duration:1.2,easing:e=>Math.min(1,1.001-Math.pow(2,-10*e)),smoothWheel:!0,smoothTouch:!0});return e.on("scroll",(e=>{i(e.scroll>50)})),requestAnimationFrame((function t(n){e.raf(n),requestAnimationFrame(t)})),()=>e.destroy()}),[]),e?Ye.jsx(Che,{}):Ye.jsxs("div",{className:"LiveSession-Master",children:[Ye.jsx(XAe,{isScrolled:n,forceTopZero:!0}),Ye.jsxs("div",{className:"LiveSession",children:[Ye.jsxs("div",{className:"ls-left",children:[Ye.jsxs("h1",{className:"ls-title",style:{display:"flex"},children:[Ye.jsx("div",{className:"RocketImg",children:Ye.jsx("img",{src:"data:image/webp;base64,UklGRtINAABXRUJQVlA4WAoAAAAQAAAAXAAAXQAAQUxQSF4EAAABoIZt29lIu5POTsb2rG3btm3btm3btm3bNgdrj6fbPB9mm7fPu/wXEROAv7+K5pUkXeYc2bOk9rX7sSiuQfmaDFt16PKD0NevQu4cnVZW+3HYZ+u69VE8WR/Ry/7H4FK33bHXcWT8Y8EfgWOexRHxJHaYJl/SRaEkfKeXbDlXRpINryWTSgkY/tpMtrybWia3Zvd1su3dNPIoGbaaydY3UkjjPTCCbH8qWJaC+6KJ4ToPOXwbhurEcZQmhd+COOLZTJFAzXEhmnh+KwL+9uVuE9dXySVo84bYnvBkZxoWS2wt0+y4OcyIJ75RNcHcd5aZGL8IZmY/K444bwFv91lm4hzdhpfWJ4pYX0/OK/Mz4j1EYVX0vs5sGDgnv0fMz+Vm5NHpMTH/nAJ8A1bFEnPLGLBVM90l9o+TsdE6hhB7cweFiZJ05hvifyApePq0ukcSRpeD8JQ9qxdIHejh6uaVNFfd2bciScY5mjDPzfrX8PvXzp4+c/FOSDTJGZ4MwgdGkvSf20C01j+a5J+piUrULorkv5wegtW6n0j+zzkVUQVekfyxgyA6xSuSP36ySZT/TvoBHgyAYO9l9AO8lgWie8T9AEIyQ3TNNyT/05IQ7Xab5A9voIhynUPyf61pB9GNo+QLr6FCdLIrJP3DiipEq0vMxsxfI2LMeiyfB3kUCM8VR8YX1qjeou/4MVz0r50VCPc8RIbNSwEgUOvA5HUdd4hXascau5EaQMlzKw/xeNpZgw0DD5PhqFoA0r0gpg/zmWDLfmZjax2ASmHE8+tYT9jU7zElaNG/9zw7kP4G8Yxo4grblnn/LuTC9tm9Gg2eu3zd1t0Hj19qCiDjAx7xAxXY2D13Ci87WKmoJgAwzeaxyQFSBm2LZXEjEyQ0pep/j1h+a6pIoLS+ZiaeF33AP0f3COLaX2Fnqn8vjrjGpQb76u9IuOXxWyMPVHZOG0n8htynjGwBd63KfXEn4LbTyExu6ogPurBbhZBokZGxnJycgWwfSPitXIDHZiOjOE3fkwJdLcJu5QFMHT8aGcfI7tnnkoGPSPDdLn5Qkm63kNH5jFCydqEDJDiquQrXFhfJ+DZOSHWGBFvGuCHX8ggSeEPhkzdXY4sg/ZADcI+EfvXkU7F0bxJ8IQ2A+0Ji5ybioypDBIWUB4CrIp71dARjbY2gnqb/HRMQVkIFX5f2YbqYfU74/w5joTnBufB7Ehp9MAgJrjWin8oO1jleCbnYyAsJLzRgOVAEvN13C2mM70/SrTJvcgdzr8MiTrpb0TrGmvfdTOAeeMGQ/vZEbljZNt6Ka/U0sG8RY2hzRXdYO+Lbd/QLaRSwd9hLVm+rU78QDC6hhN8MdIKE3hesCNnXxi1LZwcj2xI6U9gJMgZc+d7RtBrs9l7xMXKaiPTng70hZ8aHRLpO9G1vEABUyguj94n0FVkUSNr61c56mdMVqJpPg1g11HyqJqRV9zVwhm3ntveDvKbc9rCxo4pfUlZQOCBOCQAAECgAnQEqXQBeAD5RIIxEI6IhGAwFxDgFBLYEOADHpKFaPgH+N8zan/0z8EfkrxNVAeWPyR/u/QP6h/zx7An6gdKX9pvUV+zP7Pe8d/gPU9/bfUF/nn+K6yP0Ef2x9Wj/gfuN8Ff7bfs78BX66/+f2APQA4Un+q7dvhk9Iyie4LCbw78F+AF7B38OFOmGmi+Pf6b9gT+Zf2f0pPXH+7HsF/r0385/lRwFazQ4GAnqyKXgkv5NQB4Fs7PV59AbUBqkE/UkxVWWh31Juz3awT4pEqrtBO1Hh0wEUWMEYQDKi0KdLY3Ry/O1Yv0BVRrtVfnlWYCtwX/yIKTPdh+SmrA6DFWsp9Fbj4bsQLYd63KUmd/QGgh0LQgQ0lFmne3l9R1Vcskqn4dPG6NLHXIgKA3Zmb6RXTGn49Td/kdlmvvO7PXV1jmDjPRilZAA/vHGggv4KS2Zp9/gu3KwOw/ZmnUtP+pJgIAXU/fOJv/evkf9LQkGzQpU7EiJZrnROe0ryYtRh7bFsjuRNPTLONhyv/nWfXezDnQ+MRWTsny1eqLlwR3nv7jvnts1NmVqdy6MBY3/G41V6itW7xDzYPBe0WUZFyaJdW5eBSJHFmmdfKlokTcBXQHytvACSG14AZDzh9mlyB56538tpNfqgtY8MqEi7XRNgBnY8aXD3rOy82yCTIfBnCa81A3+oEf9dt1MgsPISsQmDRkVuVO7wh2MxFptgMcYVf7wmv8FDpfwFaSrujvJmq9SRXQK/+3v9nqVsh129SBzbaxPAvKyXzhAGf+udb6qfy3icfJaEuQNPB1VuKwLzub2OvmZ9aTk5M8wObNdqzi6aIIwV6Gu7Kocr80K8yslOq8NDEafqpUnP57DUJxIvY88WmZGhexeppsnoywqVTOTAj/xrUdnLoAGdkq9CwD6hNEc5LVy/8o7O0uBU+8Q6H9/LnlJiOLnBfdf4SeqUjoyhofqW/qz+N1hH44UdqcAXcJjvBBTXDgrEx5ldFALabdWyFVoNs8Xf/7GnLxieLY1hUJfp3bGEKIZRMstABK2GOsU3Yl572GCvY8aBL2/cv/n7tL8AwnSbR84P7HGwb7mOTRS2e8wSK37Twf8AMscqyF1h5Y9PgYnsASQVn6Dv35YZFfJixdY2yIkXmsRS24AIEciwPIEiXWUB2SoE0w55PiLoMV3faQZtNybbuGHNbBO87ijirTH+I7zhVyY0WVMiRbwoGdNcwjPd+6Te8SEXs23TN9/61dX4mt1hFT8bHxIgAKjvC53PbL14cRA+zjBm6DdAci3TL7Nv9hp5tKWyHDhR/ge4O1eOpaNfa3dRwuofIMDMpIpPxc+5zmg8lP4atfpgULvzkYBSH2apkdsdgXMzOmr1oPI4EdM3728t/ppof74jVP9bnFCJri8+vrZD/4NAvORYWof150zX/lbcy15WWrj5ZZn6J5PLXMJYEejOd9dSuUi/N991lJxTFxBGjnMpQB0/Pz9MLEEb6xqFttHIA8vAXuzyk3/C6rjnRsyzOp7kK1+ofi6k59nzy052goZvaD+75BjTKx7YIo6GtPQM51/qSybSHT3RnhsuTnqE8V38byPYAHzzoOT9ShzewydyJUUrPKoOel+byGDECta244IRsuguAA05/N7vi1kFWz2iuY9LUrBVpTEnEYLmW2ICS+6DgXMuDDa9KGZzX3OL5r58R/SclSvFFZSwn1Cl507/jB675jtoio/GKzQ/w0UYnA6I/ao0zuZ28LB4fbPJd9x9Lx+ArFN5nPlA+aigDzV22jid+iES2EmbcYDt12+P6XcGhnZcd3O3y/PTfvZ/akSlL2gfqc5k0g/dOkchcYyuvc42ohhNkhXkQ5bnK3tLPitvZIzLeFtt5XiOMtJd+nfHLb+2mIGgn1X1s1bnsttu1flyU7XZ5FX6iu6squWzZNV1G0JFKqzRNl05BVMlELM8HvkY/3oQXmITz64z/fKyUiGItN7kBhQ+NKYfoOVU5RyiU80TtzTPisceJRzGdsHIFGtFRnZpFMl5J3TXXgSTleeP614u0OgARWE1ARxtlSL6PLcLkLZCM8+VYbfK/hcnGzXu2H5VuBwdvE9Id7Ipn4pHgkWfZbWdpxzNZc313axCj9Y39+pwutOREz0ja+5KuObbCMdFKkJOaMPcYki5+gPfnm9vDdt5R26+/Hlfdo4hs4sk0MbLycGtuQ8Cw1v+nqfPpIJpoceWdaOmDRs1qZ5wgiETmhG2d5DphTJ275+MIJlfSdBUARHFaBhqsJ4U/6R/sY0XezSsJDXVG3dR2+t/HCdTszCtKEan/jzRCVVXKtItnlnWEp2hv18cvOUpsXH5TeSaDnea4mYaQPulKZOrR1QLSp/EZd2+JAEz/M81a76G4u12HTCWhLZhALy7mB7V3eGeGp7EONgz+WZ1jGh2dCYRQsUDY66bcLYEQrwu7fDtwupmGK9YDmMrtZ2RQZkNzGjlNqo3DsG8nLAGAdCo2y1dFfrz9A0yD3W7HdHNXV6kny6jEfVJ5uecNdBUb3Y+bvw1dcW8HF8FYsLyS1/7nF25a4csqdcGVYB+Hw8mLeGaANbLDq7Vj2RezuDwp21S/S6wsEONAf3cYCghqnzlI/QshKxXKsPO78kd56RV8YKYJAjRZnqunhm704PcPXBLr65NVAyEa4pP1FHAqNdKE+1dRX2BZeWGTuLhdWs0CprJ9YuIwvEYH/e2sv4koJ8NnSQ2ch5D8B/990hGH82FaoWAAC49tv+b3tZr9aRnxlP4u5udfmD42mDIJ/eW9q/x4XkrqleLHn/xRCc+MFCs3j2K+F8sR3D0LlFGrfwzXH5LPSvwd/mB+di17Ab5mFT1+aWixPSxqWe4E6m7J07V5ajq2eCEMHIWsUNrH7ERWKikNbop/H++68q/qSkny6YdU5ukyMsxR9180RvA3AYGBv2BBGJEKNQ1wmcVxOC9Eudf85kgzl9nN9hi7/28ctnugsbr1Fz7leB9dNUUacsrhqsd+kifQS+EYmOJkM+qCVGniLbF6lumjbSzOKZkwDOPOREriB8fVM/Pph8EnLU+y4FxlgrJK2W6xtE75njzjoH87U1OJOOjEI/O7FtFlS3fXpdKZ//kMf/yA3//j0M1WKqkuT+jRiEsc1UMpT5/3X/gbPBLvcn8aq4w0O0OBgAAAAA",alt:""})}),"Live Session – ",Ye.jsx("br",{})," No Cost to Join!"]}),Ye.jsxs("p",{className:"ls-sub",children:["Join us for an exclusive, interactive ",Ye.jsx("br",{}),"experience – absolutely free!"]}),Ye.jsxs("button",{className:"register-btn",children:["Register Now",Ye.jsxs("div",{className:"icon-container",children:[Ye.jsx(IO,{className:"icon-main"}),Ye.jsx(IO,{className:"icon-hover"})]})]}),Ye.jsxs("div",{className:"info-grid",children:[Ye.jsxs("div",{className:"info-box",children:[Ye.jsx("img",{src:"data:image/webp;base64,UklGRs4EAABXRUJQVlA4WAoAAAAQAAAATQAATQAAQUxQSHwBAAABkFZrT11NrwQkRAISkFAHgwQcFAetA46D8zlAQiVEQiRkLr1Bstb8jYgJwPCYy9Za79+2lSXCckjbIfpQ+paMpC76srQ0XVhFh3KmmcIqOpxXmiWsolNyniOxTss0waZTr6Po0Mm/NCSyTs80YBE1yPG1X2pT4kuLWpX4ShQzyvQCsRrm8IzV9PfRqsbLg6TWhe6xOe23VnUw3yD1UMJVc0HrBamPEs6aE1rO2It+ktXN9M/Xjx1AUD8FwOKIRqB5UoDDkx8E9VSQXNGw+BKrL/njS/36sndf2v/Ux5fqTfUlZ19S9CUEVxg4PPkBdk8KkDyJQBA/GAC6H+2f5Ef8J4gXjNPqRT4L4gPjsvqQr4J4wLhZPch3AtvruJ3MCd3Dbq3gabfV8JjYEodniGKHCW8mM0x4NxuRiLejWGDC+8TzMWEkHbN9AgbXqaRgPPE8nTBl4TkkY1baZZzUgIkp85ijBMyePvKW7Ak2097lifSaYDqmUttpzQthOFZQOCAsAwAAMA8AnQEqTgBOAD5RHoxEI6GhGtrUADgFBKAMReAT9PJJwH+4eozbLeYDzqvR/vCvoAdKZ/jfOMeO3CP/crsEwf8bP0h7BJrCJX1y3AMehzb2feL42zWEHCK1ffCqPQHgDKjvEMYb8Iy7mWHvP3PChU90KX34uXpIlHwJHdT/qGy1wAD++T///8k3//yRH//8h/xl7bagH/9gjgks8qkuNVng84qFEcppqk4jMGXXRqIYx/3gwp7i9N8KhET/7BHKmi7ppPTbVRr75WhVPk63s8XjfUofOo0WZbB4Fq8UefdC8MQqAjVKgj+CzSAaBf/OcBnmr2Q+tHdtbe/9XBK+h5OMeBfJBjzbrH2Wn+M2szpNSIaVJ/ZrX+3VDTt5Q+WhOH+rtddVxeMRGleZYfQxnBWwJRMR3FPlLlVt0IrWJiA9ij6wKbtMZKdTKXVV/CC5fiBjRbxRTO65ITvGC4t11k264aWQVB0hf8VPLWXgfVc5SjNDVpwyAR68Va377EOvADt5I+DZes4fRSJ6OG3Pi8BUmXix/5ktT4W4so4pV0yAwKneTuYXBM2x14EFP7mcIoVK6Eu3ixkdiFZ8uX6jbXWNfE9Qtu7wlooZLtmPlKJJgF7dgpn7mU0lj53kpM0ZmgN1MZD2L0iqM56t0MtfrHgYDJ/TrdOjpmDhHHdXcS3VsfmOZa5m83mDAxq2eRlEnG4kEsad7a7tPI/B+CQLcgqS3ytPMDUb9FKPeV/7dM0TuLJHGEOS1gokHzyl4fDTnC6QH0K2qrJZC5z1tLFeEK9hJvsfenbm+1/0JPJ2egSlz/EO4A3EymtrBfoT2bmBlToCMfxiTsmsG3eaQxga5OhNXR4IDpcHgtAH2qUoPHPFGWRdFkht9YikrkHvhKLsz3E0AO2YPof4+V3xXdtz+lrW8YhIpGNi35gBx/WoaT8Zis7x5PN64PYZm1N3mubTagvhoFjdhKIIFrRLBxQEBLY3UU/eoavYD/9ZAN97m6juWc41MURDNmGsWUOIqABJvBBngLyCf6b4Zwk9/Nz6ynzPjzr/9tsf/+QPf/4/w//+Pgu5JRjXvQNSAAA=",alt:""}),Ye.jsx("h4",{children:"Date & Time"}),Ye.jsx("p",{children:"Nov 2, 2025 | 01:00 PM"})]}),Ye.jsxs("div",{className:"info-box",children:[Ye.jsx("img",{src:"data:image/webp;base64,UklGRlgEAABXRUJQVlA4WAoAAAAQAAAATQAATQAAQUxQSHQBAAABkFZbT55ZjwQcTCRUQiRUAg4GB8XB1AF18F4HSKiESEBC5hMoyVr3b0RMAJ4OW8ylvGotJScmWA6xiI62mjYbIVWdLYWW44+mj9a4FFd9XuIyoeiasq/x3nTZQs9R1ZVlf4pFFz+eedf1X+GBQy0KTTvUptCkQ61KmHKo3TtM2NVyGSMxpWlI1Pg2cKh1CV2k9nPXywGljqge1g5xQfmPqD7WP6oTyr9s6uX5S3GjhR/ihjIAVj8LgNORBuB2RBlBPU1gVwqSK4LLFUX15e32hZsvu/oa/6fEF/bm5cvb5QuSKzfYlX8IriTg9oSB05EGgB0pAND82H+cbgh+shvlF1Qv6Dd2ouDP6gP9xS4UdFYPqIeavYzuZE4wWK3RCDVbGcNs6sTEZOjG1GxGwhxkI0KYnU3cAfOTgSvgSZLVMh6maylhPB9lnTNgRboWqYxV6Vrg3rEyXe2Zylg9xDpNMsFk2M97SEoimN72lMvPM8ct4HFWUDggvgIAANAOAJ0BKk4ATgA+USKPRaOhoRH6rgA4BQSgDGehBd/oiUega23XmA/WP1qv5n1AHSI+gB5Zn7FfBD+zP7XfAJ/IP7dqzvQA6QYs1m+eif96UxJgtObrL3e71aFWGYIf7Im4u71gDGI5CHc9+vKylZc89EkBlimlH6roODcxpqAA/vUg//+Q+//5Cu//+OtKtU6TBEP7Li6YYfhdBp7+8HO/bqiXDt/JU/8X1//5A9//kK7//5BIvQwDudEIWns0vzTPUFCaXAjAznpThBfz8Xfui5hpybTI6oRRoUm5IoBrzqHoyccOsAO33hrsb7i3T1rIwwJ7jdQWVRRYVWQZ3xt2Tx5SrBXwq7Qrgc48v9sBVueZkMvcG7/5HC+xAVmKwMztw9Sz+qnYVHZwIRnuzOYVBoUeJizMbNSsae0p8RTN9edaJLwZJR20/1y1//NHo5bMIXb4H9AZzMpbOXpr+lO6Hx13K8Ts8TWI9Eup83P4T6YeVIQ5qO+f/YBrXWXd6ObIwxOgGaOE93sLNiRJ9x+g6mAZOAIIy39c8h+d8tc/l0dYtcRMenxRvYfy8NiTtGI42jwsl0zvw/qI8KnfII39rVUamJEDMacu/gvsfniHMtOyj57vDT5GvUk37B/aUT3ZwUQng80+AHoFvB/6z5idfjmJd1maKi/FIMYp7sQJuKGF2u83B+3yn8t7RWPvG4vwonNjUp/y9/wdKuUltAUWFnpvYvr4fi1G/blp5hvaObaWmT3bI7Q5TwH05PfU/iaIYHPGdmA5BFtoPu9SKnG4AbeLteKJ2J/NlL8tv1cOk8TU9VN/tnk1MhttjAMvkQ1QwGi6z/agiRAFQL2k8PpvhrK8nfUe5pdY7mHUyo3D4szX8n/+VivH8DwZwlw+S85poZ/oovclscM+MoQCn/+36M//7fmUxZkZXOsyAA==",alt:""}),Ye.jsx("h4",{children:"Speaker"}),Ye.jsx("p",{children:"John Doe, Marketing Head"})]}),Ye.jsxs("div",{className:"info-box",children:[Ye.jsx("img",{src:"data:image/webp;base64,UklGRngEAABXRUJQVlA4WAoAAAAQAAAATQAATQAAQUxQSHQBAAABkFZbT55ZjwQcTCRUQiRUAg4GB8XB1AF18F4HSKiESEBC5hMoyVr3b0RMAJ4OW8ylvGotJScmWA6xiI62mjYbIVWdLYWW44+mj9a4FFd9XuIyoeiasq/x3nTZQs9R1ZVlf4pFFz+eedf1X+GBQy0KTTvUptCkQ61KmHKo3TtM2NVyGSMxpWlI1Pg2cKh1CV2k9nPXywGljqge1g5xQfmPqD7WP6oTyr9s6uX5S3GjhR/ihjIAVj8LgNORBuB2RBlBPU1gVwqSK4LLFUX15e32hZsvu/oa/6fEF/bm5cvb5QuSKzfYlX8IriTg9oSB05EGgB0pAND82H+cbgh+shvlF1Qv6Dd2ouDP6gP9xS4UdFYPqIeavYzuZE4wWK3RCDVbGcNs6sTEZOjG1GxGwhxkI0KYnU3cAfOTgSvgSZLVMh6maylhPB9lnTNgRboWqYxV6Vrg3rEyXe2Zylg9xDpNMsFk2M97SEoimN72lMvPM8ct4HFWUDgg3gIAALAPAJ0BKk4ATgA+USSORaOiIRH6rgA4BQSgDJDhw+v6AOhK7H9ft3PEA/Zn3iukA/qP+x6wD0APLM9iD9rP20+AD9g9W2hBlAwwUyLxR/TPsDeTN7By/FSQ80FUWwqZnNo+Q6N8xJaakGdUGnoY8LV1dejGFmirnrEXSnSVbSfQEiB0/SgAAP70Sf//m/v/+bu///l2aVQeGmLBi9+0+s0APgLdDpL4gjuf//ycNoL9kpB1DZeklEVzrCaZHH9T+dfPhs7fzdOkvdjz0ccFTukXLwOhMiBqq5cpGrvYHI941S+pQc7UM106D5urnitfjRyvxP/S8JrfPPIkD77/Jw9nH//OY/whQ65Az/aSJdXtWIols04h7wzRjs7uiGss6gOX05oM/osSECmZP5wV9zrkUbt+UR2TxbrgQXhXWTyfDaaNdFBGkeX1Ivoe5n5LUX/pWTllzgfcFR05c9G18ZEzf/Ee83hnurtesccSnU97leTOg6vJn/xKDntrgh9FVxfLpx+JCNSd4iTcbxfC2ST/8etiubhZk28+LRBd4wMZ6q82b4iL0JNFLriITtWzjrzQ0LmXGpP4LfrG6yYD3w/cyO8us+NVRJ/msriKOI5unr8qRoQyJV/PFydghrVFaUxw8R8Tp4h6kJ5n9Y4UIBVCG8+orkuxQ/y4EhQ/3d4hvJuD653fWKAwqIO/QUm3oaB15bd/e5ILGm0Q95T/HMlz+mqwa5IljtkqvsqR/6sQvyU30/eIkTnP5ZK9JvKjWzg2SvEdgEV2uW/lSMgnfBAgxVSXWVAq2EQrugcHUrhxn58qW8I7XvXtF+STlLVSgN1zuYRnk1xcyPm9s7Lr4Rp/yEPYib5YV0uP89NZ+dHr7zi9coJk/YKH+YmuBUWHQfOXDBOJROjatAbwqqXNE5l73/9ZKvXaEI51X8Yqv9UcZV94CEgumP/teX//zQr//M6H//zLs5Hr3QqEcAAA",alt:""}),Ye.jsx("h4",{children:"Platform"}),Ye.jsx("p",{children:"Zoom"})]})]}),Ye.jsxs("div",{className:"agenda-wrap",children:[Ye.jsxs("div",{children:[Ye.jsx("h3",{children:"Agenda"}),Ye.jsxs("div",{children:[Ye.jsxs("p",{children:[" ",Ye.jsx(JD,{})," Introduction to [Product/Feature]"]}),Ye.jsxs("p",{children:[Ye.jsx(JD,{})," Live Demo & Use Cases"]}),Ye.jsxs("p",{children:[" ",Ye.jsx(JD,{})," Q&A with Experts"]}),Ye.jsxs("p",{children:[" ",Ye.jsx(JD,{})," Sneak Peek into Upcoming Features"]})]})]}),Ye.jsxs("div",{children:[Ye.jsx("h3",{children:"Why Join?"}),Ye.jsx("div",{children:Ye.jsxs("p",{children:[" ",Ye.jsx(JD,{})," No Cost – 100% Free"]})})]})]}),Ye.jsx("p",{className:"limited",children:"# Limited seats available — secure yours now!"})]}),Ye.jsx("div",{className:"ls-right",children:Ye.jsx("img",{src:"/assets/ContactUsBG-955729c5.webp",alt:"live session preview"})})]}),Ye.jsxs("div",{className:"liveFooterMain",children:[Ye.jsxs("div",{className:"liveFooterLeft",children:[Ye.jsx("p",{className:"listTitle",children:"Quick Links"}),Ye.jsxs("div",{className:"LiveFooterList",children:[Ye.jsx("p",{children:"About Pozo"}),Ye.jsx("p",{children:"All Products "}),Ye.jsx("p",{children:"Pricing Plans "}),Ye.jsx("p",{children:"Contact Us "}),Ye.jsx("p",{children:"FAQs "})]})]}),Ye.jsxs("div",{className:"liveFooterRight",children:[Ye.jsx("p",{className:"listTitle",children:"Support & Help"}),Ye.jsxs("div",{className:"LiveFooterList",children:[Ye.jsx("p",{children:"info@pozo.app"}),Ye.jsx("p",{children:"73 24 00 00 11"}),Ye.jsx("p",{children:"73 24 00 00 12"})," ",Ye.jsxs("span",{children:["Let's get social",Ye.jsx(cg,{}),Ye.jsx(pE,{}),Ye.jsx(ug,{}),Ye.jsx(hE,{})]})]})]})]}),Ye.jsxs("div",{className:"liveFooterRights",children:[Ye.jsxs("div",{children:["© 2025 PozoApp ",Ye.jsx("span",{children:"Privacy Policy Cookie Policy"})]}),Ye.jsx("p",{children:"For queries contact us: Manager, No 51 Step Colony, Dharga,Hosur, Krishnagiri, Tamilnadu-635126, India"})]})]})},access:"Public"},{path:`${Ofe}contact-us`,component:()=>{const e=um(),t=Qt(),[n,i]=a.useState(!0),[r,s]=a.useState(!1),[l,o]=a.useState(!1),[d,c]=a.useState(!1),u=a.useRef(null),[p,A]=a.useState(!1),[h,f]=a.useState(!1),m=a.useRef(null),[v,g]=a.useState(!1),[y,x]=a.useState(!1),b=a.useRef(null),[w,j]=a.useState([]),[C,S]=a.useState({}),[N,I]=a.useState(!1),F=()=>I(!1);a.useEffect((()=>{const e=setTimeout((()=>{i(!1)}),300);return B(),()=>clearTimeout(e)}),[]),a.useEffect((()=>{(async()=>{var t,n,i,a,r,s,l;try{const o=await e(HP({TypeName:"SEO"})).unwrap();if(1===(null==(t=null==o?void 0:o.data)?void 0:t.statusCode)){const t=null==(a=null==(i=null==(n=null==o?void 0:o.data)?void 0:n.data)?void 0:i.find((e=>"contact"===e.ConfigName)))?void 0:a.ConfigId;if(!t)return;const d=await e(CU({PageId:t})).unwrap();if(1===(null==(r=null==d?void 0:d.data)?void 0:r.statusCode)&&(null==(l=null==(s=null==d?void 0:d.data)?void 0:s.data)?void 0:l.length)>0){const e=d.data.data[0];S({metaTitle:null==e?void 0:e.MetaTitle,metaDescription:null==e?void 0:e.MetaDesc,keywords:null==e?void 0:e.Keywords,imageAltText:null==e?void 0:e.ImgAltText})}}}catch(o){}})()}),[e]),a.useEffect((()=>{const e=new Cre({duration:1.2,easing:e=>Math.min(1,1.001-Math.pow(2,-10*e)),smoothWheel:!0,smoothTouch:!0});return e.on("scroll",(e=>{s(e.scroll>50)})),requestAnimationFrame((function t(n){e.raf(n),requestAnimationFrame(t)})),()=>e.destroy()}),[]);const B=async()=>{var t,n,i;try{const a=await e(dL()).unwrap();if(1===(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)){let e=null==(i=null==(n=null==a?void 0:a.data)?void 0:n.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));j(e)}}catch(a){}};if(a.useEffect((()=>(document.body.style.overflow=l||p||v?"hidden":"unset",()=>{document.body.style.overflow="unset"})),[l,p,v]),n)return Ye.jsx(Che,{});const P=[{img:"data:image/webp;base64,UklGRs4EAABXRUJQVlA4WAoAAAAQAAAATQAATQAAQUxQSHwBAAABkFZrT11NrwQkRAISkFAHgwQcFAetA46D8zlAQiVEQiRkLr1Bstb8jYgJwPCYy9Za79+2lSXCckjbIfpQ+paMpC76srQ0XVhFh3KmmcIqOpxXmiWsolNyniOxTss0waZTr6Po0Mm/NCSyTs80YBE1yPG1X2pT4kuLWpX4ShQzyvQCsRrm8IzV9PfRqsbLg6TWhe6xOe23VnUw3yD1UMJVc0HrBamPEs6aE1rO2It+ktXN9M/Xjx1AUD8FwOKIRqB5UoDDkx8E9VSQXNGw+BKrL/njS/36sndf2v/Ux5fqTfUlZ19S9CUEVxg4PPkBdk8KkDyJQBA/GAC6H+2f5Ef8J4gXjNPqRT4L4gPjsvqQr4J4wLhZPch3AtvruJ3MCd3Dbq3gabfV8JjYEodniGKHCW8mM0x4NxuRiLejWGDC+8TzMWEkHbN9AgbXqaRgPPE8nTBl4TkkY1baZZzUgIkp85ijBMyePvKW7Ak2097lifSaYDqmUttpzQthOFZQOCAsAwAAMA8AnQEqTgBOAD5RHoxEI6GhGtrUADgFBKAMReAT9PJJwH+4eozbLeYDzqvR/vCvoAdKZ/jfOMeO3CP/crsEwf8bP0h7BJrCJX1y3AMehzb2feL42zWEHCK1ffCqPQHgDKjvEMYb8Iy7mWHvP3PChU90KX34uXpIlHwJHdT/qGy1wAD++T///8k3//yRH//8h/xl7bagH/9gjgks8qkuNVng84qFEcppqk4jMGXXRqIYx/3gwp7i9N8KhET/7BHKmi7ppPTbVRr75WhVPk63s8XjfUofOo0WZbB4Fq8UefdC8MQqAjVKgj+CzSAaBf/OcBnmr2Q+tHdtbe/9XBK+h5OMeBfJBjzbrH2Wn+M2szpNSIaVJ/ZrX+3VDTt5Q+WhOH+rtddVxeMRGleZYfQxnBWwJRMR3FPlLlVt0IrWJiA9ij6wKbtMZKdTKXVV/CC5fiBjRbxRTO65ITvGC4t11k264aWQVB0hf8VPLWXgfVc5SjNDVpwyAR68Va377EOvADt5I+DZes4fRSJ6OG3Pi8BUmXix/5ktT4W4so4pV0yAwKneTuYXBM2x14EFP7mcIoVK6Eu3ixkdiFZ8uX6jbXWNfE9Qtu7wlooZLtmPlKJJgF7dgpn7mU0lj53kpM0ZmgN1MZD2L0iqM56t0MtfrHgYDJ/TrdOjpmDhHHdXcS3VsfmOZa5m83mDAxq2eRlEnG4kEsad7a7tPI/B+CQLcgqS3ytPMDUb9FKPeV/7dM0TuLJHGEOS1gokHzyl4fDTnC6QH0K2qrJZC5z1tLFeEK9hJvsfenbm+1/0JPJ2egSlz/EO4A3EymtrBfoT2bmBlToCMfxiTsmsG3eaQxga5OhNXR4IDpcHgtAH2qUoPHPFGWRdFkht9YikrkHvhKLsz3E0AO2YPof4+V3xXdtz+lrW8YhIpGNi35gBx/WoaT8Zis7x5PN64PYZm1N3mubTagvhoFjdhKIIFrRLBxQEBLY3UU/eoavYD/9ZAN97m6juWc41MURDNmGsWUOIqABJvBBngLyCf6b4Zwk9/Nz6ynzPjzr/9tsf/+QPf/4/w//+Pgu5JRjXvQNSAAA=",title:"Technical Support",desc:"Nov 2, 20205 | 01:00 PM"},{img:"data:image/webp;base64,UklGRlgEAABXRUJQVlA4WAoAAAAQAAAATQAATQAAQUxQSHQBAAABkFZbT55ZjwQcTCRUQiRUAg4GB8XB1AF18F4HSKiESEBC5hMoyVr3b0RMAJ4OW8ylvGotJScmWA6xiI62mjYbIVWdLYWW44+mj9a4FFd9XuIyoeiasq/x3nTZQs9R1ZVlf4pFFz+eedf1X+GBQy0KTTvUptCkQ61KmHKo3TtM2NVyGSMxpWlI1Pg2cKh1CV2k9nPXywGljqge1g5xQfmPqD7WP6oTyr9s6uX5S3GjhR/ihjIAVj8LgNORBuB2RBlBPU1gVwqSK4LLFUX15e32hZsvu/oa/6fEF/bm5cvb5QuSKzfYlX8IriTg9oSB05EGgB0pAND82H+cbgh+shvlF1Qv6Dd2ouDP6gP9xS4UdFYPqIeavYzuZE4wWK3RCDVbGcNs6sTEZOjG1GxGwhxkI0KYnU3cAfOTgSvgSZLVMh6maylhPB9lnTNgRboWqYxV6Vrg3rEyXe2Zylg9xDpNMsFk2M97SEoimN72lMvPM8ct4HFWUDggvgIAANAOAJ0BKk4ATgA+USKPRaOhoRH6rgA4BQSgDGehBd/oiUega23XmA/WP1qv5n1AHSI+gB5Zn7FfBD+zP7XfAJ/IP7dqzvQA6QYs1m+eif96UxJgtObrL3e71aFWGYIf7Im4u71gDGI5CHc9+vKylZc89EkBlimlH6roODcxpqAA/vUg//+Q+//5Cu//+OtKtU6TBEP7Li6YYfhdBp7+8HO/bqiXDt/JU/8X1//5A9//kK7//5BIvQwDudEIWns0vzTPUFCaXAjAznpThBfz8Xfui5hpybTI6oRRoUm5IoBrzqHoyccOsAO33hrsb7i3T1rIwwJ7jdQWVRRYVWQZ3xt2Tx5SrBXwq7Qrgc48v9sBVueZkMvcG7/5HC+xAVmKwMztw9Sz+qnYVHZwIRnuzOYVBoUeJizMbNSsae0p8RTN9edaJLwZJR20/1y1//NHo5bMIXb4H9AZzMpbOXpr+lO6Hx13K8Ts8TWI9Eup83P4T6YeVIQ5qO+f/YBrXWXd6ObIwxOgGaOE93sLNiRJ9x+g6mAZOAIIy39c8h+d8tc/l0dYtcRMenxRvYfy8NiTtGI42jwsl0zvw/qI8KnfII39rVUamJEDMacu/gvsfniHMtOyj57vDT5GvUk37B/aUT3ZwUQng80+AHoFvB/6z5idfjmJd1maKi/FIMYp7sQJuKGF2u83B+3yn8t7RWPvG4vwonNjUp/y9/wdKuUltAUWFnpvYvr4fi1G/blp5hvaObaWmT3bI7Q5TwH05PfU/iaIYHPGdmA5BFtoPu9SKnG4AbeLteKJ2J/NlL8tv1cOk8TU9VN/tnk1MhttjAMvkQ1QwGi6z/agiRAFQL2k8PpvhrK8nfUe5pdY7mHUyo3D4szX8n/+VivH8DwZwlw+S85poZ/oovclscM+MoQCn/+36M//7fmUxZkZXOsyAA==",title:"Product Enquiry",desc:"John Doe, Makerting Head"},{img:"data:image/webp;base64,UklGRngEAABXRUJQVlA4WAoAAAAQAAAATQAATQAAQUxQSHQBAAABkFZbT55ZjwQcTCRUQiRUAg4GB8XB1AF18F4HSKiESEBC5hMoyVr3b0RMAJ4OW8ylvGotJScmWA6xiI62mjYbIVWdLYWW44+mj9a4FFd9XuIyoeiasq/x3nTZQs9R1ZVlf4pFFz+eedf1X+GBQy0KTTvUptCkQ61KmHKo3TtM2NVyGSMxpWlI1Pg2cKh1CV2k9nPXywGljqge1g5xQfmPqD7WP6oTyr9s6uX5S3GjhR/ihjIAVj8LgNORBuB2RBlBPU1gVwqSK4LLFUX15e32hZsvu/oa/6fEF/bm5cvb5QuSKzfYlX8IriTg9oSB05EGgB0pAND82H+cbgh+shvlF1Qv6Dd2ouDP6gP9xS4UdFYPqIeavYzuZE4wWK3RCDVbGcNs6sTEZOjG1GxGwhxkI0KYnU3cAfOTgSvgSZLVMh6maylhPB9lnTNgRboWqYxV6Vrg3rEyXe2Zylg9xDpNMsFk2M97SEoimN72lMvPM8ct4HFWUDgg3gIAALAPAJ0BKk4ATgA+USSORaOiIRH6rgA4BQSgDJDhw+v6AOhK7H9ft3PEA/Zn3iukA/qP+x6wD0APLM9iD9rP20+AD9g9W2hBlAwwUyLxR/TPsDeTN7By/FSQ80FUWwqZnNo+Q6N8xJaakGdUGnoY8LV1dejGFmirnrEXSnSVbSfQEiB0/SgAAP70Sf//m/v/+bu///l2aVQeGmLBi9+0+s0APgLdDpL4gjuf//ycNoL9kpB1DZeklEVzrCaZHH9T+dfPhs7fzdOkvdjz0ccFTukXLwOhMiBqq5cpGrvYHI941S+pQc7UM106D5urnitfjRyvxP/S8JrfPPIkD77/Jw9nH//OY/whQ65Az/aSJdXtWIols04h7wzRjs7uiGss6gOX05oM/osSECmZP5wV9zrkUbt+UR2TxbrgQXhXWTyfDaaNdFBGkeX1Ivoe5n5LUX/pWTllzgfcFR05c9G18ZEzf/Ee83hnurtesccSnU97leTOg6vJn/xKDntrgh9FVxfLpx+JCNSd4iTcbxfC2ST/8etiubhZk28+LRBd4wMZ6q82b4iL0JNFLriITtWzjrzQ0LmXGpP4LfrG6yYD3w/cyO8us+NVRJ/msriKOI5unr8qRoQyJV/PFydghrVFaUxw8R8Tp4h6kJ5n9Y4UIBVCG8+orkuxQ/y4EhQ/3d4hvJuD653fWKAwqIO/QUm3oaB15bd/e5ILGm0Q95T/HMlz+mqwa5IljtkqvsqR/6sQvyU30/eIkTnP5ZK9JvKjWzg2SvEdgEV2uW/lSMgnfBAgxVSXWVAq2EQrugcHUrhxn58qW8I7XvXtF+STlLVSgN1zuYRnk1xcyPm9s7Lr4Rp/yEPYib5YV0uP89NZ+dHr7zi9coJk/YKH+YmuBUWHQfOXDBOJROjatAbwqqXNE5l73/9ZKvXaEI51X8Yqv9UcZV94CEgumP/teX//zQr//M6H//zLs5Hr3QqEcAAA",title:"Demo",desc:"Zoom"}];if(n)return Ye.jsx(Che,{});return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(bU,{title:C.metaTitle||"Contact PozoApp | Get Support & Assistance",description:C.metaDescription||"Reach out to PozoApp for queries, support, and assistance. We're here to help you with POS solutions and SaaS services.",keywords:C.keywords||"contact PozoApp, POS support, SaaS help, customer service",url:`${Vhe}contact-us`,image:C.imageAltText||"../../../public/og/contact-og.jpg",type:"website"}),Ye.jsxs("div",{className:"ContactUs-Master",children:[Ye.jsx(XAe,{isScrolled:r,forceTopZero:!0,AppCategory:w,industryRef:u,closingIndustry:d,setClosingIndustry:c,industry:l,setIndustry:o,companyRef:m,closingCompany:h,setClosingCompany:f,company:p,setCompany:A,solutionsOpen:v,setSolutionsOpen:g,closingSolutions:y,setClosingSolutions:x,solutionsRef:b,demoModal:N,handleDemoModal:()=>I(!0),handleDemoModalClose:F}),Ye.jsxs("div",{className:"contactHeader",children:[Ye.jsx("div",{className:"HeaderContactLeft",children:Ye.jsxs("div",{children:["We’d love to hear ",Ye.jsx("br",{}),"from you. Let’s ",Ye.jsx("br",{}),"connect."]})}),Ye.jsxs("div",{className:"HeaderContactRight",children:[Ye.jsxs("div",{className:"contactType",children:[Ye.jsx("label",{htmlFor:"Quick Connect",children:"Quick Connect"}),Ye.jsxs("div",{onClick:()=>window.open("https://wa.me/917324000014","_blank"),style:{cursor:"pointer"},children:[Ye.jsx("img",{src:"data:image/webp;base64,UklGRhoGAABXRUJQVlA4WAoAAAAQAAAAPgAAPwAAQUxQSEYAAAABb2CQbeTYP8HX4BcRMZTbD8Agkq02jw4yQA9WmgRMpidy2hOQmYj+TwASV2Bc3IKZdKmd5S92+L85WH5iyU7KQEzfStwCVlA4IK4FAAAQHACdASo/AEAAPlEmjkWjoiETBOw4BQS2AFcqxuovQ77N+KvsqV5+5cbafjsc/Y/bd2gPEz6RnmA/Wz9YOwB6AH9V/uHWM+gB+zvpofuB8HH7bfuR7Ov/s0zlQDlr38HiN+xP4/QEf5V9y/5HeoB3HuVf9Fxods5xm/jn6S+rX/e+mV/tf4Tzp/NX/S9wb+R/2H/Tf27s4eiB+uqsVS90wGmK8YYsRbsZJdkzSxvMez8bYx22Lkj48z8DkDIGQDUNCvhFbJBhW2oIVbOmGc6gIXNV6yE4ZSZ9WsZ55R1iw/XaGQmbEij4yAD+7fV86v82tAt8uq3BiHIjPrSKlAwn8bGRKrmpgHIf0T/nXjshES4tjL0f82tezP2sPjX1Ef6aB/TFgoj5XwZJJfquYUqM5kCJKtPulv69cvY/lXVZ+Pm+MbH+OwG9X/Vc8qxpe4TZyzBolPvEyIaktipju/Tr+m4Sw+2Hjf+MDOE4G2Ta2zRFpqqfcyv+GGpJgqNqMlabmb5y+7J0vx/B7YY6B9pbqhP8Y0BuhmLLk9ytBw8MvKHioapOi2A3lyYnV1etFxp9JRJbv9HN3/wH1hFQuz/JrQBPAHXQHj8lpk6Gi/3og9NZqim2Y3iYZY+m0XF6F91KPgW8C5u/ClKSS+BUgVN3UXhJLPfqA+RoNLleozGgMFS44gF1vPUdR5e38m1WZ5wJ7IlePMZl61h9boxVPlOr5iAT4DM7uFlmf/BcQemLBGt2X/w1ldlfcmjHpkOt/IN+FgWyn62zzATJAB9eFURMkZvc2LbBnvBmCWbCMvLw/A52daLYdJ7e/4AM2z7M6JZQ/VQh2PLV0kfitZo0Wvpn1RVMossN+kDUQ1/CWjTCLpC/ZN1wF3A5KhS7wzAPAOr4oww8TJokFGakMxHkjVOycfJXLLV1KxTJnYaP5d3p5RPbPiFCJGITnRNcVIJoXqpDgM1sqAmLz4gDK9+vxau31oSD2+BlPmVbasMYwNsOOXeJn6h5MK1es09TMjFqwZj8bnUp1I5pAvJw4XxrLCG8WSF1YtWosNqvhpgpuZImoT62zMWM+bzBGM0GSi5OPNF3d3Hkq5kg90abenrBzq35nAIuMGOCul0r52Ixc33TyHP4lB/XU5AVfpq3H0HAw0pV7dPfZuEDxbkp8rC3qD9VqSDE2pbQG6zMLrpoirE2/tHVTufo8OedCvg0e94qYmPXgUnbQhtF2VtzGuA7Xpmr2E0MUFX3knSPnrpDNSRncW1CyvmKIPvhGKmyFNRHyE2UTHo32ZJZ6w7+7Nj50mFv9L7a+vvaCKL7n5W+T57XNeX8pghdJdHbtm25Xdw2ysxzbk0/RuvVVRBhl3y1oH8yYyTTgdjG4IqKjqobdMhxhYApGO5y2lgBHbPbSUgplH9LPO0dyUNe+k7JF8J6S33pqNNsl0vnhZuYTcYHdPWA7POzXVa6AY55ldtweXALRUJUnfQUwm3MlQ2x45Fk5rLLsFD4N9697yofiofW0YZfk9z9h1OJ9Jyk0802TsX8s0BajWelyj02Q28U3yePvaF7axXgzxwq9yubeopsiI9YX1Q7D3EveVFo7/LLY9OBYOcHhJHhBxdk3DqhsQq/kr8qIigl/omXYYhYHVZkPsrn2SCX4jnYh621il2Bcrz43qnj3ilMP0nGL6yRkcYRbIHL2k0B9Lks8ezKuw+8+hYkjpqbCHouDk3moKf5eUrfPnJhH4G1J5Ud37YKUbRgR5igICvr/ZF2qzBb+a9+IxJpVrdNCRWL6BiiljeOQxCjf05nGoHsoRHNcX/n52wVkJEhJ1V7i1GSWdcwgHIMchxxOSIK4q04rC4fKXmEm69uIsf/l6RnLBWFQfb3+HhaJb8Ba6O+O03wlZfuNTt1YRnM0/64PnGKSXz8Jmoeo8Z3KZ50scFBxOB+WgiK9AAAAA==",alt:""}),"+91 7324000012"]}),Ye.jsx("span",{children:"Whatsapp available only monday to friday 10am-7pm "})]}),Ye.jsxs("div",{className:"contactType",children:[Ye.jsx("p",{children:"Tollfree - Make Call "}),Ye.jsxs("div",{onClick:()=>window.open("tel:+917324000011"),style:{cursor:"pointer"},children:[Ye.jsx("img",{src:"data:image/webp;base64,UklGRrwEAABXRUJQVlA4WAoAAAAQAAAAOQAAOQAAQUxQSDoAAAABL0CQbZsbwlCGcKNHRDBvUBPJVjOgIPdZwpfwBQTwb4fXU0T0fwKC3ffs9SLrgdD94huEBbLbAZADVlA4IFwEAABwFgCdASo6ADoAPlEejESjoaEZ+NaoOAUEtgBdnMDtnw8+0/h3+QHQVcIeIfxP509APV/+t+4DtAeYB+j3SA8wH7Xfrd2FvQA/aLrHPQg8sz2LP2f/ZH2hv//mmc233994O07uzg9eYT5TX+r5Mvn3/pe4H+q//J9Tn2LfqT7G/60kHE/TUXn4j6jIWSGBEApOqCG6zgYzVUDz7bNmRFV/KPLW5cLdMsHhhLFDX3jlUsTy8F8XCjXXPPYX7AD+f+OnQj/qOsLevmoclixdM8V+nvL4M7SCKWSRYlKvpz5alf1G0Xr8mTIfvaH/ciN1h+W6d09rYzLvt/15zemy1Vzhb6EpHDB4mOCkckTaOYTYJYozOMHkMIUEmEOLXH/+7fN2OwnH1sCMkCsVsc5DkwdRHEFOygMINOplno0KqduBQ2xrN0Zy4EO4AgpacCunFup2LEDb84iSM55Bfs1jzZeP9njZbTC9BYnmlF21tg/7Pubk32ep+kg8GU+KKObkOdevQjVVMEwwfRWxQzbtfee+1H/4mUBsRHfoJ3+OxULuvhoiDd/l3b7zjt3J4hAN0qnkq8TmFHy/98hr/qE0RSYbsiMGF4I/qcWKH31EYNJuBj3La1mhj1+q472iz1Cm58FuHjW7vAx9HlcgW6mwlEwJgJvuREZmy6p1vdgrgQCUHAzDetBnVWknlmqm8tgjvgjDPauYQEZ9R31imcjYkzHmPqm8SXlBj9JZc/VV7QHe22tTBDJkbeWKPfULKhhonaLQ35fXkS2uWFuGcJBkbd93+rr3/Jz25kfgm1vB3TemhXe2NVtmWaxdc3bXSg/H8B/jX5oNxLH+CLOKTTdcwxDYwv2/svE+wJ4cUKd7iQFMFIeuD0zF8i4NKPBkq8t23JkMCkX1pdecGZaLoPducfJSh1lDBIFCQFSq13SjWwoHE925x8lJ8z3pKYZFoYkAEF/Ew/qY18Rr8AG7Ugf5xqBFyCtet7xhOXzZth47j0oyAGuOaODjZUK4McsQzz/Gbzu5TAnnNVbXblnTgkWyZeBEWpAotnNufIKIFBPZqxllX60flTGRjMbLPInUYhVGenjzFv9uQFi7bdyEid9icCz7vdanLuWSGfphz2GqoPlvR2JwJBQN6cvJ+W3zUZ+ab/ivz6rzg3r2iaHOgOXZOXA/AdTBU+Rtgtz7FeJXdHama05E8s287rokIHq/ILvt3dR6p8XsXmrTIFayBB1NP/5vGLBxH9B734scxdJPTpylCALUcwz3EqcW9RyUG0oDLoLcVfIpnC1C8/773/E6iHE9c8QoIuHe/4laWeVPcaCr+rGhQJiAW9jncLnG/JWWwx4EMsasZwAlqgQTN78SDPut2nxIACgath2OgCv/14psQyFrebrFqK7c5mMsLhBHjtqNvY4szcZoYCN5y2LHnFB3/7C5FeIJz+5Fpro+eikz9Nq/+uMxXJWeWKEPJ7ip7U5jkRXteJ6OEQNQAAA=",alt:""}),"+91 7324000011"]})]})]})]}),Ye.jsx("div",{className:"ContactUsCardMain",children:P.map(((e,t)=>Ye.jsxs("div",{className:"ContactUsCards",children:[Ye.jsx("img",{src:e.img,alt:e.title}),Ye.jsx("div",{children:e.title}),Ye.jsx("p",{children:e.desc})]},t)))}),Ye.jsxs("div",{className:"MoreInfoContactForm",children:[Ye.jsxs("div",{className:"MoreInfoDiv",children:[Ye.jsx("span",{children:"More Info"}),Ye.jsxs("div",{children:[Ye.jsx(WD,{color:"#F6A333"})," Email: support@pozo.in"]}),Ye.jsxs("div",{children:[Ye.jsx(zO,{color:"#000"})," Phone: +91 12345 67890"]}),Ye.jsxs("div",{children:[Ye.jsx(jE,{color:"#FF5555"})," Address: PozoApp, Hosur, Krishnagiri, Tamilnadu"," "]}),Ye.jsxs("div",{children:[Ye.jsx(ay,{color:"#0077D8"})," Working Hours: Mon–Fri, 10 AM – 6 PM"]})]}),Ye.jsxs("div",{className:"ContactFormDiv",children:[Ye.jsx("span",{children:"Contact Form"}),Ye.jsxs("div",{className:"contactmindInput",children:[Ye.jsx("label",{htmlFor:"Name",children:"Name"}),Ye.jsx("input",{type:"text",placeholder:"Enter Name"})]}),Ye.jsxs("div",{className:"contactmindInput",children:[Ye.jsx("label",{htmlFor:"Email",children:"Email"}),Ye.jsx("input",{type:"text",placeholder:"Enter Email"})]}),Ye.jsxs("div",{className:"contactmindInput",children:[Ye.jsx("label",{htmlFor:"Message",children:"Message"}),Ye.jsx("input",{type:"text",placeholder:"Enter Message"})]}),Ye.jsxs("button",{className:"contactmindBTN",children:[Ye.jsx("div",{}),"Submit",Ye.jsxs("div",{className:"icon-container",children:[Ye.jsx(eg,{className:"icon-main"}),Ye.jsx(eg,{className:"icon-hover"})]})]})]})]}),Ye.jsx("div",{className:"LimitesContact",children:"# Limited seats available — secure yours now!"}),Ye.jsxs("div",{className:"liveFooterMain",children:[Ye.jsxs("div",{className:"liveFooterLeft",children:[Ye.jsx("p",{className:"listTitle",children:"Quick Links"}),Ye.jsxs("div",{className:"LiveFooterList",children:[Ye.jsx("p",{children:"About Pozo"}),Ye.jsx("p",{children:"All Products "}),Ye.jsx("p",{children:"Pricing Plans "}),Ye.jsx("p",{children:"Contact Us "}),Ye.jsx("p",{onClick:()=>{t(`${Vhe}faq`)},children:"FAQs "})]})]}),Ye.jsxs("div",{className:"liveFooterRight",children:[Ye.jsx("p",{className:"listTitle",children:"Support & Help"}),Ye.jsxs("div",{className:"LiveFooterList",children:[Ye.jsx("p",{children:"info@pozo.app"}),Ye.jsx("a",{href:"tel:7324000011",children:"73 24 00 00 11"}),Ye.jsx("a",{href:"tel:7324000012",children:"73 24 00 00 12"})," ",Ye.jsxs("span",{children:["Let's get social",Ye.jsx("a",{href:"https://www.instagram.com/pozomind/",target:"_blank",rel:"noopener noreferrer",children:Ye.jsx(tL,{size:18})}),Ye.jsx("a",{href:"https://www.facebook.com/pozomind/",target:"_blank",rel:"noopener noreferrer",children:Ye.jsx(pE,{})}),Ye.jsx("a",{href:"https://x.com/pozomind",target:"_blank",rel:"noopener noreferrer",children:Ye.jsx(ug,{})}),Ye.jsx("a",{href:"https://www.youtube.com/@pozomind",target:"_blank",rel:"noopener noreferrer",children:Ye.jsx(hE,{})})]})]})]})]}),Ye.jsxs("div",{className:"liveFooterRights",children:[Ye.jsxs("div",{children:["© 2025 PozoApp",Ye.jsx("div",{className:"linktoPrivayCookie",onClick:()=>{t(`${Vhe}privacy-policy`)},children:"Privacy Policy"}),Ye.jsx("div",{className:"linktoPrivayCookie",onClick:()=>{t(`${Vhe}cookie-policy`)},children:"Cookie Policy"})]}),Ye.jsx("p",{children:"For queries contact us: Manager, No 51 Step Colony, Dharga,Hosur, Krishnagiri, Tamilnadu-635126, India"})]}),l&&Ye.jsx(KAe,{closingIndustry:d,AppCategory:w,redirectApp:(e,n)=>{nA("AppId",n),nA("AppName",e),l&&(l?(c(!0),setTimeout((()=>{o(!1),c(!1)}),200)):o(!0));const i=e.replace(/[,]/g,"").replace(/\s+/g,"-").replace(/&/g,"and").replace(/[^a-z0-9-]/gi,"").toLowerCase();t(`${Vhe}${i}`),window.location.reload()}}),p&&Ye.jsx(Ohe,{companyRef:m,closingCompany:h}),v&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(Hhe,{solutionsRef:b,closingSolutions:y})}),N&&Ye.jsx(Rhe,{onClose:F})]})]})},access:"Public"},{path:`${Ofe}solutions`,component:()=>{const e=Qt(),t=a.useRef(null),n=a.useRef([]),[i,r]=a.useState(!1),[s,l]=a.useState(!1),o=a.useRef(null),d=[{id:1,title:"Retail Billing",description:"Lightning-fast billing system designed for Indian retail stores. Complete GST compliance, multiple payment modes, and instant invoice generation.",icon:Ym,path:"retail-billing",gradient:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",features:["GST Ready","Fast Billing","Multi-Payment"],image:Khe},{id:2,title:"Inventory & Purchase",description:"Intelligent inventory management with real-time stock tracking, automated reorder points, and comprehensive purchase order management.",icon:zm,path:"inventory-purchase",gradient:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",features:["Real-time Tracking","Auto Reorder","PO Management"],image:Ghe},{id:3,title:"Weighing Scale POS",description:"Seamlessly integrated weighing scale with POS system. Perfect for grocery stores, supermarkets, and retail outlets requiring weight-based billing.",icon:Rv,path:"weighing-scale-pos",gradient:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)",features:["Scale Integration","Weight-based Billing","Quick Checkout"],image:$he},{id:4,title:"Multi-Store ERP",description:"Centralized management platform for multiple store locations. Real-time synchronization, unified reporting, and comprehensive analytics.",icon:Ev,path:"multi-store-erp",gradient:"linear-gradient(135deg, #43e97b 0%, #38f9d7 100%)",features:["Multi-Location","Unified Dashboard","Real-time Sync"],image:Xhe},{id:5,title:"GST Billing & E-Invoice",description:"Fully compliant GST billing system with automated e-invoice generation. IRN integration, GSTR filing, and complete tax compliance.",icon:Av,path:"gst-billing-e-invoice",gradient:"linear-gradient(135deg, #fa709a 0%, #fee140 100%)",features:["E-Invoice Ready","IRN Integration","GSTR Filing"],image:Jhe},{id:6,title:"Offline Billing",description:"Continue operations seamlessly even without internet connectivity. Local data storage with automatic sync when connection is restored.",icon:Qv,path:"offline-billing",gradient:"linear-gradient(135deg, #30cfd0 0%, #330867 100%)",features:["Offline Mode","Auto Sync","Data Backup"],image:Zhe}];a.useEffect((()=>(t.current&&kce.fromTo(t.current.children,{opacity:0,y:30},{opacity:1,y:0,duration:1,stagger:.2,ease:"power3.out"}),n.current.forEach(((e,t)=>{e&&kce.fromTo(e,{opacity:0,y:50,scale:.9},{opacity:1,y:0,scale:1,duration:.8,delay:.1*t,ease:"back.out(1.7)",scrollTrigger:{trigger:e,start:"top 85%",toggleActions:"play none none reverse"}})})),()=>{_Ae.getAll().forEach((e=>e.kill()))})),[]);return Ye.jsxs("div",{className:"solutions-page",children:[Ye.jsx(XAe,{isScrolled:!0,forceTopZero:!0,solutionsOpen:i,setSolutionsOpen:r,closingSolutions:s,setClosingSolutions:l,solutionsRef:o}),Ye.jsxs("section",{className:"solutions-hero",ref:t,children:[Ye.jsxs("div",{className:"solutions-hero-background",children:[Ye.jsx("div",{className:"gradient-orb orb-1"}),Ye.jsx("div",{className:"gradient-orb orb-2"})]}),Ye.jsxs("div",{className:"solutions-hero-content",children:[Ye.jsx("div",{className:"hero-badge",children:Ye.jsx("span",{children:"Solutions"})}),Ye.jsxs("h1",{className:"hero-title",children:["Powerful Solutions for",Ye.jsx("span",{className:"gradient-text",children:" Modern Retail"})]}),Ye.jsx("p",{className:"hero-description",children:"Comprehensive retail management platform built specifically for Indian MSMEs. Streamline operations, reduce costs, and scale your business with confidence."})]})]}),Ye.jsx("section",{className:"solutions-grid-section",children:Ye.jsx("div",{className:"solutions-container",children:Ye.jsx("div",{className:"solutions-grid",children:d.map(((t,i)=>{const a=t.icon;return Ye.jsx("div",{ref:e=>n.current[i]=e,className:"solution-card",onClick:()=>{return n=t.path,void e(`/solutions/${n}`);var n},children:Ye.jsxs("div",{className:"card-content",children:[Ye.jsx("div",{className:"card-image",children:Ye.jsx("img",{src:t.image,alt:t.title})}),Ye.jsx("div",{className:"card-icon-wrapper",children:Ye.jsx(a,{className:"card-icon"})}),Ye.jsx("h3",{className:"card-title",children:t.title}),Ye.jsx("p",{className:"card-description",children:t.description}),Ye.jsx("div",{className:"card-footer",children:Ye.jsxs("span",{className:"card-link",children:["Learn More",Ye.jsx(DD,{className:"arrow-icon"})]})})]})},t.id)}))})})}),Ye.jsx("section",{className:"solutions-cta",children:Ye.jsxs("div",{className:"cta-content",children:[Ye.jsx("h2",{children:"Ready to Transform Your Business?"}),Ye.jsx("p",{children:"Get started with PozoApp today and experience the future of retail management"}),Ye.jsxs("div",{className:"cta-buttons",children:[Ye.jsx("button",{className:"cta-primary",onClick:()=>{e("/home/signup")},children:"Start Free Trial"}),Ye.jsx("button",{className:"cta-secondary",onClick:()=>window.open("https://wa.me/917324000014","_blank"),children:"Contact Sales"})]})]})}),i&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(efe,{solutionsRef:o,closingSolutions:s})}),Ye.jsx(Whe,{})]})},access:"Public"},{path:`${Ofe}solutions/retail-billing`,component:()=>{const e=Qt(),t=um(),n=a.useRef(null),i=a.useRef([]),[r,s]=a.useState(!1),[l,o]=a.useState(!1),d=a.useRef(null),[c,u]=a.useState(null),[p,A]=a.useState(!1),[h,f]=a.useState(!1),m=a.useRef(null),[v,g]=a.useState(!1),[y,x]=a.useState(!1),b=a.useRef(null),[w,j]=a.useState([]),C=[{icon:Fv,title:"Lightning Fast Billing",description:"Process bills in under 3 seconds with our optimized billing engine. Barcode scanning, quick item lookup, and instant calculations ensure your customers never wait."},{icon:Pv,title:"100% GST Compliant",description:"Built-in GST calculation, automated e-invoice generation with IRN, GSTR filing support, and complete tax compliance. Never worry about tax regulations again."},{icon:Cv,title:"Mobile & Cloud Ready",description:"Access your billing system from any device - desktop, tablet, or smartphone. Cloud-based architecture ensures your data is always accessible and secure."},{icon:Gm,title:"Real-time Analytics",description:"Get instant insights into sales trends, top-selling products, customer behavior, and revenue patterns. Make data-driven decisions with comprehensive reports."}];return a.useEffect((()=>{(async()=>{var e,n,i;try{const a=await t(dL()).unwrap();if(1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)){let e=null==(i=null==(n=null==a?void 0:a.data)?void 0:n.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));j(e)}}catch(a){}})()}),[]),a.useEffect((()=>{}),[w,p]),a.useEffect((()=>(n.current&&kce.fromTo(n.current.children,{opacity:0,y:30},{opacity:1,y:0,duration:1,stagger:.2,ease:"power3.out"}),i.current.forEach(((e,t)=>{e&&kce.fromTo(e,{opacity:0,x:-30},{opacity:1,x:0,duration:.8,delay:.1*t,ease:"power3.out",scrollTrigger:{trigger:e,start:"top 85%",toggleActions:"play none none reverse"}})})),()=>{_Ae.getAll().forEach((e=>e.kill()))})),[]),Ye.jsxs("div",{className:"solution-page",children:[Ye.jsx(XAe,{isScrolled:!0,forceTopZero:!0,AppCategory:w,solutionsOpen:r,setSolutionsOpen:s,closingSolutions:l,setClosingSolutions:o,solutionsRef:d,industry:p,setIndustry:A,closingIndustry:h,setClosingIndustry:f,industryRef:m,company:v,setCompany:g,closingCompany:y,setClosingCompany:x,companyRef:b}),Ye.jsxs("section",{className:"solution-hero",ref:n,children:[Ye.jsxs("div",{className:"hero-background",children:[Ye.jsx("div",{className:"gradient-orb orb-1"}),Ye.jsx("div",{className:"gradient-orb orb-2"})]}),Ye.jsxs("div",{className:"hero-content",children:[Ye.jsxs("div",{className:"hero-badge",children:[Ye.jsx(Ym,{}),Ye.jsx("span",{children:"Retail Billing Solution"})]}),Ye.jsxs("div",{className:"hero-main",children:[Ye.jsxs("div",{className:"hero-text",children:[Ye.jsxs("h1",{className:"hero-title",children:["Lightning-Fast Billing",Ye.jsx("span",{className:"gradient-text",children:" for Modern Retail"})]}),Ye.jsx("p",{className:"hero-description",children:"Transform your retail operations with our comprehensive billing solution designed specifically for Indian MSMEs. Process invoices in seconds with barcode scanning, manage multiple payment modes seamlessly (Cash, UPI, Cards, Wallets), and stay 100% GST compliant with automated e-invoice generation. From quick checkout to detailed analytics, everything you need to run a modern retail business efficiently is here. Trusted by thousands of retailers across India."}),Ye.jsxs("div",{className:"hero-cta",children:[Ye.jsxs("button",{className:"btn-primary",onClick:()=>{e("/home/signin")},children:["Start Free Trial",Ye.jsx(DD,{})]}),Ye.jsx("button",{className:"btn-secondary",onClick:()=>window.open("https://wa.me/917324000014","_blank"),children:"Book Demo"})]})]}),Ye.jsx("div",{className:"hero-image",children:Ye.jsx("div",{className:"hero-image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1556742031-c6961e8560b0?w=1200&h=800&fit=crop&q=90",alt:"Retail Billing Solution",className:"hero-product-image"})})})]})]})]}),Ye.jsx("section",{className:"solution-features",children:Ye.jsxs("div",{className:"features-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Why Choose Retail Billing?"}),Ye.jsx("p",{children:"Complete billing solution with everything you need to streamline operations, reduce errors, and grow your retail business faster. Built specifically for Indian retailers with local payment methods, regional language support, and complete GST compliance."})]}),Ye.jsx("div",{className:"features-visual",children:Ye.jsx("div",{className:"features-image",children:Ye.jsx("div",{className:"image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1556740738-b6a63e27c4df?w=1200&h=800&fit=crop&q=90",alt:"Retail Billing Features",className:"features-product-image"})})})}),Ye.jsx("div",{className:"features-grid",children:C.map(((e,t)=>{const n=e.icon;return Ye.jsxs("div",{ref:e=>i.current[t]=e,className:"feature-card",children:[Ye.jsx("div",{className:"feature-icon",children:Ye.jsx(n,{})}),Ye.jsx("h3",{children:e.title}),Ye.jsx("p",{children:e.description})]},t)}))})]})}),Ye.jsx("section",{className:"solution-benefits",children:Ye.jsxs("div",{className:"benefits-container",children:[Ye.jsx("div",{className:"benefits-visual-image",children:Ye.jsx("div",{className:"benefits-image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1556741568-055d848f8bfd?w=1200&h=800&fit=crop&q=90",alt:"Complete Feature Set",className:"benefits-product-image"})})}),Ye.jsxs("div",{className:"benefits-content",children:[Ye.jsx("h2",{children:"Complete Feature Set"}),Ye.jsx("p",{style:{fontSize:"15px",color:"rgba(255, 255, 255, 0.6)",marginBottom:"2rem",lineHeight:"1.6"},children:"Everything you need for modern retail billing, all in one platform. From basic billing to advanced inventory management, customer loyalty programs, and comprehensive reporting - we've got you covered."}),Ye.jsx("div",{className:"benefits-list",children:["Barcode & QR code scanning for instant product lookup","Multiple payment modes: Cash, Card, UPI, Wallet, Net Banking","Automated GST calculation with HSN/SAC code support","E-Invoice generation with IRN integration (GST portal)","Instant print & email invoices to customers","Customer database with purchase history tracking","Comprehensive sales reports: daily, weekly, monthly, yearly","Offline billing mode - work without internet","Multi-currency support for international transactions","Discount & tax management with custom rules","Credit note & debit note generation","Batch & expiry date tracking for inventory","Customer loyalty points & rewards system","Receipt customization with your branding"].map(((e,t)=>Ye.jsxs("div",{className:"benefit-item",children:[Ye.jsx(LD,{className:"check-icon"}),Ye.jsx("span",{children:e})]},t)))})]}),Ye.jsx("div",{className:"benefits-visual",children:Ye.jsxs("div",{className:"visual-card",children:[Ye.jsx(Ym,{className:"visual-icon"}),Ye.jsxs("div",{className:"visual-stats",children:[Ye.jsxs("div",{className:"stat",children:[Ye.jsx("div",{className:"stat-value",children:"3x"}),Ye.jsx("div",{className:"stat-label",children:"Faster Billing"})]}),Ye.jsxs("div",{className:"stat",children:[Ye.jsx("div",{className:"stat-value",children:"100%"}),Ye.jsx("div",{className:"stat-label",children:"GST Compliant"})]})]})]})})]})}),Ye.jsx("section",{className:"solution-use-cases",children:Ye.jsxs("div",{className:"use-cases-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Perfect For"}),Ye.jsx("p",{children:"Ideal solution for various retail business types and sizes"})]}),Ye.jsxs("div",{className:"use-cases-grid",children:[Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Mn,{style:{color:"#4A90E2",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Retail Stores"}),Ye.jsx("p",{children:"Small to medium retail stores selling consumer goods, electronics, clothing, and general merchandise"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(On,{style:{color:"#E74C3C",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Supermarkets"}),Ye.jsx("p",{children:"Large format stores requiring fast checkout, multiple payment options, and comprehensive inventory management"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(ei,{style:{color:"#F39C12",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Pharmacy Stores"}),Ye.jsx("p",{children:"Medical stores needing batch tracking, expiry date management, and prescription billing capabilities"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Kn,{style:{color:"#3498DB",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Electronics Shops"}),Ye.jsx("p",{children:"Electronics retailers requiring serial number tracking, warranty management, and detailed product information"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(di,{style:{color:"#E91E63",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Fashion Retail"}),Ye.jsx("p",{children:"Clothing and fashion stores needing size/color variants, customer preferences, and loyalty programs"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Hn,{style:{color:"#9B59B6",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Multi-Store Chains"}),Ye.jsx("p",{children:"Retail chains with multiple locations requiring centralized management and unified reporting"})]})]})]})}),Ye.jsx("section",{className:"solution-integrations",children:Ye.jsxs("div",{className:"integrations-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Integrations & Compatibility"}),Ye.jsx("p",{children:"Seamlessly integrate with your existing tools and hardware. Works with all major payment gateways, hardware devices, and business software."})]}),Ye.jsxs("div",{className:"integrations-grid",children:[Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(lv,{style:{color:"#FF6B6B",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Payment Gateways"}),Ye.jsx("p",{children:"Razorpay, Paytm, PhonePe, UPI, Card machines, and all major payment processors. Support for cash, card, UPI, wallets, and net banking."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(Qm,{style:{color:"#4ECDC4",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Hardware Support"}),Ye.jsx("p",{children:"Barcode scanners, receipt printers, cash drawers, customer displays, and weighing scales. Compatible with all major hardware brands."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(av,{style:{color:"#95E1D3",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Cloud Storage"}),Ye.jsx("p",{children:"Automatic backup to cloud, data sync across devices, and secure cloud storage. Access your data from anywhere, anytime."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(Gm,{style:{color:"#F38181",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Accounting Software"}),Ye.jsx("p",{children:"Export data to Tally, QuickBooks, and other accounting systems. Seamless data transfer with proper formatting."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(uv,{style:{color:"#AA96DA",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Email & SMS"}),Ye.jsx("p",{children:"Send invoices via email, SMS notifications, WhatsApp integration. Automated customer communication."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(wv,{style:{color:"#FCBAD3",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Security & Compliance"}),Ye.jsx("p",{children:"SSL encryption, GDPR compliant, data encryption at rest and in transit. Bank-level security for your business data."})]})]})]})}),Ye.jsx("section",{className:"solution-faq",children:Ye.jsxs("div",{className:"faq-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Frequently Asked Questions"}),Ye.jsx("p",{children:"Get answers to common questions about Retail Billing"})]}),Ye.jsxs("div",{className:"faq-list",children:[Ye.jsxs("div",{className:"faq-item "+(0===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(0===c?null:0),children:[Ye.jsx("h3",{children:"How fast can I process a bill?"}),Ye.jsx("span",{className:"faq-toggle",children:0===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"With barcode scanning and quick item lookup, you can process bills in under 3 seconds. The system is optimized for speed without compromising accuracy."})})]}),Ye.jsxs("div",{className:"faq-item "+(1===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(1===c?null:1),children:[Ye.jsx("h3",{children:"Is GST calculation automatic?"}),Ye.jsx("span",{className:"faq-toggle",children:1===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Yes, GST calculation is completely automatic based on HSN/SAC codes. The system supports CGST, SGST, IGST, and CESS calculations. E-invoice generation with IRN is also automated."})})]}),Ye.jsxs("div",{className:"faq-item "+(2===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(2===c?null:2),children:[Ye.jsx("h3",{children:"Can I use it offline?"}),Ye.jsx("span",{className:"faq-toggle",children:2===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Yes, PozoApp works completely offline. All billing, inventory, and customer management functions are available without internet. Data automatically syncs when connection is restored."})})]}),Ye.jsxs("div",{className:"faq-item "+(3===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(3===c?null:3),children:[Ye.jsx("h3",{children:"What payment modes are supported?"}),Ye.jsx("span",{className:"faq-toggle",children:3===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"We support Cash, Credit/Debit Cards, UPI, Mobile Wallets, Net Banking, and even credit sales. All payment modes are integrated seamlessly."})})]}),Ye.jsxs("div",{className:"faq-item "+(4===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(4===c?null:4),children:[Ye.jsx("h3",{children:"Can I customize invoices?"}),Ye.jsx("span",{className:"faq-toggle",children:4===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Yes, you can customize invoice templates with your logo, business details, terms & conditions, and branding. Print and email invoices are both supported."})})]}),Ye.jsxs("div",{className:"faq-item "+(5===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(5===c?null:5),children:[Ye.jsx("h3",{children:"How do I get started?"}),Ye.jsx("span",{className:"faq-toggle",children:5===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Sign up for a free trial, and our team will help you set up your account. Setup typically takes 24-48 hours. We also offer on-site setup support in major cities."})})]})]})]})}),Ye.jsx("section",{className:"solution-cta",children:Ye.jsxs("div",{className:"cta-content",children:[Ye.jsx("h2",{children:"Ready to Transform Your Billing?"}),Ye.jsx("p",{children:"Join thousands of retailers across India who trust PozoApp for fast, accurate, and GST-compliant billing. Start your free trial today and experience the difference. No credit card required. Setup in 24-48 hours. Dedicated support team to help you get started."}),Ye.jsxs("div",{className:"cta-buttons",children:[Ye.jsx("button",{className:"btn-primary",onClick:()=>{e("/home/signin")},children:"Get Started Free"}),Ye.jsx("button",{className:"btn-secondary",onClick:()=>window.open("https://wa.me/917324000014","_blank"),children:"Contact Sales"})]})]})}),Ye.jsx(Whe,{AppCategory:w}),p&&Ye.jsxs(a.Suspense,{fallback:Ye.jsx("div",{children:"Loading..."}),children:[void 0,Ye.jsx(tfe,{industryRef:m,closingIndustry:h,AppCategory:w,redirectApp:(t,n)=>{nA("AppId",n),nA("AppName",t);const i=t.replace(/[,]/g,"").replace(/\s+/g,"-").replace(/&/g,"and").replace(/[^a-z0-9-]/gi,"").toLowerCase();e(`/industries/${i}`),window.location.reload()}})]}),v&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(nfe,{companyRef:b,closingCompany:y})}),r&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(ife,{solutionsRef:d,closingSolutions:l})})]})},access:"Public"},{path:`${Ofe}solutions/inventory-purchase`,component:()=>{const e=Qt(),t=um(),n=a.useRef(null),i=a.useRef([]),[r,s]=a.useState(!1),[l,o]=a.useState(!1),d=a.useRef(null),[c,u]=a.useState(null),[p,A]=a.useState(!1),[h,f]=a.useState(!1),m=a.useRef(null),[v,g]=a.useState(!1),[y,x]=a.useState(!1),b=a.useRef(null),[w,j]=a.useState([]),C=[{icon:Fv,title:"Real-time Stock Tracking",description:"Monitor stock levels across all locations in real-time. Get instant updates on stock movements, transfers, and adjustments. Never lose track of your inventory. View current stock, pending orders, and stock movements instantly."},{icon:Pv,title:"Automated Reorder System",description:"Set minimum stock levels and get automatic alerts when items need reordering. Prevent stockouts and ensure you always have the right products in stock. Customizable thresholds and multi-channel notifications (email, SMS, in-app)."},{icon:Cv,title:"Mobile Inventory Management",description:"Manage your inventory from anywhere using our mobile app. Scan barcodes, update stock, create purchase orders, and track deliveries on the go. Full functionality available on iOS and Android devices."},{icon:Gm,title:"Advanced Analytics & Reports",description:"Get detailed insights into stock movement patterns, fast-moving items, slow-moving inventory, and turnover rates. Make informed purchasing decisions with ABC analysis, stock aging reports, and predictive analytics."}];return a.useEffect((()=>{(async()=>{var e,n,i;try{const a=await t(dL()).unwrap();if(1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)){let e=null==(i=null==(n=null==a?void 0:a.data)?void 0:n.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));j(e)}}catch(a){}})()}),[]),a.useEffect((()=>(n.current&&kce.fromTo(n.current.children,{opacity:0,y:30},{opacity:1,y:0,duration:1,stagger:.2,ease:"power3.out"}),i.current.forEach(((e,t)=>{e&&kce.fromTo(e,{opacity:0,x:-30},{opacity:1,x:0,duration:.8,delay:.1*t,ease:"power3.out",scrollTrigger:{trigger:e,start:"top 85%",toggleActions:"play none none reverse"}})})),()=>{_Ae.getAll().forEach((e=>e.kill()))})),[]),Ye.jsxs("div",{className:"solution-page",children:[Ye.jsx(XAe,{isScrolled:!0,forceTopZero:!0,AppCategory:w,solutionsOpen:r,setSolutionsOpen:s,closingSolutions:l,setClosingSolutions:o,solutionsRef:d,industry:p,setIndustry:A,closingIndustry:h,setClosingIndustry:f,industryRef:m,company:v,setCompany:g,closingCompany:y,setClosingCompany:x,companyRef:b}),Ye.jsxs("section",{className:"solution-hero",ref:n,children:[Ye.jsxs("div",{className:"hero-background",children:[Ye.jsx("div",{className:"gradient-orb orb-1",style:{background:"radial-gradient(circle, #f093fb 0%, transparent 70%)"}}),Ye.jsx("div",{className:"gradient-orb orb-2",style:{background:"radial-gradient(circle, #f5576c 0%, transparent 70%)"}})]}),Ye.jsxs("div",{className:"hero-content",children:[Ye.jsxs("div",{className:"hero-badge",children:[Ye.jsx(zm,{}),Ye.jsx("span",{children:"Inventory & Purchase"})]}),Ye.jsxs("div",{className:"hero-main",children:[Ye.jsxs("div",{className:"hero-text",children:[Ye.jsxs("h1",{className:"hero-title",children:["Smart Inventory",Ye.jsx("span",{className:"gradient-text",style:{background:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:" Management"})]}),Ye.jsx("p",{className:"hero-description",children:"Master your inventory with intelligent real-time tracking, automated reorder alerts, and comprehensive purchase order management. Reduce stockouts by up to 80%, minimize overstocking, and optimize your inventory costs with data-driven insights. Perfect for retail stores, warehouses, distribution centers, and multi-location businesses. Track stock across unlimited locations, manage suppliers efficiently, and make informed purchasing decisions."}),Ye.jsxs("div",{className:"hero-cta",children:[Ye.jsxs("button",{className:"btn-primary",onClick:()=>{e("/home/signin")},children:["Start Free Trial",Ye.jsx(DD,{})]}),Ye.jsx("button",{className:"btn-secondary",onClick:()=>window.open("https://wa.me/917324000014","_blank"),children:"Book Demo"})]})]}),Ye.jsx("div",{className:"hero-image",children:Ye.jsx("div",{className:"hero-image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1200&h=800&fit=crop&q=90",alt:"Inventory & Purchase Management",className:"hero-product-image"})})})]})]})]}),Ye.jsx("section",{className:"solution-features",children:Ye.jsxs("div",{className:"features-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Why Choose Inventory & Purchase?"}),Ye.jsx("p",{children:"Complete inventory control at your fingertips"})]}),Ye.jsx("div",{className:"features-visual",children:Ye.jsx("div",{className:"features-image",children:Ye.jsx("div",{className:"image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1553413077-190dd305871c?w=1200&h=800&fit=crop&q=90",alt:"Inventory Management Features",className:"features-product-image"})})})}),Ye.jsx("div",{className:"features-grid",children:C.map(((e,t)=>{const n=e.icon;return Ye.jsxs("div",{ref:e=>i.current[t]=e,className:"feature-card",children:[Ye.jsx("div",{className:"feature-icon",style:{background:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)"},children:Ye.jsx(n,{})}),Ye.jsx("h3",{children:e.title}),Ye.jsx("p",{children:e.description})]},t)}))})]})}),Ye.jsx("section",{className:"solution-benefits",children:Ye.jsxs("div",{className:"benefits-container",children:[Ye.jsx("div",{className:"benefits-visual-image",children:Ye.jsx("div",{className:"benefits-image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?w=1200&h=800&fit=crop&q=90",alt:"Complete Feature Set",className:"benefits-product-image"})})}),Ye.jsxs("div",{className:"benefits-content",children:[Ye.jsx("h2",{children:"Complete Feature Set"}),Ye.jsx("p",{style:{fontSize:"15px",color:"rgba(255, 255, 255, 0.6)",marginBottom:"2rem",lineHeight:"1.6"},children:"Comprehensive inventory management tools to optimize your supply chain and reduce costs"}),Ye.jsx("div",{className:"benefits-list",children:["Real-time stock tracking across all locations and warehouses","Automated reorder points with customizable thresholds","Complete purchase order management with approval workflow","Supplier database with performance tracking and ratings","Inter-location stock transfer with tracking","Barcode & QR code scanning for quick stock updates","Low stock alerts via email, SMS, and in-app notifications","Inventory valuation reports: FIFO, LIFO, Weighted Average","Batch number and expiry date tracking","Multi-unit support: pieces, kgs, liters, boxes, etc.","Stock adjustment entries with reason codes","ABC analysis for inventory categorization","Stock aging reports to identify slow-moving items","Purchase order comparison and supplier performance analysis","Stock audit and reconciliation tools","Integration with billing for automatic stock deduction"].map(((e,t)=>Ye.jsxs("div",{className:"benefit-item",children:[Ye.jsx(LD,{className:"check-icon",style:{color:"#f093fb"}}),Ye.jsx("span",{children:e})]},t)))})]}),Ye.jsx("div",{className:"benefits-visual",children:Ye.jsxs("div",{className:"visual-card",children:[Ye.jsx(zm,{className:"visual-icon",style:{color:"#f093fb"}}),Ye.jsxs("div",{className:"visual-stats",children:[Ye.jsxs("div",{className:"stat",children:[Ye.jsx("div",{className:"stat-value",style:{background:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"99%"}),Ye.jsx("div",{className:"stat-label",children:"Accuracy"})]}),Ye.jsxs("div",{className:"stat",children:[Ye.jsx("div",{className:"stat-value",style:{background:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"24/7"}),Ye.jsx("div",{className:"stat-label",children:"Tracking"})]})]})]})})]})}),Ye.jsx("section",{className:"solution-use-cases",children:Ye.jsxs("div",{className:"use-cases-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Perfect For"}),Ye.jsx("p",{children:"Ideal solution for businesses managing inventory and supply chain"})]}),Ye.jsxs("div",{className:"use-cases-grid",children:[Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(ai,{style:{color:"#3498DB",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Warehouses"}),Ye.jsx("p",{children:"Large warehouses requiring real-time stock tracking, multi-location management, and automated reorder systems"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Xn,{style:{color:"#E67E22",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Manufacturing Units"}),Ye.jsx("p",{children:"Production facilities needing raw material tracking, batch management, and inventory valuation reports"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Mn,{style:{color:"#4A90E2",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Retail Stores"}),Ye.jsx("p",{children:"Retail outlets requiring accurate stock levels, low stock alerts, and seamless purchase order management"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(ti,{style:{color:"#16A085",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Distribution Centers"}),Ye.jsx("p",{children:"Distribution hubs managing inter-location transfers, supplier relationships, and stock reconciliation"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(ei,{style:{color:"#F39C12",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Pharmaceutical Companies"}),Ye.jsx("p",{children:"Pharma businesses needing batch tracking, expiry date management, and regulatory compliance"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Hn,{style:{color:"#9B59B6",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Multi-Location Businesses"}),Ye.jsx("p",{children:"Companies with multiple stores requiring centralized inventory control and unified reporting"})]})]})]})}),Ye.jsx("section",{className:"solution-integrations",children:Ye.jsxs("div",{className:"integrations-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Integrations & Compatibility"}),Ye.jsx("p",{children:"Seamlessly integrate with your existing tools and hardware. Works with all major inventory management systems, hardware devices, and business software."})]}),Ye.jsxs("div",{className:"integrations-grid",children:[Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(Qm,{style:{color:"#4ECDC4",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Barcode Scanners"}),Ye.jsx("p",{children:"All major barcode scanner brands supported. Fast stock entry, inventory counting, and product lookup with instant scanning."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(av,{style:{color:"#95E1D3",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Cloud Sync"}),Ye.jsx("p",{children:"Real-time cloud synchronization across all locations. Automatic backup, multi-device access, and secure data storage."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(Gm,{style:{color:"#F38181",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Accounting Software"}),Ye.jsx("p",{children:"Export inventory data to Tally, QuickBooks, and other accounting systems. Seamless data transfer with proper formatting."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(uv,{style:{color:"#AA96DA",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Purchase Order Alerts"}),Ye.jsx("p",{children:"Email and SMS notifications for low stock, purchase order status, and delivery updates. Automated supplier communication."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(Cv,{style:{color:"#FFD93D",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Mobile App"}),Ye.jsx("p",{children:"Full inventory management on iOS and Android. Scan barcodes, update stock, create purchase orders on the go."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(wv,{style:{color:"#FCBAD3",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Security & Compliance"}),Ye.jsx("p",{children:"SSL encryption, role-based access control, audit trails, and data encryption. Bank-level security for your inventory data."})]})]})]})}),Ye.jsx("section",{className:"solution-faq",children:Ye.jsxs("div",{className:"faq-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Frequently Asked Questions"}),Ye.jsx("p",{children:"Get answers to common questions about Inventory & Purchase Management"})]}),Ye.jsxs("div",{className:"faq-list",children:[Ye.jsxs("div",{className:"faq-item "+(0===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(0===c?null:0),children:[Ye.jsx("h3",{children:"How does real-time stock tracking work?"}),Ye.jsx("span",{className:"faq-toggle",children:0===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Stock levels update instantly across all locations when sales, purchases, or transfers occur. You get instant visibility into current stock, pending orders, and stock movements in real-time."})})]}),Ye.jsxs("div",{className:"faq-item "+(1===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(1===c?null:1),children:[Ye.jsx("h3",{children:"Can I set automatic reorder points?"}),Ye.jsx("span",{className:"faq-toggle",children:1===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Yes, you can set minimum stock levels for each product. When stock falls below the threshold, you'll receive automatic alerts via email, SMS, or in-app notifications to reorder."})})]}),Ye.jsxs("div",{className:"faq-item "+(2===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(2===c?null:2),children:[Ye.jsx("h3",{children:"How do I manage purchase orders?"}),Ye.jsx("span",{className:"faq-toggle",children:2===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Create purchase orders, send them to suppliers, track delivery status, and receive goods. The system supports approval workflows, PO comparison, and supplier performance tracking."})})]}),Ye.jsxs("div",{className:"faq-item "+(3===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(3===c?null:3),children:[Ye.jsx("h3",{children:"Can I track inventory across multiple locations?"}),Ye.jsx("span",{className:"faq-toggle",children:3===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Yes, manage unlimited locations and warehouses. Track stock at each location, transfer items between locations, and get consolidated reports across all locations."})})]}),Ye.jsxs("div",{className:"faq-item "+(4===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(4===c?null:4),children:[Ye.jsx("h3",{children:"What inventory valuation methods are supported?"}),Ye.jsx("span",{className:"faq-toggle",children:4===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"We support FIFO (First In First Out), LIFO (Last In First Out), and Weighted Average methods. Choose the method that best fits your business needs."})})]}),Ye.jsxs("div",{className:"faq-item "+(5===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(5===c?null:5),children:[Ye.jsx("h3",{children:"How do I get started with inventory management?"}),Ye.jsx("span",{className:"faq-toggle",children:5===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Sign up for a free trial, import your product list, set up locations, and configure reorder points. Our team will help you with initial setup and training."})})]})]})]})}),Ye.jsx("section",{className:"solution-cta",children:Ye.jsxs("div",{className:"cta-content",children:[Ye.jsx("h2",{children:"Ready to Optimize Your Inventory?"}),Ye.jsx("p",{children:"Join thousands of businesses across India using PozoApp to reduce inventory costs, prevent stockouts, and streamline their supply chain. Start managing your inventory smarter today."}),Ye.jsxs("div",{className:"cta-buttons",children:[Ye.jsx("button",{className:"btn-primary",onClick:()=>{e("/home/signin")},children:"Get Started Free"}),Ye.jsx("button",{className:"btn-secondary",onClick:()=>window.open("https://wa.me/917324000014","_blank"),children:"Contact Sales"})]})]})}),Ye.jsx(Whe,{AppCategory:w}),p&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(afe,{industryRef:m,closingIndustry:h,AppCategory:w,redirectApp:(t,n)=>{nA("AppId",n),nA("AppName",t);const i=t.replace(/[,]/g,"").replace(/\s+/g,"-").replace(/&/g,"and").replace(/[^a-z0-9-]/gi,"").toLowerCase();e(`/industries/${i}`),window.location.reload()}})}),v&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(rfe,{companyRef:b,closingCompany:y})}),r&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(sfe,{solutionsRef:d,closingSolutions:l})})]})},access:"Public"},{path:`${Ofe}solutions/weighing-scale-pos`,component:()=>{const e=Qt(),t=um(),n=a.useRef(null),i=a.useRef([]),[r,s]=a.useState(!1),[l,o]=a.useState(!1),d=a.useRef(null),[c,u]=a.useState(null),[p,A]=a.useState(!1),[h,f]=a.useState(!1),m=a.useRef(null),[v,g]=a.useState(!1),[y,x]=a.useState(!1),b=a.useRef(null),[w,j]=a.useState([]),C=[{icon:Fv,title:"Digital Scale Integration",description:"Seamless integration with all major digital weighing scale brands (Mettler Toledo, Essae, Citizen, etc.). Automatic weight capture eliminates manual entry errors and speeds up billing. Support for RS232, USB, and Bluetooth connectivity."},{icon:Pv,title:"Automatic Weight Pricing",description:"Set price per kg/gram for any product. System automatically calculates total price based on weight. Support for multiple units (kg, gram, ton) with automatic conversion. Handle different pricing for different weight ranges."},{icon:Cv,title:"Lightning Fast Checkout",description:"Weigh, scan, and bill in seconds. Perfect for busy grocery stores and supermarkets. Reduce customer wait time significantly. Process up to 100+ items per minute with barcode scanning and automatic weight capture."},{icon:Gm,title:"Precise Weight Management",description:"Accurate weight measurement up to 0.001g precision. Track weight-based inventory, manage tare weight for containers, and handle multiple weighing units. Automatic inventory deduction based on sold weight."}];return a.useEffect((()=>{(async()=>{var e,n,i;try{const a=await t(dL()).unwrap();if(1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)){let e=null==(i=null==(n=null==a?void 0:a.data)?void 0:n.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));j(e)}}catch(a){}})()}),[]),a.useEffect((()=>(n.current&&kce.fromTo(n.current.children,{opacity:0,y:30},{opacity:1,y:0,duration:1,stagger:.2,ease:"power3.out"}),i.current.forEach(((e,t)=>{e&&kce.fromTo(e,{opacity:0,x:-30},{opacity:1,x:0,duration:.8,delay:.1*t,ease:"power3.out",scrollTrigger:{trigger:e,start:"top 85%",toggleActions:"play none none reverse"}})})),()=>{_Ae.getAll().forEach((e=>e.kill()))})),[]),Ye.jsxs("div",{className:"solution-page",children:[Ye.jsx(XAe,{isScrolled:!0,forceTopZero:!0,AppCategory:w,solutionsOpen:r,setSolutionsOpen:s,closingSolutions:l,setClosingSolutions:o,solutionsRef:d,industry:p,setIndustry:A,closingIndustry:h,setClosingIndustry:f,industryRef:m,company:v,setCompany:g,closingCompany:y,setClosingCompany:x,companyRef:b}),Ye.jsxs("section",{className:"solution-hero",ref:n,children:[Ye.jsxs("div",{className:"hero-background",children:[Ye.jsx("div",{className:"gradient-orb orb-1",style:{background:"radial-gradient(circle, #4facfe 0%, transparent 70%)"}}),Ye.jsx("div",{className:"gradient-orb orb-2",style:{background:"radial-gradient(circle, #00f2fe 0%, transparent 70%)"}})]}),Ye.jsxs("div",{className:"hero-content",children:[Ye.jsxs("div",{className:"hero-badge",children:[Ye.jsx(Rv,{}),Ye.jsx("span",{children:"Weighing Scale POS"})]}),Ye.jsxs("div",{className:"hero-main",children:[Ye.jsxs("div",{className:"hero-text",children:[Ye.jsxs("h1",{className:"hero-title",children:["Integrated Weighing",Ye.jsx("span",{className:"gradient-text",style:{background:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:" Scale System"})]}),Ye.jsx("p",{className:"hero-description",children:"Perfect solution for grocery stores, supermarkets, and retail outlets requiring weight-based billing. Seamlessly integrate digital weighing scales with your POS system for accurate weight measurement and instant pricing. Process fruits, vegetables, grains, meat, fish, and other weight-based products faster than ever. Support for multiple weighing units (kg, gram, ton) with automatic conversion. Reduce billing time by 70% and eliminate calculation errors."}),Ye.jsxs("div",{className:"hero-cta",children:[Ye.jsxs("button",{className:"btn-primary",onClick:()=>{e("/home/signin")},children:["Start Free Trial",Ye.jsx(DD,{})]}),Ye.jsx("button",{className:"btn-secondary",onClick:()=>window.open("https://wa.me/917324000014","_blank"),children:"Book Demo"})]})]}),Ye.jsx("div",{className:"hero-image",children:Ye.jsx("div",{className:"hero-image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1542838132-92c53300491e?w=1200&h=800&fit=crop&q=90",alt:"Weighing Scale POS",className:"hero-product-image"})})})]})]})]}),Ye.jsx("section",{className:"solution-features",children:Ye.jsxs("div",{className:"features-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Why Choose Weighing Scale POS?"}),Ye.jsx("p",{children:"Perfect for weight-based retail businesses"})]}),Ye.jsx("div",{className:"features-visual",children:Ye.jsx("div",{className:"features-image",children:Ye.jsx("div",{className:"image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1588964895597-cfccd6e2dbf9?w=1200&h=800&fit=crop&q=90",alt:"Weighing Scale POS Features",className:"features-product-image"})})})}),Ye.jsx("div",{className:"features-grid",children:C.map(((e,t)=>{const n=e.icon;return Ye.jsxs("div",{ref:e=>i.current[t]=e,className:"feature-card",children:[Ye.jsx("div",{className:"feature-icon",style:{background:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)"},children:Ye.jsx(n,{})}),Ye.jsx("h3",{children:e.title}),Ye.jsx("p",{children:e.description})]},t)}))})]})}),Ye.jsx("section",{className:"solution-benefits",children:Ye.jsxs("div",{className:"benefits-container",children:[Ye.jsx("div",{className:"benefits-visual-image",children:Ye.jsx("div",{className:"benefits-image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1601599561213-832382fd07ba?w=1200&h=800&fit=crop&q=90",alt:"Complete Feature Set",className:"benefits-product-image"})})}),Ye.jsxs("div",{className:"benefits-content",children:[Ye.jsx("h2",{children:"Complete Feature Set"}),Ye.jsx("p",{style:{fontSize:"15px",color:"rgba(255, 255, 255, 0.6)",marginBottom:"2rem",lineHeight:"1.6"},children:"Everything you need for accurate weight-based billing and seamless scale integration"}),Ye.jsx("div",{className:"benefits-list",children:["Integration with all major digital weighing scale brands","Automatic weight capture from scale to POS system","Price per kg/gram/ton with automatic unit conversion","Quick item lookup with barcode or product name search","Barcode scanning for instant product identification","Receipt printing with weight details and pricing","Customer display showing weight and total amount","Support for multiple weighing scales simultaneously","Tare weight management for containers and packaging","Weight-based inventory tracking and deduction","GST calculation on weight-based products","Batch and lot number tracking for weighed items","Print weight labels with barcode for products","Integration with billing for seamless checkout","Weight variance reports and audit trails"].map(((e,t)=>Ye.jsxs("div",{className:"benefit-item",children:[Ye.jsx(LD,{className:"check-icon",style:{color:"#4facfe"}}),Ye.jsx("span",{children:e})]},t)))})]}),Ye.jsx("div",{className:"benefits-visual",children:Ye.jsxs("div",{className:"visual-card",children:[Ye.jsx(Rv,{className:"visual-icon",style:{color:"#4facfe"}}),Ye.jsxs("div",{className:"visual-stats",children:[Ye.jsxs("div",{className:"stat",children:[Ye.jsx("div",{className:"stat-value",style:{background:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"100%"}),Ye.jsx("div",{className:"stat-label",children:"Accurate"})]}),Ye.jsxs("div",{className:"stat",children:[Ye.jsx("div",{className:"stat-value",style:{background:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"Fast"}),Ye.jsx("div",{className:"stat-label",children:"Billing"})]})]})]})})]})}),Ye.jsx("section",{className:"solution-use-cases",children:Ye.jsxs("div",{className:"use-cases-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Perfect For"}),Ye.jsx("p",{children:"Ideal solution for businesses requiring weight-based billing"})]}),Ye.jsxs("div",{className:"use-cases-grid",children:[Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(On,{style:{color:"#E74C3C",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Grocery Stores"}),Ye.jsx("p",{children:"Supermarkets and grocery stores selling fruits, vegetables, grains, and other weight-based products"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(ii,{style:{color:"#E91E63",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Meat & Fish Shops"}),Ye.jsx("p",{children:"Butcher shops and fish markets requiring precise weight measurement and pricing"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx($n,{style:{color:"#27AE60",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Grain & Cereal Stores"}),Ye.jsx("p",{children:"Stores selling rice, wheat, pulses, and other grains by weight"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Jn,{style:{color:"#E74C3C",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Fruit & Vegetable Vendors"}),Ye.jsx("p",{children:"Fresh produce sellers needing fast weight-based billing and inventory tracking"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(pi,{style:{color:"#F39C12",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Confectionery Stores"}),Ye.jsx("p",{children:"Candy and sweet shops selling products by weight with accurate pricing"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Mn,{style:{color:"#4A90E2",fontSize:"32px"}})}),Ye.jsx("h3",{children:"General Retail"}),Ye.jsx("p",{children:"Any retail store selling weight-based products requiring integrated scale billing"})]})]})]})}),Ye.jsx("section",{className:"solution-integrations",children:Ye.jsxs("div",{className:"integrations-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Integrations & Compatibility"}),Ye.jsx("p",{children:"Seamlessly integrate weighing scales with your POS system. Works with all major scale brands and hardware devices."})]}),Ye.jsxs("div",{className:"integrations-grid",children:[Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(Rv,{style:{color:"#FF6B6B",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Digital Weighing Scales"}),Ye.jsx("p",{children:"Support for all major brands: Mettler Toledo, Essae, Citizen, and more. RS232, USB, and Bluetooth connectivity."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(Qm,{style:{color:"#4ECDC4",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Barcode Scanners"}),Ye.jsx("p",{children:"Quick product lookup with barcode scanning. Instant weight capture and pricing for faster checkout."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(lv,{style:{color:"#FF6B6B",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Payment Gateways"}),Ye.jsx("p",{children:"Razorpay, Paytm, PhonePe, UPI, and all major payment processors. Cash, card, UPI, and wallet support."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(av,{style:{color:"#95E1D3",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Cloud Storage"}),Ye.jsx("p",{children:"Automatic backup to cloud, data sync across devices, and secure cloud storage. Access from anywhere."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(uv,{style:{color:"#AA96DA",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Receipt Printing"}),Ye.jsx("p",{children:"Print weight labels, invoices, and receipts. Email and SMS invoice delivery. WhatsApp integration."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(wv,{style:{color:"#FCBAD3",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Security & Compliance"}),Ye.jsx("p",{children:"SSL encryption, data encryption at rest and in transit. GST compliance and secure weight data storage."})]})]})]})}),Ye.jsx("section",{className:"solution-faq",children:Ye.jsxs("div",{className:"faq-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Frequently Asked Questions"}),Ye.jsx("p",{children:"Get answers to common questions about Weighing Scale POS"})]}),Ye.jsxs("div",{className:"faq-list",children:[Ye.jsxs("div",{className:"faq-item "+(0===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(0===c?null:0),children:[Ye.jsx("h3",{children:"Which weighing scales are supported?"}),Ye.jsx("span",{className:"faq-toggle",children:0===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"We support all major digital weighing scale brands. The system is customizable to work with different scale models and communication protocols."})})]}),Ye.jsxs("div",{className:"faq-item "+(1===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(1===c?null:1),children:[Ye.jsx("h3",{children:"How accurate is the weight measurement?"}),Ye.jsx("span",{className:"faq-toggle",children:1===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Weight accuracy depends on your scale's precision. Our system captures weight up to 0.001g precision and automatically calculates pricing based on the measured weight."})})]}),Ye.jsxs("div",{className:"faq-item "+(2===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(2===c?null:2),children:[Ye.jsx("h3",{children:"Can I set different prices per kg for different products?"}),Ye.jsx("span",{className:"faq-toggle",children:2===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Yes, each product can have its own price per kg/gram. The system automatically calculates the total price when weight is captured from the scale."})})]}),Ye.jsxs("div",{className:"faq-item "+(3===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(3===c?null:3),children:[Ye.jsx("h3",{children:"How fast is the billing process?"}),Ye.jsx("span",{className:"faq-toggle",children:3===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"With automatic weight capture, billing is extremely fast. Just place the item on the scale, scan the barcode, and the bill is ready in seconds."})})]}),Ye.jsxs("div",{className:"faq-item "+(4===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(4===c?null:4),children:[Ye.jsx("h3",{children:"Can I manage tare weight for containers?"}),Ye.jsx("span",{className:"faq-toggle",children:4===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Yes, you can set and manage tare weight for containers, packaging, and bags. The system automatically deducts tare weight from the total weight."})})]}),Ye.jsxs("div",{className:"faq-item "+(5===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(5===c?null:5),children:[Ye.jsx("h3",{children:"Is GST calculation included for weight-based products?"}),Ye.jsx("span",{className:"faq-toggle",children:5===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Yes, GST is automatically calculated on weight-based products based on HSN codes. E-invoice generation and GSTR filing are also supported."})})]})]})]})}),Ye.jsx("section",{className:"solution-cta",children:Ye.jsxs("div",{className:"cta-content",children:[Ye.jsx("h2",{children:"Ready for Weight-based Billing?"}),Ye.jsx("p",{children:"Transform your grocery store operations with integrated weighing scale POS"}),Ye.jsxs("div",{className:"cta-buttons",children:[Ye.jsx("button",{className:"btn-primary",onClick:()=>{e("/home/signin")},children:"Get Started Free"}),Ye.jsx("button",{className:"btn-secondary",onClick:()=>window.open("https://wa.me/917324000014","_blank"),children:"Contact Sales"})]})]})}),Ye.jsx(Whe,{AppCategory:w}),p&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(lfe,{industryRef:m,closingIndustry:h,AppCategory:w,redirectApp:(t,n)=>{nA("AppId",n),nA("AppName",t);const i=t.replace(/[,]/g,"").replace(/\s+/g,"-").replace(/&/g,"and").replace(/[^a-z0-9-]/gi,"").toLowerCase();e(`/industries/${i}`),window.location.reload()}})}),v&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(ofe,{companyRef:b,closingCompany:y})}),r&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(dfe,{solutionsRef:d,closingSolutions:l})})]})},access:"Public"},{path:`${Ofe}solutions/multi-store-erp`,component:()=>{const e=Qt(),t=um(),n=a.useRef(null),i=a.useRef([]),[r,s]=a.useState(!1),[l,o]=a.useState(!1),d=a.useRef(null),[c,u]=a.useState(null),[p,A]=a.useState(!1),[h,f]=a.useState(!1),m=a.useRef(null),[v,g]=a.useState(!1),[y,x]=a.useState(!1),b=a.useRef(null),[w,j]=a.useState([]),C=[{icon:Fv,title:"Centralized Management",description:"Control all your stores from one powerful dashboard. Monitor sales, inventory, staff, and operations across all locations in real-time. Make decisions faster with complete visibility. Set store-specific rules, pricing, and promotions from head office."},{icon:Pv,title:"Real-time Data Sync",description:"All store data synchronizes instantly across your network. Stock updates, sales transactions, and inventory movements reflect immediately across all locations. No delays, no data conflicts. Cloud-based architecture ensures 99.9% uptime."},{icon:Cv,title:"Unlimited Store Locations",description:"Add as many store locations as you need. Each store operates independently while sharing data centrally. Perfect for retail chains and franchises. Scale from 2 stores to 200+ stores without any performance issues."},{icon:Gm,title:"Unified Analytics & Reports",description:"Get comprehensive reports combining data from all stores. Compare performance, identify trends, and make strategic decisions based on complete business insights. Store-wise, region-wise, and consolidated reports with drill-down capabilities."}];return a.useEffect((()=>{(async()=>{var e,n,i;try{const a=await t(dL()).unwrap();if(1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)){let e=null==(i=null==(n=null==a?void 0:a.data)?void 0:n.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));j(e)}}catch(a){}})()}),[]),a.useEffect((()=>(n.current&&kce.fromTo(n.current.children,{opacity:0,y:30},{opacity:1,y:0,duration:1,stagger:.2,ease:"power3.out"}),i.current.forEach(((e,t)=>{e&&kce.fromTo(e,{opacity:0,x:-30},{opacity:1,x:0,duration:.8,delay:.1*t,ease:"power3.out",scrollTrigger:{trigger:e,start:"top 85%",toggleActions:"play none none reverse"}})})),()=>{_Ae.getAll().forEach((e=>e.kill()))})),[]),Ye.jsxs("div",{className:"solution-page",children:[Ye.jsx(XAe,{isScrolled:!0,forceTopZero:!0,AppCategory:w,solutionsOpen:r,setSolutionsOpen:s,closingSolutions:l,setClosingSolutions:o,solutionsRef:d,industry:p,setIndustry:A,closingIndustry:h,setClosingIndustry:f,industryRef:m,company:v,setCompany:g,closingCompany:y,setClosingCompany:x,companyRef:b}),Ye.jsxs("section",{className:"solution-hero",ref:n,children:[Ye.jsxs("div",{className:"hero-background",children:[Ye.jsx("div",{className:"gradient-orb orb-1",style:{background:"radial-gradient(circle, #43e97b 0%, transparent 70%)"}}),Ye.jsx("div",{className:"gradient-orb orb-2",style:{background:"radial-gradient(circle, #38f9d7 0%, transparent 70%)"}})]}),Ye.jsxs("div",{className:"hero-content",children:[Ye.jsxs("div",{className:"hero-badge",children:[Ye.jsx(Ev,{}),Ye.jsx("span",{children:"Multi-Store ERP"})]}),Ye.jsxs("div",{className:"hero-main",children:[Ye.jsxs("div",{className:"hero-text",children:[Ye.jsxs("h1",{className:"hero-title",children:["Manage Multiple Stores",Ye.jsx("span",{className:"gradient-text",style:{background:"linear-gradient(135deg, #43e97b 0%, #38f9d7 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:" from One Platform"})]}),Ye.jsx("p",{className:"hero-description",children:"Scale your retail business effortlessly with our comprehensive multi-store ERP solution. Manage unlimited store locations from one centralized dashboard. Real-time data synchronization ensures all stores stay connected. Unified reporting gives you complete visibility across your entire retail network. Compare performance, transfer stock between locations, and make strategic decisions based on complete business insights. Perfect for retail chains, franchises, and expanding businesses."}),Ye.jsxs("div",{className:"hero-cta",children:[Ye.jsxs("button",{className:"btn-primary",onClick:()=>{e("/home/signin")},children:["Start Free Trial",Ye.jsx(DD,{})]}),Ye.jsx("button",{className:"btn-secondary",onClick:()=>window.open("https://wa.me/917324000014","_blank"),children:"Book Demo"})]})]}),Ye.jsx("div",{className:"hero-image",children:Ye.jsx("div",{className:"hero-image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=1200&h=800&fit=crop&q=90",alt:"Multi-Store ERP",className:"hero-product-image"})})})]})]})]}),Ye.jsx("section",{className:"solution-features",children:Ye.jsxs("div",{className:"features-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Why Choose Multi-Store ERP?"}),Ye.jsx("p",{children:"Complete control over your retail empire"})]}),Ye.jsx("div",{className:"features-visual",children:Ye.jsx("div",{className:"features-image",children:Ye.jsx("div",{className:"image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1555529669-e69e7aa0ba9a?w=1200&h=800&fit=crop&q=90",alt:"Multi-Store ERP Features",className:"features-product-image"})})})}),Ye.jsx("div",{className:"features-grid",children:C.map(((e,t)=>{const n=e.icon;return Ye.jsxs("div",{ref:e=>i.current[t]=e,className:"feature-card",children:[Ye.jsx("div",{className:"feature-icon",style:{background:"linear-gradient(135deg, #43e97b 0%, #38f9d7 100%)"},children:Ye.jsx(n,{})}),Ye.jsx("h3",{children:e.title}),Ye.jsx("p",{children:e.description})]},t)}))})]})}),Ye.jsx("section",{className:"solution-benefits",children:Ye.jsxs("div",{className:"benefits-container",children:[Ye.jsx("div",{className:"benefits-visual-image",children:Ye.jsx("div",{className:"benefits-image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1472851294608-062f824d29cc?w=1200&h=800&fit=crop&q=90",alt:"Complete Feature Set",className:"benefits-product-image"})})}),Ye.jsxs("div",{className:"benefits-content",children:[Ye.jsx("h2",{children:"Complete Feature Set"}),Ye.jsx("p",{style:{fontSize:"15px",color:"rgba(255, 255, 255, 0.6)",marginBottom:"2rem",lineHeight:"1.6"},children:"Powerful multi-store management features to scale your retail business effortlessly"}),Ye.jsx("div",{className:"benefits-list",children:["Manage unlimited store locations from one platform","Real-time data synchronization across all stores","Unified inventory tracking with inter-store visibility","Centralized reporting combining all store data","Store-wise performance analytics and comparisons","Inter-store stock transfer with tracking","Consolidated financial reports and P&L statements","Role-based access control for store managers","Head office dashboard for complete oversight","Store-specific pricing and discount rules","Centralized product master data management","Multi-store customer database sharing","Unified purchase order management","Cross-store sales and inventory reports","Franchise management and royalty tracking","Store opening and closing time management","Centralized GST and tax compliance"].map(((e,t)=>Ye.jsxs("div",{className:"benefit-item",children:[Ye.jsx(LD,{className:"check-icon",style:{color:"#43e97b"}}),Ye.jsx("span",{children:e})]},t)))})]}),Ye.jsx("div",{className:"benefits-visual",children:Ye.jsxs("div",{className:"visual-card",children:[Ye.jsx(Ev,{className:"visual-icon",style:{color:"#43e97b"}}),Ye.jsxs("div",{className:"visual-stats",children:[Ye.jsxs("div",{className:"stat",children:[Ye.jsx("div",{className:"stat-value",style:{background:"linear-gradient(135deg, #43e97b 0%, #38f9d7 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"∞"}),Ye.jsx("div",{className:"stat-label",children:"Stores"})]}),Ye.jsxs("div",{className:"stat",children:[Ye.jsx("div",{className:"stat-value",style:{background:"linear-gradient(135deg, #43e97b 0%, #38f9d7 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"Real-time"}),Ye.jsx("div",{className:"stat-label",children:"Sync"})]})]})]})})]})}),Ye.jsx("section",{className:"solution-use-cases",children:Ye.jsxs("div",{className:"use-cases-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Perfect For"}),Ye.jsx("p",{children:"Ideal solution for businesses with multiple locations"})]}),Ye.jsxs("div",{className:"use-cases-grid",children:[Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Hn,{style:{color:"#9B59B6",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Retail Chains"}),Ye.jsx("p",{children:"Multi-store retail chains requiring centralized management, unified inventory, and consolidated reporting"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(ni,{style:{color:"#E67E22",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Restaurant Chains"}),Ye.jsx("p",{children:"Food service businesses with multiple outlets needing unified menu management and sales tracking"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(hi,{style:{color:"#F39C12",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Franchise Businesses"}),Ye.jsx("p",{children:"Franchise operations requiring head office oversight, royalty tracking, and performance comparison"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(_n,{style:{color:"#3498DB",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Department Stores"}),Ye.jsx("p",{children:"Large format stores with multiple departments needing centralized control and unified customer database"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Ai,{style:{color:"#16A085",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Multi-City Operations"}),Ye.jsx("p",{children:"Businesses operating across multiple cities requiring real-time data sync and centralized management"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(qn,{style:{color:"#E91E63",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Growing Businesses"}),Ye.jsx("p",{children:"Expanding businesses planning to open new locations and need scalable management solutions"})]})]})]})}),Ye.jsx("section",{className:"solution-integrations",children:Ye.jsxs("div",{className:"integrations-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Integrations & Compatibility"}),Ye.jsx("p",{children:"Seamlessly integrate with your existing tools and hardware. Centralized management for all your store locations."})]}),Ye.jsxs("div",{className:"integrations-grid",children:[Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(av,{style:{color:"#95E1D3",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Real-time Cloud Sync"}),Ye.jsx("p",{children:"Instant data synchronization across all stores. Real-time inventory updates, sales data, and unified reporting."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(Gm,{style:{color:"#F38181",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Centralized Analytics"}),Ye.jsx("p",{children:"Unified dashboards, store-wise comparisons, and consolidated reports. Make strategic decisions with complete visibility."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(Qm,{style:{color:"#4ECDC4",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Hardware Support"}),Ye.jsx("p",{children:"Barcode scanners, receipt printers, cash drawers, and POS hardware. Compatible with all major hardware brands."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(lv,{style:{color:"#FF6B6B",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Payment Gateways"}),Ye.jsx("p",{children:"Razorpay, Paytm, PhonePe, UPI, and all major payment processors. Unified payment processing across stores."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(uv,{style:{color:"#AA96DA",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Communication Tools"}),Ye.jsx("p",{children:"Email, SMS, and WhatsApp integration. Automated notifications, alerts, and customer communication."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(wv,{style:{color:"#FCBAD3",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Security & Compliance"}),Ye.jsx("p",{children:"Role-based access control, SSL encryption, audit trails, and data encryption. Bank-level security for multi-store data."})]})]})]})}),Ye.jsx("section",{className:"solution-faq",children:Ye.jsxs("div",{className:"faq-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Frequently Asked Questions"}),Ye.jsx("p",{children:"Get answers to common questions about Multi-Store ERP"})]}),Ye.jsxs("div",{className:"faq-list",children:[Ye.jsxs("div",{className:"faq-item "+(0===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(0===c?null:0),children:[Ye.jsx("h3",{children:"How many stores can I manage?"}),Ye.jsx("span",{className:"faq-toggle",children:0===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"There's no limit on the number of stores you can manage. Add as many locations as you need. Each store operates independently while sharing data centrally."})})]}),Ye.jsxs("div",{className:"faq-item "+(1===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(1===c?null:1),children:[Ye.jsx("h3",{children:"How does data synchronization work?"}),Ye.jsx("span",{className:"faq-toggle",children:1===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"All store data synchronizes in real-time. Sales, inventory updates, and transactions reflect immediately across all locations. Changes made at one store are visible at all stores instantly."})})]}),Ye.jsxs("div",{className:"faq-item "+(2===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(2===c?null:2),children:[Ye.jsx("h3",{children:"Can each store have different pricing?"}),Ye.jsx("span",{className:"faq-toggle",children:2===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Yes, you can set store-specific pricing and discount rules. Each store can have its own pricing strategy while maintaining centralized product master data."})})]}),Ye.jsxs("div",{className:"faq-item "+(3===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(3===c?null:3),children:[Ye.jsx("h3",{children:"How do I transfer stock between stores?"}),Ye.jsx("span",{className:"faq-toggle",children:3===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Create inter-store transfer requests, track movement, and receive stock at the destination store. All transfers are tracked with complete audit trails."})})]}),Ye.jsxs("div",{className:"faq-item "+(4===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(4===c?null:4),children:[Ye.jsx("h3",{children:"Can I compare performance across stores?"}),Ye.jsx("span",{className:"faq-toggle",children:4===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Yes, get comprehensive reports comparing sales, inventory, and performance metrics across all stores. Identify top performers and areas for improvement."})})]}),Ye.jsxs("div",{className:"faq-item "+(5===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(5===c?null:5),children:[Ye.jsx("h3",{children:"How do I manage user access for different stores?"}),Ye.jsx("span",{className:"faq-toggle",children:5===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Set role-based access control. Store managers can access only their store data, while head office users can view all stores. Customize permissions as needed."})})]})]})]})}),Ye.jsx("section",{className:"solution-cta",children:Ye.jsxs("div",{className:"cta-content",children:[Ye.jsx("h2",{children:"Ready to Scale Your Business?"}),Ye.jsx("p",{children:"Manage all your stores efficiently with our multi-store ERP solution"}),Ye.jsxs("div",{className:"cta-buttons",children:[Ye.jsx("button",{className:"btn-primary",onClick:()=>{e("/home/signin")},children:"Get Started Free"}),Ye.jsx("button",{className:"btn-secondary",onClick:()=>window.open("https://wa.me/917324000014","_blank"),children:"Contact Sales"})]})]})}),Ye.jsx(Whe,{AppCategory:w}),p&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(cfe,{industryRef:m,closingIndustry:h,AppCategory:w,redirectApp:(t,n)=>{nA("AppId",n),nA("AppName",t);const i=t.replace(/[,]/g,"").replace(/\s+/g,"-").replace(/&/g,"and").replace(/[^a-z0-9-]/gi,"").toLowerCase();e(`/industries/${i}`),window.location.reload()}})}),v&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(ufe,{companyRef:b,closingCompany:y})}),r&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(pfe,{solutionsRef:d,closingSolutions:l})})]})},access:"Public"},{path:`${Ofe}solutions/gst-billing-e-invoice`,component:()=>{const e=Qt(),t=um(),n=a.useRef(null),i=a.useRef([]),[r,s]=a.useState(!1),[l,o]=a.useState(!1),d=a.useRef(null),[c,u]=a.useState(null),[p,A]=a.useState(!1),[h,f]=a.useState(!1),m=a.useRef(null),[v,g]=a.useState(!1),[y,x]=a.useState(!1),b=a.useRef(null),[w,j]=a.useState([]),C=[{icon:Fv,title:"Automated E-Invoice Generation",description:"Generate e-invoices with IRN (Invoice Reference Number) automatically. Direct integration with GST portal ensures instant validation and compliance. No manual intervention needed. Support for B2B, B2C, and export invoices with proper format."},{icon:Pv,title:"Complete GST Compliance",description:"100% compliant with all Indian GST regulations. Automatic tax calculation, HSN/SAC code management, and multi-tax rate support (0%, 5%, 12%, 18%, 28%). Handle CGST, SGST, IGST, and CESS automatically. Stay compliant without effort."},{icon:Cv,title:"Automated GSTR Filing",description:"Automated GSTR-1, GSTR-3B filing with data validation. Reconciliation tools help identify mismatches. Export data in GST portal format for easy filing. Auto-populate returns with invoice data and validate before submission."},{icon:Gm,title:"Comprehensive Tax Analytics",description:"Detailed tax reports showing input tax credit, output tax, tax liability, and more. Track tax trends, identify savings opportunities, and ensure accurate tax management. Monthly, quarterly, and annual tax summaries with drill-down capabilities."}];return a.useEffect((()=>{(async()=>{var e,n,i;try{const a=await t(dL()).unwrap();if(1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)){let e=null==(i=null==(n=null==a?void 0:a.data)?void 0:n.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));j(e)}}catch(a){}})()}),[]),a.useEffect((()=>(n.current&&kce.fromTo(n.current.children,{opacity:0,y:30},{opacity:1,y:0,duration:1,stagger:.2,ease:"power3.out"}),i.current.forEach(((e,t)=>{e&&kce.fromTo(e,{opacity:0,x:-30},{opacity:1,x:0,duration:.8,delay:.1*t,ease:"power3.out",scrollTrigger:{trigger:e,start:"top 85%",toggleActions:"play none none reverse"}})})),()=>{_Ae.getAll().forEach((e=>e.kill()))})),[]),Ye.jsxs("div",{className:"solution-page",children:[Ye.jsx(XAe,{isScrolled:!0,forceTopZero:!0,AppCategory:w,solutionsOpen:r,setSolutionsOpen:s,closingSolutions:l,setClosingSolutions:o,solutionsRef:d,industry:p,setIndustry:A,closingIndustry:h,setClosingIndustry:f,industryRef:m,company:v,setCompany:g,closingCompany:y,setClosingCompany:x,companyRef:b}),Ye.jsxs("section",{className:"solution-hero",ref:n,children:[Ye.jsxs("div",{className:"hero-background",children:[Ye.jsx("div",{className:"gradient-orb orb-1",style:{background:"radial-gradient(circle, #fa709a 0%, transparent 70%)"}}),Ye.jsx("div",{className:"gradient-orb orb-2",style:{background:"radial-gradient(circle, #fee140 0%, transparent 70%)"}})]}),Ye.jsxs("div",{className:"hero-content",children:[Ye.jsxs("div",{className:"hero-badge",children:[Ye.jsx(Av,{}),Ye.jsx("span",{children:"GST Billing & E-Invoice"})]}),Ye.jsxs("div",{className:"hero-main",children:[Ye.jsxs("div",{className:"hero-text",children:[Ye.jsxs("h1",{className:"hero-title",children:["Complete GST Compliance",Ye.jsx("span",{className:"gradient-text",style:{background:"linear-gradient(135deg, #fa709a 0%, #fee140 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:" Made Simple"})]}),Ye.jsx("p",{className:"hero-description",children:"Stay 100% compliant with Indian GST regulations effortlessly. Automated e-invoice generation with IRN integration, seamless GSTR filing, and complete tax compliance built into your billing system. Never miss a tax deadline or worry about compliance again. Automatic tax calculation, input tax credit tracking, and comprehensive tax reports. Direct integration with GST portal for instant e-invoice validation and GSTR data preparation."}),Ye.jsxs("div",{className:"hero-cta",children:[Ye.jsxs("button",{className:"btn-primary",onClick:()=>{e("/home/signin")},children:["Start Free Trial",Ye.jsx(DD,{})]}),Ye.jsx("button",{className:"btn-secondary",onClick:()=>window.open("https://wa.me/917324000014","_blank"),children:"Book Demo"})]})]}),Ye.jsx("div",{className:"hero-image",children:Ye.jsx("div",{className:"hero-image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=1200&h=800&fit=crop&q=90",alt:"GST Billing & E-Invoice",className:"hero-product-image"})})})]})]})]}),Ye.jsx("section",{className:"solution-features",children:Ye.jsxs("div",{className:"features-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Why Choose GST Billing?"}),Ye.jsx("p",{children:"Complete tax compliance at your fingertips"})]}),Ye.jsx("div",{className:"features-visual",children:Ye.jsx("div",{className:"features-image",children:Ye.jsx("div",{className:"image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1200&h=800&fit=crop&q=90",alt:"GST Billing Features",className:"features-product-image"})})})}),Ye.jsx("div",{className:"features-grid",children:C.map(((e,t)=>{const n=e.icon;return Ye.jsxs("div",{ref:e=>i.current[t]=e,className:"feature-card",children:[Ye.jsx("div",{className:"feature-icon",style:{background:"linear-gradient(135deg, #fa709a 0%, #fee140 100%)"},children:Ye.jsx(n,{})}),Ye.jsx("h3",{children:e.title}),Ye.jsx("p",{children:e.description})]},t)}))})]})}),Ye.jsx("section",{className:"solution-benefits",children:Ye.jsxs("div",{className:"benefits-container",children:[Ye.jsx("div",{className:"benefits-visual-image",children:Ye.jsx("div",{className:"benefits-image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=1200&h=800&fit=crop&q=90",alt:"Complete Feature Set",className:"benefits-product-image"})})}),Ye.jsxs("div",{className:"benefits-content",children:[Ye.jsx("h2",{children:"Complete Feature Set"}),Ye.jsx("p",{style:{fontSize:"15px",color:"rgba(255, 255, 255, 0.6)",marginBottom:"2rem",lineHeight:"1.6"},children:"Complete GST compliance and e-invoice features to keep your business tax-ready"}),Ye.jsx("div",{className:"benefits-list",children:["E-Invoice generation with IRN (Invoice Reference Number) from GST portal","Complete GST compliance: CGST, SGST, IGST, CESS calculation","Automated GSTR-1 and GSTR-3B data preparation and filing","Comprehensive tax calculation reports and analytics","E-way bill generation for inter-state transactions","HSN/SAC code management with automatic tax rate assignment","Multi-tax rate support: 0%, 5%, 12%, 18%, 28%","Credit note and debit note generation with GST compliance","Input tax credit (ITC) tracking and reconciliation","Reverse charge mechanism (RCM) support","Composition scheme support for eligible businesses","Tax invoice, bill of supply, and receipt generation","GST return filing reminders and notifications","Tax liability reports and payment tracking","Integration with GST portal for seamless data transfer","Export invoices in JSON format for GST portal upload"].map(((e,t)=>Ye.jsxs("div",{className:"benefit-item",children:[Ye.jsx(LD,{className:"check-icon",style:{color:"#fa709a"}}),Ye.jsx("span",{children:e})]},t)))})]}),Ye.jsx("div",{className:"benefits-visual",children:Ye.jsxs("div",{className:"visual-card",children:[Ye.jsx(Av,{className:"visual-icon",style:{color:"#fa709a"}}),Ye.jsxs("div",{className:"visual-stats",children:[Ye.jsxs("div",{className:"stat",children:[Ye.jsx("div",{className:"stat-value",style:{background:"linear-gradient(135deg, #fa709a 0%, #fee140 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"100%"}),Ye.jsx("div",{className:"stat-label",children:"Compliant"})]}),Ye.jsxs("div",{className:"stat",children:[Ye.jsx("div",{className:"stat-value",style:{background:"linear-gradient(135deg, #fa709a 0%, #fee140 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"Auto"}),Ye.jsx("div",{className:"stat-label",children:"Filing"})]})]})]})})]})}),Ye.jsx("section",{className:"solution-use-cases",children:Ye.jsxs("div",{className:"use-cases-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Perfect For"}),Ye.jsx("p",{children:"Ideal solution for businesses requiring GST compliance"})]}),Ye.jsxs("div",{className:"use-cases-grid",children:[Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Mn,{style:{color:"#4A90E2",fontSize:"32px"}})}),Ye.jsx("h3",{children:"GST Registered Businesses"}),Ye.jsx("p",{children:"All businesses registered under GST requiring automated tax calculation and e-invoice generation"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Dn,{style:{color:"#E74C3C",fontSize:"32px"}})}),Ye.jsx("h3",{children:"E-Invoice Mandated Companies"}),Ye.jsx("p",{children:"Businesses mandated to generate e-invoices with IRN integration for GST compliance"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(ti,{style:{color:"#16A085",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Inter-State Traders"}),Ye.jsx("p",{children:"Businesses conducting inter-state transactions requiring e-way bills and IGST compliance"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Xn,{style:{color:"#E67E22",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Manufacturing Units"}),Ye.jsx("p",{children:"Manufacturing businesses needing input tax credit tracking and comprehensive tax reports"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Qn,{style:{color:"#9B59B6",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Service Providers"}),Ye.jsx("p",{children:"Service businesses requiring SAC code management and service tax compliance"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Tn,{style:{color:"#F39C12",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Tax Consultants"}),Ye.jsx("p",{children:"CA firms and tax consultants managing multiple clients' GST filing and compliance"})]})]})]})}),Ye.jsx("section",{className:"solution-integrations",children:Ye.jsxs("div",{className:"integrations-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Integrations & Compatibility"}),Ye.jsx("p",{children:"Seamlessly integrate with GST portal and your existing tools. Complete GST compliance with automated e-invoice generation."})]}),Ye.jsxs("div",{className:"integrations-grid",children:[Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(pv,{style:{color:"#FF6B6B",fontSize:"28px"}})}),Ye.jsx("h3",{children:"GST Portal Integration"}),Ye.jsx("p",{children:"Direct integration with GST portal for e-invoice IRN generation, GSTR filing, and tax compliance. Automated data transfer."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(Gm,{style:{color:"#F38181",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Accounting Software"}),Ye.jsx("p",{children:"Export GST data to Tally, QuickBooks, and other accounting systems. Seamless data transfer with proper formatting."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(uv,{style:{color:"#AA96DA",fontSize:"28px"}})}),Ye.jsx("h3",{children:"E-Invoice Delivery"}),Ye.jsx("p",{children:"Send e-invoices via email, SMS, and WhatsApp. Automated customer communication with invoice attachments."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(av,{style:{color:"#95E1D3",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Cloud Storage"}),Ye.jsx("p",{children:"Secure cloud storage for all invoices and GST documents. Automatic backup and data sync across devices."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(Qm,{style:{color:"#4ECDC4",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Hardware Support"}),Ye.jsx("p",{children:"Barcode scanners, receipt printers, and POS hardware. Compatible with all major hardware brands."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(wv,{style:{color:"#FCBAD3",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Security & Compliance"}),Ye.jsx("p",{children:"SSL encryption, data encryption at rest and in transit. GST compliance, audit trails, and secure invoice storage."})]})]})]})}),Ye.jsx("section",{className:"solution-faq",children:Ye.jsxs("div",{className:"faq-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Frequently Asked Questions"}),Ye.jsx("p",{children:"Get answers to common questions about GST Billing & E-Invoice"})]}),Ye.jsxs("div",{className:"faq-list",children:[Ye.jsxs("div",{className:"faq-item "+(0===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(0===c?null:0),children:[Ye.jsx("h3",{children:"What is e-invoice and IRN?"}),Ye.jsx("span",{className:"faq-toggle",children:0===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"E-invoice is a digital invoice generated in a standardized format. IRN (Invoice Reference Number) is a unique number generated by the GST portal for each invoice. Our system automatically generates e-invoices and obtains IRN from the GST portal."})})]}),Ye.jsxs("div",{className:"faq-item "+(1===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(1===c?null:1),children:[Ye.jsx("h3",{children:"How does GST calculation work?"}),Ye.jsx("span",{className:"faq-toggle",children:1===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"GST is automatically calculated based on HSN/SAC codes. The system supports CGST+SGST for intra-state, IGST for inter-state, and CESS where applicable. Tax rates are automatically applied based on product/service codes."})})]}),Ye.jsxs("div",{className:"faq-item "+(2===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(2===c?null:2),children:[Ye.jsx("h3",{children:"Can I file GSTR returns directly?"}),Ye.jsx("span",{className:"faq-toggle",children:2===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"We prepare GSTR-1 and GSTR-3B data in the format required by the GST portal. You can export this data and upload it directly to the GST portal for filing. We also provide reconciliation tools to identify mismatches."})})]}),Ye.jsxs("div",{className:"faq-item "+(3===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(3===c?null:3),children:[Ye.jsx("h3",{children:"What is input tax credit (ITC) tracking?"}),Ye.jsx("span",{className:"faq-toggle",children:3===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"ITC tracking helps you claim credit for GST paid on purchases. The system automatically tracks eligible ITC, matches it with supplier invoices, and helps you claim credit while filing returns."})})]}),Ye.jsxs("div",{className:"faq-item "+(4===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(4===c?null:4),children:[Ye.jsx("h3",{children:"Do I need separate software for e-way bills?"}),Ye.jsx("span",{className:"faq-toggle",children:4===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"No, e-way bill generation is built into the system. For inter-state transactions above ₹50,000, you can generate e-way bills directly from the billing interface."})})]}),Ye.jsxs("div",{className:"faq-item "+(5===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(5===c?null:5),children:[Ye.jsx("h3",{children:"What if I make a mistake in GST calculation?"}),Ye.jsx("span",{className:"faq-toggle",children:5===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"You can generate credit notes or debit notes to correct errors. The system maintains complete audit trails, and all corrections are reflected in subsequent GST returns."})})]})]})]})}),Ye.jsx("section",{className:"solution-cta",children:Ye.jsxs("div",{className:"cta-content",children:[Ye.jsx("h2",{children:"Ready for GST Compliance?"}),Ye.jsx("p",{children:"Simplify your tax compliance with automated GST billing and e-invoice"}),Ye.jsxs("div",{className:"cta-buttons",children:[Ye.jsx("button",{className:"btn-primary",onClick:()=>{e("/home/signin")},children:"Get Started Free"}),Ye.jsx("button",{className:"btn-secondary",onClick:()=>window.open("https://wa.me/917324000014","_blank"),children:"Contact Sales"})]})]})}),Ye.jsx(Whe,{AppCategory:w}),p&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(Afe,{industryRef:m,closingIndustry:h,AppCategory:w,redirectApp:(t,n)=>{nA("AppId",n),nA("AppName",t);const i=t.replace(/[,]/g,"").replace(/\s+/g,"-").replace(/&/g,"and").replace(/[^a-z0-9-]/gi,"").toLowerCase();e(`/industries/${i}`),window.location.reload()}})}),v&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(hfe,{companyRef:b,closingCompany:y})}),r&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(ffe,{solutionsRef:d,closingSolutions:l})})]})},access:"Public"},{path:`${Ofe}solutions/offline-billing`,component:()=>{const e=Qt(),t=um(),n=a.useRef(null),i=a.useRef([]),[r,s]=a.useState(!1),[l,o]=a.useState(!1),d=a.useRef(null),[c,u]=a.useState(null),[p,A]=a.useState(!1),[h,f]=a.useState(!1),m=a.useRef(null),[v,g]=a.useState(!1),[y,x]=a.useState(!1),b=a.useRef(null),[w,j]=a.useState([]),C=[{icon:Fv,title:"Full Offline Functionality",description:"Complete billing, inventory, and customer management works offline. No internet required for day-to-day operations. All features available without connectivity. Process unlimited transactions offline with full data integrity."},{icon:Pv,title:"Automatic Data Synchronization",description:"When internet connection is restored, all offline transactions automatically sync to cloud. No data loss, no manual intervention needed. Seamless background sync with conflict resolution. Queue management for large data transfers."},{icon:Cv,title:"Secure Local Data Storage",description:"All data stored securely on your device with AES-256 encryption. Automatic backups ensure data safety. Works on desktop, tablet, and mobile devices. Local database with full transaction history and audit trails."},{icon:Gm,title:"Zero Business Interruption",description:"Continue operations exactly as before. No learning curve, no feature limitations. Your business never stops, even during network outages. Offline mode indicator shows sync status and pending transactions."}];return a.useEffect((()=>{(async()=>{var e,n,i;try{const a=await t(dL()).unwrap();if(1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)){let e=null==(i=null==(n=null==a?void 0:a.data)?void 0:n.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));j(e)}}catch(a){}})()}),[]),a.useEffect((()=>(n.current&&kce.fromTo(n.current.children,{opacity:0,y:30},{opacity:1,y:0,duration:1,stagger:.2,ease:"power3.out"}),i.current.forEach(((e,t)=>{e&&kce.fromTo(e,{opacity:0,x:-30},{opacity:1,x:0,duration:.8,delay:.1*t,ease:"power3.out",scrollTrigger:{trigger:e,start:"top 85%",toggleActions:"play none none reverse"}})})),()=>{_Ae.getAll().forEach((e=>e.kill()))})),[]),Ye.jsxs("div",{className:"solution-page",children:[Ye.jsx(XAe,{isScrolled:!0,forceTopZero:!0,AppCategory:w,solutionsOpen:r,setSolutionsOpen:s,closingSolutions:l,setClosingSolutions:o,solutionsRef:d,industry:p,setIndustry:A,closingIndustry:h,setClosingIndustry:f,industryRef:m,company:v,setCompany:g,closingCompany:y,setClosingCompany:x,companyRef:b}),Ye.jsxs("section",{className:"solution-hero",ref:n,children:[Ye.jsxs("div",{className:"hero-background",children:[Ye.jsx("div",{className:"gradient-orb orb-1",style:{background:"radial-gradient(circle, #30cfd0 0%, transparent 70%)"}}),Ye.jsx("div",{className:"gradient-orb orb-2",style:{background:"radial-gradient(circle, #330867 0%, transparent 70%)"}})]}),Ye.jsxs("div",{className:"hero-content",children:[Ye.jsxs("div",{className:"hero-badge",children:[Ye.jsx(Qv,{}),Ye.jsx("span",{children:"Offline Billing"})]}),Ye.jsxs("div",{className:"hero-main",children:[Ye.jsxs("div",{className:"hero-text",children:[Ye.jsxs("h1",{className:"hero-title",children:["Never Stop Billing",Ye.jsx("span",{className:"gradient-text",style:{background:"linear-gradient(135deg, #30cfd0 0%, #330867 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:" Even Offline"})]}),Ye.jsx("p",{className:"hero-description",children:"Never let connectivity issues stop your business. Continue billing, managing inventory, and serving customers even without internet. All data is stored locally with encryption and automatically syncs when connection is restored. Perfect for areas with unreliable internet or during network outages. Work offline indefinitely with full functionality. Zero data loss guarantee with transaction logging and automatic conflict resolution."}),Ye.jsxs("div",{className:"hero-cta",children:[Ye.jsxs("button",{className:"btn-primary",onClick:()=>{e("/home/signin")},children:["Start Free Trial",Ye.jsx(DD,{})]}),Ye.jsx("button",{className:"btn-secondary",onClick:()=>window.open("https://wa.me/917324000014","_blank"),children:"Book Demo"})]})]}),Ye.jsx("div",{className:"hero-image",children:Ye.jsx("div",{className:"hero-image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1563013544-824ae1b704d3?w=1200&h=800&fit=crop&q=90",alt:"Offline Billing",className:"hero-product-image"})})})]})]})]}),Ye.jsx("section",{className:"solution-features",children:Ye.jsxs("div",{className:"features-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Why Choose Offline Billing?"}),Ye.jsx("p",{children:"Business continuity guaranteed"})]}),Ye.jsx("div",{className:"features-visual",children:Ye.jsx("div",{className:"features-image",children:Ye.jsx("div",{className:"image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1512941937669-90a1b58e7e9c?w=1200&h=800&fit=crop&q=90",alt:"Offline Billing Features",className:"features-product-image"})})})}),Ye.jsx("div",{className:"features-grid",children:C.map(((e,t)=>{const n=e.icon;return Ye.jsxs("div",{ref:e=>i.current[t]=e,className:"feature-card",children:[Ye.jsx("div",{className:"feature-icon",style:{background:"linear-gradient(135deg, #30cfd0 0%, #330867 100%)"},children:Ye.jsx(n,{})}),Ye.jsx("h3",{children:e.title}),Ye.jsx("p",{children:e.description})]},t)}))})]})}),Ye.jsx("section",{className:"solution-benefits",children:Ye.jsxs("div",{className:"benefits-container",children:[Ye.jsx("div",{className:"benefits-visual-image",children:Ye.jsx("div",{className:"benefits-image-container",children:Ye.jsx("img",{src:"https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?w=1200&h=800&fit=crop&q=90",alt:"Complete Feature Set",className:"benefits-product-image"})})}),Ye.jsxs("div",{className:"benefits-content",children:[Ye.jsx("h2",{children:"Complete Feature Set"}),Ye.jsx("p",{style:{fontSize:"15px",color:"rgba(255, 255, 255, 0.6)",marginBottom:"2rem",lineHeight:"1.6"},children:"Full offline functionality with automatic sync - never let connectivity issues stop your business"}),Ye.jsx("div",{className:"benefits-list",children:["Complete offline functionality - work without internet","Automatic data synchronization when connection restored","Secure local data storage with encryption","Offline customer management and database access","Offline inventory tracking and stock updates","Automatic data backup and recovery system","Background sync when internet is available","Zero data loss guarantee with transaction logging","Offline billing with all payment modes","Offline product and price management","Offline reports generation and viewing","Multi-device offline support","Conflict resolution for simultaneous offline edits","Offline mode indicator and sync status","Manual sync option for critical transactions","Offline data export and import capabilities"].map(((e,t)=>Ye.jsxs("div",{className:"benefit-item",children:[Ye.jsx(LD,{className:"check-icon",style:{color:"#30cfd0"}}),Ye.jsx("span",{children:e})]},t)))})]}),Ye.jsx("div",{className:"benefits-visual",children:Ye.jsxs("div",{className:"visual-card",children:[Ye.jsx(Qv,{className:"visual-icon",style:{color:"#30cfd0"}}),Ye.jsxs("div",{className:"visual-stats",children:[Ye.jsxs("div",{className:"stat",children:[Ye.jsx("div",{className:"stat-value",style:{background:"linear-gradient(135deg, #30cfd0 0%, #330867 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"100%"}),Ye.jsx("div",{className:"stat-label",children:"Reliable"})]}),Ye.jsxs("div",{className:"stat",children:[Ye.jsx("div",{className:"stat-value",style:{background:"linear-gradient(135deg, #30cfd0 0%, #330867 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"Auto"}),Ye.jsx("div",{className:"stat-label",children:"Sync"})]})]})]})})]})}),Ye.jsx("section",{className:"solution-use-cases",children:Ye.jsxs("div",{className:"use-cases-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Perfect For"}),Ye.jsx("p",{children:"Ideal solution for businesses in areas with unreliable internet"})]}),Ye.jsxs("div",{className:"use-cases-grid",children:[Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Mn,{style:{color:"#4A90E2",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Remote Locations"}),Ye.jsx("p",{children:"Stores in rural or remote areas with poor internet connectivity requiring reliable offline operations"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(ti,{style:{color:"#16A085",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Mobile Vendors"}),Ye.jsx("p",{children:"Street vendors and mobile sellers needing billing capabilities without constant internet access"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Hn,{style:{color:"#9B59B6",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Basement Stores"}),Ye.jsx("p",{children:"Shops in basements or areas with weak network signals requiring offline functionality"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Kn,{style:{color:"#3498DB",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Field Sales Teams"}),Ye.jsx("p",{children:"Sales teams working in areas with intermittent connectivity needing mobile billing"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Gn,{style:{color:"#F39C12",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Power Outage Areas"}),Ye.jsx("p",{children:"Businesses in areas with frequent power cuts and internet disruptions"})]}),Ye.jsxs("div",{className:"use-case-card",children:[Ye.jsx("div",{className:"use-case-icon",children:Ye.jsx(Ai,{style:{color:"#E91E63",fontSize:"32px"}})}),Ye.jsx("h3",{children:"Any Business"}),Ye.jsx("p",{children:"Any business wanting backup billing capability during network outages or maintenance"})]})]})]})}),Ye.jsx("section",{className:"solution-integrations",children:Ye.jsxs("div",{className:"integrations-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Integrations & Compatibility"}),Ye.jsx("p",{children:"Seamlessly integrate with your existing tools and hardware. Works offline and syncs automatically when online."})]}),Ye.jsxs("div",{className:"integrations-grid",children:[Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(Qv,{style:{color:"#FF6B6B",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Offline-First Architecture"}),Ye.jsx("p",{children:"Complete functionality without internet. Automatic sync when connection is restored. Zero data loss guarantee."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(Qm,{style:{color:"#4ECDC4",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Hardware Support"}),Ye.jsx("p",{children:"Barcode scanners, receipt printers, cash drawers, and POS hardware. Works offline with all major hardware brands."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(av,{style:{color:"#95E1D3",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Cloud Sync"}),Ye.jsx("p",{children:"Automatic cloud synchronization when online. Secure backup, multi-device access, and data recovery."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(lv,{style:{color:"#FF6B6B",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Payment Processing"}),Ye.jsx("p",{children:"Cash, card, UPI, and wallet support. Offline payment recording with automatic sync when online."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(uv,{style:{color:"#AA96DA",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Invoice Delivery"}),Ye.jsx("p",{children:"Send invoices via email, SMS, and WhatsApp when online. Offline invoices queued for automatic delivery."})]}),Ye.jsxs("div",{className:"integration-item",children:[Ye.jsx("div",{className:"integration-icon",children:Ye.jsx(wv,{style:{color:"#FCBAD3",fontSize:"28px"}})}),Ye.jsx("h3",{children:"Security & Compliance"}),Ye.jsx("p",{children:"AES-256 encryption for local data, SSL encryption for sync, and secure offline storage. Bank-level security."})]})]})]})}),Ye.jsx("section",{className:"solution-faq",children:Ye.jsxs("div",{className:"faq-container",children:[Ye.jsxs("div",{className:"section-header",children:[Ye.jsx("h2",{children:"Frequently Asked Questions"}),Ye.jsx("p",{children:"Get answers to common questions about Offline Billing"})]}),Ye.jsxs("div",{className:"faq-list",children:[Ye.jsxs("div",{className:"faq-item "+(0===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(0===c?null:0),children:[Ye.jsx("h3",{children:"How long can I work offline?"}),Ye.jsx("span",{className:"faq-toggle",children:0===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"You can work offline indefinitely. There's no time limit. All data is stored locally on your device and syncs automatically when internet is available."})})]}),Ye.jsxs("div",{className:"faq-item "+(1===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(1===c?null:1),children:[Ye.jsx("h3",{children:"What happens to my data when offline?"}),Ye.jsx("span",{className:"faq-toggle",children:1===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"All data is stored securely on your device with encryption. When internet connection is restored, all offline transactions automatically sync to the cloud. No data is lost."})})]}),Ye.jsxs("div",{className:"faq-item "+(2===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(2===c?null:2),children:[Ye.jsx("h3",{children:"Are all features available offline?"}),Ye.jsx("span",{className:"faq-toggle",children:2===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Yes, all core features work offline: billing, inventory management, customer database, product management, and reports. Only cloud-specific features like email sending require internet."})})]}),Ye.jsxs("div",{className:"faq-item "+(3===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(3===c?null:3),children:[Ye.jsx("h3",{children:"How do I know if I'm in offline mode?"}),Ye.jsx("span",{className:"faq-toggle",children:3===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"The system displays an offline mode indicator. You'll also see sync status showing when data was last synchronized and when it will sync next."})})]}),Ye.jsxs("div",{className:"faq-item "+(4===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(4===c?null:4),children:[Ye.jsx("h3",{children:"What if multiple devices edit data offline?"}),Ye.jsx("span",{className:"faq-toggle",children:4===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"The system has conflict resolution mechanisms. When syncing, it identifies conflicts and allows you to choose which version to keep or merge changes intelligently."})})]}),Ye.jsxs("div",{className:"faq-item "+(5===c?"open":""),children:[Ye.jsxs("div",{className:"faq-question",onClick:()=>u(5===c?null:5),children:[Ye.jsx("h3",{children:"Can I force sync manually?"}),Ye.jsx("span",{className:"faq-toggle",children:5===c?"−":"+"})]}),Ye.jsx("div",{className:"faq-answer",children:Ye.jsx("p",{children:"Yes, you can manually trigger sync anytime. This is useful for critical transactions that need immediate cloud backup or when you want to ensure data is up to date."})})]})]})]})}),Ye.jsx("section",{className:"solution-cta",children:Ye.jsxs("div",{className:"cta-content",children:[Ye.jsx("h2",{children:"Ready for Uninterrupted Operations?"}),Ye.jsx("p",{children:"Never let connectivity issues stop your business with offline billing"}),Ye.jsxs("div",{className:"cta-buttons",children:[Ye.jsx("button",{className:"btn-primary",onClick:()=>{e("/home/signin")},children:"Get Started Free"}),Ye.jsx("button",{className:"btn-secondary",onClick:()=>window.open("https://wa.me/917324000014","_blank"),children:"Contact Sales"})]})]})}),Ye.jsx(Whe,{AppCategory:w}),p&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(mfe,{industryRef:m,closingIndustry:h,AppCategory:w,redirectApp:(t,n)=>{nA("AppId",n),nA("AppName",t);const i=t.replace(/[,]/g,"").replace(/\s+/g,"-").replace(/&/g,"and").replace(/[^a-z0-9-]/gi,"").toLowerCase();e(`/industries/${i}`),window.location.reload()}})}),v&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(vfe,{companyRef:b,closingCompany:y})}),r&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(gfe,{solutionsRef:d,closingSolutions:l})})]})},access:"Public"},{path:`${Ofe}case-studies`,component:()=>{const e=um(),t=Qt(),[n,i]=a.useState(!1),[r,s]=a.useState(!1),l=a.useRef(null),[o,d]=a.useState(!1),[c,u]=a.useState(!1),p=a.useRef(null),[A,h]=a.useState(!1),[f,m]=a.useState(!1),v=a.useRef(null),[g,y]=a.useState([]);a.useEffect((()=>{(async()=>{var t,n,i;try{const a=await e(dL()).unwrap();if(1===(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)){let e=null==(i=null==(n=null==a?void 0:a.data)?void 0:n.data)?void 0:i.filter((e=>"A"===e.ActiveStatus));y(e)}}catch(a){}})()}),[e]);return Ye.jsxs("div",{className:"case-studies-page",children:[Ye.jsx(XAe,{isScrolled:!0,forceTopZero:!0,AppCategory:g,solutionsOpen:n,setSolutionsOpen:i,closingSolutions:r,setClosingSolutions:s,solutionsRef:l,industry:o,setIndustry:d,closingIndustry:c,setClosingIndustry:u,industryRef:p,company:A,setCompany:h,closingCompany:f,setClosingCompany:m,companyRef:v}),Ye.jsx("div",{className:"case-studies-hero",children:Ye.jsxs("div",{className:"case-studies-hero-content",children:[Ye.jsx("h1",{children:"Case Studies"}),Ye.jsx("p",{children:"Success stories from businesses powered by PozoApp"})]})}),Ye.jsx("div",{className:"case-studies-container",children:Ye.jsxs("div",{className:"coming-soon-message",children:[Ye.jsx("h2",{children:"Coming Soon"}),Ye.jsx("p",{children:"We're currently working on bringing you inspiring success stories from our clients."})]})}),n&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(yfe,{solutionsRef:l,closingSolutions:r})}),o&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(xfe,{industryRef:p,closingIndustry:c,AppCategory:g,redirectApp:(e,n)=>{nA("AppId",n),nA("AppName",e);const i=e.replace(/[,]/g,"").replace(/\s+/g,"-").replace(/&/g,"and").replace(/[^a-z0-9-]/gi,"").toLowerCase();t(`/industries/${i}`),window.location.reload()}})}),A&&Ye.jsx(a.Suspense,{fallback:null,children:Ye.jsx(bfe,{companyRef:v,closingCompany:f})}),Ye.jsx(Whe,{})]})},access:"Public"},{path:`${Ofe}blog`,component:()=>{const[e,t]=a.useState(!1),[n,i]=a.useState([]),[r,s]=a.useState(!1),[l,o]=a.useState(!1),[d,c]=a.useState(!1),u=a.useRef(null),p=a.useRef(null),[A,h]=a.useState(!1),[f,m]=a.useState(!0),[v,g]=a.useState([]),[y,b]=a.useState({}),w=um(),j=Qt(),C="/home/";a.useEffect((()=>{const e=setTimeout((()=>{m(!1)}),500);return()=>clearTimeout(e)}),[]),a.useEffect((()=>{S()}),[]),a.useEffect((()=>{(async()=>{var e,t,n,i,a,r,s;try{const l=await w(HP({TypeName:"SEO"})).unwrap();if(1===(null==(e=null==l?void 0:l.data)?void 0:e.statusCode)){const e=null==(i=null==(n=null==(t=null==l?void 0:l.data)?void 0:t.data)?void 0:n.find((e=>"blog"===e.ConfigName)))?void 0:i.ConfigId;if(!e)return;const o=await w(CU({PageId:e})).unwrap();if(1===(null==(a=null==o?void 0:o.data)?void 0:a.statusCode)&&(null==(s=null==(r=null==o?void 0:o.data)?void 0:r.data)?void 0:s.length)>0){const e=o.data.data[0];b({metaTitle:null==e?void 0:e.MetaTitle,metaDescription:null==e?void 0:e.MetaDesc,keywords:null==e?void 0:e.Keywords,imageAltText:null==e?void 0:e.ImgAltText})}}}catch(l){}})()}),[w]);const S=async()=>{var e,t;try{const n=await w(pte()).unwrap();1==(null==n?void 0:n.data.statusCode)?g((null==(t=null==(e=null==n?void 0:n.data)?void 0:e.data)?void 0:t.map((e=>({id:null==e?void 0:e.BlogId,title:null==e?void 0:e.BlogTitle,excerpt:null==e?void 0:e.BlogSubtitle,author:null==e?void 0:e.BlogAuthor,date:(()=>{if(!(null==e?void 0:e.PublishDate))return"";const t=e.PublishDate.split("T")[0],[n,i,a]=t.split("-"),r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][parseInt(i,10)-1],s=`${parseInt(a,10)} ${r} ${n}`;if(!(null==e?void 0:e.PublishTime))return s;const[l,o]=e.PublishTime.split(":");let d=parseInt(l,10);const c=o,u=d>=12?"PM":"AM";d=d%12||12;return`${s} ${`${d.toString().padStart(2,"0")}:${c} ${u}`}`})(),readTime:"5 min read",CreatedDate:(()=>{if(!(null==e?void 0:e.CreatedDate))return"";const t=e.CreatedDate.split("T")[0],[n,i,a]=t.split("-"),r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][parseInt(i)-1];return`${parseInt(a)} ${r} ${n}`})(),imageUrl:null==e?void 0:e.HeaderImage,slug:null==e?void 0:e.Slug}))))||[]):g([])}catch(n){x.error("Failed to fetch blog posts. Please try again later.")}};a.useEffect((()=>{const e=new Cre({duration:1.2,easing:e=>Math.min(1,1.001-Math.pow(2,-10*e)),smoothWheel:!0,smoothTouch:!0});return e.on("scroll",(e=>{t(e.scroll>50)})),requestAnimationFrame((function t(n){e.raf(n),requestAnimationFrame(t)})),()=>e.destroy()}),[]),a.useEffect((()=>(document.body.style.overflow=l||d?"hidden":"unset",()=>{document.body.style.overflow="unset"})),[l,d]);const N=({post:e})=>Ye.jsxs("div",{className:"pozo-blog-card",onClick:()=>{j(`${C}blog/${e.slug}`)},children:[Ye.jsxs("div",{className:"pozo-blog-card-image",children:[Ye.jsx("img",{src:e.imageUrl,alt:e.title}),Ye.jsx("div",{className:"pozo-blog-card-overlay"})]}),Ye.jsxs("div",{className:"pozo-blog-card-content",children:[Ye.jsx("div",{className:"pozo-blog-tags-container",children:"Recent Updates & Blogs Announcements"}),Ye.jsx("p",{className:"pozo-blog-card-excerpt",children:e.excerpt}),Ye.jsx("div",{className:"pozo-blog-card-meta",children:Ye.jsxs("div",{children:[Ye.jsx("span",{className:"pozo-blog-date",children:`Created Date ${e.CreatedDate}`}),Ye.jsx("div",{className:"pozo-blog-date",children:e.Author||"Admin"})]})}),Ye.jsx("div",{className:"pozo-blog-publish-time",children:Ye.jsx("span",{className:"pozo-blog-read-time",children:e.readTime})})]})]});if(f)return Ye.jsx(Che,{});return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(bU,{title:y.metaTitle||"POZO Blog — Retail ERP, POS & Grocery Billing Guides",description:y.metaDescription||"Practical guides on POS billing, weighing-scale integration, GST e-invoices, multi-store ERP & inventory control for Indian retailers.",keywords:y.keywords||"POS billing, weighing scale integration, GST e-invoices, retail ERP, inventory management, grocery billing guides",url:`${C}blog`,image:y.imageAltText||"/og/blog-og.jpg",type:"website",customJsonLd:[{"@context":"https://schema.org","@type":"WebPage","@id":"https://www.pozo.app/home/blog",name:"POZO Blog — Retail ERP, POS & Grocery Billing Guides",isPartOf:{"@id":"https://www.pozo.app/"},description:"Practical guides on POS billing, weighing-scale integration, GST e-invoices, multi-store ERP & inventory control for Indian retailers."},{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://www.pozo.app/home/"},{"@type":"ListItem",position:2,name:"Blog",item:"https://www.pozo.app/home/blog"}]}]}),Ye.jsxs("div",{className:"pozo-blog-master-card",children:[Ye.jsx(XAe,{isScrolled:e,forceTopZero:!0,AppCategory:n,closingIndustry:r,setClosingIndustry:s,industry:l,setIndustry:o,companyRef:u,closingCompany:A,setClosingCompany:h,company:d,setCompany:c,industryRef:p}),Ye.jsxs("div",{className:"pozo-blogs-page",children:[Ye.jsx("h1",{className:"pozo-blog-page-title",children:"Recent Updates & Blogs"}),Ye.jsx("p",{className:"pozo-blog-page-subtitle",children:"Stay updated with the latest news, announcements, and blog posts from PozoApp. Discover insights on business management, technology trends, and more."}),Ye.jsx("div",{className:"pozo-blogs-grid",children:v.length>0?v.map((e=>Ye.jsx(N,{post:e},e.id))):Ye.jsx("div",{className:"pozo-blog-empty-state",children:Ye.jsx("p",{children:"No blog posts available at the moment. Please check back later for updates."})})})]}),l&&Ye.jsx(KAe,{closingIndustry:r,AppCategory:n,redirectApp:(e,t)=>{}}),d&&Ye.jsx(Ohe,{companyRef:u,closingCompany:A}),Ye.jsxs("div",{className:"liveFooterMain",style:{marginTop:"5rem"},children:[Ye.jsxs("div",{className:"liveFooterLeft",children:[Ye.jsx("p",{className:"listTitle",children:"Quick Links"}),Ye.jsxs("div",{className:"LiveFooterList",children:[Ye.jsx("p",{children:"About Pozo"}),Ye.jsx("p",{children:"All Products "}),Ye.jsx("p",{children:"Pricing Plans "}),Ye.jsx("p",{children:"Contact Us "}),Ye.jsx("p",{children:"FAQs "})]})]}),Ye.jsxs("div",{className:"liveFooterRight",children:[Ye.jsx("p",{className:"listTitle",children:"Support & Help"}),Ye.jsxs("div",{className:"LiveFooterList",children:[Ye.jsx("p",{children:"info@pozo.app"}),Ye.jsx("p",{children:"73 24 00 00 11"}),Ye.jsx("p",{children:"73 24 00 00 12"})," ",Ye.jsxs("span",{children:["Let's get social",Ye.jsx(cg,{}),Ye.jsx(km,{}),Ye.jsx(ug,{}),Ye.jsx(_m,{})]})]})]})]}),Ye.jsxs("div",{className:"liveFooterRights",children:[Ye.jsxs("div",{children:["© 2025 PozoApp ",Ye.jsx("span",{children:"Privacy Policy Cookie Policy"})]}),Ye.jsx("p",{children:"For queries contact us: Manager, No 51 Step Colony, Dharga,Hosur, Krishnagiri, Tamilnadu-635126, India"})]})]})]})},access:"Public"},{path:`${Ofe}blog/:slug`,component:()=>{var e;const{slug:t}=Vt(),n=Qt(),i=um(),[r,s]=a.useState(null),[l,o]=a.useState(!0),[d,c]=a.useState(!1),[u,p]=a.useState(!1),A=a.useRef(null);a.useEffect((()=>{const e=e=>{A.current&&!A.current.contains(e.target)&&p(!1)},t=e=>{"Escape"===e.key&&p(!1)};return u&&(document.addEventListener("mousedown",e),document.addEventListener("keydown",t)),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}),[u]),a.useEffect((()=>{h()}),[t]),a.useEffect((()=>{const e=new Cre({duration:1,easing:e=>Math.min(1,1.001-Math.pow(2,-10*e)),smoothWheel:!0,smoothTouch:!0});return requestAnimationFrame((function t(n){e.raf(n),requestAnimationFrame(t)})),()=>e.destroy()}),[]);const h=async()=>{var e,n;try{const a=await i(Ate({slug:t})).unwrap();if(1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)){const e=null==(n=a.data.data)?void 0:n[0];s(e)}else x.error("Failed to load blog posts");o(!1)}catch(a){x.error("Failed to load blog post"),o(!1)}};if(l)return Ye.jsx(Che,{});if(!r)return Ye.jsx("div",{className:"BlogDetailMaster",children:Ye.jsx("div",{className:"blog-detail-error",children:"Blog post not found"})});const f=()=>{n(`${Lfe}`)};return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(bU,{title:(null==r?void 0:r.BlogTitle)||"POZO Blog — Retail ERP, POS & Grocery Billing Guides",description:(null==r?void 0:r.BlogSubtitle)||"Read the latest insights on POS billing, weighing-scale integration, GST e-invoices, and retail ERP solutions for Indian businesses.",image:(null==r?void 0:r.HeaderImage)||"/og/blog-og.jpg",url:`https://www.pozo.devblog/${t}`,type:"article",publishedTime:null==r?void 0:r.CreatedDate,modifiedTime:(null==r?void 0:r.UpdatedDate)||(null==r?void 0:r.CreatedDate),keywords:(null==(e=null==r?void 0:r.Keywords)?void 0:e.join(", "))||"PozoApp, Blog, POS software, retail ERP, GST billing, inventory management"}),d&&Ye.jsx("div",{className:"drawer-overlay",onClick:()=>c(!1)}),Ye.jsx("div",{className:"drawer "+(d?"open":""),children:Ye.jsxs("div",{className:"drawer-content",children:[Ye.jsxs("div",{onClick:f,children:[Ye.jsx(tg,{})," Home"]}),Ye.jsxs("div",{onClick:()=>{n(`${Lfe}blog`)},children:[Ye.jsx(lg,{})," Blog"]})]})}),Ye.jsxs("div",{className:"BlogDetailMaster",children:[Ye.jsx("header",{className:"blog-detail-header",children:Ye.jsx("nav",{className:"navbar",children:Ye.jsxs("div",{className:"navbar-left",children:[Ye.jsx("div",{className:"hamburger-menu",onClick:()=>c(!d),children:Ye.jsx(Efe,{size:20})}),Ye.jsxs("div",{className:"Blognavbar-logo",onClick:f,children:[Ye.jsx("img",{src:Bm,alt:"Logo",className:"logo-img"}),Ye.jsx("div",{className:"blogdetailsNavbarText",children:"| Blog"})]})]})})}),Ye.jsxs("div",{className:"blog-detail-contentMain",children:[Ye.jsxs("article",{className:"blog-detail-content",children:[Ye.jsxs("header",{className:"blog-header",children:[Ye.jsx("h1",{className:"blog-title",children:r.BlogTitle}),Ye.jsx("p",{className:"blog-subtitle",children:r.BlogSubtitle}),Ye.jsxs("div",{className:"blog-meta",children:[Ye.jsxs("div",{className:"meta-item",children:[Ye.jsx(Fg,{}),r.Author||"Admin"]}),r.CreatedDate&&Ye.jsxs("div",{className:"meta-item",children:[Ye.jsx(ig,{})," ",(()=>{if(!(null==r?void 0:r.CreatedDate))return"";const e=r.CreatedDate.split("T")[0],[t,n,i]=e.split("-"),a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][parseInt(n)-1];return`${parseInt(i)} ${a} ${t}`})()]})]})]}),r.HeaderImage&&Ye.jsx("div",{children:Ye.jsx("img",{className:"blog-poster",src:r.HeaderImage,alt:r.BlogTitle})}),Ye.jsxs("div",{className:"blog-body",children:[r.BlogContent&&r.BlogContent.map(((e,t)=>{var n,i;switch(e.type){case"header":case"oldHeader":const a=`h${e.data.level||2}`;return Ye.jsx(a,{className:`blog-header-block level-${e.data.level}`,dangerouslySetInnerHTML:{__html:e.data.text}},t);case"paragraph":return Ye.jsx("p",{className:"blog-paragraph",dangerouslySetInnerHTML:{__html:e.data.text}},t);case"list":return"checklist"===e.data.style?Ye.jsx("ul",{className:"blog-list checklist",children:e.data.items.map(((e,t)=>{var n;return Ye.jsxs("li",{className:"checklist-item",children:[Ye.jsx("input",{type:"checkbox",checked:null==(n=e.meta)?void 0:n.checked,readOnly:!0}),Ye.jsx("span",{children:e.content})]},t)}))},t):"ordered"===e.data.style?Ye.jsx("ol",{className:"blog-list ordered",children:e.data.items.map(((e,t)=>Ye.jsx("li",{children:e.content},t)))},t):Ye.jsx("ul",{className:"blog-list unordered",children:e.data.items.map(((e,t)=>Ye.jsx("li",{children:e.content},t)))},t);case"image":return Ye.jsxs("div",{className:"blog-image",children:[Ye.jsx("img",{src:null==(n=e.data.file)?void 0:n.url,alt:e.data.caption||"Blog image"}),e.data.caption&&Ye.jsx("p",{className:"caption",children:e.data.caption})]},t);case"separator":return Ye.jsx("hr",{className:`blog-separator ${e.data.style||"line"}`},t);case"video":return Ye.jsxs("div",{className:"blog-video",children:[(null==(i=e.data.file)?void 0:i.url)&&Ye.jsx("video",{src:e.data.file.url,controls:!0,className:"video-player"}),e.data.caption&&Ye.jsx("p",{className:"caption",children:e.data.caption})]},t);case"link":return Ye.jsx("div",{className:"blog-link",children:Ye.jsx("a",{href:e.data.url,target:e.data.target||"_self",children:e.data.text})},t);case"quote":return Ye.jsxs("blockquote",{className:"blog-quote",children:[Ye.jsx("p",{children:e.data.text}),e.data.caption&&Ye.jsx("cite",{children:e.data.caption})]},t);case"code":return Ye.jsx("pre",{className:"blog-code",children:Ye.jsx("code",{children:e.data.code})},t);case"cta":return Ye.jsxs("div",{className:"blog-cta",children:[Ye.jsx("h3",{children:e.data.heading}),Ye.jsx("p",{children:e.data.subheading}),Ye.jsx("a",{href:e.data.buttonUrl,className:`cta-button ${e.data.style}`,children:e.data.buttonText})]},t);case"email":return Ye.jsxs("div",{className:"blog-email",children:[Ye.jsxs("h4",{children:["Subject: ",e.data.subject]}),Ye.jsx("div",{dangerouslySetInnerHTML:{__html:e.data.bodyHtml}})]},t);case"bookmark":return Ye.jsx("div",{className:"blog-bookmark",children:Ye.jsxs("a",{href:e.data.url,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",gap:"16px",textDecoration:"none",border:"1px solid #e5e7eb",borderRadius:"8px",padding:"16px"},children:[Ye.jsxs("div",{className:"bookmark-content",style:{flex:1},children:[Ye.jsx("h4",{style:{margin:"0 0 8px 0",color:"#1f2937"},children:e.data.title}),Ye.jsx("p",{style:{margin:"0 0 8px 0",color:"#6b7280",fontSize:"14px"},children:e.data.description}),Ye.jsx("span",{className:"bookmark-url",style:{color:"#3b82f6",fontSize:"12px"},children:e.data.url})]}),e.data.image&&Ye.jsx("img",{src:e.data.image,alt:e.data.title,style:{width:"120px",height:"90px",objectFit:"cover",borderRadius:"6px",flexShrink:0}})]})},t);case"callout":return Ye.jsxs("div",{className:"blog-callout",children:[Ye.jsx("span",{className:"callout-emoji",children:e.data.emoji||"💡"}),Ye.jsx("p",{children:e.data.text})]},t);case"index":const r="numbered"===e.data.style?"ol":"ul";return Ye.jsxs("div",{className:"blog-index",children:[Ye.jsx("h4",{children:"Table of Contents"}),Ye.jsx(r,{children:(e.data.items||[]).map(((e,t)=>Ye.jsx("li",{children:Ye.jsx("a",{href:`#${e.anchor}`,children:e.title})},t)))})]},t);default:return null}})),Ye.jsxs("div",{className:"shareBlog",children:[Ye.jsxs("button",{className:"share-btn",onClick:()=>p(!u),children:[Ye.jsx(Cg,{})," Share"]}),u&&Ye.jsxs("div",{className:"share-options",ref:A,children:[Ye.jsxs("div",{className:"share-header",children:[Ye.jsx("span",{children:"Share to"}),Ye.jsx("button",{onClick:()=>p(!1),children:Ye.jsx(gg,{size:20})})]}),Ye.jsxs("div",{className:"share-buttons",children:[Ye.jsx("button",{onClick:()=>{const e=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(window.location.href)}`;window.open(e,"_blank")},className:"share-facebook",children:Ye.jsx(km,{})}),Ye.jsx("button",{onClick:()=>{const e=`https://wa.me/?text=${encodeURIComponent(r.BlogTitle+" "+window.location.href)}`;window.open(e,"_blank")},className:"share-whatsapp",children:Ye.jsx(Um,{})}),Ye.jsx("button",{onClick:()=>{const e=`https://twitter.com/intent/tweet?text=${encodeURIComponent(r.BlogTitle)}&url=${encodeURIComponent(window.location.href)}`;window.open(e,"_blank")},className:"share-twitter",children:Ye.jsx(AE,{})}),Ye.jsx("button",{onClick:()=>{const e=`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(window.location.href)}`;window.open(e,"_blank")},className:"share-linkedin",children:Ye.jsx(Em,{})}),Ye.jsx("button",{onClick:()=>{const e=`https://t.me/share/url?url=${encodeURIComponent(window.location.href)}&text=${encodeURIComponent(r.BlogTitle)}`;window.open(e,"_blank")},className:"share-telegram",children:Ye.jsx(Dm,{})}),Ye.jsx("button",{onClick:()=>{window.open("https://www.instagram.com/","_blank"),navigator.clipboard.writeText(window.location.href),x.success("Instagram opened! Link copied to paste in your story or bio.")},className:"share-instagram",children:Ye.jsx(Tm,{})}),Ye.jsxs("button",{onClick:async()=>{try{await navigator.clipboard.writeText(window.location.href),x.success("Link copied to clipboard!")}catch(e){const t=document.createElement("textarea");t.value=window.location.href,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),x.success("Link copied to clipboard!")}},className:"share-copy",children:[Ye.jsx(sv,{})," Copy Link"]})]})]})]})]})]}),Ye.jsx(Dfe,{allowComments:null==r?void 0:r.AllowComments,blogId:null==r?void 0:r.BlogId})]})]}),Ye.jsxs("div",{className:"liveFooterRights",children:[Ye.jsxs("div",{children:["© 2025 PozoApp",Ye.jsx("div",{className:"linktoPrivayCookie",onClick:()=>{n(`${Lfe}privacy-policy`)},children:"Privacy Policy"}),Ye.jsx("div",{className:"linktoPrivayCookie",onClick:()=>{n(`${Lfe}cookie-policy`)},children:"Cookie Policy"})]}),Ye.jsx("p",{children:"For queries contact us: Manager, No 51 Step Colony, Dharga,Hosur, Krishnagiri, Tamilnadu-635126, India"})]})]})},access:"Public"},{path:`${Ofe}PostEditorPage`,component:({initial:e})=>Ye.jsxs(vte,{initial:e,children:[Ye.jsx(Kte,{}),Ye.jsx(Mte,{})]}),access:"Public"},{path:`${Ofe}privacy-policy`,component:()=>{const e=Qt();a.useEffect((()=>{window.scrollTo(0,0)}),[]);return Ye.jsxs("div",{className:"privacy-policy-container",children:[Ye.jsxs("div",{className:"privacy-header",children:[Ye.jsxs("div",{onClick:()=>{e("/home/")},className:"back-link ",children:[Ye.jsx(Zv,{})," Back to Home"]}),Ye.jsxs("div",{className:"header-content",children:[Ye.jsx(Sg,{className:"privacy-icon"}),Ye.jsx("h1",{children:"Privacy Policy"}),Ye.jsx("p",{children:"Last updated: January 2025"})]})]}),Ye.jsxs("div",{className:"privacy-content",children:[Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"1. Introduction"}),Ye.jsx("p",{children:'Welcome to PozoApp ("we," "our," or "us"). This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our AI-powered business management platform, including our mobile applications, web services, and related services (collectively, the "Services").'}),Ye.jsx("p",{children:"PozoApp provides comprehensive business management solutions across multiple industries including restaurants, retail, manufacturing, and more. We are committed to protecting your privacy and ensuring transparency about our data practices."})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"2. Information We Collect"}),Ye.jsx("h3",{children:"2.1 Personal Information"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Account Information:"})," Name, email address, phone number, business details"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Profile Data:"})," Business type, industry category, company information"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Authentication Data:"})," Login credentials, OTP verification details"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Payment Information:"})," Billing address, payment method details (processed securely through third-party providers)"]})]}),Ye.jsx("h3",{children:"2.2 Business Data"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Operational Data:"})," Inventory, sales, customer records, employee information"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Transaction Data:"})," Purchase history, payment records, invoices"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Analytics Data:"})," Business performance metrics, usage statistics"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Content Data:"})," Images, videos, documents uploaded to the platform"]})]}),Ye.jsx("h3",{children:"2.3 Technical Information"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Device Information:"})," Device type, operating system, browser information"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Usage Data:"})," App interactions, feature usage, session duration"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Location Data:"})," GPS coordinates for delivery and location-based services (with consent)"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Log Data:"})," IP addresses, access times, error logs"]})]})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"3. How We Use Your Information"}),Ye.jsx("h3",{children:"3.1 Service Provision"}),Ye.jsxs("ul",{children:[Ye.jsx("li",{children:"Provide and maintain our business management platform"}),Ye.jsx("li",{children:"Process transactions and manage payments"}),Ye.jsx("li",{children:"Generate business analytics and reports"}),Ye.jsx("li",{children:"Facilitate communication between businesses and customers"})]}),Ye.jsx("h3",{children:"3.2 AI and Machine Learning"}),Ye.jsxs("ul",{children:[Ye.jsx("li",{children:"Improve our AI algorithms for better business insights"}),Ye.jsx("li",{children:"Provide personalized recommendations and automation"}),Ye.jsx("li",{children:"Enhance predictive analytics for inventory and sales"}),Ye.jsx("li",{children:"Optimize platform performance and user experience"})]}),Ye.jsx("h3",{children:"3.3 Communication"}),Ye.jsxs("ul",{children:[Ye.jsx("li",{children:"Send service notifications and updates"}),Ye.jsx("li",{children:"Provide customer support"}),Ye.jsx("li",{children:"Share important platform announcements"}),Ye.jsx("li",{children:"Send marketing communications (with consent)"})]})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"4. Information Sharing and Disclosure"}),Ye.jsx("h3",{children:"4.1 We Do Not Sell Personal Information"}),Ye.jsx("p",{children:"We do not sell, rent, or trade your personal information to third parties for their marketing purposes."}),Ye.jsx("h3",{children:"4.2 Authorized Sharing"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Service Providers:"})," Payment processors, cloud storage providers, analytics services"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Business Partners:"})," Integration partners for enhanced functionality"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Legal Requirements:"})," When required by law or to protect our rights"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Business Transfers:"})," In case of merger, acquisition, or asset sale"]})]}),Ye.jsx("h3",{children:"4.3 Data Processing Partners"}),Ye.jsxs("ul",{children:[Ye.jsx("li",{children:"Payment gateways (UPI, credit/debit cards, net banking)"}),Ye.jsx("li",{children:"Cloud infrastructure providers"}),Ye.jsx("li",{children:"SMS and email service providers"}),Ye.jsx("li",{children:"Analytics and monitoring services"})]})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"5. Data Security"}),Ye.jsxs("div",{className:"security-features",children:[Ye.jsxs("div",{className:"security-item",children:[Ye.jsx(og,{}),Ye.jsxs("div",{children:[Ye.jsx("h4",{children:"Encryption"}),Ye.jsx("p",{children:"All data is encrypted in transit and at rest using industry-standard protocols"})]})]}),Ye.jsxs("div",{className:"security-item",children:[Ye.jsx(Sg,{}),Ye.jsxs("div",{children:[Ye.jsx("h4",{children:"Access Controls"}),Ye.jsx("p",{children:"Strict access controls and authentication mechanisms protect your data"})]})]}),Ye.jsxs("div",{className:"security-item",children:[Ye.jsx(Fg,{}),Ye.jsxs("div",{children:[Ye.jsx("h4",{children:"Regular Audits"}),Ye.jsx("p",{children:"Regular security audits and vulnerability assessments ensure platform security"})]})]})]}),Ye.jsx("p",{children:"We implement appropriate technical and organizational measures to protect your information against unauthorized access, alteration, disclosure, or destruction. However, no method of transmission over the internet is 100% secure."})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"6. Your Rights and Choices"}),Ye.jsx("h3",{children:"6.1 Access and Control"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Access:"})," Request access to your personal information"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Correction:"})," Update or correct inaccurate information"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Deletion:"})," Request deletion of your personal information"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Portability:"})," Export your data in a structured format"]})]}),Ye.jsx("h3",{children:"6.2 Communication Preferences"}),Ye.jsxs("ul",{children:[Ye.jsx("li",{children:"Opt-out of marketing communications"}),Ye.jsx("li",{children:"Manage notification settings"}),Ye.jsx("li",{children:"Control SMS and email preferences"})]}),Ye.jsx("h3",{children:"6.3 Account Management"}),Ye.jsxs("ul",{children:[Ye.jsx("li",{children:"Deactivate or delete your account"}),Ye.jsx("li",{children:"Manage connected applications and integrations"}),Ye.jsx("li",{children:"Control data sharing preferences"})]})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"7. Data Retention"}),Ye.jsx("p",{children:"We retain your information for as long as necessary to provide our services and comply with legal obligations. Specific retention periods include:"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Account Data:"})," Retained while your account is active"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Transaction Records:"})," Retained for 7 years for tax and legal compliance"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Analytics Data:"})," Aggregated data may be retained indefinitely"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Support Records:"})," Retained for 3 years after resolution"]})]})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"8. International Data Transfers"}),Ye.jsx("p",{children:"Your information may be transferred to and processed in countries other than your country of residence. We ensure appropriate safeguards are in place to protect your information in accordance with applicable data protection laws."})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"9. Children's Privacy"}),Ye.jsx("p",{children:"Our services are not intended for individuals under the age of 18. We do not knowingly collect personal information from children under 18. If we become aware that we have collected such information, we will take steps to delete it promptly."})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"10. Updates to This Policy"}),Ye.jsx("p",{children:'We may update this Privacy Policy from time to time. We will notify you of any material changes by posting the new Privacy Policy on this page and updating the "Last updated" date. Your continued use of our services after such modifications constitutes acceptance of the updated Privacy Policy.'})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"11. Contact Information"}),Ye.jsxs("div",{className:"contact-info",children:[Ye.jsxs("div",{className:"contact-item",children:[Ye.jsx("h4",{children:"General Inquiries"}),Ye.jsxs("p",{children:["Email: ",Ye.jsx("a",{href:"mailto:info@pozo.app",children:"info@pozo.app"})]}),Ye.jsxs("p",{children:["Phone: ",Ye.jsx("a",{href:"tel:+917324000011",children:"+91 73240 00011"})]})]}),Ye.jsxs("div",{className:"contact-item",children:[Ye.jsx("h4",{children:"Privacy Officer"}),Ye.jsxs("p",{children:["Email: ",Ye.jsx("a",{href:"mailto:privacy@pozo.app",children:"privacy@pozo.app"})]})]}),Ye.jsxs("div",{className:"contact-item",children:[Ye.jsx("h4",{children:"Postal Address"}),Ye.jsxs("p",{children:["PozoMind Technologies",Ye.jsx("br",{}),"No 51 Step Colony, Dharga",Ye.jsx("br",{}),"Hosur, Krishnagiri",Ye.jsx("br",{}),"Tamil Nadu - 635126, India"]})]})]})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"12. Compliance and Certifications"}),Ye.jsx("p",{children:"PozoApp is committed to compliance with applicable data protection regulations including:"}),Ye.jsxs("ul",{children:[Ye.jsx("li",{children:"Information Technology Act, 2000 (India)"}),Ye.jsx("li",{children:"Personal Data Protection Bill (India)"}),Ye.jsx("li",{children:"GDPR (for European users)"}),Ye.jsx("li",{children:"Industry-specific compliance requirements"})]})]}),Ye.jsx("div",{className:"privacy-footer",children:Ye.jsx("p",{children:"By using PozoApp, you acknowledge that you have read and understood this Privacy Policy and agree to the collection, use, and disclosure of your information as described herein."})})]})]})},access:"Public"},{path:`${Ofe}cookie-policy`,component:()=>{const e=Qt();a.useEffect((()=>{window.scrollTo(0,0)}),[]);return Ye.jsxs("div",{className:"privacy-policy-container",children:[Ye.jsxs("div",{className:"privacy-header",children:[Ye.jsxs("div",{onClick:()=>{e("/home/")},className:"back-link ",children:[Ye.jsx(Zv,{})," Back to Home"]}),Ye.jsxs("div",{className:"header-content",children:[Ye.jsx(jg,{className:"privacy-icon"}),Ye.jsx("h1",{children:"Cookie Policy"}),Ye.jsx("p",{children:"Last updated: January 2025"})]})]}),Ye.jsxs("div",{className:"privacy-content",children:[Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"1. Introduction"}),Ye.jsx("p",{children:'This Cookie Policy explains how PozoApp ("we," "our," or "us") uses cookies and similar technologies when you visit our AI-powered business management platform, including our mobile applications, web services, and related services (collectively, the "Services").'}),Ye.jsx("p",{children:"This policy explains what cookies are, how we use them, the types of cookies we use, and how you can control your cookie preferences. By using our Services, you consent to the use of cookies as described in this policy."})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"2. What Are Cookies"}),Ye.jsx("p",{children:"Cookies are small text files that are stored on your device (computer, tablet, or mobile) when you visit a website. They are widely used to make websites work more efficiently and provide information to website owners."}),Ye.jsx("p",{children:"Cookies help us understand how you use our platform, remember your preferences, and provide you with a personalized experience. They also help us improve our services and ensure the security of your account."})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"3. Types of Cookies We Use"}),Ye.jsx("h3",{children:"3.1 Essential Cookies"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Authentication Cookies:"})," Remember your login status and session information"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Security Cookies:"})," Protect against fraud and ensure secure transactions"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Load Balancing:"})," Distribute network traffic for optimal performance"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"CSRF Protection:"})," Prevent cross-site request forgery attacks"]})]}),Ye.jsx("h3",{children:"3.2 Functional Cookies"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Preference Cookies:"})," Remember your settings and preferences"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Language Settings:"})," Store your preferred language and region"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Theme Preferences:"})," Remember your UI theme and layout choices"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Dashboard Configuration:"})," Save your customized dashboard settings"]})]}),Ye.jsx("h3",{children:"3.3 Analytics Cookies"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Usage Analytics:"})," Track how you interact with our platform"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Performance Monitoring:"})," Monitor application performance and errors"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Feature Usage:"})," Understand which features are most popular"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"User Journey:"})," Analyze user paths and behavior patterns"]})]}),Ye.jsx("h3",{children:"3.4 Marketing Cookies"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Advertising:"})," Deliver relevant advertisements based on your interests"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Retargeting:"})," Show you relevant ads on other websites"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Campaign Tracking:"})," Measure the effectiveness of marketing campaigns"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Social Media:"})," Enable social media sharing and integration"]})]})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"4. How We Use Cookies"}),Ye.jsx("h3",{children:"4.1 Platform Functionality"}),Ye.jsxs("ul",{children:[Ye.jsx("li",{children:"Maintain your login session across different pages"}),Ye.jsx("li",{children:"Remember your business settings and configurations"}),Ye.jsx("li",{children:"Provide personalized dashboard and reports"}),Ye.jsx("li",{children:"Enable seamless navigation between different modules"})]}),Ye.jsx("h3",{children:"4.2 Security and Fraud Prevention"}),Ye.jsxs("ul",{children:[Ye.jsx("li",{children:"Detect and prevent unauthorized access attempts"}),Ye.jsx("li",{children:"Monitor for suspicious activities and fraud"}),Ye.jsx("li",{children:"Implement multi-factor authentication"}),Ye.jsx("li",{children:"Protect against automated attacks and bots"})]}),Ye.jsx("h3",{children:"4.3 Performance Optimization"}),Ye.jsxs("ul",{children:[Ye.jsx("li",{children:"Optimize loading times and application performance"}),Ye.jsx("li",{children:"Cache frequently accessed data and resources"}),Ye.jsx("li",{children:"Balance server load for better user experience"}),Ye.jsx("li",{children:"Monitor and improve system reliability"})]}),Ye.jsx("h3",{children:"4.4 Analytics and Insights"}),Ye.jsxs("ul",{children:[Ye.jsx("li",{children:"Understand user behavior and preferences"}),Ye.jsx("li",{children:"Improve our AI algorithms and recommendations"}),Ye.jsx("li",{children:"Generate business insights and analytics"}),Ye.jsx("li",{children:"Enhance user experience based on usage patterns"})]})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"5. Third-Party Cookies"}),Ye.jsx("p",{children:"We may use third-party services that set cookies on your device. These services help us provide better functionality and analyze usage patterns."}),Ye.jsx("h3",{children:"5.1 Analytics Services"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Google Analytics:"})," Website and application usage analytics"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Mixpanel:"})," User behavior tracking and analysis"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Hotjar:"})," User session recordings and heatmaps"]})]}),Ye.jsx("h3",{children:"5.2 Payment Processors"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Razorpay:"})," Payment processing and fraud detection"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"PayU:"})," Secure payment gateway services"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"CCAvenue:"})," Multi-payment option processing"]})]}),Ye.jsx("h3",{children:"5.3 Communication Services"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"SMS Gateways:"})," OTP and notification delivery"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Email Services:"})," Transactional and marketing emails"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"WhatsApp Business:"})," Customer communication"]})]})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"6. Cookie Management"}),Ye.jsxs("div",{className:"security-features",children:[Ye.jsxs("div",{className:"security-item",children:[Ye.jsx(jg,{}),Ye.jsxs("div",{children:[Ye.jsx("h4",{children:"Browser Settings"}),Ye.jsx("p",{children:"Control cookies through your browser's privacy settings"})]})]}),Ye.jsxs("div",{className:"security-item",children:[Ye.jsx(Sg,{}),Ye.jsxs("div",{children:[Ye.jsx("h4",{children:"Opt-Out Options"}),Ye.jsx("p",{children:"Choose which types of cookies you want to accept"})]})]}),Ye.jsxs("div",{className:"security-item",children:[Ye.jsx(Fg,{}),Ye.jsxs("div",{children:[Ye.jsx("h4",{children:"Preference Center"}),Ye.jsx("p",{children:"Manage your cookie preferences in your account settings"})]})]})]}),Ye.jsx("h3",{children:"6.1 Browser Controls"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Chrome:"})," Settings Privacy and Security"," > ","Cookies and other site data"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Firefox:"})," Options Privacy & Security "," > "," Cookies and Site Data"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Safari:"})," Preferences "," > ","Privacy "," > "," Manage Website Data"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Edge:"})," Settings "," > "," Cookies and site permissions"]})]}),Ye.jsx("h3",{children:"6.2 Mobile Devices"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"iOS:"})," Settings"," > "," Safari "," > "," Privacy & Security"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Android:"})," Chrome app "," > "," Settings "," > ","Site settings "," > "," Cookies"]})]})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"7. Cookie Retention"}),Ye.jsx("p",{children:"Different types of cookies have different retention periods:"}),Ye.jsxs("ul",{children:[Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Session Cookies:"})," Deleted when you close your browser"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Authentication Cookies:"})," Expire after 30 days of inactivity"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Preference Cookies:"})," Retained for up to 1 year"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Analytics Cookies:"})," Retained for up to 2 years"]}),Ye.jsxs("li",{children:[Ye.jsx("strong",{children:"Marketing Cookies:"})," Retained for up to 13 months"]})]})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"8. Impact of Disabling Cookies"}),Ye.jsx("p",{children:"While you can disable cookies, doing so may affect your experience with our platform:"}),Ye.jsxs("ul",{children:[Ye.jsx("li",{children:"You may need to log in repeatedly"}),Ye.jsx("li",{children:"Your preferences and settings may not be saved"}),Ye.jsx("li",{children:"Some features may not work properly"}),Ye.jsx("li",{children:"You may see less relevant content and advertisements"}),Ye.jsx("li",{children:"Performance may be slower due to lack of caching"})]})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"9. Updates to This Policy"}),Ye.jsx("p",{children:'We may update this Cookie Policy from time to time to reflect changes in our practices or for legal, operational, or regulatory reasons. We will notify you of any material changes by posting the updated policy on our website and updating the "Last updated" date.'})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"10. Contact Information"}),Ye.jsxs("div",{className:"contact-info",children:[Ye.jsxs("div",{className:"contact-item",children:[Ye.jsx("h4",{children:"General Inquiries"}),Ye.jsxs("p",{children:["Email: ",Ye.jsx("a",{href:"mailto:info@pozo.app",children:"info@pozo.app"})]}),Ye.jsxs("p",{children:["Phone: ",Ye.jsx("a",{href:"tel:+917324000011",children:"+91 73240 00011"})]})]}),Ye.jsxs("div",{className:"contact-item",children:[Ye.jsx("h4",{children:"Privacy Officer"}),Ye.jsxs("p",{children:["Email: ",Ye.jsx("a",{href:"mailto:privacy@pozo.app",children:"privacy@pozo.app"})]})]}),Ye.jsxs("div",{className:"contact-item",children:[Ye.jsx("h4",{children:"Postal Address"}),Ye.jsxs("p",{children:["PozoMind Technologies",Ye.jsx("br",{}),"No 51 Step Colony, Dharga",Ye.jsx("br",{}),"Hosur, Krishnagiri",Ye.jsx("br",{}),"Tamil Nadu - 635126, India"]})]})]})]}),Ye.jsxs("section",{className:"privacy-section",children:[Ye.jsx("h2",{children:"11. Legal Compliance"}),Ye.jsx("p",{children:"This Cookie Policy complies with applicable laws and regulations including:"}),Ye.jsxs("ul",{children:[Ye.jsx("li",{children:"Information Technology Act, 2000 (India)"}),Ye.jsx("li",{children:"Personal Data Protection Bill (India)"}),Ye.jsx("li",{children:"GDPR Cookie Consent requirements (EU)"}),Ye.jsx("li",{children:"CCPA Cookie disclosure requirements (California)"})]})]}),Ye.jsx("div",{className:"privacy-footer",children:Ye.jsx("p",{children:"By continuing to use PozoApp, you acknowledge that you have read and understood this Cookie Policy and consent to our use of cookies as described herein."})})]})]})},access:"Public"},{path:`${Ofe}about-us`,component:()=>{const e=Qt(),[t,n]=a.useState(null),[i,r]=a.useState(!0);a.useEffect((()=>{window.scrollTo(0,0);const e=new Cre({duration:1.2,easing:e=>Math.min(1,1.001-Math.pow(2,-10*e)),smoothWheel:!0,smoothTouch:!0,wheelMultiplier:1,touchMultiplier:2});return n(e),requestAnimationFrame((function t(n){e.raf(n),requestAnimationFrame(t)})),()=>{e.destroy()}}),[]);return a.useEffect((()=>{setTimeout((()=>r(!1)),300)}),[]),i?Ye.jsx(Che,{}):Ye.jsxs("div",{className:"pozo-about-wrapper",children:[Ye.jsxs("div",{className:"pozo-about-banner",children:[Ye.jsxs("div",{onClick:()=>{e(`${Ufe}`)},className:"nav-back-btn",children:[Ye.jsx(Zv,{})," Back to Home"]}),Ye.jsxs("div",{className:"banner-info",children:[Ye.jsx(Ng,{className:"pozo-brand-icon"}),Ye.jsx("h1",{children:"About PozoApp"}),Ye.jsx("p",{})]})]}),Ye.jsxs("div",{className:"pozo-about-main",children:[Ye.jsx("section",{className:"intro-block",children:Ye.jsxs("div",{className:"intro-details",children:[Ye.jsx("h2",{children:"Transforming Business Management Through Innovation"}),Ye.jsx("p",{children:"At PozoApp, we believe that every business, regardless of size, deserves access to cutting-edge technology that simplifies operations and drives growth. Our AI-powered platform serves thousands of businesses across multiple industries, from restaurants and retail to manufacturing and healthcare."})]})}),Ye.jsxs("section",{className:"metrics-grid",children:[Ye.jsxs("div",{className:"metric-card",children:[Ye.jsx("div",{className:"metric-value",children:"10,000+"}),Ye.jsx("div",{className:"metric-title",children:"Active Businesses"})]}),Ye.jsxs("div",{className:"metric-card",children:[Ye.jsx("div",{className:"metric-value",children:"25+"}),Ye.jsx("div",{className:"metric-title",children:"Industries Served"})]}),Ye.jsxs("div",{className:"metric-card",children:[Ye.jsx("div",{className:"metric-value",children:"99.9%"}),Ye.jsx("div",{className:"metric-title",children:"Uptime Guarantee"})]}),Ye.jsxs("div",{className:"metric-card",children:[Ye.jsx("div",{className:"metric-value",children:"24/7"}),Ye.jsx("div",{className:"metric-title",children:"Customer Support"})]})]}),Ye.jsx("section",{className:"purpose-block",children:Ye.jsxs("div",{className:"purpose-layout",children:[Ye.jsxs("div",{className:"purpose-info",children:[Ye.jsx("h2",{children:"Our Mission"}),Ye.jsx("p",{children:"To democratize business technology by providing intelligent, scalable, and affordable solutions that enable businesses to thrive in the digital age. We're committed to breaking down technological barriers and making enterprise-grade tools accessible to businesses of all sizes."}),Ye.jsxs("div",{className:"purpose-features",children:[Ye.jsxs("div",{className:"feature-point",children:[Ye.jsx(Ag,{}),Ye.jsx("span",{children:"Innovation-First Approach"})]}),Ye.jsxs("div",{className:"feature-point",children:[Ye.jsx(ag,{}),Ye.jsx("span",{children:"Global Accessibility"})]}),Ye.jsxs("div",{className:"feature-point",children:[Ye.jsx(ng,{}),Ye.jsx("span",{children:"Excellence in Service"})]})]})]}),Ye.jsx("div",{className:"purpose-graphic",children:Ye.jsx("div",{className:"graphic-circle",children:Ye.jsx(vg,{})})})]})}),Ye.jsxs("section",{className:"principles-block",children:[Ye.jsx("h2",{children:"Our Core Values"}),Ye.jsxs("div",{className:"principles-layout",children:[Ye.jsxs("div",{className:"principle-item",children:[Ye.jsx("div",{className:"principle-badge",children:Ye.jsx(vg,{})}),Ye.jsx("h3",{children:"Innovation"}),Ye.jsx("p",{children:"We continuously push boundaries to deliver cutting-edge solutions that anticipate and meet evolving business needs."})]}),Ye.jsxs("div",{className:"principle-item",children:[Ye.jsx("div",{className:"principle-badge",children:Ye.jsx(dg,{})}),Ye.jsx("h3",{children:"Customer-Centric"}),Ye.jsx("p",{children:"Every decision we make is guided by our commitment to delivering exceptional value and experience to our customers."})]}),Ye.jsxs("div",{className:"principle-item",children:[Ye.jsx("div",{className:"principle-badge",children:Ye.jsx(Ng,{})}),Ye.jsx("h3",{children:"Collaboration"}),Ye.jsx("p",{children:"We believe in the power of teamwork, both within our organization and in partnership with our clients."})]}),Ye.jsxs("div",{className:"principle-item",children:[Ye.jsx("div",{className:"principle-badge",children:Ye.jsx(ng,{})}),Ye.jsx("h3",{children:"Excellence"}),Ye.jsx("p",{children:"We strive for excellence in everything we do, from product development to customer service and beyond."})]})]})]}),Ye.jsx("section",{className:"journey-block",children:Ye.jsxs("div",{className:"journey-details",children:[Ye.jsx("h2",{children:"Our Story"}),Ye.jsxs("div",{className:"journey-timeline",children:[Ye.jsxs("div",{className:"timeline-entry",children:[Ye.jsx("div",{className:"timeline-date",children:"2020"}),Ye.jsxs("div",{className:"timeline-info",children:[Ye.jsx("h4",{children:"The Beginning"}),Ye.jsx("p",{children:"Founded with a vision to simplify business operations through technology. Started with a small team of passionate developers and business experts."})]})]}),Ye.jsxs("div",{className:"timeline-entry",children:[Ye.jsx("div",{className:"timeline-date",children:"2021"}),Ye.jsxs("div",{className:"timeline-info",children:[Ye.jsx("h4",{children:"First Milestone"}),Ye.jsx("p",{children:"Launched our first AI-powered business management platform, serving over 100 businesses in the retail sector."})]})]}),Ye.jsxs("div",{className:"timeline-entry",children:[Ye.jsx("div",{className:"timeline-date",children:"2022"}),Ye.jsxs("div",{className:"timeline-info",children:[Ye.jsx("h4",{children:"Expansion"}),Ye.jsx("p",{children:"Expanded to multiple industries including restaurants, manufacturing, and healthcare. Reached 1,000+ active users."})]})]}),Ye.jsxs("div",{className:"timeline-entry",children:[Ye.jsx("div",{className:"timeline-date",children:"2023"}),Ye.jsxs("div",{className:"timeline-info",children:[Ye.jsx("h4",{children:"Innovation"}),Ye.jsx("p",{children:"Introduced advanced AI features, mobile applications, and integrated payment solutions. Crossed 5,000+ businesses milestone."})]})]}),Ye.jsxs("div",{className:"timeline-entry",children:[Ye.jsx("div",{className:"timeline-date",children:"2024"}),Ye.jsxs("div",{className:"timeline-info",children:[Ye.jsx("h4",{children:"Global Reach"}),Ye.jsx("p",{children:"Achieved global presence with 10,000+ active businesses and launched our comprehensive ecosystem of business tools."})]})]})]})]})}),Ye.jsx("section",{className:"team-section",children:Ye.jsxs("div",{className:"team-content",children:[Ye.jsx("h2",{children:"Leadership Team"}),Ye.jsx("p",{children:"Our diverse team of experts brings together decades of experience in technology, business management, and customer success to drive PozoApp's mission forward."}),Ye.jsxs("div",{className:"team-grid",children:[Ye.jsxs("div",{className:"team-member",children:[Ye.jsx("div",{className:"member-avatar",children:Ye.jsx(Ng,{})}),Ye.jsx("h4",{children:"Technology Leadership"}),Ye.jsx("p",{children:"Driving innovation and technical excellence"})]}),Ye.jsxs("div",{className:"team-member",children:[Ye.jsx("div",{className:"member-avatar",children:Ye.jsx(Ag,{})}),Ye.jsx("h4",{children:"Product Strategy"}),Ye.jsx("p",{children:"Shaping the future of business management"})]}),Ye.jsxs("div",{className:"team-member",children:[Ye.jsx("div",{className:"member-avatar",children:Ye.jsx(dg,{})}),Ye.jsx("h4",{children:"Customer Success"}),Ye.jsx("p",{children:"Ensuring exceptional customer experiences"})]})]})]})}),Ye.jsx("section",{className:"cta-section",children:Ye.jsxs("div",{className:"cta-content",children:[Ye.jsx("h2",{children:"Ready to Transform Your Business?"}),Ye.jsx("p",{children:"Join thousands of businesses that trust PozoApp to streamline their operations and drive growth through intelligent automation."}),Ye.jsx("button",{className:"cta-button",onClick:()=>{e(`${Ufe}contact-us`)},children:"Get Started Today"})]})}),Ye.jsx("section",{className:"contact-section",children:Ye.jsxs("div",{className:"contact-info",children:[Ye.jsxs("div",{className:"contact-item",children:[Ye.jsx("h4",{children:"Get in Touch"}),Ye.jsxs("p",{children:["Email: ",Ye.jsx("a",{href:"mailto:info@pozo.app",children:"info@pozo.app"})]}),Ye.jsxs("p",{children:["Phone: ",Ye.jsx("a",{href:"tel:+917324000011",children:"+91 73240 00011"})]})]}),Ye.jsxs("div",{className:"contact-item",children:[Ye.jsx("h4",{children:"Visit Us"}),Ye.jsxs("p",{children:["PozoMind Technologies",Ye.jsx("br",{}),"No 51 Step Colony, Dharga",Ye.jsx("br",{}),"Hosur, Krishnagiri",Ye.jsx("br",{}),"Tamil Nadu - 635126, India"]})]})]})})]})]})},access:"Public"},{path:`${Ofe}landing-page`,component:Ly,access:"Admin",empAccess:"Super Admin User",children:[{path:"home",component:()=>{const e=um(),[t,n]=a.useState(null),[i,r]=a.useState(null);iA("MobileNo"),iA("userName"),iA("UserType");const[s,l]=a.useState(!1);a.useEffect((()=>{!async function(){var t,n,i,a,r,s;const o=iA("UserId"),d=await e(PD({userId:o})).unwrap();(null==(t=null==d?void 0:d.data)?void 0:t.statusCode)&&(null==(n=null==d?void 0:d.data)?void 0:n.data[0])&&l("N"==(null==(a=null==(i=null==d?void 0:d.data)?void 0:i.data[0])?void 0:a.Password)&&"N"==(null==(s=null==(r=null==d?void 0:d.data)?void 0:r.data[0])?void 0:s.Pin))}()}),[]);const o=a.useCallback((()=>{r(null),n(null)}),[]),d=Tf(pD);return Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{className:"homePageDivP",children:[Ye.jsx(Qy,{messageType:t,messageData:i,onComplete:o}),s&&Ye.jsx(SP,{open:s,title:"Set Pin",footer:!1,children:Ye.jsx(FD,{pinUpdate:async e=>{e||(n("success"),r("Your PIN has been activated successfully")),l(e)}}),handleCancel:()=>{l(!1)}}),Ye.jsxs("div",{className:"homePageDiv",children:[Ye.jsx("div",{className:"AppsCardParentDiv",children:Ye.jsx(lD,{})}),d.length>0&&Ye.jsx("div",{className:"homePageRightSideCards",children:Ye.jsx("div",{className:"homePageRightSideCard",children:Ye.jsx(mD,{})})})]})]})})},access:"Admin",empAccess:"Super Admin User",employeeAccess:!0},{path:"apps",component:()=>{const e=um(),[t,n]=a.useState(""),i=a.useDeferredValue(t),[r,s]=a.useState(!1),[l,o]=a.useState(null),[d,c]=a.useState(null);a.useEffect((()=>{!async function(){var t,n,i,a,r;const l=iA("UserId"),o=await e(PD({userId:l})).unwrap();(null==(t=null==o?void 0:o.data)?void 0:t.statusCode)&&s("N"==(null==(i=null==(n=null==o?void 0:o.data)?void 0:n.data[0])?void 0:i.Password)&&"N"==(null==(r=null==(a=null==o?void 0:o.data)?void 0:a.data[0])?void 0:r.Pin))}()}),[]);a.useCallback((e=>{var t;n(null==(t=null==e?void 0:e.target)?void 0:t.value)}),[]);const u=a.useCallback((()=>{c(null),o(null)}),[]);return Ye.jsxs("div",{className:"homeApplication",children:[Ye.jsx(Qy,{messageType:l,messageData:d,onComplete:u}),r&&Ye.jsx(SP,{open:r,title:"Set Pin",footer:!1,children:Ye.jsx(FD,{pinUpdate:async e=>{e||(o("success"),c("Your PIN has been activated successfully")),s(e)}}),handleCancel:()=>{s(!1)}}),Ye.jsx("div",{className:"applicationSearch"}),Ye.jsx(JO,{searchText:i})]})},access:"Admin",empAccess:"Super Admin User"},{path:"user-account",component:lM,access:"Admin",empAccess:"Super Admin User"},{path:"user-account-edit",component:()=>Ye.jsx(lM,{status:"edit"}),access:"Admin",empAccess:"Super Admin User",employeeAccess:!0}]},{path:`${Ofe}setting`,component:Ly,access:"Admin",children:[{path:"tickets-details",component:()=>{var e,t,n,i,r,s;const l=Mt(),o=um(),d=a.useRef(null),c=a.useRef(null),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState([]),[v,g]=a.useState([]),[y,x]=a.useState(null),[b,w]=a.useState(""),[j,C]=a.useState([]),[S,N]=a.useState(null),[F,B]=a.useState([]),[T,E]=a.useState(null),[L,U]=a.useState(1),[_,O]=a.useState(!1),[M,R]=a.useState(""),[Q,H]=a.useState([]),[V,z]=a.useState(null),[q,W]=a.useState(null),[Y,K]=a.useState("P"),[G,$]=a.useState([]),[X,J]=a.useState(!1),[Z,ee]=a.useState(1),[te,ne]=a.useState([]),ie=iA("UserId")?iA("UserId"):null,[ae,re]=a.useState([]);a.useEffect((()=>{var e,t,n;o(Gh({items:Are})),se(),le(),(null==(e=null==l?void 0:l.state)?void 0:e.Notiffy)&&(p(null==(t=null==l?void 0:l.state)?void 0:t.Notiffy.messageType),h(null==(n=null==l?void 0:l.state)?void 0:n.Notiffy.messageData))}),[]);const se=async()=>{var e,t,n,i,a,r,s;const l={status:"P",pageNumber:Z},d=await o(sre(l)).unwrap();1===(null==(e=null==d?void 0:d.data)?void 0:e.statusCode)?m(null==(t=null==d?void 0:d.data)?void 0:t.data):m();const c=await o(Fb()).unwrap();1===(null==(n=null==c?void 0:c.data)?void 0:n.statusCode)?g(null==(i=null==c?void 0:c.data)?void 0:i.data):g();const u=await o(dre()).unwrap();if(1===(null==(a=null==u?void 0:u.data)?void 0:a.statusCode)){const e=null==(s=null==(r=null==u?void 0:u.data)?void 0:r.data)?void 0:s.filter((e=>"Pending"!==(null==e?void 0:e.ConfigName)));H(e)}else H()},le=async()=>{var e,t,n;let i=await o(pre()).unwrap(),a=0,r=0,s=0,l=0,d=a+r+s+l;if(1==(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)){const{PendingCount:e,OpenCount:o,OthersCount:c,CompletedCount:u}=null==(n=null==(t=null==i?void 0:i.data)?void 0:t.data)?void 0:n[0];a=e||0,r=o||0,s=c||0,l=u||0,d=a+r+s+l}$([{value:"P",label:`Pending (${a})`,className:"active-btn"},{value:"O",label:`Open (${r})`,className:"expired-btn"},{value:"OT",label:`Others (${s})`,className:"all-btn"},{value:"C",label:`Completed (${l})`,className:"free-btn"},{value:"A",label:`All (${d})`,className:"inactive-btn2"}])},oe=e=>null==e?void 0:e.split("-").pop(),de=[{title:"SI.NO",key:"sno",align:"center",width:"80px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(L-1)+n+1})},{title:"Ticket No",dataIndex:"TicketId",key:"TicketId",align:"center",ellipsis:!0,render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:oe(null==t?void 0:t.TicketId)})},{title:"Details",dataIndex:"Details",key:"Details",align:"center",width:"200px",ellipsis:!0,filteredValue:[b],onFilter:(e,t)=>String(oe(null==t?void 0:t.TicketId)).toLowerCase().includes(e.toLowerCase())||String(t.CateName).toLowerCase().includes(e.toLowerCase())||String(t.UserTypeName).toLowerCase().includes(e.toLowerCase())},{title:"Date/time",dataIndex:"CreatedDate",key:"CreatedDate",align:"center",width:"200px",ellipsis:!0,render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:eA(null==t?void 0:t.CreatedDate)})},{title:"Category",dataIndex:"CateName",key:"CateName",align:"center",ellipsis:!0},{title:"User Type",dataIndex:"UserTypeName",key:"UserTypeName",align:"center",ellipsis:!0},{title:"Status",dataIndex:"StatusName",key:"StatusName",align:"center",ellipsis:!0},{title:"App",dataIndex:"AppName",key:"AppName",align:"center",ellipsis:!0},{title:"Company",dataIndex:"CompanyName",key:"CompanyName",align:"center",ellipsis:!0},{title:"Branch",dataIndex:"BranchName",key:"BranchName",align:"center",ellipsis:!0},{title:"Action",key:"Edit",dataIndex:"Edit",align:"center",render:(e,t,n)=>"Completed"!==(null==t?void 0:t.StatusName)&&Ye.jsx(P,{size:"middle",children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>ce(t)},n)})}],ce=async e=>{var t,n,i,a,r,s;const l={branchId:e.BranchId,latitude:e.Latitude,longitude:e.Longitude},d=await o(LT(l)).unwrap();if(1===(null==(t=null==d?void 0:d.data)?void 0:t.statusCode)){const t=(null==(n=null==Q?void 0:Q.find((t=>t.ConfigName===e.StatusName)))?void 0:n.ConfigId)||null,r="Open"===e.StatusName?e.AssignedBy:void 0,s="Open"===e.StatusName?e.Description:"";O(!_),ne(e),re(null==(i=null==d?void 0:d.data)?void 0:i.data),W(r),z(t),R(s),null==(a=null==c?void 0:c.current)||a.setFieldsValue({Status:t,AssignedBy:r,Description:s})}else re([]),W(null),z(null),R(""),p("error"),h(null==(r=null==d?void 0:d.data)?void 0:r.response),null==(s=null==c?void 0:c.current)||s.resetFields()},ue=a.useCallback((()=>{h(null),p(null)}),[]),pe=async(e,t,n,i=Y,a)=>{var r,s;let l={AppId:e,CompId:t,BranchId:n,pageNumber:null!=a&&null!=a?a:Z};"A"!==i&&(l.status=i);const d=await o(sre(l)).unwrap();1===(null==(r=null==d?void 0:d.data)?void 0:r.statusCode)?m(null==(s=null==d?void 0:d.data)?void 0:s.data):m()},Ae=async e=>{var t;x(e),N(),E(),B([]),C([]),null==(t=null==d?void 0:d.current)||t.setFieldsValue({Application:e}),await pe(e,null,null),(async e=>{var t,n,i;const a=await o(ore({AppId:e})).unwrap();if(1===(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)){let e=new Map;null==(i=null==(n=null==a?void 0:a.data)?void 0:n.data)||i.forEach((t=>{e.set(t.CompId,t)})),C(Array.from(e.values()))}else C([])})(e)},he=async e=>{var t,n;const i={AppId:y,CompId:e},a=await o(lre(i)).unwrap();1===(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)?B(null==(n=null==a?void 0:a.data)?void 0:n.data):B()},fe=e=>{pe(y,S,T,Y,Z+e),ee(Z+e)};return Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:u,messageData:A,onComplete:ue}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Tickets"})}),Ye.jsxs("div",{className:"searchAddDiv1",children:[Ye.jsxs("div",{className:"formSearchticketdetails",children:[Ye.jsx("div",{children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{w(e)},onSearchChange:e=>{var t;w(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end",height:"max-content"},children:Ye.jsx("div",{className:"purchaseInfoBtn",children:G.map((e=>Ye.jsx("button",{onClick:()=>{return t=e.value,K(t),le(),pe(y,S,T,t),void H(null==Q?void 0:Q.filter((e=>"Pending"!==(null==e?void 0:e.ConfigName))));var t},className:`status-button ${Y===e.value?e.className:"inactive-btn"}`,children:e.label},e.value)))})})]}),Ye.jsxs(I,{ref:d,className:"formDivAntTicketDetails",onFinish:pe,children:[Ye.jsx(I.Item,{name:"Application",children:Ye.jsx(_y,{options:null==v?void 0:v.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"Application Name",label:"Application Name",className:"field-DropDown",onChangeFunction:e=>Ae(e),valueData:y})}),Ye.jsx(I.Item,{name:"Company",children:Ye.jsx(_y,{options:null==j?void 0:j.map((e=>({value:e.CompId,label:e.CompName}))),placeholder:"Company Name",label:"Company Name",className:"field-DropDown",onChangeFunction:e=>(async e=>{var t;N(e),E(),null==(t=null==d?void 0:d.current)||t.setFieldsValue({Company:e}),he(e),pe(y,e,null)})(e),valueData:S})}),Ye.jsx(I.Item,{name:"Branch",children:Ye.jsx(_y,{options:null==F?void 0:F.map((e=>({value:e.BrId,label:e.BrName}))),placeholder:"Branch Name",label:"Branch Name",className:"field-DropDown",onChangeFunction:e=>(e=>{var t;null==(t=null==d?void 0:d.current)||t.setFieldsValue({Branch:e}),E(e),pe(y,S,e)})(e),valueData:T})})]})]})]}),Ye.jsxs("div",{className:"reportTableticketdetails",children:[Ye.jsx(Vb,{columns:de,data:f,dataSource:f,pagination:e=>{U(e)},onChange:(e,t,n)=>{setFilteredInfo(t),setSortedInfo(n)}})," "]}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end",padding:"20px"},children:Ye.jsxs("div",{style:{display:"flex",gap:"2rem"},children:[Z>1&&Ye.jsx("div",{className:"nextButton",style:{backgroundColor:"#ff0000db"},onClick:()=>fe(-1),children:"Previous"}),Ye.jsx("div",{className:"nextButton",onClick:()=>fe(1),children:"Next"})]})})]}),Ye.jsx(SP,{open:_,title:"Ticket Details",footer:!1,width:900,handleCancel:()=>{var e;O(!1),z(null),W(null),R(""),null==(e=null==c?void 0:c.current)||e.resetFields()},children:Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{children:[!X&&Ye.jsxs("div",{className:"ticket-container",children:[Ye.jsxs("div",{className:"ticket-header",style:{display:"flex",gap:"2rem"},children:[Ye.jsxs("div",{className:"ticket-user",children:[Ye.jsxs("h2",{className:"heading",children:[Ye.jsx(Hv,{})," ",(null==te?void 0:te.UserName)||(null==te?void 0:te.MobileNos)]}),Ye.jsxs("p",{className:"text",children:[Ye.jsx("strong",{children:"Mobile:"})," ",null==te?void 0:te.MobileNo]}),Ye.jsxs("p",{className:"text",children:[Ye.jsx("strong",{children:"Application:"})," ",null==te?void 0:te.AppName]}),Ye.jsxs("p",{className:"text",children:[Ye.jsx("strong",{children:"Company:"})," ",null==te?void 0:te.CompanyName]}),Ye.jsxs("p",{className:"text",children:[Ye.jsx("strong",{children:"Branch:"})," ",null==te?void 0:te.BranchName]})]}),Ye.jsxs("div",{className:"ticket-meta",children:[Ye.jsxs("p",{className:"text",children:[Ye.jsx("strong",{children:"Ticket No:"})," ",oe(null==te?void 0:te.TicketId)]}),Ye.jsxs("p",{className:"text",children:[Ye.jsx("strong",{children:"Date:"})," ",Zp(null==te?void 0:te.CreatedDate)]})]})]}),Ye.jsxs("div",{className:"ticket-body",children:[Ye.jsxs("p",{className:"text",children:[Ye.jsx("strong",{children:"Type:"})," ",null==te?void 0:te.CateName]}),Ye.jsxs("div",{className:"text",children:[Ye.jsx("strong",{children:"Ticket Details:"}),Ye.jsx("textarea",{className:"textarea",value:null==te?void 0:te.Details,disabled:!0})]})]})]}),(null==te?void 0:te.Attachment)&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("div",{className:"imageopen",onClick:()=>J(!X),children:X?Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("p",{style:{color:"#ff0000"},children:"Close The Image"}),Ye.jsx(Mm,{color:"#ff0000"})]}):Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("p",{children:"Open The Image"}),Ye.jsx(Om,{})]})}),X&&Ye.jsx("img",{className:"attchementImage",src:null==te?void 0:te.Attachment,alt:""})]}),Ye.jsx("hr",{style:{margin:"1rem 0rem 1rem 0rem"}}),Ye.jsx("div",{style:{margin:" 0.5rem 0rem",fontWeight:"500"},children:"Status and Employee Alocation : "}),Ye.jsxs(I,{ref:c,style:{display:"flex",flexWrap:"wrap",gap:"0.5rem"},onFinish:async()=>{var e,t,n,i,a;let r,s={UserId:ie,TicketId:null==te?void 0:te.TicketId,CreatedBy:ie,...null==(e=null==c?void 0:c.current)?void 0:e.getFieldsValue()};"P"==Y?(s.CreatedBy=ie,r=await o(cre(s)).unwrap()):(s.UpdatedBy=ie,r=await o(ure(s)).unwrap()),1==(null==(t=null==r?void 0:r.data)?void 0:t.statusCode)?(p("success"),h(null==(n=null==r?void 0:r.data)?void 0:n.response),O(!1),le(),pe(y,S,T),z(null),R(""),null==(i=null==c?void 0:c.current)||i.resetFields()):(p("error"),h(null==(a=null==r?void 0:r.data)?void 0:a.response))},children:[Ye.jsx(I.Item,{name:"Description",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(My,{label:"Description",className:"textarea",fieldState:{value:M},isOnChange:!!(null==(t=null==(e=null==c?void 0:c.current)?void 0:e.getFieldsValue())?void 0:t.Description),onChange:e=>{var t;return R(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(I.Item,{name:"Status",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(_y,{options:null==Q?void 0:Q.map((e=>({value:e.ConfigId,label:e.ConfigName,disabled:"O"===Y&&"Open"===e.ConfigName}))),placeholder:"Ticket Status",label:Ye.jsx("label",{className:"required",children:"Ticket Status"}),className:"field-DropDown",isOnchanges:!!(null==(i=null==(n=null==c?void 0:c.current)?void 0:n.getFieldsValue())?void 0:i.Status),onChangeFunction:e=>(e=>{var t;z(e),null==(t=null==c?void 0:c.current)||t.setFieldsValue({Status:e})})(e),valueData:V||null})}),Ye.jsx(I.Item,{name:"AssignedBy",rules:[{required:!0},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(_y,{options:null==ae?void 0:ae.map((e=>({value:e.UserId,label:e.UserName}))),placeholder:"Employee Name",label:Ye.jsx("label",{className:"required",children:"Employee Name"}),className:"field-DropDown",isOnchanges:!!(null==(s=null==(r=null==c?void 0:c.current)?void 0:r.getFieldsValue())?void 0:s.AssignedBy),onChangeFunction:e=>(e=>{var t;W(e),null==(t=null==c?void 0:c.current)||t.setFieldsValue({AssignedBy:e})})(e),valueData:q||null})}),Ye.jsx("div",{style:{width:"100%",display:"flex",justifyContent:"flex-end"},children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",style:{width:"100%",align:"flex-end"},icon:Ye.jsx(k,{})})})]})]})})})]})},empAccess:"Tickets"},{path:"themes",component:()=>{a.useRef(null);const e=um(),t=iA("UserId"),n=Tf(E_),i=Tf(U_),r=Tf(Gg),s=Tf(__),l=Tf(O_),o=Tf(V_),d=Tf(eO),c=Tf(k_),u=Tf(T_),p=Tf(M_),A=Tf(z_),h=Tf(J_),f=Tf($_),m=Tf(G_);a.useState(!1),a.useState(0);const[v,g]=a.useState(null),[y,x]=a.useState(8),[b,w]=a.useState(1),[C,S]=a.useState(!1),[N,F]=a.useState("#37943C"),[B,P]=a.useState("#b2eb9b"),[T,E]=a.useState(null),[D,L]=a.useState(null),[U,_]=a.useState(!1);a.useState(null),a.useState("#1292EE"),a.useState([]);const[O,R]=a.useState([]),[Q,H]=a.useState([]),[V,z]=a.useState([]),[q,W]=a.useState(!1),[Y,K]=a.useState(!1);Tf(R_),Tf(Q_);const G=iA("UserType"),[$]=I.useForm(),X=[{name:"Themes",link:`${R6}setting/themes`},{name:"Templates",link:`${R6}setting/all-templates`}];a.useEffect((()=>{const e=(e=>{const t=new Set;return null==e?void 0:e.filter((e=>!t.has(e.SectionId)&&(t.add(e.SectionId),!0)))})(O);H(e)}),[O]),a.useEffect((()=>{J()}),[]);const J=async()=>{var t,n;let i=await e(o_()).unwrap();(null==(t=null==i?void 0:i.data)?void 0:t.statusCode)&&R(null==(n=null==i?void 0:i.data)?void 0:n.data)},Z=e=>{const t=null==V?void 0:V.findIndex((t=>t.SectionId===e[0].SectionId));if(-1!==t){const n=[...V];n[t]=e[0],z(n)}else z([...V,...e])},ee=e=>{W(!0),K();const t=null==V?void 0:V.findIndex((t=>(null==t?void 0:t.SectionId)===e[0].SectionId));if(-1!==t){const n=[...V];n[t]=e[0],z(n)}else z([...V,...e])};a.useEffect((()=>{e(Gh({items:X})),e(n_()).unwrap,e(i_()).unwrap,e(a_()).unwrap,e(I_())}),[]);const te=a.useCallback((()=>{L(null),E(null)}),[]),ne=e=>{const t=(e=>parseInt(e.slice(1,3),16)/255*.2126+parseInt(e.slice(3,5),16)/255*.7152+parseInt(e.slice(5,7),16)/255*.0722)(e);return t<=.5};return Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{style:{width:"100%"},children:[Ye.jsxs("div",{className:"tempView",children:[Ye.jsx("div",{className:"Nav-templates",children:Ye.jsxs("div",{className:"tempUp",children:[Ye.jsx(Qy,{messageType:T,messageData:D,onComplete:te}),Ye.jsxs("div",{children:[Ye.jsx("h1",{children:" Applications"}),Ye.jsx("br",{}),Ye.jsx(_y,{options:null==i?void 0:i.map((e=>({value:e.AppId,label:e.AppName}))),label:"Application",onChangeFunction:async t=>{e(x_({AppId:t})),await g(t)},className:"field-DropDown",isOnchanges:!!v,valueData:v})]}),Ye.jsxs("div",{children:[Ye.jsx("h1",{children:" Colors "}),Ye.jsx("br",{}),Ye.jsxs("div",{className:"fontsdiv",children:[Ye.jsx("div",{className:"colorDropdown",children:Ye.jsx(_y,{options:null==s?void 0:s.map((e=>({value:e.ColorId,label:Ye.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[Ye.jsx("div",{style:{width:"27px",height:"27px",borderRadius:"25.774192810058594px",backgroundColor:e.DarkColor},children:Ye.jsx("span",{style:{width:"27px",height:"27px",borderRadius:"50px",marginLeft:"15px",backgroundColor:e.LightColor},children:" "})}),Ye.jsx("div",{children:e.ThemeName})]})}))),labelChange:!0,label:"Color",className:"field-DropDown",onChangeFunction:async t=>{await x(t);let n=null==s?void 0:s.filter((e=>(null==e?void 0:e.ColorId)===t));e(p_({color:{darkColor:n[0].DarkColor,lightColor:n[0].LightColor}}))},isOnchanges:!!y,valueData:y})}),Ye.jsx("div",{children:Ye.jsx(me,{className:"plusOutlinedIcon",onClick:()=>{S(!0)}})})]})]}),Ye.jsxs(j,{open:C,title:"Colors",closeIcon:Ye.jsx(M,{onClick:()=>{S(!1)}}),width:350,children:[Ye.jsxs("div",{children:[Ye.jsx("div",{children:Ye.jsx("p",{children:"Please select at least one dark and one light color."})}),Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"0.5rem"},children:[Ye.jsxs("div",{style:{display:"flex"},children:[Ye.jsx("p",{children:"Dark Color : "}),Ye.jsx("div",{style:{width:"35px",height:"23px",backgroundColor:N}})]}),Ye.jsxs("div",{style:{display:"flex"},children:[Ye.jsx("p",{children:"Light Color : "}),Ye.jsx("div",{style:{width:"35px",height:"23px",backgroundColor:B}})]})]})]}),Ye.jsx("br",{}),Ye.jsx(F2,{onChange:(e,t)=>{ne(e.hex)?F(e.hex):P(e.hex)}}),Ye.jsx("div",{children:Ye.jsx("button",{className:"colorBtn",onClick:async()=>{var t,n,i,a;if(N&&B){let s;try{let t={DarkColor:N,LightColor:B,CreatedBy:iA("UserId")};s=await e(s_(t)).unwrap()}catch(r){"Request failed with status code 422"==r.message&&(s={data:{statusCode:0,response:"Color Not Added",data:[]}})}1==(null==(t=null==s?void 0:s.data)?void 0:t.statusCode)?(S(!1),L(null==(n=null==s?void 0:s.data)?void 0:n.response),"Color Already Exists"==(null==(i=null==s?void 0:s.data)?void 0:i.response)?E("warning"):E("success"),e(i_()).unwrap):(L(null==(a=null==s?void 0:s.data)?void 0:a.response),E("error"))}else L("Please select at least one dark and one light color."),E("warning")},children:"SAVE"})})]}),Ye.jsxs("div",{children:[Ye.jsx("h1",{children:" Fonts "}),Ye.jsx("br",{}),Ye.jsxs("div",{className:"fontsdiv",children:[Ye.jsx("div",{children:Ye.jsx(_y,{options:null==l?void 0:l.map((e=>({value:e.FontId,label:e.Font}))),label:"Font",onChangeFunction:async t=>{await w(t);let n=null==l?void 0:l.filter((e=>(null==e?void 0:e.FontId)===t));e(A_({text:{head:n[0].Font.split(",")[0],para:n[0].Font.split(",")[1]}}))},className:"field-DropDown",isOnchanges:!!b,valueData:b})}),Ye.jsxs("div",{children:[Ye.jsx(me,{className:"plusOutlinedIcon",onClick:()=>{_(!0)}}),Ye.jsx(SP,{open:U,title:"Fonts",footer:!0,children:Ye.jsxs(I,{form:$,children:[Ye.jsxs("div",{className:"fontInputs",children:[Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"HeadFont",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Head Font"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"HeadFont",label:"Head",className:"Input",fieldState:!0,fieldApi:!0,autoComplete:"off"})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"ParaFont",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Paragraph Font"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"ParaFont",label:"Paragraph",className:"Input",fieldState:!0,fieldApi:!0,autoComplete:"off"})})})]}),Ye.jsx("p",{style:{color:"#FF4D4F"},children:"* Google Fonts Only"})]}),handleCancel:()=>{_(!1),$.resetFields()},handleSubmit:async()=>{(async t=>{fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyDP1HqNkLI53iIAH-SB9_mt_24QdkUZ_24").then((e=>e.json())).then((async n=>{var i,a,r,s,l;const o=null==(i=null==n?void 0:n.items)?void 0:i.map((e=>e.family));if(o.includes(t.HeadFont)&&o.includes(t.ParaFont)){let n;try{let i={HeadFont:t.HeadFont,ParaFont:t.ParaFont,CreatedBy:iA("UserId")};n=await e(l_(i)).unwrap()}catch(d){"Request failed with status code 422"==d.message&&(n={data:{statusCode:0,response:"Font Not Added",data:[]}})}1==(null==(a=null==n?void 0:n.data)?void 0:a.statusCode)?(_(!1),L(null==(r=null==n?void 0:n.data)?void 0:r.response),"Font Already Exists"==(null==(s=null==n?void 0:n.data)?void 0:s.response)?E("warning"):E("success"),e(a_()).unwrap,$.resetFields()):(L(null==(l=null==n?void 0:n.data)?void 0:l.response),E("error"))}else L("Please give both head and para font as google fonts"),E("warning")})).catch((e=>{}))})(await $.validateFields())},buttonText:"SAVE"})]})]})]})]})}),Ye.jsx("h1",{children:"NavBars"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsxs("div",{className:"Nav-templates",children:[Ye.jsx("div",{className:"setscalesize ",children:Ye.jsxs("label",{className:`themeselection ${(null==V?void 0:V.filter((e=>"Navbar1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"radio",onClick:()=>ee(null==O?void 0:O.filter((e=>"Navbar1"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Navbar1"===e.ComponentName)).length)>0&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})})}),Ye.jsx(O2,{})]})}),Ye.jsx("div",{children:Ye.jsxs("label",{className:`themeselection ${(null==V?void 0:V.filter((e=>"Navbar2"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"radio1",onClick:()=>ee(null==O?void 0:O.filter((e=>"Navbar2"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Navbar2"===e.ComponentName)).length)>0&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})})}),Ye.jsx(Q2,{})]})}),Ye.jsx("div",{children:Ye.jsxs("label",{className:`themeselection ${(null==V?void 0:V.filter((e=>"Navbar3"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"radio1",onClick:()=>ee(null==O?void 0:O.filter((e=>"Navbar3"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Navbar3"===e.ComponentName)).length)>0&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})})}),Ye.jsx(C6,{})]})})]})}),Ye.jsx("h1",{children:" Overviews"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsxs("div",{className:"Nav-templates",children:[Ye.jsx("div",{className:"setscalesize ",children:Ye.jsxs("label",{className:`themeselection ${(null==V?void 0:V.filter((e=>"Overview1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"radio",onClick:()=>ee(null==O?void 0:O.filter((e=>"Overview1"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Overview1"===e.ComponentName)).length)>0&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})})}),Ye.jsx(W2,{})]})}),Ye.jsx("div",{className:"setscalesize ",children:Ye.jsxs("label",{className:`themeselection ${(null==V?void 0:V.filter((e=>"Overview2"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"radio1",onClick:()=>ee(null==O?void 0:O.filter((e=>"Overview2"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Overview2"===e.ComponentName)).length)>0&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})})}),Ye.jsx(G2,{})]})}),Ye.jsx("div",{className:"setscalesize ",children:Ye.jsxs("label",{className:`themeselection ${(null==V?void 0:V.filter((e=>"Overview3"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"radio1",onClick:()=>ee(null==O?void 0:O.filter((e=>"Overview3"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Overview3"===e.ComponentName)).length)>0&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})})}),Ye.jsx(s5,{})]})})]})}),Ye.jsx("h1",{children:"ShowCase"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsx("div",{className:"Nav-templates",children:Ye.jsx("div",{className:"setscalesize ",children:Ye.jsxs("label",{className:`themeselection ${(null==V?void 0:V.filter((e=>"Showcase1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"radio",onClick:()=>ee(null==O?void 0:O.filter((e=>"Showcase1"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Showcase1"===e.ComponentName)).length)>0&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})})}),Ye.jsx(k6,{})]})})})}),Ye.jsx("h1",{children:"Appview"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsx("div",{className:"Nav-templates",children:Ye.jsx("div",{className:"setscalesize ",children:Ye.jsxs("label",{className:`themeselection ${(null==V?void 0:V.filter((e=>"Appview1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"radio",onClick:()=>ee(null==O?void 0:O.filter((e=>"Appview1"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Appview1"===e.ComponentName)).length)>0&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})})}),Ye.jsx(T6,{})]})})})}),Ye.jsx("h1",{children:"Testimonial"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsx("div",{className:"Nav-templates",children:Ye.jsx("div",{className:"setscalesize ",children:Ye.jsxs("label",{className:`themeselection ${(null==V?void 0:V.filter((e=>"Testimonials1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"radio",onClick:()=>ee(null==O?void 0:O.filter((e=>"Testimonials1"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Testimonials1"===e.ComponentName)).length)>0&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})})}),Ye.jsx(L6,{})]})})})}),Ye.jsx("h1",{children:" Features"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsxs("div",{className:"Nav-templates",children:[Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:"themeselection",children:[Ye.jsx("input",{type:"radio",name:"radio3",onClick:()=>Z(null==O?void 0:O.filter((e=>"Features1"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Features1"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(p5,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:"themeselection",children:[Ye.jsx("input",{type:"radio",name:"radio3",onClick:()=>Z(null==O?void 0:O.filter((e=>"Features2"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Features2"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(f5,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:"themeselection",children:[Ye.jsx("input",{type:"radio",name:"radio3",onClick:()=>Z(null==O?void 0:O.filter((e=>"Features3"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Features3"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(x6,{})]})})]})}),Ye.jsx("h1",{children:" Pricing"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsxs("div",{className:"Nav-templates",children:[Ye.jsx("div",{className:"setscalesize ",children:Ye.jsxs("label",{className:"themeselection",children:[Ye.jsx("input",{type:"radio",name:"radio4",onClick:()=>Z(null==O?void 0:O.filter((e=>"Pricing1"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Pricing1"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(J3,{})]})}),Ye.jsx("div",{className:"setscalesize ",children:Ye.jsxs("label",{className:"themeselection",children:[Ye.jsx("input",{type:"radio",name:"radio4",onClick:()=>Z(null==O?void 0:O.filter((e=>"Pricing2"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Pricing2"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(r6,{})]})}),Ye.jsx("div",{className:"setscalesize ",children:Ye.jsxs("label",{className:"themeselection",children:[Ye.jsx("input",{type:"radio",name:"radio4",onClick:()=>Z(null==O?void 0:O.filter((e=>"Pricing3"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Pricing3"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(d6,{})]})})]})}),Ye.jsx("h1",{children:" Faq"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsxs("div",{className:"Nav-templates",children:[Ye.jsx("div",{className:"setscalesize ",children:Ye.jsxs("label",{className:"themeselection",children:[Ye.jsx("input",{type:"radio",name:"radio5",onClick:()=>Z(null==O?void 0:O.filter((e=>"Faq1"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Faq1"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(c6,{})]})}),Ye.jsx("div",{className:"setscalesize ",children:Ye.jsxs("label",{className:"themeselection",children:[Ye.jsx("input",{type:"radio",name:"radio5",onClick:()=>Z(null==O?void 0:O.filter((e=>"Faq2"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Faq2"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(u6,{})]})}),Ye.jsx("div",{className:"setscalesize ",children:Ye.jsxs("label",{className:"themeselection",children:[Ye.jsx("input",{type:"radio",name:"radio5",onClick:()=>Z(null==O?void 0:O.filter((e=>"Faq3"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Faq3"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(I6,{})]})})]})}),Ye.jsx("h1",{children:"CTA"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsx("div",{className:"Nav-templates",children:Ye.jsx("div",{className:"setscalesize ",children:Ye.jsxs("label",{className:`themeselection ${(null==V?void 0:V.filter((e=>"CTA1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"radio",onClick:()=>ee(null==O?void 0:O.filter((e=>"CTA1"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"CTA1"===e.ComponentName)).length)>0&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})})}),Ye.jsx(M6,{})]})})})}),Ye.jsx("h1",{children:" Footer"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsxs("div",{className:"Nav-templates",children:[Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:"themeselection",children:[Ye.jsx("input",{type:"radio",name:"radio6",onClick:()=>Z(null==O?void 0:O.filter((e=>"Footer1"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Footer1"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(p6,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:"themeselection",children:[Ye.jsx("input",{type:"radio",name:"radio6",onClick:()=>Z(null==O?void 0:O.filter((e=>"Footer2"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Footer2"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(A6,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:"themeselection",children:[Ye.jsx("input",{type:"radio",name:"radio6",onClick:()=>Z(null==O?void 0:O.filter((e=>"Footer3"===e.ComponentName)))}),(null==V?void 0:V.filter((e=>"Footer3"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(m6,{})]})})]})})]}),Ye.jsx("div",{children:Ye.jsx("div",{className:"selectionCard",children:Ye.jsxs("div",{children:[Ye.jsx("h2",{style:{padding:"0.5rem 0rem"},children:"Selected Items "}),Ye.jsx("ul",{style:{display:"inline",flexDirection:"column"},children:null==Q?void 0:Q.map((e=>Ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"14px"},children:[Ye.jsxs("li",{style:{color:"#4B4B4B"},children:[e.SectionName," "]}),(null==V?void 0:V.filter((t=>t.SectionName===e.SectionName)).length)>0&&Ye.jsx("li",{children:Ye.jsx(ve,{style:{color:"#52C41A"}})})]})))})]})})}),void 0,Ye.jsx("div",{className:"FloatSection",children:Ye.jsx("div",{children:Ye.jsx(Ry,{buttonText:"SUBMIT & SAVE",handleSubmit:()=>{var i;return 0===(null==r?void 0:r.length)||"Y"===(null==(i=null==r?void 0:r.find((e=>"Templates"===(null==e?void 0:e.ConfigName))))?void 0:i.AddAccess)||"Super Admin"===G?(async()=>{var i,a,r,s,l;let g={};g.AppId=v,g.ColorId=y,g.FontId=b,g.BannerImageUrl=null==(i=null==p?void 0:p.find((e=>"Overview1BannerImage"===e.FieldName||"Overview2BannerImage"===e.FieldName)))?void 0:i.FieldValue,g.CreatedBy=t;let x=[];for(let e=0;e<V.length;e++)switch(V[e].SectionName){case"Navbar":(null==o?void 0:o.length)>0?x.push({ComponentId:V[e].ComponentId,ComponentDetails:null==o?void 0:o.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))}):(L("Please fill Navbar Template Data"),E("warning"));break;case"Overview":(null==p?void 0:p.length)>0?x.push({ComponentId:V[e].ComponentId,ComponentDetails:null==p?void 0:p.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))}):(L("Please fill Overview Template Data"),E("warning"));break;case"Faq":(null==A?void 0:A.length)>0?x.push({ComponentId:V[e].ComponentId,ComponentDetails:null==A?void 0:A.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))}):(L("Please fill Faq Template Data"),E("warning"));break;case"Features":(null==m?void 0:m.length)>0?x.push({ComponentId:V[e].ComponentId,ComponentDetails:null==m?void 0:m.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))}):(L("Please fill Feature Template Data"),E("warning"));break;case"Pricing":(null==h?void 0:h.length)>0?x.push({ComponentId:V[e].ComponentId,ComponentDetails:null==h?void 0:h.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))}):(L("Please fill Pricing Template Data"),E("warning"));break;case"Footer":(null==f?void 0:f.length)>0?x.push({ComponentId:V[e].ComponentId,ComponentDetails:null==f?void 0:f.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))}):(L("Please fill Footer Template Data"),E("warning"));break;case"Showcase":(null==c?void 0:c.length)>0&&x.push({ComponentId:V[e].ComponentId,ComponentDetails:null==c?void 0:c.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))});break;case"Appview":(null==u?void 0:u.length)>0&&x.push({ComponentId:V[e].ComponentId,ComponentDetails:null==u?void 0:u.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))});break;case"Testimonials":(null==o?void 0:o.length)>0&&x.push({ComponentId:V[e].ComponentId,ComponentDetails:null==n?void 0:n.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))});break;case"CTA":(null==d?void 0:d.length)>0&&x.push({ComponentId:V[e].ComponentId,ComponentDetails:null==d?void 0:d.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))})}g.TemplateDetails=x;let w=await e(d_(g)).unwrap();1==(null==(a=null==w?void 0:w.data)?void 0:a.statusCode)?("Application Template Already Exists"===(null==(r=null==w?void 0:w.data)?void 0:r.response)?E("warning"):(e(F_([])),e(B_([])),e(P_([])),e(b_([])),e(changePricingData([])),e(changeCtaDetails([])),E("success")),L(null==(s=null==w?void 0:w.data)?void 0:s.response),R([]),z([])):(E("error"),L(null==(l=null==w?void 0:w.data)?void 0:l.response))})():""},icon:Ye.jsx(k,{}),disabled:!((null==o?void 0:o.length)>0&&(null==f?void 0:f.length)>0&&null!==v)})})})]})})},empAccess:"Templates"},{path:"all-templates",component:()=>{var e,t,n,i,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,S,N,I,F,B,P,k,T,E,D,L,U,_,O,M,R,Q,H,V,z,q,W,Y,K,G,$,X,J,Z,ee,te,ne,ie,ae,re,se,le,oe,de,ce,ue,pe,Ae,he,fe,me,ve,ye,xe,be,we,je,Ce,Se,Ne,Ie,Fe,Be,Pe;const ke=um(),Te=Qt(),Ee=Tf(Z_),De=Tf(U_),[Le,Ue]=a.useState(null);a.useEffect((()=>{var e;ke(P_(null==(e=null==Ee?void 0:Ee.Testimonials)?void 0:e[1]))}),[Ee]);const _e=[{name:"Themes",link:`${u8}setting/themes`},{name:"Templates",link:`${u8}setting/all-templates`}];a.useEffect((()=>{ke(Gh({items:_e})),ke(n_()).unwrap,ke(N_())}),[]);return Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{className:"allTemplateMain",children:[Ye.jsxs("div",{className:"allTemplateSubdiv",children:[Ye.jsxs("div",{children:[Ye.jsx("h1",{children:" Applications"}),Ye.jsx("br",{}),Ye.jsx(_y,{options:null==De?void 0:De.map((e=>({value:e.AppId,label:e.AppName}))),label:"Application",onChangeFunction:async e=>{var t;ke(x_({AppId:e}));let n=De.filter((t=>(null==t?void 0:t.AppId)===e));ke(r_(null==(t=n[0])?void 0:t.AppName)).unwrap(),await Ue(e)},className:"field-DropDown",isOnchanges:!!Le,valueData:Le})]}),Ye.jsxs("div",{children:[Ye.jsx(C,{})," New"]}),Ye.jsxs("div",{children:[Ye.jsx(ge,{onClick:()=>{var e;(null==(e=Object.keys(Ee))?void 0:e.length)>0&&Te(`${u8}setting/all-templates/update`,{state:{editstate:Ee}})}})," Edit"]})]}),Ye.jsx("div",{className:"allTemplate",style:{width:"80%"},children:(null==(e=Object.keys(Ee))?void 0:e.length)>0?Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(pL,{}),"Navbar2"===(null==(t=null==Ee?void 0:Ee.Navbar)?void 0:t[0])&&Ye.jsxs("div",{children:[Ye.jsxs("div",{id:"Navbar",children:["Navbar1"==(null==(n=Ee.Navbar)?void 0:n[0])&&Ye.jsx(U2,{data:Ee.Navbar[1]}),"Navbar2"==(null==(i=Ee.Navbar)?void 0:i[0])&&Ye.jsx(R2,{data:Ee.Navbar[1]}),"Navbar3"==(null==(r=Ee.Navbar)?void 0:r[0])&&Ye.jsx(j6,{data:Ee.Navbar[1]})]}),Ye.jsxs("div",{id:"Overview",children:["Overview1"==(null==(s=Ee.Overview)?void 0:s[0])&&Ye.jsx(q2,{data:Ee.Overview[1],Preview:!0}),"Overview2"==(null==(l=Ee.Overview)?void 0:l[0])&&Ye.jsx(K2,{data:Ee.Overview[1]}),"Overview3"==(null==(o=Ee.Overview)?void 0:o[0])&&Ye.jsx(r5,{data:Ee.Overview[1]})]}),Ye.jsx("div",{id:"ShowCase",children:"Showcase1"==(null==(d=Ee.Showcase)?void 0:d[0])&&Ye.jsx(B6,{data:null==(u=null==(c=Ee.Showcase[1])?void 0:c[0])?void 0:u.FieldValue})}),Ye.jsx("div",{id:"Appview",children:"Appview1"==(null==(p=Ee.Appview)?void 0:p[0])&&Ye.jsx(B6,{data:null==(h=null==(A=Ee.Appview[1])?void 0:A[0])?void 0:h.FieldValue})}),Ye.jsx("div",{id:"Testimonials",children:"Testimonials1"==(null==(f=Ee.Testimonials)?void 0:f[0])&&Ye.jsx(E6,{isDefault:!1})}),Ye.jsxs("div",{id:"Features",children:["Features1"==(null==(m=Ee.Features)?void 0:m[0])&&Ye.jsx(d5,{data:Ee.Features[1]}),"Features2"==(null==(v=Ee.Features)?void 0:v[0])&&Ye.jsx(A5,{data:Ee.Features[1]}),"Features3"==(null==(g=Ee.Features)?void 0:g[0])&&Ye.jsx(v6,{data:Ee.Features[1]})]}),Ye.jsxs("div",{id:"Pricing",children:["Pricing1"==(null==(y=Ee.Pricing)?void 0:y[0])&&Ye.jsx($3,{data:Ee.Pricing[1]}),"Pricing2"==(null==(x=Ee.Pricing)?void 0:x[0])&&Ye.jsx(i6,{data:Ee.Pricing[1]}),"Pricing3"==(null==(b=Ee.Pricing)?void 0:b[0])&&Ye.jsx(l6,{data:Ee.Pricing[1]})]}),Ye.jsxs("div",{id:"Faq",children:["Faq1"==(null==(w=Ee.Faq)?void 0:w[0])&&Ye.jsx(XM,{data:Ee.Faq[1]}),"Faq2"==(null==(j=Ee.Faq)?void 0:j[0])&&Ye.jsx(eR,{data:Ee.Faq[1]}),"Faq3"==(null==(S=Ee.Faq)?void 0:S[0])&&Ye.jsx(S6,{data:Ee.Faq[1]})]}),Ye.jsx("div",{id:"CTA",children:"CTA1"==(null==(N=Ee.CTA)?void 0:N[0])&&Ye.jsx(_6,{data:Ee.CTA[1]})}),Ye.jsxs("div",{id:"Footer",children:["Footer1"==(null==(I=Ee.Footer)?void 0:I[0])&&Ye.jsx(YM,{data:Ee.Footer[1]}),"Footer2"==(null==(F=Ee.Footer)?void 0:F[0])&&Ye.jsx(OM,{data:Ee.Footer[1]}),"Footer3"==(null==(B=Ee.Footer)?void 0:B[0])&&Ye.jsx(h6,{data:Ee.Footer[1]})]})]}),"Navbar1"===(null==(P=null==Ee?void 0:Ee.Navbar)?void 0:P[0])&&Ye.jsxs("div",{className:"applayout1",style:{display:"flex",flexDirection:"column",columnGap:"2rem"},children:[Ye.jsx("div",{className:"Appsidenav",children:Ye.jsxs("div",{id:"Navbar",children:["Navbar1"==(null==(k=Ee.Navbar)?void 0:k[0])&&Ye.jsx(U2,{data:Ee.Navbar[1]}),"Navbar2"==(null==(T=Ee.Navbar)?void 0:T[0])&&Ye.jsx(R2,{data:Ee.Navbar[1]}),"Navbar3"==(null==(E=Ee.Navbar)?void 0:E[0])&&Ye.jsx(j6,{data:Ee.Navbar[1]})]})}),Ye.jsxs("div",{className:"appcontent",style:{height:"70vh",overflow:"auto"},children:[Ye.jsxs("div",{id:"Overview",children:["Overview1"==(null==(D=Ee.Overview)?void 0:D[0])&&Ye.jsx(q2,{data:Ee.Overview[1],Preview:!0}),"Overview2"==(null==(L=Ee.Overview)?void 0:L[0])&&Ye.jsx(K2,{data:Ee.Overview[1]}),"Overview3"==(null==(U=Ee.Overview)?void 0:U[0])&&Ye.jsx(r5,{data:Ee.Overview[1]})]}),Ye.jsx("div",{id:"ShowCase",children:"Showcase1"==(null==(_=Ee.Showcase)?void 0:_[0])&&Ye.jsx(B6,{data:null==(M=null==(O=Ee.Showcase[1])?void 0:O[0])?void 0:M.FieldValue})}),Ye.jsx("div",{id:"Appview",children:"Appview1"==(null==(R=Ee.Appview)?void 0:R[0])&&Ye.jsx(B6,{data:null==(H=null==(Q=Ee.Appview[1])?void 0:Q[0])?void 0:H.FieldValue})}),Ye.jsx("div",{id:"Testimonials",children:"Testimonials1"==(null==(V=Ee.Testimonials)?void 0:V[0])&&Ye.jsx(E6,{isDefault:!1})}),Ye.jsxs("div",{id:"Features",children:["Features1"==(null==(z=Ee.Features)?void 0:z[0])&&Ye.jsx(d5,{data:Ee.Features[1]}),"Features2"==(null==(q=Ee.Features)?void 0:q[0])&&Ye.jsx(A5,{data:Ee.Features[1]}),"Features3"==(null==(W=Ee.Features)?void 0:W[0])&&Ye.jsx(v6,{data:Ee.Features[1]})]}),Ye.jsxs("div",{id:"Pricing",children:["Pricing1"==(null==(Y=Ee.Pricing)?void 0:Y[0])&&Ye.jsx($3,{data:Ee.Pricing[1]}),"Pricing2"==(null==(K=Ee.Pricing)?void 0:K[0])&&Ye.jsx(i6,{data:Ee.Pricing[1]}),"Pricing3"==(null==(G=Ee.Pricing)?void 0:G[0])&&Ye.jsx(l6,{data:Ee.Pricing[1]})]}),Ye.jsxs("div",{id:"Faq",children:["Faq1"==(null==($=Ee.Faq)?void 0:$[0])&&Ye.jsx(XM,{data:Ee.Faq[1]}),"Faq2"==(null==(X=Ee.Faq)?void 0:X[0])&&Ye.jsx(eR,{data:Ee.Faq[1]}),"Faq3"==(null==(J=Ee.Faq)?void 0:J[0])&&Ye.jsx(S6,{data:Ee.Faq[1]})]}),Ye.jsx("div",{id:"CTA",children:"CTA1"==(null==(Z=Ee.CTA)?void 0:Z[0])&&Ye.jsx(_6,{data:Ee.CTA[1]})}),Ye.jsxs("div",{id:"Footer",children:["Footer1"==(null==(ee=Ee.Footer)?void 0:ee[0])&&Ye.jsx(YM,{data:Ee.Footer[1]}),"Footer2"==(null==(te=Ee.Footer)?void 0:te[0])&&Ye.jsx(OM,{data:Ee.Footer[1]}),"Footer3"==(null==(ne=Ee.Footer)?void 0:ne[0])&&Ye.jsx(h6,{data:Ee.Footer[1]})]})]})]}),"Navbar3"===(null==(ie=null==Ee?void 0:Ee.Navbar)?void 0:ie[0])&&Ye.jsxs("div",{className:"applayout1",style:{display:"flex",flexDirection:"row",columnGap:"2rem",flexDirection:"column"},children:[Ye.jsx("div",{className:"Appsidenav",children:Ye.jsxs("div",{id:"Navbar",children:["Navbar1"==(null==(ae=Ee.Navbar)?void 0:ae[0])&&Ye.jsx(U2,{data:Ee.Navbar[1]}),"Navbar2"==(null==(re=Ee.Navbar)?void 0:re[0])&&Ye.jsx(R2,{data:Ee.Navbar[1]}),"Navbar3"==(null==(se=Ee.Navbar)?void 0:se[0])&&Ye.jsx(j6,{data:Ee.Navbar[1]})]})}),Ye.jsxs("div",{className:"appcontent",style:{height:"70vh",overflow:"auto"},children:[Ye.jsxs("div",{id:"Overview",children:["Overview1"==(null==(le=Ee.Overview)?void 0:le[0])&&Ye.jsx(q2,{data:Ee.Overview[1],Preview:!0}),"Overview2"==(null==(oe=Ee.Overview)?void 0:oe[0])&&Ye.jsx(K2,{data:Ee.Overview[1]}),"Overview3"==(null==(de=Ee.Overview)?void 0:de[0])&&Ye.jsx(r5,{data:Ee.Overview[1]})]}),Ye.jsx("div",{id:"ShowCase",children:"Showcase1"==(null==(ce=Ee.Showcase)?void 0:ce[0])&&Ye.jsx(B6,{data:null==(pe=null==(ue=Ee.Showcase[1])?void 0:ue[0])?void 0:pe.FieldValue})}),Ye.jsx("div",{id:"Appview",children:"Appview1"==(null==(Ae=Ee.Appview)?void 0:Ae[0])&&Ye.jsx(B6,{data:null==(fe=null==(he=Ee.Appview[1])?void 0:he[0])?void 0:fe.FieldValue})}),Ye.jsx("div",{id:"Testimonials",children:"Testimonials1"==(null==(me=Ee.Testimonials)?void 0:me[0])&&Ye.jsx(E6,{isDefault:!1})}),Ye.jsxs("div",{id:"Features",children:["Features1"==(null==(ve=Ee.Features)?void 0:ve[0])&&Ye.jsx(d5,{data:Ee.Features[1]}),"Features2"==(null==(ye=Ee.Features)?void 0:ye[0])&&Ye.jsx(A5,{data:Ee.Features[1]}),"Features3"==(null==(xe=Ee.Features)?void 0:xe[0])&&Ye.jsx(v6,{data:Ee.Features[1]})]}),Ye.jsxs("div",{id:"Pricing",children:["Pricing1"==(null==(be=Ee.Pricing)?void 0:be[0])&&Ye.jsx($3,{data:Ee.Pricing[1]}),"Pricing2"==(null==(we=Ee.Pricing)?void 0:we[0])&&Ye.jsx(i6,{data:Ee.Pricing[1]}),"Pricing3"==(null==(je=Ee.Pricing)?void 0:je[0])&&Ye.jsx(l6,{data:Ee.Pricing[1]})]}),Ye.jsxs("div",{id:"Faq",children:["Faq1"==(null==(Ce=Ee.Faq)?void 0:Ce[0])&&Ye.jsx(XM,{data:Ee.Faq[1]}),"Faq2"==(null==(Se=Ee.Faq)?void 0:Se[0])&&Ye.jsx(eR,{data:Ee.Faq[1]}),"Faq3"==(null==(Ne=Ee.Faq)?void 0:Ne[0])&&Ye.jsx(S6,{data:Ee.Faq[1]})]}),Ye.jsx("div",{id:"CTA",children:"CTA1"==(null==(Ie=Ee.CTA)?void 0:Ie[0])&&Ye.jsx(_6,{data:Ee.CTA[1]})}),Ye.jsxs("div",{id:"Footer",children:["Footer1"==(null==(Fe=Ee.Footer)?void 0:Fe[0])&&Ye.jsx(YM,{data:Ee.Footer[1]}),"Footer2"==(null==(Be=Ee.Footer)?void 0:Be[0])&&Ye.jsx(OM,{data:Ee.Footer[1]}),"Footer3"==(null==(Pe=Ee.Footer)?void 0:Pe[0])&&Ye.jsx(h6,{data:Ee.Footer[1]})]})]})]})]}):Le?Ye.jsx("div",{children:Ye.jsx(Q6,{})}):null})]})})},empAccess:"Templates"},{path:"all-templates/update",component:()=>{var e;const t=um(),n=Mt(),i=null==n?void 0:n.state,r=null==i?void 0:i.editstate,s=Qt(),l=Tf(U_),o=Tf(__),d=Tf(O_),c=Tf(V_),u=Tf(M_),p=Tf(z_),A=Tf(J_),h=Tf(k_),f=Tf(T_),m=Tf(E_),v=Tf(eO),g=Tf($_),y=Tf(G_),x=Tf(Gg),b=iA("UserId"),w=iA("UserType"),[C,S]=a.useState(null==(e=Tf(q_))?void 0:e.AppId),[N,F]=a.useState(Tf(K_)),[B,P]=a.useState(Tf(Y_)),[T,E]=a.useState(!1),[D,L]=a.useState("#37943C"),[U,_]=a.useState("#b2eb9b"),[O,R]=a.useState(null),[Q,H]=a.useState(null),[V,z]=a.useState(!1),[q,W]=a.useState([]),[Y,K]=a.useState([]),[G,$]=a.useState([]),[X]=I.useForm(),J=[{name:"Templates",link:`${p8}setting/all-templates`}];a.useEffect((()=>{var e,n,i,a,s,l,o,d,c,u,p;t(Gh({items:J})),t(n_()).unwrap,t(i_()).unwrap,t(a_()).unwrap,(null==(e=Object.keys(r))?void 0:e.length)>0&&((null==(n=Object.keys(r))?void 0:n.includes("Navbar"))&&t(y_(r.Navbar[1])),(null==(i=Object.keys(r))?void 0:i.includes("Overview"))&&t(h_({postData:r.Overview[1]})),(null==(a=Object.keys(r))?void 0:a.includes("Showcase"))&&t(F_(r.Showcase[1])),(null==(s=Object.keys(r))?void 0:s.includes("Appview"))&&t(B_(r.Appview[1])),(null==(l=Object.keys(r))?void 0:l.includes("Testimonials"))&&t(P_(r.Testimonials[1])),(null==(o=Object.keys(r))?void 0:o.includes("Features"))&&t(b_({featureList:r.Features[1]})),(null==(d=Object.keys(r))?void 0:d.includes("Pricing"))&&t(C_({postData:r.Pricing[1]})),(null==(c=Object.keys(r))?void 0:c.includes("CTA"))&&t(j_(r.CTA[1])),(null==(u=Object.keys(r))?void 0:u.includes("Faq"))&&t(g_(r.Faq[1])),(null==(p=Object.keys(r))?void 0:p.includes("Footer"))&&t(w_(r.Footer[1]))),ee()}),[]),a.useEffect((()=>{const e=(e=>{const t=new Set;return null==e?void 0:e.filter((e=>!t.has(e.SectionId)&&(t.add(e.SectionId),!0)))})(q);$(e)}),[q]);const Z=a.useCallback((()=>{H(null),R(null)}),[]),ee=async()=>{var e,n,i;let a=await t(o_()).unwrap();if((null==(e=null==a?void 0:a.data)?void 0:e.statusCode)&&(W(null==(n=null==a?void 0:a.data)?void 0:n.data),(null==(i=Object.keys(r))?void 0:i.length)>0)){const e=[];Object.keys(r).forEach((t=>{var n;const i=r[t][0],s=null==(n=null==a?void 0:a.data)?void 0:n.data.find((e=>e.ComponentName===i));s&&e.push(s)})),K(e)}},te=e=>{const t=(e=>parseInt(e.slice(1,3),16)/255*.2126+parseInt(e.slice(3,5),16)/255*.7152+parseInt(e.slice(5,7),16)/255*.0722)(e);return t<=.5},ne=e=>{const t=null==Y?void 0:Y.findIndex((t=>t.SectionId===e[0].SectionId));if(-1!==t){const n=[...Y];n[t]=e[0],K(n)}else K([...Y,...e])},ie=e=>{const t=null==Y?void 0:Y.findIndex((t=>(null==t?void 0:t.SectionId)===e[0].SectionId));if(-1!==t){const n=[...Y];n[t]=e[0],K(n)}else K([...Y,...e])};return Ye.jsxs("div",{style:{display:"flex",flexDirection:"column",flexGrow:"1",width:"100%"},children:[Ye.jsxs("div",{className:"tempUp",children:[Ye.jsx(Qy,{messageType:O,messageData:Q,onComplete:Z}),Ye.jsxs("div",{children:[Ye.jsx("h1",{children:" Applications"}),Ye.jsx("br",{}),Ye.jsx(_y,{options:null==l?void 0:l.map((e=>({value:e.AppId,label:e.AppName}))),label:"Application",onChangeFunction:async e=>{t(x_({AppId:e})),await S(e)},className:"field-DropDown",isOnchanges:!!C,valueData:C,disabled:!0})]}),Ye.jsxs("div",{children:[Ye.jsx("h1",{children:" Colors "}),Ye.jsx("br",{}),Ye.jsxs("div",{className:"fontsdiv",children:[Ye.jsx("div",{className:"colorDropdown",children:Ye.jsx(_y,{options:null==o?void 0:o.map((e=>({value:e.ColorId,label:Ye.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[Ye.jsx("div",{style:{width:"27px",height:"27px",borderRadius:"25.774192810058594px",backgroundColor:e.DarkColor},children:Ye.jsx("span",{style:{width:"27px",height:"27px",borderRadius:"50px",marginLeft:"15px",backgroundColor:e.LightColor},children:" "})}),Ye.jsx("div",{children:e.ThemeName})]})}))),labelChange:!0,label:"Color",className:"field-DropDown",onChangeFunction:async e=>{await F(e);let n=o.filter((t=>(null==t?void 0:t.ColorId)===e));t(p_({color:{darkColor:n[0].DarkColor,lightColor:n[0].LightColor}}))},isOnchanges:!!N,valueData:N})}),Ye.jsx("div",{children:Ye.jsx(me,{className:"plusOutlinedIcon",onClick:()=>{E(!0)}})})]})]}),Ye.jsxs(j,{open:T,title:"Colors",closeIcon:Ye.jsx(M,{onClick:()=>{E(!1)}}),width:350,children:[Ye.jsxs("div",{children:[Ye.jsx("div",{children:Ye.jsx("p",{children:"Please select at least one dark and one light color."})}),Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"0.5rem"},children:[Ye.jsxs("div",{style:{display:"flex"},children:[Ye.jsx("p",{children:"Dark Color : "}),Ye.jsx("div",{style:{width:"35px",height:"23px",backgroundColor:D}})]}),Ye.jsxs("div",{style:{display:"flex"},children:[Ye.jsx("p",{children:"Light Color : "}),Ye.jsx("div",{style:{width:"35px",height:"23px",backgroundColor:U}})]})]})]}),Ye.jsx("br",{}),Ye.jsx(F2,{onChange:(e,t)=>{te(e.hex)?L(e.hex):_(e.hex)}}),Ye.jsx("div",{children:Ye.jsx("button",{className:"colorBtn",onClick:async()=>{var e,n,i,a;if(D&&U){let s;try{let e={DarkColor:D,LightColor:U,CreatedBy:iA("UserId")};s=await t(s_(e)).unwrap()}catch(r){"Request failed with status code 422"==r.message&&(s={data:{statusCode:0,response:"Color Not Added",data:[]}})}1==(null==(e=null==s?void 0:s.data)?void 0:e.statusCode)?(E(!1),H(null==(n=null==s?void 0:s.data)?void 0:n.response),"Color Already Exists"==(null==(i=null==s?void 0:s.data)?void 0:i.response)?R("warning"):R("success"),t(i_()).unwrap):(H(null==(a=null==s?void 0:s.data)?void 0:a.response),R("error"))}else H("Please select at least one dark and one light color."),R("warning")},children:"SAVE"})})]}),Ye.jsxs("div",{children:[Ye.jsx("h1",{children:" Fonts "}),Ye.jsx("br",{}),Ye.jsxs("div",{className:"fontsdiv",children:[Ye.jsx("div",{children:Ye.jsx(_y,{options:null==d?void 0:d.map((e=>({value:e.FontId,label:e.Font}))),label:"Font",onChangeFunction:async e=>{await P(e);let n=d.filter((t=>(null==t?void 0:t.FontId)===e));t(A_({text:{head:n[0].Font.split(",")[0],para:n[0].Font.split(",")[1]}}))},className:"field-DropDown",isOnchanges:!!B,valueData:B})}),Ye.jsxs("div",{children:[Ye.jsx(me,{className:"plusOutlinedIcon",onClick:()=>{z(!0)}}),Ye.jsx(SP,{open:V,title:"Fonts",footer:!0,children:Ye.jsxs(I,{form:X,children:[Ye.jsxs("div",{className:"fontInputs",children:[Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"HeadFont",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Head Font"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"HeadFont",label:"Head",className:"Input",fieldState:!0,fieldApi:!0,autoComplete:"off"})})}),Ye.jsx("div",{children:Ye.jsx(I.Item,{name:"ParaFont",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Paragraph Font"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"ParaFont",label:"Paragraph",className:"Input",fieldState:!0,fieldApi:!0,autoComplete:"off"})})})]}),Ye.jsx("p",{style:{color:"#FF4D4F"},children:"* Google Fonts Only"})]}),handleCancel:()=>{z(!1),X.resetFields()},handleSubmit:async()=>{(async e=>{fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyDP1HqNkLI53iIAH-SB9_mt_24QdkUZ_24").then((e=>e.json())).then((async n=>{var i,a,r,s;const l=null==n?void 0:n.items.map((e=>e.family));if(l.includes(e.HeadFont)&&l.includes(e.ParaFont)){let n;try{let i={HeadFont:e.HeadFont,ParaFont:e.ParaFont,CreatedBy:iA("UserId")};n=await t(l_(i)).unwrap()}catch(o){"Request failed with status code 422"==o.message&&(n={data:{statusCode:0,response:"Font Not Added",data:[]}})}1==(null==(i=null==n?void 0:n.data)?void 0:i.statusCode)?(z(!1),H(null==(a=null==n?void 0:n.data)?void 0:a.response),"Font Already Exists"==(null==(r=null==n?void 0:n.data)?void 0:r.response)?R("warning"):R("success"),t(a_()).unwrap,X.resetFields()):(H(null==(s=null==n?void 0:n.data)?void 0:s.response),R("error"))}else H("Please give both head and para font as google fonts"),R("warning")})).catch((e=>{}))})(await X.validateFields())},buttonText:"SAVE"})]})]})]}),Ye.jsx("h1",{children:"NavBars"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsxs("div",{className:"Nav-templates",children:[Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Navbar1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"navbar",onClick:()=>ie(null==q?void 0:q.filter((e=>"Navbar1"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Navbar1"===e.ComponentName)).length)>0&&Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})}),Ye.jsx(O2,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Navbar2"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"navbar",onClick:()=>ie(null==q?void 0:q.filter((e=>"Navbar2"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Navbar2"===e.ComponentName)).length)>0&&Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})}),Ye.jsx(Q2,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Navbar3"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"navbar",onClick:()=>ie(null==q?void 0:q.filter((e=>"Navbar3"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Navbar3"===e.ComponentName)).length)>0&&Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})}),Ye.jsx(C6,{})]})})]})}),Ye.jsx("h1",{children:"Overviews"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsxs("div",{className:"Nav-templates",children:[Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Overview1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"overview",onClick:()=>ie(null==q?void 0:q.filter((e=>"Overview1"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Overview1"===e.ComponentName)).length)>0&&Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})}),Ye.jsx(W2,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Overview2"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"overview",onClick:()=>ie(null==q?void 0:q.filter((e=>"Overview2"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Overview2"===e.ComponentName)).length)>0&&Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})}),Ye.jsx(G2,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Overview3"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"overview",onClick:()=>ie(null==q?void 0:q.filter((e=>"Overview3"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Overview3"===e.ComponentName)).length)>0&&Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})}),Ye.jsx(s5,{})]})})]})}),Ye.jsx("h1",{children:"Features"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsxs("div",{className:"Nav-templates",children:[Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Features1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"features",onClick:()=>ne(null==q?void 0:q.filter((e=>"Features1"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Features1"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(p5,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Features2"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"features",onClick:()=>ne(null==q?void 0:q.filter((e=>"Features2"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Features2"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(f5,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Features3"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"features",onClick:()=>ne(null==q?void 0:q.filter((e=>"Features3"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Features3"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(x6,{})]})})]})}),Ye.jsx("h1",{children:"Showcase"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsx("div",{className:"Nav-templates",children:Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Showcase1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"showcase",onClick:()=>ie(null==q?void 0:q.filter((e=>"Showcase1"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Showcase1"===e.ComponentName)).length)>0&&Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})}),Ye.jsx(k6,{})]})})})}),Ye.jsx("h1",{children:"Appview"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsx("div",{className:"Nav-templates",children:Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Appview1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"appview",onClick:()=>ie(null==q?void 0:q.filter((e=>"Appview1"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Appview1"===e.ComponentName)).length)>0&&Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})}),Ye.jsx(T6,{})]})})})}),Ye.jsx("h1",{children:"Testimonials"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsx("div",{className:"Nav-templates",children:Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Testimonials1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"testimonials",onClick:()=>ie(null==q?void 0:q.filter((e=>"Testimonials1"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Testimonials1"===e.ComponentName)).length)>0&&Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})}),Ye.jsx(L6,{})]})})})}),Ye.jsx("h1",{children:"Pricing"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsxs("div",{className:"Nav-templates",children:[Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Pricing1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"pricing",onClick:()=>ne(null==q?void 0:q.filter((e=>"Pricing1"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Pricing1"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(J3,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Pricing2"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"pricing",onClick:()=>ne(null==q?void 0:q.filter((e=>"Pricing2"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Pricing2"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(r6,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Pricing3"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"pricing",onClick:()=>ne(null==q?void 0:q.filter((e=>"Pricing3"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Pricing3"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(d6,{})]})})]})}),Ye.jsx("h1",{children:"FAQ"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsxs("div",{className:"Nav-templates",children:[Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Faq1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"faq",onClick:()=>ne(null==q?void 0:q.filter((e=>"Faq1"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Faq1"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(c6,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Faq2"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"faq",onClick:()=>ne(null==q?void 0:q.filter((e=>"Faq2"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Faq2"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(u6,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Faq3"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"faq",onClick:()=>ne(null==q?void 0:q.filter((e=>"Faq3"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Faq3"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(I6,{})]})})]})}),Ye.jsx("h1",{children:"CTA"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsx("div",{className:"Nav-templates",children:Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"CTA1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"cta",onClick:()=>ie(null==q?void 0:q.filter((e=>"CTA1"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"CTA1"===e.ComponentName)).length)>0&&Ye.jsx("div",{children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 0rem"}})}),Ye.jsx(M6,{})]})})})}),Ye.jsx("h1",{children:"Footer"}),Ye.jsx(o5,{showLeftButton:!0,showRightButton:!0,children:Ye.jsxs("div",{className:"Nav-templates",children:[Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Footer1"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"footer",onClick:()=>ne(null==q?void 0:q.filter((e=>"Footer1"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Footer1"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(p6,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Footer2"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"footer",onClick:()=>ne(null==q?void 0:q.filter((e=>"Footer2"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Footer2"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(A6,{})]})}),Ye.jsx("div",{className:"setscalesize",children:Ye.jsxs("label",{className:`themeselection ${(null==Y?void 0:Y.filter((e=>"Footer3"===e.ComponentName)).length)>0&&"selected"}`,children:[Ye.jsx("input",{type:"radio",name:"footer",onClick:()=>ne(null==q?void 0:q.filter((e=>"Footer3"===e.ComponentName)))}),(null==Y?void 0:Y.filter((e=>"Footer3"===e.ComponentName)).length)>0&&Ye.jsx("span",{className:"checkmark",children:Ye.jsx(ve,{style:{color:"#52C41A",display:"flex",padding:"1rem 1rem"}})}),Ye.jsx(m6,{})]})})]})}),Ye.jsx("div",{className:"selectionCard",children:Ye.jsxs("div",{children:[Ye.jsx("h2",{style:{padding:"0.5rem 0rem"},children:"Selected Items"}),Ye.jsx("ul",{style:{display:"inline",flexDirection:"column"},children:null==G?void 0:G.map((e=>Ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"14px"},children:[Ye.jsx("li",{style:{color:"#4B4B4B"},children:e.SectionName}),(null==Y?void 0:Y.filter((t=>t.SectionName===e.SectionName)).length)>0&&Ye.jsx("li",{children:Ye.jsx(ve,{style:{color:"#52C41A"}})})]},e.SectionId)))})]})})]}),Ye.jsx("div",{className:"FloatSection_Update",children:Ye.jsx("div",{children:Ye.jsx(Ry,{buttonText:"SUBMIT & SAVE",handleSubmit:()=>{var e;return 0===(null==x?void 0:x.length)||"Y"===(null==(e=null==x?void 0:x.find((e=>"Templates"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)||"Super Admin"===w?(async()=>{var e,n,i;let a={};a.AppId=C,a.ColorId=N,a.FontId=B,a.BannerImageUrl=null==(e=null==u?void 0:u.find((e=>"Overview1BannerImage"===e.FieldName||"Overview2BannerImage"===e.FieldName)))?void 0:e.FieldValue,a.CreatedBy=b;let r=[];for(let t=0;t<Y.length;t++)switch(Y[t].SectionName){case"Navbar":if(!((null==c?void 0:c.length)>0))return H("Please fill Navbar Template Data"),void R("warning");r.push({ComponentId:Y[t].ComponentId,ComponentDetails:null==c?void 0:c.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))});break;case"Overview":if(!((null==u?void 0:u.length)>0))return H("Please fill Overview Template Data"),void R("warning");r.push({ComponentId:Y[t].ComponentId,ComponentDetails:null==u?void 0:u.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))});break;case"Features":if(!((null==y?void 0:y.length)>0))return H("Please fill Feature Template Data"),void R("warning");r.push({ComponentId:Y[t].ComponentId,ComponentDetails:null==y?void 0:y.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))});break;case"Pricing":if(!((null==A?void 0:A.length)>0))return H("Please fill Pricing Template Data"),void R("warning");r.push({ComponentId:Y[t].ComponentId,ComponentDetails:null==A?void 0:A.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))});break;case"Faq":if(!((null==p?void 0:p.length)>0))return H("Please fill Faq Template Data"),void R("warning");r.push({ComponentId:Y[t].ComponentId,ComponentDetails:null==p?void 0:p.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))});break;case"Footer":if(!((null==g?void 0:g.length)>0))return H("Please fill Footer Template Data"),void R("warning");r.push({ComponentId:Y[t].ComponentId,ComponentDetails:null==g?void 0:g.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))});break;case"Showcase":(null==h?void 0:h.length)>0&&r.push({ComponentId:Y[t].ComponentId,ComponentDetails:null==h?void 0:h.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))});break;case"Appview":(null==f?void 0:f.length)>0&&r.push({ComponentId:Y[t].ComponentId,ComponentDetails:null==f?void 0:f.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))});break;case"Testimonials":(null==m?void 0:m.length)>0&&r.push({ComponentId:Y[t].ComponentId,ComponentDetails:null==m?void 0:m.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))});break;case"CTA":(null==v?void 0:v.length)>0&&r.push({ComponentId:Y[t].ComponentId,ComponentDetails:null==v?void 0:v.filter((e=>void 0!==e.FieldValue&&""!==e.FieldValue))})}a.TemplateDetails=r;let l=await t(c_(a)).unwrap();1==(null==(n=null==l?void 0:l.data)?void 0:n.statusCode)?(R("success"),H("Data Updated Successfully"),t(F_([])),t(B_([])),t(P_([])),t(b_({featureList:[]})),t(C_({postData:[]})),t(j_([])),setTimeout((()=>{s(`${p8}setting/all-templates`)}),3e3)):(R("error"),H(null==(i=null==l?void 0:l.data)?void 0:i.response))})():""},icon:Ye.jsx(k,{}),disabled:!((null==Y?void 0:Y.length)>0&&null!==C)})})})]})},empAccess:"Templates"},{path:"payment-gateway-config",component:()=>{var e;const t=um(),n=Qt(),i=Mt(),[r,s]=a.useState(1),[l,o]=a.useState(null),[d,c]=a.useState(null),[u,p]=a.useState([]),[A,h]=a.useState(""),[f,m]=a.useState({}),v=iA("UserType"),g=Tf(Gg),y=[{name:"Home",link:`${oee}landing-page/home`},{name:"PaymentGatewayConfig",link:`${oee}setting/payment-gateway-config`}],x=[{title:"SI.NO",key:"sno",align:"center",width:"60px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(r-1)+n+1})},{title:"Admin Name / Mobile.No",dataIndex:"UserName",key:"UserName",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:t.UserName?null==t?void 0:t.UserName:null==t?void 0:t.MobileNo}),ellipsis:!0},{title:"App Name",dataIndex:"AppName",key:"AppName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[A],onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.BranchName).toLowerCase().includes(e.toLowerCase())||String(t.CompanyName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.AppName)?void 0:n.localeCompare(t.AppName)},sortOrder:"AppName"===f.columnKey?f.order:null,ellipsis:!0},{title:"Company Name",dataIndex:"CompanyName",key:"CompanyName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.CompanyName)?void 0:n.localeCompare(t.CompanyName)},sortOrder:"CompanyName"===f.columnKey?f.order:null,ellipsis:!0},{title:"Branch Name",dataIndex:"BranchName",key:"BranchName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.BranchName)?void 0:n.localeCompare(t.BranchName)},sortOrder:"BranchName"===f.columnKey?f.order:null,ellipsis:!0},{title:"Merchant Id",dataIndex:"MerchantId",key:"MerchantId",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Access Code",dataIndex:"AccessCode",key:"AccessCode",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Working Key",dataIndex:"WorkingKey",key:"WorkingKey",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Action",key:"Action",dataIndex:"Action",align:"left",render:(e,t,n)=>u.length>=1?Ye.jsxs(P,{size:"middle",children:["A"==t.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==g?void 0:g.length)||"Y"===(null==(e=null==g?void 0:g.find((e=>"Payment Gateway Config"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?j(t):""}})}):"",Ye.jsx("a",{children:"A"==t.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==g?void 0:g.length)||"Y"===(null==(e=null==g?void 0:g.find((e=>"Payment Gateway Config"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?S(t):""}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==g?void 0:g.length)||"Y"===(null==(e=null==g?void 0:g.find((e=>"Payment Gateway Config"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?S(t):""}})})]}):null}];a.useEffect((()=>{var e,n,a;b(),t(Gh({items:y})),(null==(e=null==i?void 0:i.state)?void 0:e.Notiffy)&&(o(null==(n=null==i?void 0:i.state)?void 0:n.Notiffy.messageType),c(null==(a=null==i?void 0:i.state)?void 0:a.Notiffy.messageData))}),[]);const b=async()=>{var e,n;let i=await t(q9());p(null==(n=null==(e=null==i?void 0:i.payload)?void 0:e.data)?void 0:n.data)},w=a.useCallback((()=>{c(null),o(null)}),[]),j=async e=>{n(`${oee}setting/payment-gateway-config/update`,{state:{editstate:e,type:"edit"}})},S=async e=>{var n;let i={uniqueId:e.UniqueId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},a=await t(K9(i)).unwrap();1==(null==(n=null==a?void 0:a.data)?void 0:n.statusCode)&&(o("success"),c("A"==e.ActiveStatus?" Config Data In-Activated Successfully":"Config Data Activated Successfully"),b())};return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:l,messageData:d,onComplete:w}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Payment Gateway Config"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{h(e)},onSearchChange:e=>{var t;h(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",handleSubmit:()=>{n(`${oee}setting/payment-gateway-config/new`)},icon:Ye.jsx(C,{}),disabled:"Super Admin"!==v&&"N"===(null==(e=null==g?void 0:g.find((e=>"Payment Gateway Config"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:x,data:u,pagination:e=>{s(e)},onChange:(e,t,n)=>{m(n)}})})]})})},empAccess:"Payment Gateway Config"},{path:"payment-gateway-config/new",component:e=>Ye.jsx(lee,{...e,formType:"add"}),empAccess:"Payment Gateway Config"},{path:"payment-gateway-config/update",component:e=>Ye.jsx(lee,{...e,formType:"edit"}),empAccess:"Payment Gateway Config"},{path:"payment-device-config",component:()=>{var e;const t=um(),n=Qt(),i=Mt(),[r,s]=a.useState(1),[l,o]=a.useState(""),[d,c]=a.useState({}),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState([]),[v,g]=a.useState([]),[y,x]=a.useState(!1),b=Tf(Gg),w=iA("UserType"),j=[{name:"Home",link:`${gee}landing-page/home`},{name:"PaymentDeviceConfig",link:`${gee}setting/payment-device-config`}],S=[{title:"SI.NO",key:"sno",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(r-1)+n+1})},{title:"Admin Name / Mobile.No",dataIndex:"UserName",key:"UserName",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:t.UserName?null==t?void 0:t.UserName:null==t?void 0:t.MobileNo}),ellipsis:!0},{title:"App Name",dataIndex:"AppName",key:"AppName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[l],onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.BrName).toLowerCase().includes(e.toLowerCase())||String(t.CompName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.AppName)?void 0:n.localeCompare(t.AppName)},sortOrder:"AppName"===d.columnKey?d.order:null,ellipsis:!0},{title:"Company Name",dataIndex:"CompName",key:"CompName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.CompName)?void 0:n.localeCompare(t.CompName)},sortOrder:"CompName"===d.columnKey?d.order:null,ellipsis:!0},{title:"Branch Name",dataIndex:"BrName",key:"BrName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.BrName)?void 0:n.localeCompare(t.BrName)},sortOrder:"BrName"===d.columnKey?d.order:null,ellipsis:!0},{title:"Merchant Id",dataIndex:"MerchantId",key:"MerchantId",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"ConfigDetails",dataIndex:"DeviceConfigDetails",key:"DeviceConfigDetails",width:"150px",render:(e,t)=>Ye.jsx(ty,{style:{color:"#1292EE",fontSize:"25px",cursor:"pointer"},onClick:()=>F(e)})},{title:"Action",key:"Action",dataIndex:"Action",width:"150px",render:(e,t,n)=>(null==f?void 0:f.length)>=1?Ye.jsxs(P,{size:"middle",children:["A"===t.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==b?void 0:b.length)||"Y"===(null==(e=null==b?void 0:b.find((e=>"Payment Device Config"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?T(t,n):" "}})}):"",Ye.jsx("a",{children:"A"===t.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==b?void 0:b.length)||"Y"===(null==(e=null==b?void 0:b.find((e=>"Payment Device Config"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?E(t):" "}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==b?void 0:b.length)||"Y"===(null==(e=null==b?void 0:b.find((e=>"Payment Device Config"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?E(t):" "}})})]}):null}],N=[{title:"SI.NO",key:"sno",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(r-1)+n+1})},{title:"ClientId",dataIndex:"ClientId",key:"ClientId",align:"right",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"StoreId",dataIndex:"StoreId",key:"StoreId",align:"right",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"SecurityToken",dataIndex:"SecurityToken",key:"SecurityToken",align:"center",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"IMEI",dataIndex:"IMEI",key:"IMEI",align:"right",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Cancel Duration",dataIndex:"AutoCancelDurationInMinutes",key:"AutoCancelDurationInMinutes",align:"right",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Status",dataIndex:"ActiveStatus",key:"ActiveStatus",align:"left",render:(e,t)=>Ye.jsx("a",{style:{color:"A"==e?"#52C41A":"#FF4D4F"},children:"A"==e?"Active":"Deactive"})}];a.useEffect((()=>{var e,n,a;t(Gh({items:j})),I(),(null==(e=null==i?void 0:i.state)?void 0:e.Notiffy)&&(p(null==(n=null==i?void 0:i.state)?void 0:n.Notiffy.messageType),h(null==(a=null==i?void 0:i.state)?void 0:a.Notiffy.messageData))}),[]);const I=async()=>{var e;let n=await t(hee()).unwrap();m(null==(e=null==n?void 0:n.data)?void 0:e.data)},F=e=>{g(e),x(!0)},B=e=>{s(e)},k=a.useCallback((()=>{h(null),p(null)}),[]),T=async(e,t)=>{"D"!==e.ActiveStatus&&n(`${gee}setting/payment-device-config/update`,{state:{editState:e}},{key:t})},E=async e=>{var n;let i={UniqueId:e.UniqueId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},a=await t(vee(i)).unwrap();1==(null==(n=null==a?void 0:a.data)?void 0:n.statusCode)&&(p("success"),h("A"==e.ActiveStatus?"In-Activated Successfully":"Activated Successfully"),I())};return Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:u,messageData:A,onComplete:k}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Payment Device Config"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{o(e)},onSearchChange:e=>{var t;o(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",handleSubmit:()=>{n(`${gee}setting/payment-device-config/new`)},icon:Ye.jsx(C,{}),disabled:"Super Admin"!==w&&"N"===(null==(e=null==b?void 0:b.find((e=>"Payment Device Config"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:S,data:f,dataSource:f,pagination:B,onChange:(e,t,n)=>{c(n)}})})]}),Ye.jsx(SP,{open:y,title:"Config Details",handleCancel:()=>{x(!1),g([])},width:1e3,footer:!1,children:Ye.jsx("div",{style:{height:"400px",overflowY:"scroll"},children:Ye.jsx(Vb,{dataSource:v,data:v,columns:N,pagination:B})})})]})},empAccess:"Payment Device Config"},{path:"payment-device-config/new",component:e=>Ye.jsx(xee,{...e,formType:"add"}),empAccess:"Payment Device Config"},{path:"payment-device-config/update",component:e=>Ye.jsx(xee,{...e,formType:"edit"}),empAccess:"Payment Device Config"},{path:"company-master",component:()=>{var e;const t=Qt(),n=um(),i=Mt(),r=Tf(xb),s=Tf(Gg),l=Tf(jb),[o,d]=a.useState({}),[c,u]=a.useState(""),[p,A]=a.useState(null),[h,f]=a.useState(null),[m,v]=a.useState(1),[g,y]=a.useState(0),[x,b]=a.useState(iA("UserType")?iA("UserType"):null),[w,j]=a.useState(iA("UserId")?iA("UserId"):null),S=[{name:"Home",link:`${mw}landing-page/home`},{name:"Company",link:`${mw}setting/company-master`}];a.useEffect((()=>{var e,t,a;try{n(Gh({items:S})),"Super Admin"!==x&&"Super Admin User"!==x||n(lb()).unwrap(),(null==(e=null==i?void 0:i.state)?void 0:e.Notiffy)&&(A(null==(t=null==i?void 0:i.state)?void 0:t.Notiffy.messageType),f(null==(a=null==i?void 0:i.state)?void 0:a.Notiffy.messageData))}catch(r){}}),[]);const N=a.useCallback((()=>{f(null),A(null)}),[]);a.useEffect((()=>{I()}),[w]);const I=async()=>{var e,t,i,a;let r=await n(dw(w)).unwrap();1===(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)?y(null==(i=null==(t=null==r?void 0:r.data)?void 0:t.data)?void 0:i.RemainingCompanyCount):0===(null==(a=null==r?void 0:r.data)?void 0:a.statusCode)&&y(0)};a.useEffect((()=>{"Admin"===x&&n(fb(iA("UserId")))}),[iA("UserId")]);const B=(e,t,n)=>{d(n)},k=e=>{v(e)},T=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(m-1)+n+1})},{title:"App Name",dataIndex:"AppName",key:"AppName",align:"left",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.AppName)?void 0:n.localeCompare(t.AppName)},sortOrder:"AppName"===o.columnKey?o.order:null,ellipsis:!0},{title:"Company Name",dataIndex:"CompName",key:"CompName",width:"200px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[c],onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.CompName).toLowerCase().includes(e.toLowerCase())||String(t.CompShName).toLowerCase().includes(e.toLowerCase())||String(t.CompMobile).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.CompName)?void 0:n.localeCompare(t.CompName)},sortOrder:"CompName"===o.columnKey?o.order:null,ellipsis:!0},{title:"Short Name",dataIndex:"CompShName",key:"CompShName",align:"left",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.CompShName)?void 0:n.localeCompare(t.CompShName)},sortOrder:"CompShName"===o.columnKey?o.order:null,ellipsis:!0},{title:"Proprietor",dataIndex:"Proprietor",key:"Proprietor",align:"left",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Mobile No",dataIndex:"CompMobile",key:"CompMobile",align:"left",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Action",key:"Action",dataIndex:"Action",width:"100px",align:"center",render:(e,i,a)=>("Admin"===x||"Admin User"===x?(null==l?void 0:l.length)>=1:(null==r?void 0:r.length)>=1)?Ye.jsxs(P,{size:"middle",children:["A"===i.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==s?void 0:s.length)||"Y"===(null==(e=null==s?void 0:s.find((e=>"Company"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async(e,n)=>{"D"!==e.ActiveStatus&&t(`${mw}setting/company-master/update`,{state:{editstate:e}},{key:n})})(i,a):""}})}):"",Ye.jsx("a",{children:"A"===i.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==s?void 0:s.length)||"Y"===(null==(e=null==s?void 0:s.find((e=>"Company"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?(async e=>{var t;let i={CompId:e.CompId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},a=await n(Ab(i)).unwrap();1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&(I(),A("success"),f("A"==e.ActiveStatus?"Company In-Activated Successfully":"Company Activated Successfully"),"Admin"===x?n(fb(iA("UserId"))):"Super Admin"!==x&&"Super Admin User"!==x||await n(lb()).unwrap())})(i):""}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==s?void 0:s.length)||"Y"===(null==(e=null==s?void 0:s.find((e=>"Company"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?(async e=>{var t,i,a,r,s,l,o;let d=await n(vb({UserId:"Admin"===x?w:null==e?void 0:e.UserId,AppId:null==e?void 0:e.AppId})).unwrap(),c=null==(i=null==(t=d.data)?void 0:t.data[0])?void 0:i.CompanyCount,u=null==(l=null==(s=null==(r=null==(a=d.data)?void 0:a.data[0])?void 0:r.FeatureDetails)?void 0:s.filter((e=>"Company"==e.FeatName))[0])?void 0:l.FeatConstraint;if(c<u){let t={CompId:e.CompId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},i=await n(Ab(t)).unwrap();1==(null==(o=null==i?void 0:i.data)?void 0:o.statusCode)&&(I(),A("success"),f("A"==e.ActiveStatus?"Company In-Activated Successfully":"Company Activated Successfully"),"Admin"===x?n(fb(iA("UserId"))):"Super Admin"!==x&&"Super Admin User"!==x||await n(lb()).unwrap())}else A("error"),f("You need to delete one company if you wanna add this company")})(i):""}})})]}):null}];return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:p,messageData:h,onComplete:N}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Company"})}),Ye.jsxs("div",{className:"searchAddDiv searchAddDivCompanyList",children:[Ye.jsx(F,{title:"Search by App Name, Company Name, Short Name or Mobile No",placement:"left",children:Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search by App Name, Company Name, Short Name or Mobile No",onSearch:e=>{u(e)},onSearchChange:e=>{var t;u(null==(t=null==e?void 0:e.target)?void 0:t.value)}})})}),Ye.jsx(F,{placement:"left",title:0===g?"Purchase Extra Branch In Feature":"",children:Ye.jsx("div",{children:Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==x&&(0===g||"N"===(null==(e=null==s?void 0:s.find((e=>"Company"==(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess)),handleSubmit:()=>{t(`${mw}setting/company-master/new`)},children:"OPEN"})})})]})]}),Ye.jsx("div",{className:"reportTableCompany",children:"Admin"===x||"Admin User"===x?Ye.jsx(Vb,{columns:T,data:l,dataSource:l,pagination:k,onChange:B}):Ye.jsx(Vb,{columns:T,data:r,dataSource:r,pagination:k,onChange:B})})]})})},empAccess:"Company",access:"Admin"},{path:"application-preference-mapping/new",component:e=>Ye.jsx(bae,{...e,formType:"add"}),empAccess:"MappingFeatures",access:"Admin"},{path:"application-preference-mapping/update",component:e=>Ye.jsx(bae,{...e,formType:"edit"}),empAccess:"MappingFeatures",access:"Admin"},{path:"application-preference-mapping",component:()=>{var e;const t=Qt(),n=um(),i=Mt(),r=iA("UserType"),s=Tf(Gg),[l,o]=a.useState({}),[d,c]=a.useState(""),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState(null),[v,g]=a.useState(1),y=[{name:"Home",link:`${wae}landing-page/home`}];a.useEffect((()=>{var e,t,a;try{n(Gh({items:y})),x(),(null==(e=null==i?void 0:i.state)?void 0:e.Notiffy)&&(p(null==(t=null==i?void 0:i.state)?void 0:t.Notiffy.messageType),h(null==(a=null==i?void 0:i.state)?void 0:a.Notiffy.messageData))}catch(r){}}),[]);const x=async()=>{var e,t;let i=await n(xae()).unwrap();1==(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&m(null==(t=null==i?void 0:i.data)?void 0:t.data)},b=a.useCallback((()=>{h(null),p(null)}),[]),w=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(v-1)+n+1})},{title:"App Name",dataIndex:"AppName",key:"AppName",align:"left",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.AppName)?void 0:n.localeCompare(t.AppName)},filteredValue:[d],onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase()),sortOrder:"AppName"===l.columnKey?l.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",width:"100px",align:"center",render:(e,n,i)=>Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>(async(e,n)=>{"D"!==e.ActiveStatus&&t(`${wae}setting/application-preference-mapping/update`,{state:{editstate:e}},{key:n})})(n,i)})})})}];return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:u,messageData:A,onComplete:b}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"App Setup"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{c(e)},onSearchChange:e=>{var t;c(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==r&&"N"===(null==(e=null==s?void 0:s.find((e=>"Application Preference Mapping"==(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),handleSubmit:()=>{t(`${wae}setting/application-preference-mapping/new`)},children:"OPEN"})]})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:w,data:f,dataSource:f,pagination:e=>{g(e)},onChange:(e,t,n)=>{o(n)}})})]})})},empAccess:"MappingFeatures",access:"Admin"},{path:"company-master/new",component:e=>Ye.jsx(Hb,{...e,formType:"add"}),empAccess:"Company",access:"Admin"},{path:"company-master/update",component:e=>Ye.jsx(Hb,{...e,formType:"edit"}),empAccess:"Company",access:"Admin"},{path:"branch-master",component:()=>{var e,t;const n=Qt(),i=um(),r=Mt(),s=Tf(Fy),l=iA("UserId"),o=Tf(By),d=Tf(Gg),[c,u]=a.useState({}),[p,A]=a.useState(""),[h,f]=a.useState(null),[m,v]=a.useState(null),[g,y]=a.useState(0),[x,b]=a.useState(1),[w,j]=a.useState(),[S,N]=a.useState(iA("UserType")?iA("UserType"):null),I=[{name:"Home",link:`${CP}landing-page/home`},{name:"Branch",link:`${CP}setting/branch-master`}];a.useEffect((()=>{var e,t,n;try{i(Gh({items:I})),"Super Admin"!==S&&"Super Admin User"!==S||i(ly()).unwrap(),(null==(e=null==r?void 0:r.state)?void 0:e.Notiffy)&&(f(null==(t=null==r?void 0:r.state)?void 0:t.Notiffy.messageType),v(null==(n=null==r?void 0:r.state)?void 0:n.Notiffy.messageData))}catch(a){}O()}),[]);const B=a.useCallback((()=>{v(null),f(null)}),[]);a.useEffect((()=>{i(fy(iA("UserId")))}),[iA("UserId")]),a.useEffect((()=>{k()}),[l]);const k=async()=>{var e,t,n,a;let r=await i(dw(l)).unwrap();1===(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)?y(null==(n=null==(t=null==r?void 0:r.data)?void 0:t.data)?void 0:n.RemainingBranchCount):0===(null==(a=null==r?void 0:r.data)?void 0:a.statusCode)&&y(0)},T=(e,t,n)=>{u(n)},E=e=>{b(e)},_=[{title:"Si.No",key:"sno",align:"center",width:"80px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(x-1)+n+1})},{title:"App Name",dataIndex:"AppName",key:"AppName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.AppName)?void 0:n.localeCompare(t.AppName)},sortOrder:"AppName"===c.columnKey?c.order:null,ellipsis:!0},{title:"Company Name",dataIndex:"CompName",key:"CompName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.CompName)?void 0:n.localeCompare(t.CompName)},sortOrder:"CompName"===c.columnKey?c.order:null,ellipsis:!0},{title:"Branch Name",dataIndex:"BrName",key:"BrName",align:"left",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[p],onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.CompName).toLowerCase().includes(e.toLowerCase())||String(t.BrName).toLowerCase().includes(e.toLowerCase())||String(t.City).toLowerCase().includes(e.toLowerCase())||String(t.Dist).toLowerCase().includes(e.toLowerCase())||String(t.State).toLowerCase().includes(e.toLowerCase())||String(t.BrMobile).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.BrName)?void 0:n.localeCompare(t.BrName)},sortOrder:"BrName"===c.columnKey?c.order:null,ellipsis:!0},{title:"Mobile No",dataIndex:"BrMobile",key:"BrMobile",align:"left",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"City",dataIndex:"City",key:"City",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:"NA"!=e&&e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.City)?void 0:n.localeCompare(null==t?void 0:t.City)},sortOrder:"City"===c.columnKey?c.order:null,ellipsis:!0},{title:"District",dataIndex:"Dist",key:"Dist",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.Dist)?void 0:n.localeCompare(null==t?void 0:t.Dist)},sortOrder:"Dist"===c.columnKey?c.order:null,ellipsis:!0},{title:"State",dataIndex:"State",key:"State",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.State)?void 0:n.localeCompare(null==t?void 0:t.State)},sortOrder:"State"===c.columnKey?c.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",align:"center",width:"150px",render:(e,t,a)=>("Admin"===S||"Admin User"===S?(null==o?void 0:o.length)>=1:(null==s?void 0:s.length)>=1)?Ye.jsxs(P,{size:"middle",children:["A"===t.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==d?void 0:d.length)||"Y"===(null==(e=null==d?void 0:d.find((e=>"Branch"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async(e,t)=>{"D"!==e.ActiveStatus&&n(`${CP}setting/branch-master/update`,{state:{editstate:e}},{key:t})})(t,a):" "}})}):"",Ye.jsx("a",{children:"A"===t.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==d?void 0:d.length)||"Y"===(null==(e=null==d?void 0:d.find((e=>"Branch"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?(async e=>{var t;let n={BrId:e.BrId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},a=await i(uy(n)).unwrap();1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&(k(),f("success"),v("A"==e.ActiveStatus?"Branch In-Activated Successfully":"Branch Activated Successfully"),"Admin"===S?i(fy(iA("UserId"))):"Super Admin"!==S&&"Super Admin User"!==S||await i(ly()).unwrap())})(t):" "}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==d?void 0:d.length)||"Y"===(null==(e=null==d?void 0:d.find((e=>"Branch"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?(async e=>{var t,n,a,r,s,l,o;if("D"!==(null==e?void 0:e.CompActiveStatus)){let d=await i(xy({UserId:"Admin"===S?iA("UserId"):null==e?void 0:e.UserId,AppId:null==e?void 0:e.AppId,CompId:null==e?void 0:e.CompId})).unwrap(),c=null==(n=null==(t=d.data)?void 0:t.data[0])?void 0:n.BranchCount,u=null==(l=null==(s=null==(r=null==(a=d.data)?void 0:a.data[0])?void 0:r.FeatureDetails)?void 0:s.filter((e=>"Branch"==e.FeatName))[0])?void 0:l.FeatConstraint;if(c<u){let t={BrId:e.BrId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},n=await i(uy(t)).unwrap();1==(null==(o=null==n?void 0:n.data)?void 0:o.statusCode)&&(k(),f("success"),v("A"==e.ActiveStatus?"Branch In-Activated Successfully":"Branch Activated Successfully"),"Admin"===S?i(fy(iA("UserId"))):"Super Admin"!==S&&"Super Admin User"!==S||await i(ly()).unwrap())}else f("error"),v("You need to delete one branch in your company if you wanna add this branch")}else f("error"),v("You need to activate your company")})(t):" "}})})]}):null}],O=async()=>{var e;let t=await i(Cy({UserId:l})).unwrap();j(null==(e=null==t?void 0:t.data)?void 0:e.data)};return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:h,messageData:m,onComplete:B}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Branch"})}),Ye.jsxs("div",{className:"searchAddDiv searchAddDivBranch",children:[Ye.jsx(F,{title:"Search by App Name, Company Name, Branch Name, City, District, State or Mobile No",placement:"left",children:Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search by App Name, Company Name, Branch Name, City, District, State or Mobile No",onSearch:e=>{A(e)},onSearchChange:e=>{var t;A(null==(t=null==e?void 0:e.target)?void 0:t.value)}})})}),Ye.jsx(F,{title:0===g?"Purchase Additional Branches":"N"===(null==(e=null==d?void 0:d.find((e=>"Branch"==(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess)?"You don't have an access":"",children:Ye.jsx(Ry,{buttonText:"Add New",handleSubmit:()=>{n(`${CP}setting/branch-master/new`)},color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==S&&(0===g||"N"===(null==(t=null==d?void 0:d.find((e=>"Branch"==(null==e?void 0:e.ConfigName))))?void 0:t.AddAccess)),children:"OPEN"})})]})]}),Ye.jsx("div",{className:"reportTableCompany",children:"Admin"===S||"Admin User"===S?Ye.jsx(Vb,{columns:_,data:o,dataSource:o,pagination:E,onChange:T}):Ye.jsx(Vb,{columns:_,data:s,dataSource:s,pagination:E,onChange:T})})]})})},empAccess:"Branch",access:"Admin"},{path:"branch-master/new",component:e=>Ye.jsx(jP,{...e,formType:"add"}),empAccess:"Branch",access:"Admin"},{path:"branch-master/update",component:e=>Ye.jsx(jP,{...e,formType:"edit"}),empAccess:"Branch",access:"Admin"},{path:"warehouse-master",component:()=>{var e;const t=um(),n=Qt(),i=Mt(),[r,s]=a.useState(iA("UserType")?iA("UserType"):null),l=iA("UserId"),[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState(""),[h,f]=a.useState({}),[m,v]=a.useState([]),[g,y]=a.useState(0),x=Tf(Gg),[b,w]=a.useState(1),j=Qt();a.useEffect((()=>{"Admin"==r&&S()}),[l]);const S=async()=>{var e,n,i,a;let r=await t(dw(l)).unwrap();1===(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)?y(null==(i=null==(n=null==r?void 0:r.data)?void 0:n.data)?void 0:i.RemainingWarehouseCount):0===(null==(a=null==r?void 0:r.data)?void 0:a.statusCode)&&y(0)},N=[{name:"Home",link:`${vre}landing-page/home`},{name:"Warehouse",link:`${vre}setting/warehouse-master`}],I=[{title:"SI.NO",key:"sno",align:"center",width:"60px",render:(e,t,n)=>Ye.jsx("span",{children:10*(b-1)+n+1})},{title:"Warehouse Name",dataIndex:"BrName",key:"BrName",align:"center",filteredValue:[p],onFilter:(e,t)=>String(t.BrName).toLowerCase().includes(e.toLowerCase())},{title:"Contact Person",dataIndex:"BrInCharge",key:"BrInCharge",align:"center"},{title:"Mobile",dataIndex:"BrMobile",key:"BrMobile",width:"120px",align:"center"},{title:"Actions",key:"actions",align:"center",width:"100px",render:(e,t,n)=>Ye.jsxs(P,{size:"middle",children:["A"===t.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>F(t,n)})}):"",Ye.jsx("a",{children:"A"===t.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>B(t)}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>B(t)})})]})}];a.useEffect((()=>{var e,n,a;try{t(Gh({items:N})),(null==(e=null==i?void 0:i.state)?void 0:e.Notiffy)&&(d(null==(n=null==i?void 0:i.state)?void 0:n.Notiffy.messageType),u(null==(a=null==i?void 0:i.state)?void 0:a.Notiffy.messageData))}catch(r){}}),[]),a.useEffect((()=>{k()}),[iA("UserId")]);const F=async(e,t)=>{"D"!==e.ActiveStatus&&n(`${vre}setting/warehouse-master/update`,{state:{editstate:e}},{key:t})},B=async e=>{var n;let i={BrId:e.BrId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},a=await t(uy(i)).unwrap();1==(null==(n=null==a?void 0:a.data)?void 0:n.statusCode)&&(k(),d("success"),u("A"==e.ActiveStatus?"Branch In-Activated Successfully":"Branch Activated Successfully"))},k=async()=>{var e,n,i,a;if("Admin"==r){let i=await t(my(iA("UserId"))).unwrap();1==(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)?v(null==(n=null==i?void 0:i.data)?void 0:n.data):v([])}else{await t(hy()).unwrap();let e=await t(my()).unwrap();1==(null==(i=null==e?void 0:e.data)?void 0:i.statusCode)?v(null==(a=null==e?void 0:e.data)?void 0:a.data):v([])}},T=a.useCallback((()=>{u(null),d(null)}),[]);return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:o,messageData:c,onComplete:T}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Warehouse"})}),Ye.jsxs("div",{className:"searchAddDiv searchAddDivBranch",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{A(e)},onSearchChange:e=>{var t;A(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",handleSubmit:()=>{j(`${vre}setting/warehouse-master/new`)},color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==r&&("Super Admin User"===r?"N"===(null==(e=null==x?void 0:x.find((e=>"Warehouse"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess):"Admin"===r&&0===g),children:"OPEN"})]})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:I,data:m,dataSource:m,pagination:e=>{w(e)},onChange:(e,t,n)=>{f(n)}})})]})})},empAccess:"Warehouse",access:"Admin"},{path:"warehouse-master/new",component:e=>Ye.jsx(mre,{...e,formType:"add"}),empAccess:"Warehouse",access:"Admin"},{path:"warehouse-master/update",component:e=>Ye.jsx(mre,{...e,formType:"edit"}),empAccess:"Warehouse",access:"Admin"},{path:"application-master",component:()=>{var e;const t=Qt(),n=um(),i=Mt(),r=Tf(Ub),s=Tf(Gg),l=iA("UserType"),[o,d]=a.useState({}),[c,u]=a.useState(""),[p,A]=a.useState(null),[h,f]=a.useState(null),[m,v]=a.useState(1),g=[{name:"Home",link:`${OP}landing-page/home`},{name:"Application",link:`${OP}setting/application-master`}];a.useEffect((()=>{var e,t,a;try{n(Gh({items:g})),n(Ib()).unwrap(),(null==(e=null==i?void 0:i.state)?void 0:e.Notiffy)&&(A(null==(t=null==i?void 0:i.state)?void 0:t.Notiffy.messageType),f(null==(a=null==i?void 0:i.state)?void 0:a.Notiffy.messageData))}catch(r){}}),[]);const y=a.useCallback((()=>{f(null),A(null)}),[]),x=async e=>{var t;let i={AppId:e.AppId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},a=await n(kb(i)).unwrap();1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&(n(Ib()).unwrap(),A("success"),f("A"==e.ActiveStatus?"Application In-Activated Successfully":"Application Activated Successfully"))},b=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(m-1)+n+1})},{title:"Application Name",dataIndex:"AppName",key:"AppName",width:"200px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[c],onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.CateName).toLowerCase().includes(e.toLowerCase())||String(t.SubCateName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.AppName)?void 0:n.localeCompare(t.AppName)},sortOrder:"AppName"===o.columnKey?o.order:null,ellipsis:!0},{title:"Module",dataIndex:"CategoryName",key:"CategoryName",align:"left",width:"200px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.CategoryName)?void 0:n.localeCompare(t.CategoryName)},sortOrder:"CategoryName"===o.columnKey?o.order:null,ellipsis:!0},{title:"Sub Module",dataIndex:"SubCategoryName",key:"SubCategoryName",align:"left",width:"200px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.SubCategoryName)?void 0:n.localeCompare(t.SubCategoryName)},sortOrder:"SubCategoryName"===o.columnKey?o.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",width:"200px",align:"center",render:(e,n,i)=>r.length>=1?Ye.jsxs(P,{size:"middle",children:["A"===n.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==s?void 0:s.length)||"Y"===(null==(e=null==s?void 0:s.find((e=>"Application"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async(e,n)=>{"D"!==e.ActiveStatus&&t(`${OP}setting/application-master/update`,{state:{editstate:e}},{key:n})})(n,i):""}})}):"",Ye.jsx("a",{children:"A"===n.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==s?void 0:s.length)||"Y"===(null==(e=null==s?void 0:s.find((e=>"Application"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?x(n):""}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==s?void 0:s.length)||"Y"===(null==(e=null==s?void 0:s.find((e=>"Application"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?x(n):""}})})]}):null}];return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:p,messageData:h,onComplete:y}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Application"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{u(e)},onSearchChange:e=>{var t;u(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",handleSubmit:()=>{t(`${OP}setting/application-master/new`)},color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==l&&"N"===(null==(e=null==s?void 0:s.find((e=>"Application"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:b,data:r,dataSource:r,pagination:e=>{v(e)},onChange:(e,t,n)=>{d(n)}})," "]})]})})},empAccess:"Application"},{path:"application-master/new",component:e=>Ye.jsx(_P,{...e,formType:"add"}),empAccess:"Application"},{path:"application-master/update",component:e=>Ye.jsx(_P,{...e,formType:"edit"}),empAccess:"Application"},{path:"app-menu",component:()=>{var e;const t=Qt(),n=Mt(),i=um(),r=iA("UserType"),[s,l]=a.useState(null),[o,d]=a.useState(null),[c,u]=a.useState([]),[p,A]=a.useState({}),[h,f]=a.useState(""),[m,v]=a.useState(1),g=Tf(Gg);async function y(){var e,t,a,r,s;(null==(e=null==n?void 0:n.state)?void 0:e.Notiffy)&&(l(null==(t=null==n?void 0:n.state)?void 0:t.Notiffy.messageType),d(null==(a=null==n?void 0:n.state)?void 0:a.Notiffy.messageData));const o=await i(Ok()).unwrap();1===(null==(r=o.data)?void 0:r.statusCode)&&await u(null==(s=o.data)?void 0:s.data)}a.useEffect((()=>{try{y()}catch(e){}}),[]),a.useEffect((()=>{i(Gh({items:zk}))}),[]);const x=async e=>{var t;let n={MenuId:e.MenuId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},a=await i(Hk(n)).unwrap();1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&(y(),l("success"),d("A"===e.ActiveStatus?"Application Menu In-Activated Successfully":"Application Menu Activated Successfully"))},b=[{title:"SI.NO",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(m-1)+n+1})},{title:"App Name",dataIndex:"AppName",key:"AppName",align:"left",width:"200px",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[h],onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.MenuName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n,i;return(null==(n=null==e?void 0:e.AppName)?void 0:n.length)-(null==(i=null==t?void 0:t.AppName)?void 0:i.length)},sortOrder:"AppName"===p.columnKey?p.order:null,ellipsis:!0},{title:"Menu Name",dataIndex:"MenuName",key:"MenuName",align:"left",width:"200px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n,i;return(null==(n=null==e?void 0:e.MenuName)?void 0:n.length)-(null==(i=null==t?void 0:t.MenuName)?void 0:i.length)},sortOrder:"MenuName"===p.columnKey?p.order:null,ellipsis:!0},{title:"Action",key:"Action",align:"center",dataIndex:"Action",width:"200px",render:(e,n,i)=>c.length>=1?Ye.jsxs(P,{size:"middle",children:["A"===n.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==g?void 0:g.length)||"Y"===(null==(e=null==g?void 0:g.find((e=>"Application Menu"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async(e,n)=>{"D"!==e.ActiveStatus&&t(`${Vk}setting/app-menu/update`,{state:{editstate:e}},{key:n})})(n,i):" "}})}):"",Ye.jsx("a",{children:"A"===n.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==g?void 0:g.length)||"Y"===(null==(e=null==g?void 0:g.find((e=>"Application Menu"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?x(n):" "}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==g?void 0:g.length)||"Y"===(null==(e=null==g?void 0:g.find((e=>"Application Menu"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?x(n):" "}})})]}):null}],w=a.useCallback((()=>{d(null),l(null)}),[]);return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:s,messageData:o,onComplete:w}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Application Menu"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{f(e)},onSearchChange:e=>{var t;f(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",handleSubmit:()=>{t(`${Vk}setting/app-menu/new`)},color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==r&&"N"===(null==(e=null==g?void 0:g.find((e=>"Application Menu"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:b,data:c,dataSource:c,pagination:e=>{v(e)},onChange:(e,t,n)=>{A(n)}})," "]})]})})},empAccess:"Application Menu"},{path:"app-menu/new",component:e=>Ye.jsx(Wk,{...e,formType:"add"}),empAccess:"Application Menu"},{path:"app-menu/update",component:e=>Ye.jsx(Wk,{...e,formType:"edit"}),empAccess:"Application Menu"},{path:"feature-mapping",component:()=>{var e;const t=Qt(),n=Mt(),i=um(),r=Tf(Gg),[s,l]=a.useState(null),[o,d]=a.useState(null),[c,u]=a.useState([]),[p,A]=a.useState({}),[h,f]=a.useState(""),[m,v]=a.useState(1),g=iA("UserType");async function y(){var e,t,n;const a=await i(Sk()).unwrap();1===(null==(e=a.data)?void 0:e.statusCode)&&await u(null==(n=null==(t=a.data)?void 0:t.data)?void 0:n.filter((e=>"A"===e.ActiveStatus)))}a.useEffect((()=>{var e,t,i;try{(null==(e=null==n?void 0:n.state)?void 0:e.Notiffy)&&(l(null==(t=null==n?void 0:n.state)?void 0:t.Notiffy.messageType),d(null==(i=null==n?void 0:n.state)?void 0:i.Notiffy.messageData)),y()}catch(a){}}),[]),a.useEffect((()=>{i(Gh({items:kk}))}),[]);const x=async e=>{var t;let n={AppId:e.AppId,PricingId:e.PricingId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},a=await i(Bk(n)).unwrap();1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&(l("success"),d("A"==e.ActiveStatus?"Feature Mapping Deleted Successfully":"Feature Mapping Activated Successfully"),y())},b=[{title:"SI.NO",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(m-1)+n+1})},{title:"App Name",dataIndex:"AppName",key:"AppName",align:"left",width:"200px",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[h],onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.PricingName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.AppName)?void 0:n.localeCompare(t.AppName)},sortOrder:"AppName"===p.columnKey?p.order:null,ellipsis:!0},{title:"Pricing Name",dataIndex:"PricingName",key:"PricingName",align:"left",width:"200px",render:(e,t)=>Ye.jsxs("a",{style:{color:"black",width:"200px"},children:[t.PricingName," ("+(t.NoOfDays>35?"Yearly":"Monthly")+")"]}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.PricingName)?void 0:n.localeCompare(t.PricingName)},sortOrder:"PricingName"===p.columnKey?p.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",align:"center",width:"200px",render:(e,n,i)=>c.length>=1?Ye.jsxs(P,{size:"middle",children:["A"===n.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==r?void 0:r.length)||"Y"===(null==(e=null==r?void 0:r.find((e=>"Feature Mapping"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async(e,n)=>{"D"!==e.ActiveStatus&&t(`${Pk}setting/feature-mapping/update`,{state:{editstate:e}},{key:n})})(n,i):" "}})}):"",Ye.jsx("a",{children:"A"===n.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==r?void 0:r.length)||"Y"===(null==(e=null==r?void 0:r.find((e=>"Feature Mapping"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?x(n):" "}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==r?void 0:r.length)||"Y"===(null==(e=null==r?void 0:r.find((e=>"Feature Mapping"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?x(n):" "}})})]}):null}],w=a.useCallback((()=>{d(null),l(null)}),[]);return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:s,messageData:o,onComplete:w}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Feature Mapping"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{f(e)},onSearchChange:e=>{var t;f(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",handleSubmit:()=>{t(`${Pk}setting/feature-mapping/new`)},color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==g&&"N"===(null==(e=null==r?void 0:r.find((e=>"Feature Mapping"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:b,data:c,dataSource:c,pagination:e=>{v(e)},onChange:(e,t,n)=>{A(n)}})})]})})},empAccess:"Feature Mapping"},{path:"feature-mapping/new",component:e=>Ye.jsx(Ek,{...e,formType:"add"}),empAccess:"Feature Mapping"},{path:"feature-mapping/update",component:e=>Ye.jsx(Ek,{...e,formType:"edit"}),empAccess:"Feature Mapping"},{path:"device-allocation",component:()=>{var e;const t=Qt(),n=um(),i=Mt(),r=Tf(Fy),s=Tf(Gg),l=iA("UserId"),o=iA("UserType"),[d,c]=a.useState({}),[u,p]=a.useState(""),[A,h]=a.useState(null),[f,m]=a.useState(null),[v,g]=a.useState(1),[y,x]=a.useState(),b=[{name:"Home",link:`${Tee}landing-page/home`}];a.useEffect((()=>{var e,t;try{n(Gh({items:b})),n(ly()).unwrap(),(null==(e=null==i?void 0:i.state)?void 0:e.Notiffy)&&(h("Sucess"),m(null==(t=null==i?void 0:i.state)?void 0:t.Notiffy.messageData))}catch(a){}w()}),[]),a.useEffect((()=>{n(fy(l))}),[l]);const w=async()=>{var e,t,i;try{let a=await(null==(e=n(Fee()))?void 0:e.unwrap());1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&x(null==(i=null==a?void 0:a.data)?void 0:i.data)}catch(a){}},j=a.useCallback((()=>{m(null),h(null)}),[]),S=async e=>{var t;let i={uniqueId:e.UniqueId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:l},a=await n(kee(i)).unwrap();1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&(h("success"),m("A"==e.ActiveStatus?"Device In-Activated Successfully":"Device Activated Successfully"),w())},N=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(v-1)+n+1})},{title:"AppName",dataIndex:"AppName",key:"AppName",align:"Center",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.AppName)?void 0:n.localeCompare(null==t?void 0:t.AppName)},sortOrder:"AppName"===d.columnKey?d.order:null,ellipsis:!0},{title:"Company Name",dataIndex:"CompName",key:"CompName",align:"center",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[u],onFilter:(e,t)=>String(t.BrName).toLowerCase().includes(e.toLowerCase())||String(t.City).toLowerCase().includes(e.toLowerCase())||String(t.Dist).toLowerCase().includes(e.toLowerCase())||String(t.State).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.CompName)?void 0:n.localeCompare(t.CompName)},sortOrder:"CompName"===d.columnKey?d.order:null,ellipsis:!0},{title:"BranchName",dataIndex:"BranchName",key:"BranchName",align:"center",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.BranchName)?void 0:n.localeCompare(null==t?void 0:t.BranchName)},sortOrder:"BranchName"===d.columnKey?d.order:null,ellipsis:!0},{title:"UserName",dataIndex:"UserName",key:"UserName",align:"left",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.UserName)?void 0:n.localeCompare(null==t?void 0:t.UserName)},sortOrder:"UserName"===d.columnKey?d.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",align:"center",width:"150px",render:(e,n,i)=>r.length>=1?Ye.jsxs(P,{size:"middle",children:["A"===n.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==s?void 0:s.length)||"Y"===(null==(e=null==s?void 0:s.find((e=>"Device Allocation"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async(e,n)=>{"D"!==e.ActiveStatus&&t(`${Tee}setting/device-allocation/update`,{state:{editstate:e}},{key:n})})(n,i):" "}})}):"",Ye.jsx("a",{children:"A"===n.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==s?void 0:s.length)||"Y"===(null==(e=null==s?void 0:s.find((e=>"Device Allocation"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?S(n):" "}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==s?void 0:s.length)||"Y"===(null==(e=null==s?void 0:s.find((e=>"Device Allocation"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?S(n):" "}})})]}):null}];return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:A,messageData:f,onComplete:j}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Device Allocation"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{p(e)},onSearchChange:e=>{var t;p(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",handleSubmit:()=>{t(`${Tee}setting/device-allocation/new`)},color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==o&&"N"===(null==(e=null==s?void 0:s.find((e=>"Device Allocation"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsx("div",{className:"reportTable",children:("Super Admin"===o||"Super Admin User"===o)&&Ye.jsx(Vb,{columns:N,data:y,dataSource:y,pagination:e=>{g(e)},onChange:(e,t,n)=>{c(n)}})})]})})},empAccess:"Device Allocation"},{path:"device-allocation/new",component:e=>Ye.jsx(Dee,{...e,formType:"add"}),empAccess:"Device Allocation"},{path:"device-allocation/update",component:e=>Ye.jsx(Dee,{...e,formType:"edit"}),empAccess:"Device Allocation"},{path:"device-information",component:()=>{var e;const t=um(),[n]=I.useForm(),[i,r]=a.useState(!1),[s,l]=a.useState([]),[o,d]=a.useState(!1),[c,u]=a.useState({}),[p,A]=a.useState(""),[h,f]=a.useState(null),[m,v]=a.useState(null),[g,y]=a.useState(1),[x,b]=a.useState([]),[w,j]=a.useState(),S=iA("UserType"),N=Tf(Gg);a.useEffect((()=>{F()}),[]);const F=async()=>{var e,n,i,a,r,s;try{t(Gh({items:Lee}));let l=await(null==(e=t(wee()))?void 0:e.unwrap());1==(null==(n=null==l?void 0:l.data)?void 0:n.statusCode)&&b(null==(i=null==l?void 0:l.data)?void 0:i.data);let o=await(null==(a=t(Fee()))?void 0:a.unwrap());1==(null==(r=null==o?void 0:o.data)?void 0:r.statusCode)&&j(null==(s=o.data)?void 0:s.data)}catch(l){}},B=a.useCallback((()=>{v(null),f(null)}),[]);const k=async e=>{var n;let i={deviceId:e.DeviceId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},a=await t(Nee(i)).unwrap();1==(null==(n=null==a?void 0:a.data)?void 0:n.statusCode)&&(F(),f("success"),v("A"==e.ActiveStatus?" Config Data In-Activated Successfully":"Config Data Activated Successfully"))},T=[{title:"SI.NO",key:"sno",align:"center",width:"60px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(g-1)+n+1})},{title:"Device Id",dataIndex:"DeviceAddress",key:"DeviceAddress",align:"left",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[p],onFilter:(e,t)=>String(t.DeviceAddress).toLowerCase().includes(e.toLowerCase())||String(t.DeviceAddress).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.DeviceAddress)?void 0:n.localeCompare(t.DeviceAddress)},sortOrder:"DeviceAddress"===c.columnKey?c.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",width:"50px",align:"left",render:(e,t,i)=>x.length>=1?Ye.jsxs(P,{size:"middle",children:["A"===t.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==N?void 0:N.length)||"Y"===(null==(e=null==N?void 0:N.find((e=>"Device Information"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async e=>{"D"===e.ActiveStatus||(null==w?void 0:w.some((t=>(null==t?void 0:t.DeviceAddress)==(null==e?void 0:e.DeviceAddress))))?(f("warning"),v("Device Already Allocated")):(await r(!0),await l(e),await d(!0),n.setFieldsValue(e))})(t):""}})}):"",Ye.jsx("a",{children:"A"===t.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==N?void 0:N.length)||"Y"===(null==(e=null==N?void 0:N.find((e=>"Device Information"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?k(t):""}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==N?void 0:N.length)||"Y"===(null==(e=null==N?void 0:N.find((e=>"Device Information"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?k(t):""}})})]}):null}];return Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:h,messageData:m,onComplete:B}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Device Information"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{A(e)},onSearchChange:e=>{var t;A(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",handleSubmit:()=>{r(!0),n.resetFields(),d(!1)},icon:Ye.jsx(C,{}),disabled:"Super Admin"!==S&&"N"===(null==(e=null==N?void 0:N.find((e=>"Device Information"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:T,data:x,pagination:e=>{y(e)},onChange:(e,t,n)=>{u(n)}})})]}),Ye.jsx(SP,{open:i,title:"Device Information",footer:!0,children:Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsx(I,{form:n,children:Ye.jsx(I.Item,{name:"DeviceAddress",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter DeviceAddress"},{validator:async(e,t)=>(await lA(t),t&&t.length>25?Promise.reject("Device Address should not exceed 25 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"DeviceAddress",name:"test",label:Ye.jsx("label",{className:"required",children:"Device Id"}),className:"Input",fieldState:!!o||"",fieldApi:[{setValue:"s",setTouched:!0}],autocomplete:"off",isOnChange:!!o})})})})}),handleCancel:()=>{r(!1)},handleSubmit:async()=>{var e,i,a,l,d,c,u,p;const A=await n.validateFields();if(o){let n={DeviceId:null==s?void 0:s.DeviceId,DeviceAddress:null==A?void 0:A.DeviceAddress,UpdatedBy:iA("UserId")},o=null==w?void 0:w.some((e=>(null==e?void 0:e.DeviceAddress)==(null==n?void 0:n.DeviceAddress)));if(o)v("Already Allocated"),f("error");else{let s=await(null==(e=t(See(n)))?void 0:e.unwrap());1==(null==(i=null==s?void 0:s.data)?void 0:i.statusCode)?(F(),f("success"),v(null==(a=null==s?void 0:s.data)?void 0:a.response),r(!1)):(f("error"),v(null==(l=null==s?void 0:s.data)?void 0:l.response))}}else{let e={DeviceAddress:null==A?void 0:A.DeviceAddress,CreatedBy:iA("UserId")},n=await(null==(d=t(Cee(e)))?void 0:d.unwrap());1==(null==(c=null==n?void 0:n.data)?void 0:c.statusCode)?(f("success"),v(null==(u=null==n?void 0:n.data)?void 0:u.response),r(!1),F()):(f("error"),v(null==(p=null==n?void 0:n.data)?void 0:p.response))}}})]})},empAccess:"Device Information"},{path:"feat-addon",component:()=>{const e=a.useRef(),t=Qt(),n=um(),i=iA("UserId"),[r,s]=a.useState(1),[l,o]=a.useState([]),[d,c]=a.useState(""),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState(),[v,g]=a.useState([]),[y,x]=a.useState(!1),[b,w]=a.useState(null),[S,N]=a.useState(!1),[B,T]=a.useState({}),[E,D]=a.useState([]),L=[{name:"Home",link:`${nee}landing-page/home`},{name:"FeatureAddon",link:`${nee}setting/feat-addon`}];a.useEffect((()=>{n(Gh({items:L})),O()}),[]);const U=a.useCallback((()=>{h(null),p(null)}),[]);a.useEffect((()=>{_()}),[]);const _=async()=>{var e,t,i;let a=await n(ew()).unwrap();1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)&&D(null==(i=null==(t=null==a?void 0:a.data)?void 0:t.data[0])?void 0:i.PaymentUPIDetailsId)},O=async()=>{var e,t;let a={UserId:i},r=await n(PT(a)).unwrap();1==(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)&&o(null==(t=null==r?void 0:r.data)?void 0:t.data)},M=[{title:"SI.NO",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(r-1)+n+1})},{title:"Application",dataIndex:"AppName",key:"AppName",width:"100px",align:"left",filteredValue:[d],onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.PaymentModeName).toLowerCase().includes(e.toLowerCase())||String(t.CreatedByMobileNo).toLowerCase().includes(e.toLowerCase())},{title:"PAYMENT MODE",dataIndex:"PaymentModeName",key:"PaymentModeName",align:"left",width:"70px"},{title:"Net Amount",dataIndex:"NetPrice",key:"Amount",align:"right",width:"100px"},{title:"Purchase Date",dataIndex:"PurDate",key:"PurDate",align:"right",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black"},children:tA(null==e?void 0:e.split("T")[0])})},{title:"Purchase By",dataIndex:"CreatedByName",key:"CreatedByName",align:"right",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Purchase Mobile",dataIndex:"CreatedByMobileNo",key:"CreatedByMobileNo",align:"right",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Purchase Type",dataIndex:"CreatedByUserType",key:"CreatedByUserType",align:"right",width:"100px",render:e=>Ye.jsx("a",{style:{color:"Admin"==e?"green":"Employee"==e?"red":"Super Admin User"==e?"blue":"black"},children:e})},{title:"Details",key:"Details",dataIndex:"Details",width:"50px",align:"center",render:(e,t)=>Ye.jsx(ty,{style:{color:"#1292EE",fontSize:"25px",cursor:"pointer"},onClick:()=>R(t)})},{title:"Valid From",dataIndex:"ValidityStart",key:"ValidityStart",align:"right",width:"150px",render:e=>eA(e)},{title:"Valid To",dataIndex:"ValidityEnd",key:"ValidityEnd",align:"right",width:"150px",render:e=>eA(e)},{title:"Download",key:"Download",dataIndex:"Action",align:"center",render:(e,t,n)=>Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:Ye.jsx(ye,{style:{color:"#FF4D4F"},onClick:()=>Q(t)})})})},{title:"Share",key:"Share",dataIndex:"Share",align:"center",render:(e,t,n)=>Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:Ye.jsx(CE,{style:{color:"##dddddd"},onClick:()=>H(t)})})})}],R=e=>{var t;w(null==e?void 0:e.FeatAddonDetails),N(!0);let n=null==(t=null==e?void 0:e.FeatAddonDetails)?void 0:t.reduce(((e,t)=>(e.NetPrice+=t.NetPrice,e.Price+=t.Price,e.TaxAmount+=t.TaxAmount,e)),{NetPrice:0,Price:0,TaxAmount:0});T(n)},Q=async e=>{await g(e),await(async()=>{await sA("PdffeatAddon","<style>\n*{\n font-family:Poppins;\n}\n.Pdf-body{ \n background-color: #33585c1f;\n height: 100%;\n margin: 0vw 0vh;\n padding: 1vw 2vh;\n}\n\n@media *{\n element.class {\n font-family: \"Courier New\";\n font-size: 10pt;\n }\n /* You can add additional styles here which you need */\n}\n\n.Pdf-Div{\n padding: 1vw 1vh;\n background-color:rgb(255, 255, 255);\n border-radius: 8px; \n position: relative;\n z-index: 1;\n display: flex;\n flex-wrap: wrap;\n justify-content: space-around; \n}\n\n.Pdf-head-div{\n padding: 0vw 1vh;\n color: #2b2b2b;\n}\n\n.Pdf-head{\n font-size:45px;\n font-weight:600; \n color: #000000; \n line-height: 0;\n}\n\n.headlogo-img{ \nwidth: 70px;\n}\n\n.Pdf-amt-digit{\nfont-weight:600;\n}\n.square {\n height: 240px;\n width: 240px;\n // background-color: #851764; \n background-color: #f5f5f5; \n border-radius: 5%;\n display: inline-block; \n position: relative;\n z-index: -1; \n margin-top: -18rem;\n margin-left: -2rem;\n}\n\n.Pdf-Cont-Div{\n background-color: #ffffff; \n padding: 0vw 2vh; \n \n}\n\n.Pdf-cont{\n // background-color: #33585c1f; \n margin: 0vw 0vh;\n padding: 0vw 0vh;\n display: flex; \n // flex-wrap: wrap;\n row-gap: 1rem;\n justify-content: space-evenly; \n}\n\n.Pdf-amt-details{\n text-align: right;\n}\n\n\n.Pdf-cont-txt{\n padding: 0vw 1vh; \n}\n\n.Pdf-cont-subhead{\n font-size:20px;\n font-weight: 500;\n}\n\n.Pdf-cont-text{\n font-size:14px;\n}\n\n\n\n.Pdf-Table-Div{\n background-color: #ffffff; \n padding: 3vw 0vh; \n \n}\n\n\n\n\n.Pdf-Table-Div table {\n // border: 1px solid #ccc;\n border-collapse: collapse;\n margin: 0;\n padding: 0;\n width: 100%;\n table-layout: fixed;\n font-family:'Poppins';\n}\n\n.Pdf-Table-Div table caption {\n font-size: 1.2em;\n margin: .0em 0 .95em;\n padding: 1vw 3vh;\n font-family: 'Poppins' !important;\n text-transform: uppercase;\n font-weight:600;\n letter-spacing:3px;\n background-color: #f5f5f5;\n}\n\n.Pdf-Table-Div table tr {\n\n padding: .35em;\n}\n\n.Pdf-Table-Div table th,\n.Pdf-Table-Div table td {\n padding: 1vw 1vh; \n text-align: center;\n}\n\n.Pdf-Table-Div table th {\n font-size: .85em;\n letter-spacing: .1em;\n text-transform: uppercase;\n}\n\n\n.table-2div{ \n text-align: right;\n display: flex;\n flex-wrap: wrap;\n flex-direction: column;\n}\n\n.table-cont2{\n display: flex;\n justify-content: space-evenly;\n}\n\n.Pdf-footer-div{\n background-color: #ffffff; \n padding: 0vw 0vh; \n display: flex;\n flex-wrap: wrap;\n row-gap: 2rem;\n justify-content: center;\n}\n\n.Pdf-footer-subdiv{\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n row-gap: 0rem;\n align-items: center;\n width:300px;\n justify-content: space-around;\n\n}\n.Pdf-footer-txt1{\n font-size:18px;\n width: 500px;\n font-weight: 600; \n}\n\n.Pdf-footer-txt{\n font-size:13px;\n width: 500px;\n}\n\n.Pdf-footer-subdiv-txt-div{ \n justify-content: space-evenly;\n font-size: 15px;\n}\n\n.Pdf-footer-subdiv-txt{\n display: flex;\n align-items: center;\n text-align: left;\n line-height: 0;\n justify-content: start; \n \n}\n\n\n.logo-img{\n padding: 1vw 1vh;\n}\n\n@media screen and (max-width: 600px) {\n .Pdf-Table-Div table {\n border: 0;\n }\n\n .Pdf-Table-Div table caption {\n font-size: 1.3em;\n }\n \n .Pdf-Table-Div table thead {\n border: none;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n }\n \n .Pdf-Table-Div table tr {\n border-bottom: 3px solid #ddd;\n display: block;\n margin-bottom: .625em;\n }\n \n .Pdf-Table-Div table td {\n border-bottom: 1px solid #ddd;\n display: block;\n font-size: .8em;\n text-align: right;\n }\n \n .Pdf-Table-Div table td::before {\n /*\n * aria-label has no advantage, it won't be read inside a table\n content: attr(aria-label);\n */\n content: attr(data-label);\n float: left;\n font-weight: bold;\n text-transform: uppercase;\n }\n \n .Pdf-Table-Div table td:last-child {\n border-bottom: 0;\n }\n}\n\nhr.new3 { \n border-top: 1px dotted rgb(90, 90, 90); \n}\n\nhr.new4 { \n border :16px solid #2e4f53; \n}\n\n\n\n\n@media screen and (max-width: 976px) {\n\n.Pdf-Div{\n display: flex !important; \n margin: 0vw 0vh !important; \n flex-direction: row;\n justify-content: space-between !important;\n row-gap: 3rem;\n}\n\n.Pdf-head-div{\n display: flex !important; \n margin: 0vw 7vh !important;\n align-items: center;\n flex-direction: row;\n column-gap: 2rem;\n}\n\n.square{\ndisplay: none !important; \n}\n\n.Pdf-footer-div { \njustify-content: space-around !important;\n}\n\n}\n</style>")})()},H=e=>{m(null==e?void 0:e.UniqueId),x(!0)},V=[{title:"SI.NO",key:"sno",align:"center",width:"50px",render:(e,t,n)=>Ye.jsx("span",{style:{color:"black"},children:n+1})},{title:"FEATURE NAME",dataIndex:"FeatAddonName",key:"FeatAddonName"},{title:"FEATURE COUNT",dataIndex:"Count",align:"center",key:"Count"},{title:"BASIC AMOUNT ",dataIndex:"Price",key:"Price"},{title:"TAX AMOUNT",dataIndex:"TaxAmount",key:"TaxAmount"},{title:"NET AMOUNT",dataIndex:"NetPrice",key:"NetPrice"}];return Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsx("div",{style:{display:"none"},children:Ye.jsx(tee,{printingdata:v,CompanyName:null,zipcode:null,address:null,City:null,MobileNo:iA("MobileNo")})}),Ye.jsx(j,{centered:!0,open:y,onOk:()=>x(!1),onCancel:()=>{x(!1),e.current.resetFields()},width:400,title:"Send Invoice to Another Email",children:Ye.jsxs(I,{ref:e,onFinish:async()=>{var t,i,a,r,s,l,o,d,c,u,A,m;let v={UniqueId:f,MailId:null==(i=null==(t=null==e?void 0:e.current)?void 0:t.getFieldValue())?void 0:i.Email,Link:`https://www.pozo.dev${nee}payment-page?paymentId=${f}&Id=${E}`},g=await n(iw({data:v})).unwrap();if(1===(null==(a=null==g?void 0:g.data)?void 0:a.statusCode)){if(null==(r=null==g?void 0:g.data)?void 0:r.SMSbody){const e={body:null==(s=null==g?void 0:g.data)?void 0:s.SMSbody};await n(aw(e))}if(null!==(null==(l=null==g?void 0:g.data)?void 0:l.UserMail)){const e={UniqueId:null==(o=null==g?void 0:g.data)?void 0:o.UniqueId,userData:null==(d=null==g?void 0:g.data)?void 0:d.userData,messageTemplatesList:null==(c=null==g?void 0:g.data)?void 0:c.messageTemplatesList,UserMail:null==(u=null==g?void 0:g.data)?void 0:u.UserMail,PaymentStatus:null==(A=null==g?void 0:g.data)?void 0:A.PaymentStatus};await n(UE(e))}p("success"),h("Receipt Sent Successfully")}else 0===(null==(m=null==g?void 0:g.data)?void 0:m.statusCode)&&(p("error"),h("Receipt Not Sent"));x(!1),e.current.resetFields()},children:[Ye.jsx(I.Item,{name:"Email",rules:[{required:!0,pattern:/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,message:"Enter a valid email"}],children:Ye.jsx(Oy,{field:"Email",autoComplete:"nope",label:"Email",fieldState:!0,fieldApi:!0})}),Ye.jsx("div",{className:"model1-submit",children:Ye.jsx(Ry,{type:"submit",buttonText:"SHARE",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0})})]})}),Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:u,messageData:A,onComplete:U}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Feature Addon"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx(F,{title:"Search by Application Name, Payment Mode or Purchase Mobile No",children:Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search by Application Name, Payment Mode or Purchase Mobile No",onSearch:e=>{c(e)},onSearchChange:e=>{var t;c(null==(t=null==e?void 0:e.target)?void 0:t.value)}})})}),Ye.jsx(Ry,{buttonText:"Purchase New",color:"901D77",icon:Ye.jsx(C,{}),handleSubmit:()=>{t(`${nee}setting/feat-addon-form`)},children:"OPEN"})]})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:M,data:l,dataSource:l,pagination:e=>{s(e)}})})]}),Ye.jsx(SP,{title:"Details",width:1e3,maskClosable:!0,open:S,handleCancel:()=>N(!1),children:Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{ref:{},className:"purchase-info-model",children:[Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:V,dataSource:b,data:b,pagination:!1,className:"tablereport"})}),Ye.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",flexDirection:"column",alignItems:"flex-end",width:"100%",fontSize:"14px",fontFamily:"Poppins",fontWeight:500},children:[Ye.jsxs("p",{children:["Sub Total : ",null==B?void 0:B.Price]}),Ye.jsxs("p",{children:["Tax Amount: ",null==B?void 0:B.TaxAmount]}),Ye.jsxs("p",{children:["Total: ",null==B?void 0:B.NetPrice]})]})]})})})]})},empAccess:"Feature Addon",access:"Admin"},{path:"feat-addon-form",component:()=>{var e,t,n;const i=a.useRef(null),r=Qt(),s=um(),[l,o]=a.useState(null),[d,c]=a.useState(null),[u,p]=a.useState(),[A,h]=a.useState(null),[f,m]=a.useState([]),[v,g]=a.useState([]),[y,x]=a.useState([]),[b,w]=a.useState(),[j,S]=a.useState([]),[N,F]=a.useState([]),[B,T]=a.useState([]),E=iA("UserId"),U=iA("UserType"),_=[{name:"Home",link:`${iee}landing-page/home`},{name:"FeatureAddon",link:`${iee}setting/feat-addon`},{name:"New",link:null}];a.useEffect((()=>{s(Gh({items:_})),O()}),[]),a.useEffect((()=>{let e=null==f?void 0:f.filter((e=>e.AppId===A));S(e);const t=null==y?void 0:y.filter((e=>e.FeatName==b));F(t)}),[f,y,b,A]);const O=async()=>{var e;let t;t="Employee"==U?await s(Lg({UserId:E})).unwrap():await s(Bg({UserId:E})).unwrap(),m(null==(e=null==t?void 0:t.data)?void 0:e.data)},M=(e,t,n,a,r,s)=>{var l;const o=e*a,d=e*s;null==(l=i.current)||l.setFieldsValue({[t]:e,[n]:o.toString(),[r]:d.toString()}),setTimeout((()=>{T((n=>({...n,[t]:e})))}),0)},[R,Q]=a.useState(!1),H=[{title:"SI.NO",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:n+1})},{title:"Application Name",dataIndex:"AppName",key:"AppName",width:"100px",align:"left"},{title:"Feature Name",dataIndex:"FeatName",key:"FeatName",align:"left",width:"100px"},{title:"Feature Count",dataIndex:"featcount",key:"featcount",align:"center",width:"100px"},{title:"Price",dataIndex:"NetPrice",key:"Amount",align:"center",width:"100px"},{title:"Net Amount",dataIndex:"OveralAmount",key:"OveralAmount",align:"right",width:"100px"},{title:"Action",dataIndex:"Action",key:"Action",align:"right",width:"100px",render:(e,t,n)=>(null==v?void 0:v.length)>=1?Ye.jsxs(P,{size:"middle",children:[Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>(async e=>{var t,n,a,r,s,l;Q(!0),w(e.FeatName),null==(t=i.current)||t.setFieldsValue({FeaturesName:e.FeatName}),null==(n=i.current)||n.setFieldsValue({FeaturesAmount:e.featcount}),M(e.featcount,"FeaturesAmount",(null==(a=null==N?void 0:N[0])?void 0:a.FeatName)+"Amt",null==(r=null==N?void 0:N[0])?void 0:r.NetPrice,(null==(s=null==N?void 0:N[0])?void 0:s.FeatName)+"Taxdetails",null==(l=null==N?void 0:N[0])?void 0:l.TaxAmount),T(e.OveralAmount)})(t)})}),Ye.jsx("a",{children:Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>(async e=>{let t=null==v?void 0:v.filter((t=>t.UniqueId!==e.UniqueId));g(t)})(t)})})]}):null}],V=a.useCallback((()=>{c(null),o(null)}),[]);return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:l,messageData:d,onComplete:V}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Feature Addon"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsxs(I,{ref:i,className:"formDivAnt1",onFinish:e=>{var t,n,a,r,s,l,o,d,c,u,p,A,h,m,x,b,C,S,I;Q(!1);const F=null==(n=null==(t=null==f?void 0:f.filter((t=>t.AppId===(null==e?void 0:e.AppName))))?void 0:t[0])?void 0:n.AppName,P=null==y?void 0:y.filter((t=>t.FeatName==(null==e?void 0:e.FeaturesName)));let k=v.filter((t=>t.FeatName!==(null==e?void 0:e.FeaturesName))),T=[{AppName:null==(a=null==N?void 0:N[0])?void 0:a.AppName,FeatName:null==(r=null==N?void 0:N[0])?void 0:r.FeatName,TaxAmount:(null==(s=null==j?void 0:j[0])?void 0:s.NoOfDays)>31?null==(l=null==N?void 0:N[0])?void 0:l.YearlyTaxAmount:null==(o=null==N?void 0:N[0])?void 0:o.MonthlyTaxAmount,Price:(null==(d=null==j?void 0:j[0])?void 0:d.NoOfDays)>31?null==(c=null==N?void 0:N[0])?void 0:c.YearlyPrice:null==(u=null==N?void 0:N[0])?void 0:u.MonthlyPrice,NetPrice:(null==(p=null==j?void 0:j[0])?void 0:p.NoOfDays)>31?null==(A=null==N?void 0:N[0])?void 0:A.YearlyNetPrice:null==(h=null==N?void 0:N[0])?void 0:h.MonthlyNetPrice,featcount:null==e?void 0:e.FeaturesAmount,OveralAmount:(null==B?void 0:B.FeaturesAmount)*((null==(m=null==j?void 0:j[0])?void 0:m.NoOfDays)>31?null==(x=null==N?void 0:N[0])?void 0:x.YearlyNetPrice:null==(b=null==N?void 0:N[0])?void 0:b.MonthlyNetPrice),TaxId:null==(C=null==N?void 0:N[0])?void 0:C.TaxId,UniqueId:null==(S=null==P?void 0:P[0])?void 0:S.UniqueId}];(null==(I=v.filter((e=>e.AppName==F)))?void 0:I.some((t=>t.FeatName===(null==e?void 0:e.FeaturesName))))?(g([...k,...T]),w(),i.current.setFieldsValue({FeaturesAmount:void 0}),i.current.setFieldsValue({FeaturesName:void 0})):(g([...v,...T]),w(),i.current.setFieldsValue({FeaturesAmount:void 0}),i.current.setFieldsValue({FeaturesName:void 0}))},style:{display:"flex",columnGap:"1rem",flexWrap:"wrap"},children:[Ye.jsx(I.Item,{name:"AppName",rules:[{required:!0,message:"Please Enter AppName"}],children:Ye.jsx(_y,{options:null==f?void 0:f.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"AppId",label:"Application Name",className:"field-DropDown",isOnchanges:!!u,onChangeFunction:async e=>{var t,n,a,l,o,d,c,u,A,m,v;null==(t=i.current)||t.resetFields();const g=null==(a=null==(n=null==f?void 0:f.filter((t=>t.AppId===e)))?void 0:n[0])?void 0:a.AppName,y=null==f?void 0:f.filter((t=>t.AppId===e));if((null==(l=null==y?void 0:y[0])?void 0:l.RemainingDays)>0){p(g),h(e),null==(o=i.current)||o.setFieldsValue({AppName:e});let t=await s(aT(e)),n=null==(m=null==(A=null==(u=null==(c=null==(d=null==t?void 0:t.payload)?void 0:d.data)?void 0:c.data)?void 0:u[0])?void 0:A.FeatDetails)?void 0:m.filter((e=>"D"!=e.ActiveStatus));x(n),w()}else r(`${iee}${null==(v=null==y?void 0:y[0])?void 0:v.AppName}`)},valueData:u,disabled:!!u})}),Ye.jsx(I.Item,{name:"FeaturesName",rules:[{required:!0,message:"Please Enter FeaturesName"}],children:Ye.jsx(_y,{options:null==y?void 0:y.map(((e,t)=>({value:e.FeatName,label:e.FeatName}))),placeholder:"AppId",label:"Features",className:"field-DropDown-Feat",isOnchanges:!!b,onChangeFunction:e=>{var t,n;w(e),null==(t=i.current)||t.setFieldsValue({FeaturesName:e}),null==(n=i.current)||n.setFieldsValue({FeaturesAmount:void 0}),T()},valueData:b,disabled:R})}),u&&b&&Ye.jsx(I.Item,{name:"FeaturesAmount",rules:[{required:!0,pattern:/^(?=.*[1-9])\d+$/,message:"Enter Count"}],children:Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",type:"number",label:"Count",id:"Count",field:"organization",className:"featureAmt",value:B,isOnChange:!0,onChange:e=>{var t,n,i,a,r;return M(null==(t=null==e?void 0:e.target)?void 0:t.value,"FeaturesAmount",(null==(n=null==N?void 0:N[0])?void 0:n.FeatName)+"Amt",null==(i=null==N?void 0:N[0])?void 0:i.NetPrice,(null==(a=null==N?void 0:N[0])?void 0:a.FeatName)+"Taxdetails",null==(r=null==N?void 0:N[0])?void 0:r.TaxAmount)}})}),(null==B?void 0:B.FeaturesAmount)>0&&b&&Ye.jsxs("div",{children:["Total Amount: ",Ye.jsx("input",{style:{width:"50px",height:"40px",borderRadius:"5px"},fieldState:!0,value:(null==(e=null==j?void 0:j[0])?void 0:e.NoOfDays)>31?(null==B?void 0:B.FeaturesAmount)*(null==(t=null==N?void 0:N[0])?void 0:t.YearlyNetPrice):(null==B?void 0:B.FeaturesAmount)*(null==(n=null==N?void 0:N[0])?void 0:n.MonthlyNetPrice)})]}),Ye.jsx(Ry,{buttonText:"Add",color:"901D77",icon:Ye.jsx(C,{}),htmlType:!0})]})}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:H,data:v,dataSource:v}),Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0,handleSubmit:async()=>{var e,t,n,a;if(v.length>0){let s=null==f?void 0:f.filter((e=>{var t;return(null==e?void 0:e.AppName)==(null==(t=null==v?void 0:v[0])?void 0:t.AppName)})),l={BookingId:null==(e=null==s?void 0:s[0])?void 0:e.UniqueId,Price:null==v?void 0:v.reduce(((e,t)=>e+t.Price*t.featcount),0),TaxId:null==(t=null==v?void 0:v[0])?void 0:t.TaxId,TaxAmount:null==v?void 0:v.reduce(((e,t)=>e+t.TaxAmount*t.featcount),0),NetPrice:null==v?void 0:v.reduce(((e,t)=>e+t.OveralAmount),0),OrderId:0,Type:"I",Details:null==v?void 0:v.map((e=>({FeatAddonId:null==e?void 0:e.UniqueId,Count:null==e?void 0:e.featcount,Price:(null==e?void 0:e.Price)*(null==e?void 0:e.featcount),NetPrice:(null==e?void 0:e.NetPrice)*(null==e?void 0:e.featcount),TaxAmount:(null==e?void 0:e.TaxAmount)*(null==e?void 0:e.featcount),TaxId:null==e?void 0:e.TaxId}))),CreatedBy:E};r(`${iee}FeatureInvoice`,{state:{TotalAmount:v.reduce(((e,t)=>e+t.OveralAmount),0),BookingId:null==(n=null==s?void 0:s[0])?void 0:n.UniqueId,postData:l,UserAppMap:f}}),null==(a=i.current)||a.resetFields(),p(),T()}else o("error"),c("Select Feature")}})]})]})]})]})})},empAccess:"Feature Addon",access:"Admin"},{path:"pricing",component:()=>{var e;const t=Qt(),n=Mt(),i=um(),[r,s]=a.useState(null),[l,o]=a.useState(null),[d,c]=a.useState([]),[u,p]=a.useState({}),[A,h]=a.useState({}),[f,m]=a.useState(""),[v,g]=a.useState(1),y=Tf(Gg),x=iA("UserType");async function b(){var e,t,a,r,l;(null==(e=null==n?void 0:n.state)?void 0:e.Notiffy)&&(s(null==(t=null==n?void 0:n.state)?void 0:t.Notiffy.messageType),o(null==(a=null==n?void 0:n.state)?void 0:a.Notiffy.messageData));const d=await i(Yk()).unwrap();1===(null==(r=d.data)?void 0:r.statusCode)&&c(null==(l=d.data)?void 0:l.data)}a.useEffect((()=>{try{b()}catch(e){}}),[]),a.useEffect((()=>{i(Gh({items:oT}))}),[]);const w=async e=>{var t;let n={PricingId:e.PricingId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},a=await i(Zk(n)).unwrap();1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&(b(),s("success"),o("A"==e.ActiveStatus?"Pricing Type In-Activated Successfully":"Pricing Type Activated Successfully"))},j=[{title:"SI.NO",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(v-1)+n+1})},{title:"App Name",dataIndex:"AppName",key:"AppName",width:"100px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[f],onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.PricingName).toLowerCase().includes(e.toLowerCase())||String(t.Price).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n,i;return(null==(n=null==e?void 0:e.AppName)?void 0:n.length)-(null==(i=null==t?void 0:t.AppName)?void 0:i.length)},sortOrder:"AppName"===A.columnKey?A.order:null,ellipsis:!0},{title:"Pricing Name",dataIndex:"PricingName",key:"PricingName",width:"100px",align:"left",render:(e,t)=>Ye.jsxs("a",{style:{color:"black",width:"200px"},children:[t.PricingName," ("+(t.NoOfDays>35?"Yearly":"Monthly")+")"]}),filteredValue:u.PricingName||null,onFilter:(e,t)=>t.PricingName.includes(e),sorter:(e,t)=>{var n,i;return(null==(n=null==e?void 0:e.PricingName)?void 0:n.length)-(null==(i=null==t?void 0:t.PricingName)?void 0:i.length)},sortOrder:"PricingName"===A.columnKey?A.order:null,ellipsis:!0},{title:"Net Price",dataIndex:"NetPrice",key:"NetPrice",width:"100px",align:"right",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),filteredValue:u.NetPrice||null,onFilter:(e,t)=>t.NetPrice.includes(e),sorter:(e,t)=>{var n,i;return(null==(n=null==e?void 0:e.NetPrice)?void 0:n.length)-(null==(i=null==t?void 0:t.NetPrice)?void 0:i.length)},sortOrder:"NetPrice"===A.columnKey?A.order:null,ellipsis:!0},{title:"Price",dataIndex:"Price",key:"Price",width:"100px",align:"right",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),filteredValue:u.Price||null,onFilter:(e,t)=>t.Price.includes(e),sorter:(e,t)=>{var n,i;return(null==(n=null==e?void 0:e.Price)?void 0:n.length)-(null==(i=null==t?void 0:t.Price)?void 0:i.length)},sortOrder:"Price"===A.columnKey?A.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",width:"100px",align:"center",render:(e,t,n)=>d.length>=1?Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:"A"===t.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==y?void 0:y.length)||"Y"===(null==(e=null==y?void 0:y.find((e=>"Pricing Type"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?w(t):" "}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==y?void 0:y.length)||"Y"===(null==(e=null==y?void 0:y.find((e=>"Pricing Type"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?w(t):" "}})})}):null}],S=a.useCallback((()=>{o(null),s(null)}),[]);return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:r,messageData:l,onComplete:S}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Pricing Type"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{m(e)},onSearchChange:e=>{var t;m(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",handleSubmit:()=>{t("/setting/pricing/new")},color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==x&&"N"===(null==(e=null==y?void 0:y.find((e=>"Pricing Type"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:j,data:d,dataSource:d,pagination:e=>{g(e)},onChange:(e,t,n)=>{p(t),h(n)}})," "]})]})})},empAccess:"Pricing Type"},{path:"pricing/new",component:e=>Ye.jsx(cT,{...e,formType:"add"}),empAccess:"Pricing Type"},{path:"pricing/update",component:e=>Ye.jsx(cT,{...e,formType:"edit"}),empAccess:"Pricing Type"},{path:"feature-master",component:()=>{var e;const t=Qt(),n=Mt(),i=um(),[r,s]=a.useState(null),[l,o]=a.useState(null),[d,c]=a.useState([]),[u,p]=a.useState({}),[A,h]=a.useState({}),[f,m]=a.useState(""),[v,g]=a.useState(1),y=Tf(Gg),x=iA("UserType");async function b(){var e,t,a,r,l;(null==(e=null==n?void 0:n.state)?void 0:e.Notiffy)&&(s(null==(t=null==n?void 0:n.state)?void 0:t.Notiffy.messageType),o(null==(a=null==n?void 0:n.state)?void 0:a.Notiffy.messageData));const d=await i(jT()).unwrap();1===(null==(r=d.data)?void 0:r.statusCode)&&await c(null==(l=d.data)?void 0:l.data)}a.useEffect((()=>{try{b(),i(Gh({items:TT}))}catch(e){}}),[]);const w=async e=>{var t;let n={FeatId:e.FeatId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},a=await i(FT(n)).unwrap();1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&(s("success"),o("A"==e.ActiveStatus?"Feature In-Activated Successfully":"Feature Activated Successfully"),b())},j=[{title:"SI.NO",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(v-1)+n+1})},{title:"Application",dataIndex:"AppName",key:"AppName",align:"left",width:"150px",filteredValue:u.AppName||null,render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n,i;return(null==(n=null==e?void 0:e.AppName)?void 0:n.length)-(null==(i=null==t?void 0:t.AppName)?void 0:i.length)},sortOrder:"AppName"===A.columnKey?A.order:null,ellipsis:!0},{title:"Feature Name",dataIndex:"FeatName",key:"FeatName",width:"200px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[f],onFilter:(e,t)=>String(t.FeatName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.FeatName)?void 0:n.localeCompare(t.FeatName)},sortOrder:"FeatName"===A.columnKey?A.order:null,ellipsis:!0},{title:"Feature Category",dataIndex:"FeatCatName",key:"FeatCatName",align:"left",width:"200px",filteredValue:u.FeatCatName||null,render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n,i;return(null==(n=null==e?void 0:e.FeatCatName)?void 0:n.length)-(null==(i=null==t?void 0:t.FeatCatName)?void 0:i.length)},sortOrder:"FeatCatName"===A.columnKey?A.order:null,ellipsis:!0},{title:"Type",dataIndex:"FeatTypeName",key:"FeatTypeName",filteredValue:u.FeatTypeName||null,align:"left",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n,i;return(null==(n=null==e?void 0:e.FeatTypeName)?void 0:n.length)-(null==(i=null==t?void 0:t.FeatTypeName)?void 0:i.length)},sortOrder:"FeatTypeName"===A.columnKey?A.order:null,ellipsis:!0},{title:"Constraint",dataIndex:"FeatConstraint",key:"FeatConstraint",align:"left",width:"130px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",width:"200px",align:"center",render:(e,n,i)=>d.length>=1?Ye.jsxs(P,{size:"middle",children:["A"===n.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==y?void 0:y.length)||"Y"===(null==(e=null==y?void 0:y.find((e=>"Feature"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async(e,n)=>{"D"!==e.ActiveStatus&&t(`${kT}setting/feature-master/update`,{state:{editstate:e}},{key:n})})(n,i):" "}})}):"",Ye.jsx("a",{children:"A"===n.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==y?void 0:y.length)||"Y"===(null==(e=null==y?void 0:y.find((e=>"Feature"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?w(n):" "}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==y?void 0:y.length)||"Y"===(null==(e=null==y?void 0:y.find((e=>"Feature"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?w(n):" "}})})]}):null}],S=a.useCallback((()=>{o(null),s(null)}),[]);return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:r,messageData:l,onComplete:S}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Feature"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{m(e)},onSearchChange:e=>{var t;m(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",handleSubmit:()=>{t(`${kT}setting/feature-master/new`)},color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==x&&"N"===(null==(e=null==y?void 0:y.find((e=>"Feature"==(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:j,data:d,dataSource:d,pagination:e=>{g(e)},onChange:(e,t,n)=>{p(t),h(n)}})," "]})]})})},empAccess:"Feature"},{path:"feature-master/new",component:e=>Ye.jsx(DT,{...e,formType:"add"}),empAccess:"Feature"},{path:"feature-master/update",component:e=>Ye.jsx(DT,{...e,formType:"edit"}),empAccess:"Feature"},{path:"user-master",component:()=>{var e;const t=Qt(),n=um(),i=Mt(),[r,s]=a.useState([]),[l,o]=a.useState({}),[d,c]=a.useState({}),[u,p]=a.useState(""),[A,h]=a.useState(null),[f,m]=a.useState(null),[v,g]=a.useState(null),[y,x]=a.useState(!1),[b,w]=a.useState(null),[j,S]=a.useState([]),[N,F]=a.useState(!1),[B,k]=a.useState({}),[T,E]=a.useState({}),[_,O]=a.useState(1),[M,R]=a.useState(0),[Q,V]=a.useState(iA("UserType")?iA("UserType"):null),[z,q]=a.useState(iA("UserId")?iA("UserId"):null),W=Tf(ZT),$=Tf(Gg);a.useEffect((()=>{X()}),[z]);const X=async()=>{var e,t,i,a;let r=await n(dw(z)).unwrap();1===(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)?R(null==(i=null==(t=null==r?void 0:r.data)?void 0:t.data)?void 0:i.RemainingUserCount):0===(null==(a=null==r?void 0:r.data)?void 0:a.statusCode)&&R(0)},J=async e=>{var t,i,a,r,l,o;const d={Admin:"AF","Super Admin User":"SF",Employee:"EF",Marketing:"M"}[e]||null;let c=await n(_T(d)).unwrap();g(e),S([]),1==(null==(t=null==c?void 0:c.data)?void 0:t.statusCode)?"Super Admin User"===e?(w(null),x(!1),s(null==(i=null==c?void 0:c.data)?void 0:i.data)):"Employee"===e?(x(!0),S(null==(a=null==c?void 0:c.data)?void 0:a.data),Z(b),s(null==(r=null==c?void 0:c.data)?void 0:r.data)):(w(null),x(!1),s(null==(l=null==c?void 0:c.data)?void 0:l.data)):(h("error"),m(null==(o=null==c?void 0:c.data)?void 0:o.response))},Z=async e=>{var t,i;w(e);let a=await n(MT(e)).unwrap();1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)?s(null==(i=null==a?void 0:a.data)?void 0:i.data):s([])};a.useEffect((()=>{null===v&&s(W)}),[W]),a.useEffect((()=>{null!=v&&J(v)}),[N]),a.useEffect((()=>{var e,t,a;try{n(Gh({items:lE})),"Admin"===Q?n(OT(z)).unwrap():n(UT()).unwrap(),(null==(e=null==i?void 0:i.state)?void 0:e.Notiffy)&&(h(null==(t=null==i?void 0:i.state)?void 0:t.Notiffy.messageType),m(null==(a=null==i?void 0:i.state)?void 0:a.Notiffy.messageData))}catch(r){}}),[]);const ee=a.useCallback((()=>{m(null),h(null)}),[]);I.useForm();const te=[{title:"SI.NO",key:"sno",align:"center",width:"80px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(_-1)+n+1})},{title:"Name",dataIndex:"UserName",key:"UserName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[u],onFilter:(e,t)=>String(t.UserName).toLowerCase().includes(e.toLowerCase())||String(t.MobileNo).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.UserName)?void 0:n.localeCompare(t.UserName)},sortOrder:"UserName"===d.columnKey?d.order:null,ellipsis:!0},{title:"Type",dataIndex:"UserTypeName",key:"UserTypeName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Email",dataIndex:"MailId",key:"MailId",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>(null==e?void 0:e.MobileNo)-(null==t?void 0:t.MobileNo),sortOrder:"MailId"===d.columnKey?d.order:null,ellipsis:!0},{title:"Mobile",dataIndex:"MobileNo",key:"MobileNo",align:"right",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>(null==e?void 0:e.MobileNo)-(null==t?void 0:t.MobileNo),sortOrder:"MobileNo"===d.columnKey?d.order:null,ellipsis:!0},{title:"Password",dataIndex:"Password",key:"Password",align:"right",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black"},children:"Super Admin User"==Q?e?"****":"":e})},{title:"Pin",dataIndex:"Pin",key:"Pin",align:"right",render:e=>Ye.jsx("a",{style:{color:"black"},children:"Super Admin User"==Q?e?"****":"":e})},{title:"Action",key:"Action",align:"center",dataIndex:"Action",render:(e,i,a)=>W.length>=1?Ye.jsxs(P,{size:"middle",children:["A"===i.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==$?void 0:$.length)||"Y"===(null==(e=null==$?void 0:$.find((e=>"User Creation"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async(e,n)=>{"D"!==e.ActiveStatus&&t(`${aE}setting/user-master/update`,{state:{editstate:e}},{key:n})})(i,a):" "}})}):"",Ye.jsx("a",{children:"A"===i.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==$?void 0:$.length)||"Y"===(null==(e=null==$?void 0:$.find((e=>"User Creation"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?(async e=>{var t;F(!1);let i={UserId:e.UserId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},a=await n(HT(i)).unwrap();1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&(X(),"Admin"===Q?await n(OT(z)).unwrap():await n(UT()).unwrap(),h("success"),m("A"==e.ActiveStatus?"User In-Activated Successfully":"User Activated Successfully"),F(!0))})(i):" "}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==$?void 0:$.length)||"Y"===(null==(e=null==$?void 0:$.find((e=>"User Creation"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?(async e=>{var t,i,a,r,s,l,o;if("D"!==(null==e?void 0:e.BrActiveStatus)){let d=await n(vb({UserId:"Admin"===Q?z:"Employee"==(null==e?void 0:e.UserTypeName)?null==e?void 0:e.AdminId:null==e?void 0:e.UserId,AppId:null==e?void 0:e.AppId})).unwrap(),c=(null==(i=null==(t=null==d?void 0:d.data)?void 0:t.data[0])?void 0:i.UserCount)+1,u=null==(l=null==(s=null==(r=null==(a=null==d?void 0:d.data)?void 0:a.data[0])?void 0:r.FeatureDetails)?void 0:s.filter((e=>"User"==e.FeatName))[0])?void 0:l.FeatConstraint;if(c<u||"N"===(null==e?void 0:e.PlanPurchase)&&"Employee"!==(null==e?void 0:e.UserTypeName)||"Admin"==(null==e?void 0:e.UserTypeName)){F(!1);let t={UserId:e.UserId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},i=await n(HT(t)).unwrap();1==(null==(o=null==i?void 0:i.data)?void 0:o.statusCode)&&(X(),"Admin"===Q?await n(OT(z)).unwrap():await n(UT()).unwrap(),h("success"),m("A"==e.ActiveStatus?"User In-Activated Successfully":"User Activated Successfully"),F(!0))}else h("error"),m("You need to delete one user if you wanna add this user")}else h("error"),m("You need to activate your branch")})(i):" "}})})]}):null},..."Super Admin"===Q||"Super Admin User"===Q?[{title:"Reset/Send",dataIndex:"send",key:"send",align:"center",width:"385px",render:(e,t)=>Ye.jsxs("div",{className:"userOtp-WSM",style:{display:"flex",backgroundColor:"#c5c5c5",justifyContent:"center"},children:[Ye.jsx("div",{style:{height:"2rem",display:"flex",alignContent:"end",flexWrap:"wrap"},children:Ye.jsx(H.Group,{onChange:e=>ae(e,t),value:(null==t?void 0:t.UserId)==(null==B?void 0:B.id)?null==B?void 0:B.value:"",options:sE,children:null==sE?void 0:sE.map(((e,t)=>Ye.jsx(H,{value:e.value,children:e.label},t)))})}),Ye.jsxs("div",{style:{display:"flex",gap:"0.5rem",marginTop:"0.6rem",height:"2rem"},children:[Ye.jsx("a",{style:{color:"black",display:"flex",flexDirection:"column",gap:"0.5rem"},children:Ye.jsx("button",{onClick:()=>se(t),style:{padding:"2px 3px",backgroundColor:"#ff4d4f",borderRadius:"3px",border:"#ff4d4f 1px solid",color:"#fff",cursor:"pointer",fontFamily:"poppins"},children:"Reset"})}),Ye.jsxs("a",{style:{color:"black",display:"flex",gap:"0.5rem"},children:[Ye.jsx("button",{onClick:()=>re(t),style:{padding:"2.5px 3px",backgroundColor:"#1677ff",borderRadius:"3px",border:"#1677ff 1px solid",color:"#fff",cursor:"pointer",fontFamily:"poppins",height:"1.6rem"},children:"Send"}),(null==t?void 0:t.UserId)==(null==T?void 0:T.id)&&1==T.value?Ye.jsxs("div",{style:{backgroundColor:"#c5c5c5",padding:"4px 5px",borderRadius:"5px",display:"flex",gap:"1rem"},children:[(null==t?void 0:t.MobileNo)&&Ye.jsx("a",{onClick:()=>le(t),children:Ye.jsx(Y,{style:{color:"green",fontSize:"18px"}})}),(null==t?void 0:t.MobileNo)&&Ye.jsx("a",{onClick:()=>ne(t),children:Ye.jsx(K,{style:{color:"#1890ff",fontSize:"18px"}})}),(null==t?void 0:t.MailId)&&Ye.jsx("a",{onClick:()=>ie(t),children:Ye.jsx(G,{style:{color:"#ff4d4f",fontSize:"18px"}})})]}):Ye.jsx("div",{})]})]})]})}]:[]],ne=async e=>{var t,i,a;let r={UserId:null==e?void 0:e.UserId,Type:B.value},s=await(null==(t=n(zT(r)))?void 0:t.unwrap());1==(null==(i=null==s?void 0:s.data)?void 0:i.statusCode)&&(h("success"),m(null==(a=null==s?void 0:s.data)?void 0:a.response))},ie=async e=>{var t,i,a;let r={UserId:null==e?void 0:e.UserId,Type:B.value},s=await(null==(t=n(qT(r)))?void 0:t.unwrap());1==(null==(i=null==s?void 0:s.data)?void 0:i.statusCode)&&(h("success"),m(null==(a=null==s?void 0:s.data)?void 0:a.response))},ae=(e,t)=>{var n;let i={value:null==(n=null==e?void 0:e.target)?void 0:n.value,id:null==t?void 0:t.UserId};k(i)},re=e=>{if((null==e?void 0:e.UserId)==(null==B?void 0:B.id))if((null==e?void 0:e.Pin)||(null==e?void 0:e.Password)){if("Pin"==(null==B?void 0:B.value))if(e.Pin){let t={id:null==e?void 0:e.UserId,value:!0};E(t)}else{h("warning"),m("Please Reset pin");let t={id:null==e?void 0:e.UserId,value:!1};E(t)}else if("Password"==(null==B?void 0:B.value))if(e.Password){let t={id:null==e?void 0:e.UserId,value:!0};E(t)}else{h("warning"),m("Please Reset Password");let t={id:null==e?void 0:e.UserId,value:!1};E(t)}}else h("warning"),m("Please Reset pin or password");else h("warning"),m(" select pin or password")},se=async e=>{var t,i,a,r,l;if((null==e?void 0:e.UserId)===(null==B?void 0:B.id)){let o={UserId:null==e?void 0:e.UserId,Type:B.value,UpdatedBy:null==e?void 0:e.UserId},d=await(null==(t=n(VT(o)))?void 0:t.unwrap());if(1==(null==(i=null==d?void 0:d.data)?void 0:i.statusCode)){h("success"),m(null==(a=null==d?void 0:d.data)?void 0:a.response);let e=await n(UT()).unwrap(),t=null==(r=null==e?void 0:e.data)?void 0:r.data;"Admin"==v&&(w(null),x(!1),s(t.filter((e=>"Admin"===e.UserTypeName)))),"Super Admin User"===v?(w(null),x(!1),s(t.filter((e=>"Super Admin User"===e.UserTypeName)))):"Employee"===v?(x(!0),S(t.filter((e=>"Admin"===e.UserTypeName))),Z(b)):(w(null),x(!1),s(t.filter((e=>"Admin"===e.UserTypeName))))}else h("error"),m(null==(l=null==d?void 0:d.data)?void 0:l.response)}else h("warning"),m("Please select pin or password")},le=e=>{let t={MobileNo:null==e?void 0:e.MobileNo,Pin:null==e?void 0:e.Pin,Password:null==e?void 0:e.Password};if("Pin"==B.value&&null==(null==t?void 0:t.Pin))return h("error"),void m("Please Reset pin ");if("Password"==B.value&&null==(null==t?void 0:t.Password))return h("error"),void m("Please Reset password");let n=`Hello, your ${B.value} is: ${t.Pin}`,i=`https://wa.me/${t.MobileNo}?text=${encodeURIComponent(n)}`;window.open(i,"_blank")},oe=r;return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:A,messageData:f,onComplete:ee}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"User Creation"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search by User Name/Mobile No",onSearch:e=>{p(e)},onSearchChange:e=>{var t;p(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),"Admin"!=Q?Ye.jsx(_y,{options:null==rE?void 0:rE.map((e=>({value:e.value,label:e.label}))),placeholder:"Select Roles",label:"Select Roles",className:"field-DropDown",isOnchanges:!!v,onChangeFunction:e=>J(e),valueData:v,disabled:!1}):null,y?Ye.jsx(_y,{options:null==j?void 0:j.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?e.UserName:e.MobileNo}))),placeholder:"Admin Name",label:"Admin Name",className:"field-DropDown",isOnchanges:!!b,onChangeFunction:e=>Z(e),valueData:b,disabled:!1}):null,Ye.jsx(Ry,{buttonText:"Add New",handleSubmit:()=>{t(`${aE}setting/user-master/new`)},color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==Q&&(0===M||"N"===(null==(e=null==$?void 0:$.find((e=>"User Creation"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess)),children:"OPEN"})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:te,data:oe,dataSource:oe,pagination:e=>{O(e)},onChange:(e,t,n)=>{o(t),c(n)}})," "]})]})})},empAccess:"User Creation",access:"Admin"},{path:"user-master/new",component:e=>Ye.jsx(iE,{...e,formType:"add"}),empAccess:"User Creation",access:"Admin"},{path:"user-master/update",component:e=>Ye.jsx(iE,{...e,formType:"edit"}),empAccess:"User Creation",access:"Admin"},{path:"payment/payment-history",component:()=>{var e;const t=a.useRef(),n=um(),i=Tf(Qg),r=Tf(Gg),[s,l]=a.useState(),[o,d]=a.useState(!1),[c,u]=a.useState(null),[p,A]=a.useState(null),[h,f]=a.useState([]),[m,v]=a.useState(""),[g,y]=a.useState(1),[x,b]=a.useState([]),w=iA("UserId"),[C,N]=a.useState("Y"),[F,B]=a.useState(null),[E,D]=a.useState(null),[L,U]=a.useState(null),[_,O]=a.useState(null),M=iA("UserType"),{RangePicker:R}=T,Q=[{name:"Home",link:"/landing-page/home"}];a.useEffect((()=>{n(Gh({items:Q})),n("Super Admin"===M||"Super Admin User"===M?Pg():Dg({UserId:w}))}),[]);const H=a.useCallback((()=>{A(null),u(null)}),[]),V=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(g-1)+n+1})},{title:"Application",dataIndex:"AppName",key:"AppName",filteredValue:[m],render:e=>Ye.jsx("a",{className:"tableText",children:e}),onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.TransactionId).toLowerCase().includes(e.toLowerCase())||String(t.PaymentModeName).toLowerCase().includes(e.toLowerCase())||String(t.OrderId).toLowerCase().includes(e.toLowerCase())||String(t.CreatedDate).toLowerCase().includes(e.toLowerCase())||String(t.NetPrice).toLowerCase().includes(e.toLowerCase())||String(t.PaymentStatus).toLowerCase().includes(e.toLowerCase())},{title:"Payment Date",dataIndex:"CreatedDate",key:"CreatedDate",fontSize:"13px",render:e=>Ye.jsx("a",{className:"tableText",children:tA(e)})},{title:"Price",dataIndex:"NetPrice",key:"NetPrice",render:e=>Ye.jsx("a",{className:"tableText",children:e})},{title:"Payment Mode",dataIndex:"PaymentModeName",key:"PaymentModeName",render:e=>Ye.jsx("a",{className:"tableText",children:e})},{title:"Status",dataIndex:"PaymentStatus",key:"PaymentStatus",render:e=>"P"==e?Ye.jsx("a",{className:"tableText Pending",children:"Pending"}):"S"==e?Ye.jsx("a",{className:"tableText Success",children:"Success"}):"C"==e?Ye.jsx("a",{className:"tableText Cancelled",children:"Cancelled"}):void 0},{title:"Download",key:"Download",dataIndex:"Action",width:"200px",align:"center",render:(e,t,n)=>Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:Ye.jsx(ye,{style:{color:"#FF4D4F"},onClick:()=>W(t)})})})},,{title:"Share",key:"Share",dataIndex:"Share",width:"200px",align:"center",render:(e,t,n)=>Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:Ye.jsx(CE,{style:{color:"##dddddd"},onClick:()=>q(t)})})})}],z=[{title:"Si.No",key:"sno",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(g-1)+n+1})},{title:"Order Id",dataIndex:"OrderId",key:"OrderId",align:"center",width:"100px"},{title:"Tracking Id",dataIndex:"TrackingId",key:"TrackingId",align:"center"},{title:"Bank Ref.No",dataIndex:"BankReferenceNumber",key:"BankReferenceNumber",align:"center"},{title:"Status",dataIndex:"PaymentStatus",key:"PaymentStatus",render:e=>"P"==e?Ye.jsx("a",{className:"tableText Pending",children:"Pending"}):"S"==e?Ye.jsx("a",{className:"tableText Success",children:"Success"}):"C"==e?Ye.jsx("a",{className:"tableText Cancelled",children:"Cancelled"}):void 0},{title:"Mode",dataIndex:"PaymentModeName",key:"PaymentModeName",render:e=>Ye.jsx("a",{className:"tableText",children:e})},{title:"Bank Name",key:"BankName",dataIndex:"BankName",align:"center"},{title:"MobileNo",dataIndex:"MobileNo",key:"MobileNo",align:"center",render:e=>Ye.jsx("a",{className:"tableText",children:e})},{title:"Name",dataIndex:"UserName",key:"UserName",align:"center",render:e=>Ye.jsx("a",{className:"tableText",children:e||"-"})},{title:"Application",dataIndex:"AppName",key:"AppName",align:"center",filteredValue:[m],render:e=>Ye.jsx("a",{className:"tableText",children:e}),onFilter:(e,t)=>String("S"===t.PaymentStatus?"Success":"P"===t.PaymentStatus?"Pending":"Failed").toLowerCase().includes(e.toLowerCase())||String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.UserName).toLowerCase().includes(e.toLowerCase())||String(t.TransactionId).toLowerCase().includes(e.toLowerCase())||String(t.PaymentModeName).toLowerCase().includes(e.toLowerCase())||String(t.OrderId).toLowerCase().includes(e.toLowerCase())||String(t.MobileNo).toLowerCase().includes(e.toLowerCase())},{title:"Date",dataIndex:"CreatedDate",key:"CreatedDate",width:"200px",align:"center",fontSize:"13px",render:e=>Ye.jsx("a",{className:"tableText",children:tA(e)})},{title:"Price",dataIndex:"NetPrice",key:"NetPrice",align:"center",render:e=>Ye.jsx("a",{className:"tableText",children:e})},{title:"Download",key:"Download",dataIndex:"Action",align:"center",render:(e,t,n)=>Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:Ye.jsx(ye,{style:{color:"#FF4D4F"},onClick:()=>W(t)})})})},,{title:"Share",key:"Share",dataIndex:"Share",align:"center",render:(e,t,n)=>Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:Ye.jsx(CE,{style:{color:"##dddddd"},onClick:()=>q(t)})})})}],q=e=>{l(null==e?void 0:e.UniqueId),d(!0)},W=async e=>{await f(e),await Y()},Y=async()=>{await(async(e,t)=>{const n=document.getElementById(e);if(!n)return;const i=document.createElement("div");i.innerHTML=`<style>${t}</style>`+n.outerHTML;const a={margin:0,filename:`invoice_${(new Date).getTime()}.pdf`,image:{type:"jpeg",quality:1},html2canvas:{scale:2},jsPDF:{unit:"in",format:"a4",orientation:"portrait"}};await Xp().set(a).from(i).save()})("Pdfbody","<style>.pdf-body {\n font-family: 'Segoe UI', Arial, sans-serif;\n font-size: 13px;\n color: #333;\n padding: 20px;\n max-width: 800px;\n margin: auto;\n background: #fff;\n}\n\n.pdf-header {\n display: flex;\n align-items: center;\n border-bottom: 2px solid #0074d9;\n padding-bottom: 10px;\n margin-bottom: 20px;\n\n .pdf-logo {\n height: 50px;\n margin-right: 15px;\n }\n\n .pdf-title-block {\n flex: 1;\n\n .pdf-title {\n font-size: 24px;\n font-weight: bold;\n margin: 0;\n color: #0074d9;\n }\n\n .pdf-subtitle {\n font-size: 14px;\n color: #777;\n margin: 0;\n }\n }\n\n .pdf-square {\n width: 20px;\n height: 20px;\n background: #0074d9;\n }\n}\n\n.pdf-amount-section {\n display: flex;\n justify-content: space-between;\n margin-bottom: 10px;\n\n p {\n margin: 0;\n font-weight: bold;\n }\n\n .pdf-value {\n margin-left: 5px;\n font-weight: normal;\n color: #555;\n }\n}\n\n.pdf-billing-section {\n display: flex;\n justify-content: space-between;\n margin-top: 15px;\n\n .pdf-section-title {\n font-weight: bold;\n margin-bottom: 4px;\n font-size: 14px;\n color: #0074d9;\n }\n\n .pdf-section-text {\n margin: 0;\n font-size: 12px;\n color: #555;\n }\n}\n\n.pdf-divider {\n border: none;\n border-top: 1px solid #ddd;\n margin: 20px 0;\n}\n\n.pdf-table-wrapper {\n margin-top: 10px;\n\n .pdf-table-heading {\n font-weight: bold;\n font-size: 14px;\n color: #0074d9;\n margin-bottom: 8px;\n }\n\n .pdf-table-subheading {\n font-size: 12px;\n color: #666;\n margin-bottom: 10px;\n }\n\n .pdf-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 12px;\n\n th {\n background: #f4f6f8;\n text-align: left;\n padding: 8px;\n border-bottom: 2px solid #ddd;\n }\n\n td {\n padding: 8px;\n border-bottom: 1px solid #eee;\n }\n\n th, td {\n white-space: nowrap;\n }\n\n tfoot td {\n font-weight: bold;\n }\n }\n\n .pdf-addon-list {\n margin: 0;\n padding-left: 18px;\n font-size: 12px;\n color: #555;\n\n li {\n margin-bottom: 2px;\n }\n }\n}\n\n@media print {\n body {\n background: #fff;\n }\n .pdf-body {\n box-shadow: none;\n margin: 0;\n padding: 0;\n }\n}\n</style>")};a.useEffect((()=>{(async()=>{var e,t,i;let a=await n(ew()).unwrap();1===(null==(e=null==a?void 0:a.data)?void 0:e.statusCode)&&b(null==(i=null==(t=null==a?void 0:a.data)?void 0:t.data[0])?void 0:i.PaymentUPIDetailsId)})()}),[]);return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:c,messageData:p,onComplete:H}),Ye.jsx("div",{style:{display:"none"},children:Ye.jsx(uE,{printingdata:h,CompanyName:null,zipcode:null,address:null,City:null})}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Payment History"})}),Ye.jsxs("div",{className:"searchAddDivPaymentHistory",children:[Ye.jsx("div",{className:"formSearchr",children:Ye.jsx(zb,{placeholder:"Search by Application/Payment Mode",onSearchChange:e=>{const{value:t}=e.target;v(t)}})}),Ye.jsxs("div",{className:"Ledger-datePicker",style:{display:"flex"},children:[Ye.jsx("div",{className:"RadioButton-DMYPicker",children:Ye.jsx(fk,{content:[{value:"Y",label:"Year"},{value:"M",label:"Month"},{value:"D",label:"Date"}],fieldState:!0,defaultSelect:"Y",onSelectFuntion:e=>(e=>{var n;N(e),null==(n=t.current)||n.resetFields()})(e)})}),Ye.jsxs(I,{className:"formDivAnt",ref:t,onFinish:async e=>{let t={Year:_,Month:L,Fromdate:F,Todate:E},i={Year:_,Month:L,Fromdate:F,Todate:E,UserId:w};"Super Admin"===M||"Super Admin User"===M?(await n(Eg(t)).unwrap(),y(1)):(await n(Og(i)).unwrap(),y(1))},children:[Ye.jsxs(P,{direction:"horizontal",children:["Y"==C&&Ye.jsx(I.Item,{name:"EffectiveFrom",rules:[{required:!0,message:"Please Enter The Year"}],children:Ye.jsx(T,{picker:"year",onChange:(e,t)=>((e,t)=>{O(t),B(null),D(null),U(null)})(0,t),disabledDate:e=>e&&e.year()>(new Date).getFullYear()})}),"M"==C&&Ye.jsx(I.Item,{name:"EffectiveFrom",rules:[{required:!0,message:"Please Enter The Month"}],children:Ye.jsx(T,{picker:"month",onChange:(e,t)=>(e=>{U(e.format("YYYY-MM")),O(null),B(null),D(null)})(e),disabledDate:e=>{const t=new Date,n=e.year(),i=e.month(),a=t.getFullYear(),r=t.getMonth();return n>a||n===a&&i>r}})}),"D"==C&&Ye.jsx(I.Item,{name:"EffectiveFrom",rules:[{required:!0,message:"Please Enter The Date"}],children:Ye.jsx(R,{format:"DD-MM-YYYY",disabledDate:e=>e&&e>S().endOf("day"),onCalendarChange:(e,t)=>{e&&e[1]&&(B(t[0]),D(t[1]),U(null),O(null))}})})]}),Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})]})]})]})]}),Ye.jsxs("div",{className:"PaymentHistory",children:[Ye.jsx(Vb,{columns:"Super Admin"===M||"Super Admin User"===M?z:V,data:i,pagination:e=>{y(e)}})," ",Ye.jsx(j,{centered:!0,open:o,onOk:()=>d(!1),onCancel:()=>{var e;d(!1),null==(e=null==t?void 0:t.current)||e.resetFields()},width:400,title:"Send Invoice to Another Email",children:Ye.jsxs(I,{ref:t,onFinish:async()=>{var e,i,a,r,l,o,c,p,h,f,m;let v={UniqueId:s,MailId:null==(i=null==(e=null==t?void 0:t.current)?void 0:e.getFieldValue())?void 0:i.Email,Link:`https://www.pozo.dev/payment-page?paymentId=${s}&Id=${x}`},g=await n(iw({data:v})).unwrap();if(1===(null==(a=null==g?void 0:g.data)?void 0:a.statusCode)){if(null!==(null==(r=null==g?void 0:g.data)?void 0:r.UserMail)){const e={UniqueId:null==(l=null==g?void 0:g.data)?void 0:l.UniqueId,userData:null==(o=null==g?void 0:g.data)?void 0:o.userData,messageTemplatesList:null==(c=null==g?void 0:g.data)?void 0:c.messageTemplatesList,UserMail:null==(p=null==g?void 0:g.data)?void 0:p.UserMail,PaymentStatus:null==(h=null==g?void 0:g.data)?void 0:h.PaymentStatus};await n(UE(e))}u("success"),A("Receipt Sent Successfully"),d(!1),null==(f=null==t?void 0:t.current)||f.resetFields()}else 0===(null==(m=null==g?void 0:g.data)?void 0:m.statusCode)&&(u("error"),A("Receipt Not Sent"))},children:[Ye.jsx(I.Item,{name:"Email",rules:[{required:!0,pattern:/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,message:"Enter a valid email"}],children:Ye.jsx(Oy,{field:"Email",autoComplete:"nope",label:"Email",fieldState:!0,fieldApi:!0})}),Ye.jsx("div",{className:"model1-submit",children:Ye.jsx(Ry,{type:"submit",buttonText:"SHARE",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0,onClick:()=>d(!1),disabled:"Super Admin"!==M&&"N"===(null==(e=null==r?void 0:r.find((e=>"Payment History"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess)})})]})})]})]})})},empAccess:"Payment History",access:"Admin"},{path:"payment/failed-payment-history",component:()=>{const e=um(),t=a.useRef(),n=a.useRef(),i=Tf(Rg),[r,s]=a.useState(null),[l,o]=a.useState(null),[d,c]=a.useState(""),[u,p]=a.useState(1),[A,h]=a.useState("Y"),[f,m]=a.useState(null),[v,g]=a.useState(null),[y,x]=a.useState(null),[b,w]=a.useState(null),C=iA("UserType"),N=iA("UserId"),[F,B]=a.useState(!1),[E,D]=a.useState(),[L,U]=a.useState(null),[_,O]=a.useState(),{RangePicker:M}=T,R=[{name:"Home",link:"/landing-page/home"}];a.useEffect((()=>{e(Gh({items:R})),"Super Admin"!==C&&"Super Admin User"!==C||(e(kg()),Q())}),[]);const Q=async()=>{var t,n;const i=await e(BE()).unwrap();1==(null==(t=null==i?void 0:i.data)?void 0:t.statusCode)&&D(null==(n=null==i?void 0:i.data)?void 0:n.data)},H=a.useCallback((()=>{o(null),s(null)}),[]),V=[{title:"Si.No",key:"sno",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(u-1)+n+1})},{title:"orderId",key:"orderId",dataIndex:"OrderId",filteredValue:[d]},{title:"transactionId",dataIndex:"TransactionId",key:"TransactionId",render:e=>Ye.jsx("a",{className:"tableText",children:e||"-"})},{title:"Mode",dataIndex:"PaymentModeName",key:"PaymentModeName",render:e=>Ye.jsx("a",{className:"tableText",children:e})},{title:"Bank Name",key:"BankName",dataIndex:"BankName",render:e=>Ye.jsx("a",{className:"tableText",children:e||"-"})},{title:"MobileNo",dataIndex:"MobileNo",key:"MobileNo",filteredValue:[d],render:e=>Ye.jsx("a",{className:"tableText",children:e})},{title:"Name",dataIndex:"UserName",key:"UserName",filteredValue:[d],render:e=>Ye.jsx("a",{className:"tableText",children:e||"-"})},{title:"Application",dataIndex:"AppName",key:"AppName",filteredValue:[d],render:e=>Ye.jsx("a",{className:"tableText",children:e}),onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.UserName).toLowerCase().includes(e.toLowerCase())||String(t.MobileNo).toLowerCase().includes(e.toLowerCase())||String(t.OrderId).toLowerCase().includes(e.toLowerCase())||String(t.transactionId).toLowerCase().includes(e.toLowerCase())},{title:"Date",dataIndex:"CreatedDate",key:"CreatedDate",width:"200px",align:"center",render:e=>Ye.jsx("a",{className:"tableText",children:tA(e)})},{title:"Price",dataIndex:"NetPrice",key:"NetPrice",render:e=>Ye.jsx("a",{className:"tableText",children:e})},{title:"Action",key:"Action",dataIndex:"Action",render:(e,t,n)=>Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:"F"===t.PaymentStatus&&null===t.TransactionId?Ye.jsx(Ry,{buttonText:"Success",color:"901D77",handleSubmit:()=>z(t)}):Ye.jsx(Ry,{buttonText:"Success",color:"901D77",handleSubmit:()=>q(t)})})})}],z=e=>{O(e),B(!0)},q=async t=>{var n,i,a,r,l,d,c,u,p,A,h;let f={OrderId:null==t?void 0:t.OrderId,UpdatedBy:N},m=await e(LE(f)).unwrap();if(1===(null==(n=null==m?void 0:m.data)?void 0:n.statusCode)){if(null==(i=null==m?void 0:m.data)?void 0:i.SMSbody){const t={body:null==(a=null==m?void 0:m.data)?void 0:a.SMSbody};await e(aw(t))}if(s("success"),o(null==(r=null==m?void 0:m.data)?void 0:r.response),e(kg()),null!==(null==(l=null==m?void 0:m.data)?void 0:l.UserMail)){const t={UniqueId:null==(d=null==m?void 0:m.data)?void 0:d.UniqueId,userData:null==(c=null==m?void 0:m.data)?void 0:c.userData,messageTemplatesList:null==(u=null==m?void 0:m.data)?void 0:u.messageTemplatesList,UserMail:null==(p=null==m?void 0:m.data)?void 0:p.UserMail,PaymentStatus:null==(A=null==m?void 0:m.data)?void 0:A.PaymentStatus};await e(UE(t))}}else s("error"),o(null==(h=null==m?void 0:m.data)?void 0:h.response)};return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:r,messageData:l,onComplete:H}),Ye.jsx("div",{style:{display:"none"}}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Failed Payment History"})}),Ye.jsxs("div",{className:"searchAddDivFailed",children:[Ye.jsx("div",{className:"formSearchr",children:Ye.jsx(zb,{placeholder:"Search",onSearchChange:e=>{const{value:t}=e.target;c(t)}})}),Ye.jsxs("div",{className:"Ledger-datePicker",style:{display:"flex"},children:[Ye.jsx("div",{className:"RadioButton-DMYPicker",children:Ye.jsx(fk,{content:[{value:"Y",label:"Year"},{value:"M",label:"Month"},{value:"D",label:"Date"}],fieldState:!0,defaultSelect:"Y",onSelectFuntion:n=>(n=>{var i;h(n),"Super Admin"!==C&&"Super Admin User"!==C||e(kg()),null==(i=t.current)||i.resetFields()})(n)})}),Ye.jsx("div",{children:Ye.jsxs(I,{className:"formDivAnt",ref:t,onFinish:async t=>{var n,i;let a={Year:b,Month:y,Fromdate:f,Todate:v},r=await e(Tg(a)).unwrap();1!=(null==(n=null==r?void 0:r.data)?void 0:n.statusCode)&&(s("error"),o(null==(i=null==r?void 0:r.data)?void 0:i.response))},children:[Ye.jsxs(P,{direction:"horizontal",children:["Y"==A&&Ye.jsx(I.Item,{name:"EffectiveFrom",rules:[{required:!0,message:"Please Enter The Year"}],children:Ye.jsx(T,{picker:"year",onChange:(e,t)=>((e,t)=>{w(t),m(null),g(null),x(null)})(0,t)})}),"M"==A&&Ye.jsx(I.Item,{name:"EffectiveFrom",rules:[{required:!0,message:"Please Enter The Month"}],children:Ye.jsx(T,{picker:"month",onChange:(e,t)=>(e=>{x(e.format("YYYY-MM")),w(null),m(null),g(null)})(e)})}),"D"==A&&Ye.jsx(I.Item,{name:"EffectiveFrom",rules:[{required:!0,message:"Please Enter The Date"}],children:Ye.jsx(M,{format:"DD-MM-YYYY",disabledDate:e=>e&&e>S().endOf("day"),onCalendarChange:(e,t)=>{e&&e[1]&&(m(t[0]),g(t[1]),x(null),w(null))}})})]}),Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{})})]})})]})]})]}),Ye.jsxs("div",{className:"FailedPayment",children:[Ye.jsx(Vb,{columns:"Super Admin"===C||"Super Admin User"===C?V:"",data:i,pagination:e=>{p(e)}})," "]}),Ye.jsx(j,{centered:!0,open:F,onCancel:()=>{var e;B(!1),null==(e=null==n?void 0:n.current)||e.resetFields()},width:400,title:"Failed Payment Detail",children:Ye.jsxs(I,{ref:n,onFinish:async t=>{var i,a,r,l,d,c,u,p,A,h,f,m,v;let g={OrderId:null==_?void 0:_.OrderId,PaymentMode:null==t?void 0:t.PaymentTypeName,TrackingId:null==t?void 0:t.TrackId,BankReferenceNo:null==t?void 0:t.BankReference,BankName:null==t?void 0:t.BankName,Amount:null==_?void 0:_.NetPrice,UpdatedBy:N},y=await e(LE(g)).unwrap();if(1===(null==(i=null==y?void 0:y.data)?void 0:i.statusCode)){if(null==(a=null==y?void 0:y.data)?void 0:a.SMSbody){const t={body:null==(r=null==y?void 0:y.data)?void 0:r.SMSbody};await e(t)}if(B(!1),null==(l=null==n?void 0:n.current)||l.resetFields(),O(),U(null),s("success"),o(null==(d=null==y?void 0:y.data)?void 0:d.response),e(kg()),null!==(null==(c=null==y?void 0:y.data)?void 0:c.UserMail)){const t={UniqueId:null==(u=null==y?void 0:y.data)?void 0:u.UniqueId,userData:null==(p=null==y?void 0:y.data)?void 0:p.userData,messageTemplatesList:null==(A=null==y?void 0:y.data)?void 0:A.messageTemplatesList,UserMail:null==(h=null==y?void 0:y.data)?void 0:h.UserMail,PaymentStatus:null==(f=null==y?void 0:y.data)?void 0:f.PaymentStatus};await e(UE(t))}}else null==(m=null==n?void 0:n.current)||m.resetFields(),U(null),s("error"),o(null==(v=null==y?void 0:y.data)?void 0:v.response)},children:[Ye.jsx(I.Item,{name:"BankReference",rules:[{required:!0,pattern:/^\d+$/,message:"Enter a valid BankReference"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"BankReference",autoComplete:"nope",label:"Bank Reference No ",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"TrackId",rules:[{required:!0,pattern:/^\d+$/,message:"Enter a valid Tracking Id"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"TrackId",autoComplete:"nope",label:"Tracking Id",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"BankName",rules:[{required:!0,pattern:/^[a-zA-Z\s]+$/,message:"Enter a valid BankName "},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"BankName",autoComplete:"nope",label:"Bank Name",fieldState:!0,fieldApi:!0})}),Ye.jsx(I.Item,{name:"PaymentTypeName",rules:[{required:!0,message:"Please Select Payment"}],children:Ye.jsx(_y,{options:null==E?void 0:E.map((e=>({value:e.MethodName,label:e.MethodName}))),label:"Payment",id:"PaymentTypeName",field:"PaymentTypeName",fieldState:!0,fieldApi:!0,onChangeFunction:e=>(async e=>{var t;U(e),null==(t=null==n?void 0:n.current)||t.setFieldsValue({PaymentTypeName:e})})(e),isOnchanges:null!=L,valueData:L,className:"field-DropDown"})}),Ye.jsx("div",{className:"model1-submit",children:Ye.jsx(Ry,{type:"submit",buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0})})]})})]})})},empAccess:"Failed Payment History"},{path:"message-template",component:()=>{var e;const t=Qt(),n=um(),i=Mt(),r=Tf(pM),s=Tf(Gg),l=iA("UserType"),[o,d]=a.useState({}),[c,u]=a.useState(""),[p,A]=a.useState(null),[h,f]=a.useState(null),[m,v]=a.useState(1),g=[{name:"Home",link:`${mM}landing-page/home`},{name:"MessageTemplates",link:`${mM}setting/message-template`}];a.useEffect((()=>{var e,t,a;try{n(Gh({items:g})),n(oM()).unwrap(),(null==(e=null==i?void 0:i.state)?void 0:e.Notiffy)&&(A(null==(t=null==i?void 0:i.state)?void 0:t.Notiffy.messageType),f(null==(a=null==i?void 0:i.state)?void 0:a.Notiffy.messageData))}catch(r){}}),[]);const y=a.useCallback((()=>{f(null),A(null)}),[]),x=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(m-1)+n+1})},{title:"Message Header",dataIndex:"MessageHeader",key:"MessageHeader",width:"200px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[c],onFilter:(e,t)=>String(t.MessageHeader).toLowerCase().includes(e.toLowerCase())||String(t.Subject).toLowerCase().includes(e.toLowerCase())||String(t.TemplateType).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.MessageHeader)?void 0:n.localeCompare(t.MessageHeader)},sortOrder:"MessageHeader"===o.columnKey?o.order:null,ellipsis:!0},{title:"Subject",dataIndex:"Subject",key:"Subject",align:"left",width:"200px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.Subject)?void 0:n.localeCompare(t.Subject)},sortOrder:"Subject"===o.columnKey?o.order:null,ellipsis:!0},{title:"Message Body",dataIndex:"MessageBody",key:"MessageBody",align:"left",width:"200px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.MessageBody)?void 0:n.localeCompare(t.MessageBody)},sortOrder:"MessageBody"===o.columnKey?o.order:null,ellipsis:!0},{title:"Template Type",dataIndex:"TemplateType",key:"TemplateType",align:"left",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.TemplateType)?void 0:n.localeCompare(t.TemplateType)},sortOrder:"TemplateType"===o.columnKey?o.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",width:"200px",align:"center",render:(e,n,i)=>r.length>=1?Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==s?void 0:s.length)||"Y"===(null==(e=null==s?void 0:s.find((e=>"Message Template"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async(e,n)=>{t(`${mM}setting/message-template/update`,{state:{editstate:e}},{key:n})})(n,i):""}})})}):null}];return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:p,messageData:h,onComplete:y}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Message Templates"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{u(e)},onSearchChange:e=>{var t;u(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",handleSubmit:()=>{t(`${mM}setting/message-template/new`)},color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==l&&"N"===(null==(e=null==s?void 0:s.find((e=>"Message Template"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:x,data:r,dataSource:r,pagination:e=>{v(e)},onChange:(e,t,n)=>{d(n)}})," "]})]})})},empAccess:"Message Template"},{path:"message-template/new",component:e=>Ye.jsx(fM,{...e,formType:"add"}),empAccess:"Message Template"},{path:"message-template/update",component:e=>Ye.jsx(fM,{...e,formType:"edit"}),empAccess:"Message Template"},{path:"PaymentUPIDetails",component:()=>{const e=Qt(),t=um(),n=Mt(),i=Tf(NM),r=Tf(IM),[s,l]=a.useState({}),[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState(1),h=iA("UserType"),f=iA("UserId"),m=[{name:"Home",link:`${kM}landing-page/home`},{name:"PaymentUPIDetails",link:`${kM}setting/PaymentUPIDetails`}];a.useEffect((()=>{var e,i,a;try{t(Gh({items:m})),"Super Admin"!==h&&"Super Admin User"!==h||t(yM()).unwrap(),(null==(e=null==n?void 0:n.state)?void 0:e.Notiffy)&&(d(null==(i=null==n?void 0:n.state)?void 0:i.Notiffy.messageType),u(null==(a=null==n?void 0:n.state)?void 0:a.Notiffy.messageData))}catch(r){}}),[]),a.useEffect((()=>{t(xM(f))}),[f]);const v=a.useCallback((()=>{u(null),d(null)}),[]),g=async e=>{var n;let i={PaymentUPIDetailsId:e.PaymentUPIDetailsId,CompId:e.CompId,BranchId:e.BrId,ActiveStatus:"A"==e.activeStatus?"D":"A",UpdatedBy:f},a=await t(jM(i)).unwrap();1==(null==(n=null==a?void 0:a.data)?void 0:n.statusCode)&&(d("success"),u("A"==e.ActiveStatus?"Payment UPI Details In-Activated Successfully":"Payment UPI Details Activated Successfully"),"Admin"===h?t(xM(f)):"Super Admin"!==h&&"Super Admin User"!==h||await t(yM()).unwrap())},y=(e,t,n)=>{l(n)},x=e=>{A(e)},b=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(p-1)+n+1})},{title:"UPI Id",dataIndex:"UPIId",key:"UPIId",align:"left",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.UPIId)?void 0:n.localeCompare(t.UPIId)},sortOrder:"UPIId"===s.columnKey?s.order:null,ellipsis:!0},{title:"Mode",dataIndex:"ModeName",key:"ModeName",align:"left",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.ModeName)?void 0:n.localeCompare(t.ModeName)},sortOrder:"ModeName"===s.columnKey?s.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",width:"150px",align:"center",render:(t,n,a)=>("Admin"===h||"Admin User"===h?(null==r?void 0:r.length)>=1:(null==i?void 0:i.length)>=1)?Ye.jsxs(P,{size:"middle",children:["A"===n.activeStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>(async(t,n)=>{"D"!==t.ActiveStatus&&e(`${kM}setting/PaymentUPIDetails/update`,{state:{editstate:t}},{key:n})})(n,a)})}):"",Ye.jsx("a",{children:"A"===n.activeStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>g(n)}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>g(n)})})]}):null}];return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:o,messageData:c,onComplete:v}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Payment UPI Details"})}),Ye.jsx("div",{className:"searchAddDiv",children:Ye.jsx(Ry,{buttonText:"Add New",handleSubmit:()=>{e(`${kM}setting/PaymentUPIDetails/new`)},color:"901D77",icon:Ye.jsx(C,{}),children:"OPEN"})})]}),Ye.jsx("div",{className:"reportTable",children:"Admin"===h||"Admin User"===h?Ye.jsx(Vb,{columns:b,data:r,dataSource:r,pagination:x,onChange:y}):Ye.jsx(Vb,{columns:b,data:i,dataSource:i,pagination:x,onChange:y})})]})})},empAccess:"Payment UPI Details"},{path:"PaymentUPIDetails/new",component:e=>Ye.jsx(PM,{...e,formType:"add"}),empAccess:"Payment UPI Details"},{path:"PaymentUPIDetails/update",component:e=>Ye.jsx(PM,{...e,formType:"edit"}),empAccess:"Payment UPI Details"},{path:"featurepricing",component:()=>{var e,t;const n=Qt(),i=um(),r=Mt(),s=Tf(xb),l=iA("UserType"),o=Tf(Gg),[d,c]=a.useState({}),[u,p]=a.useState(""),[A,h]=a.useState(null),[f,m]=a.useState(null),[v,g]=a.useState([]),[y,x]=a.useState(!1),[b,w]=a.useState(1),[j,S]=a.useState(),N=[{name:"Home",link:`${aee}landing-page/home`},{name:"FeaturePricing",link:`${aee}setting/featurePricing`}];a.useEffect((()=>{var e,t,n;try{i(Gh({items:N})),i(lb()).unwrap(),(null==(e=null==r?void 0:r.state)?void 0:e.Notiffy)&&(h(null==(t=null==r?void 0:r.state)?void 0:t.Notiffy.messageType),m(null==(n=null==r?void 0:r.state)?void 0:n.Notiffy.messageData))}catch(a){}}),[]);const I=a.useCallback((()=>{m(null),h(null)}),[]);a.useEffect((()=>{i(fb(iA("UserId")))}),[iA("UserId")]),a.useEffect((()=>{F()}),[]);const F=async()=>{var e,t,n;try{let a=await i(nT());const r=null==(n=null==(t=null==(e=null==a?void 0:a.payload)?void 0:e.data)?void 0:t.data)?void 0:n.map((e=>{var t;let n=null==(t=e.FeatDetails[0])?void 0:t.FeatNameList.join(", ");return{...e,x:n}}));S(r)}catch(a){}},B=async e=>{var t;let n={appId:e.AppId,activeStatus:"A"==e.ActiveStatus?"D":"A",updatedBy:iA("UserId")},a=await i(rT(n)).unwrap();1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&(F(),h("success"),m("A"==e.ActiveStatus?"Featureon In-Activated Successfully":"Featureon Activated Successfully"))},k=e=>{w(e)},T=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(b-1)+n+1})},{title:"Application ",dataIndex:"AppName",key:"AppName",width:"200px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[u],onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.AppName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.AppName)?void 0:n.localeCompare(t.AppName)},sortOrder:"AppName"===d.columnKey?d.order:null,ellipsis:!0},{title:"Features",dataIndex:"x",key:"x",align:"center",width:"150px",render:(e,t)=>Ye.jsx(ty,{style:{color:"#1292EE",fontSize:"25px",cursor:"pointer"},onClick:()=>(e=>{var t;const n=null==(t=null==e?void 0:e.split(", "))?void 0:t.map((e=>{const[t,n]=e.split(" - ");return{FeatureName:t,Amount:parseFloat(n)}}));g(n),x(!0)})(e)})},{title:"Action",key:"Action",dataIndex:"Action",width:"100px",align:"center",render:(e,t,i)=>s.length>=1?Ye.jsxs(P,{size:"middle",children:["A"===t.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==o?void 0:o.length)||"Y"===(null==(e=null==o?void 0:o.find((e=>"Feature Pricing"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async(e,t)=>{"D"!==e.ActiveStatus&&n(`${aee}setting/featurepricing/update`,{state:{editstate:e}},{key:t})})(t,i):""}})}):"",Ye.jsx("a",{children:"A"===t.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==o?void 0:o.length)||"Y"===(null==(e=null==o?void 0:o.find((e=>"Feature Pricing"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?B(t):""}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==o?void 0:o.length)||"Y"===(null==(e=null==o?void 0:o.find((e=>"Feature Pricing"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?B(t):""}})})]}):null}],E=[{title:"SI.NO",key:"sno",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(b-1)+n+1})},{title:"Feature Name",dataIndex:"FeatureName",key:"FeatureName",align:"left",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:t.FeatureName})},{title:"Amount",dataIndex:"Amount",key:"Amount",align:"right",render:e=>Ye.jsx("a",{style:{color:"black"},children:`${e} `})}];null==(e=null==o?void 0:o.find((e=>"Feature Pricing"===(null==e?void 0:e.ConfigName))))||e.AddAccess;return Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:A,messageData:f,onComplete:I}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Feature Pricing"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{p(e)},onSearchChange:e=>{var t;p(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",icon:Ye.jsx(C,{}),handleSubmit:()=>{n(`${aee}setting/featurepricing/new`)},disabled:"Super Admin"!==l&&"N"==(null==(t=null==o?void 0:o.find((e=>"Feature Pricing"===(null==e?void 0:e.ConfigName))))?void 0:t.AddAccess),children:"OPEN"})]})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:T,data:j,dataSource:j,pagination:k,onChange:(e,t,n)=>{c(n)}})})]}),Ye.jsx(SP,{open:y,title:"Feature Details",handleCancel:()=>{x(!1),g([])},footer:!1,children:Ye.jsx("div",{style:{height:"400px",overflowY:"scroll"},children:Ye.jsx(Vb,{dataSource:v,data:v,columns:E,pagination:k})})})]})},empAccess:"Feature Pricing"},{path:"featurepricing/new",component:e=>Ye.jsx(see,{...e,formType:"add"}),empAccess:"Feature Pricing"},{path:"featurepricing/update",component:e=>Ye.jsx(see,{...e,formType:"edit"}),empAccess:"Feature Pricing"},{path:"sms-assigned-detail",component:e=>Ye.jsx(Rae,{...e,formType:"add"}),empAccess:"Feature Pricing"},{path:"sms-assigned-detail/new",component:e=>Ye.jsx(_ae,{...e,formType:"add"}),empAccess:"Feature Pricing"},{path:"sms-assigned-detail/update",component:e=>Ye.jsx(_ae,{...e,formType:"edit"}),empAccess:"Feature Pricing"},{path:"testimonials",component:()=>{var e;const t=Qt(),n=um(),i=Mt(),[r,s]=a.useState({}),[l,o]=a.useState(""),[d,c]=a.useState(null),[u,p]=a.useState(null),[A,h]=a.useState(1),[f,m]=a.useState([]),[v,y]=a.useState(!1),[x,b]=a.useState([]),{TextArea:w}=g,j=Tf(Gg),S=iA("UserType"),N=[{name:"Home",link:`${Qae}landing-page/home`},{name:"Testimonials",link:`${Qae}setting/testimonials`}];a.useEffect((()=>{var e,t,a;n(Gh({items:N})),I(),(null==(e=null==i?void 0:i.state)?void 0:e.Notiffy)&&(c(null==(t=null==i?void 0:i.state)?void 0:t.Notiffy.messageType),p(null==(a=null==i?void 0:i.state)?void 0:a.Notiffy.messageData))}),[]);const I=async()=>{var e,t;let i=await n(W6()).unwrap();1===(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)?m(null==(t=null==i?void 0:i.data)?void 0:t.data):m([])},F=a.useCallback((()=>{p(null),c(null)}),[]),B=async e=>{var t;let i={uniqueId:e.UniqueId,activeStatus:"A"==e.ActiveStatus?"D":"A",updatedBy:iA("UserId")},a=await n(K6(i)).unwrap();1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&(c("success"),p("A"==e.ActiveStatus?"Company In-Activated Successfully":"Company Activated Successfully"),I())},k=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(A-1)+n+1})},{title:"App Name",dataIndex:"AppName",key:"AppName",align:"left",width:"150px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),ellipsis:!0},{title:"Company Name",dataIndex:"CompName",key:"CompName",width:"200px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[l],onFilter:(e,t)=>String(t.CompName).toLowerCase().includes(e.toLowerCase())||String(t.AppName).toLowerCase().includes(e.toLowerCase()),ellipsis:!0},{title:"Customer Details",align:"center",width:"150px",render:(e,t)=>Ye.jsxs("a",{style:{fontSize:"25px"},onClick:()=>{y(!0),b(t)},children:[Ye.jsx(ty,{})," "]}),ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",width:"100px",align:"center",render:(e,n,i)=>Ye.jsxs(P,{size:"middle",children:["A"===n.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==j?void 0:j.length)||"Y"===(null==(e=null==j?void 0:j.find((e=>"Testimonials"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async(e,n)=>{"D"!==e.ActiveStatus&&t(`${Qae}setting/testimonials/update`,{state:{editstate:e}},{key:n})})(n,i):" "}})}):"",Ye.jsx("a",{children:"A"===n.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==j?void 0:j.length)||"Y"===(null==(e=null==j?void 0:j.find((e=>"Testimonials"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?B(n):" "}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==j?void 0:j.length)||"Y"===(null==(e=null==j?void 0:j.find((e=>"Testimonials"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?B(n):" "}})})]})}];return Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:d,messageData:u,onComplete:F}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Testimonials"})}),Ye.jsxs("div",{className:"searchAddDiv searchAddDivBranch",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{o(e)},onSearchChange:e=>{var t;o(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",icon:Ye.jsx(C,{}),handleSubmit:()=>{t(`${Qae}setting/testimonials/new`)},disabled:"Super Admin"!==S&&"N"===(null==(e=null==j?void 0:j.find((e=>"Testimonials"==(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:k,data:f,dataSource:f,pagination:e=>{h(e)},onChange:(e,t,n)=>{s(n)}})})]}),Ye.jsx(SP,{title:"Customer Details",width:1e3,open:v,footer:!1,buttonText:"Submit",children:Ye.jsxs("div",{style:{display:"flex",width:"100%",gap:"2rem"},children:[Ye.jsxs("div",{children:[Ye.jsxs("div",{className:"uder-details-tesimonial",style:{display:"flex"},children:[Ye.jsx("div",{children:"Name"}),Ye.jsxs("div",{children:[" ",null==x?void 0:x.CustomerName]})]}),Ye.jsxs("div",{className:"uder-details-tesimonial",children:[Ye.jsx("div",{children:"Review"}),Ye.jsx("div",{style:{marginLeft:"0rem"},children:Ye.jsx(w,{rows:2,columns:5,value:null==x?void 0:x.CustomerReview,style:{width:"100%"}})})]}),Ye.jsxs("div",{className:"uder-details-tesimonial",children:[Ye.jsx("div",{children:"videoLink"}),Ye.jsx("div",{children:null==x?void 0:x.VideoLink})]}),Ye.jsxs("div",{className:"uder-details-tesimonial",children:[Ye.jsx("div",{children:"Image"}),Ye.jsx("div",{children:Ye.jsx(Yy,{singleImage:!0,ImageLink:null==x?void 0:x.ImageUrl})})]})]}),Ye.jsx("div",{})]}),handleCancel:()=>{y(!1),b([])}})]})},empAccess:"Testimonials"},{path:"abstract",component:()=>{const e=um(),t=Mt(),[n,i]=a.useState({}),[r,s]=a.useState(""),[l,o]=a.useState(null),[d,c]=a.useState(null),[u,p]=a.useState(1),[A,h]=a.useState(1),[f,m]=a.useState(1),[v,g]=a.useState(1),[y,x]=a.useState([]),[b,w]=a.useState(!1),[j,C]=a.useState([]),[S,N]=a.useState([]),[I,F]=a.useState([]),[B,P]=a.useState([]),[k,T]=a.useState([]),[D,L]=a.useState(null),[U,_]=a.useState(null),[O,M]=a.useState(null),R=[{name:"Home",link:"/home/landing-page/home"}];a.useEffect((()=>{var n,i,a;e(Gh({items:R})),Q(),(null==(n=null==t?void 0:t.state)?void 0:n.Notiffy)&&(o(null==(i=null==t?void 0:t.state)?void 0:i.Notiffy.messageType),c(null==(a=null==t?void 0:t.state)?void 0:a.Notiffy.messageData))}),[]);const Q=async()=>{var t,n;let i=await e(wA()).unwrap();1===(null==(t=null==i?void 0:i.data)?void 0:t.statusCode)?x(null==(n=null==i?void 0:i.data)?void 0:n.data):x([])},H=a.useCallback((()=>{c(null),o(null)}),[]),V=(e,t,n)=>{i(n)},z=async(t,n)=>{var i,a,r;let s={UserId:t,AppId:n,Type:"A"};T(n);try{let t=await e(WE(s)).unwrap();1==(null==(i=null==t?void 0:t.data)?void 0:i.statusCode)?N(null==(r=null==(a=null==t?void 0:t.data)?void 0:a.data)?void 0:r.map(((e,t)=>({...e,key:t})))):N([])}catch(l){}finally{F([]),P([]),M(null),_(null)}},q=async t=>{var n,i,a;let r={UserId:D,AppId:null==t?void 0:t.AppId,CompId:null==t?void 0:t.CompId};try{let t=await e(WE(r)).unwrap();1==(null==(n=null==t?void 0:t.data)?void 0:n.statusCode)?F(null==(a=null==(i=null==t?void 0:t.data)?void 0:i.data)?void 0:a.map(((e,t)=>({...e,key:t})))):(F([]),o("error"),c("No Branch Found"))}catch(s){}},W=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(u-1)+n+1})},{title:"User Id",dataIndex:"UserId",key:"UserId",align:"left",width:"150px",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:null==t?void 0:t.UserId}),ellipsis:!0},{title:"Name",dataIndex:"UserName",key:"UserName",align:"left",width:"150px",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:(null==t?void 0:t.UserName)?null==t?void 0:t.UserName:"-"}),ellipsis:!0},{title:"Mobile",dataIndex:"MobileNo",key:"MobileNo",width:"200px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[r],onFilter:(e,t)=>String(t.MobileNo).toLowerCase().includes(e.toLowerCase())||String(t.UserName).toLowerCase().includes(e.toLowerCase())||String(t.UserId).toLowerCase().includes(e.toLowerCase()),ellipsis:!0},{title:"Email",dataIndex:"MailId",key:"MailId",align:"center",width:"200px",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:(null==t?void 0:t.MailId)?null==t?void 0:t.MailId:"-"})},{title:"Created Date",dataIndex:"CreatedDate",key:"CreatedDate",align:"center",width:"150px",ellipsis:!0,render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:(null==t?void 0:t.CreatedDate)?eA(null==t?void 0:t.CreatedDate):"-"})},{title:"View",align:"center",width:"150px",render:(t,n)=>Ye.jsx("a",{style:{fontSize:"25px"},onClick:()=>{(async t=>{var n,i,a,r,s;L(t);let l={UserId:t};try{let d=await e(WE(l)).unwrap();1==(null==(n=null==d?void 0:d.data)?void 0:n.statusCode)?(C(null==(i=null==d?void 0:d.data)?void 0:i.data),z(t,null==(s=null==(r=null==(a=null==d?void 0:d.data)?void 0:a.data)?void 0:r[0])?void 0:s.AppId),w(!0)):(C([]),c("No Application Found"),o("warning"))}catch(d){}})(null==n?void 0:n.UserId)},children:Ye.jsx(ty,{})}),ellipsis:!0}],Y=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(A-1)+n+1})},{title:"Company Id",dataIndex:"CompId",key:"CompId",align:"left",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:null==t?void 0:t.CompId}),ellipsis:!0},{title:"Company Name",dataIndex:"CompName",key:"CompName",width:"250px",align:"left",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},onClick:()=>{q(t)},children:e})},{title:"Proprietor",dataIndex:"Proprietor",key:"Proprietor",align:"left"},{title:"Mobile",dataIndex:"CompMobile",key:"CompMobile",align:"left",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:(null==t?void 0:t.CompMobile)?null==t?void 0:t.CompMobile:"-"})},{title:"Created Date",dataIndex:"CreatedDate",key:"CreatedDate",align:"center",ellipsis:!0,render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:(null==t?void 0:t.CreatedDate)?eA(null==t?void 0:t.CreatedDate):"-"})},{title:"Status",dataIndex:"ActiveStatus",key:"ActiveStatus",render:(e,t)=>Ye.jsx("a",{style:{color:"A"==(null==t?void 0:t.ActiveStatus)?"green":"Red"},children:"A"==(null==t?void 0:t.ActiveStatus)?"Active":"Deactive"})}],K=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(f-1)+n+1})},{title:"Branch Id",dataIndex:"BrId",key:"BrId",align:"left",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:null==t?void 0:t.BrId}),ellipsis:!0},{title:"Branch Name",dataIndex:"BrName",key:"BrName",width:"250px",align:"left",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Mobile",dataIndex:"CompMobile",key:"CompMobile",align:"left",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:(null==t?void 0:t.CompMobile)?null==t?void 0:t.CompMobile:"-"})},{title:"Address",dataIndex:"BrAddress1",key:"BrAddress1",align:"left",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Created Date",dataIndex:"CreatedDate",key:"CreatedDate",align:"center",width:"150px",ellipsis:!0,render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:(null==t?void 0:t.CreatedDate)?eA(null==t?void 0:t.CreatedDate):"-"})},{title:"Status",dataIndex:"ActiveStatus",key:"ActiveStatus",render:(e,t)=>Ye.jsx("a",{style:{color:"A"==(null==t?void 0:t.ActiveStatus)?"green":"Red"},children:"A"==(null==t?void 0:t.ActiveStatus)?"Active":"Deactive"})}],G=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(v-1)+n+1})},{title:"User Id",dataIndex:"UserId",key:"UserId",align:"left",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:null==t?void 0:t.UserId}),ellipsis:!0},{title:"user Name",dataIndex:"UserName",key:"UserName",width:"200px",align:"left"},{title:"Mobile",dataIndex:"MobileNo",key:"MobileNo",align:"left",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:null==t?void 0:t.MobileNo}),ellipsis:!0},{title:"Created Date",dataIndex:"CreatedDate",key:"CreatedDate",align:"center",width:"150px",ellipsis:!0,render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:(null==t?void 0:t.CreatedDate)?eA(null==t?void 0:t.CreatedDate):"-"})},{title:"Status",dataIndex:"ActiveStatus",key:"ActiveStatus",render:(e,t)=>Ye.jsx("a",{style:{color:"A"==(null==t?void 0:t.ActiveStatus)?"green":"Red"},children:"A"==(null==t?void 0:t.ActiveStatus)?"Active":"Deactive"})}];return Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:l,messageData:d,onComplete:H}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"User App Info"})}),Ye.jsx("div",{className:"searchAddDiv",children:Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{s(e)},onSearchChange:e=>{var t;s(null==(t=null==e?void 0:e.target)?void 0:t.value)}})})})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:W,data:y,dataSource:y,pagination:e=>{p(e)},onChange:V})})]}),Ye.jsx(SP,{title:"",width:1300,open:b,footer:!1,buttonText:"Submit",children:Ye.jsxs("div",{style:{display:"flex",width:"100%",height:"100%",flexDirection:"column",gap:"0.5rem"},children:[Ye.jsx("h1",{children:"Application-Specific Company, Branch, and Employee Details"}),Ye.jsx("div",{style:{display:"flex",width:"100%",overflowX:"auto",gap:"0.5rem",backgroundColor:"rgb(247, 248, 245)"},children:null==j?void 0:j.map((e=>Ye.jsx("div",{className:"appname-abstruct",style:{backgroundColor:(null==e?void 0:e.AppId)===k?"D"===(null==e?void 0:e.ActiveStatus)?"red":"rgb(155, 214, 36)":"white",border:"A"===(null==e?void 0:e.ActiveStatus)?"2px solid rgb(155, 214, 36)":"2px solid #e97e7e",color:"A"===(null==e?void 0:e.ActiveStatus)?"black":"white"},onClick:()=>{z(null==e?void 0:e.UserId,null==e?void 0:e.AppId)},children:null==e?void 0:e.ConfigName},null==e?void 0:e.ConfigName)))}),Ye.jsxs("div",{style:{display:"flex",width:"100%",gap:"2rem",flexDirection:"column"},children:[(null==S?void 0:S.length)>=0&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"reportTable-abstruct",children:Ye.jsx(E,{columns:Y,data:S,dataSource:S,pagination:{pageSize:10,onChange:(e,t)=>{h(e)}},onChange:V,rowClassName:e=>U===e.key?"selected-row":"",onRow:e=>({onClick:()=>{_(e.key),q(e)}})})})}),(null==I?void 0:I.length)>=1&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"reportTable-abstruct",children:Ye.jsx(E,{columns:K,data:I,dataSource:I,pagination:{pageSize:10,onChange:(e,t)=>{m(e)}},rowClassName:e=>O===e.key?"selected-row":"",onRow:t=>({onClick:()=>{M(t.key),(async t=>{var n,i,a,r,s,l,d;let u={UserId:D,AppId:null==t?void 0:t.AppId,CompId:null==t?void 0:t.CompId,BrId:null==t?void 0:t.BrId};try{let t=await e(YE(u)).unwrap();1==(null==(n=null==t?void 0:t.data)?void 0:n.statusCode)?(P(null==(r=null==(a=null==(i=null==t?void 0:t.data)?void 0:i.data)?void 0:a[0])?void 0:r.UserDetails),(null==(d=null==(l=null==(s=null==t?void 0:t.data)?void 0:s.data)?void 0:l[0])?void 0:d.UserDetails)<1&&(o("error"),c("No Users Found"))):(P([]),o("error"),c("No Users Found"))}catch(p){}})(t)}})})})}),(null==B?void 0:B.length)>=1&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"reportTable-abstruct",children:Ye.jsx(E,{columns:G,data:B,dataSource:B,pagination:e=>{g(e)},onChange:V})})})]})]}),handleCancel:()=>{w(!1),_(null),M(null),F([]),N([]),C([]),P([])}})]})},empAccess:"User App Info"},{path:"testimonials/new",component:e=>Ye.jsx(Vae,{...e,formType:"add"}),empAccess:"Testimonials"},{path:"testimonials/update",component:e=>Ye.jsx(Vae,{...e,formType:"edit"}),empAccess:"Testimonials"},{path:"super-admin-user-menu-access",component:()=>{var e;const t=Qt(),n=Mt(),i=um(),[r,s]=a.useState(null),[l,o]=a.useState(null),[d,c]=a.useState([]),[u,p]=a.useState(1),A=Tf(Gg),h=iA("UserType");a.useEffect((()=>{var e,t,a;i(Gh({items:Cae})),f(),(null==(e=null==n?void 0:n.state)?void 0:e.Notiffy)&&(s(null==(t=null==n?void 0:n.state)?void 0:t.Notiffy.messageType),o(null==(a=null==n?void 0:n.state)?void 0:a.Notiffy.messageData))}),[]);const f=async()=>{var e,t;let n=await i(qg()).unwrap();1===(null==(e=null==n?void 0:n.data)?void 0:e.statusCode)?c(null==(t=null==n?void 0:n.data)?void 0:t.data):c()},m=[{title:"SI.NO",key:"sno",align:"center",width:"80px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(u-1)+n+1})},{title:"Super Admin User Name",dataIndex:"UserName",key:"UserName",width:"180px",align:"center",ellipsis:!0},{title:"Edit",key:"Edit",dataIndex:"Edit",align:"center",width:"180px",render:(e,n,i)=>d.length>=1?Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"A"===n.ActiveStatus?"#1292EE":"#dadada"},onClick:()=>{var e;return 0===(null==A?void 0:A.length)||"Y"===(null==(e=null==A?void 0:A.find((e=>"Common Menu Access"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async(e,n)=>{"D"!==e.ActiveStatus&&t(`${jae}setting/super-admin-user-menu-access/update`,{state:{editstate:e}},{key:n})})(n,i):" "}})})}):null}],v=a.useCallback((()=>{o(null),s(null)}),[]);return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:r,messageData:l,onComplete:v}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Common Menu Access"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{setSearchedText(e)},onSearchChange:e=>{var t;setSearchedText(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",handleSubmit:()=>{t(`${jae}setting/super-admin-user-menu-access/new`)},color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==h&&"N"===(null==(e=null==A?void 0:A.find((e=>"Common Menu Access"==(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:m,data:d,dataSource:d,pagination:e=>{p(e)},onChange:(e,t,n)=>{setSortedInfo(n)}})," "]})]})})},empAccess:"Common Menu Access",access:"Admin"},{path:"super-admin-user-menu-access/new",component:e=>Ye.jsx(Sae,{...e,formType:"add"}),empAccess:"Common Menu Access",access:"Admin"},{path:"super-admin-user-menu-access/update",component:e=>Ye.jsx(Sae,{...e,formType:"edit"}),empAccess:"Common Menu Access",access:"Admin"},{path:"updated-version",component:()=>{var e;const t=um(),n=a.useRef(null),[i,r]=a.useState(null),[s,l]=a.useState(null),[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState(),[h,f]=a.useState(),[m,v]=a.useState(""),g=iA("UserId"),y=iA("UserType"),x=Tf(Gg),{Text:b}=ie,w=[{name:"Home",link:"/home/landing-page/home"}];a.useEffect((()=>{t(Gh({items:w})),S()}),[]);const j=[{title:"SI.NO",align:"center",key:"sno",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:n+1})},{title:"App Type",dataIndex:"AppTypeName",key:"AppTypeName",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Version",dataIndex:"VersionNo",key:"VersionNo",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Apk Link",dataIndex:"AppUrl",key:"AppUrl",align:"center",render:e=>e&&Ye.jsx(b,{copyable:{text:e,tooltips:["Click to copy","Copied!"]},style:{display:"flex",gap:"1rem",justifyContent:"center"},children:Ye.jsx("a",{href:e,children:Ye.jsx(wE,{href:e})})})}],C=a.useCallback((()=>{l(null),r(null)}),[]),S=async()=>{var e,n,i,a;let r=await t(zae()).unwrap();1==(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)&&d(null==(n=null==r?void 0:r.data)?void 0:n.data);let s=await t(Wae()).unwrap();1==(null==(i=null==s?void 0:s.data)?void 0:i.statusCode)&&A(null==(a=null==s?void 0:s.data)?void 0:a.data)},N=e=>{var t;null==(t=n.current)||t.setFieldsValue({AppUrl:e}),v(e)};return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:i,messageData:s,onComplete:C}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Updated Version"})}),Ye.jsxs("div",{className:"formDiv",children:[Ye.jsxs(I,{ref:n,className:"formDivAnt",onFinish:async e=>{var i,a,s,o,d,c;let p={AppType:null==e?void 0:e.AppId,VersionNo:null==e?void 0:e.Version,CreatedBy:g,AppUrl:e.AppUrl},h=await t(qae(p)).unwrap();if(1==(null==(i=null==h?void 0:h.data)?void 0:i.statusCode)){let e=await t(Wae()).unwrap();1==(null==(a=null==e?void 0:e.data)?void 0:a.statusCode)&&(A(null==(s=null==e?void 0:e.data)?void 0:s.data),r("success"),l(null==(o=null==e?void 0:e.data)?void 0:o.response),u(null),f(void 0),null==(d=n.current)||d.setFieldsValue({Version:void 0}),null==(c=n.current)||c.setFieldsValue({AppId:void 0}),N(null))}},children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application"}],children:Ye.jsx(Xae,{options:null==o?void 0:o.map((e=>({value:e.ConfigId,label:e.ConfigName}))),placeholder:"Application Name",label:"Application Name",className:"field-DropDown",isOnchanges:!1,onChangeFunction:e=>(async e=>{var t;u(e),null==(t=n.current)||t.setFieldsValue({AppId:e})})(e),valueData:c})}),Ye.jsx(I.Item,{name:"Version",rules:[{required:!0,message:"Please Enter Version"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx($ae,{field:"Version No",label:"Version No",fieldState:!0,fieldApi:!0,autocomplete:"off",isOnChange:null!=h,valueData:null!=h,onChange:e=>{f(e.target.value)}})}),Ye.jsx(I.Item,{name:"AppUrl",rules:[{required:!0,message:"Please Upload Apk"}],children:Ye.jsx(Gae,{AppLinkLink:m,updateAppUrl:N})})]})}),Ye.jsx("div",{className:"submitButtonVersion",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0,disabled:"Super Admin"!==y&&"N"===(null==(e=null==x?void 0:x.find((e=>"Updated Version"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess)})})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:j,data:p,dataSource:p})})]})]})})})},empAccess:"Updated Version"},{path:"version-management",component:()=>{var e;const t=um(),n=a.useRef(null),[i,r]=a.useState([]),[s,l]=a.useState([]),[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState(null),[h,f]=a.useState(null),[m,v]=a.useState(null),[g,y]=a.useState(null),[x,b]=a.useState([]),[w,j]=a.useState([]),[C,S]=a.useState(),[N,F]=a.useState(null),[B,T]=a.useState(null),E=iA("UserId"),D=iA("UserType"),L=Tf(Gg);Tf(Cb);const U="Super Admin"!==D&&"N"===(null==(e=null==L?void 0:L.find((e=>"Version Management"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),_=[{name:"Home",link:"/home/landing-page/home"}];a.useEffect((()=>{t(Gh({items:_})),Q()}),[]);const O=()=>{if((null==i?void 0:i.length)===(null==s?void 0:s.length)&&(null==s?void 0:s.length)===(null==B?void 0:B.length))r([]),l([]);else{const e=B.every((e=>null!==(null==e?void 0:e.UpdatedVersion)));e?(r([...B]),l([...B])):(d("error"),u("have to choose all version first"))}},M=[{title:()=>Ye.jsx(V,{checked:(null==i?void 0:i.length)>0&&(null==i?void 0:i.every((e=>null==s?void 0:s.some((t=>(null==t?void 0:t.UserId)===(null==e?void 0:e.UserId)))))),onChange:O}),key:"Action",dataIndex:"Action",width:"1px",align:"center",render:(e,t)=>Ye.jsx(P,{size:"middle",children:Ye.jsx(V,{checked:!!(null==s?void 0:s.some((e=>(null==e?void 0:e.UserId)===(null==t?void 0:t.UserId)))),onClick:()=>(e=>{if(null==e?void 0:e.UpdatedVersion){const t=s||[];t.some((t=>(null==t?void 0:t.UserId)===e.UserId))?l(t.filter((t=>!((null==t?void 0:t.UserId)===e.UserId)))):l([...t,e])}else d("error"),u("have to choose version first")})(t)})})},{title:"SI NO",key:"sno",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:n+1})},{title:"UserName",dataIndex:"UserName",key:"UserName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Updated Version",dataIndex:"UpdatedVersion",key:"UpdatedVersion",render:e=>Ye.jsx("a",{style:{color:"black"},children:e||" -"})},{title:"Current Version",dataIndex:"CurrentVersion",key:"CurrentVersion",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Updated Date",dataIndex:"UpdatedDate",key:"UpdatedDate",render:e=>Ye.jsxs("a",{style:{color:"black"},children:[" ",e?eA(e):" -"]})},{title:"Version",dataIndex:"CurrentVersion",key:"CurrentVersion",render:(e,t,n)=>{var i;return Ye.jsx(P,{size:"middle",children:Ye.jsx("div",{className:"versionManagementDropDown",children:Ye.jsx(_y,{options:null==t?void 0:t.Versions.map((e=>({value:e.VersionNo,label:e.VersionNo}))),placeholder:"Version",label:"version",className:"field-DropDown",onChangeFunction:e=>((e,t,n)=>{const i=[...n];i[t]={...i[t],UpdatedVersion:e},T(i)})(e,n,B),valueData:null==(i=null==B?void 0:B[n])?void 0:i.UpdatedVersion})})})}}],R=a.useCallback((()=>{u(null),d(null)}),[]),Q=async()=>{var e,n,i,a;let r=await t(zae()).unwrap();1==(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)&&A(null==(n=null==r?void 0:r.data)?void 0:n.data);let s=await t(ST()).unwrap();1==(null==(i=null==s?void 0:s.data)?void 0:i.statusCode)&&f(null==(a=null==s?void 0:s.data)?void 0:a.data)},H=async(e,i)=>{var a,r,s,l,o,d;let c=i||m;S(),y(e),null==(a=n.current)||a.setFieldsValue({CompId:e});let u=await t(MA({AppId:c,CompId:e})).unwrap();if(1===(null==(r=null==u?void 0:u.data)?void 0:r.statusCode)){const e=null==(l=null==(s=null==u?void 0:u.data)?void 0:s.data)?void 0:l.filter((e=>"D"!==e.ActiveStatus));await j(e),0===e.length&&(null==(o=null==n?void 0:n.current)||o.setFieldsValue({BranchId:null})),1===e.length&&await z(null==(d=e[0])?void 0:d.BrId)}else j([])},z=async e=>{var t;null==(t=n.current)||t.setFieldsValue({BranchId:e}),await S(e)};return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:o,messageData:c,onComplete:R}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Version Management"})}),Ye.jsxs("div",{style:{height:"auto"},className:"formDiv",children:[Ye.jsxs(I,{ref:n,className:"formDivAnt",onFinish:async e=>{var n,i,a,r;let s={appId:null==e?void 0:e.AppId,appType:null==e?void 0:e.AppDeviceId,compId:null==e?void 0:e.CompId,branchId:null==e?void 0:e.BranchId},l=await t(Yae(s)).unwrap();1==(null==(n=null==l?void 0:l.data)?void 0:n.statusCode)?(T(null==(i=null==l?void 0:l.data)?void 0:i.data),d("success"),u(null==(a=null==l?void 0:l.data)?void 0:a.response)):(T([]),d("error"),u(null==(r=null==l?void 0:l.data)?void 0:r.response))},children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Enter Application"}],children:Ye.jsx(_y,{options:null==h?void 0:h.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"Application Name",label:"Application Name",className:"field-DropDown",isOnchanges:!!m,onChangeFunction:e=>(async e=>{var i,a,r,s,l,o,d,c;y(),b([]),j([]),S(),v(e),null==(i=n.current)||i.setFieldsValue({AppId:e});let u=await t(ME({AppId:e})).unwrap();1===(null==(a=null==u?void 0:u.data)?void 0:a.statusCode)?(await b(null==(s=null==(r=null==u?void 0:u.data)?void 0:r.data)?void 0:s.filter((e=>"D"!==e.ActiveStatus))),1===(null==(o=null==(l=null==u?void 0:u.data)?void 0:l.data)?void 0:o.length)&&await H(null==(c=null==(d=null==u?void 0:u.data)?void 0:d.data[0])?void 0:c.CompId,e)):b([])})(e),valueData:m})}),Ye.jsx(I.Item,{name:"CompId",rules:[{required:!0,message:"Please Select Company"}],children:Ye.jsx(_y,{options:null==x?void 0:x.map((e=>({value:e.CompId,label:e.CompName}))),placeholder:"CompId",label:Ye.jsx("label",{className:"required",children:"Company Name"}),className:"field-DropDown",isOnchanges:!!g,onChangeFunction:H,valueData:g})}),Ye.jsx(I.Item,{name:"BranchId",rules:[{required:!0,message:"Please Select Branch"}],children:Ye.jsx(_y,{options:null==w?void 0:w.map((e=>({value:e.BrId,label:e.BrName}))),placeholder:"BranchId",label:Ye.jsx("label",{className:"required",children:"Branch Name"}),className:"field-DropDown",isOnchanges:!!C,onChangeFunction:z,valueData:C})}),Ye.jsx(I.Item,{name:"AppDeviceId",rules:[{required:!0,message:"Please Select Device"}],children:Ye.jsx(_y,{options:null==p?void 0:p.map((e=>({value:e.ConfigId,label:e.ConfigName}))),placeholder:"Device Name",label:"App Type",className:"field-DropDown",isOnchanges:!!N,onChangeFunction:e=>(async e=>{var t;F(e),null==(t=n.current)||t.setFieldsValue({AppDeviceId:e})})(e),valueData:N})})]})}),Ye.jsx("div",{className:"submitButton1",children:Ye.jsx(Ry,{buttonText:"Search",color:"901D77",icon:Ye.jsx(WO,{}),htmlType:!0})})]}),(null==B?void 0:B.length)>0&&Ye.jsx("div",{className:"versionMangement",children:Ye.jsx(Vb,{columns:M,data:B,dataSource:B})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0,handleSubmit:()=>{U||(async()=>{var e,i,a;if((null==s?void 0:s.length)>0){let r=null==s?void 0:s.map((e=>({AppId:m,CompId:null==e?void 0:e.CompId,BranchId:null==e?void 0:e.BranchId,AppType:null==e?void 0:e.AppType,UpdatedVersion:null==e?void 0:e.UpdatedVersion,CurrentVersion:null==e?void 0:e.CurrentVersion,UserId:null==e?void 0:e.UserId}))),o={AppVersionUpdateDtl:r,UpdatedBy:E},c=await t(Kae(o)).unwrap();1==(null==(e=null==c?void 0:c.data)?void 0:e.statusCode)&&(T(),v(),F(),l([]),y(),b([]),j([]),S(),await(null==(i=n.current)?void 0:i.resetFields()),d("success"),u(null==(a=null==c?void 0:c.data)?void 0:a.response))}else d("error"),u("please select atleast one data")})()},disabled:U})})]})]})})})},empAccess:"Version Management"},{path:"purchaseinfo",component:()=>{var e,t,n,i,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,S,N,F,B,T,U,_,O,M;const R="/home/",Q=um(),H=a.useRef(null),V=a.useRef(null),z=a.useRef(null),q=a.useRef(null),W=Tf(Gg),Y=Tf(Z_),K=Tf(Aw),G=Tf(hw),[$,X]=a.useState(null),[J,Z]=a.useState(null),[ee,te]=a.useState(1),[ne,ie]=a.useState(""),[ae,re]=a.useState([]),[se,le]=a.useState([]),[oe,de]=a.useState(null),[ce,ue]=a.useState("A"),[pe,Ae]=a.useState(!1),[he,fe]=a.useState(null),[me,ve]=a.useState(!1),[ge,ye]=a.useState(),[xe,be]=a.useState("PS"),[we,je]=a.useState("NP"),[Ce,Se]=a.useState(),[Ne,Ie]=a.useState(),[Fe,Be]=a.useState(),[Pe,ke]=a.useState(),[Te,Ee]=a.useState(),[De,Le]=a.useState(!1),[Ue,_e]=a.useState([]),[Oe,Me]=a.useState([]),[Re,Qe]=a.useState(),[He,Ve]=a.useState([]),[ze,qe]=a.useState(null),[We,Ke]=a.useState([]),[Ge,$e]=a.useState([]),[Xe,Je]=a.useState([]),Ze=iA("UserId"),[et,tt]=a.useState(!1),[nt,it]=a.useState([]),[at,rt]=a.useState([]),[st,lt]=a.useState(null),[ot,dt]=a.useState(null),ct=iA("UserType"),ut=[{name:"Home",link:`${R}landing-page/home`},{name:"PurchaseInfo",link:`${R}setting/purchaseinfo`}];a.useEffect((()=>{Q(Gh({items:ut})),gt(),vt("A")}),[]),a.useEffect((()=>{let e=null==He?void 0:He.filter((e=>e.AppId===ze));Ke(e);const t=null==Ue?void 0:Ue.filter((e=>e.FeatName==Re));$e(t)}),[He,Ue,Re,ze]);const pt=a.useCallback((()=>{Z(null),X(null)}),[]),At=[{title:"SI.NO",key:"sno",align:"center",width:"50px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(ee-1)+n+1})},{title:"Application",dataIndex:"AppName",key:"AppName",width:"150px",align:"left",filteredValue:[ne],render:e=>Ye.jsx("a",{className:"tableText",children:e}),onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.UserName).toLowerCase().includes(e.toLowerCase())||String(t.MobileNo).toLowerCase().includes(e.toLowerCase())},{title:"Mobile No",dataIndex:"MobileNo",key:"MobileNo",align:"left",width:"100px",filteredValue:[ne]},{title:"Name",dataIndex:"UserName",key:"UserName",align:"center",width:"50px",filteredValue:[ne]},{title:"Purchese Date",dataIndex:"PurDate",key:"PurDate",align:"right",width:"200px",render:e=>eA(e)},{title:"Valid From",dataIndex:"ValidityStart",key:"ValidityStart",align:"right",width:"200px",render:e=>eA(e)},{title:"Valid To",dataIndex:"ValidityEnd",key:"ValidityEnd",align:"right",width:"200px",render:e=>eA(e)},{title:"Plan",key:"PricingName",dataIndex:"PricingName",width:"150px",align:"center",render:(e,t)=>`${e} / ${365===t.NoOfDays?"Year":"Month"}`},{title:"Price",key:"Price",dataIndex:"Price",width:"50px",align:"center"},{title:"Remaining Days",key:"RemainingDays",dataIndex:"RemainingDays",width:"200px",align:"center"},{title:"Details",key:"AppDetails",dataIndex:"AppDetails",width:"50px",align:"center",render:(e,t)=>Ye.jsx(ty,{style:{color:"#1292EE",fontSize:"25px",cursor:"pointer"},onClick:()=>(e=>{fe(e),Ae(!0)})(t)})},{title:"Status",key:"Status",dataIndex:"Status",width:"100px",align:"center",render:e=>Ye.jsx("span",{style:{color:"Active"===e?"rgb(0, 126, 28)":"red"},children:e})},{title:"Extend",key:"Status",dataIndex:"Status",width:"100px",align:"center",render:(e,t)=>Ye.jsx("span",{style:{color:"#1292ee",cursor:"pointer",textDecoration:"underline",fontFamily:"Poppins",fontSize:"14px"},children:"Y"===(null==t?void 0:t.LastStatus)?Ye.jsx("div",{onClick:()=>{var n;const i="Y"===(null==(n=null==W?void 0:W.find((e=>"Purchase Info"===(null==e?void 0:e.ConfigName))))?void 0:n.UpdateAccess);(i||"Super Admin"===ct)&&Ft(t,e,null==t?void 0:t.AppName)},children:"Renewal"}):null})}],ht=[{title:"SI.NO",key:"sno",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:n+1})},{title:"Feature Name",dataIndex:"FeatName",key:"FeatName",align:"left"},{title:"Feature Count",dataIndex:"featcount",key:"featcount",align:"center"},{title:"Price",dataIndex:"NetPrice",key:"Amount",align:"center"},{title:"Net Amount",dataIndex:"OveralAmount",key:"OveralAmount",align:"right"},{title:"Action",dataIndex:"Action",key:"Action",align:"right",render:(e,t,n)=>(null==Xe?void 0:Xe.length)>=1?Ye.jsxs(P,{size:"middle",children:[Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>Ut(t)})}),Ye.jsx("a",{children:Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>_t(t)})})]}):null}],ft=e=>{te(e)},mt="All"===ce?null==ae?void 0:ae.filter((e=>!oe||("Free"===oe?"Free"===e.PricingName:e.Status===oe))):ae,vt=async e=>{var t;let n=await Q(rre("All"==e?"":e)).unwrap();re(null==(t=null==n?void 0:n.data)?void 0:t.data)},gt=async()=>{var e,t;let n=await Q(are()).unwrap();le(null==(t=null==(e=null==n?void 0:n.data)?void 0:e.data)?void 0:t[0])},yt=[{title:"SI.NO",key:"sno",align:"center",width:"50px",render:(e,t,n)=>Ye.jsx("span",{style:{color:"black"},children:n+1})},{title:"Id",dataIndex:"CompId",key:"CompId"},{title:"Name",dataIndex:"CompName",key:"CompName"},{title:"Short Name",dataIndex:"CompShName",key:"CompShName"},{title:"Mobile No",dataIndex:"CompMobile",key:"CompMobile"},{title:"Proprietor",dataIndex:"Proprietor",key:"Proprietor"},{title:"Created Date",dataIndex:"CreatedDate",key:"CreatedDate"}],xt=[{title:"SI.NO",key:"sno",align:"center",width:"50px",render:(e,t,n)=>Ye.jsx("span",{style:{color:"black"},children:n+1})},{title:"Id",dataIndex:"BrId",key:"BrId"},{title:"Name",dataIndex:"BrName",key:"BrName"},{title:"Mobile No",dataIndex:"BrMobile",key:"BrMobile"},{title:"Address",dataIndex:"BranchAddress",key:"BranchAddress"},{title:"Created Date",dataIndex:"CreatedDate",key:"CreatedDate"}],bt=[{title:"SI.NO",key:"sno",align:"center",width:"50px",render:(e,t,n)=>Ye.jsx("span",{style:{color:"black"},children:n+1})},{title:"Id",dataIndex:"UserId",key:"UserId"},{title:"Name",dataIndex:"UserName",key:"UserName"},{title:"Mobile No",dataIndex:"MobileNo",key:"MobileNo"},{title:"Mail Id",dataIndex:"MailId",key:"MailId"},{title:"Created Date",dataIndex:"CreatedDate",key:"CreatedDate"}],wt=[{title:"SI.NO",key:"sno",align:"center",width:"50px",render:(e,t,n)=>Ye.jsx("span",{style:{color:"black"},children:n+1})},{title:"Name",dataIndex:"FeatAddonName",key:"FeatAddonName"},{title:"Count",dataIndex:"Count",key:"Count"},{title:"Price",dataIndex:"Price",key:"Price"},{title:"NetPrice",dataIndex:"NetPrice",key:"NetPrice"},{title:"PurDate",dataIndex:"PurDate",key:"PurDate"}],jt=(null==(n=null==(t=null==(e=null==he?void 0:he.AppDetails)?void 0:e[0])?void 0:t.CompanyDetails)?void 0:n.map(((e,t)=>({key:t,CompId:null==e?void 0:e.CompId,CompName:null==e?void 0:e.CompName,CompShName:null==e?void 0:e.CompShName,CompMobile:null==e?void 0:e.CompMobile,Proprietor:null==e?void 0:e.Proprietor,CreatedDate:eA(null==e?void 0:e.CreatedDate)}))))||[],Ct=(null==(o=null==(l=null==(s=null==(r=null==(i=null==he?void 0:he.AppDetails)?void 0:i[0])?void 0:r.CompanyDetails)?void 0:s[0])?void 0:l.BranchDetails)?void 0:o.map(((e,t)=>({key:t,BrId:null==e?void 0:e.BrId,BrName:null==e?void 0:e.BrName,BrMobile:null==e?void 0:e.BrMobile,BranchAddress:null==e?void 0:e.Address1,CreatedDate:eA(null==e?void 0:e.CreatedDate)}))))||[],St=(null==(f=null==(h=null==(A=null==(p=null==(u=null==(c=null==(d=null==he?void 0:he.AppDetails)?void 0:d[0])?void 0:c.CompanyDetails)?void 0:u[0])?void 0:p.BranchDetails[0])?void 0:A.UserDetails)?void 0:h.filter((e=>"Employee"===(null==e?void 0:e.UserTypeName))))?void 0:f.map(((e,t)=>({key:t,UserId:null==e?void 0:e.UserId,UserName:null==e?void 0:e.UserName,MobileNo:null==e?void 0:e.MobileNo,CompName:null==e?void 0:e.CompName,BrName:null==e?void 0:e.BrName,MailId:null==e?void 0:e.MailId,CreatedDate:eA(null==e?void 0:e.CreatedDate)}))))||[],Nt=(null==(m=null==he?void 0:he.FeatAddonDetails)?void 0:m.map(((e,t)=>({key:t,FeatAddonName:null==e?void 0:e.FeatAddonName,Count:null==e?void 0:e.Count,Price:null==e?void 0:e.Price,NetPrice:null==e?void 0:e.NetPrice,PurDate:eA(null==e?void 0:e.PurDate)}))))||[],It=a.useRef(null);a.useEffect((()=>{function e(e){It.current&&!It.current.contains(e.target)&&Ae(!1)}return pe&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[pe]);const Ft=async(e,t)=>{var n,i,a,r,s,l,o,d,c;let u=null==e?void 0:e.AppName,p=null==e?void 0:e.UserId,A=null==e?void 0:e.AppId;qe(A),ye(e),ve(!0),be("PS"),je("Active"!=t?"NP":"EP"),ke();let h=await Q(nk({typeName:"Manual PaymentType"})).unwrap();Se(null==(n=null==h?void 0:h.data)?void 0:n.data),await Q(r_(u)).unwrap();let f=await Q(lw({UserId:p,AppId:A})).unwrap(),m=null==(a=null==(i=null==f?void 0:f.data)?void 0:i.data)?void 0:a.map((e=>({...e,Sadmin:"Y"})));Ee(m),Q(uw(!0)),Q(pw(m)),await Q(Bg({UserId:p})).unwrap(),await Q(n_()).unwrap();let v=await Q(Bg({UserId:p})).unwrap();Ve(null==(r=null==v?void 0:v.data)?void 0:r.data);let g=await Q(aT(A)),y=null==(c=null==(d=null==(o=null==(l=null==(s=null==g?void 0:g.payload)?void 0:s.data)?void 0:l.data)?void 0:o[0])?void 0:d.FeatDetails)?void 0:c.filter((e=>"D"!=e.ActiveStatus));_e(y)},Bt=e=>{var t;je(e),null==(t=null==H?void 0:H.current)||t.resetFields(),Je([]),Ie(),Qe()},Pt=e=>{var t;Ie(e),null==(t=null==H?void 0:H.current)||t.setFieldsValue({Manualpayment:e})},kt=e=>{var t,n,i;ke(null==(t=null==e?void 0:e.target)?void 0:t.value),null==(i=null==H?void 0:H.current)||i.setFieldsValue({Reason:null==(n=null==e?void 0:e.target)?void 0:n.value})},Tt=()=>{ve(!1),Qe(),Je([]),Ie(),tt(!1),lt(null),dt(null),_e([]),Le(!1),rt([])},Et=()=>{Le(!De)},Dt=e=>{var t,n,i;Qe(e),null==(t=null==z?void 0:z.current)||t.setFieldsValue({FeaturesName:e,FeaturesAmount:null}),null==(n=null==q?void 0:q.current)||n.setFieldsValue({FeaturesName:e,FeaturesAmount:null}),null==(i=null==H?void 0:H.current)||i.setFieldsValue({FeaturesName:e,FeaturesAmount:null}),Me()},Lt=(e,t,n,i,a,r)=>{var s;const l=e*i,o=e*r;null==(s=null==H?void 0:H.current)||s.setFieldsValue({[t]:e,[n]:l.toString(),[a]:o.toString()}),setTimeout((()=>{Me((n=>({...n,[t]:e})))}),0)},Ut=async e=>{var t,n,i,a,r,s,l,o,d,c;Qe(e.FeatName),null==(t=null==H?void 0:H.current)||t.setFieldsValue({FeaturesName:e.FeatName}),null==(n=null==H?void 0:H.current)||n.setFieldsValue({FeaturesAmount:e.featcount}),null==(i=null==z?void 0:z.current)||i.setFieldsValue({FeaturesName:e.FeatName}),null==(a=null==z?void 0:z.current)||a.setFieldsValue({FeaturesAmount:e.featcount}),null==(r=null==q?void 0:q.current)||r.setFieldsValue({FeaturesName:e.FeatName}),null==(s=null==q?void 0:q.current)||s.setFieldsValue({FeaturesAmount:e.featcount}),Lt(e.featcount,"FeaturesAmount",(null==(l=null==Ge?void 0:Ge[0])?void 0:l.FeatName)+"Amt",null==(o=null==Ge?void 0:Ge[0])?void 0:o.NetPrice,(null==(d=null==Ge?void 0:Ge[0])?void 0:d.FeatName)+"Taxdetails",null==(c=null==Ge?void 0:Ge[0])?void 0:c.TaxAmount),Me(e.OveralAmount)},_t=async e=>{let t=null==Xe?void 0:Xe.filter((t=>t.UniqueId!==e.UniqueId));Je(t)},Ot=e=>{var t,n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S,N,I,F,B,P,k,T;const E=null==Ue?void 0:Ue.filter((t=>t.FeatName==(null==e?void 0:e.FeaturesName)));let D=Xe.filter((t=>t.FeatName!==(null==e?void 0:e.FeaturesName))),L=[{AppName:null==(t=null==Ge?void 0:Ge[0])?void 0:t.AppName,FeatName:null==(n=null==Ge?void 0:Ge[0])?void 0:n.FeatName,TaxAmount:(null==(i=null==We?void 0:We[0])?void 0:i.NoOfDays)>31?null==(a=null==Ge?void 0:Ge[0])?void 0:a.YearlyTaxAmount:null==(r=null==Ge?void 0:Ge[0])?void 0:r.MonthlyTaxAmount,Price:(null==(s=null==We?void 0:We[0])?void 0:s.NoOfDays)>31?null==(l=null==Ge?void 0:Ge[0])?void 0:l.YearlyPrice:null==(o=null==Ge?void 0:Ge[0])?void 0:o.MonthlyPrice,NetPrice:(null==(d=null==We?void 0:We[0])?void 0:d.NoOfDays)>31?null==(c=null==Ge?void 0:Ge[0])?void 0:c.YearlyNetPrice:null==(u=null==Ge?void 0:Ge[0])?void 0:u.MonthlyNetPrice,featcount:null==e?void 0:e.FeaturesAmount,OveralAmount:(null==Oe?void 0:Oe.FeaturesAmount)*((null==(p=null==We?void 0:We[0])?void 0:p.NoOfDays)>31?null==(A=null==Ge?void 0:Ge[0])?void 0:A.YearlyNetPrice:null==(h=null==Ge?void 0:Ge[0])?void 0:h.MonthlyNetPrice),TaxId:null==(f=null==Ge?void 0:Ge[0])?void 0:f.TaxId,UniqueId:null==(m=null==E?void 0:E[0])?void 0:m.UniqueId}];"FA"==we&&(null==ge?void 0:ge.RemainingDays)>0?(null==Xe?void 0:Xe.some((t=>t.FeatName===(null==e?void 0:e.FeaturesName))))?(Je([...D,...L]),Qe(),null==(v=null==H?void 0:H.current)||v.resetFields(),null==(g=null==q?void 0:q.current)||g.resetFields(),null==(y=null==V?void 0:V.current)||y.resetFields(),null==(x=null==z?void 0:z.current)||x.resetFields()):(Je([...Xe,...L]),Qe(),null==(b=null==H?void 0:H.current)||b.resetFields(),null==(w=null==q?void 0:q.current)||w.resetFields(),null==(j=null==V?void 0:V.current)||j.resetFields(),null==(C=null==z?void 0:z.current)||C.resetFields()):"NP"==we?(null==Xe?void 0:Xe.some((t=>t.FeatName===(null==e?void 0:e.FeaturesName))))?(Je([...D,...L]),Qe(),null==(S=null==H?void 0:H.current)||S.resetFields(),null==(N=null==q?void 0:q.current)||N.resetFields(),null==(I=null==V?void 0:V.current)||I.resetFields(),null==(F=null==z?void 0:z.current)||F.resetFields()):(Je([...Xe,...L]),Qe(),null==(B=null==H?void 0:H.current)||B.resetFields(),null==(P=null==q?void 0:q.current)||P.resetFields(),null==(k=null==V?void 0:V.current)||k.resetFields(),null==(T=null==z?void 0:z.current)||T.resetFields()):(X("error"),Z("Please Have Active Plans"))},Mt=async()=>{var e,t,n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C;if("NP"==we)if("PS"==xe)if(0==Xe.length&&Ne){let a={UserId:null==ge?void 0:ge.UserId,AppId:null==ge?void 0:ge.AppId,PricingId:null==ge?void 0:ge.PricingId,CompId:null==ge?void 0:ge.CompId,PaymentStatus:"S",LicenseStatus:"A",Price:null==ge?void 0:ge.Price,TaxId:null==ge?void 0:ge.TaxId,TaxAmount:null==ge?void 0:ge.TaxAmount,NetPrice:null==ge?void 0:ge.NetPrice,ValidityStart:null==ge?void 0:ge.ValidityStart,ValidityEnd:null==ge?void 0:ge.ValidityEnd,NoofDays:null==ge?void 0:ge.NoOfDays,UniqueId:null==ge?void 0:ge.UniqueId,MailId:null==ge?void 0:ge.MailId,Gst:null==ge?void 0:ge.Gst,BillingName:null==ge?void 0:ge.BillingName,MobileNo:null==ge?void 0:ge.MobileNo,Type:xe,Reason:Pe||"",PaymentType:Ne||"",CreatedBy:null==ge?void 0:ge.UserId},r=await Q(ik(a)).unwrap();1==(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)?(null==(t=null==H?void 0:H.current)||t.resetFields(),Ie(),ke(),ve(!1),Je([]),Q(uw(!1)),Le(!1),X("success"),Z(null==(n=null==r?void 0:r.data)?void 0:n.response),vt(ce)):(X("error"),Z(null==(i=null==r?void 0:r.data)?void 0:i.response))}else if(Xe.length>0&&Ne)if(Xe.length>0){let e=null==He?void 0:He.filter((e=>{var t;return(null==e?void 0:e.AppName)==(null==(t=null==Xe?void 0:Xe[0])?void 0:t.AppName)})),t={UserId:null==ge?void 0:ge.UserId,AppId:null==ge?void 0:ge.AppId,PricingId:null==ge?void 0:ge.PricingId,CompId:null==ge?void 0:ge.CompId,PaymentStatus:"S",LicenseStatus:"A",ValidityStart:null==ge?void 0:ge.ValidityStart,ValidityEnd:null==ge?void 0:ge.ValidityEnd,NoofDays:null==ge?void 0:ge.NoOfDays,UniqueId:null==ge?void 0:ge.UniqueId,MailId:null==ge?void 0:ge.MailId,Gst:null==ge?void 0:ge.Gst,BillingName:null==ge?void 0:ge.BillingName,MobileNo:null==ge?void 0:ge.MobileNo,CreatedBy:null==ge?void 0:ge.UserId,BookingId:null==(a=null==e?void 0:e[0])?void 0:a.UniqueId,Price:null==Xe?void 0:Xe.reduce(((e,t)=>e+t.Price*t.featcount),0),TaxId:null==(r=null==Xe?void 0:Xe[0])?void 0:r.TaxId,TaxAmount:null==Xe?void 0:Xe.reduce(((e,t)=>e+t.TaxAmount*t.featcount),0),NetPrice:(null==Xe?void 0:Xe.reduce(((e,t)=>e+t.OveralAmount),0))+(null==ge?void 0:ge.NetPrice),OrderId:0,Type:xe,Reason:Pe||"",PaymentType:Ne||"",Details:null==Xe?void 0:Xe.map((e=>({FeatAddonId:null==e?void 0:e.UniqueId,Count:null==e?void 0:e.featcount,Price:(null==e?void 0:e.Price)*(null==e?void 0:e.featcount),NetPrice:(null==e?void 0:e.NetPrice)*(null==e?void 0:e.featcount),TaxAmount:(null==e?void 0:e.TaxAmount)*(null==e?void 0:e.featcount),TaxId:null==e?void 0:e.TaxId})))},n=await Q(ik(t)).unwrap();1==(null==(s=null==n?void 0:n.data)?void 0:s.statusCode)?(null==(l=null==H?void 0:H.current)||l.resetFields(),Ie(),ke(),Je([]),ve(!1),Le(!1),Q(uw(!1)),X("success"),Z(null==(o=null==n?void 0:n.data)?void 0:o.response),vt(ce)):(X("error"),Z(null==(d=null==n?void 0:n.data)?void 0:d.response)),Me(),Le(!1)}else X("error"),Z("Select Feature");else X("error"),Z("Please Choose Payment Type");else if(Fe){let e={UserId:null==ge?void 0:ge.UserId,AppId:null==ge?void 0:ge.AppId,PricingId:null==ge?void 0:ge.PricingId,CompId:null==ge?void 0:ge.CompId,PaymentStatus:"S",LicenseStatus:"A",Price:null==ge?void 0:ge.Price,TaxId:null==ge?void 0:ge.TaxId,TaxAmount:null==ge?void 0:ge.TaxAmount,NetPrice:null==ge?void 0:ge.NetPrice,ValidityStart:null==ge?void 0:ge.ValidityStart,ValidityEnd:null==ge?void 0:ge.ValidityEnd,NoofDays:Fe||(null==ge?void 0:ge.NoOfDays),UniqueId:null==ge?void 0:ge.UniqueId,MailId:null==ge?void 0:ge.MailId,Gst:null==ge?void 0:ge.Gst,BillingName:null==ge?void 0:ge.BillingName,MobileNo:null==ge?void 0:ge.MobileNo,Type:xe,Reason:Pe||"",PaymentType:Ne||"",CreatedBy:null==ge?void 0:ge.UserId},t=await Q(ik(e)).unwrap();1==(null==(c=null==t?void 0:t.data)?void 0:c.statusCode)?(null==(u=null==H?void 0:H.current)||u.resetFields(),Ie(),ke(),be("PS"),ve(!1),Q(uw(!1)),X("success"),Z(null==(p=null==t?void 0:t.data)?void 0:p.response),vt(ce)):(X("error"),Z(null==(A=null==t?void 0:t.data)?void 0:A.response))}else X("error"),Z("Please Enter No of Days");else if("EP"==we)if(Ne){let e={UserId:null==ge?void 0:ge.UserId,AppId:null==ge?void 0:ge.AppId,PricingId:null==G?void 0:G.PricingId,CompId:null==ge?void 0:ge.CompId,PaymentStatus:"S",LicenseStatus:"A",Price:null==G?void 0:G.Price,TaxId:null==ge?void 0:ge.TaxId,TaxAmount:null==ge?void 0:ge.TaxAmount,NetPrice:null==G?void 0:G.NetPrice,ValidityStart:null==ge?void 0:ge.ValidityStart,ValidityEnd:null==ge?void 0:ge.ValidityEnd,NoofDays:null==G?void 0:G.NoOfDays,UniqueId:null==ge?void 0:ge.UniqueId,MailId:null==ge?void 0:ge.MailId,Gst:null==ge?void 0:ge.Gst,BillingName:null==ge?void 0:ge.BillingName,MobileNo:null==ge?void 0:ge.MobileNo,Type:xe,Reason:Pe||"",PaymentType:Ne||"",CreatedBy:null==ge?void 0:ge.UserId},t=await Q(ik(e)).unwrap();1==(null==(h=null==t?void 0:t.data)?void 0:h.statusCode)?(null==(f=null==H?void 0:H.current)||f.resetFields(),Ie(),ke(),ve(!1),Je([]),Q(uw(!1)),Le(!1),X("success"),Z(null==(m=null==t?void 0:t.data)?void 0:m.response),vt(ce)):(X("error"),Z(null==(v=null==t?void 0:t.data)?void 0:v.response))}else X("error"),Z("Please Choose Payment Type");else if(Ne)if(Xe.length>0){let e=null==He?void 0:He.filter((e=>{var t;return(null==e?void 0:e.AppName)==(null==(t=null==Xe?void 0:Xe[0])?void 0:t.AppName)})),t={BookingId:null==(g=null==e?void 0:e[0])?void 0:g.UniqueId,Price:null==Xe?void 0:Xe.reduce(((e,t)=>e+t.Price*t.featcount),0),TaxId:null==(y=null==Xe?void 0:Xe[0])?void 0:y.TaxId,TaxAmount:null==Xe?void 0:Xe.reduce(((e,t)=>e+t.TaxAmount*t.featcount),0),NetPrice:null==Xe?void 0:Xe.reduce(((e,t)=>e+t.OveralAmount),0),OrderId:0,Type:"I",PaymentStatus:"S",Reason:Pe||"",PaymentType:Ne||"",Details:null==Xe?void 0:Xe.map((e=>({FeatAddonId:null==e?void 0:e.UniqueId,Count:null==e?void 0:e.featcount,Price:(null==e?void 0:e.Price)*(null==e?void 0:e.featcount),NetPrice:(null==e?void 0:e.NetPrice)*(null==e?void 0:e.featcount),TaxAmount:(null==e?void 0:e.TaxAmount)*(null==e?void 0:e.featcount),TaxId:null==e?void 0:e.TaxId}))),CreatedBy:Ze},n=await Q(BT(t)).unwrap();1==(null==(x=null==n?void 0:n.data)?void 0:x.statusCode)?(null==(b=null==H?void 0:H.current)||b.resetFields(),Ie(),ke(),ve(!1),Je([]),Q(uw(!1)),X("success"),Z(null==(w=null==n?void 0:n.data)?void 0:w.response),vt(ce)):(X("error"),Z(null==(j=null==n?void 0:n.data)?void 0:j.response)),null==(C=null==H?void 0:H.current)||C.resetFields(),Me()}else X("error"),Z("Select Feature");else X("error"),Z("Please Choose Payment Type")};return Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Purchase Info"})}),Ye.jsxs("div",{className:"searchAddDiv1 ",style:{gap:"All"==ce?"5px":"10px"},children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearchChange:e=>{const{value:t}=e.target;ie(t)}})}),Ye.jsx("div",{className:"purchaseInfoBtn",children:[{value:"A",label:`Active (${null==se?void 0:se.ActiveCount})`,className:"active-btn"},{value:"E",label:`Expired (${null==se?void 0:se.ExpiredCount})`,className:"expired-btn"},{value:"F",label:`Free (${null==se?void 0:se.FreeCount})`,className:"free-btn"},{value:"All",label:`All (${(null==se?void 0:se.ActiveCount)+(null==se?void 0:se.ExpiredCount)+(null==se?void 0:se.FreeCount)||0})`,className:"all-btn"}].map((e=>Ye.jsx("button",{onClick:()=>{return t=e.value,vt(t),ue(t),void ft(1);var t},className:`status-button ${ce===e.value?e.className:"inactive-btn"}`,children:e.label},e.value)))}),Ye.jsx("div",{className:"purchaseInfoDD",children:"All"==ce&&Ye.jsx(_y,{options:[{value:"Active",label:"Active"},{value:"Expired",label:"Expired"},{value:"Free",label:"Free"}],placeholder:"Status",label:"All",className:"field-DropDown",valueData:oe,onChangeFunction:e=>(async e=>{var t;let n=e,i=await Q(rre("Active"==n?"A":"Expired"==n?"E":"Free"==n?"F":"","")).unwrap();re(null==(t=null==i?void 0:i.data)?void 0:t.data),vt(e),de(e),ft(1)})(e)})}),Ye.jsx("div",{className:"All"==ce&&"purchase-div",children:Ye.jsx(Ry,{buttonText:"Add Purchase",handleSubmit:()=>{var e;const t="N"!==(null==(e=null==W?void 0:W.find((e=>"Purchase Info"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess);(t||"Super Admin"===ct)&&(async()=>{var e,t,n,i,a,r,s,l,o,d;tt(!0),lt(null),dt(null),null==(e=null==V?void 0:V.current)||e.resetFields(),null==(t=null==z?void 0:z.current)||t.resetFields(),Q(N_([]));let c=await Q(_T("AF")).unwrap();1===(null==(n=null==c?void 0:c.data)?void 0:n.statusCode)?it(null==(i=null==c?void 0:c.data)?void 0:i.data):($("error"),Z(null==(a=null==c?void 0:c.data)?void 0:a.response));let u=await Q(Ib()).unwrap();if(1===(null==(r=null==c?void 0:c.data)?void 0:r.statusCode)){let e=null==(l=null==(s=null==u?void 0:u.data)?void 0:s.data)?void 0:l.filter((e=>"A"===e.ActiveStatus));rt(e)}else $("error"),Z(null==(o=null==c?void 0:c.data)?void 0:o.response);let p=await Q(nk({typeName:"Manual PaymentType"})).unwrap();Se(null==(d=null==p?void 0:p.data)?void 0:d.data),Q(uw(!0)),lt(null),dt(null)})()},color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==ct&&"N"==(null==(v=null==W?void 0:W.find((e=>"Purchase Info"==(null==e?void 0:e.ConfigName))))?void 0:v.AddAccess),children:"OPEN"})})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(E,{columns:At,dataSource:mt||[],data:mt||[],pagination:{current:ee,onChange:ft,pageSize:10,showSizeChanger:!1,showQuickJumper:!1}})," "]})]}),Ye.jsx(SP,{title:"DETAILS",width:1e3,maskClosable:!0,open:pe,handleCancel:()=>Ae(!1),children:he?Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{ref:It,className:"purchase-info-model",children:[Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx("h1",{children:"Company"}),Ye.jsx(Vb,{columns:yt,dataSource:jt,data:jt,pagination:!1,className:"tablereport"})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx("h1",{children:"Branch"}),Ye.jsx(Vb,{columns:xt,dataSource:Ct,data:Ct})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx("h1",{children:"User"}),Ye.jsx(Vb,{columns:bt,dataSource:St,data:St,pagination:!1})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx("h1",{children:"Feature Addons"}),Ye.jsx(Vb,{columns:wt,dataSource:Nt,data:Nt,pagination:!1})]})]})}):Ye.jsx("p",{children:"Loading details..."})}),Ye.jsxs(SP,{className:"ModalOFpurchaseInfo",title:"Purchase / Extend",width:1100,maskClosable:!0,open:me,handleCancel:()=>Tt(),children:[Ye.jsx(Qy,{messageType:$,messageData:J,onComplete:pt}),Ye.jsxs("div",{className:"PurchaseExtendModal",children:[Ye.jsxs("div",{style:{display:"flex",gap:"6px",alignItems:"center",fontSize:"14px",fontFamily:"Gilroy",fontWeight:500},children:[Ye.jsx(Ov,{}),Ye.jsx("p",{children:(null==ge?void 0:ge.UserName)||(null==ge?void 0:ge.MobileNo)})]}),Ye.jsxs("div",{className:"appnameAndPlan",children:[Ye.jsxs("p",{children:[" ",Ye.jsx(EO,{size:20})," ",null==ge?void 0:ge.AppName]}),Ye.jsxs("p",{children:["( ",null==ge?void 0:ge.PricingName," /"," ",365===(null==ge?void 0:ge.NoOfDays)?"Yearly":"Monthly"," )"]})]}),Ye.jsxs("div",{className:"StyleType-Container",children:["Free"!=(null==ge?void 0:ge.PricingName)&&"Active"!=(null==ge?void 0:ge.Status)&&Ye.jsx("div",{style:"NP"==we?{backgroundColor:"#fff",padding:"2px 12px",borderRadius:"4px",opacity:"1"}:{opacity:"0.6",boxShadow:"none"},onClick:()=>{Bt("NP")},children:Ye.jsx("p",{children:"Plan"})}),Ye.jsx("div",{style:"EP"==we?{backgroundColor:"#fff",padding:"2px 12px",borderRadius:"4px",opacity:"1"}:{opacity:"0.6",boxShadow:"none"},onClick:()=>{Bt("EP")},children:Ye.jsx("p",{children:"Change Plan"})}),"Expired"!=(null==ge?void 0:ge.Status)&&"Free"!=(null==ge?void 0:ge.PricingName)&&Ye.jsx("div",{style:"FA"==we?{backgroundColor:"#fff",padding:"2px 12px",borderRadius:"4px",opacity:"1"}:{opacity:"0.6",boxShadow:"none"},onClick:()=>{Bt("FA")},children:Ye.jsx("p",{children:"Features Addon"})})]}),"NP"==we&&"Free"!=(null==ge?void 0:ge.PricingName)&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(fk,{content:[{value:"PS",label:"Payment Status"},{value:"EX",label:"Extend Plan"}],defaultSelect:xe,value:xe,onSelectFuntion:e=>(e=>{be(e),Ie()})(e)},xe+"_radio"),"PS"==xe&&Ye.jsx("div",{onClick:()=>Et(),style:{color:"rgb(18, 146, 238)",borderBottom:"2px solid rgb(18, 146, 238)",width:"max-content",lineHeight:"18px",fontSize:"16px",fontWeight:"500",cursor:"pointer"},children:"Add Feature"}),Ye.jsxs("div",{className:"Planchanges",children:["PS"==xe&&Ye.jsx(Ye.Fragment,{children:Ye.jsxs(I,{ref:H,className:"formDivAnt1",onFinish:Ot,children:[De&&Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{style:{display:"flex",gap:"1rem",marginTop:"1rem"},children:[Ye.jsx(I.Item,{name:"FeaturesName",rules:[{required:!0,message:"Please Select Feature Name"}],children:Ye.jsx(_y,{options:null==Ue?void 0:Ue.map((e=>({value:e.FeatName,label:e.FeatName}))),placeholder:"AppId",label:"Features",className:"field-DropDown-Feat",isOnchanges:Re,onChangeFunction:Dt,valueData:Re})}),Re&&Ye.jsx(I.Item,{name:"FeaturesAmount",rules:[{required:!0,pattern:/^(?=.*[1-9])\d+$/,message:"Enter Count"}],children:Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",type:"number",label:"Count",id:"Count",field:"organization",className:"featureAmt",value:Oe,isOnChange:!0,onChange:e=>{var t,n,i,a,r;return Lt(null==(t=null==e?void 0:e.target)?void 0:t.value,"FeaturesAmount",(null==(n=null==Ge?void 0:Ge[0])?void 0:n.FeatName)+"Amt",null==(i=null==Ge?void 0:Ge[0])?void 0:i.NetPrice,(null==(a=null==Ge?void 0:Ge[0])?void 0:a.FeatName)+"Taxdetails",null==(r=null==Ge?void 0:Ge[0])?void 0:r.TaxAmount)}})}),(null==Oe?void 0:Oe.FeaturesAmount)>0&&Re&&Ye.jsxs("div",{children:["Total Amount:"," ",Ye.jsx("input",{style:{width:"50px",height:"40px",borderRadius:"5px"},value:(null==(g=null==We?void 0:We[0])?void 0:g.NoOfDays)>31?(null==Oe?void 0:Oe.FeaturesAmount)*(null==(y=null==Ge?void 0:Ge[0])?void 0:y.YearlyNetPrice):(null==Oe?void 0:Oe.FeaturesAmount)*(null==(x=null==Ge?void 0:Ge[0])?void 0:x.MonthlyNetPrice)})]}),Ye.jsx(Ry,{buttonText:"Add",color:"901D77",icon:Ye.jsx(C,{}),htmlType:!0})]})}),De&&"PS"==xe&&Ye.jsx("div",{style:{overflow:"auto",width:"60vw",height:"50vh"},children:Ye.jsx(Vb,{columns:ht,data:Xe,dataSource:Xe})}),Ye.jsxs("div",{className:"addfeatInput",children:[Ye.jsx(I.Item,{name:"ManualPayment",children:Ye.jsx(_y,{options:null==Ce?void 0:Ce.map((e=>({value:e.ConfigId,label:e.ConfigName}))),placeholder:"Type",label:"Type",className:"field-DropDown",isOnchanges:Ne,onChangeFunction:e=>Pt(e),valueData:Ne})}),Ye.jsx(I.Item,{name:"Reason",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(My,{field:"AppDescription",autoComplete:"off",label:"Reason",fieldState:!0,onChange:e=>kt(e)})})]}),Xe.length>0&&Ne&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("h3",{children:["Plan Price : ",null==ge?void 0:ge.NetPrice,"/-"]}),Ye.jsxs("h3",{children:["Feature Price :"," ",null==Xe?void 0:Xe.reduce(((e,t)=>e+t.OveralAmount),0),"/-"]}),Ye.jsxs("h1",{children:["Total Amount :"," ",((null==ge?void 0:ge.NetPrice)+(Array.isArray(Xe)?Xe:[]).reduce(((e,t)=>e+t.OveralAmount),0)).toFixed(2),"/-"]})]})]})}),"EX"==xe&&Ye.jsx(Oy,{field:"TaxName",label:"Number of Days",fieldState:!0,maxLength:"30",autoComplete:"off",className:"Input",onChange:e=>{var t;(e=>{Be(e)})(null==(t=null==e?void 0:e.target)?void 0:t.value.replace(/[^0-9]/g,""))},onKeyPress:e=>{/[0-9]/.test(e.key)||e.preventDefault()}})]}),Ye.jsx("div",{className:"purchase-submit",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0,handleSubmit:Mt})})]}),"EP"==we&&Ye.jsxs(Ye.Fragment,{children:[!K&&Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsxs(I,{children:[Ye.jsxs("div",{style:{display:"flex",gap:"1rem"},children:[Ye.jsx(I.Item,{name:"ManualPayment",children:Ye.jsx(_y,{options:null==Ce?void 0:Ce.map((e=>({value:e.ConfigId,label:e.ConfigName}))),placeholder:"Type",label:"Type",className:"field-DropDown",isOnchanges:!!Ne,onChangeFunction:e=>Pt(e),valueData:Ne})}),Ye.jsx(I.Item,{name:"Reason",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(My,{field:"AppDescription",autoComplete:"off",label:"Reason",fieldState:!0,onChange:e=>kt(e)})})]}),Ye.jsx("div",{className:"purchase-submit",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0,handleSubmit:Mt})})]})})}),"Pricing1"==(null==(b=Y.Pricing)?void 0:b[0])&&K&&Ye.jsx($3,{data:Y.Pricing[1],appPurchases:Te}),"Pricing2"==(null==(w=Y.Pricing)?void 0:w[0])&&K&&Ye.jsx(i6,{data:Y.Pricing[1],appPurchases:Te}),"Pricing3"==(null==(j=Y.Pricing)?void 0:j[0])&&K&&Ye.jsx(l6,{data:Y.Pricing[1],appPurchases:Te})]}),"FA"==we&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("div",{className:"Planchanges",children:Ye.jsx(Ye.Fragment,{children:Ye.jsxs(I,{ref:q,className:"formDivAnt1",onFinish:Ot,children:[Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{style:{display:"flex",gap:"1rem",marginTop:"1rem"},children:[Ye.jsx(I.Item,{name:"FeaturesName",rules:[{required:!0,message:"Please Select Feature Name"}],children:Ye.jsx(_y,{options:null==Ue?void 0:Ue.map((e=>({value:e.FeatName,label:e.FeatName}))),placeholder:"AppId",label:"Features",className:"field-DropDown-Feat",isOnchanges:!!Re,onChangeFunction:Dt,valueData:Re})}),Re&&Ye.jsx(I.Item,{name:"FeaturesAmount",rules:[{required:!0,pattern:/^(?=.*[1-9])\d+$/,message:"Enter Count"}],children:Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",type:"number",label:"Count",id:"Count",field:"organization",className:"featureAmt",value:Oe,isOnChange:!0,onChange:e=>{var t,n,i,a,r;return Lt(null==(t=null==e?void 0:e.target)?void 0:t.value,"FeaturesAmount",(null==(n=null==Ge?void 0:Ge[0])?void 0:n.FeatName)+"Amt",null==(i=null==Ge?void 0:Ge[0])?void 0:i.NetPrice,(null==(a=null==Ge?void 0:Ge[0])?void 0:a.FeatName)+"Taxdetails",null==(r=null==Ge?void 0:Ge[0])?void 0:r.TaxAmount)}})}),(null==Oe?void 0:Oe.FeaturesAmount)>0&&Re&&Ye.jsxs("div",{children:["Total Amount:"," ",Ye.jsx("input",{style:{width:"50px",height:"40px",borderRadius:"5px"},value:(null==(S=null==We?void 0:We[0])?void 0:S.NoOfDays)>31?(null==Oe?void 0:Oe.FeaturesAmount)*(null==(N=null==Ge?void 0:Ge[0])?void 0:N.YearlyNetPrice):(null==Oe?void 0:Oe.FeaturesAmount)*(null==(F=null==Ge?void 0:Ge[0])?void 0:F.MonthlyNetPrice)})]}),Ye.jsx(Ry,{buttonText:"Add",color:"901D77",icon:Ye.jsx(C,{}),htmlType:!0})]})}),Ye.jsx("div",{style:{overflow:"auto",width:"60vw",height:"max-content",maxHeight:"50vh"},children:Ye.jsx(Vb,{columns:ht,data:Xe,dataSource:Xe})}),Ye.jsxs("div",{style:{display:"flex",gap:"1rem"},children:[Ye.jsx(I.Item,{name:"ManualPayment",children:Ye.jsx(_y,{options:null==Ce?void 0:Ce.map((e=>({value:e.ConfigId,label:e.ConfigName}))),placeholder:"Type",label:"Type",className:"field-DropDown",isOnchanges:!!Ne,onChangeFunction:e=>Pt(e),valueData:Ne})}),Ye.jsx(I.Item,{name:"Reason",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(My,{field:"AppDescription",autoComplete:"off",label:"Reason",fieldState:!0,onChange:e=>kt(e)})})]}),Xe.length>0&&Ne&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("h3",{children:["Feature Price :"," ",null==Xe?void 0:Xe.reduce(((e,t)=>e+t.OveralAmount),0),"/-"]}),Ye.jsxs("h1",{children:["Total Amount :"," ",(Array.isArray(Xe)?Xe:[]).reduce(((e,t)=>e+t.OveralAmount),0).toFixed(2),"/-"]})]})]})})}),Ye.jsx("div",{className:"purchase-submit",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0,handleSubmit:Mt})})]})]})]}),Ye.jsxs(SP,{className:"ModalOFpurchaseInfo",title:"New Plan",width:1100,maskClosable:!0,open:et,handleCancel:()=>Tt(),children:[Ye.jsx(Qy,{messageType:$,messageData:J,onComplete:pt}),Ye.jsx("div",{className:"PurchaseExtendModal",children:Ye.jsx("div",{className:"Planchanges",children:Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[Ye.jsx(I,{ref:V,className:"formDivAnt1",children:Ye.jsxs("div",{style:{display:"flex",gap:"1rem"},children:[Ye.jsx(I.Item,{name:"AdminId",rules:[{required:!0,message:"Please Select Admin"}],children:Ye.jsx(_y,{options:null==nt?void 0:nt.map((e=>({value:e.UserId,label:e.UserName||e.MobileNo,UserName:e.UserName,MobileNo:e.MobileNo}))),placeholder:"Admin Name",label:"Admin Name",className:"field-DropDown",onChangeFunction:async e=>{var t,n,i,a;null==(t=null==H?void 0:H.current)||t.setFieldsValue({AdminId:e}),lt(e);let r=await Q(Ib()).unwrap();if(1===(null==(n=null==r?void 0:r.data)?void 0:n.statusCode)){let t=null==(a=null==(i=null==r?void 0:r.data)?void 0:i.data)?void 0:a.filter((e=>"A"===e.ActiveStatus));const n=null==t?void 0:t.filter((t=>!(null==ae?void 0:ae.some((n=>n.AppId===t.AppId&&n.UserId===e)))));rt(n)}},valueData:st,searchKeys:["UserName","MobileNo"]})}),Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application"}],children:Ye.jsx(_y,{options:null==at?void 0:at.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"Application",label:Ye.jsx("label",{className:"required",children:"Application"}),className:"field-DropDown",onChangeFunction:async e=>{var t,n,i,a,r,s,l,o,d,c,u,p,A,h;let f=null==(n=null==(t=at.filter((t=>t.AppId==e)))?void 0:t[0])?void 0:n.AppName;await Q(r_(f)).unwrap(),qe(e),dt(e),null==(i=null==H?void 0:H.current)||i.setFieldsValue({AppId:e});let m=await Q(lw({UserId:st,AppId:e})).unwrap(),v=Array.isArray(null==(a=null==m?void 0:m.data)?void 0:a.data)&&(null==(s=null==(r=null==m?void 0:m.data)?void 0:r.data)?void 0:s.length)>0?null==(o=null==(l=m.data)?void 0:l.data)?void 0:o.map((e=>({...e,Sadmin:"Newplan"}))):[{Sadmin:"Newplan"}];Ee(v);let g=await Q(aT(e)),y=null==(A=null==(p=null==(u=null==(c=null==(d=null==g?void 0:g.payload)?void 0:d.data)?void 0:c.data)?void 0:u[0])?void 0:p.FeatDetails)?void 0:A.filter((e=>"D"!=e.ActiveStatus));_e(y);let x=await Q(Bg({SelectedAdmin:st})).unwrap();Ve(null==(h=null==x?void 0:x.data)?void 0:h.data),Q(uw(!0)),Q(pw(v))},valueData:ot})})]})}),Ye.jsxs("div",{style:{width:"70vw"},children:["Pricing1"==(null==(B=Y.Pricing)?void 0:B[0])&&K&&Ye.jsx($3,{data:Y.Pricing[1],appPurchases:Te,newplan:st}),"Pricing2"==(null==(T=Y.Pricing)?void 0:T[0])&&K&&Ye.jsx(i6,{data:Y.Pricing[1],appPurchases:Te,newplan:st}),"Pricing3"==(null==(U=Y.Pricing)?void 0:U[0])&&K&&Ye.jsx(l6,{data:Y.Pricing[1],appPurchases:Te,newplan:st})]}),"PS"==xe&&Ye.jsx("div",{onClick:()=>Et(),style:{color:"rgb(18, 146, 238)",borderBottom:"2px solid rgb(18, 146, 238)",width:"max-content",lineHeight:"18px",fontSize:"16px",fontWeight:"500",position:"relative",bottom:"-5px",cursor:"pointer"},children:"Add Feature"}),Ye.jsx("div",{className:"Planchanges",children:Ye.jsx(Ye.Fragment,{children:Ye.jsxs(I,{ref:z,className:"formDivAnt1",onFinish:Ot,children:[De&&Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{style:{display:"flex",gap:"1rem",marginTop:"1rem"},children:[Ye.jsx(I.Item,{name:"FeaturesName",rules:[{required:!0,message:"Please Select Feature Name"}],children:Ye.jsx(_y,{options:null==Ue?void 0:Ue.map((e=>({value:e.FeatName,label:e.FeatName}))),placeholder:"AppId",label:"Features",className:"field-DropDown-Feat",onChangeFunction:Dt,valueData:Re})}),Re&&Ye.jsx(I.Item,{name:"FeaturesAmount",rules:[{required:!0,pattern:/^(?=.*[1-9])\d+$/,message:"Enter Count"}],children:Ye.jsx(Oy,{fieldState:!0,fieldApi:!0,autocomplete:"off",type:"number",label:"Count",id:"Count",field:"organization",className:"featureAmt",value:Oe,isOnChange:!0,onChange:e=>{var t,n,i,a,r;return Lt(null==(t=null==e?void 0:e.target)?void 0:t.value,"FeaturesAmount",(null==(n=null==Ge?void 0:Ge[0])?void 0:n.FeatName)+"Amt",null==(i=null==Ge?void 0:Ge[0])?void 0:i.NetPrice,(null==(a=null==Ge?void 0:Ge[0])?void 0:a.FeatName)+"Taxdetails",null==(r=null==Ge?void 0:Ge[0])?void 0:r.TaxAmount)}})}),(null==Oe?void 0:Oe.FeaturesAmount)>0&&Re&&Ye.jsxs("div",{children:["Total Amount:"," ",Ye.jsx("input",{style:{width:"50px",height:"40px",borderRadius:"5px"},value:(null==(_=null==We?void 0:We[0])?void 0:_.NoOfDays)>31?(null==Oe?void 0:Oe.FeaturesAmount)*(null==(O=null==Ge?void 0:Ge[0])?void 0:O.YearlyNetPrice):(null==Oe?void 0:Oe.FeaturesAmount)*(null==(M=null==Ge?void 0:Ge[0])?void 0:M.MonthlyNetPrice)})]}),Ye.jsx(Ry,{buttonText:"Add",color:"901D77",icon:Ye.jsx(C,{}),htmlType:!0})]})}),De&&"PS"==xe&&Ye.jsx("div",{style:{overflow:"auto",width:"60vw",height:"50vh"},children:Ye.jsx(Vb,{columns:ht,data:Xe,dataSource:Xe})}),Xe.length>0&&Ne&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("h3",{children:["Plan Price : ",null==G?void 0:G.NetPrice,"/-"]}),Ye.jsxs("h3",{children:["Feature Price :"," ",null==Xe?void 0:Xe.reduce(((e,t)=>e+t.OveralAmount),0),"/-"]}),Ye.jsxs("h1",{children:["Total Amount :"," ",((null==G?void 0:G.NetPrice)+(null==Xe?void 0:Xe.reduce(((e,t)=>e+t.OveralAmount),0))).toFixed(2),"/-"]})]})]})})}),!K&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs(I,{children:[Ye.jsxs("div",{style:{display:"flex",gap:"1rem"},children:[Ye.jsx(I.Item,{name:"ManualPayment",children:Ye.jsx(_y,{options:null==Ce?void 0:Ce.map((e=>({value:e.ConfigId,label:e.ConfigName}))),placeholder:"Type",label:"Type",className:"field-DropDown",isOnchanges:!!Ne,onChangeFunction:e=>Pt(e),valueData:Ne})}),Ye.jsx(I.Item,{name:"Reason",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(My,{field:"AppDescription",autoComplete:"off",label:"Reason",fieldState:!0,onChange:e=>kt(e)})})]}),Ye.jsx("div",{className:"purchase-submit",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0,handleSubmit:async()=>{var e,t,n,i,a,r,s,l,o,d;if(0==Xe.length&&Ne&&st&&ot){let a={UserId:st,AppId:null==G?void 0:G.AppId,PricingId:null==G?void 0:G.PricingId,CompId:null==G?void 0:G.CompId,PaymentStatus:"S",LicenseStatus:"A",Price:null==G?void 0:G.Price,TaxId:null==ge?void 0:ge.TaxId,TaxAmount:null==ge?void 0:ge.TaxAmount,NetPrice:null==G?void 0:G.NetPrice,ValidityStart:null==ge?void 0:ge.ValidityStart,ValidityEnd:null==ge?void 0:ge.ValidityEnd,NoofDays:null==G?void 0:G.NoOfDays,UniqueId:null==ge?void 0:ge.UniqueId,MailId:null==ge?void 0:ge.MailId,Gst:null==ge?void 0:ge.Gst,BillingName:null==ge?void 0:ge.BillingName,MobileNo:null==ge?void 0:ge.MobileNo,Reason:Pe||"",PaymentType:Ne||"",CreatedBy:Ze},r=await Q(ik(a)).unwrap();1==(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)?(null==(t=null==V?void 0:V.current)||t.resetFields(),Ie(),ke(),tt(!1),Je([]),Q(uw(!1)),Q(N_([])),Le(!1),X("success"),Z(null==(n=null==r?void 0:r.data)?void 0:n.response),Ee(),lt(null),dt(null)):(X("error"),Z(null==(i=null==r?void 0:r.data)?void 0:i.response))}else if(Xe.length>0&&Ne&&st&&ot)if(Xe.length>0){let e=null==He?void 0:He.filter((e=>{var t;return(null==e?void 0:e.AppName)==(null==(t=null==Xe?void 0:Xe[0])?void 0:t.AppName)})),t={UserId:st,AppId:null==G?void 0:G.AppId,PricingId:null==G?void 0:G.PricingId,CompId:null==G?void 0:G.CompId,PaymentStatus:"S",LicenseStatus:"A",NetPrice:(null==G?void 0:G.NetPrice)+(null==Xe?void 0:Xe.reduce(((e,t)=>e+t.OveralAmount),0)),ValidityStart:null==ge?void 0:ge.ValidityStart,ValidityEnd:null==ge?void 0:ge.ValidityEnd,NoofDays:null==G?void 0:G.NoOfDays,UniqueId:null==ge?void 0:ge.UniqueId,MailId:null==ge?void 0:ge.MailId,Gst:null==ge?void 0:ge.Gst,BillingName:null==ge?void 0:ge.BillingName,MobileNo:null==ge?void 0:ge.MobileNo,CreatedBy:null==ge?void 0:ge.UserId,BookingId:null==(a=null==e?void 0:e[0])?void 0:a.UniqueId,Price:null==Xe?void 0:Xe.reduce(((e,t)=>e+t.Price*t.featcount),0),TaxId:null==(r=null==Xe?void 0:Xe[0])?void 0:r.TaxId,TaxAmount:null==Xe?void 0:Xe.reduce(((e,t)=>e+t.TaxAmount*t.featcount),0),OrderId:0,Type:xe,Reason:Pe||"",PaymentType:Ne||"",Details:null==Xe?void 0:Xe.map((e=>({FeatAddonId:null==e?void 0:e.UniqueId,Count:null==e?void 0:e.featcount,Price:(null==e?void 0:e.Price)*(null==e?void 0:e.featcount),NetPrice:(null==e?void 0:e.NetPrice)*(null==e?void 0:e.featcount),TaxAmount:(null==e?void 0:e.TaxAmount)*(null==e?void 0:e.featcount),TaxId:null==e?void 0:e.TaxId})))},n=await Q(ik(t)).unwrap();1==(null==(s=null==n?void 0:n.data)?void 0:s.statusCode)?(null==(l=null==V?void 0:V.current)||l.resetFields(),Ie(),ke(),Je([]),tt(!1),Le(!1),Q(uw(!1)),Q(N_([])),X("success"),Z(null==(o=null==n?void 0:n.data)?void 0:o.response),Ee(),lt(null),dt(null)):(X("error"),Z(null==(d=null==n?void 0:n.data)?void 0:d.response)),Me(),Le(!1)}else X("error"),Z("Select Feature");else X("error"),Z("Please Select")}})})]}),Ye.jsxs("p",{children:[Ye.jsx("strong",{children:"Plan Name:"})," ",null==G?void 0:G.PricingName,Ye.jsx("br",{}),Ye.jsx("strong",{children:"No of Days:"})," ",null==G?void 0:G.NoOfDays,Ye.jsx("br",{}),Ye.jsx("strong",{children:"Total Amount:"})," ",null==G?void 0:G.NetPrice]})]})]})})})})]})]})})},empAccess:"Purchase Info"},{path:"SiteVisitRecords",component:()=>{const e=um(),[t,n]=a.useState(null),[i,r]=a.useState(null),[s,l]=a.useState([]),[o,d]=a.useState(1),[c,u]=a.useState(1),[p,A]=a.useState({}),[h,f]=a.useState({}),[m,v]=a.useState(""),[g,y]=a.useState(1),[x,b]=a.useState(!0),[w,j]=a.useState(!1),[C,N]=a.useState(null),I=[{name:"Home",link:"/landing-page/home"}],F=[{title:"SI.NO",key:"sno",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(o-1)+n+1})},{title:"User Name",dataIndex:"UserName",key:"UserName",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:(null==t?void 0:t.UserName)?null==t?void 0:t.UserName:null==t?void 0:t.MobileNo})},{title:"Application",dataIndex:"AppName",key:"AppName",align:"center",width:"200px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Pricing Name",dataIndex:"PricingName",key:"PricingName",align:"center",width:"200px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Plan Type",dataIndex:"PlanType",key:"PlanType",align:"center",width:"200px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"MobileNo",dataIndex:"MobileNo",key:"MobileNo",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),filteredValue:[m],onFilter:(e,t)=>String(t.UserName).toLowerCase().includes(e.toLowerCase())||String(t.MobileNo).toLowerCase().includes(e.toLowerCase())},{title:"Details",key:"Edit",dataIndex:"Edit",align:"center",render:(e,t,n)=>Ye.jsx(P,{size:"middle",children:Ye.jsx(Ye.Fragment,{children:Ye.jsx("a",{children:Ye.jsx(ty,{onClick:()=>{k(t)}})})})})}],B=[{title:"SI.NO",key:"sno",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(c-1)+n+1})},{title:"Date & Time",dataIndex:"VisitTime",key:"VisitTime",align:"center",width:"200px",render:e=>Ye.jsxs("a",{style:{color:"black"},children:[" ",S(e).format("DD-MM-YYYY HH:mm:ss")]})},{title:"Location",dataIndex:"Location",key:"Location",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})}];a.useEffect((()=>{e(Gh({items:I})),D(g)}),[]);let k=async e=>{N(null==e?void 0:e.LocationVistDtl),j(!0)};const T=a.useCallback((()=>{r(null),n(null)}),[]),E=(e,t,n)=>{A(t),f(n)},D=async(t,n=null)=>{var i,a;b(!1);let r={pageNumber:t,role:n},s=await e(ere(r)).unwrap();1==(null==(i=null==s?void 0:s.data)?void 0:i.statusCode)?(l(null==(a=null==s?void 0:s.data)?void 0:a.data),b(!0)):(b(!1),l([]))},L=e=>{D(g+e),y((t=>t+e))};return Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:t,messageData:i,onComplete:T}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Visitors Log Details"})}),Ye.jsx("div",{className:"searchAddDiv",children:Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{v(e)},onSearchChange:e=>{var t;v(null==(t=null==e?void 0:e.target)?void 0:t.value)}})})})]}),Ye.jsx("div",{className:"reportTable",style:{maxHeight:"62vh"},children:Ye.jsx(Vb,{columns:F,data:s,dataSource:s,pagination:e=>{d(e)},onChange:E})}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end",padding:"20px"},children:Ye.jsxs("div",{style:{display:"flex",gap:"2rem"},children:[Ye.jsx("span",{style:{width:"6rem"},children:g>1&&Ye.jsx("div",{className:"nextButton",style:{backgroundColor:"#ff0000db"},onClick:()=>L(-1),children:"Previous"})}),Ye.jsx("span",{style:{width:"6rem"},children:x&&Ye.jsx("div",{className:"nextButton",onClick:()=>L(1),children:"Next"})})]})})]}),Ye.jsx(SP,{open:w,title:"Details",footer:!1,width:1e3,handleCancel:()=>{j(!w),u(1)},children:Ye.jsx("div",{style:{width:"100%"},children:Ye.jsx("div",{className:"reportTablesignIndetails",style:{overflow:"auto",width:"100%",maxHeight:"400px"},children:Ye.jsx(Vb,{columns:B,data:C,dataSource:C,pagination:e=>{u(e)},onChange:E})})})})]})},empAccess:"Loyalty setting"},{path:"referral-setting",component:()=>{const e=Qt(),t=um(),n=Mt(),i=Tf(Gg),[r,s]=a.useState(""),[l,o]=a.useState(1),[d,c]=a.useState({}),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState(iA("UserType")?iA("UserType"):null),[v,g]=a.useState(),[y,x]=a.useState([]),[b,w]=a.useState([]),[j,S]=a.useState(!1),N=[{name:"Home",link:`${Yee}landing-page/home`},{name:"Referral Setting",link:`${Yee}setting/referral-setting`}];a.useEffect((()=>{var e,i,a;try{t(Gh({items:N})),(null==(e=null==n?void 0:n.state)?void 0:e.Notiffy)&&(p(null==(i=null==n?void 0:n.state)?void 0:i.Notiffy.messageType),h(null==(a=null==n?void 0:n.state)?void 0:a.Notiffy.messageData))}catch(r){}_()}),[]);const I=a.useCallback((()=>{h(null),p(null)}),[]),F=e=>{o(e)},B=async e=>{let n={CommissionId:e.CommissionId,AppId:e.AppId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},i=await t(Vee(n)).unwrap();1==i.data.statusCode&&(p("success"),h(i.data.response),_())},k=[{title:"SI.NO",key:"sno",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(l-1)+n+1})},{title:"UserType",dataIndex:"UserTypeName",key:"UserTypeName",align:"right",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:e||"No-usertype"})},{title:"Commission",dataIndex:"CommissionAmt",key:"CommissionAmt",align:"right",render:(e,t)=>Ye.jsxs("a",{style:{color:"black"},children:[e," ","P"==(null==b?void 0:b.AmtType)?"%":"₹"]})}],T=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(l-1)+n+1})},{title:"Application",dataIndex:"AppName",key:"AppName",width:"120px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Referral Name",dataIndex:"CommissionName",key:"CommissionName",align:"left",width:"120px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.CommissionName)?void 0:n.localeCompare(null==t?void 0:t.CommissionName)},sortOrder:"CommissionName"===d.columnKey?d.order:null,ellipsis:!0},{title:"Amount Type",dataIndex:"AmtType",key:"AmtType",align:"left",width:"130px",render:e=>Ye.jsx("a",{style:{color:"black"},children:"P"==e?"Percentage":"Fixed"})},{title:"Reward Type",dataIndex:"RewardType",key:"RewardType",width:"120px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[r],onFilter:(e,t)=>String(t.RewardType).toLowerCase().includes(e.toLowerCase())||String(t.CommissionName).toLowerCase().includes(e.toLowerCase())||String(t.AppName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.RewardType)?void 0:n.localeCompare(null==t?void 0:t.RewardType)},sortOrder:"RewardType"===d.columnKey?d.order:null,ellipsis:!0},{title:"Commission Details",dataIndex:"CommissionDetails",key:"CommissionDetails",align:"center",width:"100px",render:(e,t)=>{var n;return(null==e?void 0:e.length)>1?Ye.jsx(ty,{style:{color:"#1292EE",fontSize:"25px",cursor:"pointer"},onClick:()=>E(e,t)}):Ye.jsxs("p",{children:[null==(n=null==e?void 0:e[0])?void 0:n.CommissionAmt," ","P"==(null==t?void 0:t.AmtType)?"%":"₹"]})}},{title:"Loyalty Name",dataIndex:"LoyaltyName",key:"LoyaltyName",align:"left",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e||"-"})},{title:"Action",key:"Action",dataIndex:"Action",width:"80px",align:"center",render:(t,n,a)=>("Admin"===f||"Admin User"===f?(null==Adminusers?void 0:Adminusers.length)>=1:(null==v?void 0:v.length)>=1)?Ye.jsxs(P,{size:"middle",children:["A"===n.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var t;return 0===(null==i?void 0:i.length)||"Y"===(null==(t=null==i?void 0:i.find((e=>"Company"===(null==e?void 0:e.ConfigName))))?void 0:t.UpdateAccess)?(async(t,n)=>{"D"!==t.ActiveStatus&&e(`${Yee}setting/referral-setting/update`,{state:{editstate:t}},{key:n})})(n,a):""}})}):"",Ye.jsx("a",{children:"A"===n.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==i?void 0:i.length)||"Y"===(null==(e=null==i?void 0:i.find((e=>"Company"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?B(n):""}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==i?void 0:i.length)||"Y"===(null==(e=null==i?void 0:i.find((e=>"Company"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?B(n):""}})})]}):null}],E=(e,t)=>{x(e),w(t),S(!0)},_=async()=>{let e=await t(Ree()).unwrap();1==e.data.statusCode?g(e.data.data):g([])};return Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:u,messageData:A,onComplete:I}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Referral Setting"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{s(e)},onSearchChange:e=>{const{value:t}=e.target;s(t)}})}),Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",icon:Ye.jsx(C,{}),handleSubmit:()=>{e(`${Yee}setting/referral-setting/new`)},children:"OPEN"})]})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:T,data:v,dataSource:v,pagination:F,onChange:(e,t,n)=>{c(n)}})}),Ye.jsx(SP,{open:j,title:"Config Details",handleCancel:()=>{S(!1),x([])},width:1e3,footer:!1,children:Ye.jsx("div",{style:{height:"400px",overflowY:"scroll"},children:Ye.jsx(Vb,{dataSource:y,data:y,columns:k,pagination:F})})})]})})})},empAccess:"Loyalty Setting"},{path:"referral-setting/new",component:e=>Ye.jsx(Gee,{...e,formType:"add"}),empAccess:"Loyalty Setting",access:"Admin"},{path:"referral-setting/update",component:e=>Ye.jsx(Gee,{...e,formType:"edit"}),empAccess:"Loyalty Setting",access:"Admin"},{path:"app-access",component:()=>{var e;const t=um(),n=Tf(Gg),i=Tf(Sh),r=Tf(Nh),s=Tf(Bh),l=Tf(Ph),o=Tf(Fh),d=Tf(_h),c=Tf(Wh),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState(null),[v,g]=a.useState(null),[y,x]=a.useState(null),b=iA("UserType"),[w,j]=a.useState(null),[C,S]=a.useState(null),[N]=I.useForm(),F=[{name:"Home",link:"/landing-page/home"}];a.useEffect((()=>{try{if("Admin"===b){let e=iA("UserId")??null;"Company Admin"==i?(h(e),t(ZA({userId:e}))):"Branch Admin"==i&&m(e),t(WA(e)),t(ph(e))}else t(xA()).unwrap()}catch(e){}}),[d]),a.useEffect((()=>{t(oh())}),[i]),a.useEffect((()=>{t(wA()),t(zg({UserId:u})).unwrap()}),[]),a.useEffect((()=>{t(Gh({items:F}))}),[]),a.useEffect((()=>{"Sadmin"==i?t(xA()).unwrap():("Company Admin"==i||"Branch Admin"==i&&null!=r&&null!=s)&&t(wA()).unwrap()}),[i,r,s,u]),a.useEffect((()=>{var e,n,a,r,s,l,o,c,u;1===d.length&&("Company Admin"==i?(h(null==(e=d[0])?void 0:e.UserId),g(null==(n=d[0])?void 0:n.UserId),t(WA(null==(a=d[0])?void 0:a.UserId)),t(ph(null==(r=d[0])?void 0:r.UserId)),t(ZA({userId:null==(s=d[0])?void 0:s.UserId}))):"Branch Admin"==i&&(m(null==(l=d[0])?void 0:l.UserId),x(null==(o=d[0])?void 0:o.UserId),t(WA(null==(c=d[0])?void 0:c.UserId)),t(ph(null==(u=d[0])?void 0:u.UserId))))}),[v,d]);const B=e=>{p(e)},P=a.useCallback((()=>{S(null),j(null)}),[]);return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:w,messageData:C,onComplete:P}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Application Access"})}),Ye.jsxs("div",{className:"moduleAccessDiv",children:[Ye.jsxs("div",{className:"dropDownSelectors",children:[Ye.jsxs("div",{className:"dropDownSelectParentDiv",children:[Ye.jsx("div",{children:Ye.jsx(hO,{getUserRole:e=>{"Admin"!=b&&(h(null),m(null),g(null),x(null),p(null)),N.resetFields()}})}),Ye.jsxs("div",{className:"dropDownSelectChildDiv",children:[Ye.jsxs(I,{form:N,children:["Company Admin"==i&&"Admin"!=b&&Ye.jsx(I.Item,{name:"CompanyAdmin",children:Ye.jsx(_y,{options:null==d?void 0:d.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?null==e?void 0:e.UserName:e.MobileNo}))),label:"Admin Name",onChangeFunction:e=>(e=>{h(e),t(WA(e)),t(ph(e)),t(ZA({userId:e})),t(JA({AppId:null})),t($A({storeId:null})),t(XA({BranchId:null})),t(rh()),g(e)})(e),isOnchanges:!!v,className:"field-DropDown",valueData:v})}),"Branch Admin"==i&&"Admin"!=b&&Ye.jsx(I.Item,{name:"BranchAdmin",children:Ye.jsx(_y,{options:null==d?void 0:d.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?null==e?void 0:e.UserName:e.MobileNo}))),label:"Admin Name",onChangeFunction:e=>(e=>{m(e),t(WA(e)),t(ph(e)),t(JA({AppId:null})),t($A({storeId:null})),t(XA({BranchId:null})),t(rh()),x(e)})(e),isOnchanges:!!y,className:"field-DropDown",valueData:y})})]}),"Sadmin"!=i&&Ye.jsx(Ye.Fragment,{children:Ye.jsx(I,{form:N,children:Ye.jsx(I.Item,{name:"AppName",children:Ye.jsx(vO,{UserId:"Admin"==b?parseInt(iA("UserId")):"Company Admin"==i?A:f})})})}),"Sadmin"!=i&&"Company Admin"==i&&"Admin"==b&&null!=l&&null!=l&&Ye.jsx(fO,{UserId:"Admin"==b?parseInt(iA("UserId")):A,AppId:l}),"Sadmin"!=i&&"Company Admin"!=i&&null!=l&&null!=l&&"Admin"==b&&Ye.jsx(Ye.Fragment,{children:Ye.jsx(I,{form:N,children:Ye.jsx(I.Item,{name:"CompName",children:Ye.jsx(fO,{UserId:"Admin"==b?parseInt(iA("UserId")):f,AppId:l})})})}),"Sadmin"==i&&Ye.jsx(yO,{userIdValue:B})]})]}),Ye.jsxs("div",{className:"dropDownSelectChildDiv",children:["Sadmin"!=i&&"Company Admin"==i&&"Admin"!=b&&null!=l&&null!=l&&Ye.jsx(fO,{UserId:"Admin"==b?parseInt(iA("UserId")):A,AppId:l}),"Sadmin"!=i&&"Company Admin"!=i&&null!=l&&null!=l&&"Admin"!=b&&Ye.jsx(Ye.Fragment,{children:Ye.jsx(I,{form:N,children:Ye.jsx(I.Item,{name:"CompName",children:Ye.jsx(fO,{UserId:"Admin"==b?parseInt(iA("UserId")):f,AppId:l})})})}),"Sadmin"!=i&&"Company Admin"==i&&null!=l&&null!=l&&null!=r&&null!=r&&Ye.jsx(xO,{storeId:r,UserId:"Admin"==b?parseInt(iA("UserId")):A,AppId:l}),"Sadmin"!=i&&"Company Admin"!=i&&null!=l&&null!=l&&null!=r&&null!=r&&Ye.jsx(xO,{storeId:r,UserId:"Admin"==b?parseInt(iA("UserId")):f,AppId:l}),"Branch Admin"==i&&null!=r&&null!=r&&null!=s&&null!=s&&Ye.jsx(mO,{AppId:l}),"Branch Admin"==i&&null!=r&&null!=r&&null!=s&&null!=s&&null!=o&&null!=o&&Ye.jsx(yO,{userIdValue:B})]})]}),Ye.jsx("div",{className:"userAccessDivP",children:Ye.jsx(gO,{disabled:!("Company Admin"==i&&null!=l&&null!=r&&null!=s||"Branch Admin"==i&&null!=r&&null!=s&&null!=u&&null!=o||null!=u&&"Company Admin"!=i&&"Branch Admin"!=i)})}),Ye.jsx("div",{className:"userAccessDivComp",children:Ye.jsx(jO,{})}),"Company Admin"!=i&&Ye.jsxs(Ye.Fragment,{children:[Ye.jsx("div",{className:"userAccessDivComp",children:Ye.jsx(bO,{})}),Ye.jsx("div",{className:"userAccessDivComp",children:Ye.jsx(wO,{})})]}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),handleSubmit:async()=>{var e,n,a;try{let r,l,o=c.filter((function(e){return null!=e&&null!=e}));0==o.length?"Company Admin"!=i?(l={UserId:u},r=await t(zA(l)).unwrap()):(l={UserId:A,BranchId:s},r=await t(qA(l)).unwrap()):r="Company Admin"!=i?await t(HA({UserId:u,ModuleDetails:o,CreatedBy:iA("UserId")})).unwrap():await t(VA({UserId:A,ModuleDetails:o,CreatedBy:iA("UserId")})).unwrap(),1===(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)?(j("success"),S(null==(n=null==r?void 0:r.data)?void 0:n.response),1!==!d.length&&"Sadmin"!=i||(p(null),h(null),m(null),g(null),x(null),N.resetFields(),t(ih()))):(j("error"),S(null==(a=null==r?void 0:r.data)?void 0:a.response))}catch(r){"Request failed with status code 422"==r.message&&(j("error"),S("Please Give Proper Values"))}},disabled:"Super Admin"!==b&&"N"===(null==(e=null==n?void 0:n.find((e=>"Application Access"==(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess)})})]})]})})})},access:"Admin",empAccess:"Application Access"},{path:"app-menu-access",component:()=>{var e,t;const n=Tf(Gg);let i="N"===(null==(e=null==n?void 0:n.find((e=>"Application Menu Access"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess),r="N"===(null==(t=null==n?void 0:n.find((e=>"Application Menu Access"===(null==e?void 0:e.ConfigName))))?void 0:t.AddAccess);const s=iA("UserType"),l=um(),o=a.useRef(null),[d,c]=a.useState(null),[u,p]=a.useState(null),[A,h]=a.useState([]),[f,m]=a.useState([]),[v,g]=a.useState(null),[y,x]=a.useState([]),[b,w]=a.useState(null),[j,C]=a.useState([]),[S,N]=a.useState("POST"),[F,B]=a.useState(""),[P,T]=a.useState(1),E=[{name:"Home",link:"/landing-page/home"}],D=[{title:"SI.NO",key:"sno",align:"center",width:"80px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(P-1)+n+1})},{title:"Menu Name",dataIndex:"MenuName",key:"MenuName",width:"180px",render:(e,t)=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[F],onFilter:(e,t)=>String(t.MenuName).toLowerCase().includes(e.toLowerCase())},{title:"View",dataIndex:"ReadAccess",key:"ReadAccess",render:(e,t)=>Ye.jsx(V,{checked:"Y"===e,onClick:()=>M("ReadAccess",t,"Y"===e?"N":"Y")})},{title:"Add",dataIndex:"AddAccess",key:"AddAccess",render:(e,t)=>Ye.jsx(V,{checked:"Y"===e,disabled:!t.ReadAccess||"Y"!==t.ReadAccess,onClick:()=>M("AddAccess",t,"Y"===e?"N":"Y")})},{title:"Edit",dataIndex:"UpdateAccess",key:"UpdateAccess",render:(e,t)=>Ye.jsx(V,{checked:"Y"===e,disabled:!t.ReadAccess||"Y"!==t.ReadAccess,onClick:()=>M("UpdateAccess",t,"Y"===e?"N":"Y")})},{title:"Delete",dataIndex:"DeleteAccess",key:"DeleteAccess",render:(e,t)=>Ye.jsx(V,{checked:"Y"===e,disabled:!t.ReadAccess||"Y"!==t.ReadAccess,onClick:()=>M("DeleteAccess",t,"Y"===e?"N":"Y")})}];a.useEffect((()=>{l(Gh({items:E})),U()}),[]);const L=a.useCallback((()=>{p(null),c(null)}),[]),U=async()=>{var e,t;const n=await l(Nae()).unwrap();1==(null==(e=null==n?void 0:n.data)?void 0:e.statusCode)&&h(null==(t=null==n?void 0:n.data)?void 0:t.data)},_=async e=>{var t,n;const i=await l(Iae({UserId:e})).unwrap();1==(null==(t=null==i?void 0:i.data)?void 0:t.statusCode)&&x(null==(n=null==i?void 0:i.data)?void 0:n.data)},O={selectedRowKeys:j,onChange:e=>{var t,n=j;if(0===(null==n?void 0:n.length)&&1===(null==e?void 0:e.length))var i=null==f?void 0:f.map((t=>parseInt(t.MenuId)===parseInt(e[0])?{...t,key:null==t?void 0:t.key,MenuId:null==t?void 0:t.MenuId,MenuName:null==t?void 0:t.MenuName,AddAccess:"Y",UpdateAccess:"Y",ReadAccess:"Y",DeleteAccess:"Y"}:t));else if(0===(null==n?void 0:n.length)&&(null==e?void 0:e.length)>1)i=null==(t=[...f])?void 0:t.map(((e,t)=>t<10?{...e,key:null==e?void 0:e.key,MenuId:null==e?void 0:e.MenuId,MenuName:null==e?void 0:e.MenuName,AddAccess:"Y",UpdateAccess:"Y",ReadAccess:"Y",DeleteAccess:"Y"}:{...e}));else if(0===(null==e?void 0:e.length))i=null==f?void 0:f.map((e=>({...e,key:null==e?void 0:e.key,MenuId:null==e?void 0:e.MenuId,MenuName:null==e?void 0:e.MenuName,AddAccess:"N",UpdateAccess:"N",ReadAccess:"N",DeleteAccess:"N"})));else if((null==n?void 0:n.length)>0&&(null==e?void 0:e.length)>=1)if((null==n?void 0:n.length)<(null==e?void 0:e.length)){let t=null==e?void 0:e.filter((e=>!(null==n?void 0:n.includes(e))));i=null==f?void 0:f.map((e=>(null==t?void 0:t.includes(null==e?void 0:e.MenuId))?{...e,key:null==e?void 0:e.key,MenuId:null==e?void 0:e.MenuId,MenuName:null==e?void 0:e.MenuName,AddAccess:"Y",UpdateAccess:"Y",ReadAccess:"Y",DeleteAccess:"Y"}:e))}else if((null==n?void 0:n.length)>(null==e?void 0:e.length)){let t=null==n?void 0:n.filter((t=>!(null==e?void 0:e.includes(t))));i=null==f?void 0:f.map((e=>(null==t?void 0:t.includes(null==e?void 0:e.MenuId))?{...e,key:null==e?void 0:e.key,MenuId:null==e?void 0:e.MenuId,MenuName:null==e?void 0:e.MenuName,AddAccess:"N",UpdateAccess:"N",ReadAccess:"N",DeleteAccess:"N"}:e))}C(e),m(i)}},M=(e,t,n)=>{const i=f.map((i=>{if(parseInt(i.MenuId)===parseInt(t.MenuId)){let a={...i,[e]:n};"ReadAccess"===e&&"N"===n&&(a={...a,AddAccess:"N",UpdateAccess:"N",DeleteAccess:"N"});return["AddAccess","UpdateAccess","DeleteAccess","ReadAccess"].some((e=>"Y"===a[e]))?j.includes(t.MenuId)||C([...j,t.MenuId]):C(j.filter((e=>e!==t.MenuId))),a}return i}));m(i)};return Ye.jsx("div",{className:"pageOverAll",children:Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:d,messageData:u,onComplete:L}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Application Menu Access"})}),Ye.jsxs("div",{className:"formDiv",children:[Ye.jsxs(I,{ref:o,className:"formDivappMenu",onFinish:async e=>{var t,n,i,a,r,s,o,d,c,u,p;const A=await l(Bae({AppId:e.AppId,UserId:e.UserId})).unwrap();if(0==(null==(n=null==(t=null==A?void 0:A.data)?void 0:t.data)?void 0:n.length)){const t=await l(Fae({AppId:e.AppId})).unwrap();if(1==(null==(i=null==t?void 0:t.data)?void 0:i.statusCode)){const e=null==(r=null==(a=null==t?void 0:t.data)?void 0:a.data)?void 0:r.map((e=>({...e,key:e.MenuId})));m(e),C([])}}else{N("PUT");let e=null==(d=null==(o=null==(s=null==A?void 0:A.data)?void 0:s.data)?void 0:o[0])?void 0:d.AppMenuAccessDetails;m(null==(p=null==(u=null==(c=null==A?void 0:A.data)?void 0:c.data)?void 0:u[0])?void 0:p.AppMenuAccessDetails);let t=(null==e?void 0:e.filter((e=>"Y"===e.AddAccess||"Y"===e.UpdateAccess||"Y"===e.DeleteAccess||"Y"===e.ReadAccess))).map((e=>e.MenuId));C(t)}},children:[Ye.jsx(I.Item,{name:"UserId",rules:[{required:!0,message:"Please Select Super Admin User"}],children:Ye.jsx(_y,{options:null==A?void 0:A.map((e=>({value:e.UserId,label:""!=e.UserName&&null!=e.UserName&&null!=e.UserName?null==e?void 0:e.UserName:e.MobileNo}))),label:"Super Admin User",onChangeFunction:e=>(async e=>{var t;null==(t=o.current)||t.setFieldsValue({UserId:e,AppId:null}),g(e),w(null),x([]),m([]),C([]),_(e)})(e),isOnchanges:!!v,className:"field-DropDown",valueData:v})}),Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application"}],children:Ye.jsx(_y,{options:null==y?void 0:y.map((e=>({value:e.AppId,label:e.AppName}))),label:"Application",onChangeFunction:e=>(async e=>{var t;null==(t=o.current)||t.setFieldsValue({AppId:e}),w(e),m([]),C([])})(e),isOnchanges:!!b,className:"field-DropDown",valueData:b})}),Ye.jsxs("div",{style:{display:"flex",width:"100%",gap:"1rem",flexWrap:"wrap",justifyContent:"space-between"},children:[Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0}),Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{B(e)},onSearchChange:e=>{var t;B(null==(t=null==e?void 0:e.target)?void 0:t.value)}})})]})]}),Ye.jsx("div",{className:"reportTable reportTable-appMenu",children:Ye.jsx("div",{className:"reportTableSub",children:Ye.jsx(Vb,{columns:D,data:f,dataSource:f,rowSelection:O,pagination:e=>{T(e)}})})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),handleSubmit:()=>(async()=>{var e,t,n,i;let a={};a.UserId=v,a.AppId=b,a.AppMenuAccessDetails=f;let r={};"POST"==S?(a.CreatedBy=iA("UserId"),r=await l(Pae(a)).unwrap()):"PUT"==S&&(a.UpdatedBy=iA("UserId"),r=await l(kae(a)).unwrap()),1==(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)?(m([]),C([]),w(null),g(null),x([]),null==(t=o.current)||t.setFieldsValue({UserId:null,AppId:null}),c("success"),p(null==(n=null==r?void 0:r.data)?void 0:n.response)):(c("error"),p(null==(i=null==r?void 0:r.data)?void 0:i.response))})(),disabled:"Super Admin"!==s&&(0===f.length||r&&"POST"===S||i&&"PUT"===S)})})]})]})})})},empAccess:"Application Menu Access"},{path:"signin-details",component:()=>{const e=um(),t=a.useRef(),[n,i]=a.useState(null),[r,s]=a.useState(null),[l,o]=a.useState([]),[d,c]=a.useState("All"),[u,p]=a.useState(1),[A,h]=a.useState(1),[f,m]=a.useState({}),[v,g]=a.useState({}),[y,x]=a.useState(""),[b,w]=a.useState(1),[j,C]=a.useState(!0),[N,F]=a.useState(!1),[B,k]=a.useState(null),[E,D]=a.useState(null),[L,U]=a.useState(null),{RangePicker:_}=T;let O=[{value:"All",label:"All"},{value:"Admin",label:"Admin"},{value:"Employee",label:"Employee"},{value:"Super Admin",label:"Super Admin"},{value:"Super Admin User",label:"Super Admin User"}];const M=[{name:"Home",link:"/landing-page/home"}],R=[{title:"SI.NO",key:"sno",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(u-1)+n+1})},{title:"Date & Time",dataIndex:"LoginDateTime",key:"LoginDateTime",align:"center",width:"200px",render:e=>Ye.jsxs("a",{style:{color:"black"},children:[" ",eA(e)]})},{title:"MobileNo",dataIndex:"MobileNo",key:"MobileNo",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),filteredValue:[y],onFilter:(e,t)=>String(t.UserName).toLowerCase().includes(e.toLowerCase())||String(t.MobileNo).toLowerCase().includes(e.toLowerCase())},{title:"User Name",dataIndex:"UserName",key:"UserName",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"User Type",dataIndex:"UserTypeName",key:"UserTypeName",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"IP",dataIndex:"IP",key:"IP",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Browser",dataIndex:"Browser",key:"Browser",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Version",dataIndex:"Version",key:"Version",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"OS",dataIndex:"OS",key:"OS",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Device Type",dataIndex:"LoginType",key:"LoginType",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Action",key:"Edit",dataIndex:"Edit",align:"center",render:(e,t,n)=>Ye.jsx(P,{size:"middle",children:Ye.jsx(Ye.Fragment,{children:Ye.jsx("a",{children:Ye.jsx(ty,{style:{color:"A"===t.ActiveStatus?"#1292EE":"#dadada",fontSize:"20px",cursor:"pointer"},onClick:()=>{H(t)}})})})})}],Q=[{title:"SI.NO",key:"sno",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(A-1)+n+1})},{title:"Date & Time",dataIndex:"LoginDateTime",key:"LoginDateTime",align:"center",width:"200px",render:e=>Ye.jsxs("a",{style:{color:"black"},children:[" ",eA(e)]})},{title:"IP",dataIndex:"IP",key:"IP",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Browser",dataIndex:"Browser",key:"Browser",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Version",dataIndex:"Version",key:"Version",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"OS",dataIndex:"OS",key:"OS",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Device Type",dataIndex:"LoginType",key:"LoginType",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})}];a.useEffect((()=>{e(Gh({items:M})),q(b)}),[]);const H=async t=>{var n,i;F(!0),D(t.UserId);try{let a=await e(Zae({userId:t.UserId})).unwrap();1==(null==(n=null==a?void 0:a.data)?void 0:n.statusCode)?k(null==(i=null==a?void 0:a.data)?void 0:i.data):k([])}catch(Ou){}},V=a.useCallback((()=>{s(null),i(null)}),[]),z=(e,t,n)=>{m(t),g(n)},q=async(t,n=null)=>{var i,a;let r={pageNumber:t,role:n},s=await e(Jae(r)).unwrap();1==(null==(i=null==s?void 0:s.data)?void 0:i.statusCode)?(o(null==(a=null==s?void 0:s.data)?void 0:a.data),C(!0)):(C(!1),o([]))},W=e=>{q(b+e,"All"!=d?d:null),w((t=>t+e))};return Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:n,messageData:r,onComplete:V}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Signin Details"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{x(e)},onSearchChange:e=>{var t;x(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(I,{ref:t,children:Ye.jsx("div",{style:{display:"flex",gap:"1rem"},children:Ye.jsx(_y,{options:null==O?void 0:O.map((e=>({value:e.value,label:e.label}))),placeholder:"Select Roles",label:"Select Roles",className:"field-DropDown",isOnchanges:!!d,onChangeFunction:e=>(async e=>{c(e),q(b,"All"!=e?e:null)})(e),valueData:d,disabled:!1,labelChange:!0})})})]})]}),Ye.jsx("div",{className:"reportTable",style:{maxHeight:"62vh"},children:Ye.jsx(Vb,{columns:R,data:l,dataSource:l,pagination:e=>{p(e)},onChange:z})}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end",padding:"20px"},children:Ye.jsxs("div",{style:{display:"flex",gap:"2rem"},children:[b>1&&Ye.jsx("div",{className:"nextButton",style:{backgroundColor:"#ff0000db"},onClick:()=>W(-1),children:"Previous"}),Ye.jsx("div",{className:"nextButton",onClick:()=>W(1),children:"Next"})]})})]}),Ye.jsx(SP,{open:N,title:"Details",footer:!1,width:1e3,handleCancel:()=>{F(!N),U(null),h(1)},children:Ye.jsxs("div",{style:{width:"100%"},children:[Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:Ye.jsx(_,{value:L,format:"DD-MM-YYYY",disabledDate:e=>e&&e>S().endOf("day"),onCalendarChange:async(t,n)=>{var i,a,r,s;if(U(t),t){let n=await e(Zae({Fromdate:null==(i=t[0])?void 0:i.format("YYYY-MM-DD"),Todate:null==(a=t[1])?void 0:a.format("YYYY-MM-DD"),userId:E})).unwrap();1==(null==(r=null==n?void 0:n.data)?void 0:r.statusCode)?k(null==(s=null==n?void 0:n.data)?void 0:s.data):k([])}}})}),Ye.jsx("div",{className:"reportTablesignIndetails",style:{overflow:"auto",width:"100%",maxHeight:"400px"},children:Ye.jsx(Vb,{columns:Q,data:B,dataSource:B,pagination:e=>{h(e)},onChange:z})})]})})]})},empAccess:"Signin Details"},{path:"user-otp",component:()=>{var e;Qt();const t=Mt(),n=um();a.useRef(null);const[i,r]=a.useState(null),[s,l]=a.useState(null),[o,d]=a.useState([]),[c,u]=a.useState([]),[p,A]=a.useState(null),[h,f]=a.useState("");a.useState([]);const[m,v]=a.useState(null),g=Tf(Gg),y="Y"===(null==(e=null==g?void 0:g.find((e=>"User OTP"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess);a.useState([]);const[x,b]=a.useState(null),[w,j]=a.useState(1);a.useState(!1),a.useState(null);const[C,S]=a.useState(1);a.useState([]);const[N,I]=a.useState(null),F=iA("UserType");iA("CompId"),iA("BranchId"),iA("AppId"),a.useState(iA("UserId")?iA("UserId"):null),a.useEffect((()=>{var e,i,a;n(Gh({items:hre})),k(),(null==(e=null==t?void 0:t.state)?void 0:e.Notiffy)&&(r(null==(i=null==t?void 0:t.state)?void 0:i.Notiffy.messageType),l(null==(a=null==t?void 0:t.state)?void 0:a.Notiffy.messageData))}),[]);let B=[{value:"Admin",label:"Admin"},{value:"Employee",label:"Employee"}];const k=async()=>{var e,t,i,a;let r=await n(tre({pageNumber:C})).unwrap();1===(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)?d(null==(t=null==r?void 0:r.data)?void 0:t.data):d();let s=await n(Fb()).unwrap();1===(null==(i=null==s?void 0:s.data)?void 0:i.statusCode)?u(null==(a=null==s?void 0:s.data)?void 0:a.data):u()},T=[{title:"SI.NO",key:"sno",align:"center",width:"80px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(w-1)+n+1})},{title:"Date/time",dataIndex:"CreatedDate",key:"CreatedDate",align:"center",width:"200px",ellipsis:!0,render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:Zp(null==t?void 0:t.CreatedDate)})},{title:"Mobile",dataIndex:"MobileNo",key:"MobileNo",align:"center",ellipsis:!0},{title:"User Name",dataIndex:"UserName",key:"UserName",align:"center",ellipsis:!0},{title:"User Type",dataIndex:"UserTypeName",key:"UserTypeName",align:"center",ellipsis:!0},{title:"OTP",dataIndex:"OTP",key:"OTP",align:"center",ellipsis:!0,render:(e,t)=>"Super Admin"===F?e:"******"},{title:"Action",key:"Action",align:"center",width:"100px",render:(e,t)=>"limit exceeds"!==((null==t?void 0:t.OTP)||"").toLowerCase()?null:Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{onClick:()=>{O(t)},children:Ye.jsx("div",{className:"getotpuser",children:" Get Otp"})})})},{title:"Send",key:"Send",align:"center",width:"150px",render:(e,t)=>"limit exceeds"===((null==t?void 0:t.OTP)||"").toLowerCase()?null:Ye.jsx("div",{className:"userOtp-WSM",children:Ye.jsxs(P,{size:"middle",children:[(null==t?void 0:t.MobileNo)&&Ye.jsx("a",{onClick:()=>{("Super Admin User"===F&&y||"Super Admin User"!==F)&&E(t)},children:Ye.jsx(Y,{style:{color:"green",fontSize:"18px"}})}),(null==t?void 0:t.MobileNo)&&Ye.jsx("a",{onClick:()=>{("Super Admin User"===F&&y||"Super Admin User"!==F)&&D(t)},children:Ye.jsx(K,{style:{color:"#1890ff",fontSize:"18px"}})}),(null==t?void 0:t.MailId)&&Ye.jsx("a",{onClick:()=>{("Super Admin User"===F&&y||"Super Admin User"!==F)&&L(t)},children:Ye.jsx(G,{style:{color:"#ff4d4f",fontSize:"18px"}})})]})})}],E=e=>{let t=null==e?void 0:e.MobileNo,n=null==e?void 0:e.OTP;if(!t||!n)return r("error"),void l();let i=`https://wa.me/${t}?text=${encodeURIComponent(`Hello, your OTP is: ${n}`)}`;window.open(i,"_blank")},D=async e=>{var t,i,a;let s={MobileNo:null==e?void 0:e.MobileNo,OTP:null==e?void 0:e.OTP},o=await n(WT(s)).unwrap();1===(null==(t=null==o?void 0:o.data)?void 0:t.statusCode)?(r("success"),l(null==(i=null==o?void 0:o.data)?void 0:i.response)):(r("error"),l(null==(a=null==o?void 0:o.data)?void 0:a.response))},L=async e=>{var t,i,a;let s={MobileNo:null==e?void 0:e.MobileNo,OTP:null==e?void 0:e.OTP},o=await n(YT(s)).unwrap();1===(null==(t=null==o?void 0:o.data)?void 0:t.statusCode)?(r("success"),l(null==(i=null==o?void 0:o.data)?void 0:i.response)):(r("error"),l(null==(a=null==o?void 0:o.data)?void 0:a.response))},U=a.useCallback((()=>{l(null),r(null)}),[]),_=async(e,t,i,a=C,r=N)=>{var s,l;let o={pageNumber:a,userTypeName:r},c=await n(tre(o)).unwrap();1===(null==(s=null==c?void 0:c.data)?void 0:s.statusCode)?d(null==(l=null==c?void 0:c.data)?void 0:l.data):d([])},O=async e=>{var t,i;let a={UserName:null==e?void 0:e.MobileNo,Type:"S"},s=await n(nre(a)).unwrap();1===(null==(t=null==s?void 0:s.data)?void 0:t.statusCode)&&(r("success"),l(null==(i=null==s?void 0:s.data)?void 0:i.response),_(0,0,0,C,N))},M=e=>{_(0,0,0,C+e),S(C+e)};return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:i,messageData:s,onComplete:U}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"User OTP"})}),Ye.jsx("div",{className:"searchAddDiv1",children:Ye.jsxs("div",{className:"formSearchticketdetails",children:[Ye.jsx("div",{children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{f(e)},onSearchChange:e=>{var t;f(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(_y,{options:null==B?void 0:B.map((e=>({value:e.value,label:e.label}))),placeholder:"Select Roles",label:"Select Roles",className:"field-DropDown",isOnchanges:!!N,onChangeFunction:e=>(async e=>{I(e),_(0,0,0,C,e)})(e),valueData:N,disabled:!1})]})})]}),Ye.jsxs("div",{className:"reportTable",style:{maxHeight:"62vh"},children:[Ye.jsx(Vb,{columns:T,data:o,dataSource:o,pagination:e=>{j(e)},onChange:(e,t,n)=>{setFilteredInfo(t),setSortedInfo(n)}})," "]}),Ye.jsx("div",{style:{display:"flex",justifyContent:"flex-end",padding:"20px"},children:Ye.jsxs("div",{style:{display:"flex",gap:"2rem"},children:[C>1&&Ye.jsx("div",{className:"nextButton",style:{backgroundColor:"#ff0000db"},onClick:()=>M(-1),children:"Previous"}),Ye.jsx("div",{className:"nextButton",onClick:()=>M(1),children:"Next"})]})})]})})},empAccess:"User OTP"},{path:"config-master",component:()=>{var e;const[t]=I.useForm(),n=Tf(Gg),i=Tf(GP),r=um(),[s,l]=a.useState(!1),[o,d]=a.useState(!1),[c,u]=a.useState({}),[p,A]=a.useState(""),[h,f]=a.useState(null),[m,v]=a.useState(null),[g,y]=a.useState(null),[x,b]=a.useState([]),[w,j]=a.useState(null),[S,N]=a.useState(""),[F,B]=a.useState("single"),[k,T]=a.useState(1),[E,_]=a.useState(!1),[O,M]=a.useState([]),[H,V]=a.useState(null),z=Tf(sk),q=iA("UserType");a.useEffect((()=>{try{r(Gh({items:pk})),r(RP()).unwrap(),r(tk()).unwrap()}catch(e){}}),[]),a.useEffect((()=>{b(i)}),[i]);const W=a.useCallback((()=>{y(null),v(null)}),[]),Y=()=>{r(dk())},K=async e=>{var t;let n={ConfigId:e.ConfigId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},i=await r(zP(n)).unwrap();1==(null==(t=null==i?void 0:i.data)?void 0:t.statusCode)&&(r(RP()).unwrap(),v("success"),y("A"==e.ActiveStatus?" Config Data In-Activated Successfully":"Config Data Activated Successfully"))},G=()=>{N(""),l(!1),Y(),V(null),_(!1)},$=[{title:"SI.NO",key:"sno",align:"center",width:"60px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(k-1)+n+1})},{title:"Type Name",dataIndex:"TypeName",key:"TypeName",align:"left",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[p],onFilter:(e,t)=>String(t.TypeName).toLowerCase().includes(e.toLowerCase())||String(t.ConfigName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.TypeName)?void 0:n.localeCompare(t.TypeName)},sortOrder:"TypeName"===c.columnKey?c.order:null,ellipsis:!0},{title:"Config Name",dataIndex:"ConfigName",key:"ConfigName",width:"100px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.ConfigName)?void 0:n.localeCompare(t.ConfigName)},sortOrder:"ConfigName"===c.columnKey?c.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",width:"50px",align:"left",render:(e,a,r)=>i.length>=1?Ye.jsxs(P,{size:"middle",children:["A"===a.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==n?void 0:n.length)||"Y"===(null==(e=null==n?void 0:n.find((e=>"Config Master"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async e=>{"D"!==e.ActiveStatus&&(l(!0),d(!0),N(e.SmallIcon),t.setFieldsValue(e),f(e))})(a):" "}})}):"",Ye.jsx("a",{children:"A"===a.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==n?void 0:n.length)||"Y"===(null==(e=null==n?void 0:n.find((e=>"Config Master"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?K(a):" "}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==n?void 0:n.length)||"Y"===(null==(e=null==n?void 0:n.find((e=>"Config Master"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?K(a):" "}})})]}):null}];return Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:m,messageData:g,onComplete:W}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Config Master"})}),Ye.jsxs("div",{className:"searchAddDiv searchAddDivCommonMaster",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{A(e)},onSearchChange:e=>{var t;A(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(I.Item,{name:"Config Type",rules:[{required:!0,message:"Please Select Config Type"}],children:Ye.jsx(_y,{options:[{value:"Select",label:"All"},...null==z?void 0:z.map((e=>({value:e.TypeId,label:e.TypeName})))],defaultValue:"Select",placeholder:"Config Type",label:"ConfigType",onChangeFunction:e=>(async e=>{if("Select"===e)b(i);else{const t=i.filter((t=>t.TypeId===parseInt(e)));b(t)}})(e),isOnchanges:!0,className:"field-DropDown",onFilter:(e,t)=>String(t.TypeName).toLowerCase().includes(e.toLowerCase())})}),Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",handleSubmit:()=>{l(!0),t.resetFields(),d(!1)},icon:Ye.jsx(C,{}),disabled:"Super Admin"!==q&&"N"==(null==(e=null==n?void 0:n.find((e=>"Config Master"==(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:$,data:x,pagination:e=>{T(e)},onChange:(e,t,n)=>{u(n)}})})]}),Ye.jsx(SP,{open:s,title:"Config Master",footer:!0,className:"AddConfigMaster",children:Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsx(I,{form:t,children:Ye.jsxs(R,{children:[Ye.jsxs(Q,{className:"gutter-row",span:11,children:[Ye.jsx(I.Item,{name:"TypeId",rules:[{required:!0,message:"Please Select Config Type"}],children:Ye.jsx(_y,{options:[{value:"Select",label:"All"},...null==z?void 0:z.map((e=>({value:e.TypeId,label:e.TypeName})))],placeholder:"ConfigType",label:Ye.jsx("label",{className:"required",children:"ConfigType"}),optionsNames:{value:"TypeId",label:"TypeName"},className:"field-DropDown",isOnchanges:!0,onChangeFunction:async e=>{var n,i,a,s,l;t.setFieldsValue({TypeId:e});let o=null==z?void 0:z.filter((t=>t.TypeId==e&&"Module"==t.TypeName));if((null==o?void 0:o.length)>0){_(!0);let e=await r(HP({TypeName:"Main Module"})).unwrap();1==(null==(n=null==e?void 0:e.data)?void 0:n.statusCode)&&M((null==(a=null==(i=null==e?void 0:e.data)?void 0:i.data)?void 0:a.length)>0?null==(l=null==(s=null==e?void 0:e.data)?void 0:s.data)?void 0:l.filter((e=>"A"===e.ActiveStatus)):[])}else _(!1),V(null)},defaultValue:"Select",valueData:o?null==h?void 0:h.TypeId:void 0,disabled:!!o})}),Ye.jsxs("div",{className:"upload_btn",children:[Ye.jsx("p",{children:"Upload Icon"}),Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>{N(e)},ImageLink:S||""})]})]}),Ye.jsxs(Q,{className:"gutter-row",span:11,children:[E&&Ye.jsx(I.Item,{name:"MainModuleId",rules:[{required:!0,message:"Please Select Main Module"}],children:Ye.jsx(_y,{options:[...null==O?void 0:O.map((e=>({value:e.ConfigId,label:e.ConfigName})))],placeholder:"Main Module",label:Ye.jsx("label",{className:"required",children:"Main Module"}),optionsNames:{value:"ConfigId",label:"ConfigName"},className:"field-DropDown",onChangeFunction:async e=>{V(e),t.setFieldsValue({MainModuleId:e})},valueData:H})}),Ye.jsx(I.Item,{name:"ConfigName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Config Name"},{validator:async(e,t)=>(await lA(t),t&&t.length>50?Promise.reject("Config Name should not exceed 50 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"ConfigName",name:"test",label:Ye.jsx("label",{className:"required",children:"Config Name"}),className:"Input",fieldState:!!o||"",fieldApi:[{setValue:"s",setTouched:!0}],autocomplete:"off",isOnChange:!!o})}),Ye.jsx(I.Item,{name:"Description",rules:[{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(My,{label:"Description",fieldState:"Enter Your Description...",isOnChange:!!o})})]})]})})})}),handleCancel:G,handleSubmit:async()=>{var e,n,i,a,s,l;if("single"===F){const a=await t.validateFields(),s={TypeId:a.TypeId,ConfigName:a.ConfigName,AlphaNumFId:H,Description:a.Description,SmallIcon:S,CreatedBy:iA("UserId")};let l={};if(o){if(h){const e={ConfigId:h.ConfigId,TypeId:h.TypeId,AlphaNumFId:h.AlphaNumFId,UpdatedBy:iA("UserId"),ConfigName:a.ConfigName,Description:a.Description,SmallIcon:S};l=await r(WP(e)).unwrap()}}else l=await r(qP(s)).unwrap();1==(null==(e=null==l?void 0:l.data)?void 0:e.statusCode)?(N(""),v("success"),y(null==(n=null==l?void 0:l.data)?void 0:n.response),G(),r(RP()).unwrap()):(N(""),v("error"),y(null==(i=null==l?void 0:l.data)?void 0:i.response))}else if("multiple"===F)if(w&&w.length>0){if(w.some((e=>!(null==e?void 0:e.configName)||""===(null==e?void 0:e.configName.trim()))))v("error"),y("Please enter Config Name");else{const e={ConfigMasterDetails:w.map((e=>({TypeId:parseInt(null==e?void 0:e.TypeId),ConfigName:null==e?void 0:e.configName,SmallIcon:null==e?void 0:e.SmallIcon})))};let t=await r(YP(e)).unwrap();1==(null==(a=null==t?void 0:t.data)?void 0:a.statusCode)?(v("success"),y(null==(s=null==t?void 0:t.data)?void 0:s.response)):(v("error"),y(null==(l=null==t?void 0:t.data)?void 0:l.response)),Y(),G(),r(RP()).unwrap()}}else v("error"),y("No data to submit. Please upload an Excel file.")}})]})},empAccess:"Config Master"},{path:"config-type",component:()=>{var e;const[t,n]=a.useState(!1),[i,r]=a.useState(!1),[s,l]=a.useState({}),[o,d]=a.useState(""),[c,u]=a.useState(null),[p,A]=a.useState(null),[h,f]=a.useState(null),[m,v]=a.useState(1),g=Tf(rk),y=Tf(Gg),x=iA("UserType"),b=um();a.useEffect((()=>{try{b(Gh({items:Ak})),b(XP()).unwrap()}catch(e){}}),[]);const w=a.useCallback((()=>{A(null),u(null)}),[]),[j]=I.useForm();const S=async e=>{var t;let n={TypeId:e.TypeId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},i=await b(ek(n)).unwrap();1==(null==(t=null==i?void 0:i.data)?void 0:t.statusCode)&&(b(XP()).unwrap(),u("success"),A("A"==e.ActiveStatus?"Config Type In-Activated Successfully":"Config Type Activated Successfully"))},N=()=>{n(!1)},F=[{title:"SI.NO",align:"center",key:"sno",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(m-1)+n+1})},{title:"Type Name",dataIndex:"TypeName",key:"TypeName",align:"left",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black",width:"100px"},children:e}),filteredValue:[o],onFilter:(e,t)=>String(t.TypeName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.TypeName)?void 0:n.localeCompare(t.TypeName)},sortOrder:"TypeName"===s.columnKey?s.order:null,ellipsis:!0},{title:"Action",dataIndex:"Action",key:"Action",align:"center",width:"100px",render:(e,t,i)=>g.length>=1?Ye.jsxs(P,{size:"middle",children:["A"===t.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==y?void 0:y.length)||"Y"===(null==(e=null==y?void 0:y.find((e=>"Config Type"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async e=>{"D"!==e.ActiveStatus&&(n(!0),r(!0),j.setFieldsValue(e),f(e))})(t):" "}})}):"",Ye.jsx("a",{children:"A"===t.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==y?void 0:y.length)||"Y"===(null==(e=null==y?void 0:y.find((e=>"Config Type"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?S(t):" "}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==y?void 0:y.length)||"Y"===(null==(e=null==y?void 0:y.find((e=>"Config Type"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?S(t):" "}})})]}):null}];return Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:c,messageData:p,onComplete:w}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Config Type"})}),Ye.jsxs("div",{className:"searchAddDiv searchAddDivConfig",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{d(e)},onSearchChange:e=>{var t;d(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",handleSubmit:()=>{n(!0),j.resetFields(),r(!1)},disabled:"Super Admin"!==x&&"N"===(null==(e=null==y?void 0:y.find((e=>"Config Type"==(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),icon:Ye.jsx(C,{}),children:"OPEN"})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:F,data:g,dataSource:g,pagination:e=>{v(e)},onChange:(e,t,n)=>{l(n)}})," "]})]}),Ye.jsx(SP,{open:t,title:"Config Type",footer:!0,className:"ConfigtypeNewModal",children:Ye.jsx(I,{form:j,children:Ye.jsx(R,{children:Ye.jsx(Q,{className:"gutter-row",span:6,children:Ye.jsx(I.Item,{name:"TypeName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Type Name "},{validator:async(e,t)=>(await lA(t),t&&t.length>50?Promise.reject("Type Name should not exceed 50 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"TypeName",label:Ye.jsx("label",{className:"required",children:"Type Name"}),className:"Input",fieldState:!!i||"",fieldApi:[{setValue:"s",setTouched:!0}],autocomplete:"off",isOnChange:!!i,onChange:e=>{var t;let n=null==(t=null==e?void 0:e.target)?void 0:t.value.replace(/^\s{2,}/,"");j.setFieldsValue({TypeName:n})}})})})})}),handleCancel:N,handleSubmit:async()=>{var e,t,n;const a={TypeName:(await j.validateFields()).TypeName,CreatedBy:iA("UserId")};let r={};if(i){if(h){const e={TypeId:h.TypeId,TypeName:h.TypeName,UpdatedBy:iA("UserId"),...a};r=await b(ZP(e)).unwrap()}}else r=await b(JP(a)).unwrap();1==(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)?(u("success"),A(null==(t=null==r?void 0:r.data)?void 0:t.response),N(),b(XP()).unwrap()):(u("error"),A(null==(n=null==r?void 0:r.data)?void 0:n.response))}})]})},empAccess:"Config Type"},{path:"admin-tax",component:()=>{var e;const t=um(),n=a.useRef(null),[i,r]=a.useState(null),[s,l]=a.useState(null),[o,d]=a.useState(!1),[c,u]=a.useState("right"),[p,A]=a.useState([]),[h,f]=a.useState({}),[m,v]=a.useState({}),[g,y]=a.useState([]),[x,b]=a.useState(!1),[w,j]=a.useState(""),[S,N]=a.useState(1),F=Tf(Gg),B=iA("UserType");async function P(){var e,n;const i=await t(yw()).unwrap();1===(null==(e=i.data)?void 0:e.statusCode)&&A(null==(n=i.data)?void 0:n.data)}a.useEffect((()=>{try{P()}catch(e){}}),[]),a.useEffect((()=>{t(Gh({items:bw}))}),[]);const T=[{title:"SI.NO",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(S-1)+n+1})},{title:"Tax Name",dataIndex:"TaxName",key:"TaxName",align:"left",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[w],onFilter:(e,t)=>String(t.TaxName).toLowerCase().includes(e.toLowerCase())||String(t.TaxPercentage).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n,i;return(null==(n=null==e?void 0:e.TaxName)?void 0:n.length)-(null==(i=null==t?void 0:t.TaxName)?void 0:i.length)},sortOrder:"TaxName"===m.columnKey?m.order:null,ellipsis:!0},{title:"Tax Percentage",dataIndex:"TaxPercentage",key:"TaxPercentage",width:"100px",align:"right",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),filteredValue:h.TaxPercentage||null,onFilter:(e,t)=>t.TaxPercentage.includes(e),sorter:(e,t)=>{var n,i;return(null==(n=null==e?void 0:e.TaxPercentage)?void 0:n.length)-(null==(i=null==t?void 0:t.TaxPercentage)?void 0:i.length)},sortOrder:"TaxPercentage"===m.columnKey?m.order:null,ellipsis:!0},{title:"Effective From",dataIndex:"EffectiveFrom",key:"EffectiveFrom",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black"},children:tA(e)}),filteredValue:h.EffectiveFrom||null,onFilter:(e,t)=>t.EffectiveFrom.includes(e),sorter:(e,t)=>{var n,i;return(null==(n=null==e?void 0:e.EffectiveFrom)?void 0:n.length)-(null==(i=null==t?void 0:t.EffectiveFrom)?void 0:i.length)},sortOrder:"EffectiveFrom"===m.columnKey?m.order:null,ellipsis:!0},{title:"Reference No",dataIndex:"Reference",key:"Reference",width:"100px",align:"right",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),filteredValue:h.Reference||null,onFilter:(e,t)=>t.Reference.includes(e),sorter:(e,t)=>{var n,i;return(null==(n=null==e?void 0:e.Reference)?void 0:n.length)-(null==(i=null==t?void 0:t.Reference)?void 0:i.length)},sortOrder:"Reference"===m.columnKey?m.order:null,ellipsis:!0}],E=a.useCallback((()=>{l(null),r(null)}),[]);return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:i,messageData:s,onComplete:E}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Tax"})}),Ye.jsxs("div",{className:"searchAddDiv searchAddDivTax",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{j(e)},onSearchChange:e=>{var t;j(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",icon:Ye.jsx(C,{}),handleSubmit:async()=>{var e;await(null==(e=n.current)?void 0:e.resetFields()),d(!0),y([]),b(!1)},disabled:"Super Admin"!==B&&"N"===(null==(e=null==F?void 0:F.find((e=>"Tax"==(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:T,data:p,pagination:e=>{N(e)},onChange:(e,t,n)=>{f(t),v(n)}})," "]}),Ye.jsx(gw,{open:o,placement:c,title:"Add Tax",children:Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{className:"formDivAnt",ref:n,onFinish:async e=>{var n,i,a;let s=e;s.CreatedBy=iA("UserId"),s.EffectiveFrom=new Date(e.EffectiveFrom).toISOString().slice(0,10);let o={};o=await t(xw(s)).unwrap(),1==(null==(n=null==o?void 0:o.data)?void 0:n.statusCode)?(r("success"),l(null==(i=null==o?void 0:o.data)?void 0:i.response),d(!1),P()):(r("error"),l(null==(a=null==o?void 0:o.data)?void 0:a.response))},children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"TaxName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Tax Name"},{validator:async(e,t)=>(await lA(t),t&&t.length>10?Promise.reject("Tax Name cannot exceed 10 characters."):Promise.resolve())}],children:Ye.jsx(Oy,{field:"TaxName",label:Ye.jsx("label",{className:"required",children:"Tax Name"}),fieldState:!0,maxLength:"30",autoComplete:"off",className:"Input",isOnChange:!!x})}),Ye.jsx(I.Item,{name:"TaxPercentage",rules:[{required:!0,message:"Please Enter a Valid Percentage"},{pattern:/^(100(\.0{1,2})?|(\d{1,2}(\.\d{0,2})?)?)$/,message:"Only numbers allowed (0-100) with up to 2 decimal places"},{validator:async(e,t)=>(await lA(t),Promise.resolve())}],children:Ye.jsx(Oy,{field:"TaxPercentage",name:"test",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Tax Percentage"}),type:"number",fieldState:!0,fieldApi:!0,id:"error2",isOnChange:!!x})}),Ye.jsx(I.Item,{name:"EffectiveFrom",rules:[{required:!0,message:"Please Enter Effective From"}],children:Ye.jsx(vw,{field:"EffectiveFrom",name:"EffectiveFrom",type:"number",min:1,max:100,label:Ye.jsx("label",{className:"required",children:"EffectiveFrom"}),fieldState:!0,fieldApi:!0,EditData:g,EditState:x,onChange:e=>{var t;if(!(e&&e.$y&&e.$M&&e.$D))return;const i=`${e.$y}-${String(e.$M+1).padStart(2,"0")}-${String(e.$D).padStart(2,"0")}`;null==(t=null==n?void 0:n.current)||t.setFieldsValue({EffectiveFrom:i})},id:"error3",isOnChange:!!x})}),Ye.jsx(I.Item,{name:"Reference",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Reference"},{validator:async(e,t)=>(await lA(t),t&&t.length>30?Promise.reject("Reference cannot exceed 30 characters."):Promise.resolve())}],children:Ye.jsx(Oy,{field:"Reference",name:"test",label:"Reference No",fieldState:!0,autoComplete:"off",fieldApi:!0,id:"error4",isOnChange:!!x})})]})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"SUBMIT",icon:Ye.jsx(k,{})})})]})}),onClose:()=>{d(!1),b(!1)}})]})})},empAccess:"Tax"},{path:"application-image",component:()=>{var e;const t=a.useRef(null),n=um(),i=Tf(_b),r=Tf(bk),s=Tf(Gg),l=iA("UserType"),[o,d]=a.useState(null),[c,u]=a.useState(null),[p,A]=a.useState(!1),[h,f]=a.useState({}),[m,v]=a.useState(null),[g,y]=a.useState(""),[x,b]=a.useState([]),[w,j]=a.useState({}),[S,N]=a.useState("add"),[F,B]=a.useState("I"),[T,E]=a.useState(1),_=[{name:"Home",link:"/home/landing-page/home"}];a.useEffect((()=>{try{n(Gh({items:_})),n(mk()).unwrap(),n(Fb()).unwrap()}catch(e){}}),[]),a.useEffect((()=>{var e;try{1===i.length&&M(null==(e=i[0])?void 0:e.AppId)}catch(t){}}),[m,i]),a.useEffect((()=>{var e;w&&Object.keys(w).length>0&&(null==(e=t.current)||e.setFieldsValue({AppId:w.AppId,ImageName:w.ImageName,ImageType:w.ImageType}),b((null==w?void 0:w.ImageLink)||""))}),[w]);const O=()=>{var e;null==(e=t.current)||e.resetFields(),b(""),A(!1),j({})},M=async e=>{var n;null==(n=t.current)||n.setFieldsValue({AppId:e}),await v(e)},R=a.useCallback((()=>{u(null),d(null)}),[]),Q=async e=>{var t;let i={ImageId:e.ImageId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},a=await n(yk(i)).unwrap();1==(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)&&(n(mk()).unwrap(),d("success"),u("A"==e.ActiveStatus?"App Image In-Activated Successfully":"App Image Activated Successfully"))},H=[{title:"SI.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(T-1)+n+1})},{title:"Application Name",dataIndex:"AppName",key:"AppName",align:"left",width:"200px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),filteredValue:[g],onFilter:(e,t)=>String(t.AppName).toLowerCase().includes(e.toLowerCase())||String(t.ImageName).toLowerCase().includes(e.toLowerCase())||String(t.ImageTypeName).toLowerCase().includes(e.toLowerCase())||String(t.ImageLink).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.AppName)?void 0:n.localeCompare(t.AppName)},sortOrder:"AppName"===h.columnKey?h.order:null,ellipsis:!0},{title:"Image Name",dataIndex:"ImageName",key:"ImageName",align:"left",width:"200px",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.ImageName)?void 0:n.localeCompare(t.ImageName)},sortOrder:"ImageName"===h.columnKey?h.order:null,ellipsis:!0},{title:"Image Type",dataIndex:"ImageTypeName",key:"ImageTypeName",align:"left",width:"200px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.ImageTypeName)?void 0:n.localeCompare(t.ImageTypeName)},sortOrder:"ImageTypeName"===h.columnKey?h.order:null,ellipsis:!0},{title:"Image",dataIndex:"ImageLink",key:"ImageLink",align:"center",maxWidth:"20px",render:(e,t)=>Ye.jsx("img",{style:{maxWidth:"46px"},src:`${""!=t.ImageLink&&null!=t.ImageLink&&null!=t.ImageLink?t.ImageLink:hk}`,alt:"App Img"})},{title:"Action",key:"Action",dataIndex:"Action",width:"200px",align:"center",render:(e,n,i)=>r.length>=1?Ye.jsxs(P,{size:"middle",children:["A"===n.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==s?void 0:s.length)||"Y"===(null==(e=null==s?void 0:s.find((e=>"Application Image"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async e=>{var n,i,a;null==(n=t.current)||n.resetFields(),"D"!==e.ActiveStatus&&(null==(i=t.current)||i.setFieldsValue({ImageType:e.ImageType}),B(e.ImageType),j(e),N("edit"),null==(a=t.current)||a.setFieldsValue({AppId:e.AppId,ImageName:e.ImageName}),v(e.AppId),b(null==e?void 0:e.ImageLink),A(!0))})(n):" "}})}):"",Ye.jsx("a",{children:"A"===n.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==s?void 0:s.length)||"Y"===(null==(e=null==s?void 0:s.find((e=>"Application Image"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?Q(n):" "}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==s?void 0:s.length)||"Y"===(null==(e=null==s?void 0:s.find((e=>"Application Image"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?Q(n):" "}})})]}):null}];return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:o,messageData:c,onComplete:R}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Application Image"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{y(e)},onSearchChange:e=>{var t;y(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",icon:Ye.jsx(C,{}),handleSubmit:()=>{var e;Object.keys(w).length>0?(N("edit"),A(!0)):(null==(e=t.current)||e.resetFields(),N("add"),v(null),b(""),A(!0))},disabled:"Super Admin"!==l&&"N"===(null==(e=null==s?void 0:s.find((e=>"Application Image"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:H,data:r,dataSource:r,onChange:(e,t,n)=>{f(n)},pagination:e=>{E(e)}})," "]}),Ye.jsx(gw,{open:p,placement:"right",title:"Application Image",children:Ye.jsx("div",{className:"formDiv",children:Ye.jsxs(I,{ref:t,className:"formDivAnt",onFinish:async e=>{var t,i,a;let r={};r.ImageLink=x,r.ImageType=F,r.ImageName=e.ImageName,r.AppId=e.AppId;let s={};if("edit"===S){r.ImageId=w.ImageId,r.updatedBy=iA("UserId");try{s=await n(gk(r)).unwrap()}catch(l){"Request failed with status code 422"==l.message&&(s={data:{statusCode:0,response:"Please Give Required Fields",data:[]}})}}else{r.CreatedBy=iA("UserId");try{s=await n(vk(r)).unwrap()}catch(l){"Request failed with status code 422"==l.message&&(s={data:{statusCode:0,response:"Please Give Required Fields",data:[]}})}}1==(null==(t=null==s?void 0:s.data)?void 0:t.statusCode)?(O(),n(mk()).unwrap(),d("success"),u(null==(i=null==s?void 0:s.data)?void 0:i.response)):(d("error"),u(null==(a=null==s?void 0:s.data)?void 0:a.response))},initialValues:w,children:[Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{className:"inputForm",children:[Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application "}],children:Ye.jsx(_y,{options:null==i?void 0:i.map((e=>({value:e.AppId,label:e.AppName}))),label:Ye.jsx("label",{className:"required",children:"Application"}),onChangeFunction:M,className:"field-DropDown",isOnchanges:!!m,valueData:m})}),Ye.jsx(I.Item,{name:"ImageName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Image Name"},{validator:async(e,t)=>(await lA(t),t&&t.length>30?Promise.reject("Image Name should not exceed 30 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"ImageName",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Image Name"}),fieldState:!0,fieldApi:!0,isOnChange:"edit"==S})}),Ye.jsx(I.Item,{name:"ImageType",children:Ye.jsx(fk,{content:[{value:"I",label:"Image"},{value:"C",label:"Icon"}],fieldState:!0,defaultSelect:F,Header:"Select Image Type",onSelectFuntion:e=>(async e=>{var n;null==(n=t.current)||n.setFieldsValue({ImageType:e}),await B(e)})(e)})}),Ye.jsxs("div",{className:"upload_btn",children:[Ye.jsxs("p",{children:["Upload ","I"===F?"App Image":"App Icon"]}),Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>{b(e)},ImageLink:x||""})]})]})}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"Submit",icon:Ye.jsx(k,{}),htmlType:!0})})]})}),onClose:O})]})})},empAccess:"Application Image"},{path:"carousel",component:()=>{var e;const t=um(),[n,i]=a.useState(!1),[r,s]=a.useState(!1),[l,o]=a.useState({}),[d,c]=a.useState(""),[u,p]=a.useState(null),[A,h]=a.useState(null),[f,m]=a.useState(null),[v,g]=a.useState(null),[y,x]=a.useState(1),b=Tf(vT),w=Tf(gT),j=Tf(Gg),[S]=I.useForm(),N=iA("UserType");a.useEffect((()=>{try{t(Gh({items:xT})),t(uT()).unwrap(),t(fT()).unwrap()}catch(e){}}),[]);const F=a.useCallback((()=>{g(null),m(null)}),[]),B=async e=>{var n;let i={CarouselId:e.CarouselId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},a=await t(pT(i)).unwrap();1==(null==(n=null==a?void 0:a.data)?void 0:n.statusCode)&&(t(uT()).unwrap(),m("success"),g("A"==e.ActiveStatus?"Carousel In-Activated Successfully":"Carousel Activated Successfully"))},k=()=>{i(!1)},T=[{title:"SI.NO",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(y-1)+n+1})},{title:"Screen Name",dataIndex:"ScreenName",key:"ScreenName",width:"100px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[d],onFilter:(e,t)=>String(t.ScreenName).toLowerCase().includes(e.toLowerCase())||String(t.Carousel).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.ScreenName)?void 0:n.localeCompare(t.ScreenName)},sortOrder:"ScreenName"===l.columnKey?l.order:null,ellipsis:!0},{title:"Carousel",dataIndex:"Carousel",key:"Carousel",align:"left",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.Carousel)?void 0:n.localeCompare(t.Carousel)},sortOrder:"Carousel"===l.columnKey?l.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",width:"100px",align:"center",render:(e,t,n)=>b.length>=1?Ye.jsxs(P,{size:"middle",children:["A"===t.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==j?void 0:j.length)||"Y"===(null==(e=null==j?void 0:j.find((e=>"Carousel"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async e=>{"D"!==e.ActiveStatus&&(i(!0),s(!0),S.setFieldsValue(e),p(e),h(e.ScreenId))})(t):""}})}):"",Ye.jsx("a",{children:"A"===t.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==j?void 0:j.length)||"Y"===(null==(e=null==j?void 0:j.find((e=>"Carousel"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?B(t):""}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==j?void 0:j.length)||"Y"===(null==(e=null==j?void 0:j.find((e=>"Carousel"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?B(t):""}})})]}):null}];return Ye.jsx(Ye.Fragment,{children:Ye.jsxs("div",{className:"userPage",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:f,messageData:v,onComplete:F}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Carousel"})}),Ye.jsxs("div",{className:"searchAddDiv searchAddDivTax",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{c(e)},onSearchChange:e=>{var t;c(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",handleSubmit:()=>{var e,t;i(!0),S.resetFields(),1===w.length&&(h(null==(e=w[0])?void 0:e.ConfigId),S.setFieldsValue({ScreenId:null==(t=w[0])?void 0:t.ConfigId})),s(!1)},icon:Ye.jsx(C,{}),disabled:"Super Admin"!==N&&"N"===(null==(e=null==j?void 0:j.find((e=>"Carousel"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:T,data:b,dataSource:b,pagination:e=>{x(e)},onChange:(e,t,n)=>{o(n)}})," "]})]}),Ye.jsx(SP,{open:n,title:"Carousel",footer:!0,name:"Add",className:"CarouselModalAdd",children:Ye.jsx(I,{form:S,children:Ye.jsxs(R,{children:[Ye.jsx(Q,{className:"gutter-row",span:11,children:Ye.jsx(I.Item,{name:"ScreenId",rules:[{required:!0,message:"Please Select Screen Name"}],children:Ye.jsx(_y,{options:null==w?void 0:w.map((e=>({value:e.ConfigId,label:e.ConfigName}))),placeholder:"ScreenId",label:"Screen Name",className:"field-DropDown",onChangeFunction:async e=>{S.setFieldsValue({ScreenId:e}),h(e)},valueData:A,isOnchanges:!(!r&&!A),disabled:!!r})})}),Ye.jsx(Q,{className:"gutter-row",span:11,children:Ye.jsx(I.Item,{name:"Carousel",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Carousel"},{validator:async(e,t)=>(await lA(t),t&&t.length>20?Promise.reject("Carousel should not exceed 20 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"Carousel",name:"test",label:Ye.jsx("label",{className:"required",children:"Carousel"}),className:"Input",fieldState:!!r||"",fieldApi:[{setValue:"s",setTouched:!0}],autoComplete:"off",isOnChange:!!r})})})]})}),handleCancel:k,handleSubmit:async()=>{var e,n,i;const a=await S.validateFields(),s={ScreenId:a.ScreenId,Carousel:a.Carousel,CreatedBy:iA("UserId")};let l={};if(r){if(u){const e={CarouselId:u.CarouselId,UpdatedBy:iA("UserId"),...s};l=await t(hT(e)).unwrap()}}else l=await t(AT(s)).unwrap();1==(null==(e=null==l?void 0:l.data)?void 0:e.statusCode)?(m("success"),g(null==(n=null==l?void 0:l.data)?void 0:n.response),k(),t(uT()).unwrap()):(m("error"),g(null==(i=null==l?void 0:l.data)?void 0:i.response))}})]})})},empAccess:"Carousel"},{path:"currency",component:()=>{var e;const[t,n]=a.useState(!1),[i,r]=a.useState(!1),[s,l]=a.useState({}),[o,d]=a.useState(""),[c,u]=a.useState(null),[p,A]=a.useState(null),[h,f]=a.useState(null),[m,v]=a.useState(1),g=Tf(Gg),y=Tf(O9),x=iA("UserType"),b=um();a.useEffect((()=>{try{b(Gh({items:R9})),b(E9()).unwrap()}catch(e){}}),[]);const w=a.useCallback((()=>{A(null),u(null)}),[]),[j]=I.useForm();var S=[{setValue:"s",setTouched:!0}];const N=async e=>{var t;let n={CurrId:e.CurrId,ActiveStatus:"A"==e.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},i=await b(U9(n)).unwrap();1==(null==(t=null==i?void 0:i.data)?void 0:t.statusCode)&&(b(E9()).unwrap(),u("success"),A("A"==e.ActiveStatus?"Currency In-Activated Successfully":"Currency Activated Successfully"))},F=()=>{n(!1)},B=[{title:"SI.NO",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(m-1)+n+1})},{title:"Currency Name",dataIndex:"CurrName",key:"CurrName",width:"100px",align:"left",filteredValue:[o],onFilter:(e,t)=>String(t.CurrName).toLowerCase().includes(e.toLowerCase())||String(t.CurrShName).toLowerCase().includes(e.toLowerCase())||String(t.ConvRate).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.CurrName)?void 0:n.localeCompare(t.CurrName)},sortOrder:"CurrName"===s.columnKey?s.order:null,ellipsis:!0},{title:"Short Name",dataIndex:"CurrShName",key:"CurrShName",align:"left",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.CurrShName)?void 0:n.localeCompare(t.CurrShName)},sortOrder:"CurrShName"===s.columnKey?s.order:null,ellipsis:!0},{title:"Conversion Rate",dataIndex:"ConvRate",key:"ConvRate",align:"right",width:"100px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>(null==e?void 0:e.ConvRate)-(null==t?void 0:t.ConvRate),sortOrder:"ConvRate"===s.columnKey?s.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",width:"100px",align:"center",render:(e,t,i)=>y.length>=1?Ye.jsxs(P,{size:"middle",children:["A"===t.ActiveStatus?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==g?void 0:g.length)||"Y"===(null==(e=null==g?void 0:g.find((e=>"Currency"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async e=>{"D"!==e.ActiveStatus&&(n(!0),r(!0),j.setFieldsValue(e),f(e))})(t):""}})}):"",Ye.jsx("a",{children:"A"===t.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==g?void 0:g.length)||"Y"===(null==(e=null==g?void 0:g.find((e=>"Currency"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?N(t):""}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==g?void 0:g.length)||"Y"===(null==(e=null==g?void 0:g.find((e=>"Currency"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?N(t):""}})})]}):null}];return Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:c,messageData:p,onComplete:w}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Currency"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{d(e)},onSearchChange:e=>{var t;d(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(Ry,{buttonText:"Add New",color:"901D77",handleSubmit:()=>{n(!0),j.resetFields(),r(!1)},icon:Ye.jsx(C,{}),disabled:"Super Admin"!==x&&"N"===(null==(e=null==g?void 0:g.find((e=>"Currency"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:B,data:y,dataSource:y,pagination:e=>{v(e)},onChange:(e,t,n)=>{l(n)}})," "]})]}),Ye.jsx(SP,{open:t,title:"Currency",footer:!0,children:Ye.jsx(I,{form:j,children:Ye.jsxs(R,{children:[Ye.jsxs(Q,{className:"gutter-row",span:11,children:[Ye.jsx(I.Item,{name:"CurrName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Currency Name"},{validator:async(e,t)=>(await lA(t),t&&t.length>20?Promise.reject("Currency Name should not exceed 20 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"CurrName",label:Ye.jsx("label",{className:"required",children:"Currency Name"}),className:"Input",fieldState:!!i||"",fieldApi:S,autocomplete:"off",isOnChange:!!i})}),Ye.jsx(I.Item,{name:"ConvRate",rules:[{validator:(e,t)=>!t||t<0?Promise.reject("Please Enter a Valid Conversion rates"):/^\d{1,16}$/.test(t)?Promise.resolve():Promise.reject("Enter a valid number max 16 digits")}],children:Ye.jsx(Oy,{field:"ConvRate",name:"test",label:Ye.jsx("label",{className:"required",children:"Conversion rates"}),className:"Input",type:"number",fieldState:!!i||"",fieldApi:S,autocomplete:"off",isOnChange:!!i})})]}),Ye.jsx(Q,{className:"gutter-row",span:11,children:Ye.jsx(I.Item,{name:"CurrShName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Short Name"},{validator:async(e,t)=>(await lA(t),t&&t.length>5?Promise.reject("Short Name should not exceed 5 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"CurrShName",name:"test",label:Ye.jsx("label",{className:"required",children:"Short Name"}),className:"Input",fieldState:!!i||"",fieldApi:S,autocomplete:"off",isOnChange:!!i})})})]})}),handleCancel:F,handleSubmit:async()=>{var e,t,n;const a=await j.validateFields(),r={CurrName:a.CurrName,CurrShName:a.CurrShName,ConvRate:a.ConvRate,CreatedBy:iA("UserId")};let s={};if(i){if(h){const e={CurrId:h.CurrId,UpdatedBy:iA("UserId"),...r};s=await b(L9(e)).unwrap()}}else s=await b(D9(r)).unwrap();1==(null==(e=null==s?void 0:s.data)?void 0:e.statusCode)?(u("success"),A(null==(t=null==s?void 0:s.data)?void 0:t.response),F(),b(E9()).unwrap()):(u("error"),A(null==(n=null==s?void 0:s.data)?void 0:n.response))}})]})},empAccess:"Currency"},{path:"payment-data",component:()=>{var e;const t=um(),n=[{name:"Home",link:`${eee}landing-page/home`},{name:"PaymentData",link:`${eee}setting/payment-data`}],i=Tf(Gg),r=iA("UserType"),[s,l]=a.useState([]),[o,d]=a.useState([]),[c,u]=a.useState([]),[p,A]=a.useState([]),[h,f]=a.useState(null),[m,v]=a.useState(null),[g,y]=a.useState([]),[x,b]=a.useState({}),[w,j]=a.useState(1),[C,S]=a.useState("E"),N=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(w-1)+n+1})},{title:"Payment Mode",dataIndex:"MethodName",key:"MethodName",width:"100px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),onFilter:(e,t)=>String(t.MethodName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.MethodName)?void 0:n.localeCompare(t.MethodName)},sortOrder:"MethodName"===x.columnKey?x.order:null,ellipsis:!0},{title:"Name",dataIndex:"Name",key:"Details",width:"100px",align:"left",render:(e,t)=>{var n;return Ye.jsx("a",{style:{color:"black"},children:null==(n=null==t?void 0:t.Detail)?void 0:n.cardName})},sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.Name)?void 0:n.localeCompare(t.Name)},sortOrder:"Name"===x.columnKey?x.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",width:"100px",align:"center",render:(e,t,n)=>(null==p?void 0:p.length)>=1?Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:"A"===t.Detail.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==i?void 0:i.length)||"Y"===(null==(e=null==i?void 0:i.find((e=>"Payment Data"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?F(t,n):" "}}):Ye.jsx(U,{style:{color:"#52C41A",pointerEvents:"R"===C?"none":null},onClick:()=>{var e;return 0===(null==i?void 0:i.length)||"Y"===(null==(e=null==i?void 0:i.find((e=>"Payment Data"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?F(t,n):" "}})})}):null}],I=a.useCallback((()=>{v(null),f(null)}),[]),F=async(e,t)=>{if("E"===C){let n=[...s];n[t].Detail.ActiveStatus="A"==e.Detail.ActiveStatus?"D":"A",A(n)}else if("N"===C){let n=[...o];n[t].Detail.ActiveStatus="A"==e.Detail.ActiveStatus?"D":"A",A(n)}f("success"),v("A"==e.Detail.ActiveStatus?"Data In-Activated Successfully":"Data Activated Successfully")};a.useEffect((()=>{t(Gh({items:n})),B();Z9.ajax({url:"https://secure.ccavenue.com/transaction/transaction.do?command=getJsonData&access_code=AVIS68LC86AL45SILA¤cy=INR&amount=10.00",dataType:"jsonp",jsonp:!1,jsonpCallback:"processData",success:function(e){!function(e){var t=[],n=[],i=[],a=[],r=[],s=[],l=[],o=[];Z9.each(e,(function(){switch(t.push(this.payOpt),this.payOpt){case"OPTCRDC":var e=this.OPTCRDC,d=Z9.parseJSON(e);Z9.each(d,(function(){n.push(this)}));break;case"OPTDBCRD":e=this.OPTDBCRD,d=Z9.parseJSON(e);Z9.each(d,(function(){i.push(this)}));break;case"OPTNBK":e=this.OPTNBK,d=Z9.parseJSON(e);Z9.each(d,(function(){a.push(this)}));break;case"OPTCASHC":e=this.OPTCASHC,d=Z9.parseJSON(e);Z9.each(d,(function(){r.push(this)}));break;case"OPTWLT":e=this.OPTWLT,d=Z9.parseJSON(e);Z9.each(d,(function(){s.push(this)}));break;case"OPTUPI":e=this.OPTUPI,d=Z9.parseJSON(e);Z9.each(d,(function(){l.push(this)}));break;case"OPTEMI":e=this.EmiBanks,d=Z9.parseJSON(e);Z9.each(d,(function(){o.push(this)}))}}));const d=["OPTCRDC","OPTDBCRD","OPTNBK","OPTCASHC","OPTWLT","OPTUPI","OPTEMI"],c=null==d?void 0:d.map((e=>{let t,n;switch(e){case"OPTCRDC":t="CreditCard",n="CRDC";break;case"OPTDBCRD":t="DebitCard",n="DBCRD";break;case"OPTNBK":t="NetBanking",n="NBK";break;case"OPTCASHC":t="CashCard",n="CASHC";break;case"OPTWLT":t="Wallet",n="WLT";break;case"OPTUPI":t="UPI",n="UPI";break;case"OPTEMI":t="EMI",n="CRDC";break;default:t="Unknown",n="Unknown"}return{MethodName:t,PayOpt:e,CardType:n}})),u=null==o?void 0:o.map((e=>{const t={...e};return t.cardName=t.gtwName,t.cardType=t.emiCardType,delete t.gtwName,delete t.emiCardType,t})),p=[{PayOpt:"OPTCRDC",Details:n},{PayOpt:"OPTDBCRD",Details:i},{PayOpt:"OPTNBK",Details:a},{PayOpt:"OPTCASHC",Details:r},{PayOpt:"OPTWLT",Details:s},{PayOpt:"OPTUPI",Details:l},{PayOpt:"OPTEMI",Details:u}];null==c||c.forEach((e=>{const t=p.find((t=>t.PayOpt===e.PayOpt));t&&(e.Details=t.Details)})),y(c)}(e)},error:function(e,t,n){alert("An error occurred! "+(n||e.status))}})}),[]);const B=async()=>{var e,n;const i=await t(PE()).unwrap();if(1==(null==(e=null==i?void 0:i.data)?void 0:e.statusCode)&&(null==g?void 0:g.length)>0){const e=function(e,t){const n=[];return null==e||e.forEach((e=>{const i=t.find((t=>t.MethodName===e.MethodName));if(i){const t=e.Details,a=i.Details,r=[];null==t||t.forEach((e=>{a.find((t=>t.cardName===e.cardName))?r.push({...e,Type:"E"}):r.push({...e,Type:"R",ActiveStatus:"D"})})),null==a||a.forEach((e=>{t.find((t=>t.cardName===e.cardName))||r.push({...e,Type:"N",ActiveStatus:"A"})})),n.push({...e,Details:r})}else{const t=e.Details.map((e=>({...e,Type:"R"})));n.push({...e,Details:t})}})),null==t||t.forEach((t=>{if(!e.find((e=>e.MethodName===t.MethodName))){const e=t.Details.map((e=>({...e,Type:"N"})));n.push({...t,Details:e})}})),n}(null==(n=null==i?void 0:i.data)?void 0:n.data,g),t=null==e?void 0:e.flatMap((({Details:e,MethodName:t,MethodId:n})=>e.map((e=>({MethodName:t,Detail:e,MethodId:n})))));let a=[],r=[],s=[];null==t||t.forEach((e=>{const t=e.Detail.Type;"R"===t?a.push(e):"N"===t?r.push(e):"E"===t&&s.push(e)})),A(s),l(s),d(r),u(a)}};return Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:h,messageData:m,onComplete:I}),Ye.jsx("div",{style:{fontSize:"25px"},children:Ye.jsx(fk,{content:[{value:"E",label:"Already Exists Data"},{value:"N",label:"New Data"},{value:"R",label:"Removed Data"}],fieldState:!0,defaultSelect:C,Header:"Payment Data",onSelectFuntion:e=>{return S(t=e),void A("E"===t?s:"N"===t?o:c);var t}})}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:N,data:p,dataSource:p,pagination:e=>{j(e)},onChange:(e,t,n)=>{b(n)}})," "]}),Ye.jsx("div",{className:"submitButton",children:Ye.jsx(Ry,{buttonText:"Submit",icon:Ye.jsx(k,{}),htmlType:!0,handleSubmit:()=>{let e={},n={};const i=function(e){const t=[];return null==e||e.forEach((e=>{const{MethodId:n,MethodName:i,Detail:a}=e,r=t.find((e=>e.MethodName===i));r?r.Details.push(a):t.push({MethodId:n,MethodName:i,CardType:a.cardType,PayOpt:a.payOptType,Details:[a]})})),t}([...s,...o,...c]);e.data=i,n=t(FE(e)).unwrap(),1==n.statusCode?(f("success"),v("Data Added Successfully")):(f("error"),v("Data Not Added"))},disabled:"Super Admin"!==r&&"N"===(null==(e=null==i?void 0:i.find((e=>"Payment Device Config"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess)})})]})})})},empAccess:"Payment Data"},{path:"payment-method",component:()=>{Qt();const e=um(),t=Tf(Gg),[n,i]=a.useState({}),[r,s]=a.useState(""),[l,o]=a.useState(null),[d,c]=a.useState(null),[u,p]=a.useState(1),[A,h]=a.useState(""),f=[{name:"Home",link:"/home/landing-page/home"}];a.useEffect((()=>{(async()=>{var t;try{e(Gh({items:f}));let n=await e(Q9()).unwrap();h(null==(t=null==n?void 0:n.data)?void 0:t.data)}catch(n){}})()}),[]);const m=a.useCallback((()=>{c(null),o(null)}),[]),v=async t=>{var n,i;let a={MethodId:t.MethodId,ActiveStatus:"A"==t.ActiveStatus?"D":"A",UpdatedBy:iA("UserId")},r=await e($9(a)).unwrap();if(1==(null==(n=null==r?void 0:r.data)?void 0:n.statusCode)){let n=await e(Q9()).unwrap();h(null==(i=null==n?void 0:n.data)?void 0:i.data),o("success"),c("A"==t.ActiveStatus?"Payment Method In-Activated Successfully":"Payment Method Activated Successfully")}},g=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(u-1)+n+1})},{title:"Payment Method",dataIndex:"MethodName",key:"MethodName",width:"100px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[r],onFilter:(e,t)=>String(t.MethodName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.MethodName)?void 0:n.localeCompare(t.MethodName)},sortOrder:"MethodName"===n.columnKey?n.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",width:"100px",align:"center",render:(e,n,i)=>(null==A?void 0:A.length)>=1?Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:"A"===n.ActiveStatus?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==t?void 0:t.length)||"Y"===(null==(e=null==t?void 0:t.find((e=>"Payment Method"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?v(n):""}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==t?void 0:t.length)||"Y"===(null==(e=null==t?void 0:t.find((e=>"Payment Method"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?v(n):""}})})}):null}];return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:l,messageData:d,onComplete:m}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Payment Method"})}),Ye.jsx("div",{className:"searchAddDiv",children:Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{s(e)},onSearchChange:e=>{var t;s(null==(t=null==e?void 0:e.target)?void 0:t.value)}})})})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:g,data:A,dataSource:A,pagination:e=>{p(e)},onChange:(e,t,n)=>{i(n)}})," "]})]})})},empAccess:"Payment Method"},{path:"payment-details",component:()=>{var e;const t=um(),n=Tf(Gg),[i,r]=a.useState([]),[s,l]=a.useState([]),[o,d]=a.useState(),[c,u]=a.useState(!1),[p,A]=a.useState({}),[h,f]=a.useState(""),[m,v]=a.useState(null),[g,y]=a.useState(null),[x,b]=a.useState(1),[w,j]=a.useState("Select"),[S,N]=a.useState(null),[F,B]=a.useState(""),[k,T]=a.useState(),E=iA("UserType"),[_,O]=a.useState(!1),[M]=I.useForm();a.useEffect((()=>{(async()=>{var e,n;try{const i=await t(Q9()).unwrap(),a=await t(H9()).unwrap(),s=null==(e=null==i?void 0:i.data)?void 0:e.data,o=null==(n=null==a?void 0:a.data)?void 0:n.data,c=s.flatMap((({Details:e,MethodName:t,MethodId:n})=>e.map((e=>({MethodName:t,Detail:e,MethodId:n})))));r(s),l(c),d(o)}catch(i){}})()}),[]);const H=[{name:"Home",link:"/home/landing-page/home"}];a.useEffect((()=>{try{t(Gh({items:H}))}catch(e){}}),[]);const V=a.useCallback((()=>{y(null),v(null)}),[]),z=async e=>{var n,i,a,r,s;let o={UniqueId:null==(n=null==e?void 0:e.Detail)?void 0:n.UniqueId,ActiveStatus:"A"==(null==(i=null==e?void 0:e.Detail)?void 0:i.ActiveStatus)?"D":"A"},d=await t(X9(o)).unwrap();if(1==(null==(a=null==d?void 0:d.data)?void 0:a.statusCode)){const e=await t(Q9()).unwrap(),n=(null==(r=null==e?void 0:e.data)?void 0:r.data).flatMap((({Details:e,MethodName:t,MethodId:n})=>e.map((e=>({MethodName:t,Detail:e,MethodId:n})))));l(n)}v("success"),y("A"==(null==(s=null==e?void 0:e.Detail)?void 0:s.ActiveStatus)?"Payment Details In-Activated Successfully":"Payment Details Activated Successfully")},q=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(x-1)+n+1})},{title:"Payment Mode",dataIndex:"MethodName",key:"MethodName",width:"100px",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),filteredValue:[F||h],onFilter:(e,t)=>String(t.MethodName).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.MethodName)?void 0:n.localeCompare(t.MethodName)},sortOrder:"MethodName"===p.columnKey?p.order:null,ellipsis:!0},{title:"Name",dataIndex:"Name",key:"Name",width:"100px",align:"left",render:(e,t)=>{var n;return Ye.jsx("a",{style:{color:"black"},children:null==(n=null==t?void 0:t.Detail)?void 0:n.cardName})},sorter:(e,t)=>{var n,i,a;return null==(a=null==(n=null==e?void 0:e.Detail)?void 0:n.cardName)?void 0:a.localeCompare(null==(i=t.Detail)?void 0:i.cardName)},sortOrder:"Name"===p.columnKey?p.order:null,ellipsis:!0},{title:"Action",key:"Action",dataIndex:"Action",width:"100px",align:"center",render:(e,t,i)=>{var a,r;return(null==s?void 0:s.length)>=1?Ye.jsxs(P,{size:"middle",children:["A"===(null==(a=null==t?void 0:t.Detail)?void 0:a.ActiveStatus)?Ye.jsx("a",{children:Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>{var e;return 0===(null==n?void 0:n.length)||"Y"===(null==(e=null==n?void 0:n.find((e=>"Payment Details"===(null==e?void 0:e.ConfigName))))?void 0:e.UpdateAccess)?(async e=>{var t,n;N(e.MethodId),T(null==(t=null==e?void 0:e.Detail)?void 0:t.UniqueId),M.setFieldsValue({MethodId:null==e?void 0:e.MethodId,CardName:null==(n=null==e?void 0:e.Detail)?void 0:n.cardName}),u(!0),O(!0)})(t):""}})}):"",Ye.jsx("a",{children:"A"===(null==(r=null==t?void 0:t.Detail)?void 0:r.ActiveStatus)?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>{var e;return 0===(null==n?void 0:n.length)||"Y"===(null==(e=null==n?void 0:n.find((e=>"Payment Details"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?z(t):" "}}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>{var e;return 0===(null==n?void 0:n.length)||"Y"===(null==(e=null==n?void 0:n.find((e=>"Payment Details"===(null==e?void 0:e.ConfigName))))?void 0:e.DeleteAccess)?z(t):""}})})]}):null}}];return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:m,messageData:g,onComplete:V}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Payment Details"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{f(e),f("CreditCard")},onSearchChange:e=>{var t;f(null==(t=null==e?void 0:e.target)?void 0:t.value)}})}),Ye.jsx(_y,{options:[{value:"Select",label:"All"},...null==i?void 0:i.map((e=>({value:e.MethodId,label:e.MethodName})))],placeholder:"Payment Method",label:"Payment Method",isOnchanges:!0,className:"field-DropDown",onChangeFunction:e=>{var t;let n=null==i?void 0:i.filter((t=>t.MethodId==e));B(null==(t=n[0])?void 0:t.MethodName),M.setFieldsValue({MethodId:e}),j(e)},valueData:w}),Ye.jsx(Ry,{buttonText:"Add New",handleSubmit:()=>{u(!0)},color:"901D77",icon:Ye.jsx(C,{}),disabled:"Super Admin"!==E&&"N"===(null==(e=null==n?void 0:n.find((e=>"Payment Details"===(null==e?void 0:e.ConfigName))))?void 0:e.AddAccess),children:"OPEN"})]})]}),Ye.jsxs("div",{className:"reportTable",children:[Ye.jsx(Vb,{columns:q,data:s,dataSource:s,pagination:e=>{b(e)},onChange:(e,t,n)=>{A(n)}})," "]}),Ye.jsx(SP,{open:c,title:"Payment Details",footer:!0,children:Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{children:Ye.jsx(I,{form:M,children:Ye.jsxs(R,{children:[Ye.jsx(Q,{className:"gutter-row",span:11,children:Ye.jsx(I.Item,{name:"MethodId",rules:[{required:!0,message:"Please Select Payment Method"}],children:Ye.jsx(_y,{options:null==o?void 0:o.map((e=>({value:e.MethodId,label:e.MethodName}))),placeholder:"Payment Method",label:Ye.jsx("label",{className:"required",children:"Payment Method"}),className:"field-DropDown",isOnchanges:!!S,onChangeFunction:e=>{M.setFieldsValue({MethodId:e}),N(e)},valueData:S})})}),Ye.jsx(Q,{className:"gutter-row",span:11,children:Ye.jsx(I.Item,{name:"CardName",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Card / Bank Name"},{validator:async(e,t)=>(await lA(t),t&&t.length>50?Promise.reject("Card / Bank Name should not exceed 50 characters"):Promise.resolve())}],children:Ye.jsx(Oy,{field:"CardName",label:Ye.jsx("label",{className:"required",children:"Card / Bank Name "}),className:"Input",fieldState:!0,fieldApi:[{setValue:"s",setTouched:!0}],autocomplete:"off",isOnChange:!!_})})})]})})})}),handleCancel:()=>{u(!1),M.resetFields(),N(null)},handleSubmit:async()=>{var e,n,i,a,r,o,d,c;const p=await M.validateFields();let A={};A.MethodId=p.MethodId,A.cardName=p.CardName;let h={};s.find((e=>(null==e?void 0:e.MethodId)===p.MethodId));if(h.UniqueId=k,h.cardName=p.CardName,_){let r=await t(z9(h)).unwrap();if(1==(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)){v("success"),y(null==(n=null==r?void 0:r.data)?void 0:n.response),u(!1),M.resetFields(),O(!1),N(null);const e=await t(Q9()).unwrap(),a=(null==(i=null==e?void 0:e.data)?void 0:i.data).flatMap((({Details:e,MethodName:t,MethodId:n})=>e.map((e=>({MethodName:t,Detail:e,MethodId:n})))));l(a)}else v("error"),y(null==(a=null==r?void 0:r.data)?void 0:a.response)}else{let e=await t(V9(A)).unwrap();if(1==(null==(r=null==e?void 0:e.data)?void 0:r.statusCode)){v("success"),y(null==(o=null==e?void 0:e.data)?void 0:o.response),M.resetFields(),u(!1),N(null);const n=await t(Q9()).unwrap(),i=(null==(d=null==n?void 0:n.data)?void 0:d.data).flatMap((({Details:e,MethodName:t,MethodId:n})=>e.map((e=>({MethodName:t,Detail:e,MethodId:n})))));l(i)}else v("error"),y(null==(c=null==e?void 0:e.data)?void 0:c.response)}}})]})})},empAccess:"Payment Details"},{path:"reffered-employee",component:()=>{var e,t;const n=um(),i=Mt(),r=a.useRef(null),s=iA("UserId");iA("UserType");const[l,o]=a.useState(""),[d,c]=a.useState(1),[u,p]=a.useState({}),[A,h]=a.useState(null),[f,m]=a.useState(null),[v,g]=a.useState(),[y,x]=a.useState(),[b,w]=a.useState(!1),[j,C]=a.useState(),[S,N]=a.useState(!1),[F,B]=a.useState(!1),[T,E]=a.useState(),[D,L]=a.useState(!1),[U,_]=a.useState(),[O,M]=a.useState([]),[R,Q]=a.useState(),H=(null==O?void 0:O.find((e=>(null==e?void 0:e.ConfigId)===R)))||{},V="Cash"!==(null==(e=null==H?void 0:H.ConfigName)?void 0:e.trim())&&"Free"!==(null==(t=null==H?void 0:H.ConfigName)?void 0:t.trim()),z=[{name:"Home",link:"/home/landing-page/home"}];a.useEffect((()=>{var e,t,a;n(Gh({items:z})),X();try{(null==(e=null==i?void 0:i.state)?void 0:e.Notiffy)&&(h(null==(t=null==i?void 0:i.state)?void 0:t.Notiffy.messageType),m(null==(a=null==i?void 0:i.state)?void 0:a.Notiffy.messageData))}catch(r){}}),[]);const q=a.useCallback((()=>{m(null),h(null)}),[]),W=e=>{c(e)},Y=(e,t,n)=>{p(n)},K=[{title:"Si.No",key:"sno",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(d-1)+n+1})},{title:"Name",dataIndex:"UserName",key:"UserName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),filteredValue:[l],onFilter:(e,t)=>String(t.UserName).toLowerCase().includes(e.toLowerCase())||String(t.MobileNo).toLowerCase().includes(e.toLowerCase()),sorter:(e,t)=>e.UserName.localeCompare(t.UserName),sortOrder:"UserName"===u.columnKey?u.order:null,ellipsis:!0},{title:"Mobile No",dataIndex:"MobileNo",key:"MobileNo",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Referred Count",dataIndex:"ReferralCount",key:"ReferralCount",align:"center",render:(e,t)=>Ye.jsx("div",{style:{color:"#1292EE",fontSize:"15px",textDecoration:"underline",cursor:"pointer"},onClick:()=>J(t),children:e})},{title:"Given Amount",dataIndex:"GivenAmount",key:"GivenAmount",align:"center",render:(e,t)=>Ye.jsx("div",{style:{color:"#1292EE",fontSize:"15px",textDecoration:"underline",cursor:"pointer"},onClick:()=>Z(t),children:e})},{title:"Balance Amount",dataIndex:"BalanceAmount",key:"BalanceAmount",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Action",key:"Action",dataIndex:"Action",align:"center",render:(e,t,n)=>(null==v?void 0:v.length)>0?Ye.jsx(P,{size:"middle",children:0===t.BalanceAmount?Ye.jsx("div",{style:{color:"#FF4D4F",fontSize:"14px",fontFamily:"Poppins"},children:"Paid"}):Ye.jsx("button",{className:"referal_pay_button",onClick:()=>{0!==t.BalanceAmount&&(async e=>{B(!0),E(e)})(t)},children:" Pay"})}):null}],G=[{title:"Si.No",key:"sno",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(d-1)+n+1})},{title:"Name",dataIndex:"ClientUserName",key:"ClientUserName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.ClientUserName)?void 0:n.localeCompare(null==t?void 0:t.ClientUserName)},sortOrder:"ClientUserName"===u.columnKey?u.order:null,ellipsis:!0},{title:"Mobile No",dataIndex:"ClientMobileNo",key:"ClientMobileNo",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Client Code",dataIndex:"ReferralCode",key:"ReferralCode",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e})},{title:"Referral Date",dataIndex:"ReferralDate",key:"ReferralDate",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:eA(e)})},{title:"Amount",dataIndex:"ReferredAmount",key:"ReferredAmount",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})}],$=[{title:"Si.No",key:"sno",align:"center",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(d-1)+n+1})},{title:"Amount",dataIndex:"Amount",key:"Amount",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e}),ellipsis:!0},{title:"Paid By",dataIndex:"PaidByName",key:"PaidByName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Pay Method",dataIndex:"PaymentMethodName",key:"PaymentMethodName",align:"left",render:e=>Ye.jsx("a",{style:{color:"black",width:"200px"},children:e}),sorter:(e,t)=>{var n;return null==(n=null==e?void 0:e.PaymentMethodName)?void 0:n.localeCompare(null==t?void 0:t.PaymentMethodName)},sortOrder:"PaymentMethodName"===u.columnKey?u.order:null,ellipsis:!0},{title:"Payment Date",dataIndex:"PaymentDate",key:"PaymentDate",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:eA(e)})},{title:"Transaction Id",dataIndex:"TransactionId",key:"TransactionId",align:"center",width:"180px",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Transaction Images",dataIndex:"ImageUrl",key:"ImageUrl",align:"center",width:"180px",render:e=>e?Ye.jsx("img",{src:e,alt:"Transaction",style:{width:"60px",height:"60px",objectFit:"cover",borderRadius:"6px"}}):Ye.jsx("span",{style:{color:"gray"},children:"No Image"})}],X=async()=>{let e=await n(zee()).unwrap();1==e.data.statusCode&&g(e.data.data);let t=await n(qee()).unwrap();1==t.data.statusCode&&M(t.data.data)},J=e=>{x(e.RefferalClientDetails),w(!0)},Z=e=>{C(e.RefferalPaymentDetails),N(!0)};return Ye.jsxs("div",{className:"userPageTable",children:[Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:A,messageData:f,onComplete:q}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Employee Referrer"})}),Ye.jsx("div",{className:"searchAddDiv",children:Ye.jsx("div",{className:"formSearch",children:Ye.jsx(zb,{placeholder:"Search",onSearch:e=>{o(e)},onSearchChange:e=>{const{value:t}=e.target;o(t)}})})})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:K,data:v,dataSource:v,pagination:W,onChange:Y})})]}),Ye.jsx(SP,{title:"CLIENT DETAILS",width:1e3,open:b,children:Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"purchase-info-model",children:Ye.jsx("div",{className:"formDivS",children:Ye.jsx("div",{className:"combomaster-table",children:Ye.jsx(Vb,{columns:G,data:y,pagination:W,onChange:Y})})})})}),handleCancel:()=>w(!1)}),Ye.jsx(SP,{title:"PAYMENT DETAILS",width:1e3,open:S,children:Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"purchase-info-model",children:Ye.jsx("div",{className:"formDivS",children:Ye.jsx("div",{className:"combomaster-table",children:Ye.jsx(Vb,{columns:$,data:j,pagination:W,onChange:Y})})})})}),handleCancel:()=>N(!1)}),Ye.jsx(SP,{title:"PAYMENT",width:1e3,open:F,children:Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"purchase-info-model",children:Ye.jsx(I,{ref:r,className:"formDivAnt",onFinish:async e=>{var t;let i={UserId:null==T?void 0:T.UserId,Amount:e.Amount,PaymentDate:(new Date).toISOString(),PaidBy:s,PaymentMethod:R,PaymentStatus:"S",TransactionId:e.TransactionId?e.TransactionId:0,CreatedBy:s,ImageUrl:U},a=await n(Wee(i)).unwrap();1==a.data.statusCode?(Q(),h("success"),m(a.data.response),B(!1),X(),null==(t=r.current)||t.resetFields(),r.current.setFieldsValue({PaymentType:""})):(h("error"),m(a.data.response))},children:Ye.jsxs("div",{className:"formDivS",children:[Ye.jsx(Qy,{messageType:A,messageData:f,onComplete:q}),Ye.jsxs("p",{children:["BALANCE AMT : ",null==T?void 0:T.BalanceAmount]}),Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"1rem",flexWrap:"wrap"},children:[Ye.jsx(I.Item,{name:"PaymentType",rules:[{required:!0,message:"Please Choose PaymentType"}],children:Ye.jsx(_y,{options:null==O?void 0:O.map((e=>({value:e.ConfigId,label:e.ConfigName}))),placeholder:"Payment Type",label:Ye.jsx("label",{className:"required",children:"Payment Type"}),className:"field-DropDown",isOnchanges:!!R,onChangeFunction:e=>{var t;Q(e),null==(t=r.current)||t.setFieldsValue({PaymentType:e})},valueData:R})}),Ye.jsx(I.Item,{name:"Amount",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Amount"},{validator:async(e,t)=>{await lA(t);const n=parseFloat(t);return isNaN(n)?Promise.reject("Amount must be a number"):n<=0?Promise.reject("Amount must be greater than 0"):n>(null==T?void 0:T.BalanceAmount)?Promise.reject(`Amount cannot exceed the balance of ${null==T?void 0:T.BalanceAmount}`):Promise.resolve()}}],children:Ye.jsx(Oy,{field:"Amount",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Amount"}),fieldState:!0,fieldApi:!0,isOnChange:!!D,onChange:e=>{}})}),Ye.jsxs(Ye.Fragment,{children:[V&&Ye.jsx(I.Item,{name:"TransactionId",rules:[{pattern:/^([A-Z]{3,5}\d{6,12}|\d{12})$/,message:"Enter a valid UPI Transaction ID"},{validator:async(e,t)=>{await lA(t)}}],children:Ye.jsx(Oy,{field:"TransactionId",autoComplete:"off",label:Ye.jsx("label",{className:"",children:"Transaction Id"}),fieldState:!0,fieldApi:!0,isOnChange:!!D})}),Ye.jsxs("div",{className:"upload_btn",children:[Ye.jsx("p",{children:"Upload"}),Ye.jsx(Yy,{singleImage:!0,updateImageUrl:e=>{_(e)},ImageLink:U||""})]})]})]}),Ye.jsx("div",{style:{marginLeft:"45rem"},children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0})})]})})})}),handleCancel:()=>{B(!1)}})]})},empAccess:"Employee Referrer"},{path:"activationkey-generation",component:()=>{Qt();const e=um(),t=a.useRef(null),n=a.useRef(null),[i,r]=a.useState(iA("UserId")?iA("UserId"):null),[s,l]=a.useState(null),[o,d]=a.useState(null),[c,u]=a.useState([]),[p,A]=a.useState(null),[h,f]=a.useState([]),[m,v]=a.useState(null),[g,y]=a.useState([]),[x,b]=a.useState(null),[w,j]=a.useState([]),[C,S]=a.useState(null),[N,F]=a.useState(!1),[B,T]=a.useState("Y"),[D,_]=a.useState(),[O,M]=a.useState(),[R,Q]=a.useState(),[H,V]=a.useState(),[z,q]=a.useState(!1),[W,Y]=a.useState(!1),[K,G]=a.useState(1),[$,X]=a.useState(1),[J,Z]=a.useState({}),[ee,te]=a.useState({}),ne=a.useCallback((()=>{d(null),l(null)}),[]);a.useEffect((()=>{ie()}),[]),a.useEffect((()=>{var e;(null==O?void 0:O.DeviceNo)&&(null==(e=null==n?void 0:n.current)||e.setFieldsValue({DevId:O.DeviceNo}))}),[O]);const ie=async()=>{var t,n,i;let a=await e(Fb()).unwrap();1===(null==(t=null==a?void 0:a.data)?void 0:t.statusCode)?u(null==(n=null==a?void 0:a.data)?void 0:n.data):u();let r=await e(ete()).unwrap();1==(null==r?void 0:r.data.statusCode)?_(null==(i=null==r?void 0:r.data)?void 0:i.data):(l("error"),d(null==r?void 0:r.data.response))},ae=(e,t,n)=>{Z(t),te(n)},re=[{title:"SI.NO",align:"center",key:"sno",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:n+1})},{title:"User Name",dataIndex:"UserName",key:"UserName",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Activation Key",dataIndex:"ActivationKey",key:"ActivationKey",align:"center",render:e=>Ye.jsx("a",{style:{color:"black"},children:e})},{title:"Key Generation",dataIndex:"Action",key:"Action",align:"center",render:(e,t,n)=>(null==D?void 0:D.length)>=1?Ye.jsx(P,{size:"middle",children:"Y"==t.UsedStatus?Ye.jsx("button",{onClick:()=>le(t),style:{padding:"2.5px 3px",backgroundColor:"#1677ff",borderRadius:"3px",border:"#1677ff 1px solid",color:"#fff",cursor:"pointer",fontFamily:"poppins",height:"1.6rem"},children:"Re Key"}):Ye.jsx("div",{style:{padding:"2.5px 3px",backgroundColor:"#1677ff",borderRadius:"3px",border:"#1677ff 1px solid",color:"#fff",cursor:"pointer",fontFamily:"poppins",height:"1.6rem"},children:"Not Used"})}):null},{title:"User Generated Details",dataIndex:"UserKeyDetails",key:"UserKeyDetails",align:"center",render:(e,t,n)=>(null==D?void 0:D.length)>=1?Ye.jsx("a",{style:{fontSize:"25px"},onClick:()=>{ce(t)},children:Ye.jsx(ty,{})}):null},{title:"Action",dataIndex:"Action",key:"Action",render:(e,t,n)=>(null==D?void 0:D.length)>=1?Ye.jsx(P,{size:"middle",children:Ye.jsx("a",{children:(null==t?void 0:t.UniqueId)&&"A"==(null==t?void 0:t.ActiveStatus)?Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>de(t)}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>de(t)})})}):null}],se=[{title:"Si.No",key:"sno",align:"center",width:"100px",render:(e,t,n)=>Ye.jsx("a",{style:{color:"black"},children:10*(K-1)+n+1})},{title:"App Name",dataIndex:"AppName",key:"AppName",align:"left",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:e}),ellipsis:!0},{title:"Company Name",dataIndex:"CompanyName",key:"CompanyName",width:"200px",align:"left"},{title:"Branch Name",dataIndex:"BranchName",key:"BranchName"},{title:"User Name",dataIndex:"UserName",key:"UserName"},{title:"Activation Key",dataIndex:"ActivationKey",key:"ActivationKey",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:e}),ellipsis:!0},{title:"Device No",dataIndex:"DeviceNo",key:"DeviceNo",render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:e}),ellipsis:!0},{title:"Reason",dataIndex:"Reason",key:"Reason",align:"center",ellipsis:!0,render:(e,t)=>Ye.jsx("a",{style:{color:"black"},children:e})}],le=async(t,i)=>{var a,r;null==(a=null==n?void 0:n.current)||a.setFieldsValue({DevId:null==t?void 0:t.DeviceNo}),M(t),T("Y"),F(!0);let s=await e(tte({TypeName:"Device Status"})).unwrap();1==s.data.statusCode?Q(null==(r=null==s?void 0:s.data)?void 0:r.data):(l("error"),d(null==s?void 0:s.data.response))},oe=()=>{var e;null==(e=null==n?void 0:n.current)||e.resetFields(),F(!1),T("Y"),q(!1)},de=async(t,n)=>{var a,r,s;let o={UniqueId:null==t?void 0:t.UniqueId,ActiveStatus:"A"==(null==t?void 0:t.ActiveStatus)?"D":"A",Reason:(null==t?void 0:t.Reason)?null==t?void 0:t.Reason:"",updatedBy:i},c=await e(ite(o)).unwrap();1==(null==(a=null==c?void 0:c.data)?void 0:a.statusCode)?(l("success"),d(null==(r=null==c?void 0:c.data)?void 0:r.response),ie()):(l("error"),d(null==(s=null==c?void 0:c.data)?void 0:s.response))},ce=e=>{q(!0),Y(null==e?void 0:e.UserKeyDetails)},ue=async()=>{let t=n.current.getFieldValue(),a={UniqueId:null==O?void 0:O.UniqueId,AppId:null==O?void 0:O.AppId,CompId:null==O?void 0:O.CompId,BranchId:null==O?void 0:O.BranchId,UserId:null==O?void 0:O.UserId,ActivationKey:null==O?void 0:O.ActivationKey,DeviceNo:null==O?void 0:O.DeviceNo,DeviceStatus:null==t?void 0:t.DevStatus,SyncStatus:B,SalesCount:parseInt(null==t?void 0:t.SalesCount),Reason:null==t?void 0:t.Description,UpdatedBy:i},r=await e(nte(a)).unwrap();1==r.data.statusCode?(F(!1),l("success"),d(r.data.response),ie()):(l("error"),d(r.data.response))};return Ye.jsxs("div",{className:"pageOverAll",children:[Ye.jsx("div",{className:"userPage",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:s,messageData:o,onComplete:ne}),Ye.jsx("div",{className:"formName",children:Ye.jsx(ab,{title:"Activation key Generation"})}),Ye.jsxs("div",{className:"formDiv",children:[Ye.jsx(I,{ref:t,className:"formDivAnt",onFinish:ue,children:Ye.jsx("div",{className:"formDivS",children:Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"1rem",alignItems:"center"},children:[Ye.jsx(I.Item,{name:"AppId",rules:[{required:!0,message:"Please Select Application Name "}],children:Ye.jsx(_y,{options:null==c?void 0:c.map((e=>({value:e.AppId,label:e.AppName}))),placeholder:"AppId",label:Ye.jsx("label",{className:"required",children:"Application Name"}),className:"field-DropDown",isOnchanges:!!p,onChangeFunction:async n=>{var i,a,r,s;A(n),null==(i=t.current)||i.setFieldsValue({AppId:n});let o=await e($ee({AppId:n})).unwrap();1==(null==(a=null==o?void 0:o.data)?void 0:a.statusCode)?f(null==(r=null==o?void 0:o.data)?void 0:r.data):(l("error"),d(null==(s=null==o?void 0:o.data)?void 0:s.response))},valueData:p})}),Ye.jsx(I.Item,{name:"CompId",rules:[{required:!0,message:"Please Select Company Name "}],children:Ye.jsx(_y,{options:null==h?void 0:h.map((e=>({value:e.CompId,label:e.CompName}))),placeholder:"AppId",label:Ye.jsx("label",{className:"required",children:"Company Name"}),className:"field-DropDown",isOnchanges:!!m,onChangeFunction:async n=>{var i,a,r,s,o,c,u,A,h,f,m,g,x,w,C,N,I,F,B,P,k,T,E,L,U,_,O;v(n),null==(i=t.current)||i.setFieldsValue({CompId:n}),b(),null==(a=t.current)||a.setFieldsValue({BranchId:null}),S(),null==(r=t.current)||r.setFieldsValue({UserId:null});let M=await e(Xee({AppId:p,CompId:n})).unwrap();if(1==(null==(s=null==M?void 0:M.data)?void 0:s.statusCode))if(y(null==(o=null==M?void 0:M.data)?void 0:o.data),1===(null==(u=null==(c=null==M?void 0:M.data)?void 0:c.data)?void 0:u.length)){b(null==(h=null==(A=null==M?void 0:M.data)?void 0:A.data)?void 0:h[0].BrId),null==(g=t.current)||g.setFieldsValue({BrId:null==(m=null==(f=null==M?void 0:M.data)?void 0:f.data)?void 0:m[0].BrId});let n=await e(Jee({Type:"AE",BranchId:null==(w=null==(x=null==M?void 0:M.data)?void 0:x.data)?void 0:w[0].BrId})).unwrap();if(1==(null==(C=null==n?void 0:n.data)?void 0:C.statusCode))if(1==(null==(I=null==(N=null==n?void 0:n.data)?void 0:N.data)?void 0:I.length)){let e=(null==(F=null==n?void 0:n.data)?void 0:F.data).filter((e=>!(null==D?void 0:D.some((t=>t.UserId===e.UserId)))));j(e),S(null==(B=null==e?void 0:e[0])?void 0:B.UserId),null==(k=null==t?void 0:t.current)||k.setFieldsValue({UserId:null==(P=null==e?void 0:e[0])?void 0:P.UserId})}else{let e=null==(T=null==n?void 0:n.data)?void 0:T.data,t=null==e?void 0:e.filter((e=>!(null==D?void 0:D.some((t=>t.UserId===e.UserId)))));j(t)}else l("error"),d(null==(E=null==n?void 0:n.data)?void 0:E.response)}else b(),null==(L=t.current)||L.setFieldsValue({BrId:null}),S(),null==(U=t.current)||U.setFieldsValue({UserId:null}),y(null==(_=null==M?void 0:M.data)?void 0:_.data);else l("error"),d(null==(O=null==M?void 0:M.data)?void 0:O.response)},valueData:m})}),Ye.jsx(I.Item,{name:"BrId",rules:[{required:!0,message:"Please Select Branch Name "}],children:Ye.jsx(_y,{options:null==g?void 0:g.map((e=>({value:e.BrId,label:e.BrName}))),placeholder:"BrId",label:Ye.jsx("label",{className:"required",children:"Branch Name"}),className:"field-DropDown",isOnchanges:null!=x,onChangeFunction:async n=>{var i,a,r,s,o,c,u,p;b(n),null==(i=t.current)||i.setFieldsValue({BranchId:n});let A=await e(Jee({Type:"AE",BranchId:n})).unwrap();if(1==(null==(a=null==A?void 0:A.data)?void 0:a.statusCode))if(1==(null==(s=null==(r=null==A?void 0:A.data)?void 0:r.data)?void 0:s.length)){let e=(null==(o=null==A?void 0:A.data)?void 0:o.data).filter((e=>!(null==D?void 0:D.some((t=>t.UserId===e.UserId)))));j(e),S(null==e?void 0:e[0].UserId),null==(c=t.current)||c.setFieldsValue({UserId:null==e?void 0:e[0].UserId})}else{let e=(null==(u=null==A?void 0:A.data)?void 0:u.data).filter((e=>!(null==D?void 0:D.some((t=>t.UserId===e.UserId)))));j(e),S()}else l("error"),d(null==(p=null==A?void 0:A.data)?void 0:p.response)},valueData:x})}),Ye.jsx(I.Item,{name:"UserId",rules:[{required:!0,message:"Please Select User Name "}],children:Ye.jsx(_y,{options:null==w?void 0:w.map((e=>({value:e.UserId,label:e.UserName}))),placeholder:"UserId",label:Ye.jsx("label",{className:"required",children:"User Name"}),className:"field-DropDown",isOnchanges:null!=C,onChangeFunction:async e=>{var n;S(e),null==(n=t.current)||n.setFieldsValue({UserId:e})},valueData:C})}),Ye.jsx(me,{onClick:()=>(async()=>{var n;if(p&&m&&x&&C){let a={AppId:p,CompId:m,BranchId:x,UserId:C,CreatedBy:i},r=await e(Zee(a)).unwrap();1==(null==r?void 0:r.data.statusCode)?(A(),v(),b(),S(),f(),y(),j(),null==(n=t.current)||n.resetFields(),await e(ete()),l("success"),d(r.data.response),ie()):(l("error"),d(null==r?void 0:r.data.response))}else l("error"),d("Choose All The Req Fields")})(),style:{fontSize:"20px",marginBottom:"40px"}})]})})}),Ye.jsxs("div",{className:"reportTable",style:{maxHeight:"57vh"},children:[Ye.jsx(Vb,{columns:re,data:D,dataSource:D,pagination:e=>{X(e)},onChange:ae})," "]})]})]})}),Ye.jsx(SP,{title:"Key Generation",width:1e3,open:N,children:Ye.jsx(Ye.Fragment,{children:Ye.jsx("div",{className:"purchase-info-model",children:Ye.jsx("div",{className:"formDivS",children:Ye.jsxs(I,{ref:n,className:"formDivAnt",onFinish:ue,children:[Ye.jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"1rem"},children:[Ye.jsx(I.Item,{name:"DevId",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please Enter Device Id"}],children:Ye.jsx(Oy,{field:"DevId",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Device Id"}),fieldState:!0,disabled:null==O?void 0:O.DeviceNo,isOnChange:!!(null==O?void 0:O.DeviceNo)})}),Ye.jsx(I.Item,{name:"DevStatus",rules:[{required:!0,message:"Please Select Device Status"}],children:Ye.jsx(_y,{options:null==R?void 0:R.map((e=>({value:e.ConfigId,label:e.ConfigName}))),placeholder:"AppId",label:Ye.jsx("label",{className:"required",children:"Device Status"}),className:"field-DropDown",isOnchanges:!!H,onChangeFunction:e=>{V(e),null==n||n.current.setFieldsValue({DevStatus:e})},valueData:H})}),Ye.jsxs("div",{style:{display:"flex",gap:"1rem"},children:[Ye.jsx("h3",{style:{marginTop:"0.5rem"},children:" Sync Status: "}),Ye.jsx(fk,{content:[{value:"Y",label:"Yes"},{value:"N",label:"No"}],defaultSelect:"Y",value:B,onSelectFuntion:e=>(e=>{T(e)})(e)})]}),"N"==B&&Ye.jsx(Ye.Fragment,{children:Ye.jsx(I.Item,{name:"SalesCount",rules:[{required:!0,pattern:/^(?!\s*$).+/,message:"Please enter Sales Count"}],children:Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Oy,{field:"SalesCount",autoComplete:"off",label:Ye.jsx("label",{className:"required",children:"Sales Count"}),fieldState:!0,fieldApi:!0}),Ye.jsx("div",{style:{fontSize:"0.75rem",color:"#888",marginTop:"4px"},children:"Please enter an approximate sales count since the last sync."})]})})}),Ye.jsx(I.Item,{name:"Description",rules:[{pattern:/^(?!\s*$).+/,message:"Please Enter Description"}],children:Ye.jsx(My,{field:"Description",autoComplete:"off",label:"Description",fieldState:!0,fieldApi:!0})})]}),Ye.jsx("div",{style:{width:"100%",display:"flex",justifyContent:"flex-end"},children:Ye.jsx(Ry,{buttonText:"SUBMIT",color:"901D77",icon:Ye.jsx(k,{}),htmlType:!0})})]})})})}),handleCancel:()=>oe()}),Ye.jsx(SP,{title:"",width:1500,open:z,footer:!1,buttonText:"Submit",children:Ye.jsx("div",{style:{display:"flex",width:"100%",height:"100%",flexDirection:"column",gap:"0.5rem"},children:Ye.jsx("div",{style:{display:"flex",width:"100%",gap:"2rem",flexDirection:"column"},children:Ye.jsx("div",{className:"reportTable-abstruct",children:Ye.jsx(E,{columns:se,data:W,dataSource:W,pagination:e=>{G(e)},onChange:ae})})})}),handleCancel:()=>{oe()}})]})},empAccess:"Activationkey Generation"},{path:"gateway-master-configuration/new",component:e=>Ye.jsx(jfe,{...e,formType:"add"}),empAccess:"Gateway Master Configuration"},{path:"gateway-master-configuration/update",component:e=>Ye.jsx(jfe,{...e,formType:"edit"}),empAccess:"Gateway Master Configuration"},{path:"gateway-master-configuration/list",component:()=>{const e=um(),t=Qt(),[n,i]=a.useState(""),[r,s]=a.useState(""),[l,o]=a.useState(""),[d,c]=a.useState(1),[u,p]=a.useState("S"),[A,h]=a.useState([]);a.useEffect((()=>{e(Gh({items:f}))}),[]);const f=[{name:"Home",link:`${Sfe}landing-page/home`},{name:"Gateway Master Configuration",link:`${Sfe}setting/gateway-master-configuration/new`},{name:"Gateway Master Configuration List",link:`${Sfe}setting/gateway-master-configuration/list`}];a.useEffect((()=>{(async()=>{var t,n;try{const i=await(null==(t=e(kA({ServiceType:u})))?void 0:t.unwrap());(null==(n=null==i?void 0:i.data)?void 0:n.data)&&i.data.data.length>0&&1===i.data.statusCode?h(i.data.data):h([])}catch(i){}})()}),[u]);const m=[{title:"SI.NO",key:"sno",align:"center",width:"80px",render:(e,t,n)=>Ye.jsx("span",{children:10*(d-1)+n+1})},{title:"Provider",dataIndex:"ProviderName",key:"ProviderName",align:"center"},{title:"API Key",dataIndex:"APIKey",key:"APIKey",align:"center"},{title:"API Secret",dataIndex:"APISecret",key:"APISecret",align:"center"},..."E"!==u?[{title:"Sender Number",dataIndex:"SenderNumber",key:"SenderNumber",align:"center"},{title:"API URL",dataIndex:"APIUrl",key:"APIUrl",align:"center"}]:[],{title:"Action",key:"Action",align:"center",render:(e,n,a)=>A.length>=1?Ye.jsx(P,{size:"middle",children:"A"===n.ActiveStatus?Ye.jsxs("div",{className:"actionDiv",children:[Ye.jsx(D,{style:{color:"#1292EE"},onClick:()=>((e,n)=>{i("info"),s(`Editing config for ${e.AppName}`),"D"!==e.ActiveStatus&&t(`${Sfe}setting/gateway-master-configuration/update`,{state:{editstate:e}},{key:n})})(n,a)}),Ye.jsx(L,{style:{color:"#FF4D4F"},onClick:()=>(e=>{i("success"),s(`Deleted config for ${e.AppName}`)})(n)})]}):Ye.jsx(U,{style:{color:"#52C41A"},onClick:()=>(e=>{i("success"),s(`Reloaded config for ${e.AppName}`)})(n)})}):null}],v=A.filter((e=>{var t,n,i,a,r;if(!l)return!0;const s=l.toLowerCase();return(null==(t=e.ProviderName)?void 0:t.toLowerCase().includes(s))||(null==(n=e.APIKey)?void 0:n.toLowerCase().includes(s))||(null==(i=e.APISecret)?void 0:i.toLowerCase().includes(s))||"E"!==u&&((null==(a=e.SenderNumber)?void 0:a.toLowerCase().includes(s))||(null==(r=e.APIUrl)?void 0:r.toLowerCase().includes(s)))})),g=a.useCallback((()=>{s(null),i(null)}),[]);return Ye.jsx("div",{className:"userPageTable",children:Ye.jsxs("div",{className:"userPageContent",children:[Ye.jsx(Qy,{messageType:n,messageData:r,onComplete:g}),Ye.jsxs("div",{className:"formAddNew",children:[Ye.jsx("div",{children:Ye.jsx(ab,{title:"Gateway Master Configuration"})}),Ye.jsxs("div",{className:"searchAddDiv",children:[Ye.jsx("div",{className:"formSearch",children:Ye.jsx(Cfe,{placeholder:"Search by Provider / API Key / API Secret",allowClear:!0,enterButton:"Search",size:"middle",value:l,onSearch:e=>{o(e),c(1)},onChange:e=>{var t;o(null==(t=null==e?void 0:e.target)?void 0:t.value),c(1)}})}),Ye.jsx(Ry,{buttonText:"Add New",handleSubmit:()=>{t(`${Sfe}setting/gateway-master-configuration/new`)},color:"901D77",icon:Ye.jsx(C,{})})]}),Ye.jsxs("div",{className:"gateway-tabs-list",children:[Ye.jsx("div",{onClick:()=>p("S"),className:"gateway-tab-item "+("S"===u?"active":""),children:"SMS Gateway"}),Ye.jsx("div",{onClick:()=>p("W"),className:"gateway-tab-item "+("W"===u?"active":""),children:"WhatsApp Gateway"}),Ye.jsx("div",{onClick:()=>p("E"),className:"gateway-tab-item "+("E"===u?"active":""),children:"Email Gateway"})]}),Ye.jsx("div",{className:"reportTable",children:Ye.jsx(Vb,{columns:m,data:v,dataSource:v,pagination:{current:d,pageSize:10,onChange:e=>{c(e)}}})})]})]})})},empAccess:"Gateway Master Configuration"}]}],Rfe={isOpen:!1,orientation:void 0},Qfe=(e,t)=>{globalThis.dispatchEvent(new globalThis.CustomEvent("devtoolschange",{detail:{isOpen:e,orientation:t}}))},Hfe=({emitEvents:e=!0}={})=>{const t=globalThis.outerWidth-globalThis.innerWidth>170,n=globalThis.outerHeight-globalThis.innerHeight>170,i=t?"vertical":"horizontal";n&&t||!(globalThis.Firebug&&globalThis.Firebug.chrome&&globalThis.Firebug.chrome.isInitialized||t||n)?(Rfe.isOpen&&e&&Qfe(!1,void 0),Rfe.isOpen=!1,Rfe.orientation=void 0):(Rfe.isOpen&&Rfe.orientation===i||!e||Qfe(!0,i),Rfe.isOpen=!0,Rfe.orientation=i)};Hfe({emitEvents:!1}),setInterval(Hfe,500);const Vfe="https://www.pozo.dev",zfe=()=>{const[e]=gn();(e=>{const t=Mt(),n=iA("UserId"),i=iA("AppId");a.useEffect((()=>{const a=JSON.parse(localStorage.getItem("visitLogFormat")||"null"),r={VisitTime:(new Date).toISOString(),Location:null==t?void 0:t.pathname};let s;if(a){const t=Array.isArray(a.LocationVistDtl)?a.LocationVistDtl:[];s={...a,PricingId:(null==e?void 0:e.PricingId)||a.PricingId||null,LocationVistDtl:[...t,r]}}else s={UserId:n,AppId:i,PricingId:(null==e?void 0:e.PricingId)||null,LocationVistDtl:[r]};localStorage.setItem("visitLogFormat",JSON.stringify(s))}),[t,e])})();const t=Qt(),n=um();a.useState(!1),a.useEffect((()=>{}),[e]),a.useEffect((()=>{const e=e=>{if(window.location.pathname.includes("PostEditorPage"))return;iA("SessionId")?window.history.go(1):(rA(),window.location.replace(`${Vfe}`))};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}}),[]),a.useEffect((()=>{if(new URLSearchParams(window.location.search).has("SD")){const e=new URL(window.location);e.search="",window.history.replaceState({},document.title,e.toString())}else i()}),[t]);const i=async()=>{var e,t;const i=iA("UserId"),a=iA("SessionId");if(i&&a&&sessionStorage.getItem("auth")){const r=await n(mm({UserId:i,SessionId:a})).unwrap();1===(null==(e=null==r?void 0:r.data)?void 0:e.statusCode)&&"False"===(null==(t=null==r?void 0:r.data)?void 0:t.response)&&(rA(),window.location.replace(`${Vfe}`))}};return Ye.jsx(Jte,{routesConfig:Mfe})};Ke.createRoot(document.getElementById("root")).render(Ye.jsx(lm,{store:Gte,children:Ye.jsx(cn,{children:Ye.jsx(iU,{children:Ye.jsx(zfe,{})})})}));export{vE as F,mhe as G,IO as H,JE as I,An as L,eg as R,_Ae as S,_U as V,Mt as a,Tf as b,D_ as c,fhe as d,um as e,jm as f,kce as g,nA as h,mE as i,Ye as j,fE as k,vm as l,gm as m,xm as n,M_ as o,W_ as s,Qt as u,ym as v};
|