(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8744,1247],{40257:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(44227)},44227:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var c=[],l=!1,u=-1;function p(){l&&r&&(l=!1,r.length?c=r.concat(c):u=-1,c.length&&d())}function d(){if(!l){var e=a(p);l=!0;for(var t=c.length;t;){for(r=c,c=[];++u<t;)r&&r[u].run();u=-1,t=c.length}r=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||l||a(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},s=!0;try{t[e](o,o.exports,r),s=!1}finally{s&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},68882:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=n(2265);t.TagManagerNoscript=function({gtmID:e,mtmURL:t,mtmID:n}){return r.createElement(r.Fragment,null,r.createElement("noscript",{id:"analytics-gtm-noscript",dangerouslySetInnerHTML:{__html:function({gtmID:e}){return`<iframe src="https://www.googletagmanager.com/ns.html?id=${e}" height="0" width="0" style="display:none;visibility:hidden"></iframe>`}({gtmID:e})}}),r.createElement("noscript",{id:"analytics-mtm-noscript",dangerouslySetInnerHTML:{__html:function({mtmURL:e,mtmID:t}){return`<img src="${e}/matomo.php?idsite=${t}&rec=1" alt="Matomo Tracker" style="display:none;visibility:hidden" />`}({mtmURL:t,mtmID:n})}}))},t.TagManagerScript=function({gtmID:e,mtmURL:t,mtmID:n,autoInit:i=!0}){return r.createElement(r.Fragment,null,r.createElement("script",{id:"analytics-session-script",dangerouslySetInnerHTML:{__html:`
    (function(w) {
  /*! js-cookie v3.0.5 | MIT */
  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var t=function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});return t}));
  function uuidv4(){return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(a){return (a^Math.random()*16>>a/4).toString(16)})}
  function normalizeDomain(domain) {return '.'+domain.replace(/^http(s)?:\\/\\//gi, '').replace(/\\/$/, '').split('.').slice(-2).join('.')}
  var uuidv4re=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
  var browserId=Cookies.get('browserId')||w.browserId||(function(){
    try{return w.localStorage.getItem('browserId');}catch(e){return null;}
  })()||uuidv4();
  var sessionId=Cookies.get('browserSessionId')||w.browserSessionId||(function(){
    try{return w.sessionStorage.getItem('browserSessionId')||w.sessionStorage.getItem('browserId');}catch(e){return null;}
  })()||uuidv4();
  if(!browserId.match(uuidv4re)){browserId=uuidv4();}
  if(!sessionId.match(uuidv4re)){sessionId=uuidv4();}
  w.browserId=browserId;
  w.browserSessionId=sessionId;
  try{
    w.localStorage.setItem('browserId', browserId);
    w.sessionStorage.setItem('browserId', sessionId);
    w.sessionStorage.setItem('browserSessionId', sessionId);
  }catch(e){}
  var domain=normalizeDomain(w.location.hostname);
  var cookieOptions={path:'/',secure:true,domain:domain,sameSite:w.location.protocol==='https:'?'None':'Lax'};
  Cookies.set('browserId',browserId,Object.assign({},cookieOptions,{expires: 365}));
  Cookies.set('browserSessionId',sessionId,cookieOptions);
  w.dataLayer=w.dataLayer||[];w._mtm=w._mtm||[];
  w.dataLayer.push({browser_id:browserId,session_id:sessionId});
  w._mtm.push({event:'setBrowserSession',browser_id:browserId,session_id:sessionId});
})(window);
  `}}),r.createElement("script",{id:"analytics-gtm-script",dangerouslySetInnerHTML:{__html:function({gtmID:e}){return`
    (function(w,l,d){
      w._gtm_initialized=false;
      w[l]=w[l]||[];
      w[l].push({...(w._session||{})});
      w._init_gtm=function(){
        if(w._gtm_initialized)return;
        w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});
        var g=d.createElement('script'),s=d.getElementsByTagName('script')[0];
        g.type='text/javascript';
        g.async=true;
        g.src='https://www.googletagmanager.com/gtm.js?id=${e}&l=dataLayer';
        s.parentNode.insertBefore(g,s);
        g.onload=function(){
          w._gtm_initialized=true;
        };
      }
    })(window,'dataLayer',document);
  `}({gtmID:e})}}),r.createElement("script",{id:"analytics-mtm-script",dangerouslySetInnerHTML:{__html:function({mtmURL:e,mtmID:t}){return`
    (function(w,l,d){
      w._mtm_initialized=false;
      w[l]=w[l]||[];
      w[l].push({...(w._session||{})});
      w._init_mtm=function(){
        if(w._mtm_initialized)return;
        w[l].push({'mtm.startTime':(new Date().getTime()),'event':'mtm.Start'});
        var g=d.createElement('script'),s=d.getElementsByTagName('script')[0];
        g.type='text/javascript';
        g.async=true;
        g.src='${e}/js/container_${t}.js';
        s.parentNode.insertBefore(g,s);
        g.onload=function(){
          w._mtm_initialized=true;
        };
      }
    })(window,'_mtm',document);
  `}({mtmURL:t,mtmID:n})}}),i&&r.createElement("script",{id:"analytics-auto-init-script",dangerouslySetInnerHTML:{__html:`
    (function(w,g,m){
      if(typeof w[g]==='function')w[g]();
      if(typeof w[m]==='function')w[m]();
    })(window,'_init_gtm','_init_mtm');
  `}}))}},46794:function(e,t,n){n(68882)},30631:function(e,t,n){"use strict";function r(){return typeof window>"u"}function i(e){r()||(Array.isArray(window.dataLayer)?window.dataLayer.push(e):console.log("window.dataLayer does not exist"),Array.isArray(window._mtm)?window._mtm.push(e):console.log("window._mtm does not exist"))}function o(){if(r()){console.warn("Cant initialize tag manager on server side");return}"function"!=typeof window._init_gtm?console.warn("Cant init GTM, please check if GTM script exists"):window._init_gtm(),"function"!=typeof window._init_mtm?console.warn("Cant init MTM, please check if MTM script exists"):window._init_mtm()}n.d(t,{AB:function(){return i},zK:function(){return o}})},10855:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var r=n(57437),i=n(80684),o=n(75461),s=n(54365);let a=(0,n(52074).g)("check-all","sc"),c=Object.freeze({wrapper:`${a}__wrapper`,link:`${a}__link`,icon:`${a}__icon`,iconGray:`${a}__icon--gray`}),l=({children:e,className:t,linkClassName:n,iconGrayBackground:a,Link:l,event:u,href:p,dataLayerPush:d})=>{let m=l??o.rU;return(0,r.jsx)("div",{className:(0,s.Z)(c.wrapper,t),onClick:()=>{u&&d(u)},children:(0,r.jsxs)(m,{className:(0,s.Z)(c.link,n),href:p,children:[e,(0,r.jsx)("span",{className:(0,s.Z)(c.icon,{[c.iconGray]:a}),children:(0,r.jsx)(i.IconFdsArrowUpRightSmallO,{size:24})})]})})}},82778:function(e,t,n){"use strict";n.d(t,{L:function(){return c},g:function(){return a}});var r=n(2265),i=n(30631);let o=null,s=e=>{o=e},a=()=>o,c=e=>{let{env:t}=e,n=(0,r.useRef)(!1);return n.current||(s(t),n.current=!0),(0,r.useEffect)(()=>{"production"===t.NODE_ENV&&(0,i.zK)()},[t.NODE_ENV]),null}},52074:function(e,t,n){"use strict";function r(e,t){return`finkit-widgets-${t}-${e}`}n.d(t,{g:function(){return r}})},6554:function(e,t,n){"use strict";let r;n.d(t,{D:function(){return s},h:function(){return c}});var i=n(31620),o=n(56891),s=((r=s||{}).icon="icon",r.chip="chip",r.accordion="accordion",r.button="button",r.checkbox="checkbox",r.radio="radio",r.select="select",r.toggle="toggle",r.tooltip="tooltip",r.link="link",r.banner="banner",r.tag="tag",r.date="date",r.field="field",r.offer="offer",r.tab="tab",r.submitButton="submitButton",r.popup="popup",r.block="block",r);let a={icon:"click_icon_",chip:"click_chip_",accordion:"show_acc_",button:"click_button_",checkbox:"click_check_",radio:"click_radio_",select:"click_sel_",toggle:"click_togg_",tooltip:"click_tip_",link:"click_link_",banner:"click_bnr_",tag:"click_tag_",date:"input_date_",field:"input_field_",offer:"click_offer_",tab:"click_tab_",submitButton:"form_button_",popup:"show_pop_up_",block:"click_block_"},c=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:r})=>{let s={event:"data-event",eventCategory:e,eventAction:a[t]+(0,i.t)(n)};void 0!==r&&(s.eventLabel=(0,i.t)("string"==typeof r?r:r.toString())),(0,o.d)(s)}},56891:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(30631);let i=(e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),i=n?JSON.parse(n):[];e.event||(e.event="data-event"),"string"==typeof e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),e.eventLabel||(e.eventLabel="undefined");let o=i.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!o){if(t){let t={...e};t.url=window.location.pathname,i.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(i))}(0,r.AB)(e)}}},31620:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});let r={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},i=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in r?r[t]:e}).replaceAll(/[ \u00A0]/g,"_")},90422:function(e,t,n){"use strict";n.d(t,{t:function(){return g}});var r=n(57437),i=n(2265),o=n(35563),s=n(75461),a=n(54365),c=n(6554),l=n(56891),u=n(31620),p=n(10855);let d=(0,n(52074).g)("journal","sc"),m=Object.freeze({wrapper:"".concat(d,"__wrapper"),title:"".concat(d,"__title"),subtitle:"".concat(d,"__subtitle"),scrollableWrapper:"".concat(d,"__scrollable-wrapper"),chipsWrapper:"".concat(d,"__chips-wrapper"),slider:"".concat(d,"__slider"),sliderItem:"".concat(d,"__slider-item"),article:"".concat(d,"__article"),imgWrapper:"".concat(d,"__img-wrapper"),articleBody:"".concat(d,"__article-body"),articleTitle:"".concat(d,"__article-title"),articleDate:"".concat(d,"__article-date"),checkAllLink:"".concat(d,"__check-all-link")}),f="https://assets.finuslugi.ru/mp-assets/widgets/journal/default_post_image.png",h=e=>{if(!e||!/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e))return"";let t=new Date(e.replace(" ","T"));if(isNaN(t.getTime()))return"";let n=t.getDate(),r=t.getMonth();return"".concat(n," ").concat(["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][r])},g=e=>{var t;let{data:n,eventCategory:d="finkit-widgets-sc-journal",className:g}=e,_=(0,s._m)("xl"),[v,w]=(0,i.useState)(!0),[b,y]=(0,i.useState)(0),x=n.chips||[],k=(null==(t=null==x?void 0:x[Number(b)])?void 0:t.items)||[];if((0,i.useEffect)(()=>{w(!_)},[_]),0===x.length||0===k.length)return null;let j=(e,t)=>()=>{(0,c.h)({eventCategory:d,eventActionType:c.D.block,eventActionText:e||"",eventLabel:t})},I=e=>{e.target.src!==f&&(e.target.src=f)};return(0,r.jsxs)("div",{className:(0,a.Z)(m.wrapper,g),children:[(0,r.jsxs)(o.W2,{children:[(0,r.jsx)("h2",{className:m.title,children:null==n?void 0:n.title}),(0,r.jsx)("div",{className:m.subtitle,children:null==n?void 0:n.description})]}),(0,r.jsx)("div",{className:m.scrollableWrapper,children:(0,r.jsx)(o.W2,{children:(0,r.jsx)("div",{className:m.chipsWrapper,children:x.length>1&&(0,r.jsx)(s.cL,{chips:x,value:b,variant:"secondary",size:v?"m":"l",onChipClick:e=>{var t;let n=(null==(t=x[Number(e)])?void 0:t.label)||"";(0,c.h)({eventCategory:d,eventActionType:c.D.tab,eventActionText:n}),y(e)}})})})}),(0,r.jsxs)(o.W2,{children:[(0,r.jsx)(s.iR,{className:m.slider,options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3500,disableOnInteraction:!0},loop:!0},pagination:!0,navigation:!0,navigationVariant:"secondary",navigationSize:"s",children:k.map(e=>(0,r.jsx)(s.wI,{className:m.sliderItem,children:(0,r.jsxs)("a",{className:m.article,href:e.url,onClick:j(e.title,e.url),children:[(0,r.jsx)("div",{className:m.imgWrapper,children:(0,r.jsx)("img",{src:e.img,alt:"изображение: ".concat(e.title),onError:I})}),(0,r.jsxs)("div",{className:m.articleBody,children:[(0,r.jsx)("div",{className:m.articleTitle,children:e.title}),(0,r.jsx)("div",{className:m.articleDate,children:h(e.dt)})]})]})},e.title))},b),(0,r.jsx)(p.C,{href:(null==n?void 0:n.url)||"",event:{event:"data-event",eventCategory:d,eventAction:"link_".concat((0,u.t)((null==n?void 0:n.urlText)||"Показать все статьи")),eventLabel:(null==n?void 0:n.url)||""},dataLayerPush:l.d,className:m.checkAllLink,children:(null==n?void 0:n.urlText)||"Показать все статьи"})]})]})}},46295:function(e,t,n){"use strict";n.d(t,{S:function(){return a}}),n(57437),n(46794);var r=n(82778),i=n(52074),o=n(40257);let s=(0,i.g)("root-layout","sc"),a=(Object.freeze({layout:`${s}__layout`,body:`${s}__body`}),()=>{if(typeof window>"u")return{...o.env};let e=(0,r.g)();if(!e)throw Error("getEnvValue() вызвана на клиенте до инициализации контекста. Убедитесь, что env передан в RootLayout (LayoutClientInitializer вызовет setEnvStore).");return e})},17730:function(e,t,n){"use strict";n.d(t,{B:function(){return b}});var r=n(57437),i=n(35563),o=n(54365),s=n(80684),a=n(75461),c=n(6554),l=n(52074),u=n(2265);let p=(0,l.g)("support","sc"),d=Object.freeze({support:p,title:`${p}__title`,cardsContainer:`${p}__cards-container`}),m="cb-support",f=(0,l.g)("support-app-card","sc"),h=Object.freeze({supportAppCard:f,textWrapper:`${f}__text-wrapper`,imageContainer:`${f}__image-container`,title:`${f}__title`,description:`${f}__description`,button:`${f}__button`,imageWrapper:`${f}__image-wrapper`,image:`${f}__image`}),g=({title:e,linkUrl:t,s3Assets:n,description:i})=>{let o=(0,a.aF)("s");return(0,r.jsxs)("div",{className:h.supportAppCard,onClick:()=>{o&&((0,c.h)({eventCategory:m,eventActionType:c.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,r.jsx)(a.zx,{className:h.button,iconLeft:(0,r.jsx)(s.IconFdsArrowUpRightSmallO,{size:24}),shape:"circle-icon",size:"xs"}),(0,r.jsxs)("div",{className:h.textWrapper,children:[(0,r.jsx)("div",{className:h.title,children:e}),!!i&&(0,r.jsx)("div",{className:h.description,children:i})]}),(0,r.jsx)("div",{className:h.imageContainer,children:(0,r.jsxs)("picture",{className:h.imageWrapper,children:[(0,r.jsx)("source",{media:"(max-width: 767px)",srcSet:`${n}/mp-assets/widgets/SupportBlock/mobile-app.png 1x, ${n}/mp-assets/widgets/SupportBlock/mobile-app@2x.png 2x`}),(0,r.jsx)("img",{className:h.image,loading:"lazy",src:`${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg`,srcSet:`${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg 1x, ${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app@2x.jpg 2x`})]})})]})},_=(0,l.g)("support-phone-card","sc"),v=Object.freeze({supportPhoneCard:_,contacts:`${_}__contacts`,contactsExtra:`${_}__contacts-extra`,phone:`${_}__phone`,phonesExtra:`${_}__phones-extra`,phoneExtra:`${_}__phone-extra`,chat:`${_}__chat`,text:`${_}__text`,image:`${_}__image`}),w=({phones:e,phonesExtra:t,description:n,s3Assets:i})=>{let o=(0,u.useCallback)(()=>{var e,t,n;null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)||n.call(t),(0,c.h)({eventCategory:m,eventActionType:c.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),s=e=>{let t=e.replace(/[\s-]/g,"");(0,c.h)({eventCategory:m,eventActionType:c.D.link,eventActionText:"phone",eventLabel:t})};return(0,r.jsxs)("div",{className:v.supportPhoneCard,children:[(0,r.jsxs)("div",{className:v.contacts,children:[e.map(e=>(0,r.jsx)("a",{className:v.phone,href:e.href,onClick:()=>s(e.label),children:e.label},e.label)),(0,r.jsx)("span",{className:v.chat,onClick:o,children:"Онлайн чат"})]}),(null==t?void 0:t.length)>0&&(0,r.jsxs)("div",{className:v.contactsExtra,children:[(0,r.jsx)("p",{className:v.text,children:"Дополнительные телефоны"}),(0,r.jsx)("div",{className:v.phonesExtra,children:t.map(e=>(0,r.jsx)("a",{className:v.phoneExtra,href:e.href,onClick:()=>s(e.label),children:e.label},e.label))})]}),(0,r.jsx)("p",{className:v.text,children:n}),(0,r.jsx)("img",{className:v.image,src:`${i}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`})]})},b=({className:e,phoneCard:t,appCard:n,s3Assets:s})=>(0,r.jsx)("section",{className:(0,o.Z)(d.support,e),children:(0,r.jsxs)(i.W2,{children:[(0,r.jsx)(i.X6,{as:"h2",type:"display",weight:"bold",className:d.title,children:"Поддержка"}),(0,r.jsxs)("div",{className:d.cardsContainer,children:[(0,r.jsx)(w,{s3Assets:s,...t}),(0,r.jsx)(g,{s3Assets:s,...n})]})]})});b.displayName="Support"},77337:function(e,t,n){"use strict";n.d(t,{jb:function(){return y},pJ:function(){return b},xn:function(){return x}});let r=/#/g,i=/&/g,o=/\//g,s=/=/g,a=/\+/g,c=/%5e/gi,l=/%60/gi,u=/%7c/gi,p=/%20/gi;function d(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(u,"|").replace(a,"%2B").replace(p,"+").replace(r,"%23").replace(i,"%26").replace(l,"`").replace(c,"^").replace(o,"%2F")}function m(e){return d(e).replace(s,"%3D")}function f(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let h=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,g=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_=/^([/\\]\s*){2,}[^/\\]/,v=/^\.?\//;function w(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?h.test(e):g.test(e)||!!t.acceptRelative&&_.test(e)}function b(e,t){if(!t||"/"===t||w(e))return e;let n=function(e="",t){return(!function(e="",t){return e.endsWith("/")}(e)?e:e.slice(0,-1))||"/"}(t);if(e.startsWith(n)){let t=e[n.length];if(!t||"/"===t||"?"===t)return e}return x(n,e)}function y(e,t){let n=function e(t="",n){let r=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){let[,e,t=""]=r;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!w(t,{acceptRelative:!0}))return n?e(n+t):j(t);let[,i="",o,s=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,a="",c=""]=s.match(/([^#/?]*)(.*)?/)||[];"file:"===i&&(c=c.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:l,search:u,hash:p}=j(c);return{protocol:i.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:a,pathname:l,search:u,hash:p,[k]:!i}}(e),r={...function(e=""){let t=Object.create(null);for(let n of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=f(e[1].replace(a," "));if("__proto__"===r||"constructor"===r)continue;let i=f((e[2]||"").replace(a," "));void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}(n.search),...t};return n.search=Object.keys(r).filter(e=>void 0!==r[e]).map(e=>{var t;return(("number"==typeof(t=r[e])||"boolean"==typeof t)&&(t=String(t)),t)?Array.isArray(t)?t.map(t=>`${m(e)}=${d(t)}`).join("&"):`${m(e)}=${d(t)}`:m(e)}).filter(Boolean).join("&"),function(e){let t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",i=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[k]?(e.protocol||"")+"//":"")+i+o+t+n+r}(n)}function x(e,...t){let n=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(n){let t=e.replace(v,"");n=function(e="",t){return e.endsWith("/")?e:e+"/"}(n)+t}else n=e;return n}let k=Symbol.for("ufo:protocolRelative");function j(e=""){let[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}}}]);
//# sourceMappingURL=8744-ec6385c430c5a6b9.js.map