Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.15.34.105
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/diixadigital.com/wp-content/plugins/woocommerce-payments/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/diixadigital.com/wp-content/plugins/woocommerce-payments/dist/tos.js
/*! For license information please see tos.js.LICENSE.txt */
(()=>{var e={2485:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},8616:e=>{e.exports=function(e,t){var n,r,o=0;function i(){var i,s,a=n,c=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(s=0;s<c;s++)if(a.args[s]!==arguments[s]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(i=new Array(c),s=0;s<c;s++)i[s]=arguments[s];return a={args:i,val:e.apply(null,i)},n?(n.prev=a,a.next=n):r=a,o===t.maxSize?(r=r.prev).next=null:o++,n=a,a.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}},5228:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;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 r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in i=Object(arguments[c]))n.call(i,l)&&(a[l]=i[l]);if(t){s=t(i);for(var u=0;u<s.length;u++)r.call(i,s[u])&&(a[s[u]]=i[s[u]])}}return a}},5606:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var a,c=[],l=!1,u=-1;function d(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(a=c,c=[];++u<t;)a&&a[u].run();u=-1,t=c.length}a=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}r.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];c.push(new f(e,t)),1!==c.length||l||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},1020:(e,t,n)=>{"use strict";n(5228);var r=n(1609),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,i={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:s.current}}t.jsx=l,t.jsxs=l},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},1609:e=>{"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),n.p=window.wcpayAssets.url,(()=>{"use strict";var e=n(1609);const t=window.ReactDOM;var r=n.n(t);const o=window.wp.i18n,i=window.wp.element;function s(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function a(t,n){let r,o,i=[];for(let e=0;e<t.length;e++){const s=t[e];if("string"!==s.type){if(void 0===n[s.value])throw new Error(`Invalid interpolation, missing component node: \`${s.value}\``);if("object"!=typeof n[s.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${s.value}\``);if("componentClose"===s.type)throw new Error(`Missing opening component token: \`${s.value}\``);if("componentOpen"===s.type){r=n[s.value],o=e;break}i.push(n[s.value])}else i.push(s.value)}if(r){const s=function(e,t){const n=t[e];let r=0;for(let o=e+1;o<t.length;o++){const e=t[o];if(e.value===n.value){if("componentOpen"===e.type){r++;continue}if("componentClose"===e.type){if(0===r)return o;r--}}}throw new Error("Missing closing component token `"+n.value+"`")}(o,t),c=a(t.slice(o+1,s),n),l=(0,e.cloneElement)(r,{},c);if(i.push(l),s<t.length-1){const e=a(t.slice(s+1),n);i=i.concat(e)}}return i=i.filter(Boolean),0===i.length?null:1===i.length?i[0]:(0,e.createElement)(e.Fragment,null,...i)}function c(e){const{mixedString:t,components:n,throwErrors:r}=e;if(!n)return t;if("object"!=typeof n){if(r)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const o=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(s)}(t);try{return a(o,n)}catch(e){if(r)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(null,arguments)}var u=n(2485),d=n.n(u);const p=window.wp.compose,f=window.wp.keycodes,m=window.wp.primitives,h=(0,i.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(m.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),g=window.lodash,v=new Set(["alert","status","log","marquee","timer"]);let y=[],w=!1;const b=window.wp.deprecated;var _=n.n(b);const x=window.wp.dom,E=(0,i.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(m.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function k(e,t,n){const{defaultView:r}=t,{frameElement:o}=r;if(!o||t===n.ownerDocument)return e;const i=o.getBoundingClientRect();return new r.DOMRect(e.left+i.left,e.top+i.top,e.width,e.height)}let C=0;function S(e){const t=document.scrollingElement||document.body;e&&(C=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=C)}let A=0;function R(){return(0,i.useEffect)((()=>(0===A&&S(!0),++A,()=>{1===A&&S(!1),--A})),[]),null}window.wp.warning;var O=n(5606);const T=(0,i.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==O&&O.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function P(e){const t=(0,i.useContext)(T),n=t.slots[e]||{},r=t.fills[e],o=(0,i.useMemo)((()=>r||[]),[r]);return{...n,updateSlot:(0,i.useCallback)((n=>{t.updateSlot(e,n)}),[e,t.updateSlot]),unregisterSlot:(0,i.useCallback)((n=>{t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),fills:o,registerFill:(0,i.useCallback)((n=>{t.registerFill(e,n)}),[e,t.registerFill]),unregisterFill:(0,i.useCallback)((n=>{t.unregisterFill(e,n)}),[e,t.unregisterFill])}}const L=(0,i.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function N(e){let{name:t,children:n,registerFill:r,unregisterFill:o}=e;const s=(e=>{const{getSlot:t,subscribe:n}=(0,i.useContext)(L),[r,o]=(0,i.useState)(t(e));return(0,i.useEffect)((()=>(o(t(e)),n((()=>{o(t(e))})))),[e]),r})(t),a=(0,i.useRef)({name:t,children:n});return(0,i.useLayoutEffect)((()=>(r(t,a.current),()=>o(t,a.current))),[]),(0,i.useLayoutEffect)((()=>{a.current.children=n,s&&s.forceUpdate()}),[n]),(0,i.useLayoutEffect)((()=>{t!==a.current.name&&(o(a.current.name,a.current),a.current.name=t,r(t,a.current))}),[t]),s&&s.node?((0,g.isFunction)(n)&&(n=n(s.props.fillProps)),(0,i.createPortal)(n,s.node)):null}const j=e=>(0,i.createElement)(L.Consumer,null,(t=>{let{registerFill:n,unregisterFill:r}=t;return(0,i.createElement)(N,l({},e,{registerFill:n,unregisterFill:r}))}));class D extends i.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name),r(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:n={},getFills:r}=this.props,o=(0,g.map)(r(t,this),(e=>{const t=(0,g.isFunction)(e.children)?e.children(n):e.children;return i.Children.map(t,((e,t)=>{if(!e||(0,g.isString)(e))return e;const n=e.key||t;return(0,i.cloneElement)(e,{key:n})}))})).filter((0,g.negate)(i.isEmptyElement));return(0,i.createElement)(i.Fragment,null,(0,g.isFunction)(e)?e(o):o)}}const F=e=>(0,i.createElement)(L.Consumer,null,(t=>{let{registerSlot:n,unregisterSlot:r,getFills:o}=t;return(0,i.createElement)(D,l({},e,{registerSlot:n,unregisterSlot:r,getFills:o}))}));var M=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),$=Math.abs,W=String.fromCharCode,I=Object.assign;function B(e){return e.trim()}function H(e,t,n){return e.replace(t,n)}function z(e,t){return e.indexOf(t)}function U(e,t){return 0|e.charCodeAt(t)}function V(e,t,n){return e.slice(t,n)}function q(e){return e.length}function G(e){return e.length}function X(e,t){return t.push(e),e}var Y=1,K=1,Q=0,Z=0,J=0,ee="";function te(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Y,column:K,length:s,return:""}}function ne(e,t){return I(te("",null,null,"",null,null,0),e,{length:-e.length},t)}function re(){return J=Z>0?U(ee,--Z):0,K--,10===J&&(K=1,Y--),J}function oe(){return J=Z<Q?U(ee,Z++):0,K++,10===J&&(K=1,Y++),J}function ie(){return U(ee,Z)}function se(){return Z}function ae(e,t){return V(ee,e,t)}function ce(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function le(e){return Y=K=1,Q=q(ee=e),Z=0,[]}function ue(e){return ee="",e}function de(e){return B(ae(Z-1,me(91===e?e+2:40===e?e+1:e)))}function pe(e){for(;(J=ie())&&J<33;)oe();return ce(e)>2||ce(J)>3?"":" "}function fe(e,t){for(;--t&&oe()&&!(J<48||J>102||J>57&&J<65||J>70&&J<97););return ae(e,se()+(t<6&&32==ie()&&32==oe()))}function me(e){for(;oe();)switch(J){case e:return Z;case 34:case 39:34!==e&&39!==e&&me(J);break;case 40:41===e&&me(e);break;case 92:oe()}return Z}function he(e,t){for(;oe()&&e+J!==57&&(e+J!==84||47!==ie()););return"/*"+ae(t,Z-1)+"*"+W(47===e?e:oe())}function ge(e){for(;!ce(ie());)oe();return ae(e,Z)}var ve="-ms-",ye="-moz-",we="-webkit-",be="comm",_e="rule",xe="decl",Ee="@keyframes";function ke(e,t){for(var n="",r=G(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ce(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case xe:return e.return=e.return||e.value;case be:return"";case Ee:return e.return=e.value+"{"+ke(e.children,r)+"}";case _e:e.value=e.props.join(",")}return q(n=ke(e.children,r))?e.return=e.value+"{"+n+"}":""}function Se(e){return ue(Ae("",null,null,null,[""],e=le(e),0,[0],e))}function Ae(e,t,n,r,o,i,s,a,c){for(var l=0,u=0,d=s,p=0,f=0,m=0,h=1,g=1,v=1,y=0,w="",b=o,_=i,x=r,E=w;g;)switch(m=y,y=oe()){case 40:if(108!=m&&58==U(E,d-1)){-1!=z(E+=H(de(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=de(y);break;case 9:case 10:case 13:case 32:E+=pe(m);break;case 92:E+=fe(se()-1,7);continue;case 47:switch(ie()){case 42:case 47:X(Oe(he(oe(),se()),t,n),c);break;default:E+="/"}break;case 123*h:a[l++]=q(E)*v;case 125*h:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(E=H(E,/\f/g,"")),f>0&&q(E)-d&&X(f>32?Te(E+";",r,n,d-1):Te(H(E," ","")+";",r,n,d-2),c);break;case 59:E+=";";default:if(X(x=Re(E,t,n,l,u,o,a,w,b=[],_=[],d),i),123===y)if(0===u)Ae(E,t,x,x,b,i,d,a,_);else switch(99===p&&110===U(E,3)?100:p){case 100:case 108:case 109:case 115:Ae(e,x,x,r&&X(Re(e,x,x,0,0,o,a,w,o,b=[],d),_),o,_,d,a,r?b:_);break;default:Ae(E,x,x,x,[""],_,0,a,_)}}l=u=f=0,h=v=1,w=E="",d=s;break;case 58:d=1+q(E),f=m;default:if(h<1)if(123==y)--h;else if(125==y&&0==h++&&125==re())continue;switch(E+=W(y),y*h){case 38:v=u>0?1:(E+="\f",-1);break;case 44:a[l++]=(q(E)-1)*v,v=1;break;case 64:45===ie()&&(E+=de(oe())),p=ie(),u=d=q(w=E+=ge(se())),y++;break;case 45:45===m&&2==q(E)&&(h=0)}}return i}function Re(e,t,n,r,o,i,s,a,c,l,u){for(var d=o-1,p=0===o?i:[""],f=G(p),m=0,h=0,g=0;m<r;++m)for(var v=0,y=V(e,d+1,d=$(h=s[m])),w=e;v<f;++v)(w=B(h>0?p[v]+" "+y:H(y,/&\f/g,p[v])))&&(c[g++]=w);return te(e,t,n,0===o?_e:a,c,l,u)}function Oe(e,t,n){return te(e,t,n,be,W(J),V(e,2,-2),0)}function Te(e,t,n,r){return te(e,t,n,xe,V(e,0,r),V(e,r+1,-1),r)}var Pe=function(e,t,n){for(var r=0,o=0;r=o,o=ie(),38===r&&12===o&&(t[n]=1),!ce(o);)oe();return ae(e,Z)},Le=new WeakMap,Ne=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Le.get(n))&&!r){Le.set(e,!0);for(var o=[],i=function(e,t){return ue(function(e,t){var n=-1,r=44;do{switch(ce(r)){case 0:38===r&&12===ie()&&(t[n]=1),e[n]+=Pe(Z-1,t,n);break;case 2:e[n]+=de(r);break;case 4:if(44===r){e[++n]=58===ie()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=W(r)}}while(r=oe());return e}(le(e),t))}(t,o),s=n.props,a=0,c=0;a<i.length;a++)for(var l=0;l<s.length;l++,c++)e.props[c]=o[a]?i[a].replace(/&\f/g,s[l]):s[l]+" "+i[a]}}},je=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function De(e,t){switch(function(e,t){return 45^U(e,0)?(((t<<2^U(e,0))<<2^U(e,1))<<2^U(e,2))<<2^U(e,3):0}(e,t)){case 5103:return we+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return we+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return we+e+ye+e+ve+e+e;case 6828:case 4268:return we+e+ve+e+e;case 6165:return we+e+ve+"flex-"+e+e;case 5187:return we+e+H(e,/(\w+).+(:[^]+)/,we+"box-$1$2"+ve+"flex-$1$2")+e;case 5443:return we+e+ve+"flex-item-"+H(e,/flex-|-self/,"")+e;case 4675:return we+e+ve+"flex-line-pack"+H(e,/align-content|flex-|-self/,"")+e;case 5548:return we+e+ve+H(e,"shrink","negative")+e;case 5292:return we+e+ve+H(e,"basis","preferred-size")+e;case 6060:return we+"box-"+H(e,"-grow","")+we+e+ve+H(e,"grow","positive")+e;case 4554:return we+H(e,/([^-])(transform)/g,"$1"+we+"$2")+e;case 6187:return H(H(H(e,/(zoom-|grab)/,we+"$1"),/(image-set)/,we+"$1"),e,"")+e;case 5495:case 3959:return H(e,/(image-set\([^]*)/,we+"$1$`$1");case 4968:return H(H(e,/(.+:)(flex-)?(.*)/,we+"box-pack:$3"+ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+we+e+e;case 4095:case 3583:case 4068:case 2532:return H(e,/(.+)-inline(.+)/,we+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(q(e)-1-t>6)switch(U(e,t+1)){case 109:if(45!==U(e,t+4))break;case 102:return H(e,/(.+:)(.+)-([^]+)/,"$1"+we+"$2-$3$1"+ye+(108==U(e,t+3)?"$3":"$2-$3"))+e;case 115:return~z(e,"stretch")?De(H(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==U(e,t+1))break;case 6444:switch(U(e,q(e)-3-(~z(e,"!important")&&10))){case 107:return H(e,":",":"+we)+e;case 101:return H(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+we+(45===U(e,14)?"inline-":"")+"box$3$1"+we+"$2$3$1"+ve+"$2box$3")+e}break;case 5936:switch(U(e,t+11)){case 114:return we+e+ve+H(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return we+e+ve+H(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return we+e+ve+H(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return we+e+ve+e+e}return e}var Fe=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xe:e.return=De(e.value,e.length);break;case Ee:return ke([ne(e,{value:H(e.value,"@","@"+we)})],r);case _e:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ke([ne(e,{props:[H(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ke([ne(e,{props:[H(t,/:(plac\w+)/,":"+we+"input-$1")]}),ne(e,{props:[H(t,/:(plac\w+)/,":-moz-$1")]}),ne(e,{props:[H(t,/:(plac\w+)/,ve+"input-$1")]})],r)}return""}))}}],Me=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Fe,s={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var c,l,u,d,p=[Ce,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(l=[Ne,je].concat(i,p),u=G(l),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=l[i](e,t,n,r)||"";return o});o=function(e,t,n,r){c=n,ke(Se(e?e+"{"+t.styles+"}":t.styles),f),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new M({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return m.sheet.hydrate(a),m},$e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function We(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ie=/[A-Z]|^ms/g,Be=/_EMO_([^_]+?)_([^]*?)_EMO_/g,He=function(e){return 45===e.charCodeAt(1)},ze=function(e){return null!=e&&"boolean"!=typeof e},Ue=We((function(e){return He(e)?e:e.replace(Ie,"-$&").toLowerCase()})),Ve=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Be,(function(e,t,n){return Ge={name:t,styles:n,next:Ge},t}))}return 1===$e[e]||He(e)||"number"!=typeof t||0===t?t:t+"px"};function qe(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ge={name:n.name,styles:n.styles,next:Ge},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ge={name:r.name,styles:r.styles,next:Ge},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=qe(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":ze(s)&&(r+=Ue(i)+":"+Ve(i,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=qe(e,t,s);switch(i){case"animation":case"animationName":r+=Ue(i)+":"+a+";";break;default:r+=i+"{"+a+"}"}}else for(var c=0;c<s.length;c++)ze(s[c])&&(r+=Ue(i)+":"+Ve(i,s[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ge,i=n(e);return Ge=o,qe(e,t,i)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var Ge,Xe,Ye=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ke=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ge=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=qe(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++)o+=qe(n,t,e[s]),r&&(o+=i[s]);Ye.lastIndex=0;for(var a,c="";null!==(a=Ye.exec(o));)c+="-"+a[1];var l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:l,styles:o,next:Ge}},Qe=!!e.useInsertionEffect&&e.useInsertionEffect,Ze=Qe||function(e){return e()},Je=(Qe||e.useLayoutEffect,e.createContext("undefined"!=typeof HTMLElement?Me({key:"css"}):null)),et=Je.Provider,tt=e.createContext({}),nt=n(8616),rt=n.n(nt),ot=new Uint8Array(16);function it(){if(!Xe&&!(Xe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xe(ot)}const st=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var at=[],ct=0;ct<256;++ct)at.push((ct+256).toString(16).substr(1));const lt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(at[e[t+0]]+at[e[t+1]]+at[e[t+2]]+at[e[t+3]]+"-"+at[e[t+4]]+at[e[t+5]]+"-"+at[e[t+6]]+at[e[t+7]]+"-"+at[e[t+8]]+at[e[t+9]]+"-"+at[e[t+10]]+at[e[t+11]]+at[e[t+12]]+at[e[t+13]]+at[e[t+14]]+at[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&st.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},ut=function(e,t,n){var r=(e=e||{}).random||(e.rng||it)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return lt(r)},dt=new Set,pt=rt()((e=>{let t=ut().replace(/[0-9]/g,"");for(;dt.has(t);)t=ut().replace(/[0-9]/g,"");return dt.add(t),Me({container:e,key:t})}));function ft(e){let{children:t,document:n}=e;if(!n)return null;const r=pt(n.head);return(0,i.createElement)(et,{value:r},t)}function mt(){const[,e]=(0,i.useState)({}),t=(0,i.useRef)(!0);return(0,i.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function ht(e){let{name:t,children:n}=e;const r=P(t),o=(0,i.useRef)({rerender:mt()});if((0,i.useEffect)((()=>(r.registerFill(o),()=>{r.unregisterFill(o)})),[r.registerFill,r.unregisterFill]),!r.ref||!r.ref.current)return null;"function"==typeof n&&(n=n(r.fillProps));const s=(0,i.createElement)(ft,{document:r.ref.current.ownerDocument},n);return(0,i.createPortal)(s,r.ref.current)}const gt=(0,i.forwardRef)((function(e,t){let{name:n,fillProps:r={},as:o="div",...s}=e;const a=(0,i.useContext)(T),c=(0,i.useRef)();return(0,i.useLayoutEffect)((()=>(a.registerSlot(n,c,r),()=>{a.unregisterSlot(n,c)})),[a.registerSlot,a.unregisterSlot,n]),(0,i.useLayoutEffect)((()=>{a.updateSlot(n,r)})),(0,i.createElement)(o,l({ref:(0,p.useMergeRefs)([t,c])},s))}));function vt(e){return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(j,e),(0,i.createElement)(ht,e))}const yt=(0,i.forwardRef)(((e,t)=>{let{bubblesVirtually:n,...r}=e;return n?(0,i.createElement)(gt,l({},r,{ref:t})):(0,i.createElement)(F,r)}));function wt(e){return"appear"===e?"top":"left"}const bt="Popover",_t=(0,i.createContext)();function xt(e,t){const{paddingTop:n,paddingBottom:r,paddingLeft:o,paddingRight:i}=function(e){return e.ownerDocument.defaultView.getComputedStyle(e)}(t),s=n?parseInt(n,10):0,a=r?parseInt(r,10):0,c=o?parseInt(o,10):0,l=i?parseInt(i,10):0;return{x:e.left+c,y:e.top+s,width:e.width-c-l,height:e.height-s-a,left:e.left+c,right:e.right-l,top:e.top+s,bottom:e.bottom-a}}function Et(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function kt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function Ct(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const St=(0,i.forwardRef)(((e,t)=>{let{headerTitle:n,onClose:r,children:s,className:a,noArrow:c=!0,isAlternate:u,position:f="bottom right",range:m,focusOnMount:h="firstElement",anchorRef:g,shouldAnchorIncludePadding:v,anchorRect:y,getAnchorRect:w,expandOnMobile:b,animate:_=!0,onFocusOutside:C,__unstableStickyBoundaryElement:S,__unstableSlotName:A=bt,__unstableObserveElement:O,__unstableBoundaryParent:T,__unstableForcePosition:L,__unstableForceXAlignment:N,__unstableEditorCanvasWrapper:j,...D}=e;const F=(0,i.useRef)(null),M=(0,i.useRef)(null),$=(0,i.useRef)(),W=(0,p.useViewportMatch)("medium","<"),[I,B]=(0,i.useState)(),H=(0,i.useContext)(_t)||A,z=P(H),U=b&&W,[V,q]=(0,p.useResizeObserver)();c=U||c,(0,i.useLayoutEffect)((()=>{if(U)return Ct($.current,"is-without-arrow",c),Ct($.current,"is-alternate",u),Et($.current,"data-x-axis"),Et($.current,"data-y-axis"),kt($.current,"top"),kt($.current,"left"),kt(M.current,"maxHeight"),void kt(M.current,"maxWidth");const e=()=>{if(!$.current||!M.current)return;let e=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;if(t)return t;if(n){if(!e.current)return;const t=n(e.current);return k(t,t.ownerDocument||e.current.ownerDocument,i)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==r?void 0:r.cloneRange))return k((0,x.getRectangleFromRange)(r),r.endContainer.ownerDocument,i);if("function"==typeof(null==r?void 0:r.getBoundingClientRect)){const e=k(r.getBoundingClientRect(),r.ownerDocument,i);return o?e:xt(e,r)}const{top:e,bottom:t}=r,n=e.getBoundingClientRect(),s=t.getBoundingClientRect(),a=k(new window.DOMRect(n.left,n.top,n.width,s.bottom-n.top),e.ownerDocument,i);return o?a:xt(a,r)}if(!e.current)return;const{parentNode:s}=e.current,a=k(s.getBoundingClientRect(),s.ownerDocument,i);return o?a:xt(a,s)}(F,y,w,g,v,$.current);if(!e)return;const{offsetParent:t,ownerDocument:n}=$.current;let r,i=0;if(t&&t!==n.body){const n=t.getBoundingClientRect();i=n.top,e=new window.DOMRect(e.left-n.left,e.top-n.top,e.width,e.height)}T&&(r=$.current.parentElement);const s=q.height?q:M.current.getBoundingClientRect(),{popoverTop:a,popoverLeft:l,xAxis:d,yAxis:p,contentHeight:m,contentWidth:h}=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,a=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0;const[u,d="center",p]=n.split(" "),f=function(e,t,n,r,o,i,s,a,c){const{height:l}=t;if(o){const t=o.getBoundingClientRect(),r=t.top+l-s,i=t.bottom-l-s;if(e.top<=r)return!c||l+10<c.scrollTop+e.top?{yAxis:n,popoverTop:Math.min(e.bottom,r)}:{yAxis:"bottom",popoverTop:Math.min(e.bottom,i)}}let u=e.top+e.height/2;"bottom"===r?u=e.bottom:"top"===r&&(u=e.top);const d={popoverTop:u,contentHeight:(u-l/2>0?l/2:u)+(u+l/2>window.innerHeight?window.innerHeight-u:l/2)},p={popoverTop:e.top,contentHeight:e.top-10-l>0?l:e.top-10},f={popoverTop:e.bottom,contentHeight:e.bottom+10+l>window.innerHeight?window.innerHeight-10-e.bottom:l};let m,h=n,g=null;if(!o&&!a)if("middle"===n&&d.contentHeight===l)h="middle";else if("top"===n&&p.contentHeight===l)h="top";else if("bottom"===n&&f.contentHeight===l)h="bottom";else{h=p.contentHeight>f.contentHeight?"top":"bottom";const e="top"===h?p.contentHeight:f.contentHeight;g=e!==l?e:null}return m="middle"===h?d.popoverTop:"top"===h?p.popoverTop:f.popoverTop,{yAxis:h,popoverTop:m,contentHeight:g}}(e,t,u,p,r,0,i,a,l),m=function(e,t,n,r,i,s,a,c,l){const{width:u}=t;"left"===n&&(0,o.isRTL)()?n="right":"right"===n&&(0,o.isRTL)()&&(n="left"),"left"===r&&(0,o.isRTL)()?r="right":"right"===r&&(0,o.isRTL)()&&(r="left");const d=Math.round(e.left+e.width/2),p={popoverLeft:d,contentWidth:(d-u/2>0?u/2:d)+(d+u/2>window.innerWidth?window.innerWidth-d:u/2)};let f=e.left;"right"===r?f=e.right:"middle"===s||l||(f=d);let m=e.right;"left"===r?m=e.left:"middle"===s||l||(m=d);const h={popoverLeft:f,contentWidth:f-u>0?u:f},g={popoverLeft:m,contentWidth:m+u>window.innerWidth?window.innerWidth-m:u};let v,y=n,w=null;if(!i&&!c)if("center"===n&&p.contentWidth===u)y="center";else if("left"===n&&h.contentWidth===u)y="left";else if("right"===n&&g.contentWidth===u)y="right";else{y=h.contentWidth>g.contentWidth?"left":"right";const e="left"===y?h.contentWidth:g.contentWidth;u>window.innerWidth&&(w=window.innerWidth),e!==u&&(y="center",p.popoverLeft=window.innerWidth/2)}return v="center"===y?p.popoverLeft:"left"===y?h.popoverLeft:g.popoverLeft,a&&(v=Math.min(v,a.offsetLeft+a.offsetWidth-u),(0,o.isRTL)()||(v=Math.max(v,0))),{xAxis:y,popoverLeft:v,contentWidth:w}}(e,t,d,p,r,f.yAxis,s,a,c);return{...m,...f}}(e,s,f,S,$.current,i,r,L,N,j);"number"==typeof a&&"number"==typeof l&&(kt($.current,"top",a+"px"),kt($.current,"left",l+"px")),Ct($.current,"is-without-arrow",c||"center"===d&&"middle"===p),Ct($.current,"is-alternate",u),Et($.current,"data-x-axis",d),Et($.current,"data-y-axis",p),kt(M.current,"maxHeight","number"==typeof m?m+"px":""),kt(M.current,"maxWidth","number"==typeof h?h+"px":""),B(({left:"right",right:"left"}[d]||"center")+" "+({top:"bottom",bottom:"top"}[p]||"middle"))};e();const{ownerDocument:t}=$.current,{defaultView:n}=t,r=n.setInterval(e,500);let i;const s=()=>{n.cancelAnimationFrame(i),i=n.requestAnimationFrame(e)};n.addEventListener("click",s),n.addEventListener("resize",e),n.addEventListener("scroll",e,!0);const a=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(g);let l;return a&&a!==t&&(a.defaultView.addEventListener("resize",e),a.defaultView.addEventListener("scroll",e,!0)),O&&(l=new n.MutationObserver(e),l.observe(O,{attributes:!0})),()=>{var o,c;n.clearInterval(r),n.removeEventListener("resize",e),n.removeEventListener("scroll",e,!0),n.removeEventListener("click",s),n.cancelAnimationFrame(i),a&&a!==t&&(null===(o=a.defaultView)||void 0===o||o.removeEventListener("resize",e),null===(c=a.defaultView)||void 0===c||c.removeEventListener("scroll",e,!0)),l&&l.disconnect()}}),[U,y,w,g,v,f,q,S,O,T]);const G=(e,t)=>{"focus-outside"===e&&C?C(t):r&&r()},[X,Y]=(0,p.__experimentalUseDialog)({focusOnMount:h,__unstableOnClose:G,onClose:G}),K=(0,p.useMergeRefs)([$,X,t]),Q=Boolean(_&&I)&&function(e){if("loading"===e.type)return d()("components-animate__loading");const{type:t,origin:n=wt(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return d()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?d()("components-animate__slide-in","is-from-"+n):void 0}({type:"appear",origin:I});let Z=(0,i.createElement)("div",l({className:d()("components-popover",a,Q,{"is-expanded":U,"is-without-arrow":c,"is-alternate":u})},D,{ref:K},Y,{tabIndex:"-1"}),U&&(0,i.createElement)(R,null),U&&(0,i.createElement)("div",{className:"components-popover__header"},(0,i.createElement)("span",{className:"components-popover__header-title"},n),(0,i.createElement)(dn,{className:"components-popover__close",icon:E,onClick:r})),(0,i.createElement)("div",{ref:M,className:"components-popover__content"},(0,i.createElement)("div",{style:{position:"relative"}},V,s)));return z.ref&&(Z=(0,i.createElement)(vt,{name:H},Z)),g||y?Z:(0,i.createElement)("span",{ref:F},Z)}));St.Slot=(0,i.forwardRef)((function(e,t){let{name:n=bt}=e;return(0,i.createElement)(yt,{bubblesVirtually:!0,name:n,className:"popover-slot",ref:t})})),St.__unstableSlotNameProvider=_t.Provider;const At=St,Rt=function(e){let t,n,{shortcut:r,className:o}=e;return r?((0,g.isString)(r)&&(t=r),(0,g.isObject)(r)&&(t=r.display,n=r.ariaLabel),(0,i.createElement)("span",{className:o,"aria-label":n},t)):null},Ot=700,Tt=(0,i.createElement)("div",{className:"event-catcher"}),Pt=e=>{let{eventHandlers:t,child:n,childrenWithPopover:r}=e;return(0,i.cloneElement)((0,i.createElement)("span",{className:"disabled-element-wrapper"},(0,i.cloneElement)(Tt,t),(0,i.cloneElement)(n,{children:r})),t)},Lt=e=>{let{child:t,eventHandlers:n,childrenWithPopover:r}=e;return(0,i.cloneElement)(t,{...n,children:r})},Nt=(e,t,n)=>{if(1!==i.Children.count(e))return;const r=i.Children.only(e);r.props.disabled||"function"==typeof r.props[t]&&r.props[t](n)},jt=function(e){const{children:t,position:n,text:r,shortcut:o,delay:s=Ot}=e,[a,c]=(0,i.useState)(!1),[l,u]=(0,i.useState)(!1),d=(0,p.useDebounce)(u,s),f=e=>{Nt(t,"onMouseDown",e),document.addEventListener("mouseup",v),c(!0)},m=e=>{Nt(t,"onMouseUp",e),document.removeEventListener("mouseup",v),c(!1)},h=e=>"mouseUp"===e?m:"mouseDown"===e?f:void 0,v=h("mouseUp"),y=(e,n)=>r=>{if(Nt(t,e,r),r.currentTarget.disabled)return;if("focus"===r.type&&a)return;d.cancel();const o=(0,g.includes)(["focus","mouseenter"],r.type);o!==l&&(n?d(o):u(o))},w=()=>{d.cancel(),document.removeEventListener("mouseup",v)};if((0,i.useEffect)((()=>w),[]),1!==i.Children.count(t))return t;const b={onMouseEnter:y("onMouseEnter",!0),onMouseLeave:y("onMouseLeave"),onClick:y("onClick"),onFocus:y("onFocus"),onBlur:y("onBlur"),onMouseDown:h("mouseDown")},_=i.Children.only(t),{children:x,disabled:E}=_.props,k=E?Pt:Lt,C=(e=>{let{grandchildren:t,isOver:n,position:r,text:o,shortcut:s}=e;return(0,i.concatChildren)(t,n&&(0,i.createElement)(At,{focusOnMount:!1,position:r,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,i.createElement)(Rt,{className:"components-tooltip__shortcut",shortcut:s})))})({grandchildren:x,isOver:l,position:n,text:r,shortcut:o});return k({child:_,eventHandlers:b,childrenWithPopover:C})},Dt=function(e){let{icon:t,className:n,...r}=e;const o=["dashicon","dashicons","dashicons-"+t,n].filter(Boolean).join(" ");return(0,i.createElement)("span",l({className:o},r))},Ft=function(e){let{icon:t=null,size:n=24,...r}=e;if("string"==typeof t)return(0,i.createElement)(Dt,l({icon:t},r));if((0,i.isValidElement)(t)&&Dt===t.type)return(0,i.cloneElement)(t,{...r});if("function"==typeof t)return t.prototype instanceof i.Component?(0,i.createElement)(t,{size:n,...r}):t({size:n,...r});if(t&&("svg"===t.type||t.type===m.SVG)){const e={width:n,height:n,...t.props,...r};return(0,i.createElement)(m.SVG,e)}return(0,i.isValidElement)(t)?(0,i.cloneElement)(t,{size:n,...r}):t};var Mt=n(5606);const $t=(0,i.createContext)({}),Wt=()=>(0,i.useContext)($t);function It(e){let{value:t}=e;const n=Wt(),r=(0,i.useRef)(t);return function(e,n){const o=(0,i.useRef)(!1);(0,i.useEffect)((()=>{o.current?(0,g.isEqual)(r.current,t)&&r.current!==t&&void 0!==Mt&&Mt.env:o.current=!0}),n)}(0,[t]),(0,i.useMemo)((()=>(0,g.merge)((0,g.cloneDeep)(n),t)),[n,t])}(0,i.memo)((e=>{let{children:t,value:n}=e;const r=It({value:n});return(0,i.createElement)($t.Provider,{value:r},t)}));const Bt="data-wp-component",Ht="data-wp-c16t",zt="__contextSystemKey__",Ut=rt()((function(e){return`components-${(0,g.kebabCase)(e)}`}));function Vt(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}function qt(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Gt(e,t,n){var r=[],o=Vt(e,r,n);return r.length<2?n:o+t(r)}var Xt=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},Yt=function(){var e=Me({key:"css"});e.sheet.speedy=function(e){this.isSpeedy=e},e.compat=!0;var t=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Ke(n,e.registered,void 0);return function(e,t){!function(e,t){var n=e.key+"-"+t.name;void 0===e.registered[n]&&(e.registered[n]=t.styles)}(e,t);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+n:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(e,o),e.key+"-"+o.name};return{css:t,cx:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Gt(e.registered,t,Xt(r))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Ke(n,e.registered);qt(e,o)},keyframes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Ke(n,e.registered),i="animation-"+o.name;return qt(e,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(t){t.forEach((function(t){e.inserted[t]=!0}))},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:Vt.bind(null,e.registered),merge:Gt.bind(null,e.registered,t)}}(),Kt=(Yt.flush,Yt.hydrate,Yt.cx);Yt.merge,Yt.getRegisteredStyles,Yt.injectGlobal,Yt.keyframes,Yt.css,Yt.sheet,Yt.cache;n(5606);var Qt=n(5606);const Zt={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};var Jt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,en=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},tn=We((function(e){return Jt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),nn=function(e){return"theme"!==e},rn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?tn:nn},on=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},sn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return en(t,n,r),Ze((function(){return function(e,t,n){en(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null};const an=function t(n,r){var o,i,s=n.__emotion_real===n,a=s&&n.__emotion_base||n;void 0!==r&&(o=r.label,i=r.target);var c=on(n,r,s),u=c||rn(a),d=!u("as");return function(){var p=arguments,f=s&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&f.push("label:"+o+";"),null==p[0]||void 0===p[0].raw)f.push.apply(f,p);else{f.push(p[0][0]);for(var m=p.length,h=1;h<m;h++)f.push(p[h],p[0][h])}var g,v=(g=function(t,n,r){var o,s,l,p,m=d&&t.as||a,h="",g=[],v=t;if(null==t.theme){for(var y in v={},t)v[y]=t[y];v.theme=e.useContext(tt)}"string"==typeof t.className?(o=n.registered,s=g,l=t.className,p="",l.split(" ").forEach((function(e){void 0!==o[e]?s.push(o[e]+";"):p+=e+" "})),h=p):null!=t.className&&(h=t.className+" ");var w=Ke(f.concat(g),n.registered,v);h+=n.key+"-"+w.name,void 0!==i&&(h+=" "+i);var b=d&&void 0===c?rn(m):u,_={};for(var x in t)d&&"as"===x||b(x)&&(_[x]=t[x]);return _.className=h,_.ref=r,e.createElement(e.Fragment,null,e.createElement(sn,{cache:n,serialized:w,isStringTag:"string"==typeof m}),e.createElement(m,_))},(0,e.forwardRef)((function(t,n){var r=(0,e.useContext)(Je);return g(t,r,n)})));return v.displayName=void 0!==o?o:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",v.defaultProps=n.defaultProps,v.__emotion_real=v,v.__emotion_base=a,v.__emotion_styles=f,v.__emotion_forwardProp=c,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(e,n){return t(e,l({},r,n,{shouldForwardProp:on(v,n,!0)})).apply(void 0,f)},v}}("div",{target:"em57xhy0"})("");an.selector=".components-view",an.displayName="View";const cn=an,ln=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{memo:r=!1}=n;let o=(0,i.forwardRef)(e);r&&(o=(0,i.memo)(o)),void 0===t&&void 0!==Qt&&Qt.env;let s=o[zt]||[t];return Array.isArray(t)&&(s=[...s,...t]),"string"==typeof t&&(s=[...s,t]),o.displayName=t,o[zt]=(0,g.uniq)(s),o.selector=`.${Ut(t)}`,o}((function(t,n){const{style:r,...o}=function(t,n){const r=Wt(),o=(null==r?void 0:r[n])||{},s={[Ht]:!0,...(a=n,{[Bt]:a})};var a;const{_overrides:c,...l}=o,u=Object.entries(l).length?Object.assign({},l,t):t,d=(()=>{const t=(0,e.useContext)(Je),n=(0,i.useCallback)((function(){if(null===t)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Kt(...n.map((e=>{return null!=(n=e)&&["name","styles"].every((e=>void 0!==n[e]))?(function(e,t){var n=e.key+"-"+t.name;if(void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+n:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,e),`${t.key}-${e.name}`):e;var n})))}),[t]);return n})()(Ut(n),t.className),p="function"==typeof u.renderChildren?u.renderChildren(u):u.children;for(const e in u)s[e]=u[e];for(const e in c)s[e]=c[e];return s.children=p,s.className=d,s}(t,"VisuallyHidden");return(0,i.createElement)(cn,l({ref:n},o,{style:{...Zt,...r||{}}}))}),"VisuallyHidden"),un=["onMouseDown","onClick"],dn=(0,i.forwardRef)((function e(t,n){const{href:r,target:o,isSmall:s,isPressed:a,isBusy:c,isDestructive:u,className:f,disabled:m,icon:h,iconPosition:v="left",iconSize:y,showTooltip:w,tooltipPosition:b,shortcut:x,label:E,children:k,text:C,variant:S,__experimentalIsFocusable:A,describedBy:R,...O}=function(e){let{isDefault:t,isPrimary:n,isSecondary:r,isTertiary:o,isLink:i,variant:s,...a}=e,c=s;var l,u,d,p,f;return n&&(null!==(l=c)&&void 0!==l||(c="primary")),o&&(null!==(u=c)&&void 0!==u||(c="tertiary")),r&&(null!==(d=c)&&void 0!==d||(c="secondary")),t&&(_()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(p=c)&&void 0!==p||(c="secondary")),i&&(null!==(f=c)&&void 0!==f||(c="link")),{...a,variant:c}}(t),T=(0,p.useInstanceId)(e,"components-button__description"),P=d()("components-button",f,{"is-secondary":"secondary"===S,"is-primary":"primary"===S,"is-small":s,"is-tertiary":"tertiary"===S,"is-pressed":a,"is-busy":c,"is-link":"link"===S,"is-destructive":u,"has-text":!!h&&!!k,"has-icon":!!h}),L=m&&!A,N=void 0===r||L?"button":"a",j="a"===N?{href:r,target:o}:{type:"button",disabled:L,"aria-pressed":a};if(m&&A){j["aria-disabled"]=!0;for(const e of un)O[e]=e=>{e.stopPropagation(),e.preventDefault()}}const D=!L&&(w&&E||x||!!E&&(!k||(0,g.isArray)(k)&&!k.length)&&!1!==w),F=R?T:null,M=O["aria-describedby"]||F,$=(0,i.createElement)(N,l({},j,O,{className:P,"aria-label":O["aria-label"]||E,"aria-describedby":M,ref:n}),h&&"left"===v&&(0,i.createElement)(Ft,{icon:h,size:y}),C&&(0,i.createElement)(i.Fragment,null,C),h&&"right"===v&&(0,i.createElement)(Ft,{icon:h,size:y}),k);return D?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(jt,{text:R||E,shortcut:x,position:b},$),R&&(0,i.createElement)(ln,null,(0,i.createElement)("span",{id:F},R))):(0,i.createElement)(i.Fragment,null,$,R&&(0,i.createElement)(ln,null,(0,i.createElement)("span",{id:F},R)))}));let pn=0;const fn=(0,i.forwardRef)((function e(t,n){const{bodyOpenClassName:r="modal-open",role:s="dialog",title:a=null,focusOnMount:c=!0,shouldCloseOnEsc:u=!0,shouldCloseOnClickOutside:m=!0,isDismissible:b=!0,aria:_={labelledby:null,describedby:null},onRequestClose:x,icon:E,closeButtonLabel:k,children:C,style:S,overlayClassName:A,className:R,contentLabel:O,onKeyDown:T,isFullScreen:P=!1,__experimentalHideHeader:L=!1}=t,N=(0,i.useRef)(),j=(0,p.useInstanceId)(e),D=a?`components-modal-header-${j}`:_.labelledby,F=(0,p.useFocusOnMount)(c),M=(0,p.useConstrainedTabbing)(),$=(0,p.useFocusReturn)(),W=(0,p.__experimentalUseFocusOutside)(x);return(0,i.useEffect)((()=>(pn++,1===pn&&(function(e){if(w)return;const t=document.body.children;(0,g.forEach)(t,(t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||v.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),y.push(t))})),w=!0}(N.current),document.body.classList.add(r)),()=>{pn--,0===pn&&(document.body.classList.remove(r),w&&((0,g.forEach)(y,(e=>{e.removeAttribute("aria-hidden")})),y=[],w=!1))})),[]),(0,i.createPortal)((0,i.createElement)("div",{ref:(0,p.useMergeRefs)([N,n]),className:d()("components-modal__screen-overlay",A),onKeyDown:function(e){u&&e.keyCode===f.ESCAPE&&!e.defaultPrevented&&(e.preventDefault(),x&&x(e))}},(0,i.createElement)(ft,{document},(0,i.createElement)("div",l({className:d()("components-modal__frame",R,{"is-full-screen":P}),style:S,ref:(0,p.useMergeRefs)([M,$,F]),role:s,"aria-label":O,"aria-labelledby":O?null:D,"aria-describedby":_.describedby,tabIndex:"-1"},m?W:{},{onKeyDown:T}),(0,i.createElement)("div",{className:d()("components-modal__content",{"hide-header":L}),role:"document"},!L&&(0,i.createElement)("div",{className:"components-modal__header"},(0,i.createElement)("div",{className:"components-modal__header-heading-container"},E&&(0,i.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},E),a&&(0,i.createElement)("h1",{id:D,className:"components-modal__header-heading"},a)),b&&(0,i.createElement)(dn,{onClick:x,icon:h,label:k||(0,o.__)("Close dialog")})),C)))),document.body)})),mn=window.wp.a11y;function hn(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}const gn=function(e){let{className:t,status:n="info",children:r,spokenMessage:s=r,onRemove:a=g.noop,isDismissible:c=!0,actions:l=[],politeness:u=hn(n),__unstableHTML:p,onDismiss:f=g.noop}=e;!function(e,t){const n="string"==typeof e?e:(0,i.renderToString)(e);(0,i.useEffect)((()=>{n&&(0,mn.speak)(n,t)}),[n,t])}(s,u);const m=d()(t,"components-notice","is-"+n,{"is-dismissible":c});return p&&(r=(0,i.createElement)(i.RawHTML,null,r)),(0,i.createElement)("div",{className:m},(0,i.createElement)("div",{className:"components-notice__content"},r,(0,i.createElement)("div",{className:"components-notice__actions"},l.map(((e,t)=>{let{className:n,label:r,isPrimary:o,variant:s,noDefaultClasses:a=!1,onClick:c,url:l}=e,u=s;return"primary"===s||a||(u=l?"link":"secondary"),void 0===u&&o&&(u="primary"),(0,i.createElement)(dn,{key:t,href:l,variant:u,onClick:l?void 0:c,className:d()("components-notice__action",n)},r)})))),c&&(0,i.createElement)(dn,{className:"components-notice__dismiss",icon:E,label:(0,o.__)("Dismiss this notice"),onClick:e=>{var t;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),f(),a()},showTooltip:!1}))},vn=window.wc.components,yn=window.wp.url,wn=(window.moment,window.wp.date,window.wc.number,e=>(0,yn.addQueryArgs)("admin.php",e)),bn=window.wp.apiFetch;var _n=n.n(bn);const xn=window.wp.domReady;var En=n.n(xn);const kn=async({accept:e})=>_n()({path:"/wc/v3/payments/tos",method:"POST",data:{accept:e}}),Cn=async()=>{const e=wcpay_tos_settings.trackStripeConnected;wcTracks.isEnabled&&e&&(((e,t={})=>{var n;if(window.wcpaySettings){Object.assign(t,{is_test_mode:wcpaySettings.testMode,jetpack_connected:wcpaySettings.isJetpackConnected,wcpay_version:wcpaySettings.version,woo_country_code:wcpaySettings.connect.country,hosting_provider:null===(n=wcpaySettings.trackingInfo)||void 0===n?void 0:n.hosting_provider});for(const e in t)void 0===t[e]&&delete t[e]}En()((()=>{var n,r;(null!==(r=null===(n=null===wc||void 0===wc?void 0:wc.tracks)||void 0===n?void 0:n.recordEvent)&&void 0!==r?r:wcTracks.recordEvent)(e,t)}))})("wcpay_stripe_connected",{is_existing_stripe_account:e.is_existing_stripe_account}),_n()({path:"/wc/v3/payments/tos/stripe_track_connected",method:"POST"}))};var Sn=n(4848);const An=e=>(0,Sn.jsx)(vn.Link,{...e,href:"https://wordpress.com/tos",target:"_blank",rel:"noopener noreferrer",type:"external"}),Rn=({onAccept:e,onDecline:t,isBusy:n,hasError:r})=>{const i=(0,o.sprintf)((0,o.__)("%s: Terms of Service","woocommerce-payments"),"WooPayments"),s=c({mixedString:(0,o.sprintf)((0,o.__)("To continue using %s, please review and agree to our {{link}}Terms of Service{{/link}}. By clicking “Accept” you agree to the Terms of Service.","woocommerce-payments"),"WooPayments"),components:{link:(0,Sn.jsx)(An,{})}});return(0,Sn.jsxs)(fn,{title:i,isDismissible:!1,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,onRequestClose:t,className:"woocommerce-payments__tos-modal",children:[r&&(0,Sn.jsx)(gn,{status:"error",isDismissible:!1,className:"woocommerce-payments__tos-error",children:(0,o.__)("Something went wrong. Please try accepting the Terms of Service again!","woocommerce-payments")}),(0,Sn.jsxs)("div",{className:"woocommerce-payments__tos-wrapper",children:[(0,Sn.jsx)("div",{className:"woocommerce-payments__tos-modal-message",children:s}),(0,Sn.jsxs)("div",{className:"woocommerce-payments__tos-footer",children:[(0,Sn.jsx)(dn,{isSecondary:!0,onClick:t,disabled:n,children:(0,o.__)("Decline","woocommerce-payments")}),(0,Sn.jsx)(dn,{isPrimary:!0,onClick:e,isBusy:n,children:(0,o.__)("Accept","woocommerce-payments")})]})]})]})},On=({onDisable:e,onCancel:t,isBusy:n,hasError:r})=>{const i=(0,o.sprintf)((0,o.__)("Disable %s","woocommerce-payments"),"WooPayments"),s=c({mixedString:(0,o.sprintf)((0,o.__)("By declining our {{link}}Terms of Service{{/link}}, you’ll no longer be able to capture credit card payments using %s. Your previous transaction and payout data will still be available.","woocommerce-payments"),"WooPayments"),components:{link:(0,Sn.jsx)(An,{})}});return(0,Sn.jsxs)(fn,{title:i,isDismissible:!1,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,onRequestClose:e,className:"woocommerce-payments__tos-modal",children:[r&&(0,Sn.jsx)(gn,{status:"error",isDismissible:!1,className:"woocommerce-payments__tos-error",children:(0,o.__)("Something went wrong. Please try again!","woocommerce-payments")}),(0,Sn.jsxs)("div",{className:"woocommerce-payments__tos-wrapper",children:[(0,Sn.jsx)("div",{className:"woocommerce-payments__tos-modal-message",children:s}),(0,Sn.jsxs)("div",{className:"woocommerce-payments__tos-footer",children:[(0,Sn.jsx)(dn,{isTertiary:!0,onClick:t,isBusy:n,children:(0,o.__)("Back","woocommerce-payments")}),(0,Sn.jsx)(dn,{isPrimary:!0,onClick:e,isBusy:n,children:(0,o.__)("Disable","woocommerce-payments")})]})]})]})},Tn=()=>{const[e,t]=(0,i.useState)(!0),[n,r]=(0,i.useState)(!1),[o,s]=(0,i.useState)(!1),[a,c]=(0,i.useState)(!1),[l,u]=(0,i.useState)(!1),d=()=>t(!1),p=()=>r(!1);return n?(0,Sn.jsx)(On,{onDisable:async()=>{try{u(!1),s(!0),await kn({accept:!1}),p(),window.location=(0,yn.addQueryArgs)(wn({page:"wc-settings",tab:"checkout"}),{"tos-disabled":1})}catch(e){u(!0)}finally{s(!1)}},onCancel:()=>{p(),t(!0)},isBusy:o,hasError:l}):e?(0,Sn.jsx)(Rn,{onAccept:async()=>{try{c(!1),s(!0),await kn({accept:!0}),Cn(),d()}catch(e){c(!0)}finally{s(!1)}},onDecline:()=>{d(),r(!0)},isBusy:o,hasError:a}):null},Pn=window.wp.data;wcpay_tos_settings.tosAgreementRequired?function(){const e=document.createElement("div");e.id="wcpay-tos-container",document.body.appendChild(e),r().render((0,Sn.jsx)(Tn,{}),e)}():Cn(),wcpay_tos_settings.tosAgreementDeclined&&window.addEventListener("load",(()=>{const{settingsUrl:e}=wcpay_tos_settings;(e=>{const{createInfoNotice:t}=(0,Pn.dispatch)("core/notices");t((0,o.sprintf)((0,o.__)("Disabled %s","woocommerce-payments"),"WooPayments"),{actions:[{label:(0,o.__)("Undo","woocommerce-payments"),onClick:async()=>{try{await(async()=>_n()({path:"/wc/v3/payments/tos/reactivate",method:"POST"}))()}finally{window.location=e}}}]})})(e)}))})()})();

Youez - 2016 - github.com/yon3zu
LinuXploit