tocco-admin 1.0.131 → 1.0.133

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.
Files changed (46) hide show
  1. package/changelog.md +20 -0
  2. package/dist/1ff3e5ecc0f8d69a4611a7cd8337f0b2.js +1 -0
  3. package/dist/2184bcd361a0e38d249bc49439d994cb.js +1 -0
  4. package/dist/3db12a05792313b3c537e3256f5e2e93.js +1 -0
  5. package/dist/6b07bdedc12700f257d08813b3c0887f.js +1 -0
  6. package/dist/8211ff24c6eb59feeb74cf3ae60e4e5d.js +1 -0
  7. package/dist/99e41196ce05ad5fb70891b44ac227e8.js +1 -0
  8. package/dist/a9cb92db2399f7ac97ad55fe79fe5c20.js +1 -0
  9. package/dist/{1cf2db2fd7f8a1191df79e56059f2b0c.js → aa6c0d1a7dfd344894b8eba8db42ad04.js} +1 -1
  10. package/dist/b35c9a9d72f02feae440dd385a020ef6.js +1 -0
  11. package/dist/chunk-11.dc78cc9bd3dadb7a9185.js +1 -0
  12. package/dist/chunk-170.f4a02b4ad41a40f18355.js +1 -0
  13. package/dist/chunk-176.4a8063616d9041fc2485.js +6 -0
  14. package/dist/{chunk-183.ca30e2de76eb3a8574ae.js → chunk-183.0c9c2a8e9b2ee63898c7.js} +1 -1
  15. package/dist/chunk-343.e51a878e941571726dc5.js +6 -0
  16. package/dist/chunk-560.48669b41a2aef0ad1ed5.js +1 -0
  17. package/dist/chunk-588.2c0addd616d54ebf6d09.js +30 -0
  18. package/dist/chunk-608.2e07108f61bd06d953df.js +1 -0
  19. package/dist/chunk-847.322a73754f23b8cc94f2.js +1 -0
  20. package/dist/chunk-actions.141fd764bccc5ecfb632.js +1 -0
  21. package/dist/{chunk-ckeditor.095ba73438e6f0c167e0.js → chunk-ckeditor.33614ae12ea4746c11e7.js} +8 -8
  22. package/dist/chunk-code-editor.3466a38581bd69e6eb28.js +1 -0
  23. package/dist/chunk-vendor-icons.5e7b30bfd15d0e755ab9.js +1 -0
  24. package/dist/e0d8e58814f40cb5f60e1fe5fb37e9fa.js +1 -0
  25. package/dist/{535cfdbca2590d502868ee1f5897bc81.js → faa809ba713143a2e8b4760a45e1fe89.js} +1 -1
  26. package/dist/index.js +9 -17
  27. package/jest.config.js +1 -13
  28. package/package.json +5 -2
  29. package/dist/0066646fda896809ffd83586c34fd2d6.js +0 -1
  30. package/dist/0e5c4fdbb8cc1c01889edd32840ef257.js +0 -1
  31. package/dist/3b46f110a112d3475064a217b5dae689.js +0 -1
  32. package/dist/3f4c28f4ad0e1ddff1d9536f6d891063.js +0 -1
  33. package/dist/7ac231f87e62311204964a1080ffc478.js +0 -1
  34. package/dist/99de4742973bc7dafad57b3acb83e758.js +0 -1
  35. package/dist/chunk-11.14c66943a9f951e621f2.js +0 -1
  36. package/dist/chunk-18.07e84586848bd16d1c87.js +0 -45
  37. package/dist/chunk-237.fe119f0739af196e75eb.js +0 -1
  38. package/dist/chunk-414.7b586017c18335f9275a.js +0 -1
  39. package/dist/chunk-741.66a9779782894b7cb31a.js +0 -6
  40. package/dist/chunk-798.8c7b58af76d060e17bfe.js +0 -14
  41. package/dist/chunk-847.b7ff04577b3b598e3f29.js +0 -1
  42. package/dist/chunk-909.024c73c2c79b050bb6c2.js +0 -1
  43. package/dist/chunk-actions.07638244b91407cd5fb8.js +0 -1
  44. package/dist/chunk-code-editor.8d3696f1989fbb2c6db1.js +0 -1
  45. package/dist/chunk-vendor-icons.1d922248f67543eaefe9.js +0 -1
  46. package/dist/e6eaab85fd163bbcf98c4fa0471be643.js +0 -1
@@ -0,0 +1 @@
1
+ (self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[170],{41143:t=>{"use strict";t.exports=function(t,e,n,r,o,i,a,c){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,c],f=0;(u=new Error(e.replace(/%s/g,(function(){return s[f++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},64593:(t,e,n)=>{"use strict";n.d(e,{q:()=>yt});var r,o,i,a,c=n(89324),u=n.n(c),s=n(83524),f=n.n(s),l=n(69590),p=n.n(l),h=n(1024),d=n.n(h),v=n(27418),y=n.n(v),m="bodyAttributes",g="htmlAttributes",b="titleAttributes",w={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},T=(Object.keys(w).map((function(t){return w[t]})),"charset"),E="cssText",O="href",x="http-equiv",A="innerHTML",C="itemprop",P="name",S="property",k="rel",R="src",j="target",L={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},_="defaultTitle",I="defer",M="encodeSpecialCharacters",U="onChangeClientState",N="titleTemplate",D=Object.keys(L).reduce((function(t,e){return t[L[e]]=e,t}),{}),H=[w.NOSCRIPT,w.SCRIPT,w.STYLE],B="data-react-helmet",F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},q=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},K=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},Z=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===e?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},V=function(t){var e=Q(t,w.TITLE),n=Q(t,N);if(n&&e)return n.replace(/%s/g,(function(){return Array.isArray(e)?e.join(""):e}));var r=Q(t,_);return e||r||void 0},z=function(t){return Q(t,U)||function(){}},J=function(t,e){return e.filter((function(e){return void 0!==e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return Y({},t,e)}),{})},X=function(t,e){return e.filter((function(t){return void 0!==t[w.BASE]})).map((function(t){return t[w.BASE]})).reverse().reduce((function(e,n){if(!e.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==t.indexOf(i)&&n[i])return e.concat(n)}return e}),[])},G=function(t,e,n){var r={};return n.filter((function(e){return!!Array.isArray(e[t])||(void 0!==e[t]&&ot("Helmet: "+t+' should be of type "Array". Instead found type "'+F(e[t])+'"'),!1)})).map((function(e){return e[t]})).reverse().reduce((function(t,n){var o={};n.filter((function(t){for(var n=void 0,i=Object.keys(t),a=0;a<i.length;a++){var c=i[a],u=c.toLowerCase();-1===e.indexOf(u)||n===k&&"canonical"===t[n].toLowerCase()||u===k&&"stylesheet"===t[u].toLowerCase()||(n=u),-1===e.indexOf(c)||c!==A&&c!==E&&c!==C||(n=c)}if(!n||!t[n])return!1;var s=t[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][s]&&(o[n][s]=!0,!0)})).reverse().forEach((function(e){return t.push(e)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var c=i[a],u=y()({},r[c],o[c]);r[c]=u}return t}),[]).reverse()},Q=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.hasOwnProperty(e))return r[e]}return null},tt=(r=Date.now(),function(t){var e=Date.now();e-r>16?(r=e,t(e)):setTimeout((function(){tt(t)}),0)}),et=function(t){return clearTimeout(t)},nt="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||tt:n.g.requestAnimationFrame||tt,rt="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||et:n.g.cancelAnimationFrame||et,ot=function(t){return console&&"function"==typeof console.warn&&console.warn(t)},it=null,at=function(t,e){var n=t.baseTag,r=t.bodyAttributes,o=t.htmlAttributes,i=t.linkTags,a=t.metaTags,c=t.noscriptTags,u=t.onChangeClientState,s=t.scriptTags,f=t.styleTags,l=t.title,p=t.titleAttributes;st(w.BODY,r),st(w.HTML,o),ut(l,p);var h={baseTag:ft(w.BASE,n),linkTags:ft(w.LINK,i),metaTags:ft(w.META,a),noscriptTags:ft(w.NOSCRIPT,c),scriptTags:ft(w.SCRIPT,s),styleTags:ft(w.STYLE,f)},d={},v={};Object.keys(h).forEach((function(t){var e=h[t],n=e.newTags,r=e.oldTags;n.length&&(d[t]=n),r.length&&(v[t]=h[t].oldTags)})),e&&e(),u(t,d,v)},ct=function(t){return Array.isArray(t)?t.join(""):t},ut=function(t,e){void 0!==t&&document.title!==t&&(document.title=ct(t)),st(w.TITLE,e)},st=function(t,e){var n=document.getElementsByTagName(t)[0];if(n){for(var r=n.getAttribute(B),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(e),c=0;c<a.length;c++){var u=a[c],s=e[u]||"";n.getAttribute(u)!==s&&n.setAttribute(u,s),-1===o.indexOf(u)&&o.push(u);var f=i.indexOf(u);-1!==f&&i.splice(f,1)}for(var l=i.length-1;l>=0;l--)n.removeAttribute(i[l]);o.length===i.length?n.removeAttribute(B):n.getAttribute(B)!==a.join(",")&&n.setAttribute(B,a.join(","))}},ft=function(t,e){var n=document.head||document.querySelector(w.HEAD),r=n.querySelectorAll(t+"["+"data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var r in e)if(e.hasOwnProperty(r))if(r===A)n.innerHTML=e.innerHTML;else if(r===E)n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText));else{var c=void 0===e[r]?"":e[r];n.setAttribute(r,c)}n.setAttribute(B,"true"),o.some((function(t,e){return a=e,n.isEqualNode(t)}))?o.splice(a,1):i.push(n)})),o.forEach((function(t){return t.parentNode.removeChild(t)})),i.forEach((function(t){return n.appendChild(t)})),{oldTags:o,newTags:i}},lt=function(t){return Object.keys(t).reduce((function(e,n){var r=void 0!==t[n]?n+'="'+t[n]+'"':""+n;return e?e+" "+r:r}),"")},pt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[L[n]||n]=t[n],e}),e)},ht=function(t,e,n){switch(t){case w.TITLE:return{toComponent:function(){return t=e.title,n=e.titleAttributes,(r={key:t})[B]=!0,o=pt(n,r),[d().createElement(w.TITLE,o,t)];var t,n,r,o},toString:function(){return function(t,e,n,r){var o=lt(n),i=ct(e);return o?"<"+t+' data-react-helmet="true" '+o+">"+Z(i,r)+"</"+t+">":"<"+t+' data-react-helmet="true">'+Z(i,r)+"</"+t+">"}(t,e.title,e.titleAttributes,n)}};case m:case g:return{toComponent:function(){return pt(e)},toString:function(){return lt(e)}};default:return{toComponent:function(){return function(t,e){return e.map((function(e,n){var r,o=((r={key:n})[B]=!0,r);return Object.keys(e).forEach((function(t){var n=L[t]||t;if(n===A||n===E){var r=e.innerHTML||e.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=e[t]})),d().createElement(t,o)}))}(t,e)},toString:function(){return function(t,e,n){return e.reduce((function(e,r){var o=Object.keys(r).filter((function(t){return!(t===A||t===E)})).reduce((function(t,e){var o=void 0===r[e]?e:e+'="'+Z(r[e],n)+'"';return t?t+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===H.indexOf(t);return e+"<"+t+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+t+">")}),"")}(t,e,n)}}}},dt=function(t){var e=t.baseTag,n=t.bodyAttributes,r=t.encode,o=t.htmlAttributes,i=t.linkTags,a=t.metaTags,c=t.noscriptTags,u=t.scriptTags,s=t.styleTags,f=t.title,l=void 0===f?"":f,p=t.titleAttributes;return{base:ht(w.BASE,e,r),bodyAttributes:ht(m,n,r),htmlAttributes:ht(g,o,r),link:ht(w.LINK,i,r),meta:ht(w.META,a,r),noscript:ht(w.NOSCRIPT,c,r),script:ht(w.SCRIPT,u,r),style:ht(w.STYLE,s,r),title:ht(w.TITLE,{title:l,titleAttributes:p},r)}},vt=f()((function(t){return{baseTag:X([O,j],t),bodyAttributes:J(m,t),defer:Q(t,I),encode:Q(t,M),htmlAttributes:J(g,t),linkTags:G(w.LINK,[k,O],t),metaTags:G(w.META,[P,T,x,S,C],t),noscriptTags:G(w.NOSCRIPT,[A],t),onChangeClientState:z(t),scriptTags:G(w.SCRIPT,[R,A],t),styleTags:G(w.STYLE,[E],t),title:V(t),titleAttributes:J(b,t)}}),(function(t){it&&rt(it),t.defer?it=nt((function(){at(t,(function(){it=null}))})):(at(t),it=null)}),dt)((function(){return null})),yt=(o=vt,a=i=function(t){function e(){return W(this,e),K(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){return!p()(this.props,t)},e.prototype.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:e};case w.STYLE:return{cssText:e}}throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},e.prototype.flattenArrayTypeChildren=function(t){var e,n=t.child,r=t.arrayTypeChildren,o=t.newChildProps,i=t.nestedChildren;return Y({},r,((e={})[n.type]=[].concat(r[n.type]||[],[Y({},o,this.mapNestedChildrenToProps(n,i))]),e))},e.prototype.mapObjectTypeChildren=function(t){var e,n,r=t.child,o=t.newProps,i=t.newChildProps,a=t.nestedChildren;switch(r.type){case w.TITLE:return Y({},o,((e={})[r.type]=a,e.titleAttributes=Y({},i),e));case w.BODY:return Y({},o,{bodyAttributes:Y({},i)});case w.HTML:return Y({},o,{htmlAttributes:Y({},i)})}return Y({},o,((n={})[r.type]=Y({},i),n))},e.prototype.mapArrayTypeChildrenToProps=function(t,e){var n=Y({},e);return Object.keys(t).forEach((function(e){var r;n=Y({},n,((r={})[e]=t[e],r))})),n},e.prototype.warnOnInvalidChildren=function(t,e){return!0},e.prototype.mapChildrenToProps=function(t,e){var n=this,r={};return d().Children.forEach(t,(function(t){if(t&&t.props){var o=t.props,i=o.children,a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[D[n]||n]=t[n],e}),e)}($(o,["children"]));switch(n.warnOnInvalidChildren(t,i),t.type){case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:r=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:e=n.mapObjectTypeChildren({child:t,newProps:e,newChildProps:a,nestedChildren:i})}}})),e=this.mapArrayTypeChildrenToProps(r,e)},e.prototype.render=function(){var t=this.props,e=t.children,n=$(t,["children"]),r=Y({},n);return e&&(r=this.mapChildrenToProps(e,r)),d().createElement(o,r)},q(e,null,[{key:"canUseDOM",set:function(t){o.canUseDOM=t}}]),e}(d().Component),i.propTypes={base:u().object,bodyAttributes:u().object,children:u().oneOfType([u().arrayOf(u().node),u().node]),defaultTitle:u().string,defer:u().bool,encodeSpecialCharacters:u().bool,htmlAttributes:u().object,link:u().arrayOf(u().object),meta:u().arrayOf(u().object),noscript:u().arrayOf(u().object),onChangeClientState:u().func,script:u().arrayOf(u().object),style:u().arrayOf(u().object),title:u().string,titleAttributes:u().object,titleTemplate:u().string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var t=o.rewind();return t||(t=dt({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},a);yt.renderStatic=yt.rewind},17579:(t,e,n)=>{"use strict";var r=n(80070);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=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 c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},89324:(t,e,n)=>{t.exports=n(17579)()},80070:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96559:(t,e,n)=>{"use strict";n.d(e,{rU:()=>D});var r=n(99752);function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e)}var a=n(1024),c=n.n(a);function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function s(t){return"/"===t.charAt(0)}function f(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}const l=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],o=e&&e.split("/")||[],i=t&&s(t),a=e&&s(e),c=i||a;if(t&&s(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];n="."===u||".."===u||""===u}else n=!1;for(var l=0,p=o.length;p>=0;p--){var h=o[p];"."===h?f(o,p):".."===h?(f(o,p),l++):l&&(f(o,p),l--)}if(!c)for(;l--;l)o.unshift("..");!c||""===o[0]||o[0]&&s(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var p=n(2177);function h(t){return"/"===t.charAt(0)?t:"/"+t}function d(t){return"/"===t.charAt(0)?t.substr(1):t}function v(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function y(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function m(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function g(t,e,n,r){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),o.state=e):(void 0===(o=u({},t)).pathname&&(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="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function b(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function T(t,e){e(window.confirm(t))}var E="popstate",O="hashchange";function x(){try{return window.history.state||{}}catch(t){return{}}}function A(t){void 0===t&&(t={}),w||(0,p.Z)(!1);var e,n=window.history,r=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=t,a=i.forceRefresh,c=void 0!==a&&a,s=i.getUserConfirmation,f=void 0===s?T:s,l=i.keyLength,d=void 0===l?6:l,A=t.basename?y(h(t.basename)):"";function C(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;return A&&(i=v(i,A)),g(i,r,n)}function P(){return Math.random().toString(36).substr(2,d)}var S=b();function k(t){u(F,t),F.length=n.length,S.notifyListeners(F.location,F.action)}function R(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||_(C(t.state))}function j(){_(C(x()))}var L=!1;function _(t){if(L)L=!1,k();else{S.confirmTransitionTo(t,"POP",f,(function(e){e?k({action:"POP",location:t}):function(t){var e=F.location,n=M.indexOf(e.key);-1===n&&(n=0);var r=M.indexOf(t.key);-1===r&&(r=0);var o=n-r;o&&(L=!0,N(o))}(t)}))}}var I=C(x()),M=[I.key];function U(t){return A+m(t)}function N(t){n.go(t)}var D=0;function H(t){1===(D+=t)&&1===t?(window.addEventListener(E,R),o&&window.addEventListener(O,j)):0===D&&(window.removeEventListener(E,R),o&&window.removeEventListener(O,j))}var B=!1;var F={length:n.length,action:"POP",location:I,createHref:U,push:function(t,e){var o="PUSH",i=g(t,e,P(),F.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var e=U(i),a=i.key,u=i.state;if(r)if(n.pushState({key:a,state:u},null,e),c)window.location.href=e;else{var s=M.indexOf(F.location.key),f=M.slice(0,s+1);f.push(i.key),M=f,k({action:o,location:i})}else window.location.href=e}}))},replace:function(t,e){var o="REPLACE",i=g(t,e,P(),F.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var e=U(i),a=i.key,u=i.state;if(r)if(n.replaceState({key:a,state:u},null,e),c)window.location.replace(e);else{var s=M.indexOf(F.location.key);-1!==s&&(M[s]=i.key),k({action:o,location:i})}else window.location.replace(e)}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(t){void 0===t&&(t=!1);var e=S.setPrompt(t);return B||(H(1),B=!0),function(){return B&&(B=!1,H(-1)),e()}},listen:function(t){var e=S.appendListener(t);return H(1),function(){H(-1),e()}}};return F}var C="hashchange",P={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+d(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:d,decodePath:h},slash:{encodePath:h,decodePath:h}};function S(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function k(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function R(t){window.location.replace(S(window.location.href)+"#"+t)}function j(t){void 0===t&&(t={}),w||(0,p.Z)(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),r=n.getUserConfirmation,o=void 0===r?T:r,i=n.hashType,a=void 0===i?"slash":i,c=t.basename?y(h(t.basename)):"",s=P[a],f=s.encodePath,l=s.decodePath;function d(){var t=l(k());return c&&(t=v(t,c)),g(t)}var E=b();function O(t){u(B,t),B.length=e.length,E.notifyListeners(B.location,B.action)}var x=!1,A=null;function j(){var t,e,n=k(),r=f(n);if(n!==r)R(r);else{var i=d(),a=B.location;if(!x&&(e=i,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(A===m(i))return;A=null,function(t){if(x)x=!1,O();else{var e="POP";E.confirmTransitionTo(t,e,o,(function(n){n?O({action:e,location:t}):function(t){var e=B.location,n=M.lastIndexOf(m(e));-1===n&&(n=0);var r=M.lastIndexOf(m(t));-1===r&&(r=0);var o=n-r;o&&(x=!0,U(o))}(t)}))}}(i)}}var L=k(),_=f(L);L!==_&&R(_);var I=d(),M=[m(I)];function U(t){e.go(t)}var N=0;function D(t){1===(N+=t)&&1===t?window.addEventListener(C,j):0===N&&window.removeEventListener(C,j)}var H=!1;var B={length:e.length,action:"POP",location:I,createHref:function(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=S(window.location.href)),n+"#"+f(c+m(t))},push:function(t,e){var n="PUSH",r=g(t,void 0,void 0,B.location);E.confirmTransitionTo(r,n,o,(function(t){if(t){var e=m(r),o=f(c+e);if(k()!==o){A=e,function(t){window.location.hash=t}(o);var i=M.lastIndexOf(m(B.location)),a=M.slice(0,i+1);a.push(e),M=a,O({action:n,location:r})}else O()}}))},replace:function(t,e){var n="REPLACE",r=g(t,void 0,void 0,B.location);E.confirmTransitionTo(r,n,o,(function(t){if(t){var e=m(r),o=f(c+e);k()!==o&&(A=e,R(o));var i=M.indexOf(m(B.location));-1!==i&&(M[i]=e),O({action:n,location:r})}}))},go:U,goBack:function(){U(-1)},goForward:function(){U(1)},block:function(t){void 0===t&&(t=!1);var e=E.setPrompt(t);return H||(D(1),H=!0),function(){return H&&(H=!1,D(-1)),e()}},listen:function(t){var e=E.appendListener(t);return D(1),function(){D(-1),e()}}};return B}n(94662);function L(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}c().Component;c().Component;var _=function(t,e){return"function"==typeof t?t(e):t},I=function(t,e){return"string"==typeof t?g(t,null,null,e):t},M=function(t){return t},U=c().forwardRef;void 0===U&&(U=M);var N=U((function(t,e){var n=t.innerRef,r=t.navigate,o=t.onClick,i=L(t,["innerRef","navigate","onClick"]),a=i.target,s=u({},i,{onClick:function(t){try{o&&o(t)}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||a&&"_self"!==a||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return s.ref=M!==U&&e||n,c().createElement("a",s)}));var D=U((function(t,e){var n=t.component,o=void 0===n?N:n,i=t.replace,a=t.to,s=t.innerRef,f=L(t,["component","replace","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(t){t||(0,p.Z)(!1);var n=t.history,r=I(_(a,t.location),t.location),l=r?n.createHref(r):"",h=u({},f,{href:l,navigate:function(){var e=_(a,t.location),r=m(t.location)===m(I(e));(i||r?n.replace:n.push)(e)}});return M!==U?h.ref=e||s:h.innerRef=s,c().createElement(o,h)}))})),H=function(t){return t},B=c().forwardRef;void 0===B&&(B=H);B((function(t,e){var n=t["aria-current"],o=void 0===n?"page":n,i=t.activeClassName,a=void 0===i?"active":i,s=t.activeStyle,f=t.className,l=t.exact,h=t.isActive,d=t.location,v=t.sensitive,y=t.strict,m=t.style,g=t.to,b=t.innerRef,w=L(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(t){t||(0,p.Z)(!1);var n=d||t.location,i=I(_(g,n),n),T=i.pathname,E=T&&T.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),O=E?(0,r.LX)(n.pathname,{path:E,exact:l,sensitive:v,strict:y}):null,x=!!(h?h(O,n):O),A="function"==typeof f?f(x):f,C="function"==typeof m?m(x):m;x&&(A=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return t})).join(" ")}(A,a),C=u({},C,s));var P=u({"aria-current":x&&o||null,className:A,style:C,to:i},w);return H!==B?P.ref=e||b:P.innerRef=b,c().createElement(D,P)}))}))},126:(t,e,n)=>{"use strict";var r=n(51235);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=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 c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},94662:(t,e,n)=>{t.exports=n(126)()},51235:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},99752:(t,e,n)=>{"use strict";function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,{NL:()=>L,l_:()=>U,AW:()=>B,F0:()=>R,rs:()=>K,s6:()=>k,LX:()=>H,k6:()=>V,TH:()=>z,UO:()=>J});var i=n(1024),a=n.n(i),c=n(88462),u=n.n(c);function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function f(t){return"/"===t.charAt(0)}function l(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}const p=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],o=e&&e.split("/")||[],i=t&&f(t),a=e&&f(e),c=i||a;if(t&&f(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];n="."===u||".."===u||""===u}else n=!1;for(var s=0,p=o.length;p>=0;p--){var h=o[p];"."===h?l(o,p):".."===h?(l(o,p),s++):s&&(l(o,p),s--)}if(!c)for(;s--;s)o.unshift("..");!c||""===o[0]||o[0]&&f(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function h(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const d=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"==typeof e||"object"==typeof n){var r=h(e),o=h(n);return r!==e||o!==n?t(r,o):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1};function v(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(t,e,n,r){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),o.state=e):(void 0===(o=s({},t)).pathname&&(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="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=p(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function m(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}"undefined"==typeof window||!window.document||window.document.createElement;function g(t,e,n){return Math.min(Math.max(t,e),n)}function b(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,r=e.initialEntries,o=void 0===r?["/"]:r,i=e.initialIndex,a=void 0===i?0:i,c=e.keyLength,u=void 0===c?6:c,f=m();function l(t){s(T,t),T.length=T.entries.length,f.notifyListeners(T.location,T.action)}function p(){return Math.random().toString(36).substr(2,u)}var h=g(a,0,o.length-1),d=o.map((function(t){return y(t,void 0,"string"==typeof t?p():t.key||p())})),b=v;function w(t){var e=g(T.index+t,0,T.entries.length-1),r=T.entries[e];f.confirmTransitionTo(r,"POP",n,(function(t){t?l({action:"POP",location:r,index:e}):l()}))}var T={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:b,push:function(t,e){var r="PUSH",o=y(t,e,p(),T.location);f.confirmTransitionTo(o,r,n,(function(t){if(t){var e=T.index+1,n=T.entries.slice(0);n.length>e?n.splice(e,n.length-e,o):n.push(o),l({action:r,location:o,index:e,entries:n})}}))},replace:function(t,e){var r="REPLACE",o=y(t,e,p(),T.location);f.confirmTransitionTo(o,r,n,(function(t){t&&(T.entries[T.index]=o,l({action:r,location:o}))}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},canGo:function(t){var e=T.index+t;return e>=0&&e<T.entries.length},block:function(t){return void 0===t&&(t=!1),f.setPrompt(t)},listen:function(t){return f.appendListener(t)}};return T}var w=n(2177),T=n(39658),E=n.n(T);n(59864);n(8679);var O=1073741823,x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};function A(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,r){t=n,e.forEach((function(e){return e(t,r)}))}}}var C=a().createContext||function(t,e){var n,r,i="__create-react-context-"+function(){var t="__global_unique_id__";return x[t]=(x[t]||0)+1}()+"__",c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).emitter=A(e.props.value),e}o(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[i]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,o=t.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof e?e(r,o):O,0!==(n|=0)&&this.emitter.set(t.value,n))}var i,a},r.render=function(){return this.props.children},n}(a().Component);c.childContextTypes=((n={})[i]=u().object.isRequired,n);var s=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).observedBits=void 0,t.state={value:t.getValue()},t.onUpdate=function(e,n){0!=((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}o(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?O:e},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?O:t},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(a().Component);return s.contextTypes=((r={})[i]=u().object,r),{Provider:c,Consumer:s}},P=function(t){var e=C();return e.displayName=t,e},S=P("Router-History"),k=P("Router"),R=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._pendingLocation=t}))),n}o(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){var t=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(e){t._isMounted&&t.setState({location:e})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a().createElement(k.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a().createElement(S.Provider,{children:this.props.children||null,value:this.props.history}))},e}(a().Component);a().Component;var j=function(t){function e(){return t.apply(this,arguments)||this}o(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(a().Component);function L(t){var e=t.message,n=t.when,r=void 0===n||n;return a().createElement(k.Consumer,null,(function(t){if(t||(0,w.Z)(!1),!r||t.staticContext)return null;var n=t.history.block;return a().createElement(j,{onMount:function(t){t.release=n(e)},onUpdate:function(t,r){r.message!==e&&(t.release(),t.release=n(e))},onUnmount:function(t){t.release()},message:e})}))}var _={},I=0;function M(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(_[t])return _[t];var e=E().compile(t);return I<1e4&&(_[t]=e,I++),e}(t)(e,{pretty:!0})}function U(t){var e=t.computedMatch,n=t.to,r=t.push,o=void 0!==r&&r;return a().createElement(k.Consumer,null,(function(t){t||(0,w.Z)(!1);var r=t.history,i=t.staticContext,c=o?r.push:r.replace,u=y(e?"string"==typeof n?M(n,e.params):s({},n,{pathname:M(n.pathname,e.params)}):n);return i?(c(u),null):a().createElement(j,{onMount:function(){c(u)},onUpdate:function(t,e){var n,r,o=y(e.to);n=o,r=s({},u,{key:o.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&d(n.state,r.state)||c(u)},to:n})}))}var N={},D=0;function H(t,e){void 0===e&&(e={}),("string"==typeof e||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,c=void 0!==a&&a,u=n.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var r=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=N[n]||(N[n]={});if(r[t])return r[t];var o=[],i={regexp:E()(t,o,e),keys:o};return D<1e4&&(r[t]=i,D++),i}(n,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(t);if(!u)return null;var f=u[0],l=u.slice(1),p=t===f;return i&&!p?null:{path:n,url:"/"===n&&""===f?"/":f,isExact:p,params:a.reduce((function(t,e,n){return t[e.name]=l[n],t}),{})}}),null)}var B=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){var t=this;return a().createElement(k.Consumer,null,(function(e){e||(0,w.Z)(!1);var n=t.props.location||e.location,r=s({},e,{location:n,match:t.props.computedMatch?t.props.computedMatch:t.props.path?H(n.pathname,t.props):e.match}),o=t.props,i=o.children,c=o.component,u=o.render;return Array.isArray(i)&&function(t){return 0===a().Children.count(t)}(i)&&(i=null),a().createElement(k.Provider,{value:r},r.match?i?"function"==typeof i?i(r):i:c?a().createElement(c,r):u?u(r):null:"function"==typeof i?i(r):null)}))},e}(a().Component);function F(t){return"/"===t.charAt(0)?t:"/"+t}function W(t,e){if(!t)return e;var n=F(t);return 0!==e.pathname.indexOf(n)?e:s({},e,{pathname:e.pathname.substr(n.length)})}function q(t){return"string"==typeof t?t:v(t)}function Y(t){return function(){(0,w.Z)(!1)}}function $(){}a().Component;var K=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){var t=this;return a().createElement(k.Consumer,null,(function(e){e||(0,w.Z)(!1);var n,r,o=t.props.location||e.location;return a().Children.forEach(t.props.children,(function(t){if(null==r&&a().isValidElement(t)){n=t;var i=t.props.path||t.props.from;r=i?H(o.pathname,s({},t.props,{path:i})):e.match}})),r?a().cloneElement(n,{location:o,computedMatch:r}):null}))},e}(a().Component);var Z=a().useContext;function V(){return Z(S)}function z(){return Z(k).location}function J(){var t=Z(k).match;return t?t.params:{}}},76585:t=>{t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},39658:(t,e,n)=>{var r=n(76585);t.exports=h,t.exports.parse=i,t.exports.compile=function(t,e){return c(i(t,e),e)},t.exports.tokensToFunction=c,t.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,e){for(var n,r=[],i=0,a=0,c="",f=e&&e.delimiter||"/";null!=(n=o.exec(t));){var l=n[0],p=n[1],h=n.index;if(c+=t.slice(a,h),a=h+l.length,p)c+=p[1];else{var d=t[a],v=n[2],y=n[3],m=n[4],g=n[5],b=n[6],w=n[7];c&&(r.push(c),c="");var T=null!=v&&null!=d&&d!==v,E="+"===b||"*"===b,O="?"===b||"*"===b,x=n[2]||f,A=m||g;r.push({name:y||i++,prefix:v||"",delimiter:x,optional:O,repeat:E,partial:T,asterisk:!!w,pattern:A?s(A):w?".*":"[^"+u(x)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&r.push(c),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function c(t,e){for(var n=new Array(t.length),o=0;o<t.length;o++)"object"==typeof t[o]&&(n[o]=new RegExp("^(?:"+t[o].pattern+")$",l(e)));return function(e,o){for(var i="",c=e||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<t.length;s++){var f=t[s];if("string"!=typeof f){var l,p=c[f.name];if(null==p){if(f.optional){f.partial&&(i+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(r(p)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(l=u(p[h]),!n[s].test(l))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?f.prefix:f.delimiter)+l}}else{if(l=f.asterisk?encodeURI(p).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(p),!n[s].test(l))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+l+'"');i+=f.prefix+l}}else i+=f}return i}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,e){return t.keys=e,t}function l(t){return t&&t.sensitive?"":"i"}function p(t,e,n){r(e)||(n=e||n,e=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",c=0;c<t.length;c++){var s=t[c];if("string"==typeof s)a+=u(s);else{var p=u(s.prefix),h="(?:"+s.pattern+")";e.push(s),s.repeat&&(h+="(?:"+p+h+")*"),a+=h=s.optional?s.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var d=u(n.delimiter||"/"),v=a.slice(-d.length)===d;return o||(a=(v?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+d+"|$)",f(new RegExp("^"+a,l(n)),e)}function h(t,e,n){return r(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(h(t[o],e,n).source);return f(new RegExp("(?:"+r.join("|")+")",l(n)),e)}(t,e,n):function(t,e,n){return p(i(t,n),e,n)}(t,e,n)}},45872:(t,e,n)=>{"use strict";var r=n(4795);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=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 c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},88462:(t,e,n)=>{t.exports=n(45872)()},4795:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},83524:(t,e,n)=>{"use strict";var r,o=n(1024),i=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=function(t,e,n){if("function"!=typeof t)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof e)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,s=[];function f(){u=t(s.map((function(t){return t.props}))),l.canUseDOM?e(u):n&&(u=n(u))}var l=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o.peek=function(){return u},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var t=u;return u=void 0,s=[],t};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){s.push(this),f()},a.componentDidUpdate=function(){f()},a.componentWillUnmount=function(){var t=s.indexOf(this);s.splice(t,1),f()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(l,"displayName","SideEffect("+function(t){return t.displayName||t.name||"Component"}(r)+")"),a(l,"canUseDOM",c),l}}},14149:(t,e,n)=>{"use strict";function r(t){return"/"===t.charAt(0)}function o(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}n.r(e),n.d(e,{default:()=>i});const i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&r(t),c=e&&r(e),u=a||c;if(t&&r(t)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var s=void 0;if(i.length){var f=i[i.length-1];s="."===f||".."===f||""===f}else s=!1;for(var l=0,p=i.length;p>=0;p--){var h=i[p];"."===h?o(i,p):".."===h?(o(i,p),l++):l&&(o(i,p),l--)}if(!u)for(;l--;l)i.unshift("..");!u||""===i[0]||i[0]&&r(i[0])||i.unshift("");var d=i.join("/");return s&&"/"!==d.substr(-1)&&(d+="/"),d}},2177:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r="Invariant failed";function o(t,e){if(!t)throw new Error(r)}},54545:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};const o=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));var o=void 0===e?"undefined":r(e);if(o!==(void 0===n?"undefined":r(n)))return!1;if("object"===o){var i=e.valueOf(),a=n.valueOf();if(i!==e||a!==n)return t(i,a);var c=Object.keys(e),u=Object.keys(n);return c.length===u.length&&c.every((function(r){return t(e[r],n[r])}))}return!1}},30670:t=>{"use strict";t.exports=function(){}},90655:(t,e,n)=>{"use strict";function r(t,e){void 0===e&&(e={});for(var n=function(t){for(var e=[],n=0;n<t.length;){var r=t[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)e.push({type:"CHAR",index:n,value:t[n++]});else{var o=1,i="";if("?"===t[c=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(c));for(;c<t.length;)if("\\"!==t[c]){if(")"===t[c]){if(0==--o){c++;break}}else if("("===t[c]&&(o++,"?"!==t[c+1]))throw new TypeError("Capturing groups are not allowed at ".concat(c));i+=t[c++]}else i+=t[c++]+t[c++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));e.push({type:"PATTERN",index:n,value:i}),n=c}else{for(var a="",c=n+1;c<t.length;){var u=t.charCodeAt(c);if(!(u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||95===u))break;a+=t[c++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));e.push({type:"NAME",index:n,value:a}),n=c}else e.push({type:"CLOSE",index:n,value:t[n++]});else e.push({type:"OPEN",index:n,value:t[n++]});else e.push({type:"ESCAPED_CHAR",index:n++,value:t[n++]});else e.push({type:"MODIFIER",index:n,value:t[n++]})}return e.push({type:"END",index:n,value:""}),e}(t),r=e.prefixes,i=void 0===r?"./":r,a="[^".concat(o(e.delimiter||"/#?"),"]+?"),c=[],u=0,s=0,f="",l=function(t){if(s<n.length&&n[s].type===t)return n[s++].value},p=function(t){var e=l(t);if(void 0!==e)return e;var r=n[s],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(t))},h=function(){for(var t,e="";t=l("CHAR")||l("ESCAPED_CHAR");)e+=t;return e};s<n.length;){var d=l("CHAR"),v=l("NAME"),y=l("PATTERN");if(v||y){var m=d||"";-1===i.indexOf(m)&&(f+=m,m=""),f&&(c.push(f),f=""),c.push({name:v||u++,prefix:m,suffix:"",pattern:y||a,modifier:l("MODIFIER")||""})}else{var g=d||l("ESCAPED_CHAR");if(g)f+=g;else if(f&&(c.push(f),f=""),l("OPEN")){m=h();var b=l("NAME")||"",w=l("PATTERN")||"",T=h();p("CLOSE"),c.push({name:b||(w?u++:""),pattern:b&&!w?a:w,prefix:m,suffix:T,modifier:l("MODIFIER")||""})}else p("END")}}return c}function o(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(t){return t&&t.sensitive?"":"i"}function a(t,e,n){return function(t,e,n){void 0===n&&(n={});for(var r=n.strict,a=void 0!==r&&r,c=n.start,u=void 0===c||c,s=n.end,f=void 0===s||s,l=n.encode,p=void 0===l?function(t){return t}:l,h=n.delimiter,d=void 0===h?"/#?":h,v=n.endsWith,y="[".concat(o(void 0===v?"":v),"]|$"),m="[".concat(o(d),"]"),g=u?"^":"",b=0,w=t;b<w.length;b++){var T=w[b];if("string"==typeof T)g+=o(p(T));else{var E=o(p(T.prefix)),O=o(p(T.suffix));if(T.pattern)if(e&&e.push(T),E||O)if("+"===T.modifier||"*"===T.modifier){var x="*"===T.modifier?"?":"";g+="(?:".concat(E,"((?:").concat(T.pattern,")(?:").concat(O).concat(E,"(?:").concat(T.pattern,"))*)").concat(O,")").concat(x)}else g+="(?:".concat(E,"(").concat(T.pattern,")").concat(O,")").concat(T.modifier);else"+"===T.modifier||"*"===T.modifier?g+="((?:".concat(T.pattern,")").concat(T.modifier,")"):g+="(".concat(T.pattern,")").concat(T.modifier);else g+="(?:".concat(E).concat(O,")").concat(T.modifier)}}if(f)a||(g+="".concat(m,"?")),g+=n.endsWith?"(?=".concat(y,")"):"$";else{var A=t[t.length-1],C="string"==typeof A?m.indexOf(A[A.length-1])>-1:void 0===A;a||(g+="(?:".concat(m,"(?=").concat(y,"))?")),C||(g+="(?=".concat(m,"|").concat(y,")"))}return new RegExp(g,i(n))}(r(t,n),e,n)}function c(t,e,n){return t instanceof RegExp?function(t,e){if(!e)return t;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(t.source);o;)e.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(t.source);return t}(t,e):Array.isArray(t)?function(t,e,n){var r=t.map((function(t){return c(t,e,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),i(n))}(t,e,n):a(t,e,n)}n.d(e,{Bo:()=>c})}}]);
@@ -0,0 +1,6 @@
1
+ (self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[176],{44020:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp(t,"gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function a(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var o=a(r[0]);o!==r[0]&&(t[r[0]]=o)}r=n.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),s=0;s<i.length;s++){var c=i[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},92806:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),a=0;a<n.length;a++){var i=n[a],s=e[i];(o?-1!==t.indexOf(i):t(i,s,e))&&(r[i]=s)}return r}},36392:(e,t,r)=>{"use strict";r.d(t,{lX:()=>R});var n=r(30670),o=r.n(n),a=r(41143),i=r.n(a),s=r(14149),c=(r(54545),function(e){return"/"===e.charAt(0)?e:"/"+e}),l=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},u=function(e,t){return l(e,t)?e.substr(t.length):e},d=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},f=function(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},p=Object.assign||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},h=function(e,t,r,n){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",r="",n="",o=t.indexOf("#");-1!==o&&(n=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(r=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===r?"":r,hash:"#"===n?"":n}}(e),o.state=t):(void 0===(o=p({},e)).pathname&&(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="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return r&&(o.key=r),n?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=(0,s.default)(o.pathname,n.pathname)):o.pathname=n.pathname:o.pathname||(o.pathname="/"),o};const m=function(){var e=null,t=[];return{setPrompt:function(t){return o()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,n,a){if(null!=e){var i="function"==typeof e?e(t,r):e;"string"==typeof i?"function"==typeof n?n(i,a):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!0)},appendListener:function(e){var r=!0,n=function(){r&&e.apply(void 0,arguments)};return t.push(n),function(){r=!1,t=t.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];t.forEach((function(e){return e.apply(void 0,r)}))}}};var g=!("undefined"==typeof window||!window.document||!window.document.createElement),y=function(e,t,r){return e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r)},v=function(e,t,r){return e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent("on"+t,r)},b=function(e,t){return t(window.confirm(e))},w=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},E=function(){return-1===window.navigator.userAgent.indexOf("Trident")},C=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_=Object.assign||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},x="popstate",N="hashchange",I=function(){try{return window.history.state||{}}catch(e){return{}}};const R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(g,"Browser history needs a DOM");var t=window.history,r=w(),n=!E(),a=e.forceRefresh,s=void 0!==a&&a,p=e.getUserConfirmation,R=void 0===p?b:p,S=e.keyLength,k=void 0===S?6:S,M=e.basename?d(c(e.basename)):"",P=function(e){var t=e||{},r=t.key,n=t.state,a=window.location,i=a.pathname+a.search+a.hash;return o()(!M||l(i,M),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+i+'" to begin with "'+M+'".'),M&&(i=u(i,M)),h(i,n,r)},A=function(){return Math.random().toString(36).substr(2,k)},T=m(),L=function(e){_(ee,e),ee.length=t.length,T.notifyListeners(ee.location,ee.action)},j=function(e){C(e)||U(P(e.state))},F=function(){U(P(I()))},B=!1,U=function(e){if(B)B=!1,L();else{T.confirmTransitionTo(e,"POP",R,(function(t){t?L({action:"POP",location:e}):z(e)}))}},z=function(e){var t=ee.location,r=H.indexOf(t.key);-1===r&&(r=0);var n=H.indexOf(e.key);-1===n&&(n=0);var o=r-n;o&&(B=!0,Q(o))},D=P(I()),H=[D.key],$=function(e){return M+f(e)},W=function(e,n){o()(!("object"===(void 0===e?"undefined":O(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var a="PUSH",i=h(e,n,A(),ee.location);T.confirmTransitionTo(i,a,R,(function(e){if(e){var n=$(i),c=i.key,l=i.state;if(r)if(t.pushState({key:c,state:l},null,n),s)window.location.href=n;else{var u=H.indexOf(ee.location.key),d=H.slice(0,-1===u?0:u+1);d.push(i.key),H=d,L({action:a,location:i})}else o()(void 0===l,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=n}}))},Y=function(e,n){o()(!("object"===(void 0===e?"undefined":O(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var a="REPLACE",i=h(e,n,A(),ee.location);T.confirmTransitionTo(i,a,R,(function(e){if(e){var n=$(i),c=i.key,l=i.state;if(r)if(t.replaceState({key:c,state:l},null,n),s)window.location.replace(n);else{var u=H.indexOf(ee.location.key);-1!==u&&(H[u]=i.key),L({action:a,location:i})}else o()(void 0===l,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(n)}}))},Q=function(e){t.go(e)},q=function(){return Q(-1)},V=function(){return Q(1)},G=0,K=function(e){1===(G+=e)?(y(window,x,j),n&&y(window,N,F)):0===G&&(v(window,x,j),n&&v(window,N,F))},X=!1,Z=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=T.setPrompt(e);return X||(K(1),X=!0),function(){return X&&(X=!1,K(-1)),t()}},J=function(e){var t=T.appendListener(e);return K(1),function(){K(-1),t()}},ee={length:t.length,action:"POP",location:D,createHref:$,push:W,replace:Y,go:Q,goBack:q,goForward:V,block:Z,listen:J};return ee};Object.assign;"function"==typeof Symbol&&Symbol.iterator,Object.assign},96425:(e,t,r)=>{var n=r(3118),o=r(9435);function a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}a.prototype=n(o.prototype),a.prototype.constructor=a,e.exports=a},7548:(e,t,r)=>{var n=r(3118),o=r(9435);function a(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}a.prototype=n(o.prototype),a.prototype.constructor=a,e.exports=a},9435:e=>{e.exports=function(){}},28045:e=>{e.exports=function(e){return e}},52157:e=>{var t=Math.max;e.exports=function(e,r,n,o){for(var a=-1,i=e.length,s=n.length,c=-1,l=r.length,u=t(i-s,0),d=Array(l+u),f=!o;++c<l;)d[c]=r[c];for(;++a<s;)(f||a<i)&&(d[n[a]]=e[a]);for(;u--;)d[c++]=e[a++];return d}},14054:e=>{var t=Math.max;e.exports=function(e,r,n,o){for(var a=-1,i=e.length,s=-1,c=n.length,l=-1,u=r.length,d=t(i-c,0),f=Array(d+u),p=!o;++a<d;)f[a]=e[a];for(var h=a;++l<u;)f[h+l]=r[l];for(;++s<c;)(p||a<i)&&(f[h+n[s]]=e[a++]);return f}},97991:e=>{e.exports=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}},22402:(e,t,r)=>{var n=r(71774),o=r(55639);e.exports=function(e,t,r){var a=1&t,i=n(e);return function t(){var n=this&&this!==o&&this instanceof t?i:e;return n.apply(a?r:this,arguments)}}},71774:(e,t,r)=>{var n=r(3118),o=r(13218);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=n(e.prototype),a=e.apply(r,t);return o(a)?a:r}}},46347:(e,t,r)=>{var n=r(96874),o=r(71774),a=r(86935),i=r(94487),s=r(20893),c=r(46460),l=r(55639);e.exports=function(e,t,r){var u=o(e);return function o(){for(var d=arguments.length,f=Array(d),p=d,h=s(o);p--;)f[p]=arguments[p];var m=d<3&&f[0]!==h&&f[d-1]!==h?[]:c(f,h);if((d-=m.length)<r)return i(e,t,a,o.placeholder,void 0,f,m,void 0,void 0,r-d);var g=this&&this!==l&&this instanceof o?u:e;return n(g,this,f)}}},23468:(e,t,r)=>{var n=r(7548),o=r(99021),a=r(66833),i=r(97658),s=r(1469),c=r(86528);e.exports=function(e){return o((function(t){var r=t.length,o=r,l=n.prototype.thru;for(e&&t.reverse();o--;){var u=t[o];if("function"!=typeof u)throw new TypeError("Expected a function");if(l&&!d&&"wrapper"==i(u))var d=new n([],!0)}for(o=d?o:r;++o<r;){u=t[o];var f=i(u),p="wrapper"==f?a(u):void 0;d=p&&c(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?d[i(p[0])].apply(d,p[3]):1==u.length&&c(u)?d[f]():d.thru(u)}return function(){var e=arguments,n=e[0];if(d&&1==e.length&&s(n))return d.plant(n).value();for(var o=0,a=r?t[o].apply(this,e):n;++o<r;)a=t[o].call(this,a);return a}}))}},86935:(e,t,r)=>{var n=r(52157),o=r(14054),a=r(97991),i=r(71774),s=r(94487),c=r(20893),l=r(90451),u=r(46460),d=r(55639);e.exports=function e(t,r,f,p,h,m,g,y,v,b){var w=128&r,E=1&r,C=2&r,O=24&r,_=512&r,x=C?void 0:i(t);return function N(){for(var I=arguments.length,R=Array(I),S=I;S--;)R[S]=arguments[S];if(O)var k=c(N),M=a(R,k);if(p&&(R=n(R,p,h,O)),m&&(R=o(R,m,g,O)),I-=M,O&&I<b){var P=u(R,k);return s(t,r,e,N.placeholder,f,R,P,y,v,b-I)}var A=E?f:this,T=C?A[t]:t;return I=R.length,y?R=l(R,y):_&&I>1&&R.reverse(),w&&v<I&&(R.length=v),this&&this!==d&&this instanceof N&&(T=x||i(T)),T.apply(A,R)}}},84375:(e,t,r)=>{var n=r(96874),o=r(71774),a=r(55639);e.exports=function(e,t,r,i){var s=1&t,c=o(e);return function t(){for(var o=-1,l=arguments.length,u=-1,d=i.length,f=Array(d+l),p=this&&this!==a&&this instanceof t?c:e;++u<d;)f[u]=i[u];for(;l--;)f[u++]=arguments[++o];return n(p,s?r:this,f)}}},94487:(e,t,r)=>{var n=r(86528),o=r(258),a=r(69255);e.exports=function(e,t,r,i,s,c,l,u,d,f){var p=8&t;t|=p?32:64,4&(t&=~(p?64:32))||(t&=-4);var h=[e,t,s,p?c:void 0,p?l:void 0,p?void 0:c,p?void 0:l,u,d,f],m=r.apply(void 0,h);return n(e)&&o(m,h),m.placeholder=i,a(m,e,t)}},97727:(e,t,r)=>{var n=r(28045),o=r(22402),a=r(46347),i=r(86935),s=r(84375),c=r(66833),l=r(63833),u=r(258),d=r(69255),f=r(40554),p=Math.max;e.exports=function(e,t,r,h,m,g,y,v){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var w=h?h.length:0;if(w||(t&=-97,h=m=void 0),y=void 0===y?y:p(f(y),0),v=void 0===v?v:f(v),w-=m?m.length:0,64&t){var E=h,C=m;h=m=void 0}var O=b?void 0:c(e),_=[e,t,r,h,m,E,C,g,y,v];if(O&&l(_,O),e=_[0],t=_[1],r=_[2],h=_[3],m=_[4],!(v=_[9]=void 0===_[9]?b?0:e.length:p(_[9]-w,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||16==t?a(e,t,v):32!=t&&33!=t||m.length?i.apply(void 0,_):s(e,t,r,h);else var x=o(e,t,r);return d((O?n:u)(x,_),e,t)}},66833:e=>{e.exports=function(){}},97658:(e,t,r)=>{var n=r(52060),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],a=o.call(n,t)?r.length:0;a--;){var i=r[a],s=i.func;if(null==s||s==e)return i.name}return t}},20893:e=>{e.exports=function(){}},86528:(e,t,r)=>{var n=r(96425),o=r(66833),a=r(97658),i=r(8111);e.exports=function(e){var t=a(e),r=i[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var s=o(r);return!!s&&e===s[0]}},63833:e=>{e.exports=function(e){return e}},52060:e=>{e.exports={}},90451:(e,t,r)=>{var n=r(278),o=r(65776),a=Math.min;e.exports=function(e,t){for(var r=e.length,i=a(t.length,r),s=n(e);i--;){var c=t[i];e[i]=o(c,r)?s[c]:void 0}return e}},46460:e=>{e.exports=function(){return[]}},258:e=>{e.exports=function(e){return e}},69255:e=>{e.exports=function(e){return e}},60169:(e,t,r)=>{var n=r(96425),o=r(7548),a=r(278);e.exports=function(e){if(e instanceof n)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},40087:(e,t,r)=>{var n=r(97727);function o(e,t,r){var a=n(e,8,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return a.placeholder=o.placeholder,a}o.placeholder={},e.exports=o},59242:(e,t,r)=>{var n=r(23468)();e.exports=n},8111:(e,t,r)=>{var n=r(96425),o=r(7548),a=r(9435),i=r(1469),s=r(37005),c=r(60169),l=Object.prototype.hasOwnProperty;function u(e){if(s(e)&&!i(e)&&!(e instanceof n)){if(e instanceof o)return e;if(l.call(e,"__wrapped__"))return c(e)}return new o(e)}u.prototype=a.prototype,u.prototype.constructor=u,e.exports=u},84059:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>N});var n,o=r(1024),a=r.n(o),i=Object.defineProperty,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,u=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&u(e,r,t[r]);if(s)for(var r of s(t))l.call(t,r)&&u(e,r,t[r]);return e},f=(e,t)=>{var r={};for(var n in e)c.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&s)for(var n of s(e))t.indexOf(n)<0&&l.call(e,n)&&(r[n]=e[n]);return r};(e=>{const t=class{constructor(e,r,n,o){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(n);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const r=this.getPenaltyScore();r<e&&(o=t,e=r),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(r,n){const o=e.QrSegment.makeSegments(r);return t.encodeSegments(o,n)}static encodeBinary(r,n){const o=e.QrSegment.makeBytes(r);return t.encodeSegments([o],n)}static encodeSegments(e,r,o=1,i=40,c=-1,l=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let u,d;for(u=o;;u++){const n=8*t.getNumDataCodewords(u,r),o=s.getTotalBits(e,u);if(o<=n){d=o;break}if(u>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=8*t.getNumDataCodewords(u,e)&&(r=e);let f=[];for(const t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(u),f);for(const e of t.getData())f.push(e)}a(f.length==d);const p=8*t.getNumDataCodewords(u,r);a(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),a(f.length%8==0);for(let e=236;f.length<p;e^=253)n(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(u,r,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let r=0;r<t;r++)for(let n=0;n<t;n++)0==r&&0==n||0==r&&n==t-1||r==t-1&&0==n||this.drawAlignmentPattern(e[r],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let r=t;for(let e=0;e<10;e++)r=r<<1^1335*(r>>>9);const n=21522^(t<<10|r);a(n>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(n,e));this.setFunctionModule(8,7,o(n,6)),this.setFunctionModule(8,8,o(n,7)),this.setFunctionModule(7,8,o(n,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(n,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(n,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(n,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const r=o(t,e),n=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(n,a,r),this.setFunctionModule(a,n,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){const o=Math.max(Math.abs(n),Math.abs(r)),a=e+n,i=t+r;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,1!=Math.max(Math.abs(n),Math.abs(r)))}setFunctionModule(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0}addEccAndInterleave(e){const r=this.version,n=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(r,n))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r],i=t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r],s=Math.floor(t.getNumRawDataModules(r)/8),c=o-s%o,l=Math.floor(s/o);let u=[];const d=t.reedSolomonComputeDivisor(i);for(let r=0,n=0;r<o;r++){let o=e.slice(n,n+l-i+(r<c?0:1));n+=o.length;const a=t.reedSolomonComputeRemainder(o,d);r<c&&o.push(0),u.push(o.concat(a))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach(((t,r)=>{(e!=l-i||r>=c)&&f.push(t[e])}));return a(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let n=0;n<this.size;n++)for(let a=0;a<2;a++){const i=t-a,s=0==(t+1&2)?this.size-1-n:n;!this.isFunction[s][i]&&r<8*e.length&&(this.modules[s][i]=o(e[r>>>3],7-(7&r)),r++)}}a(r==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let r=0;r<this.size;r++){let n;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let n=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[r][i]==n?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),n||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),n=this.modules[r][i],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,a)*t.PENALTY_N3}for(let r=0;r<this.size;r++){let n=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][r]==n?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),n||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),n=this.modules[i][r],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,a)*t.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let n=0;n<this.size-1;n++){const o=this.modules[r][n];o==this.modules[r][n+1]&&o==this.modules[r+1][n]&&o==this.modules[r+1][n+1]&&(e+=t.PENALTY_N2)}let r=0;for(const e of this.modules)r=e.reduce(((e,t)=>e+(t?1:0)),r);const n=this.size*this.size,o=Math.ceil(Math.abs(20*r-10*n)/n)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let r=[6];for(let n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return a(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let r=[];for(let t=0;t<e-1;t++)r.push(0);r.push(1);let n=1;for(let o=0;o<e;o++){for(let e=0;e<r.length;e++)r[e]=t.reedSolomonMultiply(r[e],n),e+1<r.length&&(r[e]^=r[e+1]);n=t.reedSolomonMultiply(n,2)}return r}static reedSolomonComputeRemainder(e,r){let n=r.map((e=>0));for(const o of e){const e=o^n.shift();n.push(0),r.forEach(((r,o)=>n[o]^=t.reedSolomonMultiply(r,e)))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^285*(r>>>7),r^=(t>>>n&1)*e;return a(r>>>8==0),r}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let r=t;function n(e,t,r){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}r.MIN_VERSION=1,r.MAX_VERSION=40,r.PENALTY_N1=3,r.PENALTY_N2=3,r.PENALTY_N3=40,r.PENALTY_N4=10,r.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],r.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=r;const i=class{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(e){let t=[];for(const r of e)n(r,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let r=0;r<e.length;){const o=Math.min(e.length-r,3);n(parseInt(e.substr(r,o),10),3*o+1,t),r+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,r=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),n(o,11,r)}return t<e.length&&n(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,r),new i(i.Mode.ALPHANUMERIC,e.length,r)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)n(e,8,t);else if(e<16384)n(2,2,t),n(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,t),n(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let r=0;for(const n of e){const e=n.mode.numCharCountBits(t);if(n.numChars>=1<<e)return 1/0;r+=4+e+n.bitData.length}return r}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let r=0;r<e.length;r++)"%"!=e.charAt(r)?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substr(r+1,2),16)),r+=2);return t}};let s=i;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(n||(n={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let r=t;r.LOW=new t(0,1),r.MEDIUM=new t(1,0),r.QUARTILE=new t(2,3),r.HIGH=new t(3,2),e.Ecc=r})(t=e.QrCode||(e.QrCode={}))})(n||(n={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let r=t;r.NUMERIC=new t(1,[10,12,14]),r.ALPHANUMERIC=new t(2,[9,11,13]),r.BYTE=new t(4,[8,16,16]),r.KANJI=new t(8,[8,10,12]),r.ECI=new t(7,[0,0,0]),e.Mode=r})(t=e.QrSegment||(e.QrSegment={}))})(n||(n={}));var p=n,h={L:p.QrCode.Ecc.LOW,M:p.QrCode.Ecc.MEDIUM,Q:p.QrCode.Ecc.QUARTILE,H:p.QrCode.Ecc.HIGH},m=128,g="L",y="#FFFFFF",v="#000000",b=!1;
2
+ /**
3
+ * @license qrcode.react
4
+ * Copyright (c) Paul O'Shannessy
5
+ * SPDX-License-Identifier: ISC
6
+ */function w(e,t=0){const r=[];return e.forEach((function(e,n){let o=null;e.forEach((function(a,i){if(!a&&null!==o)return r.push(`M${o+t} ${n+t}h${i-o}v1H${o+t}z`),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?r.push(`M${i+t},${n+t} h1v1H${i+t}z`):r.push(`M${o+t},${n+t} h${i+1-o}v1H${o+t}z`)}}))})),r.join("")}function E(e,t){return e.slice().map(((e,r)=>r<t.y||r>=t.y+t.h?e:e.map(((e,r)=>(r<t.x||r>=t.x+t.w)&&e))))}function C(e,t,r,n){if(null==n)return null;const o=r?4:0,a=e.length+2*o,i=Math.floor(.1*t),s=a/t,c=(n.width||i)*s,l=(n.height||i)*s,u=null==n.x?e.length/2-c/2:n.x*s,d=null==n.y?e.length/2-l/2:n.y*s;let f=null;if(n.excavate){let e=Math.floor(u),t=Math.floor(d);f={x:e,y:t,w:Math.ceil(c+u-e),h:Math.ceil(l+d-t)}}return{x:u,y:d,h:l,w:c,excavation:f}}var O=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function _(e){const t=e,{value:r,size:n=m,level:i=g,bgColor:s=y,fgColor:c=v,includeMargin:l=b,style:u,imageSettings:_}=t,x=f(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),N=null==_?void 0:_.src,I=(0,o.useRef)(null),R=(0,o.useRef)(null),[S,k]=(0,o.useState)(!1);(0,o.useEffect)((()=>{if(null!=I.current){const e=I.current,t=e.getContext("2d");if(!t)return;let o=p.QrCode.encodeText(r,h[i]).getModules();const a=l?4:0,u=o.length+2*a,d=C(o,n,l,_),f=R.current,m=null!=d&&null!==f&&f.complete&&0!==f.naturalHeight&&0!==f.naturalWidth;m&&null!=d.excavation&&(o=E(o,d.excavation));const g=window.devicePixelRatio||1;e.height=e.width=n*g;const y=n/u*g;t.scale(y,y),t.fillStyle=s,t.fillRect(0,0,u,u),t.fillStyle=c,O?t.fill(new Path2D(w(o,a))):o.forEach((function(e,r){e.forEach((function(e,n){e&&t.fillRect(n+a,r+a,1,1)}))})),m&&t.drawImage(f,d.x+a,d.y+a,d.w,d.h)}})),(0,o.useEffect)((()=>{k(!1)}),[N]);const M=d({height:n,width:n},u);let P=null;return null!=N&&(P=a().createElement("img",{src:N,key:N,style:{display:"none"},onLoad:()=>{k(!0)},ref:R})),a().createElement(a().Fragment,null,a().createElement("canvas",d({style:M,height:n,width:n,ref:I},x)),P)}function x(e){const t=e,{value:r,size:n=m,level:o=g,bgColor:i=y,fgColor:s=v,includeMargin:c=b,imageSettings:l}=t,u=f(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let O=p.QrCode.encodeText(r,h[o]).getModules();const _=c?4:0,x=O.length+2*_,N=C(O,n,c,l);let I=null;null!=l&&null!=N&&(null!=N.excavation&&(O=E(O,N.excavation)),I=a().createElement("image",{xlinkHref:l.src,height:N.h,width:N.w,x:N.x+_,y:N.y+_,preserveAspectRatio:"none"}));const R=w(O,_);return a().createElement("svg",d({height:n,width:n,viewBox:`0 0 ${x} ${x}`},u),a().createElement("path",{fill:i,d:`M0,0 h${x}v${x}H0z`,shapeRendering:"crispEdges"}),a().createElement("path",{fill:s,d:R,shapeRendering:"crispEdges"}),I)}var N=e=>{const t=e,{renderAs:r}=t,n=f(t,["renderAs"]);return"svg"===r?a().createElement(x,d({},n)):a().createElement(_,d({},n))}},17563:(e,t,r)=>{"use strict";const n=r(70610),o=r(44020),a=r(80500),i=r(92806),s=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"==typeof r&&r.includes(e.arrayFormatSeparator),a="string"==typeof r&&!o&&u(r,e).includes(e.arrayFormatSeparator);r=a?u(r,e):r;const i=o||a?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);n[t]=i};case"bracket-separator":return(t,r,n)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(n[t]=r?u(r,e):r);const a=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],a):n[t]=a};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;let[e,i]=a(t.decode?o.replace(/\+/g," "):o,"=");i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:u(i,t),r(u(e,t),i,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=h(r[e],t);else n[e]=h(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=d(r):e[t]=r,e}),Object.create(null))}t.extract=p,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[",o,"]"].join("")]:[...r,[l(t,e),"[",l(o,e),"]=",l(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[]"].join("")]:[...r,[l(t,e),"[]=",l(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),":list="].join("")]:[...r,[l(t,e),":list=",l(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[l(r,e),t,l(o,e)].join("")]:[[n,l(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,l(t,e)]:[...r,[l(t,e),"=",l(n,e)].join("")]}}(t),o={};for(const t of Object.keys(e))r(t)||(o[t]=e[t]);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map((r=>{const o=e[r];return void 0===o?"":null===o?l(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?l(r,t)+"[]":o.reduce(n(r),[]).join("&"):l(r,t)+"="+l(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=a(e,"#");return Object.assign({url:r.split("?")[0]||"",query:m(p(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[s]:!0},r);const n=f(e.url).split("?")[0]||"",o=t.extract(e.url),a=t.parse(o,{sort:!1}),i=Object.assign(a,e.query);let c=t.stringify(i,r);c&&(c=`?${c}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${r[s]?l(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${c}${u}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[s]:!1},n);const{url:o,query:a,fragmentIdentifier:c}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:i(a,r),fragmentIdentifier:c},n)},t.exclude=(e,r,n)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},36104:(e,t,r)=>{"use strict";var n=r(82637);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},9657:(e,t,r)=>{e.exports=r(36104)()},82637:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},14510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||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},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function a(e){return e&&e.__esModule?e:{default:e}}var i=r(1024),s=a(i),c=a(r(59479)),l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){for(var n=!0;n;){var o=e,a=t,i=r;n=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(i)}var l=Object.getPrototypeOf(o);if(null===l)return;e=l,t=a,r=i,n=!0,s=l=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={hover:!1}}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"getLineStyle",value:function(e){return n({position:"absolute",height:"20%",left:0,right:0,top:2*e*20+"%",opacity:this.state.hover?.6:1},this.state.hover&&this.props.styles.bmBurgerBarsHover)}},{key:"render",value:function(){var e=this,t=void 0;if(this.props.customIcon){var r={className:("bm-icon "+(this.props.customIcon.props.className||"")).trim(),style:n({width:"100%",height:"100%"},this.props.styles.bmIcon)};t=s.default.cloneElement(this.props.customIcon,r)}else t=s.default.createElement("span",null,[0,1,2].map((function(t){return s.default.createElement("span",{key:t,className:("bm-burger-bars "+e.props.barClassName+" "+(e.state.hover?"bm-burger-bars-hover":"")).trim(),style:n({},e.getLineStyle(t),e.props.styles.bmBurgerBars)})})));return s.default.createElement("div",{className:("bm-burger-button "+this.props.className).trim(),style:n({zIndex:1e3},this.props.styles.bmBurgerButton)},s.default.createElement("button",{type:"button",id:"react-burger-menu-btn",onClick:this.props.onClick,onMouseOver:function(){e.setState({hover:!0}),e.props.onIconHoverChange&&e.props.onIconHoverChange({isMouseIn:!0})},onMouseOut:function(){e.setState({hover:!1}),e.props.onIconHoverChange&&e.props.onIconHoverChange({isMouseIn:!1})},style:{position:"absolute",left:0,top:0,zIndex:1,width:"100%",height:"100%",margin:0,padding:0,border:"none",fontSize:0,background:"transparent",cursor:"pointer"}},"Open Menu"),t)}}]),t}(i.Component);t.default=l,l.propTypes={barClassName:c.default.string,customIcon:c.default.element,styles:c.default.object},l.defaultProps={barClassName:"",className:"",styles:{}},e.exports=t.default},75430:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||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},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function(e,t,r){for(var n=!0;n;){var o=e,a=t,i=r;n=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(i)}var l=Object.getPrototypeOf(o);if(null===l)return;e=l,t=a,r=i,n=!0,s=l=void 0}};function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=r(1024),l=i(c),u=i(r(59479)),d=function(e){function t(){s(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"getCrossStyle",value:function(e){return{position:"absolute",width:3,height:14,transform:"before"===e?"rotate(45deg)":"rotate(-45deg)"}}},{key:"render",value:function(){var e,t=this;if(this.props.customIcon){var r={className:("bm-cross "+(this.props.customIcon.props.className||"")).trim(),style:n({width:"100%",height:"100%"},this.props.styles.bmCross)};e=l.default.cloneElement(this.props.customIcon,r)}else e=l.default.createElement("span",{style:{position:"absolute",top:"6px",right:"14px"}},["before","after"].map((function(e,r){return l.default.createElement("span",{key:r,className:("bm-cross "+t.props.crossClassName).trim(),style:n({},t.getCrossStyle(e),t.props.styles.bmCross)})})));return l.default.createElement("div",{className:("bm-cross-button "+this.props.className).trim(),style:n({},{position:"absolute",width:24,height:24,right:8,top:8},this.props.styles.bmCrossButton)},l.default.createElement("button",{type:"button",id:"react-burger-cross-btn",onClick:this.props.onClick,style:{position:"absolute",left:0,top:0,zIndex:1,width:"100%",height:"100%",margin:0,padding:0,border:"none",fontSize:0,background:"transparent",cursor:"pointer"},tabIndex:this.props.isOpen?0:-1},"Close Menu"),e)}}]),t}(c.Component);t.default=d,d.propTypes={crossClassName:u.default.string,customIcon:u.default.element,isOpen:u.default.bool,styles:u.default.object},d.defaultProps={crossClassName:"",className:"",styles:{},isOpen:!1},e.exports=t.default},86661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={overlay:function(e){return{position:"fixed",zIndex:1e3,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.3)",opacity:e?1:0,MozTransform:e?"":"translate3d(100%, 0, 0)",MsTransform:e?"":"translate3d(100%, 0, 0)",OTransform:e?"":"translate3d(100%, 0, 0)",WebkitTransform:e?"":"translate3d(100%, 0, 0)",transform:e?"":"translate3d(100%, 0, 0)",transition:e?"opacity 0.3s":"opacity 0.3s, transform 0s 0.3s"}},menuWrap:function(e,t,r){return{position:"fixed",right:r?0:"inherit",zIndex:1100,width:t,height:"100%",MozTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:"all 0.5s"}},menu:function(){return{height:"100%",boxSizing:"border-box",overflow:"auto"}},itemList:function(){return{height:"100%"}},item:function(){return{display:"block"}}},e.exports=t.default},74660:(e,t)=>{"use strict";function r(){var e=Array.from(document.getElementsByClassName("bm-item")).shift();e&&e.focus()}function n(){var e=Array.from(document.getElementsByClassName("bm-item")).pop();e&&e.focus()}function o(){var e=document.getElementById("react-burger-cross-btn");e&&e.focus()}function a(e){if(document.activeElement.className.includes("bm-item")){var t=document.activeElement[e];t?t.focus():o()}else"previousElementSibling"===e?n():r()}Object.defineProperty(t,"__esModule",{value:!0}),t.focusOnFirstMenuItem=r,t.focusOnLastMenuItem=n,t.focusOnCrossButton=o,t.focusOnMenuButton=function(){var e=document.getElementById("react-burger-menu-btn");e&&e.focus()},t.focusOnMenuItem=a,t.focusOnNextMenuItem=function(){a("nextElementSibling")},t.focusOnPreviousMenuItem=function(){a("previousElementSibling")}},14126:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=Object.assign||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};function a(e){return e&&e.__esModule?e:{default:e}}var i=a(r(1024)),s=(a(r(30314)),a(r(59479))),c=a(r(86661)),l=r(74660),u=a(r(14510)),d=a(r(75430));t.default=function(e){if(!e)throw new Error("No styles supplied");var t="ArrowDown",r="ArrowUp";var a=function(a){var s,f,p=i.default.useState(!1),h=n(p,2),m=h[0],g=h[1],y=i.default.useRef(),v=i.default.useRef({}),b=(s=a.isOpen,f=i.default.useRef(s),i.default.useEffect((function(){f.current=s})),f.current);function w(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];v.current=e,x(),setTimeout((function(){g((function(t){return void 0!==e.isOpen?e.isOpen:!t}))}))}function E(){"function"==typeof a.onClose?a.onClose():w()}function C(e,t){var r=a.width,n=a.right;return e(m,"string"!=typeof r?r+"px":r,n,t)}function O(t,r,n){var i="bm"+t.replace(t.charAt(0),t.charAt(0).toUpperCase()),s=c.default[t]?C(c.default[t]):{};return e[t]&&(s=o({},s,C(e[t],r+1))),a.styles[i]&&(s=o({},s,a.styles[i])),n&&(s=o({},s,n)),a.noTransition&&delete s.transition,s}function _(e,t,r){var n=document.getElementById(e);if(n){var o=C(t);for(var i in o)o.hasOwnProperty(i)&&(n.style[i]=r?o[i]:"");var s=function(e){return e.style["overflow-x"]=r?"hidden":""};a.htmlClassName||s(document.querySelector("html")),a.bodyClassName||s(document.querySelector("body"))}else console.error("Element with ID '"+e+"' not found")}function x(){var t=arguments.length<=0||void 0===arguments[0]||arguments[0],r=function(e,r){return e.classList[t?"add":"remove"](r)};a.htmlClassName&&r(document.querySelector("html"),a.htmlClassName),a.bodyClassName&&r(document.querySelector("body"),a.bodyClassName),e.pageWrap&&a.pageWrapId&&_(a.pageWrapId,e.pageWrap,t),e.outerContainer&&a.outerContainerId&&_(a.outerContainerId,e.outerContainer,t);var n=document.querySelector(".bm-menu-wrap");n&&(t?n.removeAttribute("hidden"):n.setAttribute("hidden",!0))}function N(){y.current&&clearTimeout(y.current)}function I(e){switch((e=e||window.event).key){case"Escape":a.disableCloseOnEsc||(E(),(0,l.focusOnMenuButton)());break;case t:(0,l.focusOnNextMenuItem)();break;case r:(0,l.focusOnPreviousMenuItem)();break;case"Home":(0,l.focusOnFirstMenuItem)();break;case"End":(0,l.focusOnLastMenuItem)()}}function R(e){if((e=e||window.event).target===document.getElementById("react-burger-menu-btn"))switch(e.key){case t:case" ":w();break;case r:w({focusOnLastItem:!0})}}return i.default.useEffect((function(){return a.isOpen&&w({isOpen:!0,noStateChange:!0}),function(){x(!1),N()}}),[]),i.default.useEffect((function(){var t,r;void 0!==a.isOpen&&a.isOpen!==m&&a.isOpen!==b?w():e.svg&&(t=document.getElementById("bm-morph-shape"),r=e.svg.lib(t).select("path"),m?e.svg.animate(r):setTimeout((function(){r.attr("d",e.svg.pathInitial)}),300))})),i.default.useEffect((function(){var e=v.current,t=e.noStateChange,r=e.focusOnLastItem;t||a.onStateChange({isOpen:m}),a.disableAutoFocus||(m?r?(0,l.focusOnLastMenuItem)():(0,l.focusOnFirstMenuItem)():document.activeElement?document.activeElement.blur():document.body.blur()),N(),y.current=setTimeout((function(){y.current=null,m||x(!1)}),500);var n=m?I:R,o=a.customOnKeyDown||n;return window.addEventListener("keydown",o),function(){window.removeEventListener("keydown",o)}}),[m]),i.default.createElement("div",null,!a.noOverlay&&i.default.createElement("div",{className:("bm-overlay "+a.overlayClassName).trim(),onClick:function(){!0===a.disableOverlayClick||"function"==typeof a.disableOverlayClick&&a.disableOverlayClick()||E()},style:O("overlay")}),!1!==a.customBurgerIcon&&i.default.createElement("div",{style:O("burgerIcon")},i.default.createElement(u.default,{onClick:function(){"function"==typeof a.onOpen?a.onOpen():w()},styles:a.styles,customIcon:a.customBurgerIcon,className:a.burgerButtonClassName,barClassName:a.burgerBarClassName,onIconStateChange:a.onIconStateChange})),i.default.createElement("div",{id:a.id,className:("bm-menu-wrap "+a.className).trim(),style:O("menuWrap"),"aria-hidden":!m},e.svg&&i.default.createElement("div",{id:"bm-morph-shape",className:("bm-morph-shape "+a.morphShapeClassName).trim(),style:O("morphShape")},i.default.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 100 800",preserveAspectRatio:"none"},i.default.createElement("path",{d:e.svg.pathInitial}))),i.default.createElement("div",{className:("bm-menu "+a.menuClassName).trim(),style:O("menu")},i.default.createElement(a.itemListElement,{className:("bm-item-list "+a.itemListClassName).trim(),style:O("itemList")},i.default.Children.map(a.children,(function(e,t){if(e){var r={key:t,className:["bm-item",a.itemClassName,e.props.className].filter((function(e){return!!e})).join(" "),style:O("item",t,e.props.style),tabIndex:m?0:-1};return i.default.cloneElement(e,r)}})))),!1!==a.customCrossIcon&&i.default.createElement("div",{style:O("closeButton")},i.default.createElement(d.default,{onClick:E,styles:a.styles,customIcon:a.customCrossIcon,className:a.crossButtonClassName,crossClassName:a.crossClassName,isOpen:m}))))};return a.propTypes={bodyClassName:s.default.string,burgerBarClassName:s.default.string,burgerButtonClassName:s.default.string,className:s.default.string,crossButtonClassName:s.default.string,crossClassName:s.default.string,customBurgerIcon:s.default.oneOfType([s.default.element,s.default.oneOf([!1])]),customCrossIcon:s.default.oneOfType([s.default.element,s.default.oneOf([!1])]),customOnKeyDown:s.default.func,disableAutoFocus:s.default.bool,disableCloseOnEsc:s.default.bool,disableOverlayClick:s.default.oneOfType([s.default.bool,s.default.func]),htmlClassName:s.default.string,id:s.default.string,isOpen:s.default.bool,itemClassName:s.default.string,itemListClassName:s.default.string,itemListElement:s.default.oneOf(["div","nav"]),menuClassName:s.default.string,morphShapeClassName:s.default.string,noOverlay:s.default.bool,noTransition:s.default.bool,onClose:s.default.func,onIconHoverChange:s.default.func,onOpen:s.default.func,onStateChange:s.default.func,outerContainerId:e&&e.outerContainer?s.default.string.isRequired:s.default.string,overlayClassName:s.default.string,pageWrapId:e&&e.pageWrap?s.default.string.isRequired:s.default.string,right:s.default.bool,styles:s.default.object,width:s.default.oneOfType([s.default.number,s.default.string])},a.defaultProps={bodyClassName:"",burgerBarClassName:"",burgerButtonClassName:"",className:"",crossButtonClassName:"",crossClassName:"",disableAutoFocus:!1,disableCloseOnEsc:!1,htmlClassName:"",id:"",itemClassName:"",itemListClassName:"",menuClassName:"",morphShapeClassName:"",noOverlay:!1,noTransition:!1,onStateChange:function(){},outerContainerId:"",overlayClassName:"",pageWrapId:"",styles:{},width:300,onIconHoverChange:function(){},itemListElement:"nav"},a},e.exports=t.default},66432:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(14126),a=(n=o)&&n.__esModule?n:{default:n};t.default=(0,a.default)({}),e.exports=t.default},6830:(e,t,r)=>{"use strict";var n=r(41838);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},59479:(e,t,r)=>{e.exports=r(6830)()},41838:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},77678:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E});var n=r(1024),o=r.n(n),a=r(99860),i=r.n(a);function s(){return s=Object.assign||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},s.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(e){var t,r;function n(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(c(t)),t.handleErrored=t.handleErrored.bind(c(t)),t.handleChange=t.handleChange.bind(c(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(c(t)),t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},a.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var e=this;return new Promise((function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()}))},a.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},a.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},a.handleRecaptchaRef=function(e){this.captcha=e},a.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return o().createElement("div",s({},t,{ref:this.handleRecaptchaRef}))},n}(o().Component);l.displayName="ReCAPTCHA",l.propTypes={sitekey:i().string.isRequired,onChange:i().func,grecaptcha:i().object,theme:i().oneOf(["dark","light"]),type:i().oneOf(["image","audio"]),tabindex:i().number,onExpired:i().func,onErrored:i().func,size:i().oneOf(["compact","normal","invisible"]),stoken:i().string,hl:i().string,badge:i().oneOf(["bottomright","bottomleft","inline"])},l.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var u=r(9657),d=r.n(u),f=r(8679),p=r.n(f);function h(){return h=Object.assign||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},h.apply(this,arguments)}var m={},g=0;var y="onloadcallback";const v=(b=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+y+"&render=explicit"},w=(w={callbackName:y,globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",r=function(t){var r,o;function a(e,r){var n;return(n=t.call(this,e,r)||this).state={},n.__scriptURL="",n}o=t,(r=a).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var i=a.prototype;return i.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+g++),this.__scriptLoaderID},i.setupScriptURL=function(){return this.__scriptURL="function"==typeof b?b():b,this.__scriptURL},i.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},i.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=m[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[w.callbackName]},i.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=w,o=n.globalName,a=n.callbackName,i=n.scriptId;if(o&&void 0!==window[o]&&(m[t]={loaded:!0,observers:{}}),m[t]){var s=m[t];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var c={};c[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},m[t]={loaded:!1,observers:c};var l=document.createElement("script");for(var u in l.src=t,l.async=!0,w.attributes)l.setAttribute(u,w.attributes[u]);i&&(l.id=i);var d=function(e){if(m[t]){var r=m[t].observers;for(var n in r)e(r[n])&&delete r[n]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),l.onload=function(){var e=m[t];e&&(e.loaded=!0,d((function(t){return!a&&(t(e),!0)})))},l.onerror=function(){var e=m[t];e&&(e.errored=!0,d((function(t){return t(e),!0})))},document.body.appendChild(l)},i.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===w.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=m[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===w.removeOnUnmount&&delete m[e])},i.render=function(){var t=w.globalName,r=this.props,o=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(a[t]=void 0!==window[t]?window[t]:void 0),a.ref=o,(0,n.createElement)(e,a)},a}(n.Component),o=(0,n.forwardRef)((function(e,t){return(0,n.createElement)(r,h({},e,{forwardedRef:t}))}));return o.displayName="AsyncScriptLoader("+t+")",o.propTypes={asyncScriptOnLoad:d().func},p()(o,e)})(l);var b,w;const E=v},93485:(e,t,r)=>{"use strict";var n=r(34072);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},99860:(e,t,r)=>{e.exports=r(93485)()},34072:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},80500:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},70610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[183],{73183:(e,t,n)=>{n.r(t),n.d(t,{app:()=>Wn,chooseDocument:()=>ot.Z,default:()=>Hn});var r=n(59713),o=n.n(r),a=n(52540),i=n(45697),c=n.n(i),s=n(50600),u=n(55954),l=n(44448),d=n(22731),f=n(19743),p=n(45430),h=n(27023),m=n(81749),y=n(13025),v=n(36498),g=n(65378),b=n(23369),w=n(1024),O=n.n(w),x=n(79311),P=n(1317),j=n(74806),S=n(50558),E="docs/create/OPEN_DIALOG",A="docs/create/FILES_SELECTED",C="docs/path/LOAD_BREADCRUMBS",k="docs/path/SET_BREADCRUMBS",Z="docs/path/SET_SEARCH_MODE",D=function(e){return{type:k,payload:{breadcrumbs:e}}},F=n(20247),N=n(63038),L=n.n(N),T=n(29441),R=/^\/docs\/?$/;const _=function(e){return R.test(e)};var M=n(58804),I=n(2977),U=n(88601),B=n(85893);function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const W=(0,M.Zz)((function(e){var t=e.embedded,n=e.resetSearchMode,r=e.theme,o=e.pathPrefix,a=e.breadcrumbsInfo;return(0,B.jsx)(I.Z,H(H({},t?{backgroundColor:U.Z.color("paper")({theme:r})}:{}),{},{onClick:function(e){""===e.path&&n()},pathPrefix:o,breadcrumbsInfo:a}))}));function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var V=function(e){return(0,B.jsx)("span",q({},e))};const Y=(0,M.Zz)((function(e){var t=e.embedded,n=e.navigate,r=e.resetSearchMode,o=e.theme,a=e.pathPrefix,i=e.breadcrumbsInfo;return(0,B.jsx)(I.Z,q(q({},t?{backgroundColor:U.Z.color("paper")({theme:o})}:{}),{},{onClick:function(e){""===e.path&&r(),n("/docs/".concat(e.path))},linkComp:V,pathPrefix:a,breadcrumbsInfo:i}))}));var G={},K=function(e){return{pathPrefix:"/docs",breadcrumbsInfo:e.docs.path.breadcrumbs,embedded:e.input.embedded}},X=(0,S.connect)(K,G)((0,j.ZP)(W)),J=(0,S.connect)(K,G)((0,j.ZP)(Y));const Q=(0,F.U)({routerless:J,router:X});var ee="docs/list/CHANGE_LIST_PARENT",te="docs/list/CHANGE_SELECTION",ne="docs/list/CHANGE_SEARCH_FORM_COLLAPSED",re=n(50258),oe=n(88162),ae={"dms-create-folder":(0,w.lazy)((function(){return Promise.all([n.e(741),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,36340))})),"dms-create-domain":(0,w.lazy)((function(){return Promise.all([n.e(741),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,67210))})),"dms-edit":(0,w.lazy)((function(){return Promise.all([n.e(741),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,90100))})),"dms-move":(0,w.lazy)((function(){return Promise.all([n.e(741),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,4505))})),delete:(0,w.lazy)((function(){return Promise.all([n.e(741),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,96954))}))};const ie=l.Z.actionFactory(ae);var ce=n(35997);function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const ue=function(e){var t=e.instanceCount,n=e.directory,r=e.onChange,a=e.path,i=(0,w.useRef)(),c=ce.Z.usePrevious(t);(0,w.useEffect)((function(){i.current&&t>c&&i.current.click()}));return(0,B.jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:"file",ref:i,style:{display:"none"},onChange:function(e){var t=e.target.files;t&&t.length>0&&r&&r(a,t,n),e.target.value=null},multiple:!0},n?{webkitdirectory:"true",directory:"true"}:{}))};var le={onChange:function(e,t,n){return{type:A,payload:{location:e,files:t,isDirectory:n}}}};const de=(0,F.U)((0,S.connect)((function(e){return{instanceCount:e.docs.create.dialog.instanceCount,directory:e.docs.create.dialog.directory}}),le)(ue));var fe,pe,he,me,ye=n(28655),ve=n.n(ye),ge=n(7281),be=M.ZP.div.withConfig({displayName:"StyledContentWrapper"})(fe||(fe=ve()(["\n display: flex;\n align-items: center;\n"]))),we=M.ZP.span.withConfig({displayName:"StyledIconWrapper"})(pe||(pe=ve()(["\n font-size: ",";\n display: inline-block;\n margin-right: ",";\n"])),ge.Z.font(1),ge.Z.space(-2)),Oe=O().lazy((function(){return Promise.all([n.e(741),n.e(614),n.e(85)]).then(n.bind(n,77840))}));const xe=function(e){var t=e.domainTypes,n=e.rootNodes,r=e.navigationStrategy,o=e.changeListParent,a=e.onSearchChange,i=e.emitAction,c=e.openFileDialog,s=e.limit,u=e.searchFormType,l=e.selectionStyle,d=e.selection,f=e.selectionFilterFn,p=e.getCustomLocation,h=e.disableViewPersistor,m=e.getListFormName,y=e.domainDetailFormName,v=e.folderDetailFormName,g=e.showActions,b=e.scrollBehaviour,O=e.sortable,x=e.searchMode,P=e.openResource,j=e.searchFormCollapsed,S=e.locale,E=e.changeSelection,A=e.changeSearchFormCollapsed,C=e.params,k=e.navigate,Z=e.path,D=(0,w.useReducer)((function(e){return e+1}),0),F=L()(D,2),N=F[0],R=F[1],M="entity-list-".concat(N),I=(0,w.useState)([]),U=L()(I,2),z=U[0],H=U[1],W=d||z,$=(0,w.useMemo)((function(){return function(e){if(e&&e.model){var t=e.model.charAt(0).toUpperCase()+e.model.slice(1),n=e.key;return{model:"Docs_list_item",key:"".concat(t,"/").concat(n)}}return null}(C)}),[C]),q=!$&&n?n.map((function(e){return"".concat(e.entityName,"/").concat(e.key)})):null,V=(0,w.useMemo)((function(){return m?m($,q):function(e,t){return e?"Docs_list_item":t?"Root_docs_list_item_specific":"Root_docs_list_item"}($,q)}),[$,q,m]),Y=(0,w.useRef)(!1),G=(0,w.useRef)(x),K=(0,w.useRef)(Z);G.current=x,K.current=Z,(0,w.useEffect)((function(){return Y.current=!0,function(){return Y.current=!1}})),(0,w.useEffect)((function(){o($),H([])}),[$,o]);var X=function(e){H(e),E(e)},J=function(){if(!T.Z.viewInfoSelector("search").store){var e=T.Z.viewInfoSelector(M).store;T.Z.persistViewInfo("search",{store:e})}R()},Q=$||q?null:function(e){return Array.isArray(e)&&e.length>0?"exists(relDomain_type where IN(unique_id, ".concat(e.map((function(e){return'"'.concat(e,'"')})).join(","),"))"):null}(t),ee=function(){if(!h)return _(Z)?T.Z.viewInfoSelector("search").store:null}();return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(w.Suspense,{fallback:he||(he=(0,B.jsx)(re.Z,{})),children:(0,B.jsx)(Oe,{id:"documents",entityName:"Docs_list_item",formName:V,searchListFormName:"Search_docs_list_item",limit:s||25,onRowClick:function(e){var t=e.id;x&&_(Z)&&J();var n=t.split("/"),r=L()(n,2),o=r[0],a=r[1],i=p?p(o,a):function(e,t){switch(e){case"Domain":return"/docs/domain/".concat(t,"/list");case"Folder":return"/docs/folder/".concat(t,"/list");case"Resource":return"/docs/doc/".concat(t,"/detail");default:throw new Error("Unexpected model: ".concat(e))}}(o,a);i?P&&"Resource"===o?P(i):k(i):X([t])},searchFormPosition:"left",searchFormType:u||"admin",parent:$,onSearchChange:function(e){Y.current&&(e.query&&e.query.hasUserChanges&&J(),a(e))},store:ee,onStoreCreate:function(e){h||T.Z.persistViewInfo(M,{store:e})},cellRenderers:{"dms-label-with-icon":function(e,t,n){return(0,B.jsxs)(be,{children:[(0,B.jsx)(we,{children:(0,B.jsx)(oe.Z,{icon:e.icon})}),(0,B.jsx)("span",{children:n(t.children[0])})]})},"dms-actions":function(e,t,n){return(0,B.jsx)(be,{children:t.children.filter((function(t){return!t.dmsEntityModel||t.dmsEntityModel===e.type})).map((function(e){return n(e)}))})}},emitAction:i,actionAppComponent:ie,contextParams:{detailFormNames:{Domain:y,Folder:v}},customActions:{"upload-document":function(e,t,n,r,o,a,i){c(!1,a,i)},"upload-directory":function(e,t,n,r,o,a,i){c(!0,a,i)}},navigationStrategy:r,tql:Q,keys:q,selectionStyle:l||"multi_explicit",onSelectChange:X,selection:W,selectionFilterFn:f,showActions:g,sortable:O,searchFormCollapsed:j,scrollBehaviour:b,onSearchFormCollapsedChange:A,locale:S},M)}),me||(me=(0,B.jsx)(de,{}))]})};var Pe={changeListParent:function(e){return{type:ee,payload:{parent:e}}},changeSelection:function(e){return{type:te,payload:{selection:e}}},changeSearchFormCollapsed:function(e){return{type:ne,payload:{collapsed:e}}}};const je=(0,F.U)((0,S.connect)((function(e){return{domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,limit:e.input.listLimit,searchFormType:e.input.searchFormType,selectionStyle:e.input.selectionStyle,selectionFilterFn:e.input.selectionFilterFn,getCustomLocation:e.input.getCustomLocation,disableViewPersistor:e.input.disableViewPersistor,getListFormName:e.input.getListFormName,domainDetailFormName:e.input.domainDetailFormName,folderDetailFormName:e.input.folderDetailFormName,showActions:e.input.showActions,sortable:e.input.sortable,openResource:e.input.openResource,searchFormCollapsed:e.input.searchFormCollapsed,scrollBehaviour:e.input.scrollBehaviour,selection:e.input.selection,locale:e.intl.locale}}),Pe)((0,j.ZP)(xe)));var Se,Ee,Ae=M.ZP.div.withConfig({displayName:"StyledDocumentViewWrapper"})(Se||(Se=ve()(["\n height: 100%;\n background-color: ",";\n padding-left: ",";\n overflow-y: hidden;\n"])),U.Z.color("paper"),ge.Z.space(.5)),Ce=O().lazy((function(){return Promise.all([n.e(741),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,82445))}));const ke=function(e){var t=e.breadcrumbs,n=e.formName,r=e.navigationStrategy,o=e.locale,a=e.emitAction,i=e.navigate,c=e.params;return(0,B.jsx)(Ae,{children:(0,B.jsx)(w.Suspense,{fallback:Ee||(Ee=(0,B.jsx)(re.Z,{})),children:(0,B.jsx)(Ce,{entityName:"Resource",entityId:c.key,formName:n||"DmsResource",mode:"update",actionAppComponent:ie,navigationStrategy:r,emitAction:a,onEntityDeleted:function(){var e=t.slice().reverse().find((function(e){return"list"===e.type})),n="/docs/".concat(e.path);i(n)},locale:o})})})};var Ze={emitAction:function(e){return s.Z.dispatchEmittedAction(e)}};const De=(0,F.U)((0,S.connect)((function(e){return{breadcrumbs:e.docs.path.breadcrumbs,formName:e.input.documentDetailFormName,locale:e.intl.locale}}),Ze)((0,j.ZP)(ke)));const Fe=function(e){var t=e.params,n=e.navigationStrategy,r=e.handleSearchChange,o=e.emitAction,a=e.openFileDialog,i=e.searchMode,c=e.docsKey,s=t.model,u=t.view;return"doc"===s&&"detail"===u?(0,B.jsx)(De,{navigationStrategy:n}):(0,B.jsx)(je,{navigationStrategy:n,onSearchChange:r,emitAction:o,openFileDialog:a,searchMode:i},c)};var Ne=n(99752);const Le=function(e){var t,n,r=e.navigationStrategy,o=e.handleSearchChange,a=e.emitAction,i=e.openFileDialog,c=e.searchMode,s=e.docsKey;return(0,B.jsxs)(Ne.rs,{children:[(0,B.jsx)(Ne.AW,{exact:!0,path:"/docs/doc/:key/detail",render:function(){return t||(t=(0,B.jsx)(De,{navigationStrategy:r}))}}),(0,B.jsx)(Ne.AW,{exact:!0,path:["/docs/:model/:key/list","/docs"],render:function(){return n||(n=(0,B.jsx)(je,{navigationStrategy:r,onSearchChange:o,emitAction:a,openFileDialog:i,searchMode:c},s))}})]})},Te=(0,F.U)({routerless:Fe,router:Le});var Re,_e,Me,Ie=n(11347),Ue=M.ZP.div.withConfig({displayName:"StyledWrapper"})(Re||(Re=ve()(["\n display: grid;\n grid-template-rows: auto 1fr;\n grid-template-areas:\n 'breadcrumbs'\n 'content';\n ","\n width: 100%;\n"])),(function(e){return"inline"===e.scrollBehaviour&&"height: 100%;"})),Be=M.ZP.div.withConfig({displayName:"StyledContent"})(_e||(_e=ve()(["\n grid-area: content;\n ","\n ","\n"])),(function(e){return"inline"===e.scrollBehaviour&&"overflow-x: hidden;"}),Ie.C),ze=M.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(Me||(Me=ve()(["\n grid-area: breadcrumbs;\n ","\n"])),(function(e){return e.noLeftPadding&&"\n > div {\n padding-left: 0;\n }\n "}));const He=function(e){var t=e.navigate,n=e.path,r=e.searchMode,o=e.navigationStrategy,a=e.setSearchMode,i=e.loadBreadcrumbs,c=e.emitAction,s=e.openFileDialog,u=e.noLeftPadding,l=e.scrollBehaviour,d=e.listenHistory,p=(0,w.useReducer)((function(e){return e+1}),0),h=L()(p,2),m=h[0],y=h[1],v=(0,w.useRef)(r);v.current=r,(0,w.useEffect)((function(){i(n)})),(0,w.useEffect)((function(){return d((function(e,t){_(n)&&r&&"POP"===t&&g()}))}));var g=function(){v.current&&(T.Z.clearPersistedViews(),a(!1),i(n),y())},b="docs-view-".concat(m);return(0,B.jsxs)(Ue,{scrollBehaviour:l,children:[(0,B.jsx)(f.Z.ErrorBoundary,{children:(0,B.jsx)(ze,{noLeftPadding:u,children:(0,B.jsx)(Q,{resetSearchMode:g})})}),(0,B.jsx)(Be,{scrollBehaviour:l,children:(0,B.jsx)(Te,{navigationStrategy:o,handleSearchChange:function(e){e.query&&e.query.hasUserChanges?(a(!0),t("/docs/"),i(n)):_(n)&&g()},emitAction:c,openFileDialog:s,searchMode:r,docsKey:b})})]})};var We={loadBreadcrumbs:function(e){return{type:C,payload:{location:e}}},setSearchMode:function(e){return{type:Z,payload:{searchMode:e}}},emitAction:function(e){return s.Z.dispatchEmittedAction(e)},openFileDialog:function(e,t,n){return{type:E,payload:{directory:e,onSuccess:t,onError:n}}}};const $e=(0,F.U)((0,S.connect)((function(e){return{searchMode:e.docs.path.searchMode,navigationStrategy:e.input.navigationStrategy,noLeftPadding:e.input.noLeftPadding,scrollBehaviour:e.input.scrollBehaviour}}),We)((0,j.ZP)(He)));var qe,Ve,Ye;const Ge=(0,P.w)((function(e){var t=e.handleNotifications,n=e.rootPath,r=e.navigate,o=e.path;return(0,w.useEffect)((function(){(!o||"/"===o||"/docs"===o)&&n!==o&&r(n)}),[n,o,r]),(0,B.jsxs)(B.Fragment,{children:[t&&(qe||(qe=(0,B.jsx)(h.Z.Notifications,{}))),Ve||(Ve=(0,B.jsx)(x.Z,{})),Ye||(Ye=(0,B.jsx)($e,{}))]})}));var Ke,Xe,Je;const Qe=function(e){var t=e.rootPath,n=e.handleNotifications;return(0,B.jsxs)(B.Fragment,{children:[n&&(Ke||(Ke=(0,B.jsx)(h.Z.Notifications,{}))),Xe||(Xe=(0,B.jsx)(x.Z,{})),Je||(Je=(0,B.jsx)($e,{})),(0,B.jsx)(Ne.AW,{exact:!0,path:"/",children:(0,B.jsx)(Ne.l_,{to:t})}),"/docs"!==t&&(0,B.jsx)(Ne.AW,{exact:!0,path:"/docs",children:(0,B.jsx)(Ne.l_,{to:t})})]})};var et,tt,nt;const rt=function(e){var t=e.rootPath,n=e.handleNotifications,r=e.history;return(0,B.jsxs)(Ne.F0,{history:r,children:[n&&(et||(et=(0,B.jsx)(h.Z.Notifications,{}))),tt||(tt=(0,B.jsx)(x.Z,{})),nt||(nt=(0,B.jsx)($e,{})),(0,B.jsx)(Ne.AW,{exact:!0,path:"/",children:(0,B.jsx)(Ne.l_,{to:t})}),"/docs"!==t&&(0,B.jsx)(Ne.AW,{exact:!0,path:"/docs",children:(0,B.jsx)(Ne.l_,{to:t})})]})};var ot=n(91073),at=n(15857),it=n(87757),ct=n.n(it),st=n(34857);function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dt=o()({},E,(function(e,t){var n=t.payload,r=n.directory,o=n.onSuccess,a=n.onError;return lt(lt({},e),{},{dialog:{instanceCount:e.dialog.instanceCount+1,directory:r,onSuccess:o,onError:a}})})),ft={dialog:{instanceCount:0,directory:!1,onSuccess:null,onError:null}};var pt=n(63094),ht=n(44759),mt=n(28721),yt=n(80722);function vt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bt=ct().mark(jt),wt=ct().mark(St),Ot=ct().mark(Et),xt=function(e){return e.docs.create.dialog},Pt=function(e,t){return e.intl.messages[t]};function jt(e){var t,n,r,o,a,i,c,s,u,l,d,f;return ct().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:return t=e.payload,n=t.location,r=t.files,o=t.isDirectory,p.next=3,(0,st.RE)(mt.Z);case 3:return a=p.sent,i="client.docs-browser.uploadInProgress",o?i="client.docs-browser.uploadInProgressDirectory":r.length>1&&(i="client.docs-browser.uploadInProgressMultiple"),p.next=8,(0,st.gz)(h.Z.blockingInfo(a,i,null));case 8:return p.next=10,(0,st.Ys)(xt);case 10:return c=p.sent,s=c.onSuccess,u=c.onError,p.prev=13,p.next=16,(0,st.RE)(St,n,r);case 16:if(403!==(l=p.sent).status){p.next=31;break}return p.next=20,(0,st.gz)(h.Z.removeBlockingInfo(a));case 20:return p.t0=u,p.next=23,(0,st.Ys)(Pt,"client.entity-detail.saveAbortedTitle");case 23:return p.t1=p.sent,p.next=26,(0,st.Ys)(Pt,"client.docs-browser.failedNoPermission");case 26:p.t2=p.sent,p.t3={title:p.t1,message:p.t2},(0,p.t0)(p.t3),p.next=42;break;case 31:return d=[{type:"entity-create-event",payload:{entities:l.body.items.filter((function(e){return 201===e.status})).map((function(e){return{entityName:e.bean.model,key:e.bean.key}}))}}],p.next=34,(0,st.gz)(h.Z.removeBlockingInfo(a));case 34:return f=o?"client.docs-browser.uploadSuccessfulDirectory":"client.docs-browser.uploadSuccessful",p.t4=s,p.next=38,(0,st.Ys)(Pt,f);case 38:p.t5=p.sent,p.t6=d,p.t7={title:p.t5,remoteEvents:p.t6},(0,p.t4)(p.t7);case 42:p.next=55;break;case 44:return p.prev=44,p.t8=p.catch(13),ht.Z.logError("Failed to upload files",p.t8),p.next=49,(0,st.gz)(h.Z.removeBlockingInfo(a));case 49:return p.t9=u,p.next=52,(0,st.Ys)(Pt,"client.docs-browser.uploadFailed");case 52:p.t10=p.sent,p.t11={title:p.t10},(0,p.t9)(p.t11);case 55:case"end":return p.stop()}}),bt,null,[[13,44]])}function St(e,t){var n,r,o,a,i,c,s;return ct().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(n=(0,yt.Z)(e)){u.next=3;break}return u.abrupt("return");case 3:r=new FormData,o=vt(t);try{for(o.s();!(a=o.n()).done;)i=a.value,r.append("files[]",i)}catch(e){o.e(e)}finally{o.f()}return c="documents/".concat(n.model,"/").concat(n.key),s={method:"POST",body:r,acceptedStatusCodes:[403]},u.next=10,(0,st.RE)(pt.Z.requestSaga,c,s);case 10:return u.abrupt("return",u.sent);case 11:case"end":return u.stop()}}),wt)}function Et(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.ib)(A,jt)]);case 2:case"end":return e.stop()}}),Ot)}var At=ct().mark(Ct);function Ct(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.rM)(Et)]);case 2:case"end":return e.stop()}}),At)}const kt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ft,t=arguments.length>1?arguments[1]:void 0,n=dt[t.type];return n?n(e,t):e};var Zt=ct().mark(Lt),Dt=ct().mark(Tt),Ft=ct().mark(Rt),Nt=ct().mark(_t);function Lt(e){var t;return ct().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,st.gz)(p.Z.fireExternalEvent("onListParentChange",t.parent));case 3:case"end":return n.stop()}}),Zt)}function Tt(e){var t;return ct().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,st.gz)(p.Z.fireExternalEvent("onSelectChange",t.selection));case 3:case"end":return n.stop()}}),Dt)}function Rt(e){var t;return ct().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,st.gz)(p.Z.fireExternalEvent("onSearchFormCollapsedChange",t.collapsed));case 3:case"end":return n.stop()}}),Ft)}function _t(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.Fm)(ee,Lt),(0,st.Fm)(te,Tt),(0,st.Fm)(ne,Rt)]);case 2:case"end":return e.stop()}}),Nt)}var Mt,It=n(81770),Ut=n(30081);function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ht=(Mt={},o()(Mt,Ut.qh,(function(e,t){var n=t.payload,r=n.selection,o=n.onSuccess,a=n.onError;return zt(zt({},e),{},{input:{selection:r,onSuccess:o,onError:a}})})),o()(Mt,Ut.FV,It.Z.singleTransferReducer("isWaiting")),o()(Mt,Ut.F$,(function(){return zt({},Wt)})),Mt),Wt={isWaiting:!1,input:{selection:null,onSuccess:null,onError:null}};var $t=n(6756),qt=ct().mark(Xt),Vt=ct().mark(Jt),Yt=ct().mark(Qt),Gt=function(e){return e.docs.move.input},Kt=function(e,t){return e.intl.messages[t]};function Xt(e){var t,n,r,o,a,i;return ct().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload,n="documents/move",r={method:"POST",acceptedStatusCodes:[400,403],body:{targetEntityKey:t.target,selectedEntityKeys:t.selected}},c.next=5,(0,st.gz)(Ut.p0(!0));case 5:return c.next=7,(0,st.RE)(pt.Z.requestSaga,n,r);case 7:if(204!==(o=c.sent).status){c.next=13;break}return c.next=11,(0,st.RE)(Jt);case 11:c.next=20;break;case 13:return c.next=15,(0,st.gz)(Ut.p0(!1));case 15:return i="client.actions.dms-move.failed.message","VALIDATION_FAILED"===(null===(a=o.body)||void 0===a?void 0:a.errorCode)&&(i=$t.Z.getErrorCompact(o.body.errors)),403===o.status&&(i="client.docs-browser.failedNoPermission"),c.next=20,(0,st.gz)(h.Z.toaster({type:"error",title:"client.actions.dms-move.failed.title",body:i}));case 20:case"end":return c.stop()}}),qt)}function Jt(){var e,t,n,r;return ct().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,st.Ys)(Gt);case 2:return e=o.sent,t=e.selection,n=e.onSuccess,r=[{type:"entity-update-event",payload:{entities:t.ids.map((function(e){return{entityName:"Docs_list_item",key:e}}))}}],o.t0=n,o.next=9,(0,st.Ys)(Kt,"client.docs-browser.moveSuccessful");case 9:return o.t1=o.sent,o.t2=r,o.t3={title:o.t1,remoteEvents:o.t2},(0,o.t0)(o.t3),o.next=15,(0,st.gz)(Ut.xv());case 15:case"end":return o.stop()}}),Vt)}function Qt(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.Fm)(Ut.uI,Xt)]);case 2:case"end":return e.stop()}}),Yt)}var en=ct().mark(tn);function tn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.rM)(Qt)]);case 2:case"end":return e.stop()}}),en)}const nn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wt,t=arguments.length>1?arguments[1]:void 0,n=Ht[t.type];return n?n(e,t):e};var rn,on=(rn={},o()(rn,k,It.Z.singleTransferReducer("breadcrumbs")),o()(rn,Z,It.Z.singleTransferReducer("searchMode")),rn),an={breadcrumbs:[],searchMode:!1};var cn=ct().mark(hn),sn=ct().mark(mn),un=ct().mark(yn),ln=ct().mark(vn),dn=function(e,t){return e.intl.messages[t]||t},fn=function(e){return e.docs.path},pn=function(e){return e.input.rootNodes};function hn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.Ys)(dn,"client.docs-browser.breadcrumbs.start");case 2:return e.t0=e.sent,e.t1={display:e.t0,path:"",type:"list"},e.next=6,(0,st.Ys)(dn,"client.docs-browser.breadcrumbs.searchResults");case 6:return e.t2=e.sent,e.t3={display:e.t2,path:"",type:"list"},e.abrupt("return",[e.t1,e.t3]);case 9:case"end":return e.stop()}}),cn)}function mn(e){var t,n,r,o,a,i;return ct().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload.location,n=(0,yt.Z)(t),c.next=4,(0,st.Ys)(fn);case 4:if(!c.sent.searchMode||n){c.next=11;break}return c.next=8,(0,st.RE)(hn);case 8:r=c.sent,c.next=21;break;case 11:return o=n?"documents/".concat(n.model,"/").concat(n.key,"/breadcrumbs"):"documents/breadcrumbs",c.next=14,(0,st.RE)(yn);case 14:return c.t0=c.sent,c.t1={rootnodes:c.t0},a={queryParams:c.t1},c.next=19,(0,st.RE)(pt.Z.requestSaga,o,a);case 19:i=c.sent,r=i.body.breadcrumbs;case 21:return c.next=23,(0,st.gz)(D(r));case 23:case"end":return c.stop()}}),sn)}function yn(){var e;return ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,st.Ys)(pn);case 2:return e=t.sent,t.abrupt("return",Array.isArray(e)&&e.length>0?e.map((function(e){return"".concat(e.entityName,"/").concat(e.key)})).join(","):null);case 4:case"end":return t.stop()}}),un)}function vn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.Fm)(C,mn)]);case 2:case"end":return e.stop()}}),ln)}var gn=ct().mark(bn);function bn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.rM)(vn)]);case 2:case"end":return e.stop()}}),gn)}const wn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:an,t=arguments.length>1?arguments[1]:void 0,n=on[t.type];return n?n(e,t):e};var On,xn=n(40602),Pn=(On={},o()(On,xn.RK,It.Z.singleTransferReducer("path")),o()(On,xn.Sb,It.Z.singleTransferReducer("params")),On),jn={path:"",params:{}};var Sn=n(96801),En=ct().mark(Cn),An=ct().mark(kn);function Cn(e){var t,n;return ct().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.payload.path,n=Sn.Z.extractParamsFromPath("/docs/:model/:key/:view(list|detail)",t)||{},r.next=4,(0,st.gz)(xn.PX(n));case 4:case"end":return r.stop()}}),En)}function kn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.Fm)(xn.RK,Cn)]);case 2:case"end":return e.stop()}}),An)}var Zn=ct().mark(Dn);function Dn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.rM)(kn)]);case 2:case"end":return e.stop()}}),Zn)}const Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jn,t=arguments.length>1?arguments[1]:void 0,n=Pn[t.type];return n?n(e,t):e},Nn={docs:(0,at.UY)({path:wn,create:kt,move:nn,routing:Fn})};var Ln=[bn,Ct,_t,tn,Dn];function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _n="docs-browser",Mn=["onListParentChange","openResource","onSelectChange","onSearchFormCollapsedChange"],In=function(e,t){return e.intl.messages[t]||t},Un=function(e){var t=e.routerType,n=e.store,r=e.rootPath,o=e.handleNotifications;if("routerless"===t)return(0,B.jsx)(Ge,{rootPath:r,handleNotifications:o});if("inherit"===t)return(0,B.jsx)(Qe,{rootPath:r,handleNotifications:o});var i=function(e){return(0,a.Z)({getUserConfirmation:function(t,n){var r=e.getState(),o=In(r,"client.common.ok"),a=In(r,"client.common.cancel"),i=h.Z.confirm("",t,o,a,(function(){return n(!0)}),(function(){return n(!1)}));e.dispatch(i)}})}(n);return(0,B.jsx)(rt,{history:i,rootPath:r,handleNotifications:o})},Bn=function(e,t,n,r){var o=u.Z.createStore(Nn,Ln,Rn(Rn({},{scrollBehaviour:"inline"}),t),_n);b.Z.setInputEnvs(t),p.Z.addToStore(o,(function(e){return u.Z.getEvents(Mn,e.input)})),s.Z.addToStore(o),l.Z.dynamicActionsAddToStore(o),f.Z.addToStore(o,!0,["console","remote","notification"]);var a=!n.emitAction;h.Z.addToStore(o,a),d.Z.addToStore(o);var i=Array.isArray(t.rootNodes)&&1===t.rootNodes.length&&"Resource"!==t.rootNodes[0].entityName?t.rootNodes[0]:null,c=i?"/docs/".concat(i.entityName.toLowerCase(),"/").concat(i.key,"/list"):"/docs",m=Un({routerType:t.routerType,store:o,rootPath:c,handleNotifications:a});return u.Z.createApp(_n,m,o,{input:t,events:n,actions:[(0,xn.c4)(t.initialLocation)],publicPath:r,textResourceModules:["component","common","actions","entity-list","entity-detail",_n]})},zn=function(e){return u.Z.useApp({initApp:Bn,props:e,packageName:_n,externalEvents:Mn}).component};zn.propTypes=Rn({routerType:c().oneOf(["standalone","inherit","routerless"]),navigationStrategy:c().object,domainTypes:c().arrayOf(c().string),rootNodes:c().arrayOf(c().shape({entityName:c().string,key:c().string})),initialLocation:c().string,listLimit:c().number,documentDetailFormName:c().string,searchFormType:m.b,selectionStyle:y.l,selectionFilterFn:c().func,selection:c().arrayOf(c().string),scrollBehaviour:v.az,getListFormName:c().func,disableViewPersistor:c().bool,getCustomLocation:c().func,businessUnit:c().string,searchFormCollapsed:c().bool,backendUrl:c().string,appContext:g.Z.propTypes},Mn.reduce((function(e,t){return e[t]=c().func,e}),{}));const Hn=zn;var Wn=u.Z.createBundleableApp(_n,Bn,zn)},30081:(e,t,n)=>{n.d(t,{F$:()=>i,FV:()=>a,j2:()=>c,p0:()=>u,qh:()=>r,uI:()=>o,w6:()=>s,xv:()=>l});var r="docs/move/INITIALIZE",o="docs/move/MOVE_ELEMENTS",a="docs/move/SET_WAITING",i="docs/move/CLOSE",c=function(e,t,n){return{type:r,payload:{selection:e,onSuccess:t,onError:n}}},s=function(e,t){return{type:o,payload:{target:e,selected:t}}},u=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:a,payload:{isWaiting:e}}},l=function(){return{type:i}}},40602:(e,t,n)=>{n.d(t,{PX:()=>i,RK:()=>r,Sb:()=>o,c4:()=>a});var r="docs/routing/NAVIGATE",o="docs/routing/SET_PARAMS",a=function(e){return{type:r,payload:{path:e||""}}},i=function(e){return{type:o,payload:{params:e}}}},80722:(e,t,n)=>{n.d(t,{Z:()=>a});var r=/^\/docs\/doc\/(\d+)\/detail$/,o=/^\/docs\/(domain|folder)\/(\d+)\/list$/;const a=function(e){return function(e){var t=r.exec(e);return t&&t.length>=2?{model:"Resource",key:t[1]}:null}(e)||function(e){var t=o.exec(e);return t&&t.length>=3?{model:t[1].charAt(0).toUpperCase()+t[1].slice(1),key:t[2]}:null}(e)}},1317:(e,t,n)=>{n.d(t,{C:()=>p,w:()=>f});var r=n(59713),o=n.n(r),a=n(50558),i=n(99752),c=n(40602),s=n(85893);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={navigate:c.c4,listenHistory:function(){return function(){}}},f=(0,a.connect)((function(e){return{path:e.docs.routing.path,params:e.docs.routing.params}}),d),p=function(e){return function(t){var n=(0,i.TH)(),r=(0,i.k6)(),o=(0,i.UO)();return(0,s.jsx)(e,l(l({},t),{},{path:n.pathname,navigate:r.push,params:o,listenHistory:r.listen}))}}},20247:(e,t,n)=>{n.d(t,{U:()=>h});var r=n(59713),o=n.n(r),a=n(6479),i=n.n(a),c=n(50558),s=n(1317),u=n(85893),l=["compProviderRouterType"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(e){return{compProviderRouterType:e.input.routerType}},h=function(e){var t=e.routerless,n=e.router,r=t?(0,s.w)(t):(0,s.w)(e),o=n?(0,s.C)(n):(0,s.C)(e);return(0,c.connect)(p)((function(e){var t=e.compProviderRouterType,n=i()(e,l);return"routerless"===t?(0,u.jsx)(r,f({},n)):(0,u.jsx)(o,f({},n))}))}},67092:(e,t)=>{t.__esModule=!0;t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},88536:(e,t,n)=>{t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=c(n(14149)),a=c(n(54545)),i=n(3074);function c(e){return e&&e.__esModule?e:{default:e}}t.createLocation=function(e,t,n,a){var c=void 0;"string"==typeof e?(c=(0,i.parsePath)(e)).state=t:(void 0===(c=r({},e)).pathname&&(c.pathname=""),c.search?"?"!==c.search.charAt(0)&&(c.search="?"+c.search):c.search="",c.hash?"#"!==c.hash.charAt(0)&&(c.hash="#"+c.hash):c.hash="",void 0!==t&&void 0===c.state&&(c.state=t));try{c.pathname=decodeURI(c.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+c.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(c.key=n),a?c.pathname?"/"!==c.pathname.charAt(0)&&(c.pathname=(0,o.default)(c.pathname,a.pathname)):c.pathname=a.pathname:c.pathname||(c.pathname="/"),c},t.locationsAreEqual=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,a.default)(e.state,t.state)}},3074:(e,t)=>{t.__esModule=!0;t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e};var n=t.hasBasename=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};t.stripBasename=function(e,t){return n(e,t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},t.createPath=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},52540:(e,t,n)=>{var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=l(n(30670)),a=l(n(41143)),i=n(88536),c=n(3074),s=l(n(3405)),u=n(67092);function l(e){return e&&e.__esModule?e:{default:e}}var d="hashchange",f={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+(0,c.stripLeadingSlash)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c.stripLeadingSlash,decodePath:c.addLeadingSlash},slash:{encodePath:c.addLeadingSlash,decodePath:c.addLeadingSlash}},p=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},h=function(e){return window.location.hash=e},m=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)};t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(u.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,u.supportsGoWithoutReloadUsingHash)(),l=e.getUserConfirmation,y=void 0===l?u.getConfirmation:l,v=e.hashType,g=void 0===v?"slash":v,b=e.basename?(0,c.stripTrailingSlash)((0,c.addLeadingSlash)(e.basename)):"",w=f[g],O=w.encodePath,x=w.decodePath,P=function(){var e=x(p());return(0,o.default)(!b||(0,c.hasBasename)(e,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+b+'".'),b&&(e=(0,c.stripBasename)(e,b)),(0,i.createLocation)(e)},j=(0,s.default)(),S=function(e){r(q,e),q.length=t.length,j.notifyListeners(q.location,q.action)},E=!1,A=null,C=function(){var e=p(),t=O(e);if(e!==t)m(t);else{var n=P(),r=q.location;if(!E&&(0,i.locationsAreEqual)(r,n))return;if(A===(0,c.createPath)(n))return;A=null,k(n)}},k=function(e){if(E)E=!1,S();else{j.confirmTransitionTo(e,"POP",y,(function(t){t?S({action:"POP",location:e}):Z(e)}))}},Z=function(e){var t=q.location,n=L.lastIndexOf((0,c.createPath)(t));-1===n&&(n=0);var r=L.lastIndexOf((0,c.createPath)(e));-1===r&&(r=0);var o=n-r;o&&(E=!0,M(o))},D=p(),F=O(D);D!==F&&m(F);var N=P(),L=[(0,c.createPath)(N)],T=function(e){return"#"+O(b+(0,c.createPath)(e))},R=function(e,t){(0,o.default)(void 0===t,"Hash history cannot push state; it is ignored");var n="PUSH",r=(0,i.createLocation)(e,void 0,void 0,q.location);j.confirmTransitionTo(r,n,y,(function(e){if(e){var t=(0,c.createPath)(r),a=O(b+t);if(p()!==a){A=t,h(a);var i=L.lastIndexOf((0,c.createPath)(q.location)),s=L.slice(0,-1===i?0:i+1);s.push(t),L=s,S({action:n,location:r})}else(0,o.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),S()}}))},_=function(e,t){(0,o.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n="REPLACE",r=(0,i.createLocation)(e,void 0,void 0,q.location);j.confirmTransitionTo(r,n,y,(function(e){if(e){var t=(0,c.createPath)(r),o=O(b+t);p()!==o&&(A=t,m(o));var a=L.indexOf((0,c.createPath)(q.location));-1!==a&&(L[a]=t),S({action:n,location:r})}}))},M=function(e){(0,o.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},I=function(){return M(-1)},U=function(){return M(1)},B=0,z=function(e){1===(B+=e)?(0,u.addEventListener)(window,d,C):0===B&&(0,u.removeEventListener)(window,d,C)},H=!1,W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=j.setPrompt(e);return H||(z(1),H=!0),function(){return H&&(H=!1,z(-1)),t()}},$=function(e){var t=j.appendListener(e);return z(1),function(){z(-1),t()}},q={length:t.length,action:"POP",location:N,createHref:T,push:R,replace:_,go:M,goBack:I,goForward:U,block:W,listen:$};return q}},3405:(e,t,n)=>{t.__esModule=!0;var r,o=n(30670),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(){var e=null,t=[];return{setPrompt:function(t){return(0,a.default)(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):((0,a.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}}}]);
1
+ "use strict";(self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[183],{73183:(e,t,n)=>{n.r(t),n.d(t,{app:()=>Wn,chooseDocument:()=>ot.Z,default:()=>Hn});var r=n(59713),o=n.n(r),a=n(52540),i=n(45697),c=n.n(i),s=n(50600),u=n(87533),l=n(44448),d=n(22731),f=n(19743),p=n(45430),h=n(27023),m=n(81749),y=n(13025),v=n(36498),g=n(65378),b=n(23369),w=n(1024),O=n.n(w),x=n(79311),P=n(1317),j=n(74806),S=n(50558),E="docs/create/OPEN_DIALOG",A="docs/create/FILES_SELECTED",C="docs/path/LOAD_BREADCRUMBS",k="docs/path/SET_BREADCRUMBS",Z="docs/path/SET_SEARCH_MODE",D=function(e){return{type:k,payload:{breadcrumbs:e}}},F=n(20247),N=n(63038),L=n.n(N),T=n(29441),R=/^\/docs\/?$/;const _=function(e){return R.test(e)};var M=n(38205),I=n(2977),U=n(88601),B=n(85893);function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const W=(0,M.Zz)((function(e){var t=e.embedded,n=e.resetSearchMode,r=e.theme,o=e.pathPrefix,a=e.breadcrumbsInfo;return(0,B.jsx)(I.Z,H(H({},t?{backgroundColor:U.Z.color("paper")({theme:r})}:{}),{},{onClick:function(e){""===e.path&&n()},pathPrefix:o,breadcrumbsInfo:a}))}));function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var V=function(e){return(0,B.jsx)("span",q({},e))};const Y=(0,M.Zz)((function(e){var t=e.embedded,n=e.navigate,r=e.resetSearchMode,o=e.theme,a=e.pathPrefix,i=e.breadcrumbsInfo;return(0,B.jsx)(I.Z,q(q({},t?{backgroundColor:U.Z.color("paper")({theme:o})}:{}),{},{onClick:function(e){""===e.path&&r(),n("/docs/".concat(e.path))},linkComp:V,pathPrefix:a,breadcrumbsInfo:i}))}));var G={},K=function(e){return{pathPrefix:"/docs",breadcrumbsInfo:e.docs.path.breadcrumbs,embedded:e.input.embedded}},X=(0,S.connect)(K,G)((0,j.ZP)(W)),J=(0,S.connect)(K,G)((0,j.ZP)(Y));const Q=(0,F.U)({routerless:J,router:X});var ee="docs/list/CHANGE_LIST_PARENT",te="docs/list/CHANGE_SELECTION",ne="docs/list/CHANGE_SEARCH_FORM_COLLAPSED",re=n(50258),oe=n(88162),ae={"dms-create-folder":(0,w.lazy)((function(){return Promise.all([n.e(343),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,36340))})),"dms-create-domain":(0,w.lazy)((function(){return Promise.all([n.e(343),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,67210))})),"dms-edit":(0,w.lazy)((function(){return Promise.all([n.e(343),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,90100))})),"dms-move":(0,w.lazy)((function(){return Promise.all([n.e(343),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,4505))})),delete:(0,w.lazy)((function(){return Promise.all([n.e(343),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,96954))}))};const ie=l.Z.actionFactory(ae);var ce=n(35997);function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const ue=function(e){var t=e.instanceCount,n=e.directory,r=e.onChange,a=e.path,i=(0,w.useRef)(),c=ce.Z.usePrevious(t);(0,w.useEffect)((function(){i.current&&t>c&&i.current.click()}));return(0,B.jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:"file",ref:i,style:{display:"none"},onChange:function(e){var t=e.target.files;t&&t.length>0&&r&&r(a,t,n),e.target.value=null},multiple:!0},n?{webkitdirectory:"true",directory:"true"}:{}))};var le={onChange:function(e,t,n){return{type:A,payload:{location:e,files:t,isDirectory:n}}}};const de=(0,F.U)((0,S.connect)((function(e){return{instanceCount:e.docs.create.dialog.instanceCount,directory:e.docs.create.dialog.directory}}),le)(ue));var fe,pe,he,me,ye=n(28655),ve=n.n(ye),ge=n(7281),be=M.ZP.div.withConfig({displayName:"StyledContentWrapper"})(fe||(fe=ve()(["\n display: flex;\n align-items: center;\n"]))),we=M.ZP.span.withConfig({displayName:"StyledIconWrapper"})(pe||(pe=ve()(["\n font-size: ",";\n display: inline-block;\n margin-right: ",";\n"])),ge.Z.font(1),ge.Z.space(-2)),Oe=O().lazy((function(){return Promise.all([n.e(343),n.e(614),n.e(85)]).then(n.bind(n,77840))}));const xe=function(e){var t=e.domainTypes,n=e.rootNodes,r=e.navigationStrategy,o=e.changeListParent,a=e.onSearchChange,i=e.emitAction,c=e.openFileDialog,s=e.limit,u=e.searchFormType,l=e.selectionStyle,d=e.selection,f=e.selectionFilterFn,p=e.getCustomLocation,h=e.disableViewPersistor,m=e.getListFormName,y=e.domainDetailFormName,v=e.folderDetailFormName,g=e.showActions,b=e.scrollBehaviour,O=e.sortable,x=e.searchMode,P=e.openResource,j=e.searchFormCollapsed,S=e.locale,E=e.changeSelection,A=e.changeSearchFormCollapsed,C=e.params,k=e.navigate,Z=e.path,D=(0,w.useReducer)((function(e){return e+1}),0),F=L()(D,2),N=F[0],R=F[1],M="entity-list-".concat(N),I=(0,w.useState)([]),U=L()(I,2),z=U[0],H=U[1],W=d||z,$=(0,w.useMemo)((function(){return function(e){if(e&&e.model){var t=e.model.charAt(0).toUpperCase()+e.model.slice(1),n=e.key;return{model:"Docs_list_item",key:"".concat(t,"/").concat(n)}}return null}(C)}),[C]),q=!$&&n?n.map((function(e){return"".concat(e.entityName,"/").concat(e.key)})):null,V=(0,w.useMemo)((function(){return m?m($,q):function(e,t){return e?"Docs_list_item":t?"Root_docs_list_item_specific":"Root_docs_list_item"}($,q)}),[$,q,m]),Y=(0,w.useRef)(!1),G=(0,w.useRef)(x),K=(0,w.useRef)(Z);G.current=x,K.current=Z,(0,w.useEffect)((function(){return Y.current=!0,function(){return Y.current=!1}})),(0,w.useEffect)((function(){o($),H([])}),[$,o]);var X=function(e){H(e),E(e)},J=function(){if(!T.Z.viewInfoSelector("search").store){var e=T.Z.viewInfoSelector(M).store;T.Z.persistViewInfo("search",{store:e})}R()},Q=$||q?null:function(e){return Array.isArray(e)&&e.length>0?"exists(relDomain_type where IN(unique_id, ".concat(e.map((function(e){return'"'.concat(e,'"')})).join(","),"))"):null}(t),ee=function(){if(!h)return _(Z)?T.Z.viewInfoSelector("search").store:null}();return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(w.Suspense,{fallback:he||(he=(0,B.jsx)(re.Z,{})),children:(0,B.jsx)(Oe,{id:"documents",entityName:"Docs_list_item",formName:V,searchListFormName:"Search_docs_list_item",limit:s||25,onRowClick:function(e){var t=e.id;x&&_(Z)&&J();var n=t.split("/"),r=L()(n,2),o=r[0],a=r[1],i=p?p(o,a):function(e,t){switch(e){case"Domain":return"/docs/domain/".concat(t,"/list");case"Folder":return"/docs/folder/".concat(t,"/list");case"Resource":return"/docs/doc/".concat(t,"/detail");default:throw new Error("Unexpected model: ".concat(e))}}(o,a);i?P&&"Resource"===o?P(i):k(i):X([t])},searchFormPosition:"left",searchFormType:u||"admin",parent:$,onSearchChange:function(e){Y.current&&(e.query&&e.query.hasUserChanges&&J(),a(e))},store:ee,onStoreCreate:function(e){h||T.Z.persistViewInfo(M,{store:e})},cellRenderers:{"dms-label-with-icon":function(e,t,n){return(0,B.jsxs)(be,{children:[(0,B.jsx)(we,{children:(0,B.jsx)(oe.Z,{icon:e.icon})}),(0,B.jsx)("span",{children:n(t.children[0])})]})},"dms-actions":function(e,t,n){return(0,B.jsx)(be,{children:t.children.filter((function(t){return!t.dmsEntityModel||t.dmsEntityModel===e.type})).map((function(e){return n(e)}))})}},emitAction:i,actionAppComponent:ie,contextParams:{detailFormNames:{Domain:y,Folder:v}},customActions:{"upload-document":function(e,t,n,r,o,a,i){c(!1,a,i)},"upload-directory":function(e,t,n,r,o,a,i){c(!0,a,i)}},navigationStrategy:r,tql:Q,keys:q,selectionStyle:l||"multi_explicit",onSelectChange:X,selection:W,selectionFilterFn:f,showActions:g,sortable:O,searchFormCollapsed:j,scrollBehaviour:b,onSearchFormCollapsedChange:A,locale:S},M)}),me||(me=(0,B.jsx)(de,{}))]})};var Pe={changeListParent:function(e){return{type:ee,payload:{parent:e}}},changeSelection:function(e){return{type:te,payload:{selection:e}}},changeSearchFormCollapsed:function(e){return{type:ne,payload:{collapsed:e}}}};const je=(0,F.U)((0,S.connect)((function(e){return{domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,limit:e.input.listLimit,searchFormType:e.input.searchFormType,selectionStyle:e.input.selectionStyle,selectionFilterFn:e.input.selectionFilterFn,getCustomLocation:e.input.getCustomLocation,disableViewPersistor:e.input.disableViewPersistor,getListFormName:e.input.getListFormName,domainDetailFormName:e.input.domainDetailFormName,folderDetailFormName:e.input.folderDetailFormName,showActions:e.input.showActions,sortable:e.input.sortable,openResource:e.input.openResource,searchFormCollapsed:e.input.searchFormCollapsed,scrollBehaviour:e.input.scrollBehaviour,selection:e.input.selection,locale:e.intl.locale}}),Pe)((0,j.ZP)(xe)));var Se,Ee,Ae=M.ZP.div.withConfig({displayName:"StyledDocumentViewWrapper"})(Se||(Se=ve()(["\n height: 100%;\n background-color: ",";\n padding-left: ",";\n overflow-y: hidden;\n"])),U.Z.color("paper"),ge.Z.space(.5)),Ce=O().lazy((function(){return Promise.all([n.e(343),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,82445))}));const ke=function(e){var t=e.breadcrumbs,n=e.formName,r=e.navigationStrategy,o=e.locale,a=e.emitAction,i=e.navigate,c=e.params;return(0,B.jsx)(Ae,{children:(0,B.jsx)(w.Suspense,{fallback:Ee||(Ee=(0,B.jsx)(re.Z,{})),children:(0,B.jsx)(Ce,{entityName:"Resource",entityId:c.key,formName:n||"DmsResource",mode:"update",actionAppComponent:ie,navigationStrategy:r,emitAction:a,onEntityDeleted:function(){var e=t.slice().reverse().find((function(e){return"list"===e.type})),n="/docs/".concat(e.path);i(n)},locale:o})})})};var Ze={emitAction:function(e){return s.Z.dispatchEmittedAction(e)}};const De=(0,F.U)((0,S.connect)((function(e){return{breadcrumbs:e.docs.path.breadcrumbs,formName:e.input.documentDetailFormName,locale:e.intl.locale}}),Ze)((0,j.ZP)(ke)));const Fe=function(e){var t=e.params,n=e.navigationStrategy,r=e.handleSearchChange,o=e.emitAction,a=e.openFileDialog,i=e.searchMode,c=e.docsKey,s=t.model,u=t.view;return"doc"===s&&"detail"===u?(0,B.jsx)(De,{navigationStrategy:n}):(0,B.jsx)(je,{navigationStrategy:n,onSearchChange:r,emitAction:o,openFileDialog:a,searchMode:i},c)};var Ne=n(99752);const Le=function(e){var t,n,r=e.navigationStrategy,o=e.handleSearchChange,a=e.emitAction,i=e.openFileDialog,c=e.searchMode,s=e.docsKey;return(0,B.jsxs)(Ne.rs,{children:[(0,B.jsx)(Ne.AW,{exact:!0,path:"/docs/doc/:key/detail",render:function(){return t||(t=(0,B.jsx)(De,{navigationStrategy:r}))}}),(0,B.jsx)(Ne.AW,{exact:!0,path:["/docs/:model/:key/list","/docs"],render:function(){return n||(n=(0,B.jsx)(je,{navigationStrategy:r,onSearchChange:o,emitAction:a,openFileDialog:i,searchMode:c},s))}})]})},Te=(0,F.U)({routerless:Fe,router:Le});var Re,_e,Me,Ie=n(11347),Ue=M.ZP.div.withConfig({displayName:"StyledWrapper"})(Re||(Re=ve()(["\n display: grid;\n grid-template-rows: auto 1fr;\n grid-template-areas:\n 'breadcrumbs'\n 'content';\n ","\n width: 100%;\n"])),(function(e){return"inline"===e.scrollBehaviour&&"height: 100%;"})),Be=M.ZP.div.withConfig({displayName:"StyledContent"})(_e||(_e=ve()(["\n grid-area: content;\n ","\n ","\n"])),(function(e){return"inline"===e.scrollBehaviour&&"overflow-x: hidden;"}),Ie.C),ze=M.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(Me||(Me=ve()(["\n grid-area: breadcrumbs;\n ","\n"])),(function(e){return e.noLeftPadding&&"\n > div {\n padding-left: 0;\n }\n "}));const He=function(e){var t=e.navigate,n=e.path,r=e.searchMode,o=e.navigationStrategy,a=e.setSearchMode,i=e.loadBreadcrumbs,c=e.emitAction,s=e.openFileDialog,u=e.noLeftPadding,l=e.scrollBehaviour,d=e.listenHistory,p=(0,w.useReducer)((function(e){return e+1}),0),h=L()(p,2),m=h[0],y=h[1],v=(0,w.useRef)(r);v.current=r,(0,w.useEffect)((function(){i(n)})),(0,w.useEffect)((function(){return d((function(e,t){_(n)&&r&&"POP"===t&&g()}))}));var g=function(){v.current&&(T.Z.clearPersistedViews(),a(!1),i(n),y())},b="docs-view-".concat(m);return(0,B.jsxs)(Ue,{scrollBehaviour:l,children:[(0,B.jsx)(f.Z.ErrorBoundary,{children:(0,B.jsx)(ze,{noLeftPadding:u,children:(0,B.jsx)(Q,{resetSearchMode:g})})}),(0,B.jsx)(Be,{scrollBehaviour:l,children:(0,B.jsx)(Te,{navigationStrategy:o,handleSearchChange:function(e){e.query&&e.query.hasUserChanges?(a(!0),t("/docs/"),i(n)):_(n)&&g()},emitAction:c,openFileDialog:s,searchMode:r,docsKey:b})})]})};var We={loadBreadcrumbs:function(e){return{type:C,payload:{location:e}}},setSearchMode:function(e){return{type:Z,payload:{searchMode:e}}},emitAction:function(e){return s.Z.dispatchEmittedAction(e)},openFileDialog:function(e,t,n){return{type:E,payload:{directory:e,onSuccess:t,onError:n}}}};const $e=(0,F.U)((0,S.connect)((function(e){return{searchMode:e.docs.path.searchMode,navigationStrategy:e.input.navigationStrategy,noLeftPadding:e.input.noLeftPadding,scrollBehaviour:e.input.scrollBehaviour}}),We)((0,j.ZP)(He)));var qe,Ve,Ye;const Ge=(0,P.w)((function(e){var t=e.handleNotifications,n=e.rootPath,r=e.navigate,o=e.path;return(0,w.useEffect)((function(){(!o||"/"===o||"/docs"===o)&&n!==o&&r(n)}),[n,o,r]),(0,B.jsxs)(B.Fragment,{children:[t&&(qe||(qe=(0,B.jsx)(h.Z.Notifications,{}))),Ve||(Ve=(0,B.jsx)(x.Z,{})),Ye||(Ye=(0,B.jsx)($e,{}))]})}));var Ke,Xe,Je;const Qe=function(e){var t=e.rootPath,n=e.handleNotifications;return(0,B.jsxs)(B.Fragment,{children:[n&&(Ke||(Ke=(0,B.jsx)(h.Z.Notifications,{}))),Xe||(Xe=(0,B.jsx)(x.Z,{})),Je||(Je=(0,B.jsx)($e,{})),(0,B.jsx)(Ne.AW,{exact:!0,path:"/",children:(0,B.jsx)(Ne.l_,{to:t})}),"/docs"!==t&&(0,B.jsx)(Ne.AW,{exact:!0,path:"/docs",children:(0,B.jsx)(Ne.l_,{to:t})})]})};var et,tt,nt;const rt=function(e){var t=e.rootPath,n=e.handleNotifications,r=e.history;return(0,B.jsxs)(Ne.F0,{history:r,children:[n&&(et||(et=(0,B.jsx)(h.Z.Notifications,{}))),tt||(tt=(0,B.jsx)(x.Z,{})),nt||(nt=(0,B.jsx)($e,{})),(0,B.jsx)(Ne.AW,{exact:!0,path:"/",children:(0,B.jsx)(Ne.l_,{to:t})}),"/docs"!==t&&(0,B.jsx)(Ne.AW,{exact:!0,path:"/docs",children:(0,B.jsx)(Ne.l_,{to:t})})]})};var ot=n(91073),at=n(15857),it=n(87757),ct=n.n(it),st=n(34857);function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dt=o()({},E,(function(e,t){var n=t.payload,r=n.directory,o=n.onSuccess,a=n.onError;return lt(lt({},e),{},{dialog:{instanceCount:e.dialog.instanceCount+1,directory:r,onSuccess:o,onError:a}})})),ft={dialog:{instanceCount:0,directory:!1,onSuccess:null,onError:null}};var pt=n(81719),ht=n(44759),mt=n(28721),yt=n(80722);function vt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bt=ct().mark(jt),wt=ct().mark(St),Ot=ct().mark(Et),xt=function(e){return e.docs.create.dialog},Pt=function(e,t){return e.intl.messages[t]};function jt(e){var t,n,r,o,a,i,c,s,u,l,d,f;return ct().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:return t=e.payload,n=t.location,r=t.files,o=t.isDirectory,p.next=3,(0,st.RE)(mt.Z);case 3:return a=p.sent,i="client.docs-browser.uploadInProgress",o?i="client.docs-browser.uploadInProgressDirectory":r.length>1&&(i="client.docs-browser.uploadInProgressMultiple"),p.next=8,(0,st.gz)(h.Z.blockingInfo(a,i,null));case 8:return p.next=10,(0,st.Ys)(xt);case 10:return c=p.sent,s=c.onSuccess,u=c.onError,p.prev=13,p.next=16,(0,st.RE)(St,n,r);case 16:if(403!==(l=p.sent).status){p.next=31;break}return p.next=20,(0,st.gz)(h.Z.removeBlockingInfo(a));case 20:return p.t0=u,p.next=23,(0,st.Ys)(Pt,"client.entity-detail.saveAbortedTitle");case 23:return p.t1=p.sent,p.next=26,(0,st.Ys)(Pt,"client.docs-browser.failedNoPermission");case 26:p.t2=p.sent,p.t3={title:p.t1,message:p.t2},(0,p.t0)(p.t3),p.next=42;break;case 31:return d=[{type:"entity-create-event",payload:{entities:l.body.items.filter((function(e){return 201===e.status})).map((function(e){return{entityName:e.bean.model,key:e.bean.key}}))}}],p.next=34,(0,st.gz)(h.Z.removeBlockingInfo(a));case 34:return f=o?"client.docs-browser.uploadSuccessfulDirectory":"client.docs-browser.uploadSuccessful",p.t4=s,p.next=38,(0,st.Ys)(Pt,f);case 38:p.t5=p.sent,p.t6=d,p.t7={title:p.t5,remoteEvents:p.t6},(0,p.t4)(p.t7);case 42:p.next=55;break;case 44:return p.prev=44,p.t8=p.catch(13),ht.Z.logError("Failed to upload files",p.t8),p.next=49,(0,st.gz)(h.Z.removeBlockingInfo(a));case 49:return p.t9=u,p.next=52,(0,st.Ys)(Pt,"client.docs-browser.uploadFailed");case 52:p.t10=p.sent,p.t11={title:p.t10},(0,p.t9)(p.t11);case 55:case"end":return p.stop()}}),bt,null,[[13,44]])}function St(e,t){var n,r,o,a,i,c,s;return ct().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(n=(0,yt.Z)(e)){u.next=3;break}return u.abrupt("return");case 3:r=new FormData,o=vt(t);try{for(o.s();!(a=o.n()).done;)i=a.value,r.append("files[]",i)}catch(e){o.e(e)}finally{o.f()}return c="documents/".concat(n.model,"/").concat(n.key),s={method:"POST",body:r,acceptedStatusCodes:[403]},u.next=10,(0,st.RE)(pt.Z.requestSaga,c,s);case 10:return u.abrupt("return",u.sent);case 11:case"end":return u.stop()}}),wt)}function Et(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.ib)(A,jt)]);case 2:case"end":return e.stop()}}),Ot)}var At=ct().mark(Ct);function Ct(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.rM)(Et)]);case 2:case"end":return e.stop()}}),At)}const kt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ft,t=arguments.length>1?arguments[1]:void 0,n=dt[t.type];return n?n(e,t):e};var Zt=ct().mark(Lt),Dt=ct().mark(Tt),Ft=ct().mark(Rt),Nt=ct().mark(_t);function Lt(e){var t;return ct().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,st.gz)(p.Z.fireExternalEvent("onListParentChange",t.parent));case 3:case"end":return n.stop()}}),Zt)}function Tt(e){var t;return ct().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,st.gz)(p.Z.fireExternalEvent("onSelectChange",t.selection));case 3:case"end":return n.stop()}}),Dt)}function Rt(e){var t;return ct().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,st.gz)(p.Z.fireExternalEvent("onSearchFormCollapsedChange",t.collapsed));case 3:case"end":return n.stop()}}),Ft)}function _t(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.Fm)(ee,Lt),(0,st.Fm)(te,Tt),(0,st.Fm)(ne,Rt)]);case 2:case"end":return e.stop()}}),Nt)}var Mt,It=n(81770),Ut=n(30081);function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ht=(Mt={},o()(Mt,Ut.qh,(function(e,t){var n=t.payload,r=n.selection,o=n.onSuccess,a=n.onError;return zt(zt({},e),{},{input:{selection:r,onSuccess:o,onError:a}})})),o()(Mt,Ut.FV,It.Z.singleTransferReducer("isWaiting")),o()(Mt,Ut.F$,(function(){return zt({},Wt)})),Mt),Wt={isWaiting:!1,input:{selection:null,onSuccess:null,onError:null}};var $t=n(6756),qt=ct().mark(Xt),Vt=ct().mark(Jt),Yt=ct().mark(Qt),Gt=function(e){return e.docs.move.input},Kt=function(e,t){return e.intl.messages[t]};function Xt(e){var t,n,r,o,a,i;return ct().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload,n="documents/move",r={method:"POST",acceptedStatusCodes:[400,403],body:{targetEntityKey:t.target,selectedEntityKeys:t.selected}},c.next=5,(0,st.gz)(Ut.p0(!0));case 5:return c.next=7,(0,st.RE)(pt.Z.requestSaga,n,r);case 7:if(204!==(o=c.sent).status){c.next=13;break}return c.next=11,(0,st.RE)(Jt);case 11:c.next=20;break;case 13:return c.next=15,(0,st.gz)(Ut.p0(!1));case 15:return i="client.actions.dms-move.failed.message","VALIDATION_FAILED"===(null===(a=o.body)||void 0===a?void 0:a.errorCode)&&(i=$t.Z.getErrorCompact(o.body.errors)),403===o.status&&(i="client.docs-browser.failedNoPermission"),c.next=20,(0,st.gz)(h.Z.toaster({type:"error",title:"client.actions.dms-move.failed.title",body:i}));case 20:case"end":return c.stop()}}),qt)}function Jt(){var e,t,n,r;return ct().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,st.Ys)(Gt);case 2:return e=o.sent,t=e.selection,n=e.onSuccess,r=[{type:"entity-update-event",payload:{entities:t.ids.map((function(e){return{entityName:"Docs_list_item",key:e}}))}}],o.t0=n,o.next=9,(0,st.Ys)(Kt,"client.docs-browser.moveSuccessful");case 9:return o.t1=o.sent,o.t2=r,o.t3={title:o.t1,remoteEvents:o.t2},(0,o.t0)(o.t3),o.next=15,(0,st.gz)(Ut.xv());case 15:case"end":return o.stop()}}),Vt)}function Qt(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.Fm)(Ut.uI,Xt)]);case 2:case"end":return e.stop()}}),Yt)}var en=ct().mark(tn);function tn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.rM)(Qt)]);case 2:case"end":return e.stop()}}),en)}const nn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wt,t=arguments.length>1?arguments[1]:void 0,n=Ht[t.type];return n?n(e,t):e};var rn,on=(rn={},o()(rn,k,It.Z.singleTransferReducer("breadcrumbs")),o()(rn,Z,It.Z.singleTransferReducer("searchMode")),rn),an={breadcrumbs:[],searchMode:!1};var cn=ct().mark(hn),sn=ct().mark(mn),un=ct().mark(yn),ln=ct().mark(vn),dn=function(e,t){return e.intl.messages[t]||t},fn=function(e){return e.docs.path},pn=function(e){return e.input.rootNodes};function hn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.Ys)(dn,"client.docs-browser.breadcrumbs.start");case 2:return e.t0=e.sent,e.t1={display:e.t0,path:"",type:"list"},e.next=6,(0,st.Ys)(dn,"client.docs-browser.breadcrumbs.searchResults");case 6:return e.t2=e.sent,e.t3={display:e.t2,path:"",type:"list"},e.abrupt("return",[e.t1,e.t3]);case 9:case"end":return e.stop()}}),cn)}function mn(e){var t,n,r,o,a,i;return ct().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload.location,n=(0,yt.Z)(t),c.next=4,(0,st.Ys)(fn);case 4:if(!c.sent.searchMode||n){c.next=11;break}return c.next=8,(0,st.RE)(hn);case 8:r=c.sent,c.next=21;break;case 11:return o=n?"documents/".concat(n.model,"/").concat(n.key,"/breadcrumbs"):"documents/breadcrumbs",c.next=14,(0,st.RE)(yn);case 14:return c.t0=c.sent,c.t1={rootnodes:c.t0},a={queryParams:c.t1},c.next=19,(0,st.RE)(pt.Z.requestSaga,o,a);case 19:i=c.sent,r=i.body.breadcrumbs;case 21:return c.next=23,(0,st.gz)(D(r));case 23:case"end":return c.stop()}}),sn)}function yn(){var e;return ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,st.Ys)(pn);case 2:return e=t.sent,t.abrupt("return",Array.isArray(e)&&e.length>0?e.map((function(e){return"".concat(e.entityName,"/").concat(e.key)})).join(","):null);case 4:case"end":return t.stop()}}),un)}function vn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.Fm)(C,mn)]);case 2:case"end":return e.stop()}}),ln)}var gn=ct().mark(bn);function bn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.rM)(vn)]);case 2:case"end":return e.stop()}}),gn)}const wn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:an,t=arguments.length>1?arguments[1]:void 0,n=on[t.type];return n?n(e,t):e};var On,xn=n(40602),Pn=(On={},o()(On,xn.RK,It.Z.singleTransferReducer("path")),o()(On,xn.Sb,It.Z.singleTransferReducer("params")),On),jn={path:"",params:{}};var Sn=n(96801),En=ct().mark(Cn),An=ct().mark(kn);function Cn(e){var t,n;return ct().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.payload.path,n=Sn.Z.extractParamsFromPath("/docs/:model/:key/:view(list|detail)",t)||{},r.next=4,(0,st.gz)(xn.PX(n));case 4:case"end":return r.stop()}}),En)}function kn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.Fm)(xn.RK,Cn)]);case 2:case"end":return e.stop()}}),An)}var Zn=ct().mark(Dn);function Dn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.rM)(kn)]);case 2:case"end":return e.stop()}}),Zn)}const Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jn,t=arguments.length>1?arguments[1]:void 0,n=Pn[t.type];return n?n(e,t):e},Nn={docs:(0,at.UY)({path:wn,create:kt,move:nn,routing:Fn})};var Ln=[bn,Ct,_t,tn,Dn];function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _n="docs-browser",Mn=["onListParentChange","openResource","onSelectChange","onSearchFormCollapsedChange"],In=function(e,t){return e.intl.messages[t]||t},Un=function(e){var t=e.routerType,n=e.store,r=e.rootPath,o=e.handleNotifications;if("routerless"===t)return(0,B.jsx)(Ge,{rootPath:r,handleNotifications:o});if("inherit"===t)return(0,B.jsx)(Qe,{rootPath:r,handleNotifications:o});var i=function(e){return(0,a.Z)({getUserConfirmation:function(t,n){var r=e.getState(),o=In(r,"client.common.ok"),a=In(r,"client.common.cancel"),i=h.Z.confirm("",t,o,a,(function(){return n(!0)}),(function(){return n(!1)}));e.dispatch(i)}})}(n);return(0,B.jsx)(rt,{history:i,rootPath:r,handleNotifications:o})},Bn=function(e,t,n,r){var o=u.Z.createStore(Nn,Ln,Rn(Rn({},{scrollBehaviour:"inline"}),t),_n);b.Z.setInputEnvs(t),p.Z.addToStore(o,(function(e){return u.Z.getEvents(Mn,e.input)})),s.Z.addToStore(o),l.Z.dynamicActionsAddToStore(o),f.Z.addToStore(o,!0,["console","remote","notification"]);var a=!n.emitAction;h.Z.addToStore(o,a),d.Z.addToStore(o);var i=Array.isArray(t.rootNodes)&&1===t.rootNodes.length&&"Resource"!==t.rootNodes[0].entityName?t.rootNodes[0]:null,c=i?"/docs/".concat(i.entityName.toLowerCase(),"/").concat(i.key,"/list"):"/docs",m=Un({routerType:t.routerType,store:o,rootPath:c,handleNotifications:a});return u.Z.createApp(_n,m,o,{input:t,events:n,actions:[(0,xn.c4)(t.initialLocation)],publicPath:r,textResourceModules:["component","common","actions","entity-list","entity-detail",_n]})},zn=function(e){return u.Z.useApp({initApp:Bn,props:e,packageName:_n,externalEvents:Mn}).component};zn.propTypes=Rn({routerType:c().oneOf(["standalone","inherit","routerless"]),navigationStrategy:c().object,domainTypes:c().arrayOf(c().string),rootNodes:c().arrayOf(c().shape({entityName:c().string,key:c().string})),initialLocation:c().string,listLimit:c().number,documentDetailFormName:c().string,searchFormType:m.b,selectionStyle:y.l,selectionFilterFn:c().func,selection:c().arrayOf(c().string),scrollBehaviour:v.az,getListFormName:c().func,disableViewPersistor:c().bool,getCustomLocation:c().func,businessUnit:c().string,searchFormCollapsed:c().bool,backendUrl:c().string,appContext:g.Z.propTypes},Mn.reduce((function(e,t){return e[t]=c().func,e}),{}));const Hn=zn;var Wn=u.Z.createBundleableApp(_n,Bn,zn)},30081:(e,t,n)=>{n.d(t,{F$:()=>i,FV:()=>a,j2:()=>c,p0:()=>u,qh:()=>r,uI:()=>o,w6:()=>s,xv:()=>l});var r="docs/move/INITIALIZE",o="docs/move/MOVE_ELEMENTS",a="docs/move/SET_WAITING",i="docs/move/CLOSE",c=function(e,t,n){return{type:r,payload:{selection:e,onSuccess:t,onError:n}}},s=function(e,t){return{type:o,payload:{target:e,selected:t}}},u=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:a,payload:{isWaiting:e}}},l=function(){return{type:i}}},40602:(e,t,n)=>{n.d(t,{PX:()=>i,RK:()=>r,Sb:()=>o,c4:()=>a});var r="docs/routing/NAVIGATE",o="docs/routing/SET_PARAMS",a=function(e){return{type:r,payload:{path:e||""}}},i=function(e){return{type:o,payload:{params:e}}}},80722:(e,t,n)=>{n.d(t,{Z:()=>a});var r=/^\/docs\/doc\/(\d+)\/detail$/,o=/^\/docs\/(domain|folder)\/(\d+)\/list$/;const a=function(e){return function(e){var t=r.exec(e);return t&&t.length>=2?{model:"Resource",key:t[1]}:null}(e)||function(e){var t=o.exec(e);return t&&t.length>=3?{model:t[1].charAt(0).toUpperCase()+t[1].slice(1),key:t[2]}:null}(e)}},1317:(e,t,n)=>{n.d(t,{C:()=>p,w:()=>f});var r=n(59713),o=n.n(r),a=n(50558),i=n(99752),c=n(40602),s=n(85893);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={navigate:c.c4,listenHistory:function(){return function(){}}},f=(0,a.connect)((function(e){return{path:e.docs.routing.path,params:e.docs.routing.params}}),d),p=function(e){return function(t){var n=(0,i.TH)(),r=(0,i.k6)(),o=(0,i.UO)();return(0,s.jsx)(e,l(l({},t),{},{path:n.pathname,navigate:r.push,params:o,listenHistory:r.listen}))}}},20247:(e,t,n)=>{n.d(t,{U:()=>h});var r=n(59713),o=n.n(r),a=n(6479),i=n.n(a),c=n(50558),s=n(1317),u=n(85893),l=["compProviderRouterType"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(e){return{compProviderRouterType:e.input.routerType}},h=function(e){var t=e.routerless,n=e.router,r=t?(0,s.w)(t):(0,s.w)(e),o=n?(0,s.C)(n):(0,s.C)(e);return(0,c.connect)(p)((function(e){var t=e.compProviderRouterType,n=i()(e,l);return"routerless"===t?(0,u.jsx)(r,f({},n)):(0,u.jsx)(o,f({},n))}))}},67092:(e,t)=>{t.__esModule=!0;t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},88536:(e,t,n)=>{t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=c(n(14149)),a=c(n(54545)),i=n(3074);function c(e){return e&&e.__esModule?e:{default:e}}t.createLocation=function(e,t,n,a){var c=void 0;"string"==typeof e?(c=(0,i.parsePath)(e)).state=t:(void 0===(c=r({},e)).pathname&&(c.pathname=""),c.search?"?"!==c.search.charAt(0)&&(c.search="?"+c.search):c.search="",c.hash?"#"!==c.hash.charAt(0)&&(c.hash="#"+c.hash):c.hash="",void 0!==t&&void 0===c.state&&(c.state=t));try{c.pathname=decodeURI(c.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+c.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(c.key=n),a?c.pathname?"/"!==c.pathname.charAt(0)&&(c.pathname=(0,o.default)(c.pathname,a.pathname)):c.pathname=a.pathname:c.pathname||(c.pathname="/"),c},t.locationsAreEqual=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,a.default)(e.state,t.state)}},3074:(e,t)=>{t.__esModule=!0;t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e};var n=t.hasBasename=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};t.stripBasename=function(e,t){return n(e,t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},t.createPath=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},52540:(e,t,n)=>{var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=l(n(30670)),a=l(n(41143)),i=n(88536),c=n(3074),s=l(n(3405)),u=n(67092);function l(e){return e&&e.__esModule?e:{default:e}}var d="hashchange",f={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+(0,c.stripLeadingSlash)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c.stripLeadingSlash,decodePath:c.addLeadingSlash},slash:{encodePath:c.addLeadingSlash,decodePath:c.addLeadingSlash}},p=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},h=function(e){return window.location.hash=e},m=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)};t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(u.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,u.supportsGoWithoutReloadUsingHash)(),l=e.getUserConfirmation,y=void 0===l?u.getConfirmation:l,v=e.hashType,g=void 0===v?"slash":v,b=e.basename?(0,c.stripTrailingSlash)((0,c.addLeadingSlash)(e.basename)):"",w=f[g],O=w.encodePath,x=w.decodePath,P=function(){var e=x(p());return(0,o.default)(!b||(0,c.hasBasename)(e,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+b+'".'),b&&(e=(0,c.stripBasename)(e,b)),(0,i.createLocation)(e)},j=(0,s.default)(),S=function(e){r(q,e),q.length=t.length,j.notifyListeners(q.location,q.action)},E=!1,A=null,C=function(){var e=p(),t=O(e);if(e!==t)m(t);else{var n=P(),r=q.location;if(!E&&(0,i.locationsAreEqual)(r,n))return;if(A===(0,c.createPath)(n))return;A=null,k(n)}},k=function(e){if(E)E=!1,S();else{j.confirmTransitionTo(e,"POP",y,(function(t){t?S({action:"POP",location:e}):Z(e)}))}},Z=function(e){var t=q.location,n=L.lastIndexOf((0,c.createPath)(t));-1===n&&(n=0);var r=L.lastIndexOf((0,c.createPath)(e));-1===r&&(r=0);var o=n-r;o&&(E=!0,M(o))},D=p(),F=O(D);D!==F&&m(F);var N=P(),L=[(0,c.createPath)(N)],T=function(e){return"#"+O(b+(0,c.createPath)(e))},R=function(e,t){(0,o.default)(void 0===t,"Hash history cannot push state; it is ignored");var n="PUSH",r=(0,i.createLocation)(e,void 0,void 0,q.location);j.confirmTransitionTo(r,n,y,(function(e){if(e){var t=(0,c.createPath)(r),a=O(b+t);if(p()!==a){A=t,h(a);var i=L.lastIndexOf((0,c.createPath)(q.location)),s=L.slice(0,-1===i?0:i+1);s.push(t),L=s,S({action:n,location:r})}else(0,o.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),S()}}))},_=function(e,t){(0,o.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n="REPLACE",r=(0,i.createLocation)(e,void 0,void 0,q.location);j.confirmTransitionTo(r,n,y,(function(e){if(e){var t=(0,c.createPath)(r),o=O(b+t);p()!==o&&(A=t,m(o));var a=L.indexOf((0,c.createPath)(q.location));-1!==a&&(L[a]=t),S({action:n,location:r})}}))},M=function(e){(0,o.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},I=function(){return M(-1)},U=function(){return M(1)},B=0,z=function(e){1===(B+=e)?(0,u.addEventListener)(window,d,C):0===B&&(0,u.removeEventListener)(window,d,C)},H=!1,W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=j.setPrompt(e);return H||(z(1),H=!0),function(){return H&&(H=!1,z(-1)),t()}},$=function(e){var t=j.appendListener(e);return z(1),function(){z(-1),t()}},q={length:t.length,action:"POP",location:N,createHref:T,push:R,replace:_,go:M,goBack:I,goForward:U,block:W,listen:$};return q}},3405:(e,t,n)=>{t.__esModule=!0;var r,o=n(30670),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(){var e=null,t=[];return{setPrompt:function(t){return(0,a.default)(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):((0,a.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}}}]);