2 lines
87 KiB
JavaScript
2 lines
87 KiB
JavaScript
|
/*! elementor-pro - v3.21.0 - 15-04-2024 */
|
||
|
(()=>{var e,t,r,a,n={927:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Link:()=>G,Location:()=>N,LocationProvider:()=>D,Match:()=>z,Redirect:()=>K,Router:()=>W,ServerLocation:()=>q,createHistory:()=>O,createMemorySource:()=>w,globalHistory:()=>T,isRedirect:()=>Q,matchPath:()=>d,navigate:()=>S,redirectTo:()=>X,useLocation:()=>J,useMatch:()=>te,useNavigate:()=>Z,useParams:()=>ee});var a=r(7363),n=r.n(a),o=r(3996),l=r.n(o),s=r(5629),i=r.n(s);function componentWillMount(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function componentWillReceiveProps(e){this.setState(function updater(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function componentWillUpdate(e,t){try{var r=this.props,a=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,a)}finally{this.props=r,this.state=a}}componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0;var u=function startsWith(e,t){return e.substr(0,t.length)===t},c=function pick(e,t){for(var r=void 0,a=void 0,n=t.split("?")[0],o=y(n),s=""===o[0],i=_(e),u=0,c=i.length;u<c;u++){var d=!1,p=i[u].route;if(p.default)a={route:p,params:{},uri:t};else{for(var f=y(p.path),h={},b=Math.max(o.length,f.length),g=0;g<b;g++){var C=f[g],P=o[g];if(v(C)){h[C.slice(1)||"*"]=o.slice(g).map(decodeURIComponent).join("/");break}if(void 0===P){d=!0;break}var O=m.exec(C);if(O&&!s){-1===E.indexOf(O[1])||l()(!1);var w=decodeURIComponent(P);h[O[1]]=w}else if(C!==P){d=!0;break}}if(!d){r={route:p,params:h,uri:"/"+o.slice(0,g).join("/")};break}}}return r||a||null},d=function match(e,t){return c([{path:e}],t)},p=function resolve(e,t){if(u(e,"/"))return e;var r=e.split("?"),a=r[0],n=r[1],o=t.split("?")[0],l=y(a),s=y(o);if(""===l[0])return g(o,n);if(!u(l[0],".")){var i=s.concat(l).join("/");return g(("/"===o?"":"/")+i,n)}for(var c=s.concat(l),d=[],p=0,f=c.length;p<f;p++){var m=c[p];".."===m?d.pop():"."!==m&&d.push(m)}return g("/"+d.join("/"),n)},f=function insertParams(e,t){var r=e.split("?"),a=r[0],n=r[1],o=void 0===n?"":n,l="/"+y(a).map((function(e){var r=m.exec(e);return r?t[r[1]]:e})).join("/"),s=t.location,i=(s=void 0===s?{}:s).search,u=(void 0===i?"":i).split("?")[1]||"";return l=g(l,o,u)},m=/^:(.+)/,h=function isDynamic(e){return m.test(e)},v=function isSplat(e){return e&&"*"===e[0]},b=function rankRoute(e,t){return{route:e,score:e.default?0:y(e.path).reduce((function(e,t){return e+=4,!function isRootSegment(e){return""===e}(t)?h(t)?e+=2:v(t)?e-=5:e+=3:e+=1,e}),0),index:t}},_=function rankRoutes(e){return e.map(b).sort((function(e,t){return e.score<t.score?1:e.score>t.score?-1:e.index-t.index}))},y=function segmentize(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},g=function addQuery(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return e+((r=r.filter((function(e){return e&&e.length>0})))&&r.length>0?"?"+r.join("&"):"")},E=["uri","path"],C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},P=function getLocation(e){var t=e.location,r=t.search,a=t.hash,n=t.href,o=t.origin,l=t.protocol,s=t.host,i=t.hostname,u=t.port,c=e.location.pathname;!c&&n&&R&&(c=new URL(n).pathname);return{pathname:encodeURI(decodeURI(c)),search:r,hash:a,href:n,origin:o,protocol:l,host:s,hostname:i,port:u,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},O=function createHistory(e,t){var r=[],a=P(e),n=!1,o=function resolveTransition(){};return{get location(){return a},get transitioning(){return n},_onTransitionComplete:function _onTransitionComplete(){n=!1,o()},listen:function listen(t){r.push(t);var n=function popstateListener(){a=P(e),t({location:a,action:"POP"})};return e.addEventListener("popstate",n),function(){e.removeEventListener("popstate",n),r=r.filter((function(e){return e!==t}))}},navigate:function nav
|