Current File : /home/d/i/g/digitaw/www/wp-content/plugins/embed-lottie-player/build/admin-dashboard.js
(()=>{var e={533:()=>{!function(e){"use strict";var t=Object.defineProperty,n=Object.defineProperties,a=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,i=(e,n,a)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,s=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&i(e,n,t[n]);if(r)for(var n of r(t))l.call(t,n)&&i(e,n,t[n]);return e},c=(e,t,n)=>i(e,"symbol"!=typeof t?t+"":t,n);const u={Log(...e){console&&console.log&&console.log(...e)},Error(...e){console&&console.error&&console.error(...e)},Warn(...e){console&&console.warn&&console.warn(...e)},Debug(...e){console&&console.debug&&console.debug(...e)}};function h(e,t){const n=e.contentWindow,a=e.src,r={};if(!n||!a)return null;const o=function(e){if(!(e&&e.origin&&e.origin.indexOf("js.stripe.com")>0||e.origin.indexOf("www.paypal.com")>0)&&e.origin===t&&e&&e.data&&"string"==typeof e.data&&"{"===e.data.charAt(0))try{const t=JSON.parse(e.data);"object"==typeof t&&t.type&&r[t.type]&&r[t.type].forEach((e=>{e(t.data)}))}catch(e){u.Error(e)}};return window.addEventListener("message",o),{on(e,t){r[e]||(r[e]=[]),r[e].push(t)},one(e,t,n=!1){n&&delete r[e],!r[e]&&this.on(e,t)},destroy(){window.removeEventListener("message",o)},post(e,t){n.postMessage(JSON.stringify({type:e,data:t}),a.replace(/([^:]+:\/\/[^/]+).*/,"$1"))}}}const m=2147483647;function d(e){return void 0===e||"function"==typeof e||"object"==typeof e&&null!==e}function p(){return"undefined"==typeof window}function f(e,t){if(null==e)throw new Error(t)}class v{constructor(e){c(this,"styleElement"),c(this,"bodyScrollDisableClassName"),c(this,"isFlashingBrowser"),c(this,"overflow",{x:0,y:0}),c(this,"metaColorSchemeValue",null),c(this,"metaColorSchemeElement",null),this.guid=e,this.bodyScrollDisableClassName=`is-fs-checkout-open-${this.guid}`,this.styleElement=document.createElement("style"),this.styleElement.textContent+=this.getBasicStyle(),this.isFlashingBrowser=function(){let e=!1;try{const t=navigator.userAgent.toLowerCase();/edge\/|trident\/|msie /.test(t)?e=!0:-1!==t.indexOf("safari")&&(t.indexOf("chrome")>-1||(e=!0))}catch(e){}return e}()||!p()&&!!document.querySelector("#___gatsby"),this.metaColorSchemeElement=document.head.querySelector('meta[name="color-scheme"]')}addStyle(e){this.styleElement.textContent+=e}attach(){return document.head.appendChild(this.styleElement),this}remove(){return document.head.removeChild(this.styleElement),this}disableBodyScroll(){this.backupScrollPosition(),document.body.classList.add(this.bodyScrollDisableClassName)}enableBodyScroll(){document.body.classList.remove(this.bodyScrollDisableClassName),this.restoreScrollPosition()}disableMetaColorScheme(){this.metaColorSchemeElement&&(this.metaColorSchemeValue=this.metaColorSchemeElement.getAttribute("content"),this.metaColorSchemeElement.setAttribute("content","light"))}enableMetaColorScheme(){this.metaColorSchemeElement&&this.metaColorSchemeValue&&(this.metaColorSchemeElement.setAttribute("content",this.metaColorSchemeValue),this.metaColorSchemeValue=null)}getBasicStyle(){return`body.${this.bodyScrollDisableClassName} { overflow: hidden !important; }`}backupScrollPosition(){this.overflow={x:document.documentElement.scrollTop,y:document.documentElement.scrollLeft}}restoreScrollPosition(){document.documentElement.scrollTop=this.overflow.x,document.documentElement.scrollLeft=this.overflow.y}}class g{constructor(e,t,n="Loading Freemius Checkout"){c(this,"loaderElement"),c(this,"isOpen",!1),c(this,"loaderElementId"),this.style=e,this.loaderElementId=`fs-loader-${this.style.guid}`,this.loaderElement=document.createElement("div"),this.loaderElement.id=this.loaderElementId,this.loaderElement.innerHTML=`<img src="${t}" alt="${n}" />`,this.style.addStyle(this.getStyle())}show(){return this.isOpen||(this.loaderElement.classList.add("show"),document.body.appendChild(this.loaderElement),this.isOpen=!0),this}hide(){return this.isOpen?(this.loaderElement.classList.remove("show"),document.body.removeChild(this.loaderElement),this.isOpen=!1,this):this}getStyle(){return`#${this.loaderElementId} { display: none; position: fixed; z-index: ${m-1}; width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; text-align: left; background: rgba(0, 0, 0, 0.6); transition: opacity 200ms ease-out; will-change: opacity; opacity: 0; } #${this.loaderElementId}.show { opacity: 1; display: block; } #${this.loaderElementId} img { position: absolute; top: 40%; left: 50%; width: auto; height: auto; margin-left: -25px; background: #fff; padding: 10px; border-radius: 50%; box-shadow: 2px 2px 2px rgba(0,0,0,0.1); }`}}class y{constructor(e,t,n,a,r){c(this,"postman",null),c(this,"iFrame"),c(this,"loadedEventListeners",new Set),c(this,"closedEventListeners",new Set),this.baseUrl=e,this.visibleClass=a,this.checkoutEvents=r,this.iFrame=this.attachIFrame(e,t,n),this.addEventListeners()}close(){var e;null==(e=this.postman)||e.post("close",null)}onClosed(e){this.closedEventListeners.add(e)}onLoaded(e){this.loadedEventListeners.add(e)}addToExitIntent(e){e.addListener((()=>{var e,t,n;null==(e=this.postman)||e.post("exit_intent",null),null==(n=(t=this.checkoutEvents).onExitIntent)||n.call(t)}))}attachIFrame(e,t,n){const a=`${e}/?${function(e){const t=[];return Object.keys(e).forEach((n=>{const a=function(e){return d(e)?null:null===e?"null":!0===e?"1":!1===e?"0":encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}(e[n]);null!==a&&t.push(`${n}=${a}`)})),t.join("&")}(t)}#${encodeURIComponent(document.location.href)}`,r=document.createElement("iframe");return r.id=n,r.src=a,r.setAttribute("allowTransparency","true"),r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("style","background: rgba(0,0,0,0.003); border: 0 none transparent;"),r.setAttribute("frameborder","0"),r.setAttribute("data-testid",r.id),document.body.appendChild(r),r}addEventListeners(){var e,t,n,a,r;const{success:o,purchaseCompleted:l,cancel:i,track:s,afterOpen:c,afterClose:m}=this.checkoutEvents;this.postman=h(this.iFrame,this.baseUrl),null==(e=this.postman)||e.one("upgraded",(e=>{try{null==o||o(e)}catch(e){u.Error(e)}this.dispatchOnClosed(),this.removeIFrameAndPostman(),null==m||m()}),!0),null==(t=this.postman)||t.one("purchaseCompleted",(e=>{try{null==l||l(e)}catch(e){u.Error(e)}}),!0),null==(n=this.postman)||n.one("canceled",(()=>{try{null==i||i()}catch(e){u.Error(e)}this.dispatchOnClosed(),this.removeIFrameAndPostman(),null==m||m()}),!0),null==(a=this.postman)||a.on("track",(e=>{try{null==s||s(e.event,e)}catch(e){u.Error(e)}})),null==(r=this.postman)||r.one("loaded",(()=>{var e;this.dispatchOnLoaded(),null==(e=this.iFrame)||e.classList.add(this.visibleClass);try{null==c||c()}catch(e){u.Error(e)}}),!0)}removeIFrameAndPostman(){var e;null==(e=this.postman)||e.destroy(),this.postman=null,this.iFrame.remove(),this.closedEventListeners.clear(),this.loadedEventListeners.clear()}dispatchOnLoaded(){this.loadedEventListeners.forEach((e=>e()))}dispatchOnClosed(){this.closedEventListeners.forEach((e=>e()))}}const w=class e{constructor(e,t,n){c(this,"iFrameID"),this.style=e,this.options=t,this.baseUrl=n,this.iFrameID=`fs-checkout-page-${this.style.guid}`}create(t){const n=s(s({},this.options),t);return new y(this.baseUrl,this.getQueryParams(n),this.iFrameID,e.VISIBLE_CLASS,n)}addStyle(){this.style.addStyle(this.getStyle())}getQueryParams(e){const t={mode:"dialog",guid:this.style.guid,_fs_checkout:!0};Object.entries(e).forEach((([e,n])=>{d(n)||(t[e]=n)}));const{sandbox:n}=e;return n&&n.ctx&&n.token&&(t.s_ctx_ts=n.ctx,t.sandbox=n.token),t}getStyle(){return`#${this.iFrameID} { z-index: ${m-1}; background: rgba(0,0,0,0.003); border: 0 none transparent; visibility: ${this.style.isFlashingBrowser?"hidden":"visible"}; margin: 0; padding: 0; position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; -webkit-tap-highlight-color: transparent; overflow: hidden; } #${this.iFrameID}.${e.VISIBLE_CLASS} { visibility: visible; }`}};c(w,"VISIBLE_CLASS","show");let E=w;class b{constructor(e,t,n,a,r){c(this,"checkoutIFrameBuilder"),c(this,"checkoutIFrame",null),this.style=e,this.exitIntent=t,this.loader=n,this.checkoutIFrameBuilder=new E(this.style,r,a),this.checkoutIFrameBuilder.addStyle()}isOpen(){return null!==this.checkoutIFrame}open(e){return this.isOpen()||(this.style.disableBodyScroll(),this.style.disableMetaColorScheme(),this.loader.show(),this.exitIntent.attach(),this.checkoutIFrame=this.checkoutIFrameBuilder.create(e),this.checkoutIFrame.onLoaded(this.onLoaded.bind(this)),this.checkoutIFrame.onClosed(this.onClosed.bind(this)),this.checkoutIFrame.addToExitIntent(this.exitIntent)),this}close(){var e;return null==(e=this.checkoutIFrame)||e.close(),this}onLoaded(){this.loader.hide()}onClosed(){this.checkoutIFrame=null,this.loader.hide(),this.style.enableBodyScroll(),this.style.enableMetaColorScheme(),this.exitIntent.detach()}}class C{constructor(e){c(this,"exitIntentId"),c(this,"exitIntentDiv",null),c(this,"clearExitIntentListener",null),c(this,"listeners",[]),this.style=e,this.exitIntentId=`fs-exit-intent-${this.style.guid}`,this.style.addStyle(this.getStyle())}isAttached(){return null!==this.exitIntentDiv}addListener(...e){this.listeners.push(...e)}attach(...e){if(e&&this.addListener(...e),this.isAttached())return this;this.exitIntentDiv=document.createElement("div"),this.exitIntentDiv.id=this.exitIntentId,document.body.appendChild(this.exitIntentDiv);const t=document.documentElement;let n=null;const a=e=>{e.pageY<=20&&(n=window.setTimeout((()=>{try{this.fireListeners()}catch(e){u.Error(e)}}),300))},r=()=>{n&&(clearTimeout(n),n=null)};return t.addEventListener("mouseleave",a),t.addEventListener("mouseenter",r),this.clearExitIntentListener=()=>{n&&(clearTimeout(n),n=null),t.removeEventListener("mouseleave",a),t.removeEventListener("mouseenter",r)},this}detach(){var e,t;return this.isAttached()?(null==(e=this.exitIntentDiv)||e.remove(),this.exitIntentDiv=null,null==(t=this.clearExitIntentListener)||t.call(this),this):this}fireListeners(){this.listeners.forEach((e=>{e()}))}getStyle(){return`#${this.exitIntentId} { z-index: ${m}; border: 0; background: transparent; position: fixed; padding: 0; margin: 0; height: 10px; left: 0; right: 0; width: 100%; top: 0; }`}}const x=class e{constructor(e){c(this,"queryParams",null),this.url=e,this.queryParams=this.parseQueryStringForCart()}hasCart(){return null!==this.queryParams}getPluginID(){return f(this.queryParams,e.NO_CART_FOUND_MESSAGE),this.queryParams.__fs_plugin_id}getPluginPublicKey(){return f(this.queryParams,e.NO_CART_FOUND_MESSAGE),this.queryParams.__fs_plugin_public_key}matchesPluginID(e){const t=Number.parseInt(this.getPluginID(),10),n=Number.parseInt(e.toString(),10);return Number.isFinite(t)&&Number.isFinite(n)&&t===n}getCheckoutOptions(){f(this.queryParams,e.NO_CART_FOUND_MESSAGE);const t={plugin_id:"",public_key:""};return Object.entries(this.queryParams).forEach((([e,n])=>{"__fs_plugin_id"===e?t.plugin_id=n:"__fs_plugin_public_key"===e?t.public_key=n:t[e]=n})),t}parseQueryStringForCart(){const e=new URLSearchParams(this.url.search);if(!e.has("__fs_authorization"))return null;const t={};return e.forEach(((e,n)=>{n.startsWith("__fs_")&&(t[n]=e)})),t}};c(x,"NO_CART_FOUND_MESSAGE","No cart was found");let L=x;class k{constructor(e,t=!0,i="https://checkout.freemius.com"){var u;c(this,"options",{plugin_id:0,public_key:""}),c(this,"guid"),c(this,"style"),c(this,"loader"),c(this,"checkoutPopup"),c(this,"exitIntent"),c(this,"cart"),this.baseUrl=i;const h=e,{plugin_id:m,product_id:d,public_key:f}=h,y=((e,t)=>{var n={};for(var a in e)o.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&r)for(var a of r(e))t.indexOf(a)<0&&l.call(e,a)&&(n[a]=e[a]);return n})(h,["plugin_id","product_id","public_key"]);if(!m&&!d)throw new Error("Must provide a product_id to options.");if(!f)throw new Error("Must provide the public_key to options.");this.options=((e,t)=>n(e,a(t)))(s({},y),{public_key:f,plugin_id:null!=d?d:m}),this.guid=function(){const e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}(),!p()&&(this.style=new v(this.guid),this.loader=new g(this.style,null!=(u=e.loadingImageUrl)?u:`${this.baseUrl}/assets/img/spinner.svg`,e.loadingImageAlt),this.exitIntent=new C(this.style),this.checkoutPopup=new b(this.style,this.exitIntent,this.loader,this.baseUrl,this.options),this.style.attach(),this.cart=new L(new URL(window.location.href)),t&&this.recoverCart())}open(e){var t,n;if(!p()){if(null!=(t=this.checkoutPopup)&&t.isOpen())return void u.Warn("Checkout popup already open. Please close it first before opening it again.");null==(n=this.checkoutPopup)||n.open(e)}}close(){var e;p()||null==(e=this.checkoutPopup)||e.close()}destroy(){var e;p()||(this.close(),null==(e=this.style)||e.remove())}getGuid(){return this.guid}recoverCart(){var e,t;if(null!=(e=this.cart)&&e.hasCart()&&null!=(t=this.cart)&&t.matchesPluginID(this.options.plugin_id)){const e=this.cart.getCheckoutOptions();this.open(e)}}}window.FS=window.FS||{},window.FS.Checkout=k,window.FS.postman=h,window.FS.Logger=u,e.Checkout=k,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}({})},744:(e,t,n)=>{"use strict";var a=n(795);t.H=a.createRoot,a.hydrateRoot},795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}(()=>{"use strict";const e=window.React;var t=n(744),a="popstate";function r(e={}){return function(e,t,n,r={}){let{window:l=document.defaultView,v5Compat:u=!1}=r,h=l.history,m="POP",d=null,p=f();function f(){return(h.state||{idx:null}).idx}function v(){m="POP";let e=f(),t=null==e?null:e-p;p=e,d&&d({action:m,location:y.location,delta:t})}function g(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),o(n,"No window.location.(origin|href) available to create URL");let a="string"==typeof e?e:c(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=n+a),new URL(a,n)}(e)}null==p&&(p=0,h.replaceState({...h.state,idx:p},""));let y={get action(){return m},get location(){return e(l,h)},listen(e){if(d)throw new Error("A history only accepts one active listener");return l.addEventListener(a,v),d=e,()=>{l.removeEventListener(a,v),d=null}},createHref:e=>t(l,e),createURL:g,encodeLocation(e){let t=g(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){m="PUSH";let a=s(y.location,e,t);n&&n(a,e),p=f()+1;let r=i(a,p),o=y.createHref(a);try{h.pushState(r,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(o)}u&&d&&d({action:m,location:y.location,delta:1})},replace:function(e,t){m="REPLACE";let a=s(y.location,e,t);n&&n(a,e),p=f();let r=i(a,p),o=y.createHref(a);h.replaceState(r,"",o),u&&d&&d({action:m,location:y.location,delta:0})},go:e=>h.go(e)};return y}((function(e,t){let{pathname:n="/",search:a="",hash:r=""}=u(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),s("",{pathname:n,search:a,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),a="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");a=-1===n?t:t.slice(0,n)}return a+"#"+("string"==typeof t?t:c(t))}),(function(e,t){l("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function o(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function i(e,t){return{usr:e.state,key:e.key,idx:t}}function s(e,t,n=null,a){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?u(t):t,state:n,key:t&&t.key||a||Math.random().toString(36).substring(2,10)}}function c({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function u(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function h(e,t,n="/"){return function(e,t,n,a){let r=k(("string"==typeof t?u(t):t).pathname||"/",n);if(null==r)return null;let o=m(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let l=null;for(let e=0;null==l&&e<o.length;++e){let t=L(r);l=C(o[e],t,a)}return l}(e,t,n,!1)}function m(e,t=[],n=[],a=""){let r=(e,r,l)=>{let i={relativePath:void 0===l?e.path||"":l,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};i.relativePath.startsWith("/")&&(o(i.relativePath.startsWith(a),`Absolute route path "${i.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(a.length));let s=M([a,i.relativePath]),c=n.concat(i);e.children&&e.children.length>0&&(o(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),m(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:b(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of d(e.path))r(e,t,n);else r(e,t)})),t}function d(e){let t=e.split("/");if(0===t.length)return[];let[n,...a]=t,r=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===a.length)return r?[o,""]:[o];let l=d(a.join("/")),i=[];return i.push(...l.map((e=>""===e?o:[o,e].join("/")))),r&&i.push(...l),i.map((t=>e.startsWith("/")&&""===t?"/":t))}new WeakMap;var p=/^:[\w-]+$/,f=3,v=2,g=1,y=10,w=-2,E=e=>"*"===e;function b(e,t){let n=e.split("/"),a=n.length;return n.some(E)&&(a+=w),t&&(a+=v),n.filter((e=>!E(e))).reduce(((e,t)=>e+(p.test(t)?f:""===t?g:y)),a)}function C(e,t,n=!1){let{routesMeta:a}=e,r={},o="/",l=[];for(let e=0;e<a.length;++e){let i=a[e],s=e===a.length-1,c="/"===o?t:t.slice(o.length)||"/",u=x({path:i.relativePath,caseSensitive:i.caseSensitive,end:s},c),h=i.route;if(!u&&s&&n&&!a[a.length-1].route.index&&(u=x({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},c)),!u)return null;Object.assign(r,u.params),l.push({params:r,pathname:M([o,u.pathname]),pathnameBase:$(M([o,u.pathnameBase])),route:h}),"/"!==u.pathnameBase&&(o=M([o,u.pathnameBase]))}return l}function x(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=function(e,t=!1,n=!0){l("*"===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 a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(a.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(a.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let o=r[0],i=o.replace(/(.)\/+$/,"$1"),s=r.slice(1);return{params:a.reduce(((e,{paramName:t,isOptional:n},a)=>{if("*"===t){let e=s[a]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const r=s[a];return e[t]=n&&!r?void 0:(r||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function L(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function k(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&"/"!==a?null:e.slice(n)||"/"}function S(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}].  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 N(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function P(e,t,n,a=!1){let r;"string"==typeof e?r=u(e):(r={...e},o(!r.pathname||!r.pathname.includes("?"),S("?","pathname","search",r)),o(!r.pathname||!r.pathname.includes("#"),S("#","pathname","hash",r)),o(!r.search||!r.search.includes("#"),S("#","search","hash",r)));let l,i=""===e||""===r.pathname,s=i?"/":r.pathname;if(null==s)l=n;else{let e=t.length-1;if(!a&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}l=e>=0?t[e]:"/"}let c=function(e,t="/"){let{pathname:n,search:a="",hash:r=""}="string"==typeof e?u(e):e,o=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:o,search:I(a),hash:R(r)}}(r,l),h=s&&"/"!==s&&s.endsWith("/"),m=(i||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!h&&!m||(c.pathname+="/"),c}var M=e=>e.join("/").replace(/\/\/+/g,"/"),$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),I=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",R=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function z(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var _=["POST","PUT","PATCH","DELETE"],D=(new Set(_),["GET",..._]);new Set(D),Symbol("ResetLoaderData");var B=e.createContext(null);B.displayName="DataRouter";var F=e.createContext(null);F.displayName="DataRouterState";e.createContext(!1);var A=e.createContext({isTransitioning:!1});A.displayName="ViewTransition",e.createContext(new Map).displayName="Fetchers",e.createContext(null).displayName="Await";var O=e.createContext(null);O.displayName="Navigation";var T=e.createContext(null);T.displayName="Location";var H=e.createContext({outlet:null,matches:[],isDataRoute:!1});H.displayName="Route";var V=e.createContext(null);function j(){return null!=e.useContext(T)}function U(){return o(j(),"useLocation() may be used only in the context of a <Router> component."),e.useContext(T).location}V.displayName="RouteError";var W="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function q(t){e.useContext(O).static||e.useLayoutEffect(t)}function Y(){let{isDataRoute:t}=e.useContext(H);return t?function(){let{router:t}=function(t){let n=e.useContext(B);return o(n,te(t)),n}("useNavigate"),n=ne("useNavigate"),a=e.useRef(!1);return q((()=>{a.current=!0})),e.useCallback((async(e,r={})=>{l(a.current,W),a.current&&("number"==typeof e?t.navigate(e):await t.navigate(e,{fromRouteId:n,...r}))}),[t,n])}():function(){o(j(),"useNavigate() may be used only in the context of a <Router> component.");let t=e.useContext(B),{basename:n,navigator:a}=e.useContext(O),{matches:r}=e.useContext(H),{pathname:i}=U(),s=JSON.stringify(N(r)),c=e.useRef(!1);return q((()=>{c.current=!0})),e.useCallback(((e,r={})=>{if(l(c.current,W),!c.current)return;if("number"==typeof e)return void a.go(e);let o=P(e,JSON.parse(s),i,"path"===r.relative);null==t&&"/"!==n&&(o.pathname="/"===o.pathname?n:M([n,o.pathname])),(r.replace?a.replace:a.push)(o,r.state,r)}),[n,a,s,i,t])}()}var J=e.createContext(null);function K(t,{relative:n}={}){let{matches:a}=e.useContext(H),{pathname:r}=U(),o=JSON.stringify(N(a));return e.useMemo((()=>P(t,JSON.parse(o),r,"path"===n)),[t,o,r,n])}function G(t,n,a,r){o(j(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=e.useContext(O),{matches:s}=e.useContext(H),c=s[s.length-1],m=c?c.params:{},d=c?c.pathname:"/",p=c?c.pathnameBase:"/",f=c&&c.route;{let e=f&&f.path||"";re(d,!f||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let v,g=U();if(n){let e="string"==typeof n?u(n):n;o("/"===p||e.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${e.pathname}" was given in the \`location\` prop.`),v=e}else v=g;let y=v.pathname||"/",w=y;if("/"!==p){let e=p.replace(/^\//,"").split("/");w="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let E=h(t,{pathname:w});l(f||null!=E,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),l(null==E||void 0!==E[E.length-1].route.element||void 0!==E[E.length-1].route.Component||void 0!==E[E.length-1].route.lazy,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=function(t,n=[],a=null){if(null==t){if(!a)return null;if(a.errors)t=a.matches;else{if(0!==n.length||a.initialized||!(a.matches.length>0))return null;t=a.matches}}let r=t,l=a?.errors;if(null!=l){let e=r.findIndex((e=>e.route.id&&void 0!==l?.[e.route.id]));o(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),r=r.slice(0,Math.min(r.length,e+1))}let i=!1,s=-1;if(a)for(let e=0;e<r.length;e++){let t=r[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:n}=a,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||o){i=!0,r=s>=0?r.slice(0,s+1):[r[0]];break}}}return r.reduceRight(((t,o,c)=>{let u,h=!1,m=null,d=null;a&&(u=l&&o.route.id?l[o.route.id]:void 0,m=o.route.errorElement||X,i&&(s<0&&0===c?(re("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,d=null):s===c&&(h=!0,d=o.route.hydrateFallbackElement||null)));let p=n.concat(r.slice(0,c+1)),f=()=>{let n;return n=u?m:h?d:o.route.Component?e.createElement(o.route.Component,null):o.route.element?o.route.element:t,e.createElement(ee,{match:o,routeContext:{outlet:t,matches:p,isDataRoute:null!=a},children:n})};return a&&(o.route.ErrorBoundary||o.route.errorElement||0===c)?e.createElement(Z,{location:a.location,revalidation:a.revalidation,component:m,error:u,children:f(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):f()}),null)}(E&&E.map((e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:M([p,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:M([p,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,a,r);return n&&b?e.createElement(T.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},b):b}function Q(){let t=function(){let t=e.useContext(V),n=function(t){let n=e.useContext(F);return o(n,te(t)),n}("useRouteError"),a=ne("useRouteError");return void 0!==t?t:n.errors?.[a]}(),n=z(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),a=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=e.createElement(e.Fragment,null,e.createElement("p",null,"💿 Hey developer 👋"),e.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",e.createElement("code",{style:i},"ErrorBoundary")," or"," ",e.createElement("code",{style:i},"errorElement")," prop on your route.")),e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},n),a?e.createElement("pre",{style:l},a):null,s)}var X=e.createElement(Q,null),Z=class extends e.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){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?e.createElement(H.Provider,{value:this.props.routeContext},e.createElement(V.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ee({routeContext:t,match:n,children:a}){let r=e.useContext(B);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),e.createElement(H.Provider,{value:t},a)}function te(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ne(t){let n=function(t){let n=e.useContext(H);return o(n,te(t)),n}(t),a=n.matches[n.matches.length-1];return o(a.route.id,`${t} can only be used on routes that contain a unique "id"`),a.route.id}var ae={};function re(e,t,n){t||ae[e]||(ae[e]=!0,l(!1,n))}function oe({to:t,replace:n,state:a,relative:r}){o(j(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=e.useContext(O);l(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=e.useContext(H),{pathname:c}=U(),u=Y(),h=P(t,N(s),c,"path"===r),m=JSON.stringify(h);return e.useEffect((()=>{u(JSON.parse(m),{replace:n,state:a,relative:r})}),[u,m,r,n,a]),null}function le(t){return function(t){let n=e.useContext(H).outlet;return n?e.createElement(J.Provider,{value:t},n):n}(t.context)}function ie(e){o(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function se({basename:t="/",children:n=null,location:a,navigationType:r="POP",navigator:i,static:s=!1}){o(!j(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=t.replace(/^\/*/,"/"),h=e.useMemo((()=>({basename:c,navigator:i,static:s,future:{}})),[c,i,s]);"string"==typeof a&&(a=u(a));let{pathname:m="/",search:d="",hash:p="",state:f=null,key:v="default"}=a,g=e.useMemo((()=>{let e=k(m,c);return null==e?null:{location:{pathname:e,search:d,hash:p,state:f,key:v},navigationType:r}}),[c,m,d,p,f,v,r]);return l(null!=g,`<Router basename="${c}"> is not able to match the URL "${m}${d}${p}" because it does not start with the basename, so the <Router> won't render anything.`),null==g?null:e.createElement(O.Provider,{value:h},e.createElement(T.Provider,{children:n,value:g}))}function ce({children:e,location:t}){return G(ue(e),t)}function ue(t,n=[]){let a=[];return e.Children.forEach(t,((t,r)=>{if(!e.isValidElement(t))return;let l=[...n,r];if(t.type===e.Fragment)return void a.push.apply(a,ue(t.props.children,l));o(t.type===ie,`[${"string"==typeof t.type?t.type:t.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),o(!t.props.index||!t.props.children,"An index route cannot have child routes.");let i={id:t.props.id||l.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,hydrateFallbackElement:t.props.hydrateFallbackElement,HydrateFallback:t.props.HydrateFallback,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:!0===t.props.hasErrorBoundary||null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(i.children=ue(t.props.children,l)),a.push(i)})),a}e.memo((function({routes:e,future:t,state:n}){return G(e,void 0,n,t)})),e.Component;var he="get",me="application/x-www-form-urlencoded";function de(e){return null!=e&&"string"==typeof e.tagName}var pe=null,fe=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ve(e){return null==e||fe.has(e)?e:(l(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${me}"`),null)}function ge(e,t){if(!1===e||null==e)throw new Error(t)}function ye(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function we(e,t,n,a,r,o){let l=(e,t)=>!n[t]||e.route.id!==n[t].route.id,i=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter(((e,t)=>l(e,t)||i(e,t))):"data"===o?t.filter(((t,o)=>{let s=a.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(l(t,o)||i(t,o))return!0;if(t.route.shouldRevalidate){let a=t.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof a)return a}return!0})):[]}function Ee(e,t,{includeHydrateFallback:n}={}){return a=e.map((e=>{let a=t.routes[e.route.id];if(!a)return[];let r=[a.module];return a.clientActionModule&&(r=r.concat(a.clientActionModule)),a.clientLoaderModule&&(r=r.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(r=r.concat(a.hydrateFallbackModule)),a.imports&&(r=r.concat(a.imports)),r})).flat(1),[...new Set(a)];var a}function be(){let t=e.useContext(B);return ge(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Ce(){let t=e.useContext(F);return ge(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");var xe=e.createContext(void 0);function Le(){let t=e.useContext(xe);return ge(t,"You must render this element inside a <HydratedRouter> element"),t}function ke(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Se({page:t,...n}){let{router:a}=be(),r=e.useMemo((()=>h(a.routes,t,a.basename)),[a.routes,t,a.basename]);return r?e.createElement(Pe,{page:t,matches:r,...n}):null}function Ne(t){let{manifest:n,routeModules:a}=Le(),[r,o]=e.useState([]);return e.useEffect((()=>{let e=!1;return async function(e,t,n){return function(e,t){let n=new Set,a=new Set(t);return e.reduce(((e,r)=>{if(t&&(null==(o=r)||"string"!=typeof o.page)&&"script"===r.as&&r.href&&a.has(r.href))return e;var o;let l=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}(r));return n.has(l)||(n.add(l),e.push({key:l,link:r})),e}),[])}((await Promise.all(e.map((async e=>{let a=t.routes[e.route.id];if(a){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}(a,n);return e.links?e.links():[]}return[]})))).flat(1).filter(ye).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(t,n,a).then((t=>{e||o(t)})),()=>{e=!0}}),[t,n,a]),r}function Pe({page:t,matches:n,...a}){let r=U(),{manifest:o,routeModules:l}=Le(),{basename:i}=be(),{loaderData:s,matches:c}=Ce(),u=e.useMemo((()=>we(t,n,c,o,r,"data")),[t,n,c,o,r]),h=e.useMemo((()=>we(t,n,c,o,r,"assets")),[t,n,c,o,r]),m=e.useMemo((()=>{if(t===r.pathname+r.search+r.hash)return[];let e=new Set,a=!1;if(n.forEach((t=>{let n=o.routes[t.route.id];n&&n.hasLoader&&(!u.some((e=>e.route.id===t.route.id))&&t.route.id in s&&l[t.route.id]?.shouldRevalidate||n.hasClientLoader?a=!0:e.add(t.route.id))})),0===e.size)return[];let c=function(e,t,n){let a="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===a.pathname?a.pathname=`_root.${n}`:t&&"/"===k(a.pathname,t)?a.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${n}`,a}(t,i,"data");return a&&e.size>0&&c.searchParams.set("_routes",n.filter((t=>e.has(t.route.id))).map((e=>e.route.id)).join(",")),[c.pathname+c.search]}),[i,s,r,o,u,n,t,l]),d=e.useMemo((()=>Ee(h,o)),[h,o]),p=Ne(h);return e.createElement(e.Fragment,null,m.map((t=>e.createElement("link",{key:t,rel:"prefetch",as:"fetch",href:t,...a}))),d.map((t=>e.createElement("link",{key:t,rel:"modulepreload",href:t,...a}))),p.map((({key:t,link:n})=>e.createElement("link",{key:t,nonce:a.nonce,...n}))))}xe.displayName="FrameworkContext";function Me(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}e.Component;var $e="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{$e&&(window.__reactRouterVersion="7.8.0")}catch(e){}function Ie({basename:t,children:n,window:a}){let o=e.useRef();null==o.current&&(o.current=r({window:a,v5Compat:!0}));let l=o.current,[i,s]=e.useState({action:l.action,location:l.location}),c=e.useCallback((t=>{e.startTransition((()=>s(t)))}),[s]);return e.useLayoutEffect((()=>l.listen(c)),[l,c]),e.createElement(se,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:l})}var Re=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ze=e.forwardRef((function({onClick:t,discover:n="render",prefetch:a="none",relative:r,reloadDocument:i,replace:s,state:u,target:h,to:m,preventScrollReset:d,viewTransition:p,...f},v){let g,{basename:y}=e.useContext(O),w="string"==typeof m&&Re.test(m),E=!1;if("string"==typeof m&&w&&(g=m,$e))try{let e=new URL(window.location.href),t=m.startsWith("//")?new URL(e.protocol+m):new URL(m),n=k(t.pathname,y);t.origin===e.origin&&null!=n?m=n+t.search+t.hash:E=!0}catch(e){l(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let b=function(t,{relative:n}={}){o(j(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:r}=e.useContext(O),{hash:l,pathname:i,search:s}=K(t,{relative:n}),c=i;return"/"!==a&&(c="/"===i?a:M([a,i])),r.createHref({pathname:c,search:s,hash:l})}(m,{relative:r}),[C,x,L]=function(t,n){let a=e.useContext(xe),[r,o]=e.useState(!1),[l,i]=e.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:u,onMouseLeave:h,onTouchStart:m}=n,d=e.useRef(null);e.useEffect((()=>{if("render"===t&&i(!0),"viewport"===t){let e=new IntersectionObserver((e=>{e.forEach((e=>{i(e.isIntersecting)}))}),{threshold:.5});return d.current&&e.observe(d.current),()=>{e.disconnect()}}}),[t]),e.useEffect((()=>{if(r){let e=setTimeout((()=>{i(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let p=()=>{o(!0)},f=()=>{o(!1),i(!1)};return a?"intent"!==t?[l,d,{}]:[l,d,{onFocus:ke(s,p),onBlur:ke(c,f),onMouseEnter:ke(u,p),onMouseLeave:ke(h,f),onTouchStart:ke(m,p)}]:[!1,d,{}]}(a,f),S=function(t,{target:n,replace:a,state:r,preventScrollReset:o,relative:l,viewTransition:i}={}){let s=Y(),u=U(),h=K(t,{relative:l});return e.useCallback((e=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(e,n)){e.preventDefault();let n=void 0!==a?a:c(u)===c(h);s(t,{replace:n,state:r,preventScrollReset:o,relative:l,viewTransition:i})}}),[u,s,h,a,r,n,t,o,l,i])}(m,{replace:s,state:u,target:h,preventScrollReset:d,relative:r,viewTransition:p}),N=e.createElement("a",{...f,...L,href:g||b,onClick:E||i?t:function(e){t&&t(e),e.defaultPrevented||S(e)},ref:Me(v,x),target:h,"data-discover":w||"render"!==n?void 0:"true"});return C&&!w?e.createElement(e.Fragment,null,N,e.createElement(Se,{page:b})):N}));function _e(t){let n=e.useContext(B);return o(n,function(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}(t)),n}ze.displayName="Link",e.forwardRef((function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:r=!1,style:l,to:i,viewTransition:s,children:c,...u},h){let m=K(i,{relative:u.relative}),d=U(),p=e.useContext(F),{navigator:f,basename:v}=e.useContext(O),g=null!=p&&function(t,{relative:n}={}){let a=e.useContext(A);o(null!=a,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=_e("useViewTransitionState"),l=K(t,{relative:n});if(!a.isTransitioning)return!1;let i=k(a.currentLocation.pathname,r)||a.currentLocation.pathname,s=k(a.nextLocation.pathname,r)||a.nextLocation.pathname;return null!=x(l.pathname,s)||null!=x(l.pathname,i)}(m)&&!0===s,y=f.encodeLocation?f.encodeLocation(m).pathname:m.pathname,w=d.pathname,E=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(w=w.toLowerCase(),E=E?E.toLowerCase():null,y=y.toLowerCase()),E&&v&&(E=k(E,v)||E);const b="/"!==y&&y.endsWith("/")?y.length-1:y.length;let C,L=w===y||!r&&w.startsWith(y)&&"/"===w.charAt(b),S=null!=E&&(E===y||!r&&E.startsWith(y)&&"/"===E.charAt(y.length)),N={isActive:L,isPending:S,isTransitioning:g},P=L?t:void 0;C="function"==typeof a?a(N):[a,L?"active":null,S?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let M="function"==typeof l?l(N):l;return e.createElement(ze,{...u,"aria-current":P,className:C,ref:h,style:M,to:i,viewTransition:s},"function"==typeof c?c(N):c)})).displayName="NavLink",e.forwardRef((({discover:t="render",fetcherKey:n,navigate:a,reloadDocument:r,replace:l,state:i,method:s=he,action:u,onSubmit:h,relative:m,preventScrollReset:d,viewTransition:p,...f},v)=>{let g=function(){let{router:t}=_e("useSubmit"),{basename:n}=e.useContext(O),a=ne("useRouteId");return e.useCallback((async(e,r={})=>{let{action:o,method:l,encType:i,formData:s,body:c}=function(e,t){let n,a,r,o,l;if(de(i=e)&&"form"===i.tagName.toLowerCase()){let l=e.getAttribute("action");a=l?k(l,t):null,n=e.getAttribute("method")||he,r=ve(e.getAttribute("enctype"))||me,o=new FormData(e)}else if(function(e){return de(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return de(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let l=e.form;if(null==l)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||l.getAttribute("action");if(a=i?k(i,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||he,r=ve(e.getAttribute("formenctype"))||ve(l.getAttribute("enctype"))||me,o=new FormData(l,e),!function(){if(null===pe)try{new FormData(document.createElement("form"),0),pe=!1}catch(e){pe=!0}return pe}()){let{name:t,type:n,value:a}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,a)}}else{if(de(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=he,a=null,r=me,l=e}var i;return o&&"text/plain"===r&&(l=o,o=void 0),{action:a,method:n.toLowerCase(),encType:r,formData:o,body:l}}(e,n);if(!1===r.navigate){let e=r.fetcherKey||Be();await t.fetch(e,a,r.action||o,{preventScrollReset:r.preventScrollReset,formData:s,body:c,formMethod:r.method||l,formEncType:r.encType||i,flushSync:r.flushSync})}else await t.navigate(r.action||o,{preventScrollReset:r.preventScrollReset,formData:s,body:c,formMethod:r.method||l,formEncType:r.encType||i,replace:r.replace,state:r.state,fromRouteId:a,flushSync:r.flushSync,viewTransition:r.viewTransition})}),[t,n,a])}(),y=function(t,{relative:n}={}){let{basename:a}=e.useContext(O),r=e.useContext(H);o(r,"useFormAction must be used inside a RouteContext");let[l]=r.matches.slice(-1),i={...K(t||".",{relative:n})},s=U();if(null==t){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();i.search=n?`?${n}`:""}}return t&&"."!==t||!l.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==a&&(i.pathname="/"===i.pathname?a:M([a,i.pathname])),c(i)}(u,{relative:m}),w="get"===s.toLowerCase()?"get":"post",E="string"==typeof u&&Re.test(u);return e.createElement("form",{ref:v,method:w,action:y,onSubmit:r?h:e=>{if(h&&h(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,r=t?.getAttribute("formmethod")||s;g(t||e.currentTarget,{fetcherKey:n,method:r,navigate:a,replace:l,state:i,relative:m,preventScrollReset:d,viewTransition:p})},...f,"data-discover":E||"render"!==t?void 0:"true"})})).displayName="Form";var De=0,Be=()=>`__${String(++De)}__`;const Fe=({href:t="",target:n="",onClick:a=null,className:r,variant:o="primary",size:l="",children:i,...s})=>{const c=`bPlButton ${o?`variant-${o}`:""} ${l?`size-${l}`:""} ${r||""}`;return"function"==typeof a?(0,e.createElement)("button",{className:c,...s,onClick:a},i):(0,e.createElement)("a",{href:t,target:n,className:c,...s},i)},Ae=({className:t="",text:n="Loading...",orientation:a="horizontal",iconSize:r="2rem",iconThickness:o="4px",textSize:l="18px"})=>(0,e.createElement)("div",{className:`bPlLoading ${t}`},(0,e.createElement)("div",{className:`loadingContent ${a}`},(0,e.createElement)("div",{className:"loadingSpinner",style:{width:r,height:r,borderWidth:o}}),n&&(0,e.createElement)("p",{className:"loadingText",style:{fontSize:l}},n))),Oe=t=>{const{demoInfo:n,children:a}=t,{title:r,description:o,allInOneLabel:l,allInOneLink:i,demos:s}=n,[c,u]=(0,e.useState)(s[0]),[h,m]=(0,e.useState)(0),[d,p]=(0,e.useState)(!1),f=(0,e.useRef)(null),v=(0,e.useRef)(null);return(0,e.useEffect)((()=>{const e=f.current,t=v.current,n=e?.clientHeight,a=t?.scrollHeight;function r(){t.style.transform=`translateY(-${Number(a)-parseInt(n)}px)`}function o(){t.style.transform="translateY(0px)"}return e&&t&&Number(a)>parseInt(n)&&(e.addEventListener("mouseover",r),e.addEventListener("mouseout",o)),()=>{e&&t&&(e.removeEventListener("mouseover",r),e.removeEventListener("mouseout",o))}}),[c,h,d]),(0,e.createElement)("div",{className:"bPlDashboardListDemos"},(0,e.createElement)("div",{className:"sidebar"},(0,e.createElement)("div",{className:"sidebarHeader"},(0,e.createElement)("div",null,r&&(0,e.createElement)("h2",{className:"wp-block-heading",dangerouslySetInnerHTML:{__html:r}}),o&&(0,e.createElement)("p",{dangerouslySetInnerHTML:{__html:o}})),(0,e.createElement)("div",{className:"bPlDashboardButtons"},a,l&&(0,e.createElement)(Fe,{href:i,target:"_blank",variant:"secondary"},l))),(0,e.createElement)("div",{className:"sidebarList"},s.map(((t,n)=>{const{icon:a,title:r,description:o,category:l}=t,i=h===n;return(0,e.createElement)("button",{key:n,className:i?"active":"",onClick:()=>(e=>{p(!0),u(s[e]),m(e)})(n)},a&&(0,e.createElement)("div",{className:"iconBox",dangerouslySetInnerHTML:{__html:a}}),(0,e.createElement)("div",{className:"texts"},r&&(0,e.createElement)("h4",null,r),o&&(0,e.createElement)("p",null,o),l&&(0,e.createElement)("span",{className:"category"},l)))})))),(0,e.createElement)("div",{className:"main"},(0,e.createElement)("div",{className:"mainHeader"},(0,e.createElement)("div",{className:"headerInfo"},c.title&&(0,e.createElement)("h3",null,c.title),c.description&&(0,e.createElement)("p",null,c.description)),(0,e.createElement)("div",{className:"bPlDashboardButtons"},a,l&&(0,e.createElement)(Fe,{href:i,target:"_blank",variant:"secondary"},l))),(0,e.createElement)("div",{className:"canvas"},d&&(0,e.createElement)(Ae,{text:"Demo Loading...",orientation:"vertical"}),"iframe"===c.type?(0,e.createElement)("iframe",{src:c.url,title:`${c.title} Demo`,loading:d,onLoad:()=>p(!1),sandbox:"allow-scripts allow-same-origin allow-popups allow-forms"}):(0,e.createElement)("div",{className:"canvasImg",ref:f},(0,e.createElement)("img",{src:c.url,alt:`${c.title} Demo`,onLoad:()=>p(!1),ref:v}))),(0,e.createElement)("div",{className:"mainFooter"},(0,e.createElement)("span",null,"Preview of ",(0,e.createElement)("strong",null,c.title)))))},Te="#146EF5",He=((0,e.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 548.172 548.172"},(0,e.createElement)("path",{fill:Te,d:"M534.75 49.965c-8.945-8.945-19.694-13.422-32.261-13.422H45.681c-12.562 0-23.313 4.477-32.264 13.422C4.471 58.913 0 69.663 0 82.226v310.633c0 12.566 4.471 23.315 13.417 32.265 8.951 8.945 19.702 13.414 32.264 13.414h155.318c0 7.231-1.524 14.661-4.57 22.269-3.044 7.614-6.09 14.273-9.136 19.981-3.042 5.715-4.565 9.897-4.565 12.56 0 4.948 1.807 9.24 5.424 12.847 3.615 3.621 7.898 5.435 12.847 5.435h146.179c4.949 0 9.233-1.813 12.848-5.435 3.62-3.606 5.427-7.898 5.427-12.847 0-2.468-1.526-6.611-4.571-12.415-3.046-5.801-6.092-12.566-9.134-20.267-3.046-7.71-4.569-15.085-4.569-22.128h155.318c12.56 0 23.309-4.469 32.254-13.414 8.949-8.949 13.422-19.698 13.422-32.265V82.226c.003-12.563-4.474-23.313-13.423-32.261zm-23.123 269.803c0 2.475-.903 4.613-2.711 6.424-1.81 1.804-3.952 2.707-6.427 2.707H45.681c-2.473 0-4.615-.903-6.423-2.707-1.807-1.817-2.712-3.949-2.712-6.424V82.226c0-2.475.902-4.615 2.712-6.423 1.809-1.805 3.951-2.712 6.423-2.712h456.815c2.471 0 4.617.904 6.42 2.712 1.808 1.809 2.711 3.949 2.711 6.423v237.542z"})),(0,e.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 512 512"},(0,e.createElement)("path",{fill:Te,d:"M394.667 0H117.333C87.936 0 64 23.936 64 53.333v405.333C64 488.064 87.936 512 117.333 512h277.333C424.064 512 448 488.064 448 458.667V53.333C448 23.936 424.064 0 394.667 0zM256 480c-11.755 0-21.333-9.579-21.333-21.333s9.579-21.333 21.333-21.333 21.333 9.579 21.333 21.333S267.755 480 256 480zm149.333-64c0 5.888-4.779 10.667-10.667 10.667H117.333c-5.888 0-10.667-4.779-10.667-10.667V53.333c0-5.888 4.779-10.667 10.667-10.667h277.333c5.888 0 10.667 4.779 10.667 10.667V416z"})),(0,e.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 503.604 503.604"},(0,e.createElement)("path",{fill:Te,d:"M337.324 0H167.192c-28.924 0-53.5 23.584-53.5 52.5v398.664c0 28.916 24.056 52.44 52.98 52.44l170.412-.184c28.92 0 52.58-23.528 52.58-52.448l.248-398.5C389.908 23.452 366.364 0 337.324 0zM227.68 31.476h49.36c4.336 0 7.868 3.52 7.868 7.868 0 4.348-3.532 7.868-7.868 7.868h-49.36a7.865 7.865 0 01-7.868-7.868 7.865 7.865 0 017.868-7.868zm-29.66 2.504c2.916-2.912 8.224-2.952 11.136 0a7.973 7.973 0 012.324 5.588c0 2.048-.864 4.088-2.324 5.548-1.452 1.46-3.504 2.32-5.548 2.32-2.084 0-4.088-.86-5.588-2.32-1.452-1.456-2.28-3.5-2.28-5.548-.004-2.088.828-4.132 2.28-5.588zm52.752 454.028c-12.984 0-23.544-10.568-23.544-23.548 0-12.984 10.56-23.548 23.544-23.548s23.544 10.564 23.544 23.548c0 12.98-10.564 23.548-23.544 23.548zm114.716-63.1H141.232V74.756h224.256v350.152z"})),(0,e.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 330 330"},(0,e.createElement)("path",{d:"M100.606 229.393c-5.857-5.857-15.355-5.857-21.213 0-5.858 5.857-5.858 15.355 0 21.213l75 75A14.954 14.954 0 00165 330a14.95 14.95 0 0010.606-4.394l75-75c5.858-5.857 5.858-15.355 0-21.213-5.857-5.857-15.355-5.857-21.213 0L180 278.787V51.212l49.394 49.394A14.95 14.95 0 00240 105a14.95 14.95 0 0010.606-4.394c5.858-5.857 5.858-15.355 0-21.213l-75-75c-5.857-5.858-15.355-5.858-21.213 0l-75 75c-5.858 5.857-5.858 15.355 0 21.213 5.857 5.857 15.355 5.857 21.213 0L150 51.212v227.574l-49.394-49.393z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 430.848 430.848"},(0,e.createElement)("path",{d:"M286.244,249.537l10.992-45.639c0.035-0.143,0.071-0.285,0.109-0.428c2.909-10.867,11.469-19.426,22.339-22.338 l33.347-8.936c-5.472-6.525-13.678-10.682-22.839-10.682h-9.837c-2.511-7.895-5.7-15.59-9.515-22.957l6.96-6.959 c11.622-11.623,11.622-30.535,0-42.156L296.76,68.4c-5.631-5.629-13.117-8.73-21.079-8.73c-7.961,0-15.447,3.102-21.078,8.732 l-6.96,6.959c-7.369-3.814-15.064-7.004-22.956-9.516V56.01c0-16.436-13.372-29.807-29.808-29.807h-29.758 c-16.436,0-29.808,13.371-29.808,29.807v9.836c-7.893,2.512-15.588,5.701-22.957,9.516l-6.96-6.961 c-5.631-5.629-13.117-8.73-21.078-8.73c-7.961,0-15.447,3.102-21.079,8.732L42.2,89.443c-11.622,11.621-11.622,30.533,0,42.156 l6.959,6.959c-3.815,7.367-7.004,15.063-9.515,22.957h-9.837C13.372,161.516,0,174.887,0,191.324v29.758 c0,16.436,13.372,29.807,29.808,29.807h9.837c2.511,7.895,5.7,15.588,9.515,22.957l-6.96,6.959 c-11.623,11.623-11.623,30.533,0,42.158l21.041,21.039c5.632,5.631,13.118,8.732,21.079,8.732s15.447-3.102,21.077-8.732 l6.96-6.959c7.366,3.815,15.061,7.002,22.957,9.514v9.838c0,16.436,13.372,29.809,29.808,29.809h25.809 c-2.388-5.691-3.644-11.852-3.645-18.209c-0.002-12.572,4.892-24.391,13.781-33.279L286.244,249.537z M180,286.201 c-44.112,0-80-35.887-80-79.998c0-44.113,35.888-80.002,80-80.002s80,35.889,80,80.002C260,250.314,224.112,286.201,180,286.201z"}),(0,e.createElement)("path",{d:"M425.267,218.734l-0.319-0.32c-0.939-0.941-2.189-1.428-3.541-1.469c-1.326,0-2.598,0.525-3.536,1.465l-21.596,21.596 c-3.304,3.305-7.699,5.125-12.375,5.125c-4.676,0-9.072-1.82-12.379-5.129c-3.307-3.305-5.128-7.701-5.128-12.377 c0.001-4.676,1.821-9.072,5.126-12.377l21.596-21.596c0.939-0.939,1.465-2.213,1.464-3.539c-0.001-1.328-0.53-2.6-1.47-3.537 l-0.314-0.313c-3.605-3.605-8.399-5.592-13.499-5.592c-1.665,0-3.325,0.219-4.936,0.65l-44.348,11.885 c-6.568,1.76-11.741,6.932-13.498,13.496c-0.011,0.041-0.021,0.08-0.031,0.121l-11.817,49.063l-87.667,87.666 c-6.528,6.527-10.122,15.207-10.121,24.44c0.002,9.232,3.598,17.91,10.126,24.439l2.088,2.088 c6.528,6.529,15.209,10.125,24.443,10.125h0c9.231,0,17.909-3.594,24.437-10.121l87.667-87.666l49.061-11.816 c0.041-0.01,0.082-0.022,0.122-0.031c6.563-1.758,11.735-6.928,13.497-13.496l11.883-44.352 C431.959,230.598,430.066,223.535,425.267,218.734z M257.26,368.406c-1.888,1.889-4.399,2.93-7.071,2.93 c-2.671,0-5.183-1.041-7.072-2.932c-1.887-1.885-2.928-4.397-2.928-7.068c-0.001-2.672,1.041-5.185,2.931-7.072 c1.886-1.887,4.398-2.928,7.069-2.928c2.672,0,5.184,1.041,7.072,2.93c1.887,1.885,2.928,4.396,2.928,7.068 C260.189,364.006,259.148,366.518,257.26,368.406z M316.194,305.935L274.82,347.31c-1.416,1.416-3.3,2.197-5.303,2.197 c-2.003,0-3.887-0.781-5.303-2.197c-1.417-1.416-2.197-3.299-2.197-5.303s0.78-3.887,2.197-5.303l41.374-41.375 c1.417-1.418,3.3-2.197,5.303-2.197s3.887,0.779,5.303,2.197c1.417,1.416,2.197,3.299,2.197,5.303S317.611,304.519,316.194,305.935 z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 448 512"},(0,e.createElement)("path",{d:"M96 0C43 0 0 43 0 96V416c0 53 43 96 96 96H384h32c17.7 0 32-14.3 32-32s-14.3-32-32-32V384c17.7 0 32-14.3 32-32V32c0-17.7-14.3-32-32-32H384 96zm0 384H352v64H96c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16zm16 48H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16s7.2-16 16-16z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 512 512"},(0,e.createElement)("path",{d:"M256 48C141.1 48 48 141.1 48 256v40c0 13.3-10.7 24-24 24s-24-10.7-24-24V256C0 114.6 114.6 0 256 0S512 114.6 512 256V400.1c0 48.6-39.4 88-88.1 88L313.6 488c-8.3 14.3-23.8 24-41.6 24H240c-26.5 0-48-21.5-48-48s21.5-48 48-48h32c17.8 0 33.3 9.7 41.6 24l110.4 .1c22.1 0 40-17.9 40-40V256c0-114.9-93.1-208-208-208zM144 208h16c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H144c-35.3 0-64-28.7-64-64V272c0-35.3 28.7-64 64-64zm224 0c35.3 0 64 28.7 64 64v48c0 35.3-28.7 64-64 64H352c-17.7 0-32-14.3-32-32V240c0-17.7 14.3-32 32-32h16z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 576 512"},(0,e.createElement)("path",{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"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 448 512"},(0,e.createElement)("path",{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"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 448 512"},(0,e.createElement)("path",{d:"M384 336H192c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16l140.1 0L400 115.9V320c0 8.8-7.2 16-16 16zM192 384H384c35.3 0 64-28.7 64-64V115.9c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1H192c-35.3 0-64 28.7-64 64V320c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H256c35.3 0 64-28.7 64-64V416H272v32c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16H96V128H64z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960"},(0,e.createElement)("path",{d:"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z"}))),Ve=((0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512",width:16,height:16},(0,e.createElement)("path",{d:"M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"})),(0,e.createElement)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{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"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M96 320C96 302.3 110.3 288 128 288L512 288C529.7 288 544 302.3 544 320C544 337.7 529.7 352 512 352L128 352C110.3 352 96 337.7 96 320z"}))),je=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M352 128C352 110.3 337.7 96 320 96C302.3 96 288 110.3 288 128L288 288L128 288C110.3 288 96 302.3 96 320C96 337.7 110.3 352 128 352L288 352L288 512C288 529.7 302.3 544 320 544C337.7 544 352 529.7 352 512L352 352L512 352C529.7 352 544 337.7 544 320C544 302.3 529.7 288 512 288L352 288L352 128z"})),Ue=((0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,e.createElement)("path",{d:"M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,e.createElement)("path",{d:"M278.6 233.4c12.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.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"})),(0,e.createElement)("svg",{className:"check",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960"},(0,e.createElement)("path",{d:"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z"}))),We=((0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18px",height:"18px"},(0,e.createElement)("path",{d:"M10 2a8 8 0 105.29 13.71l5 5a1 1 0 001.42-1.42l-5-5A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z",fill:"#146ef5"})),(0,e.createElement)("svg",{width:25,height:25,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M4.66667 12.25H11.9C11.9928 12.25 12.0818 12.2131 12.1475 12.1475C12.2131 12.0818 12.25 11.9928 12.25 11.9V2.1C12.25 2.00717 12.2131 1.91815 12.1475 1.85251C12.0818 1.78687 11.9928 1.75 11.9 1.75H2.1C2.00717 1.75 1.91815 1.78687 1.85251 1.85251C1.78687 1.91815 1.75 2.00717 1.75 2.1V9.33333M5.83333 3.5H10.5M3.5 3.5H4.08333M2.04167 11.9583L7 7M7 7V9.33333M7 7H4.66667",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("svg",{width:25,height:25,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M11.6667 6.99999V3.35357C11.6667 3.30753 11.6577 3.26193 11.6401 3.21939C11.6225 3.17684 11.5966 3.1382 11.564 3.10566L9.72771 1.26932C9.66213 1.20367 9.57317 1.16674 9.48037 1.16666H2.68337C2.59055 1.16666 2.50152 1.20353 2.43589 1.26917C2.37025 1.33481 2.33337 1.42383 2.33337 1.51666V12.4833C2.33337 12.5761 2.37025 12.6652 2.43589 12.7308C2.50152 12.7964 2.59055 12.8333 2.68337 12.8333H6.41671M4.66671 5.83332H9.33337M4.66671 3.49999H7.00004M4.66671 8.16666H6.41671",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M9.33337 3.14999V1.37315C9.33345 1.33237 9.3456 1.29251 9.36829 1.25862C9.39099 1.22473 9.42321 1.19832 9.4609 1.18272C9.49859 1.16712 9.54005 1.16303 9.58006 1.17097C9.62007 1.17891 9.65683 1.19852 9.68571 1.22732L11.606 3.14765C11.6351 3.17642 11.655 3.21321 11.6631 3.25331C11.6712 3.29341 11.6672 3.33502 11.6515 3.37283C11.6359 3.41063 11.6093 3.44291 11.5752 3.46556C11.5412 3.48821 11.5011 3.5002 11.4602 3.49999H9.68337C9.59055 3.49999 9.50152 3.46311 9.43589 3.39748C9.37025 3.33184 9.33337 3.24281 9.33337 3.14999V3.14999Z",fill:"#6A72A5",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M10.4731 9.88165L11.0565 9.29832C11.1172 9.23754 11.1893 9.18932 11.2687 9.15643C11.3481 9.12353 11.4331 9.1066 11.5191 9.1066C11.605 9.1066 11.6901 9.12353 11.7694 9.15643C11.8488 9.18932 11.9209 9.23754 11.9816 9.29832C12.1042 9.42095 12.1731 9.58723 12.1731 9.76061C12.1731 9.93399 12.1042 10.1003 11.9816 10.2229L11.3983 10.8062M10.4731 9.88107L8.7284 11.6258C8.64116 11.7133 8.58397 11.8263 8.56506 11.9484L8.42273 12.8567L9.33098 12.7149C9.45309 12.696 9.56605 12.6388 9.65356 12.5516L11.3977 10.8062M10.4731 9.88107L11.3983 10.8062",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"})),t=>{const{featureCompareInfo:n,isPremium:a=!1}=t,{title:r,plans:o,features:l}=n;return(0,e.createElement)("div",{className:"bPlDashboardFeatureCompare bPlDashboardBox"},(0,e.createElement)("table",null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,r&&(0,e.createElement)("th",{dangerouslySetInnerHTML:{__html:r}}),o?.map((t=>{const{id:n,name:a,color:r}=t;return(0,e.createElement)("th",{key:n,style:{color:r},dangerouslySetInnerHTML:{__html:a}})})))),(0,e.createElement)("tbody",null,l?.map(((t,n)=>{const{label:a,plans:r}=t;return(0,e.createElement)("tr",{key:n},(0,e.createElement)("td",{dangerouslySetInnerHTML:{__html:a}}),o?.map((t=>{const{id:n}=t;return(0,e.createElement)("td",{key:n,className:"icon "+(r?.includes(n)?"check":"cross")},r?.includes(n)?Ue:He)})))})),!a&&(0,e.createElement)("tr",null,(0,e.createElement)("td",null),(0,e.createElement)("td",null),(0,e.createElement)("td",null,(0,e.createElement)(Fe,{href:"#pricing"},"Buy Now"))))))}),qe=t=>{const{name:n,logo:a,version:r,children:o}=t;return(0,e.createElement)("div",{className:"bPlDashboardHeader"},(0,e.createElement)("div",{className:"bPlDashboardContainer"},(0,e.createElement)("div",{className:"pluginInfo",wrap:!0},(0,e.createElement)("div",null,a&&(0,e.createElement)("img",{className:"pluginLogo",src:a,alt:n||"Plugin from bPlugins"}),n&&(0,e.createElement)("h1",{className:"pluginName"},n)),r&&(0,e.createElement)("div",{className:"pluginVersion"},"v",r)),(0,e.createElement)("div",{className:"navLinks"},o)))},Ye=[{name:"Welcome",href:"/welcome"},{name:"Demos",href:"/demos"},{name:"Pricing",href:"/pricing"},{name:"Feature Comparison",href:"/feature-comparison"}],Je=t=>{const{isPremium:n}=t,a=U();return(0,e.createElement)("div",{className:"bPlDashboard"},(0,e.createElement)(qe,{...t},(0,e.createElement)("nav",{className:"bPlDashboardNav"},Ye?.filter((e=>!n||!["/purchase","/pricing","/feature-comparison"].includes(e.href)))?.map(((t,n)=>(0,e.createElement)(ze,{key:n,to:t.href,className:"navLink "+(a.pathname===t.href?"active":"")},t.name))))),(0,e.createElement)("main",{className:"bPlDashboardMain"},(0,e.createElement)("div",{className:"bPlDashboardContainer"},(0,e.createElement)(le,null))))},Ke="embed-lottie-player",Ge="lottie-player",Qe=e=>{const{version:t,isPremium:n,hasPro:a}=e,r=n?" Pro":"";return{name:`Lottie Player${r}`,displayName:`Lottie Player${r} - Add Interactive Lottie Animations with Block Support`,description:"Embed any LottieFiles animations, .json or .dotlottie files to your WordPress Posts, Pages, Widgets, and more. This plugin is packed with many useful features. You can show your Lottie files exactly the way you want.",slug:Ke,logo:`https://ps.w.org/${Ke}/assets/icon-128x128.png`,banner:`https://ps.w.org/${Ke}/assets/banner-772x250.png`,video:"",isYoutube:!1,version:t,isPremium:n,hasPro:a,pages:{org:`https://wordpress.org/plugins/${Ke}/`,landing:`https://bplugins.com/products/${Ge}/`,docs:`https://bplugins.com/docs/${Ge}/`,pricing:`https://bplugins.com/products/${Ge}/pricing/`},freemius:{product_id:14561,plan_id:24322,public_key:"pk_8be5ff74d8f915918e0992c8de37c"}}},Xe=[{version:"1.2.1 - 24 Nov 2025",list:["Update SDK","New Admin UI"]},{version:"1.2.0 - 23 Apr 2025",list:["Remove mime types."]},{version:"1.1.8 - 27 Jan 2025",list:["Update SDK."]}],Ze={title:"Live Overview",description:"Click on any section to view it live",demos:[{title:"Default Player",type:"iframe",description:"Standard looping logo player.",url:"https://lpb.bplugins.com/demo/default/",icon:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64V400c0 44.2 35.8 80 80 80H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H80c-8.8 0-16-7.2-16-16V64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z'/></svg>",category:"Player"},{title:"Without Controls & Caption",type:"iframe",description:"Loop without controls or captions.",url:"https://lpb.bplugins.com/demo/without-controls-and-caption/",icon:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z'/></svg>",category:"Minimal"},{title:"Bounce Mode",type:"iframe",description:"Logo bounces back and forth.",url:"https://lpb.bplugins.com/demo/bounce-mode/",icon:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M48.5 224H40c-13.3 0-24-10.7-24-24V72c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2L98.6 96.6c87.6-86.5 228.7-86.2 315.8 1c87.5 87.5 87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3c-62.2-62.2-162.7-62.5-225.3-1L185 183c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8H48.5z'/></svg>",category:"Effect"},{title:"Backward Direction",type:"iframe",description:"Logo plays in reverse loop.",url:"https://lpb.bplugins.com/demo/backward-direction/",icon:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M75 75L41 41C25.9 25.9 0 36.6 0 57.9V168c0 13.3 10.7 24 24 24H134.1c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24V256c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65V152c0-13.3-10.7-24-24-24z'/></svg>",category:"Direction"},{title:"Custom Controls & Caption",type:"iframe",description:"Player with styled controls.",url:"https://lpb.bplugins.com/demo/customize-player-controls-and-caption/",icon:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M0 416c0 17.7 14.3 32 32 32l54.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-246.7 0c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48L32 384c-17.7 0-32 14.3-32 32zm128 0a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zM320 256a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm32-80c-32.8 0-61 19.7-73.3 48L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l246.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48l54.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-54.7 0c-12.3-28.3-40.5-48-73.3-48zM192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm73.3-64C253 35.7 224.8 16 192 16s-61 19.7-73.3 48L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l86.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 128c17.7 0 32-14.3 32-32s-14.3-32-32-32L265.3 64z'/></svg>",category:"Customization"},{title:"Interactivity",type:"iframe",description:"Interactive logo player demo.",url:"https://lpb.bplugins.com/demo/interactivity/",icon:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path d='M0 55.2V426c0 12.2 9.9 22 22 22c6.3 0 12.4-2.7 16.6-7.5L121.2 346l58.1 116.3c7.9 15.8 27.1 22.2 42.9 14.3s22.2-27.1 14.3-42.9L179.8 320H297.9c12.2 0 22.1-9.9 22.1-22.1c0-6.3-2.7-12.3-7.4-16.5L38.6 37.9C34.3 34.1 28.9 32 23.2 32C10.4 32 0 42.4 0 55.2z'/></svg>",category:"Interactive"}]},et={logo:`https://ps.w.org/${Ke}/assets/icon-128x128.png`,pluginId:14561,planId:24322,licenses:[1,3,null],button:{label:"Buy Now ➜"},featured:{selected:3,text:"Best Value"}},tt={title:"Features",plans:[{id:"ztbk4ex2fyi",name:"Free Plan",color:"#485781"},{id:"lhmjqhkeyi",name:"<span style='color: #485781;'>Pro Start from </span><span style='font-size: 1.3em;'>$29</span>",color:"#146EF5"}],features:[{label:"Support for .lottie and .json file types",plans:["ztbk4ex2fyi","lhmjqhkeyi"]},{label:"Upload Lottie files from media library",plans:["lhmjqhkeyi"]},{label:"Controls to allow users to interact with the player",plans:["ztbk4ex2fyi","lhmjqhkeyi"]},{label:"Autoplay to allowing the animation to start automatically",plans:["ztbk4ex2fyi","lhmjqhkeyi"]},{label:"Adjust Animation Speed",plans:["lhmjqhkeyi"]},{label:"Loop to make the animation repeat seamlessly",plans:["ztbk4ex2fyi","lhmjqhkeyi"]},{label:"Animation Count",plans:["lhmjqhkeyi"]},{label:"Interval between Animation loops",plans:["lhmjqhkeyi"]},{label:"Play on Hover",plans:["lhmjqhkeyi"]},{label:"Playback Modes",plans:["lhmjqhkeyi"]},{label:"Forward or Backward Direction",plans:["lhmjqhkeyi"]},{label:"Width and Align the player to match your desired design",plans:["ztbk4ex2fyi","lhmjqhkeyi"]},{label:"Customize the player controls",plans:["ztbk4ex2fyi","lhmjqhkeyi"]},{label:"Interactivity to play the Animation based on different interactions.",plans:["lhmjqhkeyi"]},{label:"Caption and its styles",plans:["lhmjqhkeyi"]}]},nt=({src:t,width:n="100%",height:a="auto",autoPlay:r=!1,muted:o=!1,loop:l=!1,poster:i=null,isYoutube:s=!1})=>{const c=(0,e.useRef)(null),u=(0,e.useRef)(null),h=(0,e.useRef)(null),m=(0,e.useRef)(null),d=(0,e.useRef)(null),[p,f]=(0,e.useState)(!1),[v,g]=(0,e.useState)(!0),[y,w]=(0,e.useState)(0),[E,b]=(0,e.useState)(0),[C,x]=(0,e.useState)(1),[L,k]=(0,e.useState)(o),[S,N]=(0,e.useState)(!1),[P,M]=(0,e.useState)(!0);(0,e.useEffect)((()=>{const e=c.current;if(!e)return;const n=()=>g(!0),a=()=>g(!1),r=()=>{b(e.duration),u.current&&(u.current.src=t,u.current.muted=!0)},o=()=>{S||w(e.currentTime)},l=()=>{f(!1)};return e.addEventListener("loadstart",n),e.addEventListener("canplay",a),e.addEventListener("loadedmetadata",r),e.addEventListener("timeupdate",o),e.addEventListener("ended",l),()=>{e.removeEventListener("loadstart",n),e.removeEventListener("canplay",a),e.removeEventListener("loadedmetadata",r),e.removeEventListener("timeupdate",o),e.removeEventListener("ended",l)}}),[S,t]),(0,e.useEffect)((()=>{const e=e=>{switch(e.key){case" ":e.preventDefault(),$();break;case"f":case"F":_();break;case"m":case"M":z()}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]);const $=()=>{const e=c.current;e&&(e.paused?(e.play(),f(!0)):(e.pause(),f(!1)))},I=e=>{const t=h.current.getBoundingClientRect(),n=(e.clientX-t.left)/t.width*E;c.current.currentTime=Math.max(0,Math.min(n,E)),w(n)},R=e=>{const t=m.current.getBoundingClientRect(),n=Math.max(0,Math.min(1,(e.clientX-t.left)/t.width));x(n),c.current.volume=n,n>0&&(k(!1),c.current.muted=!1)},z=()=>{const e=c.current;e&&(e.muted=!e.muted,k(e.muted))},_=()=>{const e=d.current;e&&(document.fullscreenElement?document.exitFullscreen():e.requestFullscreen())},D=e=>`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,"0")}`,B=E?y/E*100:0,F=100*C;return(0,e.useEffect)((()=>{const e=e=>{S&&(e.target.closest(".progress-bar")?I(e):e.target.closest(".volume-bar")&&R(e))},t=()=>{N(!1)};return S&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}}),[S]),(0,e.createElement)("div",{ref:d,className:"bPlVideoPlayer",style:{width:n,height:a},onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!p)},s?(0,e.createElement)("div",{className:"bPlVideoPlayerYoutube"},(0,e.createElement)("iframe",{src:function(e){const t=/youtu.be\/([^#\\&\\?]+)/;let n="";const a=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\\&v=)([^#\\&\\?]*).*/);if(a&&11===a[2].length)n=a[2];else{const a=e.match(t);if(!a||11!==a[1].length)return null;n=a[1]}return`https://www.youtube.com/embed/${n}`}(t),frameBorder:"0",allowFullScreen:!0,style:{width:n,height:a},title:"YouTube Video"})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("video",{ref:c,className:"video-element",src:t,poster:i,autoPlay:r,muted:o,loop:l,onClick:$,preload:"metadata"},"Your browser does not support the video tag."),(0,e.createElement)("video",{ref:u,className:"preview-video",muted:!0,preload:"metadata",style:{display:"none"}}),!p&&(0,e.createElement)("div",{className:"center-play-btn",onClick:$},(0,e.createElement)("div",{className:"play-icon"},(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M8 5v14l11-7z"})))),p&&(0,e.createElement)("div",{className:"center-play-btn pause",onClick:$},(0,e.createElement)("div",{className:"play-icon"},(0,e.createElement)("svg",{className:"video-player-pause-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,e.createElement)("path",{d:"M48 64C21.5 64 0 85.5 0 112L0 400c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48L48 64zm192 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48l-32 0z"})))),v&&(0,e.createElement)("div",{className:"loading-spinner"},(0,e.createElement)("div",{className:"spinner"})),(0,e.createElement)("div",{className:"video-controls "+(P?"visible":"")},(0,e.createElement)("button",{className:"control-btn play-pause-btn",onClick:$},p?(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"})):(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M8 5v14l11-7z"}))),(0,e.createElement)("div",{className:"time-display"},(0,e.createElement)("span",{className:"current-time"},D(y)),(0,e.createElement)("span",{className:"separator"},"/"),(0,e.createElement)("span",{className:"duration"},D(E))),(0,e.createElement)("div",{className:"progress-container"},(0,e.createElement)("div",{ref:h,className:"progress-bar",onClick:I,onMouseDown:e=>{N(!0),I(e)}},(0,e.createElement)("div",{className:"progress-filled",style:{width:`${B}%`}}),(0,e.createElement)("div",{className:"progress-handle",style:{left:`${B}%`}}))),(0,e.createElement)("div",{className:"volume-container"},(0,e.createElement)("button",{className:"control-btn volume-btn",onClick:z},L||0===C?(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"})):(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}))),(0,e.createElement)("div",{className:"volume-slider"},(0,e.createElement)("div",{ref:m,className:"volume-bar",onClick:R,onMouseDown:e=>{N(!0),R(e)}},(0,e.createElement)("div",{className:"volume-filled",style:{width:`${F}%`}}),(0,e.createElement)("div",{className:"volume-handle",style:{left:`${F}%`}})))),(0,e.createElement)("button",{className:"control-btn fullscreen-btn",onClick:_},(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}))))))},at=t=>{const{name:n,displayName:a,description:r,slug:o,logo:l,banner:i,video:s,isYoutube:c,pages:u,children:h}=t,m=[{title:"Need any Assistance?",description:"Our Expert Support Team is always ready to help you out promptly.",link:"https://bplugins.com/support",linkText:"Contact Support"},{title:"Looking for Documentation?",description:"We have detailed documentation on every aspects of the plugin.",link:u?.docs,linkText:"Documentation"},{title:"Liked This Plugin?",description:"Glad to know that, you can support us by leaving a 5 ⭐ rating.",link:`https://wordpress.org/support/plugin/${o}/reviews#new-post`,linkText:"Rate the Plugin"}];return(0,e.createElement)("div",{className:"bPlDashboardOverview bPlDashboardBox"},(0,e.createElement)("div",{className:"overviewLeft"},(0,e.createElement)("div",{className:"overviewLeftTop"},n&&(0,e.createElement)("h2",{className:"overviewTitle"},"Welcome to ",n),r&&(0,e.createElement)("p",{className:"overviewDescription"},r),(0,e.createElement)("div",{className:"overviewBanner"},s?(0,e.createElement)(nt,{src:s,width:"100%",height:"100%",isYoutube:c}):i?(0,e.createElement)("img",{src:i,alt:`${n} Banner`}):null),(0,e.createElement)("div",{className:"overviewPluginInfo"},l&&(0,e.createElement)("img",{src:l,alt:n}),(0,e.createElement)("div",null,a&&(0,e.createElement)("h3",null,a),(0,e.createElement)("span",null,"by"),(0,e.createElement)("a",{href:"https://bplugins.com",target:"_blank",rel:"noopener noreferrer"},"bPlugins")))),(h||u?.landing)&&(0,e.createElement)("div",{className:"overviewLeftBottom bPlDashboardButtons"},h,u?.landing&&(0,e.createElement)(Fe,{href:u.landing,target:"_blank",rel:"noopener noreferrer",variant:"primary"},"Learn More"))),(0,e.createElement)("div",{className:"overviewRight"},m?.map(((t,n)=>{const{title:a,description:r,link:o,linkText:l}=t;return o&&(0,e.createElement)("div",{key:n,className:"helpInfoItem"},(0,e.createElement)("h4",null,a),(0,e.createElement)("p",null,r),(0,e.createElement)(Fe,{href:o,target:"_blank",rel:"noopener noreferrer",size:"medium"},l))}))))},rt=t=>{const{changelogs:n}=t,[a,r]=(0,e.useState)(!1),o=(0,e.useRef)(),l=(0,e.useRef)();return(0,e.useEffect)((()=>{const e=o.current,t=l.current;e&&t&&(e.style.height=a?`${t.scrollHeight}px`:"0px")}),[a,n]),n?.length&&(0,e.createElement)("div",{className:"bPlDashboardChangelog bPlDashboardBox"},(0,e.createElement)("div",{className:"toggleArea"},(0,e.createElement)("h2",{className:"headerArea",onClick:()=>r(!a)},"Release Notes(Changelog)...",a?Ve:je),(0,e.createElement)("div",{className:"changelogsWrap",ref:o,style:{height:0}},(0,e.createElement)("div",{className:"changelogs",ref:l},n.map(((t,n)=>{const{version:a,list:r}=t;return(0,e.createElement)("div",{key:n,className:"item"},(0,e.createElement)("h4",null,a),(0,e.createElement)("ul",{className:"list"},r?.map(((t,n)=>(0,e.createElement)("li",{key:n},t)))))}))))))},ot=t=>{const{isPremium:n}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(at,{...t},!n&&(0,e.createElement)(Fe,{href:"#pricing",variant:"secondary"},"Buy Now")),(0,e.createElement)(rt,{changelogs:Xe,...t}))};n(533);const lt=({pricingInfo:t,options:n})=>{const{pluginId:a,planId:r,licenses:o}=t,[l,i]=(0,e.useState)({}),[s,c]=(0,e.useState)(!1);(0,e.useEffect)((()=>{if(a){let e=!0;const t=`https://api.bplugins.com/wp-json/bpl/v1/products/${a}`;return c(!0),fetch(t).then((e=>{if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);return e.json()})).then((t=>{e&&i(t)})).catch((t=>{e&&(console.error(t.message||"Fetch error"),i({}))})).finally((()=>{e&&c(!1)})),()=>{e=!1}}}),[a]);const[u,h]=(0,e.useState)([]),[m,d]=(0,e.useState)(u?.find((e=>e.isDefault))?.name||u[0]?.name);if((0,e.useEffect)((()=>{if(l?.id&&r){const{plans:e}=l||{},t=e?.find((e=>parseInt(e.id)===parseInt(r)))||e?.[0]||{},n=t?.pricing?.[0];if(n&&"object"==typeof n){let e=[];n.hasOwnProperty("monthly")&&e.push({name:"monthly",label:"Monthly"}),n.hasOwnProperty("annual")&&e.push({name:"annual",label:"Yearly",isDefault:!0}),n.hasOwnProperty("lifetime")&&e.push({name:"lifetime",label:"Lifetime"}),h(e),d(e?.find((e=>e.isDefault))?.name||e[0]?.name)}else h([]),d("")}}),[l,s,r]),s)return(0,e.createElement)("div",{className:"bPlDashboardPricing bPlDashboardBox"},(0,e.createElement)("h2",null,"Loading..."));if(!l||!l?.id)return null;const{plans:p}=l||{},f=p?.find((e=>parseInt(e.id)===parseInt(r)))||p?.[0]||{},{pricing:v=[]}=f||{};return(0,e.createElement)("div",{className:"bPlDashboardPricing bPlDashboardBox"},u?.length>1&&(0,e.createElement)("div",{className:"cycles"},u.map((t=>(0,e.createElement)("button",{key:t.name,className:t.name===m?"active":"",onClick:()=>d(t.name)},t.label," ","annual"===t.name&&(0,e.createElement)("span",null,`upto ${(()=>{const e=v.map((e=>{const t=12*parseFloat(e.monthly);return(t-parseFloat(e.annual))/t*100}));return Math.max(...e).toFixed(0)})()}% off`))))),1===u?.length&&"lifetime"===u[0]?.name&&(0,e.createElement)("h2",{className:"pricingTitle"},"One-time payment, lifetime access"),(0,e.createElement)("div",{className:"plans"},v?.length?v?.map(((a,r)=>o.includes(a?.licenses)&&(0,e.createElement)(it,{key:r,pricingInfo:t,product:l,price:a,cycle:m,options:n}))):(0,e.createElement)("h3",{style:{gridColumn:"1 / -1",textAlign:"center"}},"Select a plan")))},it=({pricingInfo:t,product:n,price:a,cycle:r,options:o})=>{const{logo:l,planId:i,button:s,featured:c}=t,{title:u,id:h,public_key:m,icon:d}=n||{},{licenses:p}=a||{},f=a?.[r]+"",[v,g]=f?.split(".")||[],y=p?1===p?"Single Site":`${p} Sites`:"Unlimited Sites",w=c?.selected===(p||"null");return(0,e.createElement)("div",{className:"plan "+(w?"bestValue":""),"data-best-text":c?.text},(0,e.createElement)("h3",{className:"planName wp-block-heading"},y),(0,e.createElement)("div",{className:"priceWrap"},(0,e.createElement)("p",{className:"price"},"$",v,g&&(0,e.createElement)("small",null,".",g))),(0,e.createElement)(Fe,{className:"outline "+(w?"white":""),onClick:e=>{e.preventDefault(),new FS.Checkout({plugin_id:h,plan_id:i,public_key:m}).open({image:l||d,title:u,licenses:p,billing_cycle:r,...o})}},s.label),(0,e.createElement)("ul",{className:"wp-block-list features checkList "+(w?"whiteCheck":"themeCheck")},((e,t)=>{const n=e.find((e=>"free"===e.name))?.features?.map((e=>e.title)),a=e.find((e=>"pro"===e.name))?.features?.filter((e=>!n.includes(e.title))).map((e=>e.title)),r={free:n,pro:a},o=e.find((e=>parseInt(e.id)===parseInt(t)))?.name;return r[o]||e.find((e=>parseInt(e.id)===parseInt(t)))?.features?.map((e=>e.title))||[]})(n.plans,i).map(((t,n)=>(0,e.createElement)("li",{key:n},t)))))},st=t=>{const{isPremium:n}=t;return(0,e.createElement)(Ie,null,(0,e.createElement)(ce,null,(0,e.createElement)(ie,{path:"/",element:(0,e.createElement)(Je,{...t})},(0,e.createElement)(ie,{index:!0,element:(0,e.createElement)(ot,{...t})}),(0,e.createElement)(ie,{path:"welcome",element:(0,e.createElement)(ot,{...t})}),(0,e.createElement)(ie,{path:"demos",element:(0,e.createElement)(Oe,{demoInfo:Ze,...t},!n&&(0,e.createElement)(Fe,{href:"#pricing"},"Buy Now"))}),!n&&(0,e.createElement)(ie,{path:"pricing",element:(0,e.createElement)(lt,{pricingInfo:et,options:{}})}),!n&&(0,e.createElement)(ie,{path:"feature-comparison",element:(0,e.createElement)(We,{featureCompareInfo:tt,...t})}),(0,e.createElement)(ie,{path:"*",element:(0,e.createElement)(oe,{to:"/welcome",replace:!0})}))))};document.addEventListener("DOMContentLoaded",(()=>{const n=document.getElementById("lpbDashboard"),a=JSON.parse(n.dataset.info);(0,t.H)(n).render((0,e.createElement)(st,{...Qe(a)})),n.removeAttribute("data-info")}))})()})();