import{r as E}from"./vendor-react-C630P38J.js";var x={},j;function U(){if(j)return x;j=1,Object.defineProperty(x,"__esModule",{value:!0}),x.parse=m,x.serialize=S;const r=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,o=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,l=Object.prototype.toString,p=(()=>{const n=function(){};return n.prototype=Object.create(null),n})();function m(n,u){const t=new p,f=n.length;if(f<2)return t;const v=(u==null?void 0:u.decode)||O;let a=0;do{const h=n.indexOf("=",a);if(h===-1)break;const d=n.indexOf(";",a),C=d===-1?f:d;if(h>C){a=n.lastIndexOf(";",h-1)+1;continue}const e=g(n,a,h),y=w(n,h,e),_=n.slice(e,y);if(t[_]===void 0){let $=g(n,h+1,C),R=w(n,C,$);const D=v(n.slice($,R));t[_]=D}a=C+1}while(at;){const f=n.charCodeAt(--u);if(f!==32&&f!==9)return u+1}return t}function S(n,u,t){const f=(t==null?void 0:t.encode)||encodeURIComponent;if(!r.test(n))throw new TypeError(`argument name is invalid: ${n}`);const v=f(u);if(!o.test(v))throw new TypeError(`argument val is invalid: ${u}`);let a=n+"="+v;if(!t)return a;if(t.maxAge!==void 0){if(!Number.isInteger(t.maxAge))throw new TypeError(`option maxAge is invalid: ${t.maxAge}`);a+="; Max-Age="+t.maxAge}if(t.domain){if(!i.test(t.domain))throw new TypeError(`option domain is invalid: ${t.domain}`);a+="; Domain="+t.domain}if(t.path){if(!s.test(t.path))throw new TypeError(`option path is invalid: ${t.path}`);a+="; Path="+t.path}if(t.expires){if(!b(t.expires)||!Number.isFinite(t.expires.valueOf()))throw new TypeError(`option expires is invalid: ${t.expires}`);a+="; Expires="+t.expires.toUTCString()}if(t.httpOnly&&(a+="; HttpOnly"),t.secure&&(a+="; Secure"),t.partitioned&&(a+="; Partitioned"),t.priority)switch(typeof t.priority=="string"?t.priority.toLowerCase():void 0){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${t.priority}`)}if(t.sameSite)switch(typeof t.sameSite=="string"?t.sameSite.toLowerCase():t.sameSite){case!0:case"strict":a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"none":a+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${t.sameSite}`)}return a}function O(n){if(n.indexOf("%")===-1)return n;try{return decodeURIComponent(n)}catch{return n}}function b(n){return l.call(n)==="[object Date]"}return x}var k=U();function z(){const r=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof r=="boolean"?r:typeof document=="object"&&typeof document.cookie=="string"}function H(r){return typeof r=="string"?k.parse(r):typeof r=="object"&&r!==null?r:{}}function I(r,o={}){const i=q(r);if(!o.doNotParse)try{return JSON.parse(i)}catch{}return r}function q(r){return r&&r[0]==="j"&&r[1]===":"?r.substr(2):r}class F{constructor(o,i={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const l=this.cookies;this.cookies=k.parse(document.cookie),this._checkChanges(l)};const s=typeof document>"u"?"":document.cookie;this.cookies=H(o||s),this.defaultSetOptions=i,this.HAS_DOCUMENT_COOKIE=z()}_emitChange(o){for(let i=0;i{o[s]!==this.cookies[s]&&this._emitChange({name:s,value:I(this.cookies[s])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(o,i={}){return i.doNotUpdate||this.update(),I(this.cookies[o],i)}getAll(o={}){o.doNotUpdate||this.update();const i={};for(let s in this.cookies)i[s]=I(this.cookies[s],o);return i}set(o,i,s){s?s=Object.assign(Object.assign({},this.defaultSetOptions),s):s=this.defaultSetOptions;const l=typeof i=="string"?i:JSON.stringify(i);this.cookies=Object.assign(Object.assign({},this.cookies),{[o]:l}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=k.serialize(o,l,s)),this._emitChange({name:o,value:i,options:s})}remove(o,i){const s=i=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),i),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[o],this.HAS_DOCUMENT_COOKIE&&(document.cookie=k.serialize(o,"",s)),this._emitChange({name:o,value:void 0,options:i})}addChangeListener(o){this.changeListeners.push(o),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(o){const i=this.changeListeners.indexOf(o);i>=0&&this.changeListeners.splice(i,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0])}}const L=E.createContext(null),{Provider:K,Consumer:X}=L,Z=r=>{const o=E.useMemo(()=>r.cookies?r.cookies:new F(void 0,r.defaultSetOptions),[r.cookies,r.defaultSetOptions]);return E.createElement(K,{value:o},r.children)};var P={exports:{}},c={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var A;function V(){if(A)return c;A=1;var r=typeof Symbol=="function"&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,p=r?Symbol.for("react.profiler"):60114,m=r?Symbol.for("react.provider"):60109,g=r?Symbol.for("react.context"):60110,w=r?Symbol.for("react.async_mode"):60111,S=r?Symbol.for("react.concurrent_mode"):60111,O=r?Symbol.for("react.forward_ref"):60112,b=r?Symbol.for("react.suspense"):60113,n=r?Symbol.for("react.suspense_list"):60120,u=r?Symbol.for("react.memo"):60115,t=r?Symbol.for("react.lazy"):60116,f=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,a=r?Symbol.for("react.responder"):60118,h=r?Symbol.for("react.scope"):60119;function d(e){if(typeof e=="object"&&e!==null){var y=e.$$typeof;switch(y){case o:switch(e=e.type,e){case w:case S:case s:case p:case l:case b:return e;default:switch(e=e&&e.$$typeof,e){case g:case O:case t:case u:case m:return e;default:return y}}case i:return y}}}function C(e){return d(e)===S}return c.AsyncMode=w,c.ConcurrentMode=S,c.ContextConsumer=g,c.ContextProvider=m,c.Element=o,c.ForwardRef=O,c.Fragment=s,c.Lazy=t,c.Memo=u,c.Portal=i,c.Profiler=p,c.StrictMode=l,c.Suspense=b,c.isAsyncMode=function(e){return C(e)||d(e)===w},c.isConcurrentMode=C,c.isContextConsumer=function(e){return d(e)===g},c.isContextProvider=function(e){return d(e)===m},c.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===o},c.isForwardRef=function(e){return d(e)===O},c.isFragment=function(e){return d(e)===s},c.isLazy=function(e){return d(e)===t},c.isMemo=function(e){return d(e)===u},c.isPortal=function(e){return d(e)===i},c.isProfiler=function(e){return d(e)===p},c.isStrictMode=function(e){return d(e)===l},c.isSuspense=function(e){return d(e)===b},c.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===s||e===S||e===p||e===l||e===b||e===n||typeof e=="object"&&e!==null&&(e.$$typeof===t||e.$$typeof===u||e.$$typeof===m||e.$$typeof===g||e.$$typeof===O||e.$$typeof===v||e.$$typeof===a||e.$$typeof===h||e.$$typeof===f)},c.typeOf=d,c}var N;function J(){return N||(N=1,P.exports=V()),P.exports}var T,M;function W(){if(M)return T;M=1;var r=J(),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},p={};p[r.ForwardRef]=s,p[r.Memo]=l;function m(t){return r.isMemo(t)?l:p[t.$$typeof]||o}var g=Object.defineProperty,w=Object.getOwnPropertyNames,S=Object.getOwnPropertySymbols,O=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,n=Object.prototype;function u(t,f,v){if(typeof f!="string"){if(n){var a=b(f);a&&a!==n&&u(t,a,v)}var h=w(f);S&&(h=h.concat(S(f)));for(var d=m(t),C=m(f),e=0;e");const l=Object.assign(Object.assign({},{doNotUpdate:!0}),o),[p,m]=E.useState(()=>i.getAll(l));Y(()=>{function O(){if(!i)throw new Error("Missing ");const b=i.getAll(l);G(r||null,b,p)&&m(b)}return i.addChangeListener(O),()=>{i.removeChangeListener(O)}},[i,p]);const g=E.useMemo(()=>i.set.bind(i),[i]),w=E.useMemo(()=>i.remove.bind(i),[i]),S=E.useMemo(()=>i.update.bind(i),[i]);return[p,g,w,S]}function G(r,o,i){if(!r)return!0;for(let s of r)if(o[s]!==i[s])return!0;return!1}export{F as C,Z as a,ee as u};