"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[82363],{25127:function(n,t,e){e.d(t,{TM:function(){return f},rc:function(){return r}});var r,a=e(68102);!function(n){n.Pop="POP",n.Push="PUSH",n.Replace="REPLACE"}(r||(r={}));var u=function(n){return n},i="beforeunload",o="hashchange",c="popstate";function f(n){void 0===n&&(n={});var t=n.window,e=void 0===t?document.defaultView:t,f=e.history;function d(){var n=v(e.location.hash.substr(1)),t=n.pathname,r=void 0===t?"/":t,a=n.search,i=void 0===a?"":a,o=n.hash,c=void 0===o?"":o,s=f.state||{};return[s.idx,u({pathname:r,search:i,hash:c,state:s.usr||null,key:s.key||"default"})]}var p=null;function g(){if(p)E.call(p),p=null;else{var n=r.Pop,t=d(),e=t[0],a=t[1];if(E.length){if(null!=e){var u=k-e;u&&(p={action:n,location:a,retry:function(){O(-1*u)}},O(u))}}else L(n)}}e.addEventListener(c,g),e.addEventListener(o,(function(){h(d()[1])!==h(m)&&g()}));var b=r.Pop,y=d(),k=y[0],m=y[1],P=l(),E=l();function w(n){return function(){var n=document.querySelector("base"),t="";if(n&&n.getAttribute("href")){var r=e.location.href,a=r.indexOf("#");t=-1===a?r:r.slice(0,a)}return t}()+"#"+("string"==typeof n?n:h(n))}function x(n,t){return void 0===t&&(t=null),u((0,a.A)({pathname:m.pathname,hash:"",search:""},"string"==typeof n?v(n):n,{state:t,key:Math.random().toString(36).substr(2,8)}))}function A(n,t){return[{usr:n.state,key:n.key,idx:t},w(n)]}function S(n,t,e){return!E.length||(E.call({action:n,location:t,retry:e}),!1)}function L(n){b=n;var t=d();k=t[0],m=t[1],P.call({action:b,location:m})}function O(n){f.go(n)}return null==k&&(k=0,f.replaceState((0,a.A)({},f.state,{idx:k}),"")),{get action(){return b},get location(){return m},createHref:w,push:function n(t,a){var u=r.Push,i=x(t,a);if(S(u,i,(function(){n(t,a)}))){var o=A(i,k+1),c=o[0],s=o[1];try{f.pushState(c,"",s)}catch(n){e.location.assign(s)}L(u)}},replace:function n(t,e){var a=r.Replace,u=x(t,e);if(S(a,u,(function(){n(t,e)}))){var i=A(u,k),o=i[0],c=i[1];f.replaceState(o,"",c),L(a)}},go:O,back:function(){O(-1)},forward:function(){O(1)},listen:function(n){return P.push(n)},block:function(n){var t=E.push(n);return 1===E.length&&e.addEventListener(i,s),function(){t(),E.length||e.removeEventListener(i,s)}}}}function s(n){n.preventDefault(),n.returnValue=""}function l(){var n=[];return{get length(){return n.length},push:function(t){return n.push(t),function(){n=n.filter((function(n){return n!==t}))}},call:function(t){n.forEach((function(n){return n&&n(t)}))}}}function h(n){var t=n.pathname,e=void 0===t?"/":t,r=n.search,a=void 0===r?"":r,u=n.hash,i=void 0===u?"":u;return a&&"?"!==a&&(e+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(e+="#"===i.charAt(0)?i:"#"+i),e}function v(n){var t={};if(n){var e=n.indexOf("#");e>=0&&(t.hash=n.substr(e),n=n.substr(0,e));var r=n.indexOf("?");r>=0&&(t.search=n.substr(r),n=n.substr(0,r)),n&&(t.pathname=n)}return t}}}]);