piral-page-layouts 1.3.1-beta.6128 → 1.3.1-beta.6133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-page-layouts",
|
|
3
|
-
"version": "1.3.1-beta.
|
|
3
|
+
"version": "1.3.1-beta.6133",
|
|
4
4
|
"description": "Plugin for providing different page layouts in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"piral-core": "1.3.1-beta.
|
|
64
|
+
"piral-core": "1.3.1-beta.6133",
|
|
65
65
|
"react-router-dom": "^5.2.0"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "753b70c9eb69d73f0277952e22100ab16a3cfd43"
|
|
68
68
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var piralPageLayouts=(()=>{var ar=Object.create;var fe=Object.defineProperty,sr=Object.defineProperties,cr=Object.getOwnPropertyDescriptor,ur=Object.getOwnPropertyDescriptors,pr=Object.getOwnPropertyNames,ot=Object.getOwnPropertySymbols,fr=Object.getPrototypeOf,it=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable;var at=(e,t,r)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q=(e,t)=>{for(var r in t||(t={}))it.call(t,r)&&at(e,r,t[r]);if(ot)for(var r of ot(t))lr.call(t,r)&&at(e,r,t[r]);return e},Z=(e,t)=>sr(e,ur(t)),st=e=>fe(e,"__esModule",{value:!0});var ne=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var ee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ct=(e,t)=>{st(e);for(var r in t)fe(e,r,{get:t[r],enumerable:!0})},hr=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of pr(t))!it.call(e,n)&&n!=="default"&&fe(e,n,{get:()=>t[n],enumerable:!(r=cr(t,n))||r.enumerable});return e},J=e=>hr(st(fe(e!=null?ar(fr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var pt=ee((xn,ut)=>{"use strict";var mr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ut.exports=mr});var dt=ee((On,ht)=>{"use strict";var yr=pt();function ft(){}function lt(){}lt.resetWarningCache=ft;ht.exports=function(){function e(n,o,i,s,p,u){if(u!==yr){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:lt,resetWarningCache:ft};return r.PropTypes=r,r}});var mt=ee((Cn,vt)=>{vt.exports=dt()();var _n,Ln});var Vt=ee((Wn,Mt)=>{Mt.exports=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"}});var Ut=ee((Yn,ce)=>{var Ee=Vt();ce.exports=Ht;ce.exports.parse=Be;ce.exports.compile=Vr;ce.exports.tokensToFunction=$t;ce.exports.tokensToRegExp=jt;var Mr=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Be(e,t){for(var r=[],n=0,o=0,i="",s=t&&t.delimiter||"/",p;(p=Mr.exec(e))!=null;){var u=p[0],a=p[1],c=p.index;if(i+=e.slice(o,c),o=c+u.length,a){i+=a[1];continue}var f=e[o],l=p[2],v=p[3],m=p[4],R=p[5],N=p[6],C=p[7];i&&(r.push(i),i="");var D=l!=null&&f!=null&&f!==l,H=N==="+"||N==="*",k=N==="?"||N==="*",V=p[2]||s,x=m||R;r.push({name:v||n++,prefix:l||"",delimiter:V,optional:k,repeat:H,partial:D,asterisk:!!C,pattern:x?Hr(x):C?".*":"[^"+we(V)+"]+?"})}return o<e.length&&(i+=e.substr(o)),i&&r.push(i),r}function Vr(e,t){return $t(Be(e,t),t)}function $r(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function jr(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function $t(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)typeof e[n]=="object"&&(r[n]=new RegExp("^(?:"+e[n].pattern+")$",We(t)));return function(o,i){for(var s="",p=o||{},u=i||{},a=u.pretty?$r:encodeURIComponent,c=0;c<e.length;c++){var f=e[c];if(typeof f=="string"){s+=f;continue}var l=p[f.name],v;if(l==null)if(f.optional){f.partial&&(s+=f.prefix);continue}else throw new TypeError('Expected "'+f.name+'" to be defined');if(Ee(l)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(l.length===0){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var m=0;m<l.length;m++){if(v=a(l[m]),!r[c].test(v))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(v)+"`");s+=(m===0?f.prefix:f.delimiter)+v}continue}if(v=f.asterisk?jr(l):a(l),!r[c].test(v))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+v+'"');s+=f.prefix+v}return s}}function we(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Hr(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function ke(e,t){return e.keys=t,e}function We(e){return e&&e.sensitive?"":"i"}function Ur(e,t){var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return ke(e,t)}function Ir(e,t,r){for(var n=[],o=0;o<e.length;o++)n.push(Ht(e[o],t,r).source);var i=new RegExp("(?:"+n.join("|")+")",We(r));return ke(i,t)}function Br(e,t,r){return jt(Be(e,r),t,r)}function jt(e,t,r){Ee(t)||(r=t||r,t=[]),r=r||{};for(var n=r.strict,o=r.end!==!1,i="",s=0;s<e.length;s++){var p=e[s];if(typeof p=="string")i+=we(p);else{var u=we(p.prefix),a="(?:"+p.pattern+")";t.push(p),p.repeat&&(a+="(?:"+u+a+")*"),p.optional?p.partial?a=u+"("+a+")?":a="(?:"+u+"("+a+"))?":a=u+"("+a+")",i+=a}}var c=we(r.delimiter||"/"),f=i.slice(-c.length)===c;return n||(i=(f?i.slice(0,-c.length):i)+"(?:"+c+"(?=$))?"),o?i+="$":i+=n&&f?"":"(?="+c+"|$)",ke(new RegExp("^"+i,We(r)),t)}function Ht(e,t,r){return Ee(t)||(r=t||r,t=[]),r=r||{},e instanceof RegExp?Ur(e,t):Ee(e)?Ir(e,t,r):Br(e,t,r)}});var Bt=ee(w=>{"use strict";var S=typeof Symbol=="function"&&Symbol.for,Ye=S?Symbol.for("react.element"):60103,qe=S?Symbol.for("react.portal"):60106,Te=S?Symbol.for("react.fragment"):60107,be=S?Symbol.for("react.strict_mode"):60108,Ne=S?Symbol.for("react.profiler"):60114,Re=S?Symbol.for("react.provider"):60109,xe=S?Symbol.for("react.context"):60110,Fe=S?Symbol.for("react.async_mode"):60111,Oe=S?Symbol.for("react.concurrent_mode"):60111,_e=S?Symbol.for("react.forward_ref"):60112,Le=S?Symbol.for("react.suspense"):60113,kr=S?Symbol.for("react.suspense_list"):60120,Ce=S?Symbol.for("react.memo"):60115,Se=S?Symbol.for("react.lazy"):60116,Wr=S?Symbol.for("react.block"):60121,Yr=S?Symbol.for("react.fundamental"):60117,qr=S?Symbol.for("react.responder"):60118,Fr=S?Symbol.for("react.scope"):60119;function Y(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ye:switch(e=e.type,e){case Fe:case Oe:case Te:case Ne:case be:case Le:return e;default:switch(e=e&&e.$$typeof,e){case xe:case _e:case Se:case Ce:case Re:return e;default:return t}}case qe:return t}}}function It(e){return Y(e)===Oe}w.AsyncMode=Fe;w.ConcurrentMode=Oe;w.ContextConsumer=xe;w.ContextProvider=Re;w.Element=Ye;w.ForwardRef=_e;w.Fragment=Te;w.Lazy=Se;w.Memo=Ce;w.Portal=qe;w.Profiler=Ne;w.StrictMode=be;w.Suspense=Le;w.isAsyncMode=function(e){return It(e)||Y(e)===Fe};w.isConcurrentMode=It;w.isContextConsumer=function(e){return Y(e)===xe};w.isContextProvider=function(e){return Y(e)===Re};w.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ye};w.isForwardRef=function(e){return Y(e)===_e};w.isFragment=function(e){return Y(e)===Te};w.isLazy=function(e){return Y(e)===Se};w.isMemo=function(e){return Y(e)===Ce};w.isPortal=function(e){return Y(e)===qe};w.isProfiler=function(e){return Y(e)===Ne};w.isStrictMode=function(e){return Y(e)===be};w.isSuspense=function(e){return Y(e)===Le};w.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Te||e===Oe||e===Ne||e===be||e===Le||e===kr||typeof e=="object"&&e!==null&&(e.$$typeof===Se||e.$$typeof===Ce||e.$$typeof===Re||e.$$typeof===xe||e.$$typeof===_e||e.$$typeof===Yr||e.$$typeof===qr||e.$$typeof===Fr||e.$$typeof===Wr)};w.typeOf=Y});var Ge=ee((Fn,kt)=>{"use strict";kt.exports=Bt()});var zt=ee((Kn,Kt)=>{"use strict";var Ke=Ge(),Gr={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Kr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},zr={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Wt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ze={};ze[Ke.ForwardRef]=zr;ze[Ke.Memo]=Wt;function Yt(e){return Ke.isMemo(e)?Wt:ze[e.$$typeof]||Gr}var Jr=Object.defineProperty,Xr=Object.getOwnPropertyNames,qt=Object.getOwnPropertySymbols,Qr=Object.getOwnPropertyDescriptor,Zr=Object.getPrototypeOf,Ft=Object.prototype;function Gt(e,t,r){if(typeof t!="string"){if(Ft){var n=Zr(t);n&&n!==Ft&&Gt(e,n,r)}var o=Xr(t);qt&&(o=o.concat(qt(t)));for(var i=Yt(e),s=Yt(t),p=0;p<o.length;++p){var u=o[p];if(!Kr[u]&&!(r&&r[u])&&!(s&&s[u])&&!(i&&i[u])){var a=Qr(t,u);try{Jr(e,u,a)}catch{}}}}return e}Kt.exports=Gt});var En={};ct(En,{createPageLayoutsApi:()=>Pn});var Me={};ct(Me,{registerPageLayout:()=>dr,unregisterPageLayout:()=>vr});var ge=J(ne("piral-core"));function dr(e,t,r){e.dispatch(n=>Z(Q({},n),{registry:Z(Q({},n.registry),{pageLayouts:(0,ge.withKey)(n.registry.pageLayouts,t,r)})}))}function vr(e,t){e.dispatch(r=>Z(Q({},r),{registry:Z(Q({},r.registry),{pageLayouts:(0,ge.withoutKey)(r.registry.pageLayouts,t)})}))}var ir=J(ne("piral-core"));var rt=J(ne("react"));function le(e,t){return le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},le(e,t)}function B(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,le(e,t)}var O=J(ne("react"));function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},L.apply(this,arguments)}function Pe(e){return e.charAt(0)==="/"}function Ve(e,t){for(var r=t,n=r+1,o=e.length;n<o;r+=1,n+=1)e[r]=e[n];e.pop()}function gr(e,t){t===void 0&&(t="");var r=e&&e.split("/")||[],n=t&&t.split("/")||[],o=e&&Pe(e),i=t&&Pe(t),s=o||i;if(e&&Pe(e)?n=r:r.length&&(n.pop(),n=n.concat(r)),!n.length)return"/";var p;if(n.length){var u=n[n.length-1];p=u==="."||u===".."||u===""}else p=!1;for(var a=0,c=n.length;c>=0;c--){var f=n[c];f==="."?Ve(n,c):f===".."?(Ve(n,c),a++):a&&(Ve(n,c),a--)}if(!s)for(;a--;a)n.unshift("..");s&&n[0]!==""&&(!n[0]||!Pe(n[0]))&&n.unshift("");var l=n.join("/");return p&&l.substr(-1)!=="/"&&(l+="/"),l}var yt=gr;var Pr=!0,$e="Invariant failed";function X(e,t){if(!e){if(Pr)throw new Error($e);var r=typeof t=="function"?t():t,n=r?$e+": "+r:$e;throw new Error(n)}}function he(e){return e.charAt(0)==="/"?e:"/"+e}function gt(e){return e.charAt(0)==="/"?e.substr(1):e}function Er(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function Pt(e,t){return Er(e,t)?e.substr(t.length):e}function Et(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function wr(e){var t=e||"/",r="",n="",o=t.indexOf("#");o!==-1&&(n=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return i!==-1&&(r=t.substr(i),t=t.substr(0,i)),{pathname:t,search:r==="?"?"":r,hash:n==="#"?"":n}}function M(e){var t=e.pathname,r=e.search,n=e.hash,o=t||"/";return r&&r!=="?"&&(o+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(o+=n.charAt(0)==="#"?n:"#"+n),o}function j(e,t,r,n){var o;typeof e=="string"?(o=wr(e),o.state=t):(o=L({},e),o.pathname===void 0&&(o.pathname=""),o.search?o.search.charAt(0)!=="?"&&(o.search="?"+o.search):o.search="",o.hash?o.hash.charAt(0)!=="#"&&(o.hash="#"+o.hash):o.hash="",t!==void 0&&o.state===void 0&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return r&&(o.key=r),n?o.pathname?o.pathname.charAt(0)!=="/"&&(o.pathname=yt(o.pathname,n.pathname)):o.pathname=n.pathname:o.pathname||(o.pathname="/"),o}function je(){var e=null;function t(s){return e=s,function(){e===s&&(e=null)}}function r(s,p,u,a){if(e!=null){var c=typeof e=="function"?e(s,p):e;typeof c=="string"?typeof u=="function"?u(c,a):a(!0):a(c!==!1)}else a(!0)}var n=[];function o(s){var p=!0;function u(){p&&s.apply(void 0,arguments)}return n.push(u),function(){p=!1,n=n.filter(function(a){return a!==u})}}function i(){for(var s=arguments.length,p=new Array(s),u=0;u<s;u++)p[u]=arguments[u];n.forEach(function(a){return a.apply(void 0,p)})}return{setPrompt:t,confirmTransitionTo:r,appendListener:o,notifyListeners:i}}var wt=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function Tt(e,t){t(window.confirm(e))}function Tr(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function br(){return window.navigator.userAgent.indexOf("Trident")===-1}function Nr(){return window.navigator.userAgent.indexOf("Firefox")===-1}function Rr(e){return e.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var bt="popstate",Nt="hashchange";function Rt(){try{return window.history.state||{}}catch{return{}}}function xt(e){e===void 0&&(e={}),wt||X(!1);var t=window.history,r=Tr(),n=!br(),o=e,i=o.forceRefresh,s=i===void 0?!1:i,p=o.getUserConfirmation,u=p===void 0?Tt:p,a=o.keyLength,c=a===void 0?6:a,f=e.basename?Et(he(e.basename)):"";function l(g){var T=g||{},h=T.key,d=T.state,E=window.location,b=E.pathname,G=E.search,W=E.hash,I=b+G+W;return f&&(I=Pt(I,f)),j(I,d,h)}function v(){return Math.random().toString(36).substr(2,c)}var m=je();function R(g){L(F,g),F.length=t.length,m.notifyListeners(F.location,F.action)}function N(g){Rr(g)||H(l(g.state))}function C(){H(l(Rt()))}var D=!1;function H(g){if(D)D=!1,R();else{var T="POP";m.confirmTransitionTo(g,T,u,function(h){h?R({action:T,location:g}):k(g)})}}function k(g){var T=F.location,h=x.indexOf(T.key);h===-1&&(h=0);var d=x.indexOf(g.key);d===-1&&(d=0);var E=h-d;E&&(D=!0,_(E))}var V=l(Rt()),x=[V.key];function P(g){return f+M(g)}function y(g,T){var h="PUSH",d=j(g,T,v(),F.location);m.confirmTransitionTo(d,h,u,function(E){if(!!E){var b=P(d),G=d.key,W=d.state;if(r)if(t.pushState({key:G,state:W},null,b),s)window.location.href=b;else{var I=x.indexOf(F.location.key),se=x.slice(0,I+1);se.push(d.key),x=se,R({action:h,location:d})}else window.location.href=b}})}function A(g,T){var h="REPLACE",d=j(g,T,v(),F.location);m.confirmTransitionTo(d,h,u,function(E){if(!!E){var b=P(d),G=d.key,W=d.state;if(r)if(t.replaceState({key:G,state:W},null,b),s)window.location.replace(b);else{var I=x.indexOf(F.location.key);I!==-1&&(x[I]=d.key),R({action:h,location:d})}else window.location.replace(b)}})}function _(g){t.go(g)}function $(){_(-1)}function q(){_(1)}var re=0;function z(g){re+=g,re===1&&g===1?(window.addEventListener(bt,N),n&&window.addEventListener(Nt,C)):re===0&&(window.removeEventListener(bt,N),n&&window.removeEventListener(Nt,C))}var U=!1;function ie(g){g===void 0&&(g=!1);var T=m.setPrompt(g);return U||(z(1),U=!0),function(){return U&&(U=!1,z(-1)),T()}}function ae(g){var T=m.appendListener(g);return z(1),function(){z(-1),T()}}var F={length:t.length,action:"POP",location:V,createHref:P,push:y,replace:A,go:_,goBack:$,goForward:q,block:ie,listen:ae};return F}var Ot="hashchange",xr={hashbang:{encodePath:function(t){return t.charAt(0)==="!"?t:"!/"+gt(t)},decodePath:function(t){return t.charAt(0)==="!"?t.substr(1):t}},noslash:{encodePath:gt,decodePath:he},slash:{encodePath:he,decodePath:he}};function _t(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function de(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)}function Or(e){window.location.hash=e}function He(e){window.location.replace(_t(window.location.href)+"#"+e)}function Lt(e){e===void 0&&(e={}),wt||X(!1);var t=window.history,r=Nr(),n=e,o=n.getUserConfirmation,i=o===void 0?Tt:o,s=n.hashType,p=s===void 0?"slash":s,u=e.basename?Et(he(e.basename)):"",a=xr[p],c=a.encodePath,f=a.decodePath;function l(){var h=f(de());return u&&(h=Pt(h,u)),j(h)}var v=je();function m(h){L(T,h),T.length=t.length,v.notifyListeners(T.location,T.action)}var R=!1,N=null;function C(h,d){return h.pathname===d.pathname&&h.search===d.search&&h.hash===d.hash}function D(){var h=de(),d=c(h);if(h!==d)He(d);else{var E=l(),b=T.location;if(!R&&C(b,E)||N===M(E))return;N=null,H(E)}}function H(h){if(R)R=!1,m();else{var d="POP";v.confirmTransitionTo(h,d,i,function(E){E?m({action:d,location:h}):k(h)})}}function k(h){var d=T.location,E=y.lastIndexOf(M(d));E===-1&&(E=0);var b=y.lastIndexOf(M(h));b===-1&&(b=0);var G=E-b;G&&(R=!0,q(G))}var V=de(),x=c(V);V!==x&&He(x);var P=l(),y=[M(P)];function A(h){var d=document.querySelector("base"),E="";return d&&d.getAttribute("href")&&(E=_t(window.location.href)),E+"#"+c(u+M(h))}function _(h,d){var E="PUSH",b=j(h,void 0,void 0,T.location);v.confirmTransitionTo(b,E,i,function(G){if(!!G){var W=M(b),I=c(u+W),se=de()!==I;if(se){N=W,Or(I);var ye=y.lastIndexOf(M(T.location)),nt=y.slice(0,ye+1);nt.push(W),y=nt,m({action:E,location:b})}else m()}})}function $(h,d){var E="REPLACE",b=j(h,void 0,void 0,T.location);v.confirmTransitionTo(b,E,i,function(G){if(!!G){var W=M(b),I=c(u+W),se=de()!==I;se&&(N=W,He(I));var ye=y.indexOf(M(T.location));ye!==-1&&(y[ye]=W),m({action:E,location:b})}})}function q(h){t.go(h)}function re(){q(-1)}function z(){q(1)}var U=0;function ie(h){U+=h,U===1&&h===1?window.addEventListener(Ot,D):U===0&&window.removeEventListener(Ot,D)}var ae=!1;function F(h){h===void 0&&(h=!1);var d=v.setPrompt(h);return ae||(ie(1),ae=!0),function(){return ae&&(ae=!1,ie(-1)),d()}}function g(h){var d=v.appendListener(h);return ie(1),function(){ie(-1),d()}}var T={length:t.length,action:"POP",location:P,createHref:A,push:_,replace:$,go:q,goBack:re,goForward:z,block:F,listen:g};return T}function Ct(e,t,r){return Math.min(Math.max(e,t),r)}function St(e){e===void 0&&(e={});var t=e,r=t.getUserConfirmation,n=t.initialEntries,o=n===void 0?["/"]:n,i=t.initialIndex,s=i===void 0?0:i,p=t.keyLength,u=p===void 0?6:p,a=je();function c(y){L(P,y),P.length=P.entries.length,a.notifyListeners(P.location,P.action)}function f(){return Math.random().toString(36).substr(2,u)}var l=Ct(s,0,o.length-1),v=o.map(function(y){return typeof y=="string"?j(y,void 0,f()):j(y,void 0,y.key||f())}),m=M;function R(y,A){var _="PUSH",$=j(y,A,f(),P.location);a.confirmTransitionTo($,_,r,function(q){if(!!q){var re=P.index,z=re+1,U=P.entries.slice(0);U.length>z?U.splice(z,U.length-z,$):U.push($),c({action:_,location:$,index:z,entries:U})}})}function N(y,A){var _="REPLACE",$=j(y,A,f(),P.location);a.confirmTransitionTo($,_,r,function(q){!q||(P.entries[P.index]=$,c({action:_,location:$}))})}function C(y){var A=Ct(P.index+y,0,P.entries.length-1),_="POP",$=P.entries[A];a.confirmTransitionTo($,_,r,function(q){q?c({action:_,location:$,index:A}):c()})}function D(){C(-1)}function H(){C(1)}function k(y){var A=P.index+y;return A>=0&&A<P.entries.length}function V(y){return y===void 0&&(y=!1),a.setPrompt(y)}function x(y){return a.appendListener(y)}var P={length:v.length,action:"POP",location:v[l],index:l,entries:v,createHref:m,push:R,replace:N,go:C,goBack:D,goForward:H,canGo:k,block:V,listen:x};return P}var ve=J(ne("react"));var Ue=J(mt());var Ie=1073741823,Dt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:{};function _r(){var e="__global_unique_id__";return Dt[e]=(Dt[e]||0)+1}function Lr(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function Cr(e){var t=[];return{on:function(n){t.push(n)},off:function(n){t=t.filter(function(o){return o!==n})},get:function(){return e},set:function(n,o){e=n,t.forEach(function(i){return i(e,o)})}}}function Sr(e){return Array.isArray(e)?e[0]:e}function Dr(e,t){var r,n,o="__create-react-context-"+_r()+"__",i=function(p){B(u,p);function u(){var c;return c=p.apply(this,arguments)||this,c.emitter=Cr(c.props.value),c}var a=u.prototype;return a.getChildContext=function(){var f;return f={},f[o]=this.emitter,f},a.componentWillReceiveProps=function(f){if(this.props.value!==f.value){var l=this.props.value,v=f.value,m;Lr(l,v)?m=0:(m=typeof t=="function"?t(l,v):Ie,m|=0,m!==0&&this.emitter.set(f.value,m))}},a.render=function(){return this.props.children},u}(ve.Component);i.childContextTypes=(r={},r[o]=Ue.default.object.isRequired,r);var s=function(p){B(u,p);function u(){var c;return c=p.apply(this,arguments)||this,c.state={value:c.getValue()},c.onUpdate=function(f,l){var v=c.observedBits|0;(v&l)!=0&&c.setState({value:c.getValue()})},c}var a=u.prototype;return a.componentWillReceiveProps=function(f){var l=f.observedBits;this.observedBits=l??Ie},a.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var f=this.props.observedBits;this.observedBits=f??Ie},a.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},a.getValue=function(){return this.context[o]?this.context[o].get():e},a.render=function(){return Sr(this.props.children)(this.state.value)},u}(ve.Component);return s.contextTypes=(n={},n[o]=Ue.default.object,n),{Provider:i,Consumer:s}}var Ar=ve.default.createContext||Dr,At=Ar;var Jt=J(Ut()),to=J(Ge());function oe(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var en=J(zt()),Xt=function(t){var r=At();return r.displayName=t,r},tn=Xt("Router-History"),te=Xt("Router"),ue=function(e){B(t,e),t.computeRootMatch=function(o){return{path:"/",url:"/",params:{},isExact:o==="/"}};function t(n){var o;return o=e.call(this,n)||this,o.state={location:n.history.location},o._isMounted=!1,o._pendingLocation=null,n.staticContext||(o.unlisten=n.history.listen(function(i){o._pendingLocation=i})),o}var r=t.prototype;return r.componentDidMount=function(){var o=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(i){o._isMounted&&o.setState({location:i})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return O.default.createElement(te.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},O.default.createElement(tn.Provider,{children:this.props.children||null,value:this.props.history}))},t}(O.default.Component),rn=function(e){B(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=e.call.apply(e,[this].concat(i))||this,n.history=St(n.props),n}var r=t.prototype;return r.render=function(){return O.default.createElement(ue,{history:this.history,children:this.props.children})},t}(O.default.Component),oo=function(e){B(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},r.componentDidUpdate=function(o){this.props.onUpdate&&this.props.onUpdate.call(this,this,o)},r.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},r.render=function(){return null},t}(O.default.Component);var Qt={},nn=1e4,Zt=0;function on(e,t){var r=""+t.end+t.strict+t.sensitive,n=Qt[r]||(Qt[r]={});if(n[e])return n[e];var o=[],i=(0,Jt.default)(e,o,t),s={regexp:i,keys:o};return Zt<nn&&(n[e]=s,Zt++),s}function me(e,t){t===void 0&&(t={}),(typeof t=="string"||Array.isArray(t))&&(t={path:t});var r=t,n=r.path,o=r.exact,i=o===void 0?!1:o,s=r.strict,p=s===void 0?!1:s,u=r.sensitive,a=u===void 0?!1:u,c=[].concat(n);return c.reduce(function(f,l){if(!l&&l!=="")return null;if(f)return f;var v=on(l,{end:i,strict:p,sensitive:a}),m=v.regexp,R=v.keys,N=m.exec(e);if(!N)return null;var C=N[0],D=N.slice(1),H=e===C;return i&&!H?null:{path:l,url:l==="/"&&C===""?"/":C,isExact:H,params:R.reduce(function(k,V,x){return k[V.name]=D[x],k},{})}},null)}function an(e){return O.default.Children.count(e)===0}var sn=function(e){B(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var o=this;return O.default.createElement(te.Consumer,null,function(i){i||X(!1);var s=o.props.location||i.location,p=o.props.computedMatch?o.props.computedMatch:o.props.path?me(s.pathname,o.props):i.match,u=L({},i,{location:s,match:p}),a=o.props,c=a.children,f=a.component,l=a.render;return Array.isArray(c)&&an(c)&&(c=null),O.default.createElement(te.Provider,{value:u},u.match?c?typeof c=="function"?c(u):c:f?O.default.createElement(f,u):l?l(u):null:typeof c=="function"?c(u):null)})},t}(O.default.Component);function Je(e){return e.charAt(0)==="/"?e:"/"+e}function cn(e,t){return e?L({},t,{pathname:Je(e)+t.pathname}):t}function un(e,t){if(!e)return t;var r=Je(e);return t.pathname.indexOf(r)!==0?t:L({},t,{pathname:t.pathname.substr(r.length)})}function er(e){return typeof e=="string"?e:M(e)}function Xe(e){return function(){X(!1)}}function tr(){}var pn=function(e){B(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=e.call.apply(e,[this].concat(i))||this,n.handlePush=function(p){return n.navigateTo(p,"PUSH")},n.handleReplace=function(p){return n.navigateTo(p,"REPLACE")},n.handleListen=function(){return tr},n.handleBlock=function(){return tr},n}var r=t.prototype;return r.navigateTo=function(o,i){var s=this.props,p=s.basename,u=p===void 0?"":p,a=s.context,c=a===void 0?{}:a;c.action=i,c.location=cn(u,j(o)),c.url=er(c.location)},r.render=function(){var o=this.props,i=o.basename,s=i===void 0?"":i,p=o.context,u=p===void 0?{}:p,a=o.location,c=a===void 0?"/":a,f=oe(o,["basename","context","location"]),l={createHref:function(m){return Je(s+er(m))},action:"POP",location:un(s,j(c)),push:this.handlePush,replace:this.handleReplace,go:Xe("go"),goBack:Xe("goBack"),goForward:Xe("goForward"),listen:this.handleListen,block:this.handleBlock};return O.default.createElement(ue,L({},f,{history:l,staticContext:u}))},t}(O.default.Component),fn=function(e){B(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var o=this;return O.default.createElement(te.Consumer,null,function(i){i||X(!1);var s=o.props.location||i.location,p,u;return O.default.Children.forEach(o.props.children,function(a){if(u==null&&O.default.isValidElement(a)){p=a;var c=a.props.path||a.props.from;u=c?me(s.pathname,L({},a.props,{path:c})):i.match}}),u?O.default.cloneElement(p,{location:s,computedMatch:u}):null})},t}(O.default.Component);var ln=O.default.useContext;function Qe(){return ln(te).location}var K=J(ne("react"));var Eo=function(e){B(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=e.call.apply(e,[this].concat(i))||this,n.history=xt(n.props),n}var r=t.prototype;return r.render=function(){return K.default.createElement(ue,{history:this.history,children:this.props.children})},t}(K.default.Component),wo=function(e){B(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=e.call.apply(e,[this].concat(i))||this,n.history=Lt(n.props),n}var r=t.prototype;return r.render=function(){return K.default.createElement(ue,{history:this.history,children:this.props.children})},t}(K.default.Component),Ze=function(t,r){return typeof t=="function"?t(r):t},et=function(t,r){return typeof t=="string"?j(t,null,null,r):t},tt=function(t){return t},pe=K.default.forwardRef;typeof pe=="undefined"&&(pe=tt);function hn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var dn=pe(function(e,t){var r=e.innerRef,n=e.navigate,o=e.onClick,i=oe(e,["innerRef","navigate","onClick"]),s=i.target,p=L({},i,{onClick:function(a){try{o&&o(a)}catch(c){throw a.preventDefault(),c}!a.defaultPrevented&&a.button===0&&(!s||s==="_self")&&!hn(a)&&(a.preventDefault(),n())}});return tt!==pe?p.ref=t||r:p.ref=r,K.default.createElement("a",p)}),vn=pe(function(e,t){var r=e.component,n=r===void 0?dn:r,o=e.replace,i=e.to,s=e.innerRef,p=oe(e,["component","replace","to","innerRef"]);return K.default.createElement(te.Consumer,null,function(u){u||X(!1);var a=u.history,c=et(Ze(i,u.location),u.location),f=c?a.createHref(c):"",l=L({},p,{href:f,navigate:function(){var m=Ze(i,u.location),R=M(u.location)===M(et(m)),N=o||R?a.replace:a.push;N(m)}});return tt!==pe?l.ref=t||s:l.innerRef=s,K.default.createElement(n,l)})});var rr=function(t){return t},De=K.default.forwardRef;typeof De=="undefined"&&(De=rr);function mn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(n){return n}).join(" ")}var To=De(function(e,t){var r=e["aria-current"],n=r===void 0?"page":r,o=e.activeClassName,i=o===void 0?"active":o,s=e.activeStyle,p=e.className,u=e.exact,a=e.isActive,c=e.location,f=e.sensitive,l=e.strict,v=e.style,m=e.to,R=e.innerRef,N=oe(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return K.default.createElement(te.Consumer,null,function(C){C||X(!1);var D=c||C.location,H=et(Ze(m,D),D),k=H.pathname,V=k&&k.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=V?me(D.pathname,{path:V,exact:u,sensitive:f,strict:l}):null,P=!!(a?a(x,D):x),y=typeof p=="function"?p(P):p,A=typeof v=="function"?v(P):v;P&&(y=mn(y,i),A=L({},A,s));var _=L({"aria-current":P&&n||null,className:y,style:A,to:H},N);return rr!==De?_.ref=t||R:_.innerRef=R,K.default.createElement(vn,_)})});var Ae=J(ne("piral-core")),yn=e=>(0,Ae.defaultRender)(e.children);function gn(e,t="default"){return r=>{var u;let n=Qe(),o=r.paths.find(a=>a.matcher.test(n.pathname)),i=((u=o==null?void 0:o.meta)==null?void 0:u.layout)||t,s=(0,Ae.useGlobalState)(a=>a.registry.pageLayouts[i]||a.registry.pageLayouts[t]),p=(s==null?void 0:s.component)||yn;return(0,rt.createElement)(p,r,(0,rt.createElement)(e,r))}}function nr(e){let t={};return e&&typeof e=="object"&&Object.keys(e).forEach(r=>{t[r]={pilet:void 0,component:e[r]}}),t}function or(e,t){return r=>Z(Q({},r),{components:Z(Q({},r.components),{RouteSwitch:gn(r.components.RouteSwitch,t)}),registry:Z(Q({},r.registry),{pageLayouts:e})})}function Pn(e={}){let{layouts:t={},fallback:r}=e;return n=>{let o=i=>n.readState(s=>s.registry.pageLayouts[i]);return n.defineActions(Me),n.dispatch(or(nr(t),r)),i=>{let s=i.meta.name;return{registerPageLayout(p,u){let a=o(p);if(!a||a.pilet===s){let c=(0,ir.withApi)(n,u,i,"pageLayout");n.registerPageLayout(p,{component:c,pilet:s})}return()=>i.unregisterPageLayout(p)},unregisterPageLayout(p){let u=o(p);(u==null?void 0:u.pilet)===s&&n.unregisterPageLayout(p)}}}}}return En;})();
|
|
1
|
+
var piralPageLayouts=(()=>{var or=Object.create;var fe=Object.defineProperty,ir=Object.defineProperties,ar=Object.getOwnPropertyDescriptor,sr=Object.getOwnPropertyDescriptors,cr=Object.getOwnPropertyNames,nt=Object.getOwnPropertySymbols,ur=Object.getPrototypeOf,ot=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable;var it=(e,t,r)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q=(e,t)=>{for(var r in t||(t={}))ot.call(t,r)&&it(e,r,t[r]);if(nt)for(var r of nt(t))pr.call(t,r)&&it(e,r,t[r]);return e},Z=(e,t)=>ir(e,sr(t)),at=e=>fe(e,"__esModule",{value:!0});var se=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var ee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),st=(e,t)=>{at(e);for(var r in t)fe(e,r,{get:t[r],enumerable:!0})},fr=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of cr(t))!ot.call(e,n)&&n!=="default"&&fe(e,n,{get:()=>t[n],enumerable:!(r=ar(t,n))||r.enumerable});return e},J=e=>fr(at(fe(e!=null?or(ur(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var ut=ee((Nn,ct)=>{"use strict";var dr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ct.exports=dr});var ht=ee((Rn,lt)=>{"use strict";var vr=ut();function pt(){}function ft(){}ft.resetWarningCache=pt;lt.exports=function(){function e(n,o,i,s,u,p){if(p!==vr){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ft,resetWarningCache:pt};return r.PropTypes=r,r}});var vt=ee((_n,dt)=>{dt.exports=ht()();var On,xn});var Dt=ee((Un,St)=>{St.exports=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"}});var $t=ee((In,ce)=>{var Pe=Dt();ce.exports=Vt;ce.exports.parse=He;ce.exports.compile=xr;ce.exports.tokensToFunction=At;ce.exports.tokensToRegExp=Mt;var Or=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function He(e,t){for(var r=[],n=0,o=0,i="",s=t&&t.delimiter||"/",u;(u=Or.exec(e))!=null;){var p=u[0],a=u[1],c=u.index;if(i+=e.slice(o,c),o=c+p.length,a){i+=a[1];continue}var f=e[o],l=u[2],d=u[3],m=u[4],O=u[5],b=u[6],L=u[7];i&&(r.push(i),i="");var D=l!=null&&f!=null&&f!==l,H=b==="+"||b==="*",B=b==="?"||b==="*",V=u[2]||s,x=m||O;r.push({name:d||n++,prefix:l||"",delimiter:V,optional:B,repeat:H,partial:D,asterisk:!!L,pattern:x?Lr(x):L?".*":"[^"+Ee(V)+"]+?"})}return o<e.length&&(i+=e.substr(o)),i&&r.push(i),r}function xr(e,t){return At(He(e,t),t)}function _r(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Cr(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function At(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)typeof e[n]=="object"&&(r[n]=new RegExp("^(?:"+e[n].pattern+")$",Ie(t)));return function(o,i){for(var s="",u=o||{},p=i||{},a=p.pretty?_r:encodeURIComponent,c=0;c<e.length;c++){var f=e[c];if(typeof f=="string"){s+=f;continue}var l=u[f.name],d;if(l==null)if(f.optional){f.partial&&(s+=f.prefix);continue}else throw new TypeError('Expected "'+f.name+'" to be defined');if(Pe(l)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(l.length===0){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var m=0;m<l.length;m++){if(d=a(l[m]),!r[c].test(d))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(d)+"`");s+=(m===0?f.prefix:f.delimiter)+d}continue}if(d=f.asterisk?Cr(l):a(l),!r[c].test(d))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+d+'"');s+=f.prefix+d}return s}}function Ee(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Lr(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function Ue(e,t){return e.keys=t,e}function Ie(e){return e&&e.sensitive?"":"i"}function Sr(e,t){var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Ue(e,t)}function Dr(e,t,r){for(var n=[],o=0;o<e.length;o++)n.push(Vt(e[o],t,r).source);var i=new RegExp("(?:"+n.join("|")+")",Ie(r));return Ue(i,t)}function Ar(e,t,r){return Mt(He(e,r),t,r)}function Mt(e,t,r){Pe(t)||(r=t||r,t=[]),r=r||{};for(var n=r.strict,o=r.end!==!1,i="",s=0;s<e.length;s++){var u=e[s];if(typeof u=="string")i+=Ee(u);else{var p=Ee(u.prefix),a="(?:"+u.pattern+")";t.push(u),u.repeat&&(a+="(?:"+p+a+")*"),u.optional?u.partial?a=p+"("+a+")?":a="(?:"+p+"("+a+"))?":a=p+"("+a+")",i+=a}}var c=Ee(r.delimiter||"/"),f=i.slice(-c.length)===c;return n||(i=(f?i.slice(0,-c.length):i)+"(?:"+c+"(?=$))?"),o?i+="$":i+=n&&f?"":"(?="+c+"|$)",Ue(new RegExp("^"+i,Ie(r)),t)}function Vt(e,t,r){return Pe(t)||(r=t||r,t=[]),r=r||{},e instanceof RegExp?Sr(e,t):Pe(e)?Dr(e,t,r):Ar(e,t,r)}});var Ht=ee(w=>{"use strict";var S=typeof Symbol=="function"&&Symbol.for,Be=S?Symbol.for("react.element"):60103,We=S?Symbol.for("react.portal"):60106,we=S?Symbol.for("react.fragment"):60107,Te=S?Symbol.for("react.strict_mode"):60108,be=S?Symbol.for("react.profiler"):60114,Ne=S?Symbol.for("react.provider"):60109,Re=S?Symbol.for("react.context"):60110,Ye=S?Symbol.for("react.async_mode"):60111,Oe=S?Symbol.for("react.concurrent_mode"):60111,xe=S?Symbol.for("react.forward_ref"):60112,_e=S?Symbol.for("react.suspense"):60113,Mr=S?Symbol.for("react.suspense_list"):60120,Ce=S?Symbol.for("react.memo"):60115,Le=S?Symbol.for("react.lazy"):60116,Vr=S?Symbol.for("react.block"):60121,$r=S?Symbol.for("react.fundamental"):60117,jr=S?Symbol.for("react.responder"):60118,Hr=S?Symbol.for("react.scope"):60119;function q(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Be:switch(e=e.type,e){case Ye:case Oe:case we:case be:case Te:case _e:return e;default:switch(e=e&&e.$$typeof,e){case Re:case xe:case Le:case Ce:case Ne:return e;default:return t}}case We:return t}}}function jt(e){return q(e)===Oe}w.AsyncMode=Ye;w.ConcurrentMode=Oe;w.ContextConsumer=Re;w.ContextProvider=Ne;w.Element=Be;w.ForwardRef=xe;w.Fragment=we;w.Lazy=Le;w.Memo=Ce;w.Portal=We;w.Profiler=be;w.StrictMode=Te;w.Suspense=_e;w.isAsyncMode=function(e){return jt(e)||q(e)===Ye};w.isConcurrentMode=jt;w.isContextConsumer=function(e){return q(e)===Re};w.isContextProvider=function(e){return q(e)===Ne};w.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Be};w.isForwardRef=function(e){return q(e)===xe};w.isFragment=function(e){return q(e)===we};w.isLazy=function(e){return q(e)===Le};w.isMemo=function(e){return q(e)===Ce};w.isPortal=function(e){return q(e)===We};w.isProfiler=function(e){return q(e)===be};w.isStrictMode=function(e){return q(e)===Te};w.isSuspense=function(e){return q(e)===_e};w.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===we||e===Oe||e===be||e===Te||e===_e||e===Mr||typeof e=="object"&&e!==null&&(e.$$typeof===Le||e.$$typeof===Ce||e.$$typeof===Ne||e.$$typeof===Re||e.$$typeof===xe||e.$$typeof===$r||e.$$typeof===jr||e.$$typeof===Hr||e.$$typeof===Vr)};w.typeOf=q});var qe=ee((Wn,Ut)=>{"use strict";Ut.exports=Ht()});var Ft=ee((qn,kt)=>{"use strict";var ke=qe(),Ur={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ir={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Br={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},It={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fe={};Fe[ke.ForwardRef]=Br;Fe[ke.Memo]=It;function Bt(e){return ke.isMemo(e)?It:Fe[e.$$typeof]||Ur}var Wr=Object.defineProperty,Yr=Object.getOwnPropertyNames,Wt=Object.getOwnPropertySymbols,qr=Object.getOwnPropertyDescriptor,kr=Object.getPrototypeOf,Yt=Object.prototype;function qt(e,t,r){if(typeof t!="string"){if(Yt){var n=kr(t);n&&n!==Yt&&qt(e,n,r)}var o=Yr(t);Wt&&(o=o.concat(Wt(t)));for(var i=Bt(e),s=Bt(t),u=0;u<o.length;++u){var p=o[u];if(!Ir[p]&&!(r&&r[p])&&!(s&&s[p])&&!(i&&i[p])){var a=qr(t,p);try{Wr(e,p,a)}catch{}}}}return e}kt.exports=qt});var gn={};st(gn,{createPageLayoutsApi:()=>yn});var Ae={};st(Ae,{registerPageLayout:()=>lr,unregisterPageLayout:()=>hr});var ye=J(se("piral-core"));function lr(e,t,r){e.dispatch(n=>Z(Q({},n),{registry:Z(Q({},n.registry),{pageLayouts:(0,ye.withKey)(n.registry.pageLayouts,t,r)})}))}function hr(e,t){e.dispatch(r=>Z(Q({},r),{registry:Z(Q({},r.registry),{pageLayouts:(0,ye.withoutKey)(r.registry.pageLayouts,t)})}))}var nr=J(se("piral-core"));var tt=J(se("react"));function le(e,t){return le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},le(e,t)}function Y(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,le(e,t)}var R=J(se("react")),Ge=J(vt());function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(this,arguments)}function ge(e){return e.charAt(0)==="/"}function Me(e,t){for(var r=t,n=r+1,o=e.length;n<o;r+=1,n+=1)e[r]=e[n];e.pop()}function mr(e,t){t===void 0&&(t="");var r=e&&e.split("/")||[],n=t&&t.split("/")||[],o=e&&ge(e),i=t&&ge(t),s=o||i;if(e&&ge(e)?n=r:r.length&&(n.pop(),n=n.concat(r)),!n.length)return"/";var u;if(n.length){var p=n[n.length-1];u=p==="."||p===".."||p===""}else u=!1;for(var a=0,c=n.length;c>=0;c--){var f=n[c];f==="."?Me(n,c):f===".."?(Me(n,c),a++):a&&(Me(n,c),a--)}if(!s)for(;a--;a)n.unshift("..");s&&n[0]!==""&&(!n[0]||!ge(n[0]))&&n.unshift("");var l=n.join("/");return u&&l.substr(-1)!=="/"&&(l+="/"),l}var mt=mr;var yr=!0,Ve="Invariant failed";function X(e,t){if(!e){if(yr)throw new Error(Ve);var r=typeof t=="function"?t():t,n=r?"".concat(Ve,": ").concat(r):Ve;throw new Error(n)}}function he(e){return e.charAt(0)==="/"?e:"/"+e}function yt(e){return e.charAt(0)==="/"?e.substr(1):e}function gr(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function gt(e,t){return gr(e,t)?e.substr(t.length):e}function Pt(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function Pr(e){var t=e||"/",r="",n="",o=t.indexOf("#");o!==-1&&(n=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return i!==-1&&(r=t.substr(i),t=t.substr(0,i)),{pathname:t,search:r==="?"?"":r,hash:n==="#"?"":n}}function M(e){var t=e.pathname,r=e.search,n=e.hash,o=t||"/";return r&&r!=="?"&&(o+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(o+=n.charAt(0)==="#"?n:"#"+n),o}function j(e,t,r,n){var o;typeof e=="string"?(o=Pr(e),o.state=t):(o=C({},e),o.pathname===void 0&&(o.pathname=""),o.search?o.search.charAt(0)!=="?"&&(o.search="?"+o.search):o.search="",o.hash?o.hash.charAt(0)!=="#"&&(o.hash="#"+o.hash):o.hash="",t!==void 0&&o.state===void 0&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return r&&(o.key=r),n?o.pathname?o.pathname.charAt(0)!=="/"&&(o.pathname=mt(o.pathname,n.pathname)):o.pathname=n.pathname:o.pathname||(o.pathname="/"),o}function $e(){var e=null;function t(s){return e=s,function(){e===s&&(e=null)}}function r(s,u,p,a){if(e!=null){var c=typeof e=="function"?e(s,u):e;typeof c=="string"?typeof p=="function"?p(c,a):a(!0):a(c!==!1)}else a(!0)}var n=[];function o(s){var u=!0;function p(){u&&s.apply(void 0,arguments)}return n.push(p),function(){u=!1,n=n.filter(function(a){return a!==p})}}function i(){for(var s=arguments.length,u=new Array(s),p=0;p<s;p++)u[p]=arguments[p];n.forEach(function(a){return a.apply(void 0,u)})}return{setPrompt:t,confirmTransitionTo:r,appendListener:o,notifyListeners:i}}var Et=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function wt(e,t){t(window.confirm(e))}function Er(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function wr(){return window.navigator.userAgent.indexOf("Trident")===-1}function Tr(){return window.navigator.userAgent.indexOf("Firefox")===-1}function br(e){return e.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var Tt="popstate",bt="hashchange";function Nt(){try{return window.history.state||{}}catch{return{}}}function Rt(e){e===void 0&&(e={}),Et||X(!1);var t=window.history,r=Er(),n=!wr(),o=e,i=o.forceRefresh,s=i===void 0?!1:i,u=o.getUserConfirmation,p=u===void 0?wt:u,a=o.keyLength,c=a===void 0?6:a,f=e.basename?Pt(he(e.basename)):"";function l(g){var T=g||{},h=T.key,v=T.state,E=window.location,N=E.pathname,G=E.search,W=E.hash,I=N+G+W;return f&&(I=gt(I,f)),j(I,v,h)}function d(){return Math.random().toString(36).substr(2,c)}var m=$e();function O(g){C(F,g),F.length=t.length,m.notifyListeners(F.location,F.action)}function b(g){br(g)||H(l(g.state))}function L(){H(l(Nt()))}var D=!1;function H(g){if(D)D=!1,O();else{var T="POP";m.confirmTransitionTo(g,T,p,function(h){h?O({action:T,location:g}):B(g)})}}function B(g){var T=F.location,h=x.indexOf(T.key);h===-1&&(h=0);var v=x.indexOf(g.key);v===-1&&(v=0);var E=h-v;E&&(D=!0,_(E))}var V=l(Nt()),x=[V.key];function P(g){return f+M(g)}function y(g,T){var h="PUSH",v=j(g,T,d(),F.location);m.confirmTransitionTo(v,h,p,function(E){if(!!E){var N=P(v),G=v.key,W=v.state;if(r)if(t.pushState({key:G,state:W},null,N),s)window.location.href=N;else{var I=x.indexOf(F.location.key),ae=x.slice(0,I+1);ae.push(v.key),x=ae,O({action:h,location:v})}else window.location.href=N}})}function A(g,T){var h="REPLACE",v=j(g,T,d(),F.location);m.confirmTransitionTo(v,h,p,function(E){if(!!E){var N=P(v),G=v.key,W=v.state;if(r)if(t.replaceState({key:G,state:W},null,N),s)window.location.replace(N);else{var I=x.indexOf(F.location.key);I!==-1&&(x[I]=v.key),O({action:h,location:v})}else window.location.replace(N)}})}function _(g){t.go(g)}function $(){_(-1)}function k(){_(1)}var re=0;function z(g){re+=g,re===1&&g===1?(window.addEventListener(Tt,b),n&&window.addEventListener(bt,L)):re===0&&(window.removeEventListener(Tt,b),n&&window.removeEventListener(bt,L))}var U=!1;function oe(g){g===void 0&&(g=!1);var T=m.setPrompt(g);return U||(z(1),U=!0),function(){return U&&(U=!1,z(-1)),T()}}function ie(g){var T=m.appendListener(g);return z(1),function(){z(-1),T()}}var F={length:t.length,action:"POP",location:V,createHref:P,push:y,replace:A,go:_,goBack:$,goForward:k,block:oe,listen:ie};return F}var Ot="hashchange",Nr={hashbang:{encodePath:function(t){return t.charAt(0)==="!"?t:"!/"+yt(t)},decodePath:function(t){return t.charAt(0)==="!"?t.substr(1):t}},noslash:{encodePath:yt,decodePath:he},slash:{encodePath:he,decodePath:he}};function xt(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function de(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)}function Rr(e){window.location.hash=e}function je(e){window.location.replace(xt(window.location.href)+"#"+e)}function _t(e){e===void 0&&(e={}),Et||X(!1);var t=window.history,r=Tr(),n=e,o=n.getUserConfirmation,i=o===void 0?wt:o,s=n.hashType,u=s===void 0?"slash":s,p=e.basename?Pt(he(e.basename)):"",a=Nr[u],c=a.encodePath,f=a.decodePath;function l(){var h=f(de());return p&&(h=gt(h,p)),j(h)}var d=$e();function m(h){C(T,h),T.length=t.length,d.notifyListeners(T.location,T.action)}var O=!1,b=null;function L(h,v){return h.pathname===v.pathname&&h.search===v.search&&h.hash===v.hash}function D(){var h=de(),v=c(h);if(h!==v)je(v);else{var E=l(),N=T.location;if(!O&&L(N,E)||b===M(E))return;b=null,H(E)}}function H(h){if(O)O=!1,m();else{var v="POP";d.confirmTransitionTo(h,v,i,function(E){E?m({action:v,location:h}):B(h)})}}function B(h){var v=T.location,E=y.lastIndexOf(M(v));E===-1&&(E=0);var N=y.lastIndexOf(M(h));N===-1&&(N=0);var G=E-N;G&&(O=!0,k(G))}var V=de(),x=c(V);V!==x&&je(x);var P=l(),y=[M(P)];function A(h){var v=document.querySelector("base"),E="";return v&&v.getAttribute("href")&&(E=xt(window.location.href)),E+"#"+c(p+M(h))}function _(h,v){var E="PUSH",N=j(h,void 0,void 0,T.location);d.confirmTransitionTo(N,E,i,function(G){if(!!G){var W=M(N),I=c(p+W),ae=de()!==I;if(ae){b=W,Rr(I);var me=y.lastIndexOf(M(T.location)),rt=y.slice(0,me+1);rt.push(W),y=rt,m({action:E,location:N})}else m()}})}function $(h,v){var E="REPLACE",N=j(h,void 0,void 0,T.location);d.confirmTransitionTo(N,E,i,function(G){if(!!G){var W=M(N),I=c(p+W),ae=de()!==I;ae&&(b=W,je(I));var me=y.indexOf(M(T.location));me!==-1&&(y[me]=W),m({action:E,location:N})}})}function k(h){t.go(h)}function re(){k(-1)}function z(){k(1)}var U=0;function oe(h){U+=h,U===1&&h===1?window.addEventListener(Ot,D):U===0&&window.removeEventListener(Ot,D)}var ie=!1;function F(h){h===void 0&&(h=!1);var v=d.setPrompt(h);return ie||(oe(1),ie=!0),function(){return ie&&(ie=!1,oe(-1)),v()}}function g(h){var v=d.appendListener(h);return oe(1),function(){oe(-1),v()}}var T={length:t.length,action:"POP",location:P,createHref:A,push:_,replace:$,go:k,goBack:re,goForward:z,block:F,listen:g};return T}function Ct(e,t,r){return Math.min(Math.max(e,t),r)}function Lt(e){e===void 0&&(e={});var t=e,r=t.getUserConfirmation,n=t.initialEntries,o=n===void 0?["/"]:n,i=t.initialIndex,s=i===void 0?0:i,u=t.keyLength,p=u===void 0?6:u,a=$e();function c(y){C(P,y),P.length=P.entries.length,a.notifyListeners(P.location,P.action)}function f(){return Math.random().toString(36).substr(2,p)}var l=Ct(s,0,o.length-1),d=o.map(function(y){return typeof y=="string"?j(y,void 0,f()):j(y,void 0,y.key||f())}),m=M;function O(y,A){var _="PUSH",$=j(y,A,f(),P.location);a.confirmTransitionTo($,_,r,function(k){if(!!k){var re=P.index,z=re+1,U=P.entries.slice(0);U.length>z?U.splice(z,U.length-z,$):U.push($),c({action:_,location:$,index:z,entries:U})}})}function b(y,A){var _="REPLACE",$=j(y,A,f(),P.location);a.confirmTransitionTo($,_,r,function(k){!k||(P.entries[P.index]=$,c({action:_,location:$}))})}function L(y){var A=Ct(P.index+y,0,P.entries.length-1),_="POP",$=P.entries[A];a.confirmTransitionTo($,_,r,function(k){k?c({action:_,location:$,index:A}):c()})}function D(){L(-1)}function H(){L(1)}function B(y){var A=P.index+y;return A>=0&&A<P.entries.length}function V(y){return y===void 0&&(y=!1),a.setPrompt(y)}function x(y){return a.appendListener(y)}var P={length:d.length,action:"POP",location:d[l],index:l,entries:d,createHref:m,push:O,replace:b,go:L,goBack:D,goForward:H,canGo:B,block:V,listen:x};return P}var Gt=J($t()),Jn=J(qe());function ne(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Fr=J(Ft()),Ke=1073741823,Kt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:{};function Gr(){var e="__global_unique_id__";return Kt[e]=(Kt[e]||0)+1}function Kr(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function zr(e){var t=[];return{on:function(n){t.push(n)},off:function(n){t=t.filter(function(o){return o!==n})},get:function(){return e},set:function(n,o){e=n,t.forEach(function(i){return i(e,o)})}}}function Jr(e){return Array.isArray(e)?e[0]:e}function Xr(e,t){var r,n,o="__create-react-context-"+Gr()+"__",i=function(u){Y(p,u);function p(){for(var c,f=arguments.length,l=new Array(f),d=0;d<f;d++)l[d]=arguments[d];return c=u.call.apply(u,[this].concat(l))||this,c.emitter=zr(c.props.value),c}var a=p.prototype;return a.getChildContext=function(){var f;return f={},f[o]=this.emitter,f},a.componentWillReceiveProps=function(f){if(this.props.value!==f.value){var l=this.props.value,d=f.value,m;Kr(l,d)?m=0:(m=typeof t=="function"?t(l,d):Ke,m|=0,m!==0&&this.emitter.set(f.value,m))}},a.render=function(){return this.props.children},p}(R.default.Component);i.childContextTypes=(r={},r[o]=Ge.default.object.isRequired,r);var s=function(u){Y(p,u);function p(){for(var c,f=arguments.length,l=new Array(f),d=0;d<f;d++)l[d]=arguments[d];return c=u.call.apply(u,[this].concat(l))||this,c.observedBits=void 0,c.state={value:c.getValue()},c.onUpdate=function(m,O){var b=c.observedBits|0;(b&O)!=0&&c.setState({value:c.getValue()})},c}var a=p.prototype;return a.componentWillReceiveProps=function(f){var l=f.observedBits;this.observedBits=l??Ke},a.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var f=this.props.observedBits;this.observedBits=f??Ke},a.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},a.getValue=function(){return this.context[o]?this.context[o].get():e},a.render=function(){return Jr(this.props.children)(this.state.value)},p}(R.default.Component);return s.contextTypes=(n={},n[o]=Ge.default.object,n),{Provider:i,Consumer:s}}var Qr=R.default.createContext||Xr,zt=function(t){var r=Qr();return r.displayName=t,r},Zr=zt("Router-History"),te=zt("Router"),ue=function(e){Y(t,e),t.computeRootMatch=function(o){return{path:"/",url:"/",params:{},isExact:o==="/"}};function t(n){var o;return o=e.call(this,n)||this,o.state={location:n.history.location},o._isMounted=!1,o._pendingLocation=null,n.staticContext||(o.unlisten=n.history.listen(function(i){o._pendingLocation=i})),o}var r=t.prototype;return r.componentDidMount=function(){var o=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(i){o._isMounted&&o.setState({location:i})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return R.default.createElement(te.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},R.default.createElement(Zr.Provider,{children:this.props.children||null,value:this.props.history}))},t}(R.default.Component),en=function(e){Y(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=e.call.apply(e,[this].concat(i))||this,n.history=Lt(n.props),n}var r=t.prototype;return r.render=function(){return R.default.createElement(ue,{history:this.history,children:this.props.children})},t}(R.default.Component),Zn=function(e){Y(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},r.componentDidUpdate=function(o){this.props.onUpdate&&this.props.onUpdate.call(this,this,o)},r.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},r.render=function(){return null},t}(R.default.Component);var Jt={},tn=1e4,Xt=0;function rn(e,t){var r=""+t.end+t.strict+t.sensitive,n=Jt[r]||(Jt[r]={});if(n[e])return n[e];var o=[],i=(0,Gt.default)(e,o,t),s={regexp:i,keys:o};return Xt<tn&&(n[e]=s,Xt++),s}function ve(e,t){t===void 0&&(t={}),(typeof t=="string"||Array.isArray(t))&&(t={path:t});var r=t,n=r.path,o=r.exact,i=o===void 0?!1:o,s=r.strict,u=s===void 0?!1:s,p=r.sensitive,a=p===void 0?!1:p,c=[].concat(n);return c.reduce(function(f,l){if(!l&&l!=="")return null;if(f)return f;var d=rn(l,{end:i,strict:u,sensitive:a}),m=d.regexp,O=d.keys,b=m.exec(e);if(!b)return null;var L=b[0],D=b.slice(1),H=e===L;return i&&!H?null:{path:l,url:l==="/"&&L===""?"/":L,isExact:H,params:O.reduce(function(B,V,x){return B[V.name]=D[x],B},{})}},null)}function nn(e){return R.default.Children.count(e)===0}var on=function(e){Y(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var o=this;return R.default.createElement(te.Consumer,null,function(i){i||X(!1);var s=o.props.location||i.location,u=o.props.computedMatch?o.props.computedMatch:o.props.path?ve(s.pathname,o.props):i.match,p=C({},i,{location:s,match:u}),a=o.props,c=a.children,f=a.component,l=a.render;return Array.isArray(c)&&nn(c)&&(c=null),R.default.createElement(te.Provider,{value:p},p.match?c?typeof c=="function"?c(p):c:f?R.default.createElement(f,p):l?l(p):null:typeof c=="function"?c(p):null)})},t}(R.default.Component);function ze(e){return e.charAt(0)==="/"?e:"/"+e}function an(e,t){return e?C({},t,{pathname:ze(e)+t.pathname}):t}function sn(e,t){if(!e)return t;var r=ze(e);return t.pathname.indexOf(r)!==0?t:C({},t,{pathname:t.pathname.substr(r.length)})}function Qt(e){return typeof e=="string"?e:M(e)}function Je(e){return function(){X(!1)}}function Zt(){}var cn=function(e){Y(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=e.call.apply(e,[this].concat(i))||this,n.handlePush=function(u){return n.navigateTo(u,"PUSH")},n.handleReplace=function(u){return n.navigateTo(u,"REPLACE")},n.handleListen=function(){return Zt},n.handleBlock=function(){return Zt},n}var r=t.prototype;return r.navigateTo=function(o,i){var s=this.props,u=s.basename,p=u===void 0?"":u,a=s.context,c=a===void 0?{}:a;c.action=i,c.location=an(p,j(o)),c.url=Qt(c.location)},r.render=function(){var o=this.props,i=o.basename,s=i===void 0?"":i,u=o.context,p=u===void 0?{}:u,a=o.location,c=a===void 0?"/":a,f=ne(o,["basename","context","location"]),l={createHref:function(m){return ze(s+Qt(m))},action:"POP",location:sn(s,j(c)),push:this.handlePush,replace:this.handleReplace,go:Je("go"),goBack:Je("goBack"),goForward:Je("goForward"),listen:this.handleListen,block:this.handleBlock};return R.default.createElement(ue,C({},f,{history:l,staticContext:p}))},t}(R.default.Component),un=function(e){Y(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var o=this;return R.default.createElement(te.Consumer,null,function(i){i||X(!1);var s=o.props.location||i.location,u,p;return R.default.Children.forEach(o.props.children,function(a){if(p==null&&R.default.isValidElement(a)){u=a;var c=a.props.path||a.props.from;p=c?ve(s.pathname,C({},a.props,{path:c})):i.match}}),p?R.default.cloneElement(u,{location:s,computedMatch:p}):null})},t}(R.default.Component);var pn=R.default.useContext;function Xe(){return pn(te).location}var K=J(se("react"));var vo=function(e){Y(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=e.call.apply(e,[this].concat(i))||this,n.history=Rt(n.props),n}var r=t.prototype;return r.render=function(){return K.default.createElement(ue,{history:this.history,children:this.props.children})},t}(K.default.Component),mo=function(e){Y(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=e.call.apply(e,[this].concat(i))||this,n.history=_t(n.props),n}var r=t.prototype;return r.render=function(){return K.default.createElement(ue,{history:this.history,children:this.props.children})},t}(K.default.Component),Qe=function(t,r){return typeof t=="function"?t(r):t},Ze=function(t,r){return typeof t=="string"?j(t,null,null,r):t},et=function(t){return t},pe=K.default.forwardRef;typeof pe=="undefined"&&(pe=et);function fn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var ln=pe(function(e,t){var r=e.innerRef,n=e.navigate,o=e.onClick,i=ne(e,["innerRef","navigate","onClick"]),s=i.target,u=C({},i,{onClick:function(a){try{o&&o(a)}catch(c){throw a.preventDefault(),c}!a.defaultPrevented&&a.button===0&&(!s||s==="_self")&&!fn(a)&&(a.preventDefault(),n())}});return et!==pe?u.ref=t||r:u.ref=r,K.default.createElement("a",u)}),hn=pe(function(e,t){var r=e.component,n=r===void 0?ln:r,o=e.replace,i=e.to,s=e.innerRef,u=ne(e,["component","replace","to","innerRef"]);return K.default.createElement(te.Consumer,null,function(p){p||X(!1);var a=p.history,c=Ze(Qe(i,p.location),p.location),f=c?a.createHref(c):"",l=C({},u,{href:f,navigate:function(){var m=Qe(i,p.location),O=M(p.location)===M(Ze(m)),b=o||O?a.replace:a.push;b(m)}});return et!==pe?l.ref=t||s:l.innerRef=s,K.default.createElement(n,l)})});var er=function(t){return t},Se=K.default.forwardRef;typeof Se=="undefined"&&(Se=er);function dn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(n){return n}).join(" ")}var yo=Se(function(e,t){var r=e["aria-current"],n=r===void 0?"page":r,o=e.activeClassName,i=o===void 0?"active":o,s=e.activeStyle,u=e.className,p=e.exact,a=e.isActive,c=e.location,f=e.sensitive,l=e.strict,d=e.style,m=e.to,O=e.innerRef,b=ne(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return K.default.createElement(te.Consumer,null,function(L){L||X(!1);var D=c||L.location,H=Ze(Qe(m,D),D),B=H.pathname,V=B&&B.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=V?ve(D.pathname,{path:V,exact:p,sensitive:f,strict:l}):null,P=!!(a?a(x,D):x),y=typeof u=="function"?u(P):u,A=typeof d=="function"?d(P):d;P&&(y=dn(y,i),A=C({},A,s));var _=C({"aria-current":P&&n||null,className:y,style:A,to:H},b);return er!==Se?_.ref=t||O:_.innerRef=O,K.default.createElement(hn,_)})});var De=J(se("piral-core")),vn=e=>(0,De.defaultRender)(e.children);function mn(e,t="default"){return r=>{var p;let n=Xe(),o=r.paths.find(a=>a.matcher.test(n.pathname)),i=((p=o==null?void 0:o.meta)==null?void 0:p.layout)||t,s=(0,De.useGlobalState)(a=>a.registry.pageLayouts[i]||a.registry.pageLayouts[t]),u=(s==null?void 0:s.component)||vn;return(0,tt.createElement)(u,r,(0,tt.createElement)(e,r))}}function tr(e){let t={};return e&&typeof e=="object"&&Object.keys(e).forEach(r=>{t[r]={pilet:void 0,component:e[r]}}),t}function rr(e,t){return r=>Z(Q({},r),{components:Z(Q({},r.components),{RouteSwitch:mn(r.components.RouteSwitch,t)}),registry:Z(Q({},r.registry),{pageLayouts:e})})}function yn(e={}){let{layouts:t={},fallback:r}=e;return n=>{let o=i=>n.readState(s=>s.registry.pageLayouts[i]);return n.defineActions(Ae),n.dispatch(rr(tr(t),r)),i=>{let s=i.meta.name;return{registerPageLayout(u,p){let a=o(u);if(!a||a.pilet===s){let c=(0,nr.withApi)(n,p,i,"pageLayout");n.registerPageLayout(u,{component:c,pilet:s})}return()=>i.unregisterPageLayout(u)},unregisterPageLayout(u){let p=o(u);(p==null?void 0:p.pilet)===s&&n.unregisterPageLayout(u)}}}}}return gn;})();
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.production.min.js
|
|
4
4
|
*
|