@wellesley/router 1.0.172 → 1.0.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ var Tq=Object.defineProperty,Aq=(e,t,n)=>t in e?Tq(e,t,{enumerable:!0,configurab
|
|
|
24
24
|
* Released under MIT license <https://lodash.com/license>
|
|
25
25
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
26
26
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
27
|
-
*/function Mq(){return wI||(wI=1,e=Y0,t=Y0.exports,function(){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t,n,r){for(var a=-1,o=null==e?0:e.length;++a<o;){var i=e[a];t(r,i,n(i),e)}return r}function a(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function o(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function i(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function s(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}function c(e,t){return!(null==e||!e.length)&&y(e,t,0)>-1}function l(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}function u(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}function f(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function d(e,t,n,r){var a=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++a]);++a<o;)n=t(n,e[a],a,e);return n}function p(e,t,n,r){var a=null==e?0:e.length;for(r&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function h(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function m(e,t,n){var r;return n(e,(function(e,n,a){if(t(e,n,a))return r=n,!1})),r}function g(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}function y(e,t,n){return t==t?function(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}(e,t,n):g(e,b,n)}function v(e,t,n,r){for(var a=n-1,o=e.length;++a<o;)if(r(e[a],t))return a;return-1}function b(e){return e!=e}function _(e,t){var n=null==e?0:e.length;return n?S(e,t)/n:X}function w(e){return function(t){return null==t?V:t[e]}}function k(e){return function(t){return null==e?V:e[t]}}function x(e,t,n,r,a){return a(e,(function(e,a,o){n=r?(r=!1,e):t(n,e,a,o)})),n}function S(e,t){for(var n,r=-1,a=e.length;++r<a;){var o=t(e[r]);o!==V&&(n=n===V?o:n+o)}return n}function E(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function A(e){return e&&e.slice(0,q(e)+1).replace(We,"")}function C(e){return function(t){return e(t)}}function z(e,t){return u(t,(function(t){return e[t]}))}function I(e,t){return e.has(t)}function T(e,t){for(var n=-1,r=e.length;++n<r&&y(t,e[n],0)>-1;);return n}function R(e,t){for(var n=e.length;n--&&y(t,e[n],0)>-1;);return n}function j(e){return"\\"+Kt[e]}function P(e){return Ut.test(e)}function O(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function N(e,t){return function(n){return e(t(n))}}function M(e,t){for(var n=-1,r=e.length,a=0,o=[];++n<r;){var i=e[n];i!==t&&i!==$||(e[n]=$,o[a++]=n)}return o}function D(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function B(e){return P(e)?function(e){for(var t=Vt.lastIndex=0;Vt.test(e);)++t;return t}(e):pn(e)}function L(e){return P(e)?function(e){return e.match(Vt)||[]}(e):function(e){return e.split("")}(e)}function q(e){for(var t=e.length;t--&&He.test(e.charAt(t)););return t}var V,F="Expected a function",U="__lodash_hash_undefined__",$="__lodash_placeholder__",W=16,H=32,G=64,Q=128,K=256,Y=1/0,Z=9007199254740991,X=NaN,J=4294967295,ee=J-1,te=J>>>1,ne=[["ary",Q],["bind",1],["bindKey",2],["curry",8],["curryRight",W],["flip",512],["partial",H],["partialRight",G],["rearg",K]],re="[object Arguments]",ae="[object Array]",oe="[object Boolean]",ie="[object Date]",se="[object Error]",ce="[object Function]",le="[object GeneratorFunction]",ue="[object Map]",fe="[object Number]",de="[object Object]",pe="[object Promise]",he="[object RegExp]",me="[object Set]",ge="[object String]",ye="[object Symbol]",ve="[object WeakMap]",be="[object ArrayBuffer]",_e="[object DataView]",we="[object Float32Array]",ke="[object Float64Array]",xe="[object Int8Array]",Se="[object Int16Array]",Ee="[object Int32Array]",Ae="[object Uint8Array]",Ce="[object Uint8ClampedArray]",ze="[object Uint16Array]",Ie="[object Uint32Array]",Te=/\b__p \+= '';/g,Re=/\b(__p \+=) '' \+/g,je=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pe=/&(?:amp|lt|gt|quot|#39);/g,Oe=/[&<>"']/g,Ne=RegExp(Pe.source),Me=RegExp(Oe.source),De=/<%-([\s\S]+?)%>/g,Be=/<%([\s\S]+?)%>/g,Le=/<%=([\s\S]+?)%>/g,qe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ve=/^\w*$/,Fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ue=/[\\^$.*+?()[\]{}|]/g,$e=RegExp(Ue.source),We=/^\s+/,He=/\s/,Ge=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Qe=/\{\n\/\* \[wrapped with (.+)\] \*/,Ke=/,? & /,Ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ze=/[()=,{}\[\]\/\s]/,Xe=/\\(\\)?/g,Je=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,et=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,ot=/^(?:0|[1-9]\d*)$/,it=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,st=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,lt="\\ud800-\\udfff",ut="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ft="\\u2700-\\u27bf",dt="a-z\\xdf-\\xf6\\xf8-\\xff",pt="A-Z\\xc0-\\xd6\\xd8-\\xde",ht="\\ufe0e\\ufe0f",mt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",gt="['’]",yt="["+lt+"]",vt="["+mt+"]",bt="["+ut+"]",_t="\\d+",wt="["+ft+"]",kt="["+dt+"]",xt="[^"+lt+mt+_t+ft+dt+pt+"]",St="\\ud83c[\\udffb-\\udfff]",Et="[^"+lt+"]",At="(?:\\ud83c[\\udde6-\\uddff]){2}",Ct="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+pt+"]",It="\\u200d",Tt="(?:"+kt+"|"+xt+")",Rt="(?:"+zt+"|"+xt+")",jt="(?:['’](?:d|ll|m|re|s|t|ve))?",Pt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ot="(?:"+bt+"|"+St+")?",Nt="["+ht+"]?",Mt=Nt+Ot+"(?:"+It+"(?:"+[Et,At,Ct].join("|")+")"+Nt+Ot+")*",Dt="(?:"+[wt,At,Ct].join("|")+")"+Mt,Bt="(?:"+[Et+bt+"?",bt,At,Ct,yt].join("|")+")",Lt=RegExp(gt,"g"),qt=RegExp(bt,"g"),Vt=RegExp(St+"(?="+St+")|"+Bt+Mt,"g"),Ft=RegExp([zt+"?"+kt+"+"+jt+"(?="+[vt,zt,"$"].join("|")+")",Rt+"+"+Pt+"(?="+[vt,zt+Tt,"$"].join("|")+")",zt+"?"+Tt+"+"+jt,zt+"+"+Pt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_t,Dt].join("|"),"g"),Ut=RegExp("["+It+lt+ut+ht+"]"),$t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ht=-1,Gt={};Gt[we]=Gt[ke]=Gt[xe]=Gt[Se]=Gt[Ee]=Gt[Ae]=Gt[Ce]=Gt[ze]=Gt[Ie]=!0,Gt[re]=Gt[ae]=Gt[be]=Gt[oe]=Gt[_e]=Gt[ie]=Gt[se]=Gt[ce]=Gt[ue]=Gt[fe]=Gt[de]=Gt[he]=Gt[me]=Gt[ge]=Gt[ve]=!1;var Qt={};Qt[re]=Qt[ae]=Qt[be]=Qt[_e]=Qt[oe]=Qt[ie]=Qt[we]=Qt[ke]=Qt[xe]=Qt[Se]=Qt[Ee]=Qt[ue]=Qt[fe]=Qt[de]=Qt[he]=Qt[me]=Qt[ge]=Qt[ye]=Qt[Ae]=Qt[Ce]=Qt[ze]=Qt[Ie]=!0,Qt[se]=Qt[ce]=Qt[ve]=!1;var Kt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yt=parseFloat,Zt=parseInt,Xt="object"==typeof As&&As&&As.Object===Object&&As,Jt="object"==typeof self&&self&&self.Object===Object&&self,en=Xt||Jt||Function("return this")(),tn=t&&!t.nodeType&&t,nn=tn&&e&&!e.nodeType&&e,rn=nn&&nn.exports===tn,an=rn&&Xt.process,on=function(){try{return nn&&nn.require&&nn.require("util").types||an&&an.binding&&an.binding("util")}catch{}}(),sn=on&&on.isArrayBuffer,cn=on&&on.isDate,ln=on&&on.isMap,un=on&&on.isRegExp,fn=on&&on.isSet,dn=on&&on.isTypedArray,pn=w("length"),hn=k({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),mn=k({"&":"&","<":"<",">":">",'"':""","'":"'"}),gn=k({"&":"&","<":"<",">":">",""":'"',"'":"'"}),yn=function e(t){function k(e){if(Da(e)&&!zs(e)&&!(e instanceof ut)){if(e instanceof lt)return e;if(zo.call(e,"__wrapped__"))return la(e)}return new lt(e)}function He(){}function lt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=V}function ut(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function ft(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function dt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ht(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new pt;++t<n;)this.add(e[t])}function mt(e){this.size=(this.__data__=new dt(e)).size}function gt(e,t){var n=zs(e),r=!n&&Cs(e),a=!n&&!r&&Ts(e),o=!n&&!r&&!a&&Ns(e),i=n||r||a||o,s=i?E(e.length,wo):[],c=s.length;for(var l in e)!t&&!zo.call(e,l)||i&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Qr(l,c))||s.push(l);return s}function yt(e){var t=e.length;return t?e[Pn(0,t-1)]:V}function vt(e,t){return ia(ur(e),Ct(t,0,e.length))}function bt(e){return ia(ur(e))}function _t(e,t,n){(n===V||Ia(e[t],n))&&(n!==V||t in e)||Et(e,t,n)}function wt(e,t,n){var r=e[t];zo.call(e,t)&&Ia(r,n)&&(n!==V||t in e)||Et(e,t,n)}function kt(e,t){for(var n=e.length;n--;)if(Ia(e[n][0],t))return n;return-1}function xt(e,t,n,r){return Ai(e,(function(e,a,o){t(r,e,n(e),o)})),r}function St(e,t){return e&&fr(t,Za(t),e)}function Et(e,t,n){"__proto__"==t&&Ho?Ho(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function At(e,t){for(var n=-1,r=t.length,a=ho(r),o=null==e;++n<r;)a[n]=o?V:Ka(e,t[n]);return a}function Ct(e,t,n){return e==e&&(n!==V&&(e=e<=n?e:n),t!==V&&(e=e>=t?e:t)),e}function zt(e,t,n,r,o,i){var s,c=1&t,l=2&t,u=4&t;if(n&&(s=o?n(e,r,o,i):n(e)),s!==V)return s;if(!Ma(e))return e;var f=zs(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&zo.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return ur(e,s)}else{var d=Bi(e),p=d==ce||d==le;if(Ts(e))return ar(e,c);if(d==de||d==re||p&&!o){if(s=l||p?{}:Hr(e),!c)return l?function(e,t){return fr(e,Di(e),t)}(e,function(e,t){return e&&fr(t,Xa(t),e)}(s,e)):function(e,t){return fr(e,Mi(e),t)}(e,St(s,e))}else{if(!Qt[d])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case be:return or(e);case oe:case ie:return new r(+e);case _e:return function(e,t){return new e.constructor(t?or(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,n);case we:case ke:case xe:case Se:case Ee:case Ae:case Ce:case ze:case Ie:return ir(e,n);case ue:return new r;case fe:case ge:return new r(e);case he:return function(e){var t=new e.constructor(e.source,et.exec(e));return t.lastIndex=e.lastIndex,t}(e);case me:return new r;case ye:return function(e){return xi?bo(xi.call(e)):{}}(e)}}(e,d,c)}}i||(i=new mt);var h=i.get(e);if(h)return h;i.set(e,s),Os(e)?e.forEach((function(r){s.add(zt(r,t,n,r,e,i))})):js(e)&&e.forEach((function(r,a){s.set(a,zt(r,t,n,a,e,i))}));var m=f?V:(u?l?Br:Dr:l?Xa:Za)(e);return a(m||e,(function(r,a){m&&(r=e[a=r]),wt(s,a,zt(r,t,n,a,e,i))})),s}function It(e,t,n){var r=n.length;if(null==e)return!r;for(e=bo(e);r--;){var a=n[r],o=t[a],i=e[a];if(i===V&&!(a in e)||!o(i))return!1}return!0}function Tt(e,t,n){if("function"!=typeof e)throw new ko(F);return Vi((function(){e.apply(V,n)}),t)}function Rt(e,t,n,r){var a=-1,o=c,i=!0,s=e.length,f=[],d=t.length;if(!s)return f;n&&(t=u(t,C(n))),r?(o=l,i=!1):t.length>=200&&(o=I,i=!1,t=new ht(t));e:for(;++a<s;){var p=e[a],h=null==n?p:n(p);if(p=r||0!==p?p:0,i&&h==h){for(var m=d;m--;)if(t[m]===h)continue e;f.push(p)}else o(t,h,r)||f.push(p)}return f}function jt(e,t){var n=!0;return Ai(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function Pt(e,t,n){for(var r=-1,a=e.length;++r<a;){var o=e[r],i=t(o);if(null!=i&&(s===V?i==i&&!Va(i):n(i,s)))var s=i,c=o}return c}function Ot(e,t){var n=[];return Ai(e,(function(e,r,a){t(e,r,a)&&n.push(e)})),n}function Nt(e,t,n,r,a){var o=-1,i=e.length;for(n||(n=Gr),a||(a=[]);++o<i;){var s=e[o];t>0&&n(s)?t>1?Nt(s,t-1,n,r,a):f(a,s):r||(a[a.length]=s)}return a}function Mt(e,t){return e&&zi(e,t,Za)}function Dt(e,t){return e&&Ii(e,t,Za)}function Bt(e,t){return s(t,(function(t){return Pa(e[t])}))}function Vt(e,t){for(var n=0,r=(t=nr(t,e)).length;null!=e&&n<r;)e=e[sa(t[n++])];return n&&n==r?e:V}function Ut(e,t,n){var r=t(e);return zs(e)?r:f(r,n(e))}function Kt(e){return null==e?e===V?"[object Undefined]":"[object Null]":Wo&&Wo in bo(e)?function(e){var t=zo.call(e,Wo),n=e[Wo];try{e[Wo]=V;var r=!0}catch{}var a=Ro.call(e);return r&&(t?e[Wo]=n:delete e[Wo]),a}(e):function(e){return Ro.call(e)}(e)}function Xt(e,t){return e>t}function Jt(e,t){return null!=e&&zo.call(e,t)}function tn(e,t){return null!=e&&t in bo(e)}function nn(e,t,n){for(var r=n?l:c,a=e[0].length,o=e.length,i=o,s=ho(o),f=1/0,d=[];i--;){var p=e[i];i&&t&&(p=u(p,C(t))),f=ai(p.length,f),s[i]=!n&&(t||a>=120&&p.length>=120)?new ht(i&&p):V}p=e[0];var h=-1,m=s[0];e:for(;++h<a&&d.length<f;){var g=p[h],y=t?t(g):g;if(g=n||0!==g?g:0,!(m?I(m,y):r(d,y,n))){for(i=o;--i;){var v=s[i];if(!(v?I(v,y):r(e[i],y,n)))continue e}m&&m.push(y),d.push(g)}}return d}function an(e,t,r){var a=null==(e=na(e,t=nr(t,e)))?e:e[sa(ha(t))];return null==a?V:n(a,e,r)}function on(e){return Da(e)&&Kt(e)==re}function pn(e,t,n,r,a){return e===t||(null==e||null==t||!Da(e)&&!Da(t)?e!=e&&t!=t:function(e,t,n,r,a,o){var i=zs(e),s=zs(t),c=i?ae:Bi(e),l=s?ae:Bi(t),u=(c=c==re?de:c)==de,f=(l=l==re?de:l)==de,d=c==l;if(d&&Ts(e)){if(!Ts(t))return!1;i=!0,u=!1}if(d&&!u)return o||(o=new mt),i||Ns(e)?Nr(e,t,n,r,a,o):function(e,t,n,r,a,o,i){switch(n){case _e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case be:return!(e.byteLength!=t.byteLength||!o(new Do(e),new Do(t)));case oe:case ie:case fe:return Ia(+e,+t);case se:return e.name==t.name&&e.message==t.message;case he:case ge:return e==t+"";case ue:var s=O;case me:var c=1&r;if(s||(s=D),e.size!=t.size&&!c)return!1;var l=i.get(e);if(l)return l==t;r|=2,i.set(e,t);var u=Nr(s(e),s(t),r,a,o,i);return i.delete(e),u;case ye:if(xi)return xi.call(e)==xi.call(t)}return!1}(e,t,c,n,r,a,o);if(!(1&n)){var p=u&&zo.call(e,"__wrapped__"),h=f&&zo.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return o||(o=new mt),a(m,g,n,r,o)}}return!!d&&(o||(o=new mt),function(e,t,n,r,a,o){var i=1&n,s=Dr(e),c=s.length;if(c!=Dr(t).length&&!i)return!1;for(var l=c;l--;){var u=s[l];if(!(i?u in t:zo.call(t,u)))return!1}var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=i;++l<c;){var m=e[u=s[l]],g=t[u];if(r)var y=i?r(g,m,u,t,e,o):r(m,g,u,e,t,o);if(!(y===V?m===g||a(m,g,n,r,o):y)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var v=e.constructor,b=t.constructor;v!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b)&&(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,a,o))}(e,t,n,r,pn,a))}function vn(e,t,n,r){var a=n.length,o=a,i=!r;if(null==e)return!o;for(e=bo(e);a--;){var s=n[a];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<o;){var c=(s=n[a])[0],l=e[c],u=s[1];if(i&&s[2]){if(l===V&&!(c in e))return!1}else{var f=new mt;if(r)var d=r(l,u,c,e,t,f);if(!(d===V?pn(u,l,3,r,f):d))return!1}}return!0}function bn(e){return!(!Ma(e)||function(e){return!!To&&To in e}(e))&&(Pa(e)?Oo:rt).test(ca(e))}function _n(e){return"function"==typeof e?e:null==e?oo:"object"==typeof e?zs(e)?An(e[0],e[1]):En(e):lo(e)}function wn(e){if(!Xr(e))return ni(e);var t=[];for(var n in bo(e))zo.call(e,n)&&"constructor"!=n&&t.push(n);return t}function kn(e){if(!Ma(e))return function(e){var t=[];if(null!=e)for(var n in bo(e))t.push(n);return t}(e);var t=Xr(e),n=[];for(var r in e)("constructor"!=r||!t&&zo.call(e,r))&&n.push(r);return n}function xn(e,t){return e<t}function Sn(e,t){var n=-1,r=Ta(e)?ho(e.length):[];return Ai(e,(function(e,a,o){r[++n]=t(e,a,o)})),r}function En(e){var t=Ur(e);return 1==t.length&&t[0][2]?ea(t[0][0],t[0][1]):function(n){return n===e||vn(n,e,t)}}function An(e,t){return Yr(e)&&Jr(t)?ea(sa(e),t):function(n){var r=Ka(n,e);return r===V&&r===t?Ya(n,e):pn(t,r,3)}}function Cn(e,t,n,r,a){e!==t&&zi(t,(function(o,i){if(a||(a=new mt),Ma(o))!function(e,t,n,r,a,o,i){var s=ra(e,n),c=ra(t,n),l=i.get(c);if(l)return _t(e,n,l),V;var u=o?o(s,c,n+"",e,t,i):V,f=u===V;if(f){var d=zs(c),p=!d&&Ts(c),h=!d&&!p&&Ns(c);u=c,d||p||h?zs(s)?u=s:Ra(s)?u=ur(s):p?(f=!1,u=ar(c,!0)):h?(f=!1,u=ir(c,!0)):u=[]:La(c)||Cs(c)?(u=s,Cs(s)?u=Ga(s):Ma(s)&&!Pa(s)||(u=Hr(c))):f=!1}f&&(i.set(c,u),a(u,c,r,o,i),i.delete(c)),_t(e,n,u)}(e,t,i,n,Cn,r,a);else{var s=r?r(ra(e,i),o,i+"",e,t,a):V;s===V&&(s=o),_t(e,i,s)}}),Xa)}function zn(e,t){var n=e.length;if(n)return Qr(t+=t<0?n:0,n)?e[t]:V}function In(e,t,n){t=t.length?u(t,(function(e){return zs(e)?function(t){return Vt(t,1===e.length?e[0]:e)}:e})):[oo];var r=-1;return t=u(t,C(Vr())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Sn(e,(function(e,n,a){return{criteria:u(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,a=e.criteria,o=t.criteria,i=a.length,s=n.length;++r<i;){var c=sr(a[r],o[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Tn(e,t,n){for(var r=-1,a=t.length,o={};++r<a;){var i=t[r],s=Vt(e,i);n(s,i)&&Bn(o,nr(i,e),s)}return o}function Rn(e,t,n,r){var a=r?v:y,o=-1,i=t.length,s=e;for(e===t&&(t=ur(t)),n&&(s=u(e,C(n)));++o<i;)for(var c=0,l=t[o],f=n?n(l):l;(c=a(s,f,c,r))>-1;)s!==e&&Fo.call(s,c,1),Fo.call(e,c,1);return e}function jn(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==o){var o=a;Qr(a)?Fo.call(e,a,1):Qn(e,a)}}return e}function Pn(e,t){return e+Zo(si()*(t-e+1))}function On(e,t){var n="";if(!e||t<1||t>Z)return n;do{t%2&&(n+=e),(t=Zo(t/2))&&(e+=e)}while(t);return n}function Nn(e,t){return Fi(ta(e,t,oo),e+"")}function Mn(e){return yt(eo(e))}function Dn(e,t){var n=eo(e);return ia(n,Ct(t,0,n.length))}function Bn(e,t,n,r){if(!Ma(e))return e;for(var a=-1,o=(t=nr(t,e)).length,i=o-1,s=e;null!=s&&++a<o;){var c=sa(t[a]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=i){var u=s[c];(l=r?r(u,c,s):V)===V&&(l=Ma(u)?u:Qr(t[a+1])?[]:{})}wt(s,c,l),s=s[c]}return e}function Ln(e){return ia(eo(e))}function qn(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=ho(a);++r<a;)o[r]=e[r+t];return o}function Vn(e,t){var n;return Ai(e,(function(e,r,a){return!(n=t(e,r,a))})),!!n}function Fn(e,t,n){var r=0,a=null==e?r:e.length;if("number"==typeof t&&t==t&&a<=te){for(;r<a;){var o=r+a>>>1,i=e[o];null!==i&&!Va(i)&&(n?i<=t:i<t)?r=o+1:a=o}return a}return Un(e,t,oo,n)}function Un(e,t,n,r){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var i=(t=n(t))!=t,s=null===t,c=Va(t),l=t===V;a<o;){var u=Zo((a+o)/2),f=n(e[u]),d=f!==V,p=null===f,h=f==f,m=Va(f);if(i)var g=r||h;else g=l?h&&(r||d):s?h&&d&&(r||!p):c?h&&d&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);g?a=u+1:o=u}return ai(o,ee)}function $n(e,t){for(var n=-1,r=e.length,a=0,o=[];++n<r;){var i=e[n],s=t?t(i):i;if(!n||!Ia(s,c)){var c=s;o[a++]=0===i?0:i}}return o}function Wn(e){return"number"==typeof e?e:Va(e)?X:+e}function Hn(e){if("string"==typeof e)return e;if(zs(e))return u(e,Hn)+"";if(Va(e))return Si?Si.call(e):"";var t=e+"";return"0"==t&&1/e==-Y?"-0":t}function Gn(e,t,n){var r=-1,a=c,o=e.length,i=!0,s=[],u=s;if(n)i=!1,a=l;else if(o>=200){var f=t?null:Oi(e);if(f)return D(f);i=!1,a=I,u=new ht}else u=t?[]:s;e:for(;++r<o;){var d=e[r],p=t?t(d):d;if(d=n||0!==d?d:0,i&&p==p){for(var h=u.length;h--;)if(u[h]===p)continue e;t&&u.push(p),s.push(d)}else a(u,p,n)||(u!==s&&u.push(p),s.push(d))}return s}function Qn(e,t){return null==(e=na(e,t=nr(t,e)))||delete e[sa(ha(t))]}function Kn(e,t,n,r){return Bn(e,t,n(Vt(e,t)),r)}function Yn(e,t,n,r){for(var a=e.length,o=r?a:-1;(r?o--:++o<a)&&t(e[o],o,e););return n?qn(e,r?0:o,r?o+1:a):qn(e,r?o+1:0,r?a:o)}function Zn(e,t){var n=e;return n instanceof ut&&(n=n.value()),d(t,(function(e,t){return t.func.apply(t.thisArg,f([e],t.args))}),n)}function Xn(e,t,n){var r=e.length;if(r<2)return r?Gn(e[0]):[];for(var a=-1,o=ho(r);++a<r;)for(var i=e[a],s=-1;++s<r;)s!=a&&(o[a]=Rt(o[a]||i,e[s],t,n));return Gn(Nt(o,1),t,n)}function Jn(e,t,n){for(var r=-1,a=e.length,o=t.length,i={};++r<a;)n(i,e[r],r<o?t[r]:V);return i}function er(e){return Ra(e)?e:[]}function tr(e){return"function"==typeof e?e:oo}function nr(e,t){return zs(e)?e:Yr(e,t)?[e]:Ui(Qa(e))}function rr(e,t,n){var r=e.length;return n=n===V?r:n,!t&&n>=r?e:qn(e,t,n)}function ar(e,t){if(t)return e.slice();var n=e.length,r=Bo?Bo(n):new e.constructor(n);return e.copy(r),r}function or(e){var t=new e.constructor(e.byteLength);return new Do(t).set(new Do(e)),t}function ir(e,t){return new e.constructor(t?or(e.buffer):e.buffer,e.byteOffset,e.length)}function sr(e,t){if(e!==t){var n=e!==V,r=null===e,a=e==e,o=Va(e),i=t!==V,s=null===t,c=t==t,l=Va(t);if(!s&&!l&&!o&&e>t||o&&i&&c&&!s&&!l||r&&i&&c||!n&&c||!a)return 1;if(!r&&!o&&!l&&e<t||l&&n&&a&&!r&&!o||s&&n&&a||!i&&a||!c)return-1}return 0}function cr(e,t,n,r){for(var a=-1,o=e.length,i=n.length,s=-1,c=t.length,l=ri(o-i,0),u=ho(c+l),f=!r;++s<c;)u[s]=t[s];for(;++a<i;)(f||a<o)&&(u[n[a]]=e[a]);for(;l--;)u[s++]=e[a++];return u}function lr(e,t,n,r){for(var a=-1,o=e.length,i=-1,s=n.length,c=-1,l=t.length,u=ri(o-s,0),f=ho(u+l),d=!r;++a<u;)f[a]=e[a];for(var p=a;++c<l;)f[p+c]=t[c];for(;++i<s;)(d||a<o)&&(f[p+n[i]]=e[a++]);return f}function ur(e,t){var n=-1,r=e.length;for(t||(t=ho(r));++n<r;)t[n]=e[n];return t}function fr(e,t,n,r){var a=!n;n||(n={});for(var o=-1,i=t.length;++o<i;){var s=t[o],c=r?r(n[s],e[s],s,n,e):V;c===V&&(c=e[s]),a?Et(n,s,c):wt(n,s,c)}return n}function dr(e,t){return function(n,a){var o=zs(n)?r:xt,i=t?t():{};return o(n,e,Vr(a,2),i)}}function pr(e){return Nn((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:V,i=a>2?n[2]:V;for(o=e.length>3&&"function"==typeof o?(a--,o):V,i&&Kr(n[0],n[1],i)&&(o=a<3?V:o,a=1),t=bo(t);++r<a;){var s=n[r];s&&e(t,s,r,o)}return t}))}function hr(e,t){return function(n,r){if(null==n)return n;if(!Ta(n))return e(n,r);for(var a=n.length,o=t?a:-1,i=bo(n);(t?o--:++o<a)&&!1!==r(i[o],o,i););return n}}function mr(e){return function(t,n,r){for(var a=-1,o=bo(t),i=r(t),s=i.length;s--;){var c=i[e?s:++a];if(!1===n(o[c],c,o))break}return t}}function gr(e){return function(t){var n=P(t=Qa(t))?L(t):V,r=n?n[0]:t.charAt(0),a=n?rr(n,1).join(""):t.slice(1);return r[e]()+a}}function yr(e){return function(t){return d(ro(no(t).replace(Lt,"")),e,"")}}function vr(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 n=Ei(e.prototype),r=e.apply(n,t);return Ma(r)?r:n}}function br(e){return function(t,n,r){var a=bo(t);if(!Ta(t)){var o=Vr(n,3);t=Za(t),n=function(e){return o(a[e],e,a)}}var i=e(t,n,r);return i>-1?a[o?t[i]:i]:V}}function _r(e){return Mr((function(t){var n=t.length,r=n,a=lt.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new ko(F);if(a&&!i&&"wrapper"==Lr(o))var i=new lt([],!0)}for(r=i?r:n;++r<n;){var s=Lr(o=t[r]),c="wrapper"==s?Ni(o):V;i=c&&Zr(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?i[Lr(c[0])].apply(i,c[3]):1==o.length&&Zr(o)?i[s]():i.thru(o)}return function(){var e=arguments,r=e[0];if(i&&1==e.length&&zs(r))return i.plant(r).value();for(var a=0,o=n?t[a].apply(this,e):r;++a<n;)o=t[a].call(this,o);return o}}))}function wr(e,t,n,r,a,o,i,s,c,l){var u=t&Q,f=1&t,d=2&t,p=24&t,h=512&t,m=d?V:vr(e);return function g(){for(var y=arguments.length,v=ho(y),b=y;b--;)v[b]=arguments[b];if(p)var _=qr(g),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(v,_);if(r&&(v=cr(v,r,a,p)),o&&(v=lr(v,o,i,p)),y-=w,p&&y<l)return zr(e,t,wr,g.placeholder,n,v,M(v,_),s,c,l-y);var k=f?n:this,x=d?k[e]:e;return y=v.length,s?v=function(e,t){for(var n=e.length,r=ai(t.length,n),a=ur(e);r--;){var o=t[r];e[r]=Qr(o,n)?a[o]:V}return e}(v,s):h&&y>1&&v.reverse(),u&&c<y&&(v.length=c),this&&this!==en&&this instanceof g&&(x=m||vr(x)),x.apply(k,v)}}function kr(e,t){return function(n,r){return function(e,t,n,r){return Mt(e,(function(e,a,o){t(r,n(e),a,o)})),r}(n,e,t(r),{})}}function xr(e,t){return function(n,r){var a;if(n===V&&r===V)return t;if(n!==V&&(a=n),r!==V){if(a===V)return r;"string"==typeof n||"string"==typeof r?(n=Hn(n),r=Hn(r)):(n=Wn(n),r=Wn(r)),a=e(n,r)}return a}}function Sr(e){return Mr((function(t){return t=u(t,C(Vr())),Nn((function(r){var a=this;return e(t,(function(e){return n(e,a,r)}))}))}))}function Er(e,t){var n=(t=t===V?" ":Hn(t)).length;if(n<2)return n?On(t,e):t;var r=On(t,Yo(e/B(t)));return P(t)?rr(L(r),0,e).join(""):r.slice(0,e)}function Ar(e){return function(t,n,r){return r&&"number"!=typeof r&&Kr(t,n,r)&&(n=r=V),t=Ua(t),n===V?(n=t,t=0):n=Ua(n),function(e,t,n,r){for(var a=-1,o=ri(Yo((t-e)/(n||1)),0),i=ho(o);o--;)i[r?o:++a]=e,e+=n;return i}(t,n,r=r===V?t<n?1:-1:Ua(r),e)}}function Cr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Ha(t),n=Ha(n)),e(t,n)}}function zr(e,t,n,r,a,o,i,s,c,l){var u=8&t;t|=u?H:G,4&(t&=~(u?G:H))||(t&=-4);var f=[e,t,a,u?o:V,u?i:V,u?V:o,u?V:i,s,c,l],d=n.apply(V,f);return Zr(e)&&qi(d,f),d.placeholder=r,aa(d,e,t)}function Ir(e){var t=vo[e];return function(e,n){if(e=Ha(e),(n=null==n?0:ai($a(n),292))&&ei(e)){var r=(Qa(e)+"e").split("e");return+((r=(Qa(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}function Tr(e){return function(t){var n=Bi(t);return n==ue?O(t):n==me?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return u(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Rr(e,t,r,a,o,i,s,c){var l=2&t;if(!l&&"function"!=typeof e)throw new ko(F);var u=a?a.length:0;if(u||(t&=-97,a=o=V),s=s===V?s:ri($a(s),0),c=c===V?c:$a(c),u-=o?o.length:0,t&G){var f=a,d=o;a=o=V}var p=l?V:Ni(e),h=[e,t,r,a,o,f,d,i,s,c];if(p&&function(e,t){var n=e[1],r=t[1],a=n|r,o=a<131,i=r==Q&&8==n||r==Q&&n==K&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!i)return e;1&r&&(e[2]=t[2],a|=1&n?0:4);var s=t[3];if(s){var c=e[3];e[3]=c?cr(c,s,t[4]):s,e[4]=c?M(e[3],$):t[4]}(s=t[5])&&(c=e[5],e[5]=c?lr(c,s,t[6]):s,e[6]=c?M(e[5],$):t[6]),(s=t[7])&&(e[7]=s),r&Q&&(e[8]=null==e[8]?t[8]:ai(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=a}(h,p),e=h[0],t=h[1],r=h[2],a=h[3],o=h[4],!(c=h[9]=h[9]===V?l?0:e.length:ri(h[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)m=8==t||t==W?function(e,t,r){var a=vr(e);return function o(){for(var i=arguments.length,s=ho(i),c=i,l=qr(o);c--;)s[c]=arguments[c];var u=i<3&&s[0]!==l&&s[i-1]!==l?[]:M(s,l);return(i-=u.length)<r?zr(e,t,wr,o.placeholder,V,s,u,V,V,r-i):n(this&&this!==en&&this instanceof o?a:e,this,s)}}(e,t,c):t!=H&&33!=t||o.length?wr.apply(V,h):function(e,t,r,a){var o=1&t,i=vr(e);return function t(){for(var s=-1,c=arguments.length,l=-1,u=a.length,f=ho(u+c),d=this&&this!==en&&this instanceof t?i:e;++l<u;)f[l]=a[l];for(;c--;)f[l++]=arguments[++s];return n(d,o?r:this,f)}}(e,t,r,a);else var m=function(e,t,n){var r=1&t,a=vr(e);return function t(){return(this&&this!==en&&this instanceof t?a:e).apply(r?n:this,arguments)}}(e,t,r);return aa((p?Ti:qi)(m,h),e,t)}function jr(e,t,n,r){return e===V||Ia(e,Eo[n])&&!zo.call(r,n)?t:e}function Pr(e,t,n,r,a,o){return Ma(e)&&Ma(t)&&(o.set(t,e),Cn(e,t,V,Pr,o),o.delete(t)),e}function Or(e){return La(e)?V:e}function Nr(e,t,n,r,a,o){var i=1&n,s=e.length,c=t.length;if(s!=c&&!(i&&c>s))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var f=-1,d=!0,p=2&n?new ht:V;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],g=t[f];if(r)var y=i?r(g,m,f,t,e,o):r(m,g,f,e,t,o);if(y!==V){if(y)continue;d=!1;break}if(p){if(!h(t,(function(e,t){if(!I(p,t)&&(m===e||a(m,e,n,r,o)))return p.push(t)}))){d=!1;break}}else if(m!==g&&!a(m,g,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Mr(e){return Fi(ta(e,V,da),e+"")}function Dr(e){return Ut(e,Za,Mi)}function Br(e){return Ut(e,Xa,Di)}function Lr(e){for(var t=e.name+"",n=gi[t],r=zo.call(gi,t)?n.length:0;r--;){var a=n[r],o=a.func;if(null==o||o==e)return a.name}return t}function qr(e){return(zo.call(k,"placeholder")?k:e).placeholder}function Vr(){var e=k.iteratee||io;return e=e===io?_n:e,arguments.length?e(arguments[0],arguments[1]):e}function Fr(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Ur(e){for(var t=Za(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,Jr(a)]}return t}function $r(e,t){var n=function(e,t){return null==e?V:e[t]}(e,t);return bn(n)?n:V}function Wr(e,t,n){for(var r=-1,a=(t=nr(t,e)).length,o=!1;++r<a;){var i=sa(t[r]);if(!(o=null!=e&&n(e,i)))break;e=e[i]}return o||++r!=a?o:!!(a=null==e?0:e.length)&&Na(a)&&Qr(i,a)&&(zs(e)||Cs(e))}function Hr(e){return"function"!=typeof e.constructor||Xr(e)?{}:Ei(Lo(e))}function Gr(e){return zs(e)||Cs(e)||!!(Uo&&e&&e[Uo])}function Qr(e,t){var n=typeof e;return!!(t=t??Z)&&("number"==n||"symbol"!=n&&ot.test(e))&&e>-1&&e%1==0&&e<t}function Kr(e,t,n){if(!Ma(n))return!1;var r=typeof t;return!!("number"==r?Ta(n)&&Qr(t,n.length):"string"==r&&t in n)&&Ia(n[t],e)}function Yr(e,t){if(zs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Va(e))||Ve.test(e)||!qe.test(e)||null!=t&&e in bo(t)}function Zr(e){var t=Lr(e),n=k[t];if("function"!=typeof n||!(t in ut.prototype))return!1;if(e===n)return!0;var r=Ni(n);return!!r&&e===r[0]}function Xr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Eo)}function Jr(e){return e==e&&!Ma(e)}function ea(e,t){return function(n){return null!=n&&n[e]===t&&(t!==V||e in bo(n))}}function ta(e,t,r){return t=ri(t===V?e.length-1:t,0),function(){for(var a=arguments,o=-1,i=ri(a.length-t,0),s=ho(i);++o<i;)s[o]=a[t+o];o=-1;for(var c=ho(t+1);++o<t;)c[o]=a[o];return c[t]=r(s),n(e,this,c)}}function na(e,t){return t.length<2?e:Vt(e,qn(t,0,-1))}function ra(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function aa(e,t,n){var r=t+"";return Fi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ge,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return a(ne,(function(n){var r="_."+n[0];t&n[1]&&!c(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Qe);return t?t[1].split(Ke):[]}(r),n)))}function oa(e){var t=0,n=0;return function(){var r=oi(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(V,arguments)}}function ia(e,t){var n=-1,r=e.length,a=r-1;for(t=t===V?r:t;++n<t;){var o=Pn(n,a),i=e[o];e[o]=e[n],e[n]=i}return e.length=t,e}function sa(e){if("string"==typeof e||Va(e))return e;var t=e+"";return"0"==t&&1/e==-Y?"-0":t}function ca(e){if(null!=e){try{return Co.call(e)}catch{}try{return e+""}catch{}}return""}function la(e){if(e instanceof ut)return e.clone();var t=new lt(e.__wrapped__,e.__chain__);return t.__actions__=ur(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ua(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:$a(n);return a<0&&(a=ri(r+a,0)),g(e,Vr(t,3),a)}function fa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return n!==V&&(a=$a(n),a=n<0?ri(r+a,0):ai(a,r-1)),g(e,Vr(t,3),a,!0)}function da(e){return null!=e&&e.length?Nt(e,1):[]}function pa(e){return e&&e.length?e[0]:V}function ha(e){var t=null==e?0:e.length;return t?e[t-1]:V}function ma(e,t){return e&&e.length&&t&&t.length?Rn(e,t):e}function ga(e){return null==e?e:ci.call(e)}function ya(e){if(!e||!e.length)return[];var t=0;return e=s(e,(function(e){if(Ra(e))return t=ri(e.length,t),!0})),E(t,(function(t){return u(e,w(t))}))}function va(e,t){if(!e||!e.length)return[];var r=ya(e);return null==t?r:u(r,(function(e){return n(t,V,e)}))}function ba(e){var t=k(e);return t.__chain__=!0,t}function _a(e,t){return t(e)}function wa(e,t){return(zs(e)?a:Ai)(e,Vr(t,3))}function ka(e,t){return(zs(e)?o:Ci)(e,Vr(t,3))}function xa(e,t){return(zs(e)?u:Sn)(e,Vr(t,3))}function Sa(e,t,n){return t=n?V:t,t=e&&null==t?e.length:t,Rr(e,Q,V,V,V,V,t)}function Ea(e,t){var n;if("function"!=typeof t)throw new ko(F);return e=$a(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=V),n}}function Aa(e,t,n){function r(t){var n=c,r=l;return c=l=V,h=t,f=e.apply(r,n)}function a(e){var n=e-p;return p===V||n>=t||n<0||g&&e-h>=u}function o(){var e=gs();return a(e)?i(e):(d=Vi(o,function(e){var n=t-(e-p);return g?ai(n,u-(e-h)):n}(e)),V)}function i(e){return d=V,y&&c?r(e):(c=l=V,f)}function s(){var e=gs(),n=a(e);if(c=arguments,l=this,p=e,n){if(d===V)return function(e){return h=e,d=Vi(o,t),m?r(e):f}(p);if(g)return Pi(d),d=Vi(o,t),r(p)}return d===V&&(d=Vi(o,t)),f}var c,l,u,f,d,p,h=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new ko(F);return t=Ha(t)||0,Ma(n)&&(m=!!n.leading,u=(g="maxWait"in n)?ri(Ha(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),s.cancel=function(){d!==V&&Pi(d),h=0,c=p=l=d=V},s.flush=function(){return d===V?f:i(gs())},s}function Ca(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ko(F);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(Ca.Cache||pt),n}function za(e){if("function"!=typeof e)throw new ko(F);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ia(e,t){return e===t||e!=e&&t!=t}function Ta(e){return null!=e&&Na(e.length)&&!Pa(e)}function Ra(e){return Da(e)&&Ta(e)}function ja(e){if(!Da(e))return!1;var t=Kt(e);return t==se||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!La(e)}function Pa(e){if(!Ma(e))return!1;var t=Kt(e);return t==ce||t==le||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Oa(e){return"number"==typeof e&&e==$a(e)}function Na(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Z}function Ma(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Da(e){return null!=e&&"object"==typeof e}function Ba(e){return"number"==typeof e||Da(e)&&Kt(e)==fe}function La(e){if(!Da(e)||Kt(e)!=de)return!1;var t=Lo(e);if(null===t)return!0;var n=zo.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Co.call(n)==jo}function qa(e){return"string"==typeof e||!zs(e)&&Da(e)&&Kt(e)==ge}function Va(e){return"symbol"==typeof e||Da(e)&&Kt(e)==ye}function Fa(e){if(!e)return[];if(Ta(e))return qa(e)?L(e):ur(e);if($o&&e[$o])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[$o]());var t=Bi(e);return(t==ue?O:t==me?D:eo)(e)}function Ua(e){return e?(e=Ha(e))===Y||e===-Y?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function $a(e){var t=Ua(e),n=t%1;return t==t?n?t-n:t:0}function Wa(e){return e?Ct($a(e),0,J):0}function Ha(e){if("number"==typeof e)return e;if(Va(e))return X;if(Ma(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ma(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=A(e);var n=nt.test(e);return n||at.test(e)?Zt(e.slice(2),n?2:8):tt.test(e)?X:+e}function Ga(e){return fr(e,Xa(e))}function Qa(e){return null==e?"":Hn(e)}function Ka(e,t,n){var r=null==e?V:Vt(e,t);return r===V?n:r}function Ya(e,t){return null!=e&&Wr(e,t,tn)}function Za(e){return Ta(e)?gt(e):wn(e)}function Xa(e){return Ta(e)?gt(e,!0):kn(e)}function Ja(e,t){if(null==e)return{};var n=u(Br(e),(function(e){return[e]}));return t=Vr(t),Tn(e,n,(function(e,n){return t(e,n[0])}))}function eo(e){return null==e?[]:z(e,Za(e))}function to(e){return sc(Qa(e).toLowerCase())}function no(e){return(e=Qa(e))&&e.replace(it,hn).replace(qt,"")}function ro(e,t,n){return e=Qa(e),(t=n?V:t)===V?function(e){return $t.test(e)}(e)?function(e){return e.match(Ft)||[]}(e):function(e){return e.match(Ye)||[]}(e):e.match(t)||[]}function ao(e){return function(){return e}}function oo(e){return e}function io(e){return _n("function"==typeof e?e:zt(e,1))}function so(e,t,n){var r=Za(t),o=Bt(t,r);null!=n||Ma(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Bt(t,Za(t)));var i=!(Ma(n)&&"chain"in n&&!n.chain),s=Pa(e);return a(o,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ur(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,f([this.value()],arguments))})})),e}function co(){}function lo(e){return Yr(e)?w(sa(e)):function(e){return function(t){return Vt(t,e)}}(e)}function uo(){return[]}function fo(){return!1}var po,ho=(t=null==t?en:yn.defaults(en.Object(),t,yn.pick(en,Wt))).Array,mo=t.Date,go=t.Error,yo=t.Function,vo=t.Math,bo=t.Object,_o=t.RegExp,wo=t.String,ko=t.TypeError,xo=ho.prototype,So=yo.prototype,Eo=bo.prototype,Ao=t["__core-js_shared__"],Co=So.toString,zo=Eo.hasOwnProperty,Io=0,To=(po=/[^.]+$/.exec(Ao&&Ao.keys&&Ao.keys.IE_PROTO||""))?"Symbol(src)_1."+po:"",Ro=Eo.toString,jo=Co.call(bo),Po=en._,Oo=_o("^"+Co.call(zo).replace(Ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),No=rn?t.Buffer:V,Mo=t.Symbol,Do=t.Uint8Array,Bo=No?No.allocUnsafe:V,Lo=N(bo.getPrototypeOf,bo),qo=bo.create,Vo=Eo.propertyIsEnumerable,Fo=xo.splice,Uo=Mo?Mo.isConcatSpreadable:V,$o=Mo?Mo.iterator:V,Wo=Mo?Mo.toStringTag:V,Ho=function(){try{var e=$r(bo,"defineProperty");return e({},"",{}),e}catch{}}(),Go=t.clearTimeout!==en.clearTimeout&&t.clearTimeout,Qo=mo&&mo.now!==en.Date.now&&mo.now,Ko=t.setTimeout!==en.setTimeout&&t.setTimeout,Yo=vo.ceil,Zo=vo.floor,Xo=bo.getOwnPropertySymbols,Jo=No?No.isBuffer:V,ei=t.isFinite,ti=xo.join,ni=N(bo.keys,bo),ri=vo.max,ai=vo.min,oi=mo.now,ii=t.parseInt,si=vo.random,ci=xo.reverse,li=$r(t,"DataView"),ui=$r(t,"Map"),fi=$r(t,"Promise"),di=$r(t,"Set"),pi=$r(t,"WeakMap"),hi=$r(bo,"create"),mi=pi&&new pi,gi={},yi=ca(li),vi=ca(ui),bi=ca(fi),_i=ca(di),wi=ca(pi),ki=Mo?Mo.prototype:V,xi=ki?ki.valueOf:V,Si=ki?ki.toString:V,Ei=function(){function e(){}return function(t){if(!Ma(t))return{};if(qo)return qo(t);e.prototype=t;var n=new e;return e.prototype=V,n}}();k.templateSettings={escape:De,evaluate:Be,interpolate:Le,variable:"",imports:{_:k}},k.prototype=He.prototype,k.prototype.constructor=k,lt.prototype=Ei(He.prototype),lt.prototype.constructor=lt,ut.prototype=Ei(He.prototype),ut.prototype.constructor=ut,ft.prototype.clear=function(){this.__data__=hi?hi(null):{},this.size=0},ft.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ft.prototype.get=function(e){var t=this.__data__;if(hi){var n=t[e];return n===U?V:n}return zo.call(t,e)?t[e]:V},ft.prototype.has=function(e){var t=this.__data__;return hi?t[e]!==V:zo.call(t,e)},ft.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=hi&&t===V?U:t,this},dt.prototype.clear=function(){this.__data__=[],this.size=0},dt.prototype.delete=function(e){var t=this.__data__,n=kt(t,e);return!(n<0||(n==t.length-1?t.pop():Fo.call(t,n,1),--this.size,0))},dt.prototype.get=function(e){var t=this.__data__,n=kt(t,e);return n<0?V:t[n][1]},dt.prototype.has=function(e){return kt(this.__data__,e)>-1},dt.prototype.set=function(e,t){var n=this.__data__,r=kt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},pt.prototype.clear=function(){this.size=0,this.__data__={hash:new ft,map:new(ui||dt),string:new ft}},pt.prototype.delete=function(e){var t=Fr(this,e).delete(e);return this.size-=t?1:0,t},pt.prototype.get=function(e){return Fr(this,e).get(e)},pt.prototype.has=function(e){return Fr(this,e).has(e)},pt.prototype.set=function(e,t){var n=Fr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ht.prototype.add=ht.prototype.push=function(e){return this.__data__.set(e,U),this},ht.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.clear=function(){this.__data__=new dt,this.size=0},mt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},mt.prototype.get=function(e){return this.__data__.get(e)},mt.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof dt){var r=n.__data__;if(!ui||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new pt(r)}return n.set(e,t),this.size=n.size,this};var Ai=hr(Mt),Ci=hr(Dt,!0),zi=mr(),Ii=mr(!0),Ti=mi?function(e,t){return mi.set(e,t),e}:oo,Ri=Ho?function(e,t){return Ho(e,"toString",{configurable:!0,enumerable:!1,value:ao(t),writable:!0})}:oo,ji=Nn,Pi=Go||function(e){return en.clearTimeout(e)},Oi=di&&1/D(new di([,-0]))[1]==Y?function(e){return new di(e)}:co,Ni=mi?function(e){return mi.get(e)}:co,Mi=Xo?function(e){return null==e?[]:(e=bo(e),s(Xo(e),(function(t){return Vo.call(e,t)})))}:uo,Di=Xo?function(e){for(var t=[];e;)f(t,Mi(e)),e=Lo(e);return t}:uo,Bi=Kt;(li&&Bi(new li(new ArrayBuffer(1)))!=_e||ui&&Bi(new ui)!=ue||fi&&Bi(fi.resolve())!=pe||di&&Bi(new di)!=me||pi&&Bi(new pi)!=ve)&&(Bi=function(e){var t=Kt(e),n=t==de?e.constructor:V,r=n?ca(n):"";if(r)switch(r){case yi:return _e;case vi:return ue;case bi:return pe;case _i:return me;case wi:return ve}return t});var Li=Ao?Pa:fo,qi=oa(Ti),Vi=Ko||function(e,t){return en.setTimeout(e,t)},Fi=oa(Ri),Ui=function(e){var t=Ca(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Fe,(function(e,n,r,a){t.push(r?a.replace(Xe,"$1"):n||e)})),t})),$i=Nn((function(e,t){return Ra(e)?Rt(e,Nt(t,1,Ra,!0)):[]})),Wi=Nn((function(e,t){var n=ha(t);return Ra(n)&&(n=V),Ra(e)?Rt(e,Nt(t,1,Ra,!0),Vr(n,2)):[]})),Hi=Nn((function(e,t){var n=ha(t);return Ra(n)&&(n=V),Ra(e)?Rt(e,Nt(t,1,Ra,!0),V,n):[]})),Gi=Nn((function(e){var t=u(e,er);return t.length&&t[0]===e[0]?nn(t):[]})),Qi=Nn((function(e){var t=ha(e),n=u(e,er);return t===ha(n)?t=V:n.pop(),n.length&&n[0]===e[0]?nn(n,Vr(t,2)):[]})),Ki=Nn((function(e){var t=ha(e),n=u(e,er);return(t="function"==typeof t?t:V)&&n.pop(),n.length&&n[0]===e[0]?nn(n,V,t):[]})),Yi=Nn(ma),Zi=Mr((function(e,t){var n=null==e?0:e.length,r=At(e,t);return jn(e,u(t,(function(e){return Qr(e,n)?+e:e})).sort(sr)),r})),Xi=Nn((function(e){return Gn(Nt(e,1,Ra,!0))})),Ji=Nn((function(e){var t=ha(e);return Ra(t)&&(t=V),Gn(Nt(e,1,Ra,!0),Vr(t,2))})),es=Nn((function(e){var t=ha(e);return t="function"==typeof t?t:V,Gn(Nt(e,1,Ra,!0),V,t)})),ts=Nn((function(e,t){return Ra(e)?Rt(e,t):[]})),ns=Nn((function(e){return Xn(s(e,Ra))})),rs=Nn((function(e){var t=ha(e);return Ra(t)&&(t=V),Xn(s(e,Ra),Vr(t,2))})),as=Nn((function(e){var t=ha(e);return t="function"==typeof t?t:V,Xn(s(e,Ra),V,t)})),os=Nn(ya),is=Nn((function(e){var t=e.length,n=t>1?e[t-1]:V;return n="function"==typeof n?(e.pop(),n):V,va(e,n)})),ss=Mr((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return At(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ut&&Qr(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:_a,args:[a],thisArg:V}),new lt(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(V),e}))):this.thru(a)})),cs=dr((function(e,t,n){zo.call(e,n)?++e[n]:Et(e,n,1)})),ls=br(ua),us=br(fa),fs=dr((function(e,t,n){zo.call(e,n)?e[n].push(t):Et(e,n,[t])})),ds=Nn((function(e,t,r){var a=-1,o="function"==typeof t,i=Ta(e)?ho(e.length):[];return Ai(e,(function(e){i[++a]=o?n(t,e,r):an(e,t,r)})),i})),ps=dr((function(e,t,n){Et(e,n,t)})),hs=dr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ms=Nn((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Kr(e,t[0],t[1])?t=[]:n>2&&Kr(t[0],t[1],t[2])&&(t=[t[0]]),In(e,Nt(t,1),[])})),gs=Qo||function(){return en.Date.now()},ys=Nn((function(e,t,n){var r=1;if(n.length){var a=M(n,qr(ys));r|=H}return Rr(e,r,t,n,a)})),vs=Nn((function(e,t,n){var r=3;if(n.length){var a=M(n,qr(vs));r|=H}return Rr(t,r,e,n,a)})),bs=Nn((function(e,t){return Tt(e,1,t)})),_s=Nn((function(e,t,n){return Tt(e,Ha(t)||0,n)}));Ca.Cache=pt;var ws=ji((function(e,t){var r=(t=1==t.length&&zs(t[0])?u(t[0],C(Vr())):u(Nt(t,1),C(Vr()))).length;return Nn((function(a){for(var o=-1,i=ai(a.length,r);++o<i;)a[o]=t[o].call(this,a[o]);return n(e,this,a)}))})),ks=Nn((function(e,t){return Rr(e,H,V,t,M(t,qr(ks)))})),xs=Nn((function(e,t){return Rr(e,G,V,t,M(t,qr(xs)))})),Ss=Mr((function(e,t){return Rr(e,K,V,V,V,t)})),Es=Cr(Xt),As=Cr((function(e,t){return e>=t})),Cs=on(function(){return arguments}())?on:function(e){return Da(e)&&zo.call(e,"callee")&&!Vo.call(e,"callee")},zs=ho.isArray,Is=sn?C(sn):function(e){return Da(e)&&Kt(e)==be},Ts=Jo||fo,Rs=cn?C(cn):function(e){return Da(e)&&Kt(e)==ie},js=ln?C(ln):function(e){return Da(e)&&Bi(e)==ue},Ps=un?C(un):function(e){return Da(e)&&Kt(e)==he},Os=fn?C(fn):function(e){return Da(e)&&Bi(e)==me},Ns=dn?C(dn):function(e){return Da(e)&&Na(e.length)&&!!Gt[Kt(e)]},Ms=Cr(xn),Ds=Cr((function(e,t){return e<=t})),Bs=pr((function(e,t){if(Xr(t)||Ta(t))return fr(t,Za(t),e),V;for(var n in t)zo.call(t,n)&&wt(e,n,t[n])})),Ls=pr((function(e,t){fr(t,Xa(t),e)})),qs=pr((function(e,t,n,r){fr(t,Xa(t),e,r)})),Vs=pr((function(e,t,n,r){fr(t,Za(t),e,r)})),Fs=Mr(At),Us=Nn((function(e,t){e=bo(e);var n=-1,r=t.length,a=r>2?t[2]:V;for(a&&Kr(t[0],t[1],a)&&(r=1);++n<r;)for(var o=t[n],i=Xa(o),s=-1,c=i.length;++s<c;){var l=i[s],u=e[l];(u===V||Ia(u,Eo[l])&&!zo.call(e,l))&&(e[l]=o[l])}return e})),$s=Nn((function(e){return e.push(V,Pr),n(Ks,V,e)})),Ws=kr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ro.call(t)),e[t]=n}),ao(oo)),Hs=kr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ro.call(t)),zo.call(e,t)?e[t].push(n):e[t]=[n]}),Vr),Gs=Nn(an),Qs=pr((function(e,t,n){Cn(e,t,n)})),Ks=pr((function(e,t,n,r){Cn(e,t,n,r)})),Ys=Mr((function(e,t){var n={};if(null==e)return n;var r=!1;t=u(t,(function(t){return t=nr(t,e),r||(r=t.length>1),t})),fr(e,Br(e),n),r&&(n=zt(n,7,Or));for(var a=t.length;a--;)Qn(n,t[a]);return n})),Zs=Mr((function(e,t){return null==e?{}:function(e,t){return Tn(e,t,(function(t,n){return Ya(e,n)}))}(e,t)})),Xs=Tr(Za),Js=Tr(Xa),ec=yr((function(e,t,n){return t=t.toLowerCase(),e+(n?to(t):t)})),tc=yr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),nc=yr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),rc=gr("toLowerCase"),ac=yr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),oc=yr((function(e,t,n){return e+(n?" ":"")+sc(t)})),ic=yr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),sc=gr("toUpperCase"),cc=Nn((function(e,t){try{return n(e,V,t)}catch(e){return ja(e)?e:new go(e)}})),lc=Mr((function(e,t){return a(t,(function(t){t=sa(t),Et(e,t,ys(e[t],e))})),e})),uc=_r(),fc=_r(!0),dc=Nn((function(e,t){return function(n){return an(n,e,t)}})),pc=Nn((function(e,t){return function(n){return an(e,n,t)}})),hc=Sr(u),mc=Sr(i),gc=Sr(h),yc=Ar(),vc=Ar(!0),bc=xr((function(e,t){return e+t}),0),_c=Ir("ceil"),wc=xr((function(e,t){return e/t}),1),kc=Ir("floor"),xc=xr((function(e,t){return e*t}),1),Sc=Ir("round"),Ec=xr((function(e,t){return e-t}),0);return k.after=function(e,t){if("function"!=typeof t)throw new ko(F);return e=$a(e),function(){if(--e<1)return t.apply(this,arguments)}},k.ary=Sa,k.assign=Bs,k.assignIn=Ls,k.assignInWith=qs,k.assignWith=Vs,k.at=Fs,k.before=Ea,k.bind=ys,k.bindAll=lc,k.bindKey=vs,k.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return zs(e)?e:[e]},k.chain=ba,k.chunk=function(e,t,n){t=(n?Kr(e,t,n):t===V)?1:ri($a(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var a=0,o=0,i=ho(Yo(r/t));a<r;)i[o++]=qn(e,a,a+=t);return i},k.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,a=[];++t<n;){var o=e[t];o&&(a[r++]=o)}return a},k.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ho(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return f(zs(n)?ur(n):[n],Nt(t,1))},k.cond=function(e){var t=null==e?0:e.length,r=Vr();return e=t?u(e,(function(e){if("function"!=typeof e[1])throw new ko(F);return[r(e[0]),e[1]]})):[],Nn((function(r){for(var a=-1;++a<t;){var o=e[a];if(n(o[0],this,r))return n(o[1],this,r)}}))},k.conforms=function(e){return function(e){var t=Za(e);return function(n){return It(n,e,t)}}(zt(e,1))},k.constant=ao,k.countBy=cs,k.create=function(e,t){var n=Ei(e);return null==t?n:St(n,t)},k.curry=function e(t,n,r){var a=Rr(t,8,V,V,V,V,V,n=r?V:n);return a.placeholder=e.placeholder,a},k.curryRight=function e(t,n,r){var a=Rr(t,W,V,V,V,V,V,n=r?V:n);return a.placeholder=e.placeholder,a},k.debounce=Aa,k.defaults=Us,k.defaultsDeep=$s,k.defer=bs,k.delay=_s,k.difference=$i,k.differenceBy=Wi,k.differenceWith=Hi,k.drop=function(e,t,n){var r=null==e?0:e.length;return r?qn(e,(t=n||t===V?1:$a(t))<0?0:t,r):[]},k.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?qn(e,0,(t=r-(t=n||t===V?1:$a(t)))<0?0:t):[]},k.dropRightWhile=function(e,t){return e&&e.length?Yn(e,Vr(t,3),!0,!0):[]},k.dropWhile=function(e,t){return e&&e.length?Yn(e,Vr(t,3),!0):[]},k.fill=function(e,t,n,r){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&Kr(e,t,n)&&(n=0,r=a),function(e,t,n,r){var a=e.length;for((n=$a(n))<0&&(n=-n>a?0:a+n),(r=r===V||r>a?a:$a(r))<0&&(r+=a),r=n>r?0:Wa(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},k.filter=function(e,t){return(zs(e)?s:Ot)(e,Vr(t,3))},k.flatMap=function(e,t){return Nt(xa(e,t),1)},k.flatMapDeep=function(e,t){return Nt(xa(e,t),Y)},k.flatMapDepth=function(e,t,n){return n=n===V?1:$a(n),Nt(xa(e,t),n)},k.flatten=da,k.flattenDeep=function(e){return null!=e&&e.length?Nt(e,Y):[]},k.flattenDepth=function(e,t){return null!=e&&e.length?Nt(e,t=t===V?1:$a(t)):[]},k.flip=function(e){return Rr(e,512)},k.flow=uc,k.flowRight=fc,k.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r},k.functions=function(e){return null==e?[]:Bt(e,Za(e))},k.functionsIn=function(e){return null==e?[]:Bt(e,Xa(e))},k.groupBy=fs,k.initial=function(e){return null!=e&&e.length?qn(e,0,-1):[]},k.intersection=Gi,k.intersectionBy=Qi,k.intersectionWith=Ki,k.invert=Ws,k.invertBy=Hs,k.invokeMap=ds,k.iteratee=io,k.keyBy=ps,k.keys=Za,k.keysIn=Xa,k.map=xa,k.mapKeys=function(e,t){var n={};return t=Vr(t,3),Mt(e,(function(e,r,a){Et(n,t(e,r,a),e)})),n},k.mapValues=function(e,t){var n={};return t=Vr(t,3),Mt(e,(function(e,r,a){Et(n,r,t(e,r,a))})),n},k.matches=function(e){return En(zt(e,1))},k.matchesProperty=function(e,t){return An(e,zt(t,1))},k.memoize=Ca,k.merge=Qs,k.mergeWith=Ks,k.method=dc,k.methodOf=pc,k.mixin=so,k.negate=za,k.nthArg=function(e){return e=$a(e),Nn((function(t){return zn(t,e)}))},k.omit=Ys,k.omitBy=function(e,t){return Ja(e,za(Vr(t)))},k.once=function(e){return Ea(2,e)},k.orderBy=function(e,t,n,r){return null==e?[]:(zs(t)||(t=null==t?[]:[t]),zs(n=r?V:n)||(n=null==n?[]:[n]),In(e,t,n))},k.over=hc,k.overArgs=ws,k.overEvery=mc,k.overSome=gc,k.partial=ks,k.partialRight=xs,k.partition=hs,k.pick=Zs,k.pickBy=Ja,k.property=lo,k.propertyOf=function(e){return function(t){return null==e?V:Vt(e,t)}},k.pull=Yi,k.pullAll=ma,k.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Rn(e,t,Vr(n,2)):e},k.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Rn(e,t,V,n):e},k.pullAt=Zi,k.range=yc,k.rangeRight=vc,k.rearg=Ss,k.reject=function(e,t){return(zs(e)?s:Ot)(e,za(Vr(t,3)))},k.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,a=[],o=e.length;for(t=Vr(t,3);++r<o;){var i=e[r];t(i,r,e)&&(n.push(i),a.push(r))}return jn(e,a),n},k.rest=function(e,t){if("function"!=typeof e)throw new ko(F);return Nn(e,t=t===V?t:$a(t))},k.reverse=ga,k.sampleSize=function(e,t,n){return t=(n?Kr(e,t,n):t===V)?1:$a(t),(zs(e)?vt:Dn)(e,t)},k.set=function(e,t,n){return null==e?e:Bn(e,t,n)},k.setWith=function(e,t,n,r){return r="function"==typeof r?r:V,null==e?e:Bn(e,t,n,r)},k.shuffle=function(e){return(zs(e)?bt:Ln)(e)},k.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Kr(e,t,n)?(t=0,n=r):(t=null==t?0:$a(t),n=n===V?r:$a(n)),qn(e,t,n)):[]},k.sortBy=ms,k.sortedUniq=function(e){return e&&e.length?$n(e):[]},k.sortedUniqBy=function(e,t){return e&&e.length?$n(e,Vr(t,2)):[]},k.split=function(e,t,n){return n&&"number"!=typeof n&&Kr(e,t,n)&&(t=n=V),(n=n===V?J:n>>>0)?(e=Qa(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=Hn(t))&&P(e)?rr(L(e),0,n):e.split(t,n):[]},k.spread=function(e,t){if("function"!=typeof e)throw new ko(F);return t=null==t?0:ri($a(t),0),Nn((function(r){var a=r[t],o=rr(r,0,t);return a&&f(o,a),n(e,this,o)}))},k.tail=function(e){var t=null==e?0:e.length;return t?qn(e,1,t):[]},k.take=function(e,t,n){return e&&e.length?qn(e,0,(t=n||t===V?1:$a(t))<0?0:t):[]},k.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?qn(e,(t=r-(t=n||t===V?1:$a(t)))<0?0:t,r):[]},k.takeRightWhile=function(e,t){return e&&e.length?Yn(e,Vr(t,3),!1,!0):[]},k.takeWhile=function(e,t){return e&&e.length?Yn(e,Vr(t,3)):[]},k.tap=function(e,t){return t(e),e},k.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new ko(F);return Ma(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Aa(e,t,{leading:r,maxWait:t,trailing:a})},k.thru=_a,k.toArray=Fa,k.toPairs=Xs,k.toPairsIn=Js,k.toPath=function(e){return zs(e)?u(e,sa):Va(e)?[e]:ur(Ui(Qa(e)))},k.toPlainObject=Ga,k.transform=function(e,t,n){var r=zs(e),o=r||Ts(e)||Ns(e);if(t=Vr(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ma(e)&&Pa(i)?Ei(Lo(e)):{}}return(o?a:Mt)(e,(function(e,r,a){return t(n,e,r,a)})),n},k.unary=function(e){return Sa(e,1)},k.union=Xi,k.unionBy=Ji,k.unionWith=es,k.uniq=function(e){return e&&e.length?Gn(e):[]},k.uniqBy=function(e,t){return e&&e.length?Gn(e,Vr(t,2)):[]},k.uniqWith=function(e,t){return t="function"==typeof t?t:V,e&&e.length?Gn(e,V,t):[]},k.unset=function(e,t){return null==e||Qn(e,t)},k.unzip=ya,k.unzipWith=va,k.update=function(e,t,n){return null==e?e:Kn(e,t,tr(n))},k.updateWith=function(e,t,n,r){return r="function"==typeof r?r:V,null==e?e:Kn(e,t,tr(n),r)},k.values=eo,k.valuesIn=function(e){return null==e?[]:z(e,Xa(e))},k.without=ts,k.words=ro,k.wrap=function(e,t){return ks(tr(t),e)},k.xor=ns,k.xorBy=rs,k.xorWith=as,k.zip=os,k.zipObject=function(e,t){return Jn(e||[],t||[],wt)},k.zipObjectDeep=function(e,t){return Jn(e||[],t||[],Bn)},k.zipWith=is,k.entries=Xs,k.entriesIn=Js,k.extend=Ls,k.extendWith=qs,so(k,k),k.add=bc,k.attempt=cc,k.camelCase=ec,k.capitalize=to,k.ceil=_c,k.clamp=function(e,t,n){return n===V&&(n=t,t=V),n!==V&&(n=(n=Ha(n))==n?n:0),t!==V&&(t=(t=Ha(t))==t?t:0),Ct(Ha(e),t,n)},k.clone=function(e){return zt(e,4)},k.cloneDeep=function(e){return zt(e,5)},k.cloneDeepWith=function(e,t){return zt(e,5,t="function"==typeof t?t:V)},k.cloneWith=function(e,t){return zt(e,4,t="function"==typeof t?t:V)},k.conformsTo=function(e,t){return null==t||It(e,t,Za(t))},k.deburr=no,k.defaultTo=function(e,t){return null==e||e!=e?t:e},k.divide=wc,k.endsWith=function(e,t,n){e=Qa(e),t=Hn(t);var r=e.length,a=n=n===V?r:Ct($a(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},k.eq=Ia,k.escape=function(e){return(e=Qa(e))&&Me.test(e)?e.replace(Oe,mn):e},k.escapeRegExp=function(e){return(e=Qa(e))&&$e.test(e)?e.replace(Ue,"\\$&"):e},k.every=function(e,t,n){var r=zs(e)?i:jt;return n&&Kr(e,t,n)&&(t=V),r(e,Vr(t,3))},k.find=ls,k.findIndex=ua,k.findKey=function(e,t){return m(e,Vr(t,3),Mt)},k.findLast=us,k.findLastIndex=fa,k.findLastKey=function(e,t){return m(e,Vr(t,3),Dt)},k.floor=kc,k.forEach=wa,k.forEachRight=ka,k.forIn=function(e,t){return null==e?e:zi(e,Vr(t,3),Xa)},k.forInRight=function(e,t){return null==e?e:Ii(e,Vr(t,3),Xa)},k.forOwn=function(e,t){return e&&Mt(e,Vr(t,3))},k.forOwnRight=function(e,t){return e&&Dt(e,Vr(t,3))},k.get=Ka,k.gt=Es,k.gte=As,k.has=function(e,t){return null!=e&&Wr(e,t,Jt)},k.hasIn=Ya,k.head=pa,k.identity=oo,k.includes=function(e,t,n,r){e=Ta(e)?e:eo(e),n=n&&!r?$a(n):0;var a=e.length;return n<0&&(n=ri(a+n,0)),qa(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&y(e,t,n)>-1},k.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:$a(n);return a<0&&(a=ri(r+a,0)),y(e,t,a)},k.inRange=function(e,t,n){return t=Ua(t),n===V?(n=t,t=0):n=Ua(n),function(e,t,n){return e>=ai(t,n)&&e<ri(t,n)}(e=Ha(e),t,n)},k.invoke=Gs,k.isArguments=Cs,k.isArray=zs,k.isArrayBuffer=Is,k.isArrayLike=Ta,k.isArrayLikeObject=Ra,k.isBoolean=function(e){return!0===e||!1===e||Da(e)&&Kt(e)==oe},k.isBuffer=Ts,k.isDate=Rs,k.isElement=function(e){return Da(e)&&1===e.nodeType&&!La(e)},k.isEmpty=function(e){if(null==e)return!0;if(Ta(e)&&(zs(e)||"string"==typeof e||"function"==typeof e.splice||Ts(e)||Ns(e)||Cs(e)))return!e.length;var t=Bi(e);if(t==ue||t==me)return!e.size;if(Xr(e))return!wn(e).length;for(var n in e)if(zo.call(e,n))return!1;return!0},k.isEqual=function(e,t){return pn(e,t)},k.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:V)?n(e,t):V;return r===V?pn(e,t,V,n):!!r},k.isError=ja,k.isFinite=function(e){return"number"==typeof e&&ei(e)},k.isFunction=Pa,k.isInteger=Oa,k.isLength=Na,k.isMap=js,k.isMatch=function(e,t){return e===t||vn(e,t,Ur(t))},k.isMatchWith=function(e,t,n){return n="function"==typeof n?n:V,vn(e,t,Ur(t),n)},k.isNaN=function(e){return Ba(e)&&e!=+e},k.isNative=function(e){if(Li(e))throw new go("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return bn(e)},k.isNil=function(e){return null==e},k.isNull=function(e){return null===e},k.isNumber=Ba,k.isObject=Ma,k.isObjectLike=Da,k.isPlainObject=La,k.isRegExp=Ps,k.isSafeInteger=function(e){return Oa(e)&&e>=-Z&&e<=Z},k.isSet=Os,k.isString=qa,k.isSymbol=Va,k.isTypedArray=Ns,k.isUndefined=function(e){return e===V},k.isWeakMap=function(e){return Da(e)&&Bi(e)==ve},k.isWeakSet=function(e){return Da(e)&&"[object WeakSet]"==Kt(e)},k.join=function(e,t){return null==e?"":ti.call(e,t)},k.kebabCase=tc,k.last=ha,k.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==V&&(a=(a=$a(n))<0?ri(r+a,0):ai(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):g(e,b,a,!0)},k.lowerCase=nc,k.lowerFirst=rc,k.lt=Ms,k.lte=Ds,k.max=function(e){return e&&e.length?Pt(e,oo,Xt):V},k.maxBy=function(e,t){return e&&e.length?Pt(e,Vr(t,2),Xt):V},k.mean=function(e){return _(e,oo)},k.meanBy=function(e,t){return _(e,Vr(t,2))},k.min=function(e){return e&&e.length?Pt(e,oo,xn):V},k.minBy=function(e,t){return e&&e.length?Pt(e,Vr(t,2),xn):V},k.stubArray=uo,k.stubFalse=fo,k.stubObject=function(){return{}},k.stubString=function(){return""},k.stubTrue=function(){return!0},k.multiply=xc,k.nth=function(e,t){return e&&e.length?zn(e,$a(t)):V},k.noConflict=function(){return en._===this&&(en._=Po),this},k.noop=co,k.now=gs,k.pad=function(e,t,n){e=Qa(e);var r=(t=$a(t))?B(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Er(Zo(a),n)+e+Er(Yo(a),n)},k.padEnd=function(e,t,n){e=Qa(e);var r=(t=$a(t))?B(e):0;return t&&r<t?e+Er(t-r,n):e},k.padStart=function(e,t,n){e=Qa(e);var r=(t=$a(t))?B(e):0;return t&&r<t?Er(t-r,n)+e:e},k.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ii(Qa(e).replace(We,""),t||0)},k.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Kr(e,t,n)&&(t=n=V),n===V&&("boolean"==typeof t?(n=t,t=V):"boolean"==typeof e&&(n=e,e=V)),e===V&&t===V?(e=0,t=1):(e=Ua(e),t===V?(t=e,e=0):t=Ua(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=si();return ai(e+a*(t-e+Yt("1e-"+((a+"").length-1))),t)}return Pn(e,t)},k.reduce=function(e,t,n){var r=zs(e)?d:x,a=arguments.length<3;return r(e,Vr(t,4),n,a,Ai)},k.reduceRight=function(e,t,n){var r=zs(e)?p:x,a=arguments.length<3;return r(e,Vr(t,4),n,a,Ci)},k.repeat=function(e,t,n){return t=(n?Kr(e,t,n):t===V)?1:$a(t),On(Qa(e),t)},k.replace=function(){var e=arguments,t=Qa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},k.result=function(e,t,n){var r=-1,a=(t=nr(t,e)).length;for(a||(a=1,e=V);++r<a;){var o=null==e?V:e[sa(t[r])];o===V&&(r=a,o=n),e=Pa(o)?o.call(e):o}return e},k.round=Sc,k.runInContext=e,k.sample=function(e){return(zs(e)?yt:Mn)(e)},k.size=function(e){if(null==e)return 0;if(Ta(e))return qa(e)?B(e):e.length;var t=Bi(e);return t==ue||t==me?e.size:wn(e).length},k.snakeCase=ac,k.some=function(e,t,n){var r=zs(e)?h:Vn;return n&&Kr(e,t,n)&&(t=V),r(e,Vr(t,3))},k.sortedIndex=function(e,t){return Fn(e,t)},k.sortedIndexBy=function(e,t,n){return Un(e,t,Vr(n,2))},k.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Fn(e,t);if(r<n&&Ia(e[r],t))return r}return-1},k.sortedLastIndex=function(e,t){return Fn(e,t,!0)},k.sortedLastIndexBy=function(e,t,n){return Un(e,t,Vr(n,2),!0)},k.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Fn(e,t,!0)-1;if(Ia(e[n],t))return n}return-1},k.startCase=oc,k.startsWith=function(e,t,n){return e=Qa(e),n=null==n?0:Ct($a(n),0,e.length),t=Hn(t),e.slice(n,n+t.length)==t},k.subtract=Ec,k.sum=function(e){return e&&e.length?S(e,oo):0},k.sumBy=function(e,t){return e&&e.length?S(e,Vr(t,2)):0},k.template=function(e,t,n){var r=k.templateSettings;n&&Kr(e,t,n)&&(t=V),e=Qa(e),t=qs({},t,r,jr);var a,o,i=qs({},t.imports,r.imports,jr),s=Za(i),c=z(i,s),l=0,u=t.interpolate||st,f="__p += '",d=_o((t.escape||st).source+"|"+u.source+"|"+(u===Le?Je:st).source+"|"+(t.evaluate||st).source+"|$","g"),p="//# sourceURL="+(zo.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ht+"]")+"\n";e.replace(d,(function(t,n,r,i,s,c){return r||(r=i),f+=e.slice(l,c).replace(ct,j),n&&(a=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),f+="';\n";var h=zo.call(t,"variable")&&t.variable;if(h){if(Ze.test(h))throw new go("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(Te,""):f).replace(Re,"$1").replace(je,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=cc((function(){return yo(s,p+"return "+f).apply(V,c)}));if(m.source=f,ja(m))throw m;return m},k.times=function(e,t){if((e=$a(e))<1||e>Z)return[];var n=J,r=ai(e,J);t=Vr(t),e-=J;for(var a=E(r,t);++n<e;)t(n);return a},k.toFinite=Ua,k.toInteger=$a,k.toLength=Wa,k.toLower=function(e){return Qa(e).toLowerCase()},k.toNumber=Ha,k.toSafeInteger=function(e){return e?Ct($a(e),-Z,Z):0===e?e:0},k.toString=Qa,k.toUpper=function(e){return Qa(e).toUpperCase()},k.trim=function(e,t,n){if((e=Qa(e))&&(n||t===V))return A(e);if(!e||!(t=Hn(t)))return e;var r=L(e),a=L(t);return rr(r,T(r,a),R(r,a)+1).join("")},k.trimEnd=function(e,t,n){if((e=Qa(e))&&(n||t===V))return e.slice(0,q(e)+1);if(!e||!(t=Hn(t)))return e;var r=L(e);return rr(r,0,R(r,L(t))+1).join("")},k.trimStart=function(e,t,n){if((e=Qa(e))&&(n||t===V))return e.replace(We,"");if(!e||!(t=Hn(t)))return e;var r=L(e);return rr(r,T(r,L(t))).join("")},k.truncate=function(e,t){var n=30,r="...";if(Ma(t)){var a="separator"in t?t.separator:a;n="length"in t?$a(t.length):n,r="omission"in t?Hn(t.omission):r}var o=(e=Qa(e)).length;if(P(e)){var i=L(e);o=i.length}if(n>=o)return e;var s=n-B(r);if(s<1)return r;var c=i?rr(i,0,s).join(""):e.slice(0,s);if(a===V)return c+r;if(i&&(s+=c.length-s),Ps(a)){if(e.slice(s).search(a)){var l,u=c;for(a.global||(a=_o(a.source,Qa(et.exec(a))+"g")),a.lastIndex=0;l=a.exec(u);)var f=l.index;c=c.slice(0,f===V?s:f)}}else if(e.indexOf(Hn(a),s)!=s){var d=c.lastIndexOf(a);d>-1&&(c=c.slice(0,d))}return c+r},k.unescape=function(e){return(e=Qa(e))&&Ne.test(e)?e.replace(Pe,gn):e},k.uniqueId=function(e){var t=++Io;return Qa(e)+t},k.upperCase=ic,k.upperFirst=sc,k.each=wa,k.eachRight=ka,k.first=pa,so(k,function(){var e={};return Mt(k,(function(t,n){zo.call(k.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),k.VERSION="4.17.21",a(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){k[e].placeholder=k})),a(["drop","take"],(function(e,t){ut.prototype[e]=function(n){n=n===V?1:ri($a(n),0);var r=this.__filtered__&&!t?new ut(this):this.clone();return r.__filtered__?r.__takeCount__=ai(n,r.__takeCount__):r.__views__.push({size:ai(n,J),type:e+(r.__dir__<0?"Right":"")}),r},ut.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),a(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;ut.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Vr(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),a(["head","last"],(function(e,t){var n="take"+(t?"Right":"");ut.prototype[e]=function(){return this[n](1).value()[0]}})),a(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");ut.prototype[e]=function(){return this.__filtered__?new ut(this):this[n](1)}})),ut.prototype.compact=function(){return this.filter(oo)},ut.prototype.find=function(e){return this.filter(e).head()},ut.prototype.findLast=function(e){return this.reverse().find(e)},ut.prototype.invokeMap=Nn((function(e,t){return"function"==typeof e?new ut(this):this.map((function(n){return an(n,e,t)}))})),ut.prototype.reject=function(e){return this.filter(za(Vr(e)))},ut.prototype.slice=function(e,t){e=$a(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ut(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==V&&(n=(t=$a(t))<0?n.dropRight(-t):n.take(t-e)),n)},ut.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ut.prototype.toArray=function(){return this.take(J)},Mt(ut.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=k[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);a&&(k.prototype[t]=function(){var t=this.__wrapped__,i=r?[1]:arguments,s=t instanceof ut,c=i[0],l=s||zs(t),u=function(e){var t=a.apply(k,f([e],i));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var d=this.__chain__,p=!!this.__actions__.length,h=o&&!d,m=s&&!p;if(!o&&l){t=m?t:new ut(this);var g=e.apply(t,i);return g.__actions__.push({func:_a,args:[u],thisArg:V}),new lt(g,d)}return h&&m?e.apply(this,i):(g=this.thru(u),h?r?g.value()[0]:g.value():g)})})),a(["pop","push","shift","sort","splice","unshift"],(function(e){var t=xo[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);k.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(zs(a)?a:[],e)}return this[n]((function(n){return t.apply(zs(n)?n:[],e)}))}})),Mt(ut.prototype,(function(e,t){var n=k[t];if(n){var r=n.name+"";zo.call(gi,r)||(gi[r]=[]),gi[r].push({name:t,func:n})}})),gi[wr(V,2).name]=[{name:"wrapper",func:V}],ut.prototype.clone=function(){var e=new ut(this.__wrapped__);return e.__actions__=ur(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ur(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ur(this.__views__),e},ut.prototype.reverse=function(){if(this.__filtered__){var e=new ut(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ut.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=zs(e),r=t<0,a=n?e.length:0,o=function(e,t,n){for(var r=-1,a=n.length;++r<a;){var o=n[r],i=o.size;switch(o.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=ai(t,e+i);break;case"takeRight":e=ri(e,t-i)}}return{start:e,end:t}}(0,a,this.__views__),i=o.start,s=o.end,c=s-i,l=r?s:i-1,u=this.__iteratees__,f=u.length,d=0,p=ai(c,this.__takeCount__);if(!n||!r&&a==c&&p==c)return Zn(e,this.__actions__);var h=[];e:for(;c--&&d<p;){for(var m=-1,g=e[l+=t];++m<f;){var y=u[m],v=y.iteratee,b=y.type,_=v(g);if(2==b)g=_;else if(!_){if(1==b)continue e;break e}}h[d++]=g}return h},k.prototype.at=ss,k.prototype.chain=function(){return ba(this)},k.prototype.commit=function(){return new lt(this.value(),this.__chain__)},k.prototype.next=function(){this.__values__===V&&(this.__values__=Fa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?V:this.__values__[this.__index__++]}},k.prototype.plant=function(e){for(var t,n=this;n instanceof He;){var r=la(n);r.__index__=0,r.__values__=V,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},k.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ut){var t=e;return this.__actions__.length&&(t=new ut(this)),(t=t.reverse()).__actions__.push({func:_a,args:[ga],thisArg:V}),new lt(t,this.__chain__)}return this.thru(ga)},k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=function(){return Zn(this.__wrapped__,this.__actions__)},k.prototype.first=k.prototype.head,$o&&(k.prototype[$o]=function(){return this}),k}();nn?((nn.exports=yn)._=yn,tn._=yn):en._=yn}.call(zq)),Y0.exports;var e,t}var kI,xx,xI,Sx,SI,Ex,EI,kx={};function Dq(){return kI||(kI=1,(e=kx).aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var a in n){var o=n[a];t.call(r,o)?r[o].push(a):r[o]=[a]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}),kx;var e}function mR(){return xI||(xI=1,xx={}),xx}function FN(){if(SI)return Sx;SI=1;var e=Dq(),t=mR(),n=Array.prototype.push;function r(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function a(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function o(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var a=r[0]=t.apply(void 0,r);return e.apply(void 0,r),a}}}return Sx=function i(s,c,l,u){var f="function"==typeof c,d=c===Object(c);if(d&&(u=l,l=c,c=void 0),null==l)throw new TypeError;u||(u={});var p=!("cap"in u)||u.cap,h=!("curry"in u)||u.curry,m=!("fixed"in u)||u.fixed,g=!("immutable"in u)||u.immutable,y=!("rearg"in u)||u.rearg,v=f?l:t,b="curry"in u&&u.curry,_="fixed"in u&&u.fixed,w="rearg"in u&&u.rearg,k=f?l.runInContext():void 0,x=f?l:{ary:s.ary,assign:s.assign,clone:s.clone,curry:s.curry,forEach:s.forEach,isArray:s.isArray,isError:s.isError,isFunction:s.isFunction,isWeakMap:s.isWeakMap,iteratee:s.iteratee,keys:s.keys,rearg:s.rearg,toInteger:s.toInteger,toPath:s.toPath},S=x.ary,E=x.assign,A=x.clone,C=x.curry,z=x.forEach,I=x.isArray,T=x.isError,R=x.isFunction,j=x.isWeakMap,P=x.keys,O=x.rearg,N=x.toInteger,M=x.toPath,D=P(e.aryMethod),B={castArray:function(e){return function(){var t=arguments[0];return I(t)?e(a(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],n=e(arguments[0],t),a=n.length;return p&&"number"==typeof t?(t=t>2?t-2:1,a&&a<=t?n:r(n,t)):n}},mixin:function(e){return function(t){var n=this;if(!R(n))return e(n,Object(t));var r=[];return z(P(t),(function(e){R(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),z(r,(function(e){var t=e[1];R(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:N(t)+1;return C(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return C(e(t,n),r)}},runInContext:function(e){return function(t){return i(s,e(t),u)}}};function L(t,n){if(p){var a=e.iterateeRearg[t];if(a)return function(e,t){return $(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(O(r(e,n),t),n)}))}(n,a);var o=!f&&e.iterateeAry[t];if(o)return function(e,t){return $(e,(function(e){return"function"==typeof e?r(e,t):e}))}(n,o)}return n}function q(t,r,a){if(m&&(_||!e.skipFixed[t])){var o=e.methodSpread[t],i=o&&o.start;return void 0===i?S(r,a):function(e,t){return function(){for(var r=arguments.length,a=r-1,o=Array(r);r--;)o[r]=arguments[r];var i=o[t],s=o.slice(0,t);return i&&n.apply(s,i),t!=a&&n.apply(s,o.slice(t+1)),e.apply(this,s)}}(r,i)}return r}function V(t,n,r){return y&&r>1&&(w||!e.skipRearg[t])?O(n,e.methodRearg[t]||e.aryRearg[r]):n}function F(e,t){for(var n=-1,r=(t=M(t)).length,a=r-1,o=A(Object(e)),i=o;null!=i&&++n<r;){var s=t[n],c=i[s];null!=c&&!(R(c)||T(c)||j(c))&&(i[s]=A(n==a?c:Object(c))),i=i[s]}return o}function U(t,n){var r=e.aliasToReal[t]||t,a=e.remap[r]||r,o=u;return function(e){var t=f?k:x,s=f?k[a]:n,c=E(E({},o),e);return i(t,r,s,c)}}function $(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var a=y?0:n-1;return r[a]=t(r[a]),e.apply(void 0,r)}}function W(t,n,r){var i,s=e.aliasToReal[t]||t,c=n,l=B[s];return l?c=l(n):g&&(e.mutate.array[s]?c=o(n,a):e.mutate.object[s]?c=o(n,function(e){return function(t){return e({},t)}}(n)):e.mutate.set[s]&&(c=o(n,F))),z(D,(function(t){return z(e.aryMethod[t],(function(n){if(s==n){var r=e.methodSpread[s],a=r&&r.afterRearg;return i=a?q(s,V(s,c,t),t):V(s,q(s,c,t),t),i=function(e,t,n){return b||h&&n>1?C(t,n):t}(0,i=L(s,i),t),!1}})),!i})),i||(i=c),i==n&&(i=b?C(i,1):function(){return n.apply(this,arguments)}),i.convert=U(s,n),i.placeholder=n.placeholder=r,i}if(!d)return W(c,l,v);var H=l,G=[];return z(D,(function(t){z(e.aryMethod[t],(function(t){var n=H[e.remap[t]||t];n&&G.push([t,W(t,n,H)])}))})),z(P(H),(function(e){var t=H[e];if("function"==typeof t){for(var n=G.length;n--;)if(G[n][0]==e)return;t.convert=U(e,t),G.push([e,t])}})),z(G,(function(e){H[e[0]]=e[1]})),H.convert=function(e){return H.runInContext.convert(e)(void 0)},H.placeholder=H,z(P(H),(function(t){z(e.realToAlias[t]||[],(function(e){H[e]=H[t]}))})),H},Sx}function Nq(){if(EI)return Ex;EI=1;var e=Mq().runInContext();return Ex=FN()(e,e)}var Xd=Nq();const Lq=e=>e&&Xd.values(e).length?"?"+new URLSearchParams(e).toString():"";function no(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var jq="function"==typeof Symbol&&Symbol.observable||"@@observable",CI=jq,Cx=()=>Math.random().toString(36).substring(7).split("").join("."),Bq={INIT:`@@redux/INIT${Cx()}`,REPLACE:`@@redux/REPLACE${Cx()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Cx()}`},Eb=Bq;function Il(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function UN(e,t,n){if("function"!=typeof e)throw new Error(no(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(no(0));if("function"==typeof t&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if("function"!=typeof n)throw new Error(no(1));return n(UN)(e,t)}let r=e,a=t,o=new Map,i=o,s=0,c=!1;function l(){i===o&&(i=new Map,o.forEach(((e,t)=>{i.set(t,e)})))}function u(){if(c)throw new Error(no(3));return a}function f(e){if("function"!=typeof e)throw new Error(no(4));if(c)throw new Error(no(5));let t=!0;l();const n=s++;return i.set(n,e),function(){if(t){if(c)throw new Error(no(6));t=!1,l(),i.delete(n),o=null}}}function d(e){if(!Il(e))throw new Error(no(7));if(typeof e.type>"u")throw new Error(no(8));if("string"!=typeof e.type)throw new Error(no(17));if(c)throw new Error(no(9));try{c=!0,a=r(a,e)}finally{c=!1}return(o=i).forEach((e=>{e()})),e}return d({type:Eb.INIT}),{dispatch:d,subscribe:f,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(no(10));r=e,d({type:Eb.REPLACE})},[CI]:function(){const e=f;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(no(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[CI](){return this}}}}}function Fq(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:Eb.INIT})>"u")throw new Error(no(12));if(typeof n(void 0,{type:Eb.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(no(13))}))}function gR(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}const r=Object.keys(n);let a;try{Fq(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const i={};for(let a=0;a<r.length;a++){const s=r[a],c=n[s],l=e[s],u=c(l,t);if(typeof u>"u")throw t&&t.type,new Error(no(14));i[s]=u,o=o||u!==l}return o=o||r.length!==Object.keys(e).length,o?i:e}}function Cb(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function Uq(...e){return t=>(n,r)=>{const a=t(n,r);let o=()=>{throw new Error(no(15))};const i={getState:a.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(i)));return o=Cb(...s)(a.dispatch),{...a,dispatch:o}}}function VN(e){return Il(e)&&"type"in e&&"string"==typeof e.type}var yR=Symbol.for("immer-nothing"),cy=Symbol.for("immer-draftable"),_i=Symbol.for("immer-state");function ao(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Kh=Object.getPrototypeOf;function Cc(e){return!!e&&!!e[_i]}function Rc(e){var t;return!!e&&(qN(e)||Array.isArray(e)||!!e[cy]||!(null==(t=e.constructor)||!t[cy])||d_(e)||p_(e))}var Vq=Object.prototype.constructor.toString();function qN(e){if(!e||"object"!=typeof e)return!1;const t=Kh(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Vq}function qq(e){return Cc(e)||ao(15,e),e[_i].base_}function o1(e,t){0===Qh(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function Qh(e){const t=e[_i];return t?t.type_:Array.isArray(e)?1:d_(e)?2:p_(e)?3:0}function Ry(e,t){return 2===Qh(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Rx(e,t){return 2===Qh(e)?e.get(t):e[t]}function WN(e,t,n){const r=Qh(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function Wq(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d_(e){return e instanceof Map}function p_(e){return e instanceof Set}function Dh(e){return e.copy_||e.base_}function z4(e,t){if(d_(e))return new Map(e);if(p_(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&qN(e))return Kh(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[_i];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const a=r[t],o=n[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(Kh(e),n)}function _R(e,t=!1){return xw(e)||Cc(e)||!Rc(e)||(Qh(e)>1&&(e.set=e.add=e.clear=e.delete=Hq),Object.freeze(e),t&&o1(e,((e,t)=>_R(t,!0)))),e}function Hq(){ao(2)}function xw(e){return Object.isFrozen(e)}var Ty,M4={};function Yh(e){const t=M4[e];return t||ao(0,e),t}function Gq(e,t){M4[e]||(M4[e]=t)}function HN(){return Ty}function Kq(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function RI(e,t){t&&(Yh("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function D4(e){N4(e),e.drafts_.forEach(Qq),e.drafts_=null}function N4(e){e===Ty&&(Ty=e.parent_)}function TI(e){return Ty=Kq(Ty,e)}function Qq(e){const t=e[_i];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function AI(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[_i].modified_&&(D4(t),ao(4)),Rc(e)&&(e=Rb(t,e),t.parent_||Tb(t,e)),t.patches_&&Yh("Patches").generateReplacementPatches_(n[_i].base_,e,t.patches_,t.inversePatches_)):e=Rb(t,n,[]),D4(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==yR?e:void 0}function Rb(e,t,n){if(xw(t))return t;const r=t[_i];if(!r)return o1(t,((a,o)=>II(e,r,t,a,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return Tb(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let a=t,o=!1;3===r.type_&&(a=new Set(t),t.clear(),o=!0),o1(a,((a,i)=>II(e,r,t,a,i,n,o))),Tb(e,t,!1),n&&e.patches_&&Yh("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function II(e,t,n,r,a,o,i){if(Cc(a)){const i=Rb(e,a,o&&t&&3!==t.type_&&!Ry(t.assigned_,r)?o.concat(r):void 0);if(WN(n,r,i),!Cc(i))return;e.canAutoFreeze_=!1}else i&&n.add(a);if(Rc(a)&&!xw(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Rb(e,a),(!t||!t.scope_.parent_)&&Tb(e,a)}}function Tb(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_R(t,n)}function Yq(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:HN(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=vR;n&&(a=[r],o=Ay);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return r.draft_=s,r.revoke_=i,s}var vR={get(e,t){if(t===_i)return e;const n=Dh(e);if(!Ry(n,t))return Zq(e,n,t);const r=n[t];return e.finalized_||!Rc(r)?r:r===Tx(e.base_,t)?(Ax(e),e.copy_[t]=j4(r,e)):r},has:(e,t)=>t in Dh(e),ownKeys:e=>Reflect.ownKeys(Dh(e)),set(e,t,n){const r=GN(Dh(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Tx(Dh(e),t),a=null==r?void 0:r[_i];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Wq(n,r)&&(void 0!==n||Ry(e.base_,t)))return!0;Ax(e),L4(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Tx(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Ax(e),L4(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Dh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){ao(11)},getPrototypeOf:e=>Kh(e.base_),setPrototypeOf(){ao(12)}},Ay={};function Tx(e,t){const n=e[_i];return(n?Dh(n):e)[t]}function Zq(e,t,n){var r;const a=GN(t,n);return a?"value"in a?a.value:null==(r=a.get)?void 0:r.call(e.draft_):void 0}function GN(e,t){if(!(t in e))return;let n=Kh(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Kh(n)}}function L4(e){e.modified_||(e.modified_=!0,e.parent_&&L4(e.parent_))}function Ax(e){e.copy_||(e.copy_=z4(e.base_,e.scope_.immer_.useStrictShallowCopy_))}o1(vR,((e,t)=>{Ay[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Ay.deleteProperty=function(e,t){return Ay.set.call(this,e,t,void 0)},Ay.set=function(e,t,n){return vR.set.call(this,e[0],t,n,e[0])};var Xq=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...a){return r.produce(e,(e=>t.call(this,e,...a)))}}let r;if("function"!=typeof t&&ao(6),void 0!==n&&"function"!=typeof n&&ao(7),Rc(e)){const a=TI(this),o=j4(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?D4(a):N4(a)}return RI(a,n),AI(r,a)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===yR&&(r=void 0),this.autoFreeze_&&_R(r,!0),n){const t=[],a=[];Yh("Patches").generateReplacementPatches_(e,r,t,a),n(t,a)}return r}ao(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Rc(e)||ao(8),Cc(e)&&(e=KN(e));const t=TI(this),n=j4(e,void 0);return n[_i].isManual_=!0,N4(t),n}finishDraft(e,t){const n=e&&e[_i];(!n||!n.isManual_)&&ao(9);const{scope_:r}=n;return RI(r,t),AI(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=Yh("Patches").applyPatches_;return Cc(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function j4(e,t){const n=d_(e)?Yh("MapSet").proxyMap_(e,t):p_(e)?Yh("MapSet").proxySet_(e,t):Yq(e,t);return(t?t.scope_:HN()).drafts_.push(n),n}function KN(e){return Cc(e)||ao(10,e),QN(e)}function QN(e){if(!Rc(e)||xw(e))return e;const t=e[_i];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=z4(e,t.scope_.immer_.useStrictShallowCopy_)}else n=z4(e,!0);return o1(n,((e,t)=>{WN(n,e,QN(t))})),t&&(t.finalized_=!1),n}function Jq(){const e="replace",t="add",n="remove";function r(e){if(!Rc(e))return e;if(Array.isArray(e))return e.map(r);if(d_(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(p_(e))return new Set(Array.from(e).map(r));const t=Object.create(Kh(e));for(const n in e)t[n]=r(e[n]);return Ry(e,cy)&&(t[cy]=e[cy]),t}function a(e){return Cc(e)?r(e):e}Gq("Patches",{applyPatches_:function(a,o){return o.forEach((o=>{const{path:i,op:s}=o;let c=a;for(let e=0;e<i.length-1;e++){const t=Qh(c);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&ao(19),"function"==typeof c&&"prototype"===n&&ao(19),c=Rx(c,n),"object"!=typeof c&&ao(18,i.join("/"))}const l=Qh(c),u=r(o.value),f=i[i.length-1];switch(s){case e:switch(l){case 2:return c.set(f,u);case 3:ao(16);default:return c[f]=u}case t:switch(l){case 1:return"-"===f?c.push(u):c.splice(f,0,u);case 2:return c.set(f,u);case 3:return c.add(u);default:return c[f]=u}case n:switch(l){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(o.value);default:return delete c[f]}default:ao(17,s)}})),a},generatePatches_:function(r,o,i,s){switch(r.type_){case 0:case 2:return function(r,o,i,s){const{base_:c,copy_:l}=r;o1(r.assigned_,((r,u)=>{const f=Rx(c,r),d=Rx(l,r),p=u?Ry(c,r)?e:t:n;if(f===d&&p===e)return;const h=o.concat(r);i.push(p===n?{op:p,path:h}:{op:p,path:h,value:d}),s.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:a(f)}:{op:e,path:h,value:a(f)})}))}(r,o,i,s);case 1:return function(r,o,i,s){let{base_:c,assigned_:l}=r,u=r.copy_;u.length<c.length&&([c,u]=[u,c],[i,s]=[s,i]);for(let t=0;t<c.length;t++)if(l[t]&&u[t]!==c[t]){const n=o.concat([t]);i.push({op:e,path:n,value:a(u[t])}),s.push({op:e,path:n,value:a(c[t])})}for(let e=c.length;e<u.length;e++){const n=o.concat([e]);i.push({op:t,path:n,value:a(u[e])})}for(let e=u.length-1;c.length<=e;--e){const t=o.concat([e]);s.push({op:n,path:t})}}(r,o,i,s);case 3:return function(e,r,a,o){let{base_:i,copy_:s}=e,c=0;i.forEach((e=>{if(!s.has(e)){const i=r.concat([c]);a.push({op:n,path:i,value:e}),o.unshift({op:t,path:i,value:e})}c++})),c=0,s.forEach((e=>{if(!i.has(e)){const i=r.concat([c]);a.push({op:t,path:i,value:e}),o.unshift({op:n,path:i,value:e})}c++}))}(r,o,i,s)}},generateReplacementPatches_:function(t,n,r,a){r.push({op:e,path:[],value:n===yR?void 0:n}),a.push({op:e,path:[],value:t})}})}var Qi=new Xq,h_=Qi.produce,YN=Qi.produceWithPatches.bind(Qi);Qi.setAutoFreeze.bind(Qi),Qi.setUseStrictShallowCopy.bind(Qi);var $I=Qi.applyPatches.bind(Qi);function eW(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function tW(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function nW(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}Qi.createDraft.bind(Qi),Qi.finishDraft.bind(Qi);var PI=e=>Array.isArray(e)?e:[e];function rW(e){const t=Array.isArray(e[0])?e[0]:e;return nW(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function aW(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var oW=class{constructor(e){this.value=e}deref(){return this.value}},iW=typeof WeakRef<"u"?WeakRef:oW,sW=0,OI=1;function bv(){return{s:sW,v:void 0,o:null,p:null}}function Iy(e,t={}){let n=bv();const{resultEqualityCheck:r}=t;let a,o=0;function i(){var t;let i=n;const{length:s}=arguments;for(let e=0,t=s;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=bv(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=bv(),e.set(t,i)):i=n}}const c=i;let l;if(i.s===OI?l=i.v:(l=e.apply(null,arguments),o++),c.s=OI,r){const e=(null==(t=null==a?void 0:a.deref)?void 0:t.call(a))??a;null!=e&&r(e,l)&&(l=e,0!==o&&o--),a="object"==typeof l&&null!==l||"function"==typeof l?new iW(l):l}return c.v=l,l}return i.clearCache=()=>{n=bv(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function ZN(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,a=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),eW(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...o},{memoize:c,memoizeOptions:l=[],argsMemoize:u=Iy,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=PI(l),h=PI(f),m=rW(e),g=c((function(){return r++,i.apply(null,arguments)}),...p),y=u((function(){a++;const e=aW(m,arguments);return t=g.apply(null,e),t}),...h);return Object.assign(y,{resultFunc:i,memoizedResultFunc:g,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var io=ZN(Iy),cW=Object.assign(((e,t=io)=>{tW(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>cW});function XN(e){return({dispatch:t,getState:n})=>r=>a=>"function"==typeof a?a(t,n,e):r(a)}var lW=XN(),fW=XN,uW={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/router/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/router/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"66cc23d6587139ac",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/router",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.172",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/router",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/router",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/router"},dW=(...e)=>{const t=ZN(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Cc(e)?KN(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};dW(Iy);var pW=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Cb:Cb.apply(null,arguments)},hW=e=>e&&"function"==typeof e.match;function Er(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(Na(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>VN(t)&&t.type===e,n}var JN=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function zI(e){return Rc(e)?h_(e,(()=>{})):e}function B4(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(Na(10));const r=n.insert(t,e);return e.set(t,r),r}function mW(e){return"boolean"==typeof e}var gW=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:a=!0}=e??{};let o=new JN;return t&&(mW(t)?o.push(lW):o.push(fW(t.extraArgument))),o},Gg="RTK_autoBatch",D0=()=>e=>({payload:e,meta:{[Gg]:!0}}),e8=e=>t=>{setTimeout(t,e)},yW=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:e8(10),_W=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,o=!1,i=!1;const s=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?yW:"callback"===e.type?e.queueNotification:e8(e.timeout),l=()=>{i=!1,o&&(o=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>a&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){var t;try{return a=!(null!=(t=null==e?void 0:e.meta)&&t[Gg]),o=!a,o&&(i||(i=!0,c(l))),r.dispatch(e)}finally{a=!0}}})},vW=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new JN(e);return n&&r.push(_W("object"==typeof n?n:void 0)),r},bW="production"===uW.NODE_ENV;function wW(e){const t=gW(),{reducer:n,middleware:r,devTools:a=!0,preloadedState:o,enhancers:i}=e;let s,c;if("function"==typeof n)s=n;else{if(!Il(n))throw new Error(Na(1));s=gR(n)}c="function"==typeof r?r(t):t();let l=Cb;a&&(l=pW({trace:!bW,..."object"==typeof a&&a}));const u=Uq(...c),f=vW(u);return UN(s,o,l(..."function"==typeof i?i(f):f()))}function t8(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Na(28));if(r in t)throw new Error(Na(29));return t[r]=n,a},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(r=e,a)};return e(a),[t,n,r]}function kW(e){return"function"==typeof e}function xW(e,t){let n,[r,a,o]=t8(t);if(kW(e))n=()=>zI(e());else{const t=zI(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...a.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[o]),i.reduce(((e,n)=>{if(n){if(Cc(e)){const r=n(e,t);return void 0===r?e:r}if(Rc(e))return h_(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(Na(9))}return r}}return e}),e)}return i.getInitialState=n,i}var SW="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Sw=(e=21)=>{let t="",n=e;for(;n--;)t+=SW[64*Math.random()|0];return t},n8=(e,t)=>hW(e)?e.match(t):e(t);function ap(...e){return t=>e.some((e=>n8(e,t)))}function ly(...e){return t=>e.every((e=>n8(e,t)))}function Ew(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function m_(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function bR(...e){return 0===e.length?e=>Ew(e,["pending"]):m_(e)?t=>ap(...e.map((e=>e.pending)))(t):bR()(e[0])}function i1(...e){return 0===e.length?e=>Ew(e,["rejected"]):m_(e)?t=>ap(...e.map((e=>e.rejected)))(t):i1()(e[0])}function Cw(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||m_(e)?n=>ly(i1(...e),t)(n):Cw()(e[0])}function op(...e){return 0===e.length?e=>Ew(e,["fulfilled"]):m_(e)?t=>ap(...e.map((e=>e.fulfilled)))(t):op()(e[0])}function F4(...e){return 0===e.length?e=>Ew(e,["pending","fulfilled","rejected"]):m_(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return ap(...n)(t)}:F4()(e[0])}var EW=["name","message","stack","code"],Ix=class{constructor(e,t){vx(this,"_type"),this.payload=e,this.meta=t}},MI=class{constructor(e,t){vx(this,"_type"),this.payload=e,this.meta=t}},CW=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of EW)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},DI=(()=>{function e(e,t,n){const r=Er(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),a=Er(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=Er(e+"/rejected",((e,t,r,a,o)=>({payload:a,error:(n&&n.serializeError||CW)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(i,s,c)=>{const l=null!=n&&n.idGenerator?n.idGenerator(e):Sw(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,m;let g;try{let o=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:s,extra:c});if(TW(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const y=new Promise(((e,t)=>{f=()=>{t({name:"AbortError",message:d||"Aborted"})},u.signal.addEventListener("abort",f)}));i(a(l,e,null==(m=null==n?void 0:n.getPendingMeta)?void 0:m.call(n,{requestId:l,arg:e},{getState:s,extra:c}))),g=await Promise.race([y,Promise.resolve(t(e,{dispatch:i,getState:s,extra:c,requestId:l,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new Ix(e,t),fulfillWithValue:(e,t)=>new MI(e,t)})).then((t=>{if(t instanceof Ix)throw t;return t instanceof MI?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){g=t instanceof Ix?o(null,l,e,t.payload,t.meta):o(t,l,e)}finally{f&&u.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&o.match(g)&&g.meta.condition||i(g),g}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(RW)})}}),{pending:a,rejected:o,fulfilled:r,settled:ap(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function RW(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function TW(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var AW=Symbol.for("rtk-slice-createasyncthunk");function IW(e,t){return`${e}/${t}`}function $W({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[AW];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(Na(11));const a=("function"==typeof e.reducers?e.reducers(OW()):e.reducers)||{},o=Object.keys(a),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Na(12));if(n in i.sliceCaseReducersByType)throw new Error(Na(13));return i.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?t8(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return xW(e.initialState,(e=>{for(let t in a)e.addCase(t,a[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=a[r],i={reducerName:r,type:IW(t,r),createNotation:"function"==typeof e.reducers};MW(o)?NW(i,o,s,n):zW(i,o,s)}));const l=e=>e,u=new Map;let f;function d(e,t){return f||(f=c()),f(e,t)}function p(){return f||(f=c()),f.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function a(t=l){const r=B4(u,n,{insert:()=>new WeakMap});return B4(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=PW(o,t,p,n);return r}})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}const m={name:t,reducer:d,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:p,...h(r),injectInto(e,{reducerPath:t,...n}={}){const a=t??r;return e.inject({reducerPath:a,reducer:d},n),{...m,...h(a,!0)}}};return m}}function PW(e,t,n,r){function a(a,...o){let i=t(a);return typeof i>"u"&&r&&(i=n()),e(i,...o)}return a.unwrapped=e,a}var ia=$W();function OW(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}function zW({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!DW(r))throw new Error(Na(17));o=r.reducer,i=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?Er(e,i):Er(e))}function MW(e){return"asyncThunk"===e._reducerDefinitionType}function DW(e){return"reducerWithPrepare"===e._reducerDefinitionType}function NW({type:e,reducerName:t},n,r,a){if(!a)throw new Error(Na(18));const{payloadCreator:o,fulfilled:i,pending:s,rejected:c,settled:l,options:u}=n,f=a(e,o,u);r.exposeAction(t,f),i&&r.addCase(f.fulfilled,i),s&&r.addCase(f.pending,s),c&&r.addCase(f.rejected,c),l&&r.addMatcher(f.settled,l),r.exposeCaseReducer(t,{fulfilled:i||wv,pending:s||wv,rejected:c||wv,settled:l||wv})}function wv(){}var LW=(e,t)=>{if("function"!=typeof e)throw new Error(Na(32))},wR="listenerMiddleware",jW=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=Er(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(Na(21));return LW(o),{predicate:a,type:t,effect:o}},BW=Object.assign((e=>{const{type:t,predicate:n,effect:r}=jW(e);return{id:Sw(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Na(22))}}}),{withTypes:()=>BW}),FW=Object.assign(Er(`${wR}/add`),{withTypes:()=>FW});Er(`${wR}/removeAll`);var UW=Object.assign(Er(`${wR}/remove`),{withTypes:()=>UW}),VW=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,qW=e=>e.flatMap((e=>VW(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),kR=Symbol.for("rtk-state-proxy-original"),WW=e=>!!e&&!!e[kR],HW=new WeakMap,GW=(e,t)=>B4(HW,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===kR)return e;const a=Reflect.get(e,n,r);if(typeof a>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:Sw()});if(typeof t>"u")throw new Error(Na(24));return t}}return a}})}),KW=e=>{if(!WW(e))throw new Error(Na(25));return e[kR]},QW=(e={})=>e;function YW(...e){const t=Object.fromEntries(qW(e)),n=()=>Object.keys(t).length?gR(t):QW;let r=n();function a(e,t){return r(e,t)}a.withLazyLoadedSlices=()=>a;const o=Object.assign((function(e,n){return function(r,...a){return e(GW(n?n(r,...a):r,t),...a)}}),{original:KW});return Object.assign(a,{inject:(e,o={})=>{const{reducerPath:i,reducer:s}=e,c=t[i];return!o.overrideExisting&&c&&c!==s||(t[i]=s,r=n()),a},selector:o})}function Na(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ZW={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/router/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/router/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"66cc23d6587139ac",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/router",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.172",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/router",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/router",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/router"},r8=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(r8||{});function XW(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function JW(e){return new RegExp("(^|:)//").test(e)}var eH=e=>e.replace(/\/$/,""),tH=e=>e.replace(/^\//,"");function nH(e,t){if(!e)return t;if(!t)return e;if(JW(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=eH(e)}${n}${t=tH(t)}`}var NI=e=>[].concat(...e);function rH(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function aH(){return typeof document>"u"||"hidden"!==document.visibilityState}var LI=Il;function a8(e,t){if(e===t||!(LI(e)&&LI(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let a=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const r of n)o[r]=a8(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}var jI=(...e)=>fetch(...e),oH=e=>e.status>=200&&e.status<=299,iH=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function BI(e){if(!Il(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function sH({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=jI,paramsSerializer:r,isJsonContentType:a=iH,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>"u"&&n===jI&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,p)=>{const{signal:h,getState:m,extra:g,endpoint:y,forced:v,type:b}=p;let _,{url:w,headers:k=new Headers(u.headers),params:x,responseHandler:S=c??"json",validateStatus:E=l??oH,timeout:A=s,...C}="string"==typeof d?{url:d}:d,z={...u,signal:h,...C};k=new Headers(BI(k)),z.headers=await t(k,{getState:m,extra:g,endpoint:y,forced:v,type:b})||k;const I=e=>"object"==typeof e&&(Il(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!z.headers.has("content-type")&&I(z.body)&&z.headers.set("content-type",o),I(z.body)&&a(z.headers)&&(z.body=JSON.stringify(z.body,i)),x){const e=~w.indexOf("?")?"&":"?";w+=e+(r?r(x):new URLSearchParams(BI(x)))}w=nH(e,w);const T=new Request(w,z);_={request:new Request(w,z)};let R,j=!1,P=A&&setTimeout((()=>{j=!0,p.abort()}),A);try{R=await n(T)}catch(e){return{error:{status:j?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:_}}finally{P&&clearTimeout(P)}const O=R.clone();_.response=O;let N,M="";try{let e;if(await Promise.all([f(R,S).then((e=>N=e),(t=>e=t)),O.text().then((e=>M=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:R.status,data:M,error:String(e)},meta:_}}return E(R,N)?{data:N,meta:_}:{error:{status:R.status,data:N},meta:_}};async function f(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var FI=class{constructor(e,t=void 0){this.value=e,this.meta=t}},xR=Er("__rtkq/focused"),o8=Er("__rtkq/unfocused"),SR=Er("__rtkq/online"),i8=Er("__rtkq/offline");function s8(e){return"query"===e.type}function cH(e){return"mutation"===e.type}function ER(e,t,n,r,a,o){return lH(e)?e(t,n,r,a).map(U4).map(o):Array.isArray(e)?e.map(U4).map(o):[]}function lH(e){return"function"==typeof e}function U4(e){return"string"==typeof e?{type:e}:e}function UI(e){return null!=e}function Jg(e){let t=0;for(const n in e)t++;return t}function fH(e,t){return e.catch(t)}var $y=Symbol("forceQueryFn"),V4=e=>"function"==typeof e[$y];function uH({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:a}){const o=new Map,i=new Map,{unsubscribeQueryResult:s,removeMutationResult:c,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,a){const i=(c,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:d,[$y]:p,...h}={})=>(m,g)=>{var y;const v=e({queryArgs:c,endpointDefinition:a,endpointName:n}),b=t({...h,type:"query",subscribe:u,forceRefetch:f,subscriptionOptions:d,endpointName:n,originalArgs:c,queryCacheKey:v,[$y]:p}),_=r.endpoints[n].select(c),w=m(b),k=_(g()),{requestId:x,abort:S}=w,E=k.requestId!==x,A=null==(y=o.get(m))?void 0:y[v],C=()=>_(g()),z=Object.assign(p?w.then(C):E&&!A?Promise.resolve(k):Promise.all([A,w]).then(C),{arg:c,requestId:x,subscriptionOptions:d,queryCacheKey:v,abort:S,async unwrap(){const e=await z;if(e.isError)throw e.error;return e.data},refetch:()=>m(i(c,{subscribe:!1,forceRefetch:!0})),unsubscribe(){u&&m(s({queryCacheKey:v,requestId:x}))},updateSubscriptionOptions(e){z.subscriptionOptions=e,m(l({endpointName:n,requestId:x,queryCacheKey:v,options:e}))}});if(!A&&!E&&!p){const e=o.get(m)||{};e[v]=z,o.set(m,e),z.then((()=>{delete e[v],Jg(e)||o.delete(m)}))}return z};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:a}={})=>(o,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:a}),u=o(l),{requestId:f,abort:d,unwrap:p}=u,h=fH(u.unwrap().then((e=>({data:e}))),(e=>({error:e}))),m=Object.assign(h,{arg:u.arg,requestId:f,abort:d,unwrap:p,reset:()=>{o(c({requestId:f,fixedCacheKey:a}))}}),g=i.get(o)||{};return i.set(o,g),g[f]=m,m.then((()=>{delete g[f],Jg(g)||i.delete(o)})),a&&(g[a]=m,m.then((()=>{g[a]===m&&(delete g[a],Jg(g)||i.delete(o))}))),m}},getRunningQueryThunk:function(t,n){return r=>{var i;const s=a.endpointDefinitions[t],c=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(i=o.get(r))?void 0:i[c]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=i.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(UI)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(UI)}}}function VI(e){return e}function dH({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:o}){const i=async(e,{signal:r,abort:a,rejectWithValue:o,fulfillWithValue:i,dispatch:c,getState:l,extra:u})=>{const f=n[e.endpointName];try{let n,o=VI;const d={signal:r,abort:a,dispatch:c,getState:l,extra:u,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,l()):void 0},p="query"===e.type?e[$y]:void 0;if(p?n=p():f.query?(n=await t(f.query(e.originalArgs),d,f.extraOptions),f.transformResponse&&(o=f.transformResponse)):n=await f.queryFn(e.originalArgs,d,f.extraOptions,(e=>t(e,d,f.extraOptions))),typeof process<"u"&&ZW.NODE_ENV,n.error)throw new FI(n.error,n.meta);return i(await o(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[Gg]:!0})}catch(t){let n=t;if(n instanceof FI){let t=VI;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[Gg]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,a,o;const i=null==(a=null==(r=n[e])?void 0:r.queries)?void 0:a[t.queryCacheKey],s=null==(o=n[e])?void 0:o.config.refetchOnMountOrArgChange,c=null==i?void 0:i.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(c))/1e3>=l)}const c=DI(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Gg]:!0}),condition(t,{getState:r}){var a,o,i;const c=r(),l=null==(o=null==(a=c[e])?void 0:a.queries)?void 0:o[t.queryCacheKey],u=null==l?void 0:l.fulfilledTimeStamp,f=t.originalArgs,d=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!V4(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,c)||s8(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:c}))||!u)},dispatchConditionRejection:!0}),l=DI(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Gg]:!0})});function u(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:c,mutationThunk:l,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,c=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},l=a.endpoints[e].select(t)(o());if(i)r(c());else if(s){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(c());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(c())}else r(c(!1))},updateQueryData:(e,t,n,r=!0)=>(o,i)=>{const s=a.endpoints[e].select(t)(i());let c,l={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(Rc(s.data)){const[e,t,r]=YN(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),c=e}else c=n(s.data),l.patches.push({op:"replace",path:[],value:c}),l.inversePatches.push({op:"replace",path:[],value:s.data});return o(a.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[$y]:()=>({data:n})})),patchQueryData:(e,t,i,s)=>(c,l)=>{const u=n[e],f=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(c(a.internalActions.queryResultPatched({queryCacheKey:f,patches:i})),!s)return;const d=a.endpoints[e].select(t)(l()),p=ER(u.providesTags,d.data,void 0,t,{},o);c(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:ly(bR(e),u(t)),matchFulfilled:ly(op(e),u(t)),matchRejected:ly(i1(e),u(t))}}}}function c8(e,t,n,r){return ER(n[e.meta.arg.endpointName][t],op(e)?e.payload:void 0,Cw(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function kv(e,t,n){const r=e[t];r&&n(r)}function Py(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function qI(e,t,n){const r=e[Py(t)];r&&n(r)}var N0={};function pH({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:s,config:c}){const l=Er(`${e}/resetApiState`),u=ia({name:`${e}/queries`,initialState:N0,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:D0()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){kv(e,t,(e=>{e.data=$I(e.data,n.concat())}))},prepare:D0()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const a=V4(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),kv(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=a&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{kv(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!V4(t.arg))return;const{merge:a}=r[t.arg.endpointName];if(e.status="fulfilled",a)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:o,baseQueryMeta:i,requestId:s}=t;let c=h_(e.data,(e=>a(e,n,{arg:o.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:s})));e.data=c}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?a8(Cc(e.data)?qq(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:a,payload:o})=>{kv(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=o??a}}))})).addMatcher(i,((e,t)=>{const{queries:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),f=ia({name:`${e}/mutations`,initialState:N0,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Py(t);n in e&&delete e[n]},prepare:D0()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[Py(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:a})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&qI(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&qI(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(i,((e,t)=>{const{mutations:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),d=ia({name:`${e}/invalidation`,initialState:N0,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:a,providedTags:o}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(a);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of o){const o=(n=e[t]??(e[t]={}))[r=i||"__internal_without_id"]??(n[r]=[]);o.includes(a)||o.push(a)}},prepare:D0()}},extraReducers(e){e.addCase(u.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(i,((e,t)=>{var n,r;const{provided:a}=o(t);for(const[t,o]of Object.entries(a))for(const[a,i]of Object.entries(o)){const o=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);for(const e of i)o.includes(e)||o.push(e)}})).addMatcher(ap(op(t),Cw(t)),((e,t)=>{const n=c8(t,"providesTags",r,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:n}))}))}}),p=ia({name:`${e}/subscriptions`,initialState:N0,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=ia({name:`${e}/internalSubscriptions`,initialState:N0,reducers:{subscriptionsUpdated:{reducer:(e,t)=>$I(e,t.payload),prepare:D0()}}}),m=ia({name:`${e}/config`,initialState:{online:rH(),focused:aH(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(SR,(e=>{e.online=!0})).addCase(i8,(e=>{e.online=!1})).addCase(xR,(e=>{e.focused=!0})).addCase(o8,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),g=gR({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>g(l.match(t)?void 0:e,t),actions:{...m.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:l}}}var Bh=Symbol.for("RTKQ/skipToken"),l8={status:"uninitialized"},WI=h_(l8,(()=>{})),HI=h_(l8,(()=>{}));function hH({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>WI,a=e=>HI;return{buildQuerySelector:function(t,a){return s=>{const c=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(s===Bh?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[c])??WI},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Py(e)??Bh:e,n(t===Bh?a:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??HI},o)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set;for(const e of n.map(U4)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:NI(Object.values(t)))??[];for(const e of n)a.add(e)}return NI(Array.from(a.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...XW(e.status)}}function i(e){return e[t]}}var Og=WeakMap?new WeakMap:void 0,GI=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Og?void 0:Og.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Il(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Il(t)&&(null==Og||Og.set(t,e)),n=e}return`${e}(${n})`};function mH(...e){return function(t){const n=Iy((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:t.reducerPath??"api"})})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=GI;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:GI({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:Sw(),extractRehydrationInfo:n,hasRehydrationInfo:Iy((e=>null!=n(e)))},o={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in a.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Na(39))}else{a.endpointDefinitions[n]=r;for(const e of i)e.injectEndpoint(n,r)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(a.endpointDefinitions[e]):Object.assign(a.endpointDefinitions[e]||{},n);return o}},i=e.map((e=>e.init(o,r,a)));return o.injectEndpoints({endpoints:t.endpoints})}}function gH(e){for(let t in e)return!1;return!0}var yH=2147482.647,_H=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!gH(t)}const s={};function c(e,t,r,o){const c=n.endpointDefinitions[t],l=(null==c?void 0:c.keepUnusedDataFor)??o.keepUnusedDataFor;if(l===1/0)return;const u=Math.max(0,Math.min(l,yH));if(!i(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{i(e)||r.dispatch(a({queryCacheKey:e})),delete s[e]}),1e3*u)}}return(r,a,i)=>{var l;if(o.match(r)){const t=a.getState()[e],{queryCacheKey:n}=r.payload;c(n,null==(l=t.queries[n])?void 0:l.endpointName,a,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(s))t&&clearTimeout(t),delete s[e];if(n.hasRehydrationInfo(r)){const t=a.getState()[e],{queries:o}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(o))c(e,null==n?void 0:n.endpointName,a,t.config)}}},vH=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:a,api:o,assertTagType:i,refetchQuery:s,internalState:c})=>{const{removeQueryResult:l}=o.internalActions,u=ap(op(r),Cw(r)),f=ap(op(r,a),i1(r,a));let d=[];function p(n,r){const a=r.getState(),i=a[e];if(d.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(i))return;const u=d;if(d=[],0===u.length)return;const f=o.util.selectInvalidatedBy(a,u);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===Jg(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(c8(e,"invalidatesTags",n,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(ER(e.payload,void 0,void 0,void 0,void 0,i),t)}},bH=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:a})=>{const o={};function i({queryCacheKey:t},n){const s=n.getState()[e],c=s.queries[t],u=a.currentSubscriptions[t];if(!c||"uninitialized"===c.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:d}=l(u);if(!Number.isFinite(f))return;const p=o[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+f;o[t]={nextPollTimestamp:h,pollingInterval:f,timeout:setTimeout((()=>{(s.config.focused||!d)&&n.dispatch(r(c,t)),i({queryCacheKey:t},n)}),f)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=a.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=l(s);if(!Number.isFinite(u))return void c(t);const f=o[t],d=Date.now()+u;(!f||d<f.nextPollTimestamp)&&i({queryCacheKey:t},n)}function c(e){const t=o[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete o[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))c(e)}()}},wH=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:a})=>{const{removeQueryResult:o}=n.internalActions;function i(n,i){const s=n.getState()[e],c=s.queries,l=a.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=c[e],a=l[e];a&&t&&((Object.values(a).some((e=>!0===e[i]))||Object.values(a).every((e=>void 0===e[i]))&&s.config[i])&&(0===Jg(a)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{xR.match(e)&&i(t,"refetchOnFocus"),SR.match(e)&&i(t,"refetchOnReconnect")}},KI=new Error("Promise never resolved before cacheEntryRemoved."),kH=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o})=>{const i=F4(r),s=F4(a),c=op(r,a),l={};function u(t,r,a,o,i){const s=n.endpointDefinitions[t],c=null==s?void 0:s.onCacheEntryAdded;if(!c)return;let u={};const f=new Promise((e=>{u.cacheEntryRemoved=e})),d=Promise.race([new Promise((e=>{u.valueResolved=e})),f.then((()=>{throw KI}))]);d.catch((()=>{})),l[a]=u;const p=e.endpoints[t].select("query"===s.type?r:a),h=o.dispatch(((e,t,n)=>n)),m={...o,getCacheEntry:()=>p(o.getState()),requestId:i,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:d,cacheEntryRemoved:f},g=c(r,m);Promise.resolve(g).catch((e=>{if(e!==KI)throw e}))}return(n,o,f)=>{const d=function(t){return i(t)?t.meta.arg.queryCacheKey:s(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Py(t.payload):""}(n);if(r.pending.match(n)){const e=f[t].queries[d],r=o.getState()[t].queries[d];!e&&r&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId)}else if(a.pending.match(n))o.getState()[t].mutations[d]&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId);else if(c(n)){const e=l[d];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=l[d];e&&(delete l[d],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},xH=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=bR(n,r),o=i1(n,r),i=op(n,r),s={};return(n,r)=>{var c,l;if(a(n)){const{requestId:a,arg:{endpointName:o,originalArgs:i}}=n.meta,c=t.endpointDefinitions[o],l=null==c?void 0:c.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[a]=t;const u=e.endpoints[o].select("query"===c.type?i:a),f=r.dispatch(((e,t,n)=>n)),d={...r,getCacheEntry:()=>u(r.getState()),requestId:a,extra:f,updateCachedData:"query"===c.type?t=>r.dispatch(e.util.updateQueryData(o,i,t)):void 0,queryFulfilled:n};l(i,d)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(c=s[e])||c.resolve({data:n.payload,meta:t}),delete s[e]}else if(o(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=s[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},SH=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},EH=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let a=null,o=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:s}=e.internalActions,c=()=>n.currentSubscriptions,l={getSubscriptions:c,getSubscriptionCount:e=>Jg(c()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=c();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(c,u)=>{if(a||(a=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return a=n.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,l];const f=((n,r)=>{var a,o,c;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return null!=(a=null==n?void 0:n[e])&&a[t]&&(n[e][t]=o),!0}if(s.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,a=n[o=e.queryCacheKey]??(n[o]={});return a[`${t}_running`]={},e.subscribe&&(a[t]=e.subscriptionOptions??a[t]??{}),!0}let l=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;l||(l=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:a}}=r;if(e&&t.subscribe){const e=n[c=t.queryCacheKey]??(n[c]={});e[a]=t.subscriptionOptions??e[a]??{},l=!0}}return l})(n.currentSubscriptions,c);let d=!0;if(f){o||(o=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=YN(a,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),a=t,o=null}),500));const i="string"==typeof c.type&&!!c.type.startsWith(r),s=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;d=!i&&!s}return[d,!1]}};function CH(e){const{reducerPath:t,queryThunk:n,api:r,context:a}=e,{apiUid:o}=a,i={invalidateTags:Er(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),c=[SH,_H,vH,bH,kH,xH];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},f=c.map((e=>e(u))),d=EH(u),p=wH(u);return e=>c=>{if(!VN(c))return e(c);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));const l={...n,next:e},u=n.getState(),[h,m]=d(c,l,u);let g;if(g=h?e(c):m,n.getState()[t]&&(p(c,l,u),s(c)||a.hasRehydrationInfo(c)))for(let e of f)e(c,l,u);return g}},actions:i};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function Ld(e,...t){return Object.assign(e,...t)}var QI=Symbol(),RH=({createSelector:e=io}={})=>({name:QI,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u},f){Jq();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:SR,onOffline:i8,onFocus:xR,onFocusLost:o8},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:g,upsertQueryData:y,prefetch:v,buildMatchThunkActions:b}=dH({baseQuery:n,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:_,actions:w}=pH({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});Ld(t.util,{patchQueryData:m,updateQueryData:g,upsertQueryData:y,prefetch:v,resetApiState:w.resetApiState}),Ld(t.internalActions,w);const{middleware:k,actions:x}=CH({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});Ld(t.util,x),Ld(t,{reducer:_,middleware:k});const{buildQuerySelector:S,buildMutationSelector:E,selectInvalidatedBy:A,selectCachedArgsForQuery:C}=hH({serializeQueryArgs:o,reducerPath:a,createSelector:e});Ld(t.util,{selectInvalidatedBy:A,selectCachedArgsForQuery:C});const{buildInitiateQuery:z,buildInitiateMutation:I,getRunningMutationThunk:T,getRunningMutationsThunk:R,getRunningQueriesThunk:j,getRunningQueryThunk:P}=uH({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return Ld(t.util,{getRunningMutationThunk:T,getRunningMutationsThunk:R,getRunningQueryThunk:P,getRunningQueriesThunk:j}),{name:QI,injectEndpoint(e,n){var r;const a=t;(r=a.endpoints)[e]??(r[e]={}),s8(n)?Ld(a.endpoints[e],{name:e,select:S(e,n),initiate:z(e,n)},b(p,e)):cH(n)&&Ld(a.endpoints[e],{name:e,select:E(),initiate:I(e)},b(h,e))}}}}),v=kw();const ze=Dl(v),Ab=Iq({__proto__:null,default:ze},[v]);var YI,ZI,$x={exports:{}},Px={};
|
|
27
|
+
*/function Mq(){return wI||(wI=1,e=Y0,t=Y0.exports,function(){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t,n,r){for(var a=-1,o=null==e?0:e.length;++a<o;){var i=e[a];t(r,i,n(i),e)}return r}function a(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function o(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function i(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function s(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}function c(e,t){return!(null==e||!e.length)&&y(e,t,0)>-1}function l(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}function u(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}function f(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function d(e,t,n,r){var a=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++a]);++a<o;)n=t(n,e[a],a,e);return n}function p(e,t,n,r){var a=null==e?0:e.length;for(r&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function h(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function m(e,t,n){var r;return n(e,(function(e,n,a){if(t(e,n,a))return r=n,!1})),r}function g(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}function y(e,t,n){return t==t?function(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}(e,t,n):g(e,b,n)}function v(e,t,n,r){for(var a=n-1,o=e.length;++a<o;)if(r(e[a],t))return a;return-1}function b(e){return e!=e}function _(e,t){var n=null==e?0:e.length;return n?S(e,t)/n:X}function w(e){return function(t){return null==t?V:t[e]}}function k(e){return function(t){return null==e?V:e[t]}}function x(e,t,n,r,a){return a(e,(function(e,a,o){n=r?(r=!1,e):t(n,e,a,o)})),n}function S(e,t){for(var n,r=-1,a=e.length;++r<a;){var o=t(e[r]);o!==V&&(n=n===V?o:n+o)}return n}function E(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function A(e){return e&&e.slice(0,q(e)+1).replace(We,"")}function C(e){return function(t){return e(t)}}function z(e,t){return u(t,(function(t){return e[t]}))}function I(e,t){return e.has(t)}function T(e,t){for(var n=-1,r=e.length;++n<r&&y(t,e[n],0)>-1;);return n}function R(e,t){for(var n=e.length;n--&&y(t,e[n],0)>-1;);return n}function j(e){return"\\"+Kt[e]}function P(e){return Ut.test(e)}function O(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function N(e,t){return function(n){return e(t(n))}}function M(e,t){for(var n=-1,r=e.length,a=0,o=[];++n<r;){var i=e[n];i!==t&&i!==$||(e[n]=$,o[a++]=n)}return o}function D(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function B(e){return P(e)?function(e){for(var t=Vt.lastIndex=0;Vt.test(e);)++t;return t}(e):pn(e)}function L(e){return P(e)?function(e){return e.match(Vt)||[]}(e):function(e){return e.split("")}(e)}function q(e){for(var t=e.length;t--&&He.test(e.charAt(t)););return t}var V,F="Expected a function",U="__lodash_hash_undefined__",$="__lodash_placeholder__",W=16,H=32,G=64,Q=128,K=256,Y=1/0,Z=9007199254740991,X=NaN,J=4294967295,ee=J-1,te=J>>>1,ne=[["ary",Q],["bind",1],["bindKey",2],["curry",8],["curryRight",W],["flip",512],["partial",H],["partialRight",G],["rearg",K]],re="[object Arguments]",ae="[object Array]",oe="[object Boolean]",ie="[object Date]",se="[object Error]",ce="[object Function]",le="[object GeneratorFunction]",ue="[object Map]",fe="[object Number]",de="[object Object]",pe="[object Promise]",he="[object RegExp]",me="[object Set]",ge="[object String]",ye="[object Symbol]",ve="[object WeakMap]",be="[object ArrayBuffer]",_e="[object DataView]",we="[object Float32Array]",ke="[object Float64Array]",xe="[object Int8Array]",Se="[object Int16Array]",Ee="[object Int32Array]",Ae="[object Uint8Array]",Ce="[object Uint8ClampedArray]",ze="[object Uint16Array]",Ie="[object Uint32Array]",Te=/\b__p \+= '';/g,Re=/\b(__p \+=) '' \+/g,je=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pe=/&(?:amp|lt|gt|quot|#39);/g,Oe=/[&<>"']/g,Ne=RegExp(Pe.source),Me=RegExp(Oe.source),De=/<%-([\s\S]+?)%>/g,Be=/<%([\s\S]+?)%>/g,Le=/<%=([\s\S]+?)%>/g,qe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ve=/^\w*$/,Fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ue=/[\\^$.*+?()[\]{}|]/g,$e=RegExp(Ue.source),We=/^\s+/,He=/\s/,Ge=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Qe=/\{\n\/\* \[wrapped with (.+)\] \*/,Ke=/,? & /,Ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ze=/[()=,{}\[\]\/\s]/,Xe=/\\(\\)?/g,Je=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,et=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,ot=/^(?:0|[1-9]\d*)$/,it=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,st=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,lt="\\ud800-\\udfff",ut="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ft="\\u2700-\\u27bf",dt="a-z\\xdf-\\xf6\\xf8-\\xff",pt="A-Z\\xc0-\\xd6\\xd8-\\xde",ht="\\ufe0e\\ufe0f",mt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",gt="['’]",yt="["+lt+"]",vt="["+mt+"]",bt="["+ut+"]",_t="\\d+",wt="["+ft+"]",kt="["+dt+"]",xt="[^"+lt+mt+_t+ft+dt+pt+"]",St="\\ud83c[\\udffb-\\udfff]",Et="[^"+lt+"]",At="(?:\\ud83c[\\udde6-\\uddff]){2}",Ct="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+pt+"]",It="\\u200d",Tt="(?:"+kt+"|"+xt+")",Rt="(?:"+zt+"|"+xt+")",jt="(?:['’](?:d|ll|m|re|s|t|ve))?",Pt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ot="(?:"+bt+"|"+St+")?",Nt="["+ht+"]?",Mt=Nt+Ot+"(?:"+It+"(?:"+[Et,At,Ct].join("|")+")"+Nt+Ot+")*",Dt="(?:"+[wt,At,Ct].join("|")+")"+Mt,Bt="(?:"+[Et+bt+"?",bt,At,Ct,yt].join("|")+")",Lt=RegExp(gt,"g"),qt=RegExp(bt,"g"),Vt=RegExp(St+"(?="+St+")|"+Bt+Mt,"g"),Ft=RegExp([zt+"?"+kt+"+"+jt+"(?="+[vt,zt,"$"].join("|")+")",Rt+"+"+Pt+"(?="+[vt,zt+Tt,"$"].join("|")+")",zt+"?"+Tt+"+"+jt,zt+"+"+Pt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_t,Dt].join("|"),"g"),Ut=RegExp("["+It+lt+ut+ht+"]"),$t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ht=-1,Gt={};Gt[we]=Gt[ke]=Gt[xe]=Gt[Se]=Gt[Ee]=Gt[Ae]=Gt[Ce]=Gt[ze]=Gt[Ie]=!0,Gt[re]=Gt[ae]=Gt[be]=Gt[oe]=Gt[_e]=Gt[ie]=Gt[se]=Gt[ce]=Gt[ue]=Gt[fe]=Gt[de]=Gt[he]=Gt[me]=Gt[ge]=Gt[ve]=!1;var Qt={};Qt[re]=Qt[ae]=Qt[be]=Qt[_e]=Qt[oe]=Qt[ie]=Qt[we]=Qt[ke]=Qt[xe]=Qt[Se]=Qt[Ee]=Qt[ue]=Qt[fe]=Qt[de]=Qt[he]=Qt[me]=Qt[ge]=Qt[ye]=Qt[Ae]=Qt[Ce]=Qt[ze]=Qt[Ie]=!0,Qt[se]=Qt[ce]=Qt[ve]=!1;var Kt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yt=parseFloat,Zt=parseInt,Xt="object"==typeof As&&As&&As.Object===Object&&As,Jt="object"==typeof self&&self&&self.Object===Object&&self,en=Xt||Jt||Function("return this")(),tn=t&&!t.nodeType&&t,nn=tn&&e&&!e.nodeType&&e,rn=nn&&nn.exports===tn,an=rn&&Xt.process,on=function(){try{return nn&&nn.require&&nn.require("util").types||an&&an.binding&&an.binding("util")}catch{}}(),sn=on&&on.isArrayBuffer,cn=on&&on.isDate,ln=on&&on.isMap,un=on&&on.isRegExp,fn=on&&on.isSet,dn=on&&on.isTypedArray,pn=w("length"),hn=k({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),mn=k({"&":"&","<":"<",">":">",'"':""","'":"'"}),gn=k({"&":"&","<":"<",">":">",""":'"',"'":"'"}),yn=function e(t){function k(e){if(Da(e)&&!zs(e)&&!(e instanceof ut)){if(e instanceof lt)return e;if(zo.call(e,"__wrapped__"))return la(e)}return new lt(e)}function He(){}function lt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=V}function ut(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function ft(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function dt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ht(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new pt;++t<n;)this.add(e[t])}function mt(e){this.size=(this.__data__=new dt(e)).size}function gt(e,t){var n=zs(e),r=!n&&Cs(e),a=!n&&!r&&Ts(e),o=!n&&!r&&!a&&Ns(e),i=n||r||a||o,s=i?E(e.length,wo):[],c=s.length;for(var l in e)!t&&!zo.call(e,l)||i&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Qr(l,c))||s.push(l);return s}function yt(e){var t=e.length;return t?e[Pn(0,t-1)]:V}function vt(e,t){return ia(ur(e),Ct(t,0,e.length))}function bt(e){return ia(ur(e))}function _t(e,t,n){(n===V||Ia(e[t],n))&&(n!==V||t in e)||Et(e,t,n)}function wt(e,t,n){var r=e[t];zo.call(e,t)&&Ia(r,n)&&(n!==V||t in e)||Et(e,t,n)}function kt(e,t){for(var n=e.length;n--;)if(Ia(e[n][0],t))return n;return-1}function xt(e,t,n,r){return Ai(e,(function(e,a,o){t(r,e,n(e),o)})),r}function St(e,t){return e&&fr(t,Za(t),e)}function Et(e,t,n){"__proto__"==t&&Ho?Ho(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function At(e,t){for(var n=-1,r=t.length,a=ho(r),o=null==e;++n<r;)a[n]=o?V:Ka(e,t[n]);return a}function Ct(e,t,n){return e==e&&(n!==V&&(e=e<=n?e:n),t!==V&&(e=e>=t?e:t)),e}function zt(e,t,n,r,o,i){var s,c=1&t,l=2&t,u=4&t;if(n&&(s=o?n(e,r,o,i):n(e)),s!==V)return s;if(!Ma(e))return e;var f=zs(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&zo.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return ur(e,s)}else{var d=Bi(e),p=d==ce||d==le;if(Ts(e))return ar(e,c);if(d==de||d==re||p&&!o){if(s=l||p?{}:Hr(e),!c)return l?function(e,t){return fr(e,Di(e),t)}(e,function(e,t){return e&&fr(t,Xa(t),e)}(s,e)):function(e,t){return fr(e,Mi(e),t)}(e,St(s,e))}else{if(!Qt[d])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case be:return or(e);case oe:case ie:return new r(+e);case _e:return function(e,t){return new e.constructor(t?or(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,n);case we:case ke:case xe:case Se:case Ee:case Ae:case Ce:case ze:case Ie:return ir(e,n);case ue:return new r;case fe:case ge:return new r(e);case he:return function(e){var t=new e.constructor(e.source,et.exec(e));return t.lastIndex=e.lastIndex,t}(e);case me:return new r;case ye:return function(e){return xi?bo(xi.call(e)):{}}(e)}}(e,d,c)}}i||(i=new mt);var h=i.get(e);if(h)return h;i.set(e,s),Os(e)?e.forEach((function(r){s.add(zt(r,t,n,r,e,i))})):js(e)&&e.forEach((function(r,a){s.set(a,zt(r,t,n,a,e,i))}));var m=f?V:(u?l?Br:Dr:l?Xa:Za)(e);return a(m||e,(function(r,a){m&&(r=e[a=r]),wt(s,a,zt(r,t,n,a,e,i))})),s}function It(e,t,n){var r=n.length;if(null==e)return!r;for(e=bo(e);r--;){var a=n[r],o=t[a],i=e[a];if(i===V&&!(a in e)||!o(i))return!1}return!0}function Tt(e,t,n){if("function"!=typeof e)throw new ko(F);return Vi((function(){e.apply(V,n)}),t)}function Rt(e,t,n,r){var a=-1,o=c,i=!0,s=e.length,f=[],d=t.length;if(!s)return f;n&&(t=u(t,C(n))),r?(o=l,i=!1):t.length>=200&&(o=I,i=!1,t=new ht(t));e:for(;++a<s;){var p=e[a],h=null==n?p:n(p);if(p=r||0!==p?p:0,i&&h==h){for(var m=d;m--;)if(t[m]===h)continue e;f.push(p)}else o(t,h,r)||f.push(p)}return f}function jt(e,t){var n=!0;return Ai(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function Pt(e,t,n){for(var r=-1,a=e.length;++r<a;){var o=e[r],i=t(o);if(null!=i&&(s===V?i==i&&!Va(i):n(i,s)))var s=i,c=o}return c}function Ot(e,t){var n=[];return Ai(e,(function(e,r,a){t(e,r,a)&&n.push(e)})),n}function Nt(e,t,n,r,a){var o=-1,i=e.length;for(n||(n=Gr),a||(a=[]);++o<i;){var s=e[o];t>0&&n(s)?t>1?Nt(s,t-1,n,r,a):f(a,s):r||(a[a.length]=s)}return a}function Mt(e,t){return e&&zi(e,t,Za)}function Dt(e,t){return e&&Ii(e,t,Za)}function Bt(e,t){return s(t,(function(t){return Pa(e[t])}))}function Vt(e,t){for(var n=0,r=(t=nr(t,e)).length;null!=e&&n<r;)e=e[sa(t[n++])];return n&&n==r?e:V}function Ut(e,t,n){var r=t(e);return zs(e)?r:f(r,n(e))}function Kt(e){return null==e?e===V?"[object Undefined]":"[object Null]":Wo&&Wo in bo(e)?function(e){var t=zo.call(e,Wo),n=e[Wo];try{e[Wo]=V;var r=!0}catch{}var a=Ro.call(e);return r&&(t?e[Wo]=n:delete e[Wo]),a}(e):function(e){return Ro.call(e)}(e)}function Xt(e,t){return e>t}function Jt(e,t){return null!=e&&zo.call(e,t)}function tn(e,t){return null!=e&&t in bo(e)}function nn(e,t,n){for(var r=n?l:c,a=e[0].length,o=e.length,i=o,s=ho(o),f=1/0,d=[];i--;){var p=e[i];i&&t&&(p=u(p,C(t))),f=ai(p.length,f),s[i]=!n&&(t||a>=120&&p.length>=120)?new ht(i&&p):V}p=e[0];var h=-1,m=s[0];e:for(;++h<a&&d.length<f;){var g=p[h],y=t?t(g):g;if(g=n||0!==g?g:0,!(m?I(m,y):r(d,y,n))){for(i=o;--i;){var v=s[i];if(!(v?I(v,y):r(e[i],y,n)))continue e}m&&m.push(y),d.push(g)}}return d}function an(e,t,r){var a=null==(e=na(e,t=nr(t,e)))?e:e[sa(ha(t))];return null==a?V:n(a,e,r)}function on(e){return Da(e)&&Kt(e)==re}function pn(e,t,n,r,a){return e===t||(null==e||null==t||!Da(e)&&!Da(t)?e!=e&&t!=t:function(e,t,n,r,a,o){var i=zs(e),s=zs(t),c=i?ae:Bi(e),l=s?ae:Bi(t),u=(c=c==re?de:c)==de,f=(l=l==re?de:l)==de,d=c==l;if(d&&Ts(e)){if(!Ts(t))return!1;i=!0,u=!1}if(d&&!u)return o||(o=new mt),i||Ns(e)?Nr(e,t,n,r,a,o):function(e,t,n,r,a,o,i){switch(n){case _e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case be:return!(e.byteLength!=t.byteLength||!o(new Do(e),new Do(t)));case oe:case ie:case fe:return Ia(+e,+t);case se:return e.name==t.name&&e.message==t.message;case he:case ge:return e==t+"";case ue:var s=O;case me:var c=1&r;if(s||(s=D),e.size!=t.size&&!c)return!1;var l=i.get(e);if(l)return l==t;r|=2,i.set(e,t);var u=Nr(s(e),s(t),r,a,o,i);return i.delete(e),u;case ye:if(xi)return xi.call(e)==xi.call(t)}return!1}(e,t,c,n,r,a,o);if(!(1&n)){var p=u&&zo.call(e,"__wrapped__"),h=f&&zo.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return o||(o=new mt),a(m,g,n,r,o)}}return!!d&&(o||(o=new mt),function(e,t,n,r,a,o){var i=1&n,s=Dr(e),c=s.length;if(c!=Dr(t).length&&!i)return!1;for(var l=c;l--;){var u=s[l];if(!(i?u in t:zo.call(t,u)))return!1}var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=i;++l<c;){var m=e[u=s[l]],g=t[u];if(r)var y=i?r(g,m,u,t,e,o):r(m,g,u,e,t,o);if(!(y===V?m===g||a(m,g,n,r,o):y)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var v=e.constructor,b=t.constructor;v!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b)&&(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,a,o))}(e,t,n,r,pn,a))}function vn(e,t,n,r){var a=n.length,o=a,i=!r;if(null==e)return!o;for(e=bo(e);a--;){var s=n[a];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<o;){var c=(s=n[a])[0],l=e[c],u=s[1];if(i&&s[2]){if(l===V&&!(c in e))return!1}else{var f=new mt;if(r)var d=r(l,u,c,e,t,f);if(!(d===V?pn(u,l,3,r,f):d))return!1}}return!0}function bn(e){return!(!Ma(e)||function(e){return!!To&&To in e}(e))&&(Pa(e)?Oo:rt).test(ca(e))}function _n(e){return"function"==typeof e?e:null==e?oo:"object"==typeof e?zs(e)?An(e[0],e[1]):En(e):lo(e)}function wn(e){if(!Xr(e))return ni(e);var t=[];for(var n in bo(e))zo.call(e,n)&&"constructor"!=n&&t.push(n);return t}function kn(e){if(!Ma(e))return function(e){var t=[];if(null!=e)for(var n in bo(e))t.push(n);return t}(e);var t=Xr(e),n=[];for(var r in e)("constructor"!=r||!t&&zo.call(e,r))&&n.push(r);return n}function xn(e,t){return e<t}function Sn(e,t){var n=-1,r=Ta(e)?ho(e.length):[];return Ai(e,(function(e,a,o){r[++n]=t(e,a,o)})),r}function En(e){var t=Ur(e);return 1==t.length&&t[0][2]?ea(t[0][0],t[0][1]):function(n){return n===e||vn(n,e,t)}}function An(e,t){return Yr(e)&&Jr(t)?ea(sa(e),t):function(n){var r=Ka(n,e);return r===V&&r===t?Ya(n,e):pn(t,r,3)}}function Cn(e,t,n,r,a){e!==t&&zi(t,(function(o,i){if(a||(a=new mt),Ma(o))!function(e,t,n,r,a,o,i){var s=ra(e,n),c=ra(t,n),l=i.get(c);if(l)return _t(e,n,l),V;var u=o?o(s,c,n+"",e,t,i):V,f=u===V;if(f){var d=zs(c),p=!d&&Ts(c),h=!d&&!p&&Ns(c);u=c,d||p||h?zs(s)?u=s:Ra(s)?u=ur(s):p?(f=!1,u=ar(c,!0)):h?(f=!1,u=ir(c,!0)):u=[]:La(c)||Cs(c)?(u=s,Cs(s)?u=Ga(s):Ma(s)&&!Pa(s)||(u=Hr(c))):f=!1}f&&(i.set(c,u),a(u,c,r,o,i),i.delete(c)),_t(e,n,u)}(e,t,i,n,Cn,r,a);else{var s=r?r(ra(e,i),o,i+"",e,t,a):V;s===V&&(s=o),_t(e,i,s)}}),Xa)}function zn(e,t){var n=e.length;if(n)return Qr(t+=t<0?n:0,n)?e[t]:V}function In(e,t,n){t=t.length?u(t,(function(e){return zs(e)?function(t){return Vt(t,1===e.length?e[0]:e)}:e})):[oo];var r=-1;return t=u(t,C(Vr())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Sn(e,(function(e,n,a){return{criteria:u(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,a=e.criteria,o=t.criteria,i=a.length,s=n.length;++r<i;){var c=sr(a[r],o[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Tn(e,t,n){for(var r=-1,a=t.length,o={};++r<a;){var i=t[r],s=Vt(e,i);n(s,i)&&Bn(o,nr(i,e),s)}return o}function Rn(e,t,n,r){var a=r?v:y,o=-1,i=t.length,s=e;for(e===t&&(t=ur(t)),n&&(s=u(e,C(n)));++o<i;)for(var c=0,l=t[o],f=n?n(l):l;(c=a(s,f,c,r))>-1;)s!==e&&Fo.call(s,c,1),Fo.call(e,c,1);return e}function jn(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==o){var o=a;Qr(a)?Fo.call(e,a,1):Qn(e,a)}}return e}function Pn(e,t){return e+Zo(si()*(t-e+1))}function On(e,t){var n="";if(!e||t<1||t>Z)return n;do{t%2&&(n+=e),(t=Zo(t/2))&&(e+=e)}while(t);return n}function Nn(e,t){return Fi(ta(e,t,oo),e+"")}function Mn(e){return yt(eo(e))}function Dn(e,t){var n=eo(e);return ia(n,Ct(t,0,n.length))}function Bn(e,t,n,r){if(!Ma(e))return e;for(var a=-1,o=(t=nr(t,e)).length,i=o-1,s=e;null!=s&&++a<o;){var c=sa(t[a]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=i){var u=s[c];(l=r?r(u,c,s):V)===V&&(l=Ma(u)?u:Qr(t[a+1])?[]:{})}wt(s,c,l),s=s[c]}return e}function Ln(e){return ia(eo(e))}function qn(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=ho(a);++r<a;)o[r]=e[r+t];return o}function Vn(e,t){var n;return Ai(e,(function(e,r,a){return!(n=t(e,r,a))})),!!n}function Fn(e,t,n){var r=0,a=null==e?r:e.length;if("number"==typeof t&&t==t&&a<=te){for(;r<a;){var o=r+a>>>1,i=e[o];null!==i&&!Va(i)&&(n?i<=t:i<t)?r=o+1:a=o}return a}return Un(e,t,oo,n)}function Un(e,t,n,r){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var i=(t=n(t))!=t,s=null===t,c=Va(t),l=t===V;a<o;){var u=Zo((a+o)/2),f=n(e[u]),d=f!==V,p=null===f,h=f==f,m=Va(f);if(i)var g=r||h;else g=l?h&&(r||d):s?h&&d&&(r||!p):c?h&&d&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);g?a=u+1:o=u}return ai(o,ee)}function $n(e,t){for(var n=-1,r=e.length,a=0,o=[];++n<r;){var i=e[n],s=t?t(i):i;if(!n||!Ia(s,c)){var c=s;o[a++]=0===i?0:i}}return o}function Wn(e){return"number"==typeof e?e:Va(e)?X:+e}function Hn(e){if("string"==typeof e)return e;if(zs(e))return u(e,Hn)+"";if(Va(e))return Si?Si.call(e):"";var t=e+"";return"0"==t&&1/e==-Y?"-0":t}function Gn(e,t,n){var r=-1,a=c,o=e.length,i=!0,s=[],u=s;if(n)i=!1,a=l;else if(o>=200){var f=t?null:Oi(e);if(f)return D(f);i=!1,a=I,u=new ht}else u=t?[]:s;e:for(;++r<o;){var d=e[r],p=t?t(d):d;if(d=n||0!==d?d:0,i&&p==p){for(var h=u.length;h--;)if(u[h]===p)continue e;t&&u.push(p),s.push(d)}else a(u,p,n)||(u!==s&&u.push(p),s.push(d))}return s}function Qn(e,t){return null==(e=na(e,t=nr(t,e)))||delete e[sa(ha(t))]}function Kn(e,t,n,r){return Bn(e,t,n(Vt(e,t)),r)}function Yn(e,t,n,r){for(var a=e.length,o=r?a:-1;(r?o--:++o<a)&&t(e[o],o,e););return n?qn(e,r?0:o,r?o+1:a):qn(e,r?o+1:0,r?a:o)}function Zn(e,t){var n=e;return n instanceof ut&&(n=n.value()),d(t,(function(e,t){return t.func.apply(t.thisArg,f([e],t.args))}),n)}function Xn(e,t,n){var r=e.length;if(r<2)return r?Gn(e[0]):[];for(var a=-1,o=ho(r);++a<r;)for(var i=e[a],s=-1;++s<r;)s!=a&&(o[a]=Rt(o[a]||i,e[s],t,n));return Gn(Nt(o,1),t,n)}function Jn(e,t,n){for(var r=-1,a=e.length,o=t.length,i={};++r<a;)n(i,e[r],r<o?t[r]:V);return i}function er(e){return Ra(e)?e:[]}function tr(e){return"function"==typeof e?e:oo}function nr(e,t){return zs(e)?e:Yr(e,t)?[e]:Ui(Qa(e))}function rr(e,t,n){var r=e.length;return n=n===V?r:n,!t&&n>=r?e:qn(e,t,n)}function ar(e,t){if(t)return e.slice();var n=e.length,r=Bo?Bo(n):new e.constructor(n);return e.copy(r),r}function or(e){var t=new e.constructor(e.byteLength);return new Do(t).set(new Do(e)),t}function ir(e,t){return new e.constructor(t?or(e.buffer):e.buffer,e.byteOffset,e.length)}function sr(e,t){if(e!==t){var n=e!==V,r=null===e,a=e==e,o=Va(e),i=t!==V,s=null===t,c=t==t,l=Va(t);if(!s&&!l&&!o&&e>t||o&&i&&c&&!s&&!l||r&&i&&c||!n&&c||!a)return 1;if(!r&&!o&&!l&&e<t||l&&n&&a&&!r&&!o||s&&n&&a||!i&&a||!c)return-1}return 0}function cr(e,t,n,r){for(var a=-1,o=e.length,i=n.length,s=-1,c=t.length,l=ri(o-i,0),u=ho(c+l),f=!r;++s<c;)u[s]=t[s];for(;++a<i;)(f||a<o)&&(u[n[a]]=e[a]);for(;l--;)u[s++]=e[a++];return u}function lr(e,t,n,r){for(var a=-1,o=e.length,i=-1,s=n.length,c=-1,l=t.length,u=ri(o-s,0),f=ho(u+l),d=!r;++a<u;)f[a]=e[a];for(var p=a;++c<l;)f[p+c]=t[c];for(;++i<s;)(d||a<o)&&(f[p+n[i]]=e[a++]);return f}function ur(e,t){var n=-1,r=e.length;for(t||(t=ho(r));++n<r;)t[n]=e[n];return t}function fr(e,t,n,r){var a=!n;n||(n={});for(var o=-1,i=t.length;++o<i;){var s=t[o],c=r?r(n[s],e[s],s,n,e):V;c===V&&(c=e[s]),a?Et(n,s,c):wt(n,s,c)}return n}function dr(e,t){return function(n,a){var o=zs(n)?r:xt,i=t?t():{};return o(n,e,Vr(a,2),i)}}function pr(e){return Nn((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:V,i=a>2?n[2]:V;for(o=e.length>3&&"function"==typeof o?(a--,o):V,i&&Kr(n[0],n[1],i)&&(o=a<3?V:o,a=1),t=bo(t);++r<a;){var s=n[r];s&&e(t,s,r,o)}return t}))}function hr(e,t){return function(n,r){if(null==n)return n;if(!Ta(n))return e(n,r);for(var a=n.length,o=t?a:-1,i=bo(n);(t?o--:++o<a)&&!1!==r(i[o],o,i););return n}}function mr(e){return function(t,n,r){for(var a=-1,o=bo(t),i=r(t),s=i.length;s--;){var c=i[e?s:++a];if(!1===n(o[c],c,o))break}return t}}function gr(e){return function(t){var n=P(t=Qa(t))?L(t):V,r=n?n[0]:t.charAt(0),a=n?rr(n,1).join(""):t.slice(1);return r[e]()+a}}function yr(e){return function(t){return d(ro(no(t).replace(Lt,"")),e,"")}}function vr(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 n=Ei(e.prototype),r=e.apply(n,t);return Ma(r)?r:n}}function br(e){return function(t,n,r){var a=bo(t);if(!Ta(t)){var o=Vr(n,3);t=Za(t),n=function(e){return o(a[e],e,a)}}var i=e(t,n,r);return i>-1?a[o?t[i]:i]:V}}function _r(e){return Mr((function(t){var n=t.length,r=n,a=lt.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new ko(F);if(a&&!i&&"wrapper"==Lr(o))var i=new lt([],!0)}for(r=i?r:n;++r<n;){var s=Lr(o=t[r]),c="wrapper"==s?Ni(o):V;i=c&&Zr(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?i[Lr(c[0])].apply(i,c[3]):1==o.length&&Zr(o)?i[s]():i.thru(o)}return function(){var e=arguments,r=e[0];if(i&&1==e.length&&zs(r))return i.plant(r).value();for(var a=0,o=n?t[a].apply(this,e):r;++a<n;)o=t[a].call(this,o);return o}}))}function wr(e,t,n,r,a,o,i,s,c,l){var u=t&Q,f=1&t,d=2&t,p=24&t,h=512&t,m=d?V:vr(e);return function g(){for(var y=arguments.length,v=ho(y),b=y;b--;)v[b]=arguments[b];if(p)var _=qr(g),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(v,_);if(r&&(v=cr(v,r,a,p)),o&&(v=lr(v,o,i,p)),y-=w,p&&y<l)return zr(e,t,wr,g.placeholder,n,v,M(v,_),s,c,l-y);var k=f?n:this,x=d?k[e]:e;return y=v.length,s?v=function(e,t){for(var n=e.length,r=ai(t.length,n),a=ur(e);r--;){var o=t[r];e[r]=Qr(o,n)?a[o]:V}return e}(v,s):h&&y>1&&v.reverse(),u&&c<y&&(v.length=c),this&&this!==en&&this instanceof g&&(x=m||vr(x)),x.apply(k,v)}}function kr(e,t){return function(n,r){return function(e,t,n,r){return Mt(e,(function(e,a,o){t(r,n(e),a,o)})),r}(n,e,t(r),{})}}function xr(e,t){return function(n,r){var a;if(n===V&&r===V)return t;if(n!==V&&(a=n),r!==V){if(a===V)return r;"string"==typeof n||"string"==typeof r?(n=Hn(n),r=Hn(r)):(n=Wn(n),r=Wn(r)),a=e(n,r)}return a}}function Sr(e){return Mr((function(t){return t=u(t,C(Vr())),Nn((function(r){var a=this;return e(t,(function(e){return n(e,a,r)}))}))}))}function Er(e,t){var n=(t=t===V?" ":Hn(t)).length;if(n<2)return n?On(t,e):t;var r=On(t,Yo(e/B(t)));return P(t)?rr(L(r),0,e).join(""):r.slice(0,e)}function Ar(e){return function(t,n,r){return r&&"number"!=typeof r&&Kr(t,n,r)&&(n=r=V),t=Ua(t),n===V?(n=t,t=0):n=Ua(n),function(e,t,n,r){for(var a=-1,o=ri(Yo((t-e)/(n||1)),0),i=ho(o);o--;)i[r?o:++a]=e,e+=n;return i}(t,n,r=r===V?t<n?1:-1:Ua(r),e)}}function Cr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Ha(t),n=Ha(n)),e(t,n)}}function zr(e,t,n,r,a,o,i,s,c,l){var u=8&t;t|=u?H:G,4&(t&=~(u?G:H))||(t&=-4);var f=[e,t,a,u?o:V,u?i:V,u?V:o,u?V:i,s,c,l],d=n.apply(V,f);return Zr(e)&&qi(d,f),d.placeholder=r,aa(d,e,t)}function Ir(e){var t=vo[e];return function(e,n){if(e=Ha(e),(n=null==n?0:ai($a(n),292))&&ei(e)){var r=(Qa(e)+"e").split("e");return+((r=(Qa(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}function Tr(e){return function(t){var n=Bi(t);return n==ue?O(t):n==me?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return u(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Rr(e,t,r,a,o,i,s,c){var l=2&t;if(!l&&"function"!=typeof e)throw new ko(F);var u=a?a.length:0;if(u||(t&=-97,a=o=V),s=s===V?s:ri($a(s),0),c=c===V?c:$a(c),u-=o?o.length:0,t&G){var f=a,d=o;a=o=V}var p=l?V:Ni(e),h=[e,t,r,a,o,f,d,i,s,c];if(p&&function(e,t){var n=e[1],r=t[1],a=n|r,o=a<131,i=r==Q&&8==n||r==Q&&n==K&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!i)return e;1&r&&(e[2]=t[2],a|=1&n?0:4);var s=t[3];if(s){var c=e[3];e[3]=c?cr(c,s,t[4]):s,e[4]=c?M(e[3],$):t[4]}(s=t[5])&&(c=e[5],e[5]=c?lr(c,s,t[6]):s,e[6]=c?M(e[5],$):t[6]),(s=t[7])&&(e[7]=s),r&Q&&(e[8]=null==e[8]?t[8]:ai(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=a}(h,p),e=h[0],t=h[1],r=h[2],a=h[3],o=h[4],!(c=h[9]=h[9]===V?l?0:e.length:ri(h[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)m=8==t||t==W?function(e,t,r){var a=vr(e);return function o(){for(var i=arguments.length,s=ho(i),c=i,l=qr(o);c--;)s[c]=arguments[c];var u=i<3&&s[0]!==l&&s[i-1]!==l?[]:M(s,l);return(i-=u.length)<r?zr(e,t,wr,o.placeholder,V,s,u,V,V,r-i):n(this&&this!==en&&this instanceof o?a:e,this,s)}}(e,t,c):t!=H&&33!=t||o.length?wr.apply(V,h):function(e,t,r,a){var o=1&t,i=vr(e);return function t(){for(var s=-1,c=arguments.length,l=-1,u=a.length,f=ho(u+c),d=this&&this!==en&&this instanceof t?i:e;++l<u;)f[l]=a[l];for(;c--;)f[l++]=arguments[++s];return n(d,o?r:this,f)}}(e,t,r,a);else var m=function(e,t,n){var r=1&t,a=vr(e);return function t(){return(this&&this!==en&&this instanceof t?a:e).apply(r?n:this,arguments)}}(e,t,r);return aa((p?Ti:qi)(m,h),e,t)}function jr(e,t,n,r){return e===V||Ia(e,Eo[n])&&!zo.call(r,n)?t:e}function Pr(e,t,n,r,a,o){return Ma(e)&&Ma(t)&&(o.set(t,e),Cn(e,t,V,Pr,o),o.delete(t)),e}function Or(e){return La(e)?V:e}function Nr(e,t,n,r,a,o){var i=1&n,s=e.length,c=t.length;if(s!=c&&!(i&&c>s))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var f=-1,d=!0,p=2&n?new ht:V;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],g=t[f];if(r)var y=i?r(g,m,f,t,e,o):r(m,g,f,e,t,o);if(y!==V){if(y)continue;d=!1;break}if(p){if(!h(t,(function(e,t){if(!I(p,t)&&(m===e||a(m,e,n,r,o)))return p.push(t)}))){d=!1;break}}else if(m!==g&&!a(m,g,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Mr(e){return Fi(ta(e,V,da),e+"")}function Dr(e){return Ut(e,Za,Mi)}function Br(e){return Ut(e,Xa,Di)}function Lr(e){for(var t=e.name+"",n=gi[t],r=zo.call(gi,t)?n.length:0;r--;){var a=n[r],o=a.func;if(null==o||o==e)return a.name}return t}function qr(e){return(zo.call(k,"placeholder")?k:e).placeholder}function Vr(){var e=k.iteratee||io;return e=e===io?_n:e,arguments.length?e(arguments[0],arguments[1]):e}function Fr(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Ur(e){for(var t=Za(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,Jr(a)]}return t}function $r(e,t){var n=function(e,t){return null==e?V:e[t]}(e,t);return bn(n)?n:V}function Wr(e,t,n){for(var r=-1,a=(t=nr(t,e)).length,o=!1;++r<a;){var i=sa(t[r]);if(!(o=null!=e&&n(e,i)))break;e=e[i]}return o||++r!=a?o:!!(a=null==e?0:e.length)&&Na(a)&&Qr(i,a)&&(zs(e)||Cs(e))}function Hr(e){return"function"!=typeof e.constructor||Xr(e)?{}:Ei(Lo(e))}function Gr(e){return zs(e)||Cs(e)||!!(Uo&&e&&e[Uo])}function Qr(e,t){var n=typeof e;return!!(t=t??Z)&&("number"==n||"symbol"!=n&&ot.test(e))&&e>-1&&e%1==0&&e<t}function Kr(e,t,n){if(!Ma(n))return!1;var r=typeof t;return!!("number"==r?Ta(n)&&Qr(t,n.length):"string"==r&&t in n)&&Ia(n[t],e)}function Yr(e,t){if(zs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Va(e))||Ve.test(e)||!qe.test(e)||null!=t&&e in bo(t)}function Zr(e){var t=Lr(e),n=k[t];if("function"!=typeof n||!(t in ut.prototype))return!1;if(e===n)return!0;var r=Ni(n);return!!r&&e===r[0]}function Xr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Eo)}function Jr(e){return e==e&&!Ma(e)}function ea(e,t){return function(n){return null!=n&&n[e]===t&&(t!==V||e in bo(n))}}function ta(e,t,r){return t=ri(t===V?e.length-1:t,0),function(){for(var a=arguments,o=-1,i=ri(a.length-t,0),s=ho(i);++o<i;)s[o]=a[t+o];o=-1;for(var c=ho(t+1);++o<t;)c[o]=a[o];return c[t]=r(s),n(e,this,c)}}function na(e,t){return t.length<2?e:Vt(e,qn(t,0,-1))}function ra(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function aa(e,t,n){var r=t+"";return Fi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ge,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return a(ne,(function(n){var r="_."+n[0];t&n[1]&&!c(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Qe);return t?t[1].split(Ke):[]}(r),n)))}function oa(e){var t=0,n=0;return function(){var r=oi(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(V,arguments)}}function ia(e,t){var n=-1,r=e.length,a=r-1;for(t=t===V?r:t;++n<t;){var o=Pn(n,a),i=e[o];e[o]=e[n],e[n]=i}return e.length=t,e}function sa(e){if("string"==typeof e||Va(e))return e;var t=e+"";return"0"==t&&1/e==-Y?"-0":t}function ca(e){if(null!=e){try{return Co.call(e)}catch{}try{return e+""}catch{}}return""}function la(e){if(e instanceof ut)return e.clone();var t=new lt(e.__wrapped__,e.__chain__);return t.__actions__=ur(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ua(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:$a(n);return a<0&&(a=ri(r+a,0)),g(e,Vr(t,3),a)}function fa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return n!==V&&(a=$a(n),a=n<0?ri(r+a,0):ai(a,r-1)),g(e,Vr(t,3),a,!0)}function da(e){return null!=e&&e.length?Nt(e,1):[]}function pa(e){return e&&e.length?e[0]:V}function ha(e){var t=null==e?0:e.length;return t?e[t-1]:V}function ma(e,t){return e&&e.length&&t&&t.length?Rn(e,t):e}function ga(e){return null==e?e:ci.call(e)}function ya(e){if(!e||!e.length)return[];var t=0;return e=s(e,(function(e){if(Ra(e))return t=ri(e.length,t),!0})),E(t,(function(t){return u(e,w(t))}))}function va(e,t){if(!e||!e.length)return[];var r=ya(e);return null==t?r:u(r,(function(e){return n(t,V,e)}))}function ba(e){var t=k(e);return t.__chain__=!0,t}function _a(e,t){return t(e)}function wa(e,t){return(zs(e)?a:Ai)(e,Vr(t,3))}function ka(e,t){return(zs(e)?o:Ci)(e,Vr(t,3))}function xa(e,t){return(zs(e)?u:Sn)(e,Vr(t,3))}function Sa(e,t,n){return t=n?V:t,t=e&&null==t?e.length:t,Rr(e,Q,V,V,V,V,t)}function Ea(e,t){var n;if("function"!=typeof t)throw new ko(F);return e=$a(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=V),n}}function Aa(e,t,n){function r(t){var n=c,r=l;return c=l=V,h=t,f=e.apply(r,n)}function a(e){var n=e-p;return p===V||n>=t||n<0||g&&e-h>=u}function o(){var e=gs();return a(e)?i(e):(d=Vi(o,function(e){var n=t-(e-p);return g?ai(n,u-(e-h)):n}(e)),V)}function i(e){return d=V,y&&c?r(e):(c=l=V,f)}function s(){var e=gs(),n=a(e);if(c=arguments,l=this,p=e,n){if(d===V)return function(e){return h=e,d=Vi(o,t),m?r(e):f}(p);if(g)return Pi(d),d=Vi(o,t),r(p)}return d===V&&(d=Vi(o,t)),f}var c,l,u,f,d,p,h=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new ko(F);return t=Ha(t)||0,Ma(n)&&(m=!!n.leading,u=(g="maxWait"in n)?ri(Ha(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),s.cancel=function(){d!==V&&Pi(d),h=0,c=p=l=d=V},s.flush=function(){return d===V?f:i(gs())},s}function Ca(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ko(F);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(Ca.Cache||pt),n}function za(e){if("function"!=typeof e)throw new ko(F);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ia(e,t){return e===t||e!=e&&t!=t}function Ta(e){return null!=e&&Na(e.length)&&!Pa(e)}function Ra(e){return Da(e)&&Ta(e)}function ja(e){if(!Da(e))return!1;var t=Kt(e);return t==se||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!La(e)}function Pa(e){if(!Ma(e))return!1;var t=Kt(e);return t==ce||t==le||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Oa(e){return"number"==typeof e&&e==$a(e)}function Na(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Z}function Ma(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Da(e){return null!=e&&"object"==typeof e}function Ba(e){return"number"==typeof e||Da(e)&&Kt(e)==fe}function La(e){if(!Da(e)||Kt(e)!=de)return!1;var t=Lo(e);if(null===t)return!0;var n=zo.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Co.call(n)==jo}function qa(e){return"string"==typeof e||!zs(e)&&Da(e)&&Kt(e)==ge}function Va(e){return"symbol"==typeof e||Da(e)&&Kt(e)==ye}function Fa(e){if(!e)return[];if(Ta(e))return qa(e)?L(e):ur(e);if($o&&e[$o])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[$o]());var t=Bi(e);return(t==ue?O:t==me?D:eo)(e)}function Ua(e){return e?(e=Ha(e))===Y||e===-Y?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function $a(e){var t=Ua(e),n=t%1;return t==t?n?t-n:t:0}function Wa(e){return e?Ct($a(e),0,J):0}function Ha(e){if("number"==typeof e)return e;if(Va(e))return X;if(Ma(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ma(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=A(e);var n=nt.test(e);return n||at.test(e)?Zt(e.slice(2),n?2:8):tt.test(e)?X:+e}function Ga(e){return fr(e,Xa(e))}function Qa(e){return null==e?"":Hn(e)}function Ka(e,t,n){var r=null==e?V:Vt(e,t);return r===V?n:r}function Ya(e,t){return null!=e&&Wr(e,t,tn)}function Za(e){return Ta(e)?gt(e):wn(e)}function Xa(e){return Ta(e)?gt(e,!0):kn(e)}function Ja(e,t){if(null==e)return{};var n=u(Br(e),(function(e){return[e]}));return t=Vr(t),Tn(e,n,(function(e,n){return t(e,n[0])}))}function eo(e){return null==e?[]:z(e,Za(e))}function to(e){return sc(Qa(e).toLowerCase())}function no(e){return(e=Qa(e))&&e.replace(it,hn).replace(qt,"")}function ro(e,t,n){return e=Qa(e),(t=n?V:t)===V?function(e){return $t.test(e)}(e)?function(e){return e.match(Ft)||[]}(e):function(e){return e.match(Ye)||[]}(e):e.match(t)||[]}function ao(e){return function(){return e}}function oo(e){return e}function io(e){return _n("function"==typeof e?e:zt(e,1))}function so(e,t,n){var r=Za(t),o=Bt(t,r);null!=n||Ma(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Bt(t,Za(t)));var i=!(Ma(n)&&"chain"in n&&!n.chain),s=Pa(e);return a(o,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ur(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,f([this.value()],arguments))})})),e}function co(){}function lo(e){return Yr(e)?w(sa(e)):function(e){return function(t){return Vt(t,e)}}(e)}function uo(){return[]}function fo(){return!1}var po,ho=(t=null==t?en:yn.defaults(en.Object(),t,yn.pick(en,Wt))).Array,mo=t.Date,go=t.Error,yo=t.Function,vo=t.Math,bo=t.Object,_o=t.RegExp,wo=t.String,ko=t.TypeError,xo=ho.prototype,So=yo.prototype,Eo=bo.prototype,Ao=t["__core-js_shared__"],Co=So.toString,zo=Eo.hasOwnProperty,Io=0,To=(po=/[^.]+$/.exec(Ao&&Ao.keys&&Ao.keys.IE_PROTO||""))?"Symbol(src)_1."+po:"",Ro=Eo.toString,jo=Co.call(bo),Po=en._,Oo=_o("^"+Co.call(zo).replace(Ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),No=rn?t.Buffer:V,Mo=t.Symbol,Do=t.Uint8Array,Bo=No?No.allocUnsafe:V,Lo=N(bo.getPrototypeOf,bo),qo=bo.create,Vo=Eo.propertyIsEnumerable,Fo=xo.splice,Uo=Mo?Mo.isConcatSpreadable:V,$o=Mo?Mo.iterator:V,Wo=Mo?Mo.toStringTag:V,Ho=function(){try{var e=$r(bo,"defineProperty");return e({},"",{}),e}catch{}}(),Go=t.clearTimeout!==en.clearTimeout&&t.clearTimeout,Qo=mo&&mo.now!==en.Date.now&&mo.now,Ko=t.setTimeout!==en.setTimeout&&t.setTimeout,Yo=vo.ceil,Zo=vo.floor,Xo=bo.getOwnPropertySymbols,Jo=No?No.isBuffer:V,ei=t.isFinite,ti=xo.join,ni=N(bo.keys,bo),ri=vo.max,ai=vo.min,oi=mo.now,ii=t.parseInt,si=vo.random,ci=xo.reverse,li=$r(t,"DataView"),ui=$r(t,"Map"),fi=$r(t,"Promise"),di=$r(t,"Set"),pi=$r(t,"WeakMap"),hi=$r(bo,"create"),mi=pi&&new pi,gi={},yi=ca(li),vi=ca(ui),bi=ca(fi),_i=ca(di),wi=ca(pi),ki=Mo?Mo.prototype:V,xi=ki?ki.valueOf:V,Si=ki?ki.toString:V,Ei=function(){function e(){}return function(t){if(!Ma(t))return{};if(qo)return qo(t);e.prototype=t;var n=new e;return e.prototype=V,n}}();k.templateSettings={escape:De,evaluate:Be,interpolate:Le,variable:"",imports:{_:k}},k.prototype=He.prototype,k.prototype.constructor=k,lt.prototype=Ei(He.prototype),lt.prototype.constructor=lt,ut.prototype=Ei(He.prototype),ut.prototype.constructor=ut,ft.prototype.clear=function(){this.__data__=hi?hi(null):{},this.size=0},ft.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ft.prototype.get=function(e){var t=this.__data__;if(hi){var n=t[e];return n===U?V:n}return zo.call(t,e)?t[e]:V},ft.prototype.has=function(e){var t=this.__data__;return hi?t[e]!==V:zo.call(t,e)},ft.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=hi&&t===V?U:t,this},dt.prototype.clear=function(){this.__data__=[],this.size=0},dt.prototype.delete=function(e){var t=this.__data__,n=kt(t,e);return!(n<0||(n==t.length-1?t.pop():Fo.call(t,n,1),--this.size,0))},dt.prototype.get=function(e){var t=this.__data__,n=kt(t,e);return n<0?V:t[n][1]},dt.prototype.has=function(e){return kt(this.__data__,e)>-1},dt.prototype.set=function(e,t){var n=this.__data__,r=kt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},pt.prototype.clear=function(){this.size=0,this.__data__={hash:new ft,map:new(ui||dt),string:new ft}},pt.prototype.delete=function(e){var t=Fr(this,e).delete(e);return this.size-=t?1:0,t},pt.prototype.get=function(e){return Fr(this,e).get(e)},pt.prototype.has=function(e){return Fr(this,e).has(e)},pt.prototype.set=function(e,t){var n=Fr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ht.prototype.add=ht.prototype.push=function(e){return this.__data__.set(e,U),this},ht.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.clear=function(){this.__data__=new dt,this.size=0},mt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},mt.prototype.get=function(e){return this.__data__.get(e)},mt.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof dt){var r=n.__data__;if(!ui||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new pt(r)}return n.set(e,t),this.size=n.size,this};var Ai=hr(Mt),Ci=hr(Dt,!0),zi=mr(),Ii=mr(!0),Ti=mi?function(e,t){return mi.set(e,t),e}:oo,Ri=Ho?function(e,t){return Ho(e,"toString",{configurable:!0,enumerable:!1,value:ao(t),writable:!0})}:oo,ji=Nn,Pi=Go||function(e){return en.clearTimeout(e)},Oi=di&&1/D(new di([,-0]))[1]==Y?function(e){return new di(e)}:co,Ni=mi?function(e){return mi.get(e)}:co,Mi=Xo?function(e){return null==e?[]:(e=bo(e),s(Xo(e),(function(t){return Vo.call(e,t)})))}:uo,Di=Xo?function(e){for(var t=[];e;)f(t,Mi(e)),e=Lo(e);return t}:uo,Bi=Kt;(li&&Bi(new li(new ArrayBuffer(1)))!=_e||ui&&Bi(new ui)!=ue||fi&&Bi(fi.resolve())!=pe||di&&Bi(new di)!=me||pi&&Bi(new pi)!=ve)&&(Bi=function(e){var t=Kt(e),n=t==de?e.constructor:V,r=n?ca(n):"";if(r)switch(r){case yi:return _e;case vi:return ue;case bi:return pe;case _i:return me;case wi:return ve}return t});var Li=Ao?Pa:fo,qi=oa(Ti),Vi=Ko||function(e,t){return en.setTimeout(e,t)},Fi=oa(Ri),Ui=function(e){var t=Ca(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Fe,(function(e,n,r,a){t.push(r?a.replace(Xe,"$1"):n||e)})),t})),$i=Nn((function(e,t){return Ra(e)?Rt(e,Nt(t,1,Ra,!0)):[]})),Wi=Nn((function(e,t){var n=ha(t);return Ra(n)&&(n=V),Ra(e)?Rt(e,Nt(t,1,Ra,!0),Vr(n,2)):[]})),Hi=Nn((function(e,t){var n=ha(t);return Ra(n)&&(n=V),Ra(e)?Rt(e,Nt(t,1,Ra,!0),V,n):[]})),Gi=Nn((function(e){var t=u(e,er);return t.length&&t[0]===e[0]?nn(t):[]})),Qi=Nn((function(e){var t=ha(e),n=u(e,er);return t===ha(n)?t=V:n.pop(),n.length&&n[0]===e[0]?nn(n,Vr(t,2)):[]})),Ki=Nn((function(e){var t=ha(e),n=u(e,er);return(t="function"==typeof t?t:V)&&n.pop(),n.length&&n[0]===e[0]?nn(n,V,t):[]})),Yi=Nn(ma),Zi=Mr((function(e,t){var n=null==e?0:e.length,r=At(e,t);return jn(e,u(t,(function(e){return Qr(e,n)?+e:e})).sort(sr)),r})),Xi=Nn((function(e){return Gn(Nt(e,1,Ra,!0))})),Ji=Nn((function(e){var t=ha(e);return Ra(t)&&(t=V),Gn(Nt(e,1,Ra,!0),Vr(t,2))})),es=Nn((function(e){var t=ha(e);return t="function"==typeof t?t:V,Gn(Nt(e,1,Ra,!0),V,t)})),ts=Nn((function(e,t){return Ra(e)?Rt(e,t):[]})),ns=Nn((function(e){return Xn(s(e,Ra))})),rs=Nn((function(e){var t=ha(e);return Ra(t)&&(t=V),Xn(s(e,Ra),Vr(t,2))})),as=Nn((function(e){var t=ha(e);return t="function"==typeof t?t:V,Xn(s(e,Ra),V,t)})),os=Nn(ya),is=Nn((function(e){var t=e.length,n=t>1?e[t-1]:V;return n="function"==typeof n?(e.pop(),n):V,va(e,n)})),ss=Mr((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return At(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ut&&Qr(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:_a,args:[a],thisArg:V}),new lt(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(V),e}))):this.thru(a)})),cs=dr((function(e,t,n){zo.call(e,n)?++e[n]:Et(e,n,1)})),ls=br(ua),us=br(fa),fs=dr((function(e,t,n){zo.call(e,n)?e[n].push(t):Et(e,n,[t])})),ds=Nn((function(e,t,r){var a=-1,o="function"==typeof t,i=Ta(e)?ho(e.length):[];return Ai(e,(function(e){i[++a]=o?n(t,e,r):an(e,t,r)})),i})),ps=dr((function(e,t,n){Et(e,n,t)})),hs=dr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ms=Nn((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Kr(e,t[0],t[1])?t=[]:n>2&&Kr(t[0],t[1],t[2])&&(t=[t[0]]),In(e,Nt(t,1),[])})),gs=Qo||function(){return en.Date.now()},ys=Nn((function(e,t,n){var r=1;if(n.length){var a=M(n,qr(ys));r|=H}return Rr(e,r,t,n,a)})),vs=Nn((function(e,t,n){var r=3;if(n.length){var a=M(n,qr(vs));r|=H}return Rr(t,r,e,n,a)})),bs=Nn((function(e,t){return Tt(e,1,t)})),_s=Nn((function(e,t,n){return Tt(e,Ha(t)||0,n)}));Ca.Cache=pt;var ws=ji((function(e,t){var r=(t=1==t.length&&zs(t[0])?u(t[0],C(Vr())):u(Nt(t,1),C(Vr()))).length;return Nn((function(a){for(var o=-1,i=ai(a.length,r);++o<i;)a[o]=t[o].call(this,a[o]);return n(e,this,a)}))})),ks=Nn((function(e,t){return Rr(e,H,V,t,M(t,qr(ks)))})),xs=Nn((function(e,t){return Rr(e,G,V,t,M(t,qr(xs)))})),Ss=Mr((function(e,t){return Rr(e,K,V,V,V,t)})),Es=Cr(Xt),As=Cr((function(e,t){return e>=t})),Cs=on(function(){return arguments}())?on:function(e){return Da(e)&&zo.call(e,"callee")&&!Vo.call(e,"callee")},zs=ho.isArray,Is=sn?C(sn):function(e){return Da(e)&&Kt(e)==be},Ts=Jo||fo,Rs=cn?C(cn):function(e){return Da(e)&&Kt(e)==ie},js=ln?C(ln):function(e){return Da(e)&&Bi(e)==ue},Ps=un?C(un):function(e){return Da(e)&&Kt(e)==he},Os=fn?C(fn):function(e){return Da(e)&&Bi(e)==me},Ns=dn?C(dn):function(e){return Da(e)&&Na(e.length)&&!!Gt[Kt(e)]},Ms=Cr(xn),Ds=Cr((function(e,t){return e<=t})),Bs=pr((function(e,t){if(Xr(t)||Ta(t))return fr(t,Za(t),e),V;for(var n in t)zo.call(t,n)&&wt(e,n,t[n])})),Ls=pr((function(e,t){fr(t,Xa(t),e)})),qs=pr((function(e,t,n,r){fr(t,Xa(t),e,r)})),Vs=pr((function(e,t,n,r){fr(t,Za(t),e,r)})),Fs=Mr(At),Us=Nn((function(e,t){e=bo(e);var n=-1,r=t.length,a=r>2?t[2]:V;for(a&&Kr(t[0],t[1],a)&&(r=1);++n<r;)for(var o=t[n],i=Xa(o),s=-1,c=i.length;++s<c;){var l=i[s],u=e[l];(u===V||Ia(u,Eo[l])&&!zo.call(e,l))&&(e[l]=o[l])}return e})),$s=Nn((function(e){return e.push(V,Pr),n(Ks,V,e)})),Ws=kr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ro.call(t)),e[t]=n}),ao(oo)),Hs=kr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ro.call(t)),zo.call(e,t)?e[t].push(n):e[t]=[n]}),Vr),Gs=Nn(an),Qs=pr((function(e,t,n){Cn(e,t,n)})),Ks=pr((function(e,t,n,r){Cn(e,t,n,r)})),Ys=Mr((function(e,t){var n={};if(null==e)return n;var r=!1;t=u(t,(function(t){return t=nr(t,e),r||(r=t.length>1),t})),fr(e,Br(e),n),r&&(n=zt(n,7,Or));for(var a=t.length;a--;)Qn(n,t[a]);return n})),Zs=Mr((function(e,t){return null==e?{}:function(e,t){return Tn(e,t,(function(t,n){return Ya(e,n)}))}(e,t)})),Xs=Tr(Za),Js=Tr(Xa),ec=yr((function(e,t,n){return t=t.toLowerCase(),e+(n?to(t):t)})),tc=yr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),nc=yr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),rc=gr("toLowerCase"),ac=yr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),oc=yr((function(e,t,n){return e+(n?" ":"")+sc(t)})),ic=yr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),sc=gr("toUpperCase"),cc=Nn((function(e,t){try{return n(e,V,t)}catch(e){return ja(e)?e:new go(e)}})),lc=Mr((function(e,t){return a(t,(function(t){t=sa(t),Et(e,t,ys(e[t],e))})),e})),uc=_r(),fc=_r(!0),dc=Nn((function(e,t){return function(n){return an(n,e,t)}})),pc=Nn((function(e,t){return function(n){return an(e,n,t)}})),hc=Sr(u),mc=Sr(i),gc=Sr(h),yc=Ar(),vc=Ar(!0),bc=xr((function(e,t){return e+t}),0),_c=Ir("ceil"),wc=xr((function(e,t){return e/t}),1),kc=Ir("floor"),xc=xr((function(e,t){return e*t}),1),Sc=Ir("round"),Ec=xr((function(e,t){return e-t}),0);return k.after=function(e,t){if("function"!=typeof t)throw new ko(F);return e=$a(e),function(){if(--e<1)return t.apply(this,arguments)}},k.ary=Sa,k.assign=Bs,k.assignIn=Ls,k.assignInWith=qs,k.assignWith=Vs,k.at=Fs,k.before=Ea,k.bind=ys,k.bindAll=lc,k.bindKey=vs,k.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return zs(e)?e:[e]},k.chain=ba,k.chunk=function(e,t,n){t=(n?Kr(e,t,n):t===V)?1:ri($a(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var a=0,o=0,i=ho(Yo(r/t));a<r;)i[o++]=qn(e,a,a+=t);return i},k.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,a=[];++t<n;){var o=e[t];o&&(a[r++]=o)}return a},k.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ho(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return f(zs(n)?ur(n):[n],Nt(t,1))},k.cond=function(e){var t=null==e?0:e.length,r=Vr();return e=t?u(e,(function(e){if("function"!=typeof e[1])throw new ko(F);return[r(e[0]),e[1]]})):[],Nn((function(r){for(var a=-1;++a<t;){var o=e[a];if(n(o[0],this,r))return n(o[1],this,r)}}))},k.conforms=function(e){return function(e){var t=Za(e);return function(n){return It(n,e,t)}}(zt(e,1))},k.constant=ao,k.countBy=cs,k.create=function(e,t){var n=Ei(e);return null==t?n:St(n,t)},k.curry=function e(t,n,r){var a=Rr(t,8,V,V,V,V,V,n=r?V:n);return a.placeholder=e.placeholder,a},k.curryRight=function e(t,n,r){var a=Rr(t,W,V,V,V,V,V,n=r?V:n);return a.placeholder=e.placeholder,a},k.debounce=Aa,k.defaults=Us,k.defaultsDeep=$s,k.defer=bs,k.delay=_s,k.difference=$i,k.differenceBy=Wi,k.differenceWith=Hi,k.drop=function(e,t,n){var r=null==e?0:e.length;return r?qn(e,(t=n||t===V?1:$a(t))<0?0:t,r):[]},k.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?qn(e,0,(t=r-(t=n||t===V?1:$a(t)))<0?0:t):[]},k.dropRightWhile=function(e,t){return e&&e.length?Yn(e,Vr(t,3),!0,!0):[]},k.dropWhile=function(e,t){return e&&e.length?Yn(e,Vr(t,3),!0):[]},k.fill=function(e,t,n,r){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&Kr(e,t,n)&&(n=0,r=a),function(e,t,n,r){var a=e.length;for((n=$a(n))<0&&(n=-n>a?0:a+n),(r=r===V||r>a?a:$a(r))<0&&(r+=a),r=n>r?0:Wa(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},k.filter=function(e,t){return(zs(e)?s:Ot)(e,Vr(t,3))},k.flatMap=function(e,t){return Nt(xa(e,t),1)},k.flatMapDeep=function(e,t){return Nt(xa(e,t),Y)},k.flatMapDepth=function(e,t,n){return n=n===V?1:$a(n),Nt(xa(e,t),n)},k.flatten=da,k.flattenDeep=function(e){return null!=e&&e.length?Nt(e,Y):[]},k.flattenDepth=function(e,t){return null!=e&&e.length?Nt(e,t=t===V?1:$a(t)):[]},k.flip=function(e){return Rr(e,512)},k.flow=uc,k.flowRight=fc,k.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r},k.functions=function(e){return null==e?[]:Bt(e,Za(e))},k.functionsIn=function(e){return null==e?[]:Bt(e,Xa(e))},k.groupBy=fs,k.initial=function(e){return null!=e&&e.length?qn(e,0,-1):[]},k.intersection=Gi,k.intersectionBy=Qi,k.intersectionWith=Ki,k.invert=Ws,k.invertBy=Hs,k.invokeMap=ds,k.iteratee=io,k.keyBy=ps,k.keys=Za,k.keysIn=Xa,k.map=xa,k.mapKeys=function(e,t){var n={};return t=Vr(t,3),Mt(e,(function(e,r,a){Et(n,t(e,r,a),e)})),n},k.mapValues=function(e,t){var n={};return t=Vr(t,3),Mt(e,(function(e,r,a){Et(n,r,t(e,r,a))})),n},k.matches=function(e){return En(zt(e,1))},k.matchesProperty=function(e,t){return An(e,zt(t,1))},k.memoize=Ca,k.merge=Qs,k.mergeWith=Ks,k.method=dc,k.methodOf=pc,k.mixin=so,k.negate=za,k.nthArg=function(e){return e=$a(e),Nn((function(t){return zn(t,e)}))},k.omit=Ys,k.omitBy=function(e,t){return Ja(e,za(Vr(t)))},k.once=function(e){return Ea(2,e)},k.orderBy=function(e,t,n,r){return null==e?[]:(zs(t)||(t=null==t?[]:[t]),zs(n=r?V:n)||(n=null==n?[]:[n]),In(e,t,n))},k.over=hc,k.overArgs=ws,k.overEvery=mc,k.overSome=gc,k.partial=ks,k.partialRight=xs,k.partition=hs,k.pick=Zs,k.pickBy=Ja,k.property=lo,k.propertyOf=function(e){return function(t){return null==e?V:Vt(e,t)}},k.pull=Yi,k.pullAll=ma,k.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Rn(e,t,Vr(n,2)):e},k.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Rn(e,t,V,n):e},k.pullAt=Zi,k.range=yc,k.rangeRight=vc,k.rearg=Ss,k.reject=function(e,t){return(zs(e)?s:Ot)(e,za(Vr(t,3)))},k.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,a=[],o=e.length;for(t=Vr(t,3);++r<o;){var i=e[r];t(i,r,e)&&(n.push(i),a.push(r))}return jn(e,a),n},k.rest=function(e,t){if("function"!=typeof e)throw new ko(F);return Nn(e,t=t===V?t:$a(t))},k.reverse=ga,k.sampleSize=function(e,t,n){return t=(n?Kr(e,t,n):t===V)?1:$a(t),(zs(e)?vt:Dn)(e,t)},k.set=function(e,t,n){return null==e?e:Bn(e,t,n)},k.setWith=function(e,t,n,r){return r="function"==typeof r?r:V,null==e?e:Bn(e,t,n,r)},k.shuffle=function(e){return(zs(e)?bt:Ln)(e)},k.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Kr(e,t,n)?(t=0,n=r):(t=null==t?0:$a(t),n=n===V?r:$a(n)),qn(e,t,n)):[]},k.sortBy=ms,k.sortedUniq=function(e){return e&&e.length?$n(e):[]},k.sortedUniqBy=function(e,t){return e&&e.length?$n(e,Vr(t,2)):[]},k.split=function(e,t,n){return n&&"number"!=typeof n&&Kr(e,t,n)&&(t=n=V),(n=n===V?J:n>>>0)?(e=Qa(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=Hn(t))&&P(e)?rr(L(e),0,n):e.split(t,n):[]},k.spread=function(e,t){if("function"!=typeof e)throw new ko(F);return t=null==t?0:ri($a(t),0),Nn((function(r){var a=r[t],o=rr(r,0,t);return a&&f(o,a),n(e,this,o)}))},k.tail=function(e){var t=null==e?0:e.length;return t?qn(e,1,t):[]},k.take=function(e,t,n){return e&&e.length?qn(e,0,(t=n||t===V?1:$a(t))<0?0:t):[]},k.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?qn(e,(t=r-(t=n||t===V?1:$a(t)))<0?0:t,r):[]},k.takeRightWhile=function(e,t){return e&&e.length?Yn(e,Vr(t,3),!1,!0):[]},k.takeWhile=function(e,t){return e&&e.length?Yn(e,Vr(t,3)):[]},k.tap=function(e,t){return t(e),e},k.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new ko(F);return Ma(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Aa(e,t,{leading:r,maxWait:t,trailing:a})},k.thru=_a,k.toArray=Fa,k.toPairs=Xs,k.toPairsIn=Js,k.toPath=function(e){return zs(e)?u(e,sa):Va(e)?[e]:ur(Ui(Qa(e)))},k.toPlainObject=Ga,k.transform=function(e,t,n){var r=zs(e),o=r||Ts(e)||Ns(e);if(t=Vr(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ma(e)&&Pa(i)?Ei(Lo(e)):{}}return(o?a:Mt)(e,(function(e,r,a){return t(n,e,r,a)})),n},k.unary=function(e){return Sa(e,1)},k.union=Xi,k.unionBy=Ji,k.unionWith=es,k.uniq=function(e){return e&&e.length?Gn(e):[]},k.uniqBy=function(e,t){return e&&e.length?Gn(e,Vr(t,2)):[]},k.uniqWith=function(e,t){return t="function"==typeof t?t:V,e&&e.length?Gn(e,V,t):[]},k.unset=function(e,t){return null==e||Qn(e,t)},k.unzip=ya,k.unzipWith=va,k.update=function(e,t,n){return null==e?e:Kn(e,t,tr(n))},k.updateWith=function(e,t,n,r){return r="function"==typeof r?r:V,null==e?e:Kn(e,t,tr(n),r)},k.values=eo,k.valuesIn=function(e){return null==e?[]:z(e,Xa(e))},k.without=ts,k.words=ro,k.wrap=function(e,t){return ks(tr(t),e)},k.xor=ns,k.xorBy=rs,k.xorWith=as,k.zip=os,k.zipObject=function(e,t){return Jn(e||[],t||[],wt)},k.zipObjectDeep=function(e,t){return Jn(e||[],t||[],Bn)},k.zipWith=is,k.entries=Xs,k.entriesIn=Js,k.extend=Ls,k.extendWith=qs,so(k,k),k.add=bc,k.attempt=cc,k.camelCase=ec,k.capitalize=to,k.ceil=_c,k.clamp=function(e,t,n){return n===V&&(n=t,t=V),n!==V&&(n=(n=Ha(n))==n?n:0),t!==V&&(t=(t=Ha(t))==t?t:0),Ct(Ha(e),t,n)},k.clone=function(e){return zt(e,4)},k.cloneDeep=function(e){return zt(e,5)},k.cloneDeepWith=function(e,t){return zt(e,5,t="function"==typeof t?t:V)},k.cloneWith=function(e,t){return zt(e,4,t="function"==typeof t?t:V)},k.conformsTo=function(e,t){return null==t||It(e,t,Za(t))},k.deburr=no,k.defaultTo=function(e,t){return null==e||e!=e?t:e},k.divide=wc,k.endsWith=function(e,t,n){e=Qa(e),t=Hn(t);var r=e.length,a=n=n===V?r:Ct($a(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},k.eq=Ia,k.escape=function(e){return(e=Qa(e))&&Me.test(e)?e.replace(Oe,mn):e},k.escapeRegExp=function(e){return(e=Qa(e))&&$e.test(e)?e.replace(Ue,"\\$&"):e},k.every=function(e,t,n){var r=zs(e)?i:jt;return n&&Kr(e,t,n)&&(t=V),r(e,Vr(t,3))},k.find=ls,k.findIndex=ua,k.findKey=function(e,t){return m(e,Vr(t,3),Mt)},k.findLast=us,k.findLastIndex=fa,k.findLastKey=function(e,t){return m(e,Vr(t,3),Dt)},k.floor=kc,k.forEach=wa,k.forEachRight=ka,k.forIn=function(e,t){return null==e?e:zi(e,Vr(t,3),Xa)},k.forInRight=function(e,t){return null==e?e:Ii(e,Vr(t,3),Xa)},k.forOwn=function(e,t){return e&&Mt(e,Vr(t,3))},k.forOwnRight=function(e,t){return e&&Dt(e,Vr(t,3))},k.get=Ka,k.gt=Es,k.gte=As,k.has=function(e,t){return null!=e&&Wr(e,t,Jt)},k.hasIn=Ya,k.head=pa,k.identity=oo,k.includes=function(e,t,n,r){e=Ta(e)?e:eo(e),n=n&&!r?$a(n):0;var a=e.length;return n<0&&(n=ri(a+n,0)),qa(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&y(e,t,n)>-1},k.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:$a(n);return a<0&&(a=ri(r+a,0)),y(e,t,a)},k.inRange=function(e,t,n){return t=Ua(t),n===V?(n=t,t=0):n=Ua(n),function(e,t,n){return e>=ai(t,n)&&e<ri(t,n)}(e=Ha(e),t,n)},k.invoke=Gs,k.isArguments=Cs,k.isArray=zs,k.isArrayBuffer=Is,k.isArrayLike=Ta,k.isArrayLikeObject=Ra,k.isBoolean=function(e){return!0===e||!1===e||Da(e)&&Kt(e)==oe},k.isBuffer=Ts,k.isDate=Rs,k.isElement=function(e){return Da(e)&&1===e.nodeType&&!La(e)},k.isEmpty=function(e){if(null==e)return!0;if(Ta(e)&&(zs(e)||"string"==typeof e||"function"==typeof e.splice||Ts(e)||Ns(e)||Cs(e)))return!e.length;var t=Bi(e);if(t==ue||t==me)return!e.size;if(Xr(e))return!wn(e).length;for(var n in e)if(zo.call(e,n))return!1;return!0},k.isEqual=function(e,t){return pn(e,t)},k.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:V)?n(e,t):V;return r===V?pn(e,t,V,n):!!r},k.isError=ja,k.isFinite=function(e){return"number"==typeof e&&ei(e)},k.isFunction=Pa,k.isInteger=Oa,k.isLength=Na,k.isMap=js,k.isMatch=function(e,t){return e===t||vn(e,t,Ur(t))},k.isMatchWith=function(e,t,n){return n="function"==typeof n?n:V,vn(e,t,Ur(t),n)},k.isNaN=function(e){return Ba(e)&&e!=+e},k.isNative=function(e){if(Li(e))throw new go("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return bn(e)},k.isNil=function(e){return null==e},k.isNull=function(e){return null===e},k.isNumber=Ba,k.isObject=Ma,k.isObjectLike=Da,k.isPlainObject=La,k.isRegExp=Ps,k.isSafeInteger=function(e){return Oa(e)&&e>=-Z&&e<=Z},k.isSet=Os,k.isString=qa,k.isSymbol=Va,k.isTypedArray=Ns,k.isUndefined=function(e){return e===V},k.isWeakMap=function(e){return Da(e)&&Bi(e)==ve},k.isWeakSet=function(e){return Da(e)&&"[object WeakSet]"==Kt(e)},k.join=function(e,t){return null==e?"":ti.call(e,t)},k.kebabCase=tc,k.last=ha,k.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==V&&(a=(a=$a(n))<0?ri(r+a,0):ai(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):g(e,b,a,!0)},k.lowerCase=nc,k.lowerFirst=rc,k.lt=Ms,k.lte=Ds,k.max=function(e){return e&&e.length?Pt(e,oo,Xt):V},k.maxBy=function(e,t){return e&&e.length?Pt(e,Vr(t,2),Xt):V},k.mean=function(e){return _(e,oo)},k.meanBy=function(e,t){return _(e,Vr(t,2))},k.min=function(e){return e&&e.length?Pt(e,oo,xn):V},k.minBy=function(e,t){return e&&e.length?Pt(e,Vr(t,2),xn):V},k.stubArray=uo,k.stubFalse=fo,k.stubObject=function(){return{}},k.stubString=function(){return""},k.stubTrue=function(){return!0},k.multiply=xc,k.nth=function(e,t){return e&&e.length?zn(e,$a(t)):V},k.noConflict=function(){return en._===this&&(en._=Po),this},k.noop=co,k.now=gs,k.pad=function(e,t,n){e=Qa(e);var r=(t=$a(t))?B(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Er(Zo(a),n)+e+Er(Yo(a),n)},k.padEnd=function(e,t,n){e=Qa(e);var r=(t=$a(t))?B(e):0;return t&&r<t?e+Er(t-r,n):e},k.padStart=function(e,t,n){e=Qa(e);var r=(t=$a(t))?B(e):0;return t&&r<t?Er(t-r,n)+e:e},k.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ii(Qa(e).replace(We,""),t||0)},k.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Kr(e,t,n)&&(t=n=V),n===V&&("boolean"==typeof t?(n=t,t=V):"boolean"==typeof e&&(n=e,e=V)),e===V&&t===V?(e=0,t=1):(e=Ua(e),t===V?(t=e,e=0):t=Ua(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=si();return ai(e+a*(t-e+Yt("1e-"+((a+"").length-1))),t)}return Pn(e,t)},k.reduce=function(e,t,n){var r=zs(e)?d:x,a=arguments.length<3;return r(e,Vr(t,4),n,a,Ai)},k.reduceRight=function(e,t,n){var r=zs(e)?p:x,a=arguments.length<3;return r(e,Vr(t,4),n,a,Ci)},k.repeat=function(e,t,n){return t=(n?Kr(e,t,n):t===V)?1:$a(t),On(Qa(e),t)},k.replace=function(){var e=arguments,t=Qa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},k.result=function(e,t,n){var r=-1,a=(t=nr(t,e)).length;for(a||(a=1,e=V);++r<a;){var o=null==e?V:e[sa(t[r])];o===V&&(r=a,o=n),e=Pa(o)?o.call(e):o}return e},k.round=Sc,k.runInContext=e,k.sample=function(e){return(zs(e)?yt:Mn)(e)},k.size=function(e){if(null==e)return 0;if(Ta(e))return qa(e)?B(e):e.length;var t=Bi(e);return t==ue||t==me?e.size:wn(e).length},k.snakeCase=ac,k.some=function(e,t,n){var r=zs(e)?h:Vn;return n&&Kr(e,t,n)&&(t=V),r(e,Vr(t,3))},k.sortedIndex=function(e,t){return Fn(e,t)},k.sortedIndexBy=function(e,t,n){return Un(e,t,Vr(n,2))},k.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Fn(e,t);if(r<n&&Ia(e[r],t))return r}return-1},k.sortedLastIndex=function(e,t){return Fn(e,t,!0)},k.sortedLastIndexBy=function(e,t,n){return Un(e,t,Vr(n,2),!0)},k.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Fn(e,t,!0)-1;if(Ia(e[n],t))return n}return-1},k.startCase=oc,k.startsWith=function(e,t,n){return e=Qa(e),n=null==n?0:Ct($a(n),0,e.length),t=Hn(t),e.slice(n,n+t.length)==t},k.subtract=Ec,k.sum=function(e){return e&&e.length?S(e,oo):0},k.sumBy=function(e,t){return e&&e.length?S(e,Vr(t,2)):0},k.template=function(e,t,n){var r=k.templateSettings;n&&Kr(e,t,n)&&(t=V),e=Qa(e),t=qs({},t,r,jr);var a,o,i=qs({},t.imports,r.imports,jr),s=Za(i),c=z(i,s),l=0,u=t.interpolate||st,f="__p += '",d=_o((t.escape||st).source+"|"+u.source+"|"+(u===Le?Je:st).source+"|"+(t.evaluate||st).source+"|$","g"),p="//# sourceURL="+(zo.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ht+"]")+"\n";e.replace(d,(function(t,n,r,i,s,c){return r||(r=i),f+=e.slice(l,c).replace(ct,j),n&&(a=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),f+="';\n";var h=zo.call(t,"variable")&&t.variable;if(h){if(Ze.test(h))throw new go("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(Te,""):f).replace(Re,"$1").replace(je,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=cc((function(){return yo(s,p+"return "+f).apply(V,c)}));if(m.source=f,ja(m))throw m;return m},k.times=function(e,t){if((e=$a(e))<1||e>Z)return[];var n=J,r=ai(e,J);t=Vr(t),e-=J;for(var a=E(r,t);++n<e;)t(n);return a},k.toFinite=Ua,k.toInteger=$a,k.toLength=Wa,k.toLower=function(e){return Qa(e).toLowerCase()},k.toNumber=Ha,k.toSafeInteger=function(e){return e?Ct($a(e),-Z,Z):0===e?e:0},k.toString=Qa,k.toUpper=function(e){return Qa(e).toUpperCase()},k.trim=function(e,t,n){if((e=Qa(e))&&(n||t===V))return A(e);if(!e||!(t=Hn(t)))return e;var r=L(e),a=L(t);return rr(r,T(r,a),R(r,a)+1).join("")},k.trimEnd=function(e,t,n){if((e=Qa(e))&&(n||t===V))return e.slice(0,q(e)+1);if(!e||!(t=Hn(t)))return e;var r=L(e);return rr(r,0,R(r,L(t))+1).join("")},k.trimStart=function(e,t,n){if((e=Qa(e))&&(n||t===V))return e.replace(We,"");if(!e||!(t=Hn(t)))return e;var r=L(e);return rr(r,T(r,L(t))).join("")},k.truncate=function(e,t){var n=30,r="...";if(Ma(t)){var a="separator"in t?t.separator:a;n="length"in t?$a(t.length):n,r="omission"in t?Hn(t.omission):r}var o=(e=Qa(e)).length;if(P(e)){var i=L(e);o=i.length}if(n>=o)return e;var s=n-B(r);if(s<1)return r;var c=i?rr(i,0,s).join(""):e.slice(0,s);if(a===V)return c+r;if(i&&(s+=c.length-s),Ps(a)){if(e.slice(s).search(a)){var l,u=c;for(a.global||(a=_o(a.source,Qa(et.exec(a))+"g")),a.lastIndex=0;l=a.exec(u);)var f=l.index;c=c.slice(0,f===V?s:f)}}else if(e.indexOf(Hn(a),s)!=s){var d=c.lastIndexOf(a);d>-1&&(c=c.slice(0,d))}return c+r},k.unescape=function(e){return(e=Qa(e))&&Ne.test(e)?e.replace(Pe,gn):e},k.uniqueId=function(e){var t=++Io;return Qa(e)+t},k.upperCase=ic,k.upperFirst=sc,k.each=wa,k.eachRight=ka,k.first=pa,so(k,function(){var e={};return Mt(k,(function(t,n){zo.call(k.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),k.VERSION="4.17.21",a(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){k[e].placeholder=k})),a(["drop","take"],(function(e,t){ut.prototype[e]=function(n){n=n===V?1:ri($a(n),0);var r=this.__filtered__&&!t?new ut(this):this.clone();return r.__filtered__?r.__takeCount__=ai(n,r.__takeCount__):r.__views__.push({size:ai(n,J),type:e+(r.__dir__<0?"Right":"")}),r},ut.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),a(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;ut.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Vr(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),a(["head","last"],(function(e,t){var n="take"+(t?"Right":"");ut.prototype[e]=function(){return this[n](1).value()[0]}})),a(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");ut.prototype[e]=function(){return this.__filtered__?new ut(this):this[n](1)}})),ut.prototype.compact=function(){return this.filter(oo)},ut.prototype.find=function(e){return this.filter(e).head()},ut.prototype.findLast=function(e){return this.reverse().find(e)},ut.prototype.invokeMap=Nn((function(e,t){return"function"==typeof e?new ut(this):this.map((function(n){return an(n,e,t)}))})),ut.prototype.reject=function(e){return this.filter(za(Vr(e)))},ut.prototype.slice=function(e,t){e=$a(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ut(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==V&&(n=(t=$a(t))<0?n.dropRight(-t):n.take(t-e)),n)},ut.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ut.prototype.toArray=function(){return this.take(J)},Mt(ut.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=k[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);a&&(k.prototype[t]=function(){var t=this.__wrapped__,i=r?[1]:arguments,s=t instanceof ut,c=i[0],l=s||zs(t),u=function(e){var t=a.apply(k,f([e],i));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var d=this.__chain__,p=!!this.__actions__.length,h=o&&!d,m=s&&!p;if(!o&&l){t=m?t:new ut(this);var g=e.apply(t,i);return g.__actions__.push({func:_a,args:[u],thisArg:V}),new lt(g,d)}return h&&m?e.apply(this,i):(g=this.thru(u),h?r?g.value()[0]:g.value():g)})})),a(["pop","push","shift","sort","splice","unshift"],(function(e){var t=xo[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);k.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(zs(a)?a:[],e)}return this[n]((function(n){return t.apply(zs(n)?n:[],e)}))}})),Mt(ut.prototype,(function(e,t){var n=k[t];if(n){var r=n.name+"";zo.call(gi,r)||(gi[r]=[]),gi[r].push({name:t,func:n})}})),gi[wr(V,2).name]=[{name:"wrapper",func:V}],ut.prototype.clone=function(){var e=new ut(this.__wrapped__);return e.__actions__=ur(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ur(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ur(this.__views__),e},ut.prototype.reverse=function(){if(this.__filtered__){var e=new ut(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ut.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=zs(e),r=t<0,a=n?e.length:0,o=function(e,t,n){for(var r=-1,a=n.length;++r<a;){var o=n[r],i=o.size;switch(o.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=ai(t,e+i);break;case"takeRight":e=ri(e,t-i)}}return{start:e,end:t}}(0,a,this.__views__),i=o.start,s=o.end,c=s-i,l=r?s:i-1,u=this.__iteratees__,f=u.length,d=0,p=ai(c,this.__takeCount__);if(!n||!r&&a==c&&p==c)return Zn(e,this.__actions__);var h=[];e:for(;c--&&d<p;){for(var m=-1,g=e[l+=t];++m<f;){var y=u[m],v=y.iteratee,b=y.type,_=v(g);if(2==b)g=_;else if(!_){if(1==b)continue e;break e}}h[d++]=g}return h},k.prototype.at=ss,k.prototype.chain=function(){return ba(this)},k.prototype.commit=function(){return new lt(this.value(),this.__chain__)},k.prototype.next=function(){this.__values__===V&&(this.__values__=Fa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?V:this.__values__[this.__index__++]}},k.prototype.plant=function(e){for(var t,n=this;n instanceof He;){var r=la(n);r.__index__=0,r.__values__=V,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},k.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ut){var t=e;return this.__actions__.length&&(t=new ut(this)),(t=t.reverse()).__actions__.push({func:_a,args:[ga],thisArg:V}),new lt(t,this.__chain__)}return this.thru(ga)},k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=function(){return Zn(this.__wrapped__,this.__actions__)},k.prototype.first=k.prototype.head,$o&&(k.prototype[$o]=function(){return this}),k}();nn?((nn.exports=yn)._=yn,tn._=yn):en._=yn}.call(zq)),Y0.exports;var e,t}var kI,xx,xI,Sx,SI,Ex,EI,kx={};function Dq(){return kI||(kI=1,(e=kx).aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var a in n){var o=n[a];t.call(r,o)?r[o].push(a):r[o]=[a]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}),kx;var e}function mR(){return xI||(xI=1,xx={}),xx}function FN(){if(SI)return Sx;SI=1;var e=Dq(),t=mR(),n=Array.prototype.push;function r(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function a(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function o(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var a=r[0]=t.apply(void 0,r);return e.apply(void 0,r),a}}}return Sx=function i(s,c,l,u){var f="function"==typeof c,d=c===Object(c);if(d&&(u=l,l=c,c=void 0),null==l)throw new TypeError;u||(u={});var p=!("cap"in u)||u.cap,h=!("curry"in u)||u.curry,m=!("fixed"in u)||u.fixed,g=!("immutable"in u)||u.immutable,y=!("rearg"in u)||u.rearg,v=f?l:t,b="curry"in u&&u.curry,_="fixed"in u&&u.fixed,w="rearg"in u&&u.rearg,k=f?l.runInContext():void 0,x=f?l:{ary:s.ary,assign:s.assign,clone:s.clone,curry:s.curry,forEach:s.forEach,isArray:s.isArray,isError:s.isError,isFunction:s.isFunction,isWeakMap:s.isWeakMap,iteratee:s.iteratee,keys:s.keys,rearg:s.rearg,toInteger:s.toInteger,toPath:s.toPath},S=x.ary,E=x.assign,A=x.clone,C=x.curry,z=x.forEach,I=x.isArray,T=x.isError,R=x.isFunction,j=x.isWeakMap,P=x.keys,O=x.rearg,N=x.toInteger,M=x.toPath,D=P(e.aryMethod),B={castArray:function(e){return function(){var t=arguments[0];return I(t)?e(a(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],n=e(arguments[0],t),a=n.length;return p&&"number"==typeof t?(t=t>2?t-2:1,a&&a<=t?n:r(n,t)):n}},mixin:function(e){return function(t){var n=this;if(!R(n))return e(n,Object(t));var r=[];return z(P(t),(function(e){R(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),z(r,(function(e){var t=e[1];R(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:N(t)+1;return C(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return C(e(t,n),r)}},runInContext:function(e){return function(t){return i(s,e(t),u)}}};function L(t,n){if(p){var a=e.iterateeRearg[t];if(a)return function(e,t){return $(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(O(r(e,n),t),n)}))}(n,a);var o=!f&&e.iterateeAry[t];if(o)return function(e,t){return $(e,(function(e){return"function"==typeof e?r(e,t):e}))}(n,o)}return n}function q(t,r,a){if(m&&(_||!e.skipFixed[t])){var o=e.methodSpread[t],i=o&&o.start;return void 0===i?S(r,a):function(e,t){return function(){for(var r=arguments.length,a=r-1,o=Array(r);r--;)o[r]=arguments[r];var i=o[t],s=o.slice(0,t);return i&&n.apply(s,i),t!=a&&n.apply(s,o.slice(t+1)),e.apply(this,s)}}(r,i)}return r}function V(t,n,r){return y&&r>1&&(w||!e.skipRearg[t])?O(n,e.methodRearg[t]||e.aryRearg[r]):n}function F(e,t){for(var n=-1,r=(t=M(t)).length,a=r-1,o=A(Object(e)),i=o;null!=i&&++n<r;){var s=t[n],c=i[s];null!=c&&!(R(c)||T(c)||j(c))&&(i[s]=A(n==a?c:Object(c))),i=i[s]}return o}function U(t,n){var r=e.aliasToReal[t]||t,a=e.remap[r]||r,o=u;return function(e){var t=f?k:x,s=f?k[a]:n,c=E(E({},o),e);return i(t,r,s,c)}}function $(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var a=y?0:n-1;return r[a]=t(r[a]),e.apply(void 0,r)}}function W(t,n,r){var i,s=e.aliasToReal[t]||t,c=n,l=B[s];return l?c=l(n):g&&(e.mutate.array[s]?c=o(n,a):e.mutate.object[s]?c=o(n,function(e){return function(t){return e({},t)}}(n)):e.mutate.set[s]&&(c=o(n,F))),z(D,(function(t){return z(e.aryMethod[t],(function(n){if(s==n){var r=e.methodSpread[s],a=r&&r.afterRearg;return i=a?q(s,V(s,c,t),t):V(s,q(s,c,t),t),i=function(e,t,n){return b||h&&n>1?C(t,n):t}(0,i=L(s,i),t),!1}})),!i})),i||(i=c),i==n&&(i=b?C(i,1):function(){return n.apply(this,arguments)}),i.convert=U(s,n),i.placeholder=n.placeholder=r,i}if(!d)return W(c,l,v);var H=l,G=[];return z(D,(function(t){z(e.aryMethod[t],(function(t){var n=H[e.remap[t]||t];n&&G.push([t,W(t,n,H)])}))})),z(P(H),(function(e){var t=H[e];if("function"==typeof t){for(var n=G.length;n--;)if(G[n][0]==e)return;t.convert=U(e,t),G.push([e,t])}})),z(G,(function(e){H[e[0]]=e[1]})),H.convert=function(e){return H.runInContext.convert(e)(void 0)},H.placeholder=H,z(P(H),(function(t){z(e.realToAlias[t]||[],(function(e){H[e]=H[t]}))})),H},Sx}function Nq(){if(EI)return Ex;EI=1;var e=Mq().runInContext();return Ex=FN()(e,e)}var Xd=Nq();const Lq=e=>e&&Xd.values(e).length?"?"+new URLSearchParams(e).toString():"";function no(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var jq="function"==typeof Symbol&&Symbol.observable||"@@observable",CI=jq,Cx=()=>Math.random().toString(36).substring(7).split("").join("."),Bq={INIT:`@@redux/INIT${Cx()}`,REPLACE:`@@redux/REPLACE${Cx()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Cx()}`},Eb=Bq;function Il(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function UN(e,t,n){if("function"!=typeof e)throw new Error(no(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(no(0));if("function"==typeof t&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if("function"!=typeof n)throw new Error(no(1));return n(UN)(e,t)}let r=e,a=t,o=new Map,i=o,s=0,c=!1;function l(){i===o&&(i=new Map,o.forEach(((e,t)=>{i.set(t,e)})))}function u(){if(c)throw new Error(no(3));return a}function f(e){if("function"!=typeof e)throw new Error(no(4));if(c)throw new Error(no(5));let t=!0;l();const n=s++;return i.set(n,e),function(){if(t){if(c)throw new Error(no(6));t=!1,l(),i.delete(n),o=null}}}function d(e){if(!Il(e))throw new Error(no(7));if(typeof e.type>"u")throw new Error(no(8));if("string"!=typeof e.type)throw new Error(no(17));if(c)throw new Error(no(9));try{c=!0,a=r(a,e)}finally{c=!1}return(o=i).forEach((e=>{e()})),e}return d({type:Eb.INIT}),{dispatch:d,subscribe:f,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(no(10));r=e,d({type:Eb.REPLACE})},[CI]:function(){const e=f;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(no(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[CI](){return this}}}}}function Fq(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:Eb.INIT})>"u")throw new Error(no(12));if(typeof n(void 0,{type:Eb.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(no(13))}))}function gR(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}const r=Object.keys(n);let a;try{Fq(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const i={};for(let a=0;a<r.length;a++){const s=r[a],c=n[s],l=e[s],u=c(l,t);if(typeof u>"u")throw t&&t.type,new Error(no(14));i[s]=u,o=o||u!==l}return o=o||r.length!==Object.keys(e).length,o?i:e}}function Cb(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function Uq(...e){return t=>(n,r)=>{const a=t(n,r);let o=()=>{throw new Error(no(15))};const i={getState:a.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(i)));return o=Cb(...s)(a.dispatch),{...a,dispatch:o}}}function VN(e){return Il(e)&&"type"in e&&"string"==typeof e.type}var yR=Symbol.for("immer-nothing"),cy=Symbol.for("immer-draftable"),_i=Symbol.for("immer-state");function ao(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Kh=Object.getPrototypeOf;function Cc(e){return!!e&&!!e[_i]}function Rc(e){var t;return!!e&&(qN(e)||Array.isArray(e)||!!e[cy]||!(null==(t=e.constructor)||!t[cy])||d_(e)||p_(e))}var Vq=Object.prototype.constructor.toString();function qN(e){if(!e||"object"!=typeof e)return!1;const t=Kh(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Vq}function qq(e){return Cc(e)||ao(15,e),e[_i].base_}function o1(e,t){0===Qh(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function Qh(e){const t=e[_i];return t?t.type_:Array.isArray(e)?1:d_(e)?2:p_(e)?3:0}function Ry(e,t){return 2===Qh(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Rx(e,t){return 2===Qh(e)?e.get(t):e[t]}function WN(e,t,n){const r=Qh(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function Wq(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d_(e){return e instanceof Map}function p_(e){return e instanceof Set}function Dh(e){return e.copy_||e.base_}function z4(e,t){if(d_(e))return new Map(e);if(p_(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&qN(e))return Kh(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[_i];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const a=r[t],o=n[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(Kh(e),n)}function _R(e,t=!1){return xw(e)||Cc(e)||!Rc(e)||(Qh(e)>1&&(e.set=e.add=e.clear=e.delete=Hq),Object.freeze(e),t&&o1(e,((e,t)=>_R(t,!0)))),e}function Hq(){ao(2)}function xw(e){return Object.isFrozen(e)}var Ty,M4={};function Yh(e){const t=M4[e];return t||ao(0,e),t}function Gq(e,t){M4[e]||(M4[e]=t)}function HN(){return Ty}function Kq(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function RI(e,t){t&&(Yh("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function D4(e){N4(e),e.drafts_.forEach(Qq),e.drafts_=null}function N4(e){e===Ty&&(Ty=e.parent_)}function TI(e){return Ty=Kq(Ty,e)}function Qq(e){const t=e[_i];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function AI(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[_i].modified_&&(D4(t),ao(4)),Rc(e)&&(e=Rb(t,e),t.parent_||Tb(t,e)),t.patches_&&Yh("Patches").generateReplacementPatches_(n[_i].base_,e,t.patches_,t.inversePatches_)):e=Rb(t,n,[]),D4(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==yR?e:void 0}function Rb(e,t,n){if(xw(t))return t;const r=t[_i];if(!r)return o1(t,((a,o)=>II(e,r,t,a,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return Tb(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let a=t,o=!1;3===r.type_&&(a=new Set(t),t.clear(),o=!0),o1(a,((a,i)=>II(e,r,t,a,i,n,o))),Tb(e,t,!1),n&&e.patches_&&Yh("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function II(e,t,n,r,a,o,i){if(Cc(a)){const i=Rb(e,a,o&&t&&3!==t.type_&&!Ry(t.assigned_,r)?o.concat(r):void 0);if(WN(n,r,i),!Cc(i))return;e.canAutoFreeze_=!1}else i&&n.add(a);if(Rc(a)&&!xw(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Rb(e,a),(!t||!t.scope_.parent_)&&Tb(e,a)}}function Tb(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_R(t,n)}function Yq(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:HN(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=vR;n&&(a=[r],o=Ay);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return r.draft_=s,r.revoke_=i,s}var vR={get(e,t){if(t===_i)return e;const n=Dh(e);if(!Ry(n,t))return Zq(e,n,t);const r=n[t];return e.finalized_||!Rc(r)?r:r===Tx(e.base_,t)?(Ax(e),e.copy_[t]=j4(r,e)):r},has:(e,t)=>t in Dh(e),ownKeys:e=>Reflect.ownKeys(Dh(e)),set(e,t,n){const r=GN(Dh(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Tx(Dh(e),t),a=null==r?void 0:r[_i];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Wq(n,r)&&(void 0!==n||Ry(e.base_,t)))return!0;Ax(e),L4(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Tx(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Ax(e),L4(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Dh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){ao(11)},getPrototypeOf:e=>Kh(e.base_),setPrototypeOf(){ao(12)}},Ay={};function Tx(e,t){const n=e[_i];return(n?Dh(n):e)[t]}function Zq(e,t,n){var r;const a=GN(t,n);return a?"value"in a?a.value:null==(r=a.get)?void 0:r.call(e.draft_):void 0}function GN(e,t){if(!(t in e))return;let n=Kh(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Kh(n)}}function L4(e){e.modified_||(e.modified_=!0,e.parent_&&L4(e.parent_))}function Ax(e){e.copy_||(e.copy_=z4(e.base_,e.scope_.immer_.useStrictShallowCopy_))}o1(vR,((e,t)=>{Ay[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Ay.deleteProperty=function(e,t){return Ay.set.call(this,e,t,void 0)},Ay.set=function(e,t,n){return vR.set.call(this,e[0],t,n,e[0])};var Xq=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...a){return r.produce(e,(e=>t.call(this,e,...a)))}}let r;if("function"!=typeof t&&ao(6),void 0!==n&&"function"!=typeof n&&ao(7),Rc(e)){const a=TI(this),o=j4(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?D4(a):N4(a)}return RI(a,n),AI(r,a)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===yR&&(r=void 0),this.autoFreeze_&&_R(r,!0),n){const t=[],a=[];Yh("Patches").generateReplacementPatches_(e,r,t,a),n(t,a)}return r}ao(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Rc(e)||ao(8),Cc(e)&&(e=KN(e));const t=TI(this),n=j4(e,void 0);return n[_i].isManual_=!0,N4(t),n}finishDraft(e,t){const n=e&&e[_i];(!n||!n.isManual_)&&ao(9);const{scope_:r}=n;return RI(r,t),AI(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=Yh("Patches").applyPatches_;return Cc(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function j4(e,t){const n=d_(e)?Yh("MapSet").proxyMap_(e,t):p_(e)?Yh("MapSet").proxySet_(e,t):Yq(e,t);return(t?t.scope_:HN()).drafts_.push(n),n}function KN(e){return Cc(e)||ao(10,e),QN(e)}function QN(e){if(!Rc(e)||xw(e))return e;const t=e[_i];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=z4(e,t.scope_.immer_.useStrictShallowCopy_)}else n=z4(e,!0);return o1(n,((e,t)=>{WN(n,e,QN(t))})),t&&(t.finalized_=!1),n}function Jq(){const e="replace",t="add",n="remove";function r(e){if(!Rc(e))return e;if(Array.isArray(e))return e.map(r);if(d_(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(p_(e))return new Set(Array.from(e).map(r));const t=Object.create(Kh(e));for(const n in e)t[n]=r(e[n]);return Ry(e,cy)&&(t[cy]=e[cy]),t}function a(e){return Cc(e)?r(e):e}Gq("Patches",{applyPatches_:function(a,o){return o.forEach((o=>{const{path:i,op:s}=o;let c=a;for(let e=0;e<i.length-1;e++){const t=Qh(c);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&ao(19),"function"==typeof c&&"prototype"===n&&ao(19),c=Rx(c,n),"object"!=typeof c&&ao(18,i.join("/"))}const l=Qh(c),u=r(o.value),f=i[i.length-1];switch(s){case e:switch(l){case 2:return c.set(f,u);case 3:ao(16);default:return c[f]=u}case t:switch(l){case 1:return"-"===f?c.push(u):c.splice(f,0,u);case 2:return c.set(f,u);case 3:return c.add(u);default:return c[f]=u}case n:switch(l){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(o.value);default:return delete c[f]}default:ao(17,s)}})),a},generatePatches_:function(r,o,i,s){switch(r.type_){case 0:case 2:return function(r,o,i,s){const{base_:c,copy_:l}=r;o1(r.assigned_,((r,u)=>{const f=Rx(c,r),d=Rx(l,r),p=u?Ry(c,r)?e:t:n;if(f===d&&p===e)return;const h=o.concat(r);i.push(p===n?{op:p,path:h}:{op:p,path:h,value:d}),s.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:a(f)}:{op:e,path:h,value:a(f)})}))}(r,o,i,s);case 1:return function(r,o,i,s){let{base_:c,assigned_:l}=r,u=r.copy_;u.length<c.length&&([c,u]=[u,c],[i,s]=[s,i]);for(let t=0;t<c.length;t++)if(l[t]&&u[t]!==c[t]){const n=o.concat([t]);i.push({op:e,path:n,value:a(u[t])}),s.push({op:e,path:n,value:a(c[t])})}for(let e=c.length;e<u.length;e++){const n=o.concat([e]);i.push({op:t,path:n,value:a(u[e])})}for(let e=u.length-1;c.length<=e;--e){const t=o.concat([e]);s.push({op:n,path:t})}}(r,o,i,s);case 3:return function(e,r,a,o){let{base_:i,copy_:s}=e,c=0;i.forEach((e=>{if(!s.has(e)){const i=r.concat([c]);a.push({op:n,path:i,value:e}),o.unshift({op:t,path:i,value:e})}c++})),c=0,s.forEach((e=>{if(!i.has(e)){const i=r.concat([c]);a.push({op:t,path:i,value:e}),o.unshift({op:n,path:i,value:e})}c++}))}(r,o,i,s)}},generateReplacementPatches_:function(t,n,r,a){r.push({op:e,path:[],value:n===yR?void 0:n}),a.push({op:e,path:[],value:t})}})}var Qi=new Xq,h_=Qi.produce,YN=Qi.produceWithPatches.bind(Qi);Qi.setAutoFreeze.bind(Qi),Qi.setUseStrictShallowCopy.bind(Qi);var $I=Qi.applyPatches.bind(Qi);function eW(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function tW(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function nW(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}Qi.createDraft.bind(Qi),Qi.finishDraft.bind(Qi);var PI=e=>Array.isArray(e)?e:[e];function rW(e){const t=Array.isArray(e[0])?e[0]:e;return nW(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function aW(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var oW=class{constructor(e){this.value=e}deref(){return this.value}},iW=typeof WeakRef<"u"?WeakRef:oW,sW=0,OI=1;function bv(){return{s:sW,v:void 0,o:null,p:null}}function Iy(e,t={}){let n=bv();const{resultEqualityCheck:r}=t;let a,o=0;function i(){var t;let i=n;const{length:s}=arguments;for(let e=0,t=s;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=bv(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=bv(),e.set(t,i)):i=n}}const c=i;let l;if(i.s===OI?l=i.v:(l=e.apply(null,arguments),o++),c.s=OI,r){const e=(null==(t=null==a?void 0:a.deref)?void 0:t.call(a))??a;null!=e&&r(e,l)&&(l=e,0!==o&&o--),a="object"==typeof l&&null!==l||"function"==typeof l?new iW(l):l}return c.v=l,l}return i.clearCache=()=>{n=bv(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function ZN(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,a=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),eW(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...o},{memoize:c,memoizeOptions:l=[],argsMemoize:u=Iy,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=PI(l),h=PI(f),m=rW(e),g=c((function(){return r++,i.apply(null,arguments)}),...p),y=u((function(){a++;const e=aW(m,arguments);return t=g.apply(null,e),t}),...h);return Object.assign(y,{resultFunc:i,memoizedResultFunc:g,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var io=ZN(Iy),cW=Object.assign(((e,t=io)=>{tW(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>cW});function XN(e){return({dispatch:t,getState:n})=>r=>a=>"function"==typeof a?a(t,n,e):r(a)}var lW=XN(),fW=XN,uW={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/router/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/router/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"75f5d9c2e3f1e845",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/router",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.174",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/router",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/router",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/router"},dW=(...e)=>{const t=ZN(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Cc(e)?KN(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};dW(Iy);var pW=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Cb:Cb.apply(null,arguments)},hW=e=>e&&"function"==typeof e.match;function Er(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(Na(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>VN(t)&&t.type===e,n}var JN=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function zI(e){return Rc(e)?h_(e,(()=>{})):e}function B4(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(Na(10));const r=n.insert(t,e);return e.set(t,r),r}function mW(e){return"boolean"==typeof e}var gW=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:a=!0}=e??{};let o=new JN;return t&&(mW(t)?o.push(lW):o.push(fW(t.extraArgument))),o},Gg="RTK_autoBatch",D0=()=>e=>({payload:e,meta:{[Gg]:!0}}),e8=e=>t=>{setTimeout(t,e)},yW=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:e8(10),_W=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,o=!1,i=!1;const s=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?yW:"callback"===e.type?e.queueNotification:e8(e.timeout),l=()=>{i=!1,o&&(o=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>a&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){var t;try{return a=!(null!=(t=null==e?void 0:e.meta)&&t[Gg]),o=!a,o&&(i||(i=!0,c(l))),r.dispatch(e)}finally{a=!0}}})},vW=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new JN(e);return n&&r.push(_W("object"==typeof n?n:void 0)),r},bW="production"===uW.NODE_ENV;function wW(e){const t=gW(),{reducer:n,middleware:r,devTools:a=!0,preloadedState:o,enhancers:i}=e;let s,c;if("function"==typeof n)s=n;else{if(!Il(n))throw new Error(Na(1));s=gR(n)}c="function"==typeof r?r(t):t();let l=Cb;a&&(l=pW({trace:!bW,..."object"==typeof a&&a}));const u=Uq(...c),f=vW(u);return UN(s,o,l(..."function"==typeof i?i(f):f()))}function t8(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Na(28));if(r in t)throw new Error(Na(29));return t[r]=n,a},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(r=e,a)};return e(a),[t,n,r]}function kW(e){return"function"==typeof e}function xW(e,t){let n,[r,a,o]=t8(t);if(kW(e))n=()=>zI(e());else{const t=zI(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...a.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[o]),i.reduce(((e,n)=>{if(n){if(Cc(e)){const r=n(e,t);return void 0===r?e:r}if(Rc(e))return h_(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(Na(9))}return r}}return e}),e)}return i.getInitialState=n,i}var SW="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Sw=(e=21)=>{let t="",n=e;for(;n--;)t+=SW[64*Math.random()|0];return t},n8=(e,t)=>hW(e)?e.match(t):e(t);function ap(...e){return t=>e.some((e=>n8(e,t)))}function ly(...e){return t=>e.every((e=>n8(e,t)))}function Ew(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function m_(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function bR(...e){return 0===e.length?e=>Ew(e,["pending"]):m_(e)?t=>ap(...e.map((e=>e.pending)))(t):bR()(e[0])}function i1(...e){return 0===e.length?e=>Ew(e,["rejected"]):m_(e)?t=>ap(...e.map((e=>e.rejected)))(t):i1()(e[0])}function Cw(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||m_(e)?n=>ly(i1(...e),t)(n):Cw()(e[0])}function op(...e){return 0===e.length?e=>Ew(e,["fulfilled"]):m_(e)?t=>ap(...e.map((e=>e.fulfilled)))(t):op()(e[0])}function F4(...e){return 0===e.length?e=>Ew(e,["pending","fulfilled","rejected"]):m_(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return ap(...n)(t)}:F4()(e[0])}var EW=["name","message","stack","code"],Ix=class{constructor(e,t){vx(this,"_type"),this.payload=e,this.meta=t}},MI=class{constructor(e,t){vx(this,"_type"),this.payload=e,this.meta=t}},CW=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of EW)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},DI=(()=>{function e(e,t,n){const r=Er(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),a=Er(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=Er(e+"/rejected",((e,t,r,a,o)=>({payload:a,error:(n&&n.serializeError||CW)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(i,s,c)=>{const l=null!=n&&n.idGenerator?n.idGenerator(e):Sw(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,m;let g;try{let o=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:s,extra:c});if(TW(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const y=new Promise(((e,t)=>{f=()=>{t({name:"AbortError",message:d||"Aborted"})},u.signal.addEventListener("abort",f)}));i(a(l,e,null==(m=null==n?void 0:n.getPendingMeta)?void 0:m.call(n,{requestId:l,arg:e},{getState:s,extra:c}))),g=await Promise.race([y,Promise.resolve(t(e,{dispatch:i,getState:s,extra:c,requestId:l,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new Ix(e,t),fulfillWithValue:(e,t)=>new MI(e,t)})).then((t=>{if(t instanceof Ix)throw t;return t instanceof MI?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){g=t instanceof Ix?o(null,l,e,t.payload,t.meta):o(t,l,e)}finally{f&&u.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&o.match(g)&&g.meta.condition||i(g),g}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(RW)})}}),{pending:a,rejected:o,fulfilled:r,settled:ap(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function RW(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function TW(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var AW=Symbol.for("rtk-slice-createasyncthunk");function IW(e,t){return`${e}/${t}`}function $W({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[AW];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(Na(11));const a=("function"==typeof e.reducers?e.reducers(OW()):e.reducers)||{},o=Object.keys(a),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Na(12));if(n in i.sliceCaseReducersByType)throw new Error(Na(13));return i.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?t8(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return xW(e.initialState,(e=>{for(let t in a)e.addCase(t,a[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=a[r],i={reducerName:r,type:IW(t,r),createNotation:"function"==typeof e.reducers};MW(o)?NW(i,o,s,n):zW(i,o,s)}));const l=e=>e,u=new Map;let f;function d(e,t){return f||(f=c()),f(e,t)}function p(){return f||(f=c()),f.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function a(t=l){const r=B4(u,n,{insert:()=>new WeakMap});return B4(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=PW(o,t,p,n);return r}})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}const m={name:t,reducer:d,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:p,...h(r),injectInto(e,{reducerPath:t,...n}={}){const a=t??r;return e.inject({reducerPath:a,reducer:d},n),{...m,...h(a,!0)}}};return m}}function PW(e,t,n,r){function a(a,...o){let i=t(a);return typeof i>"u"&&r&&(i=n()),e(i,...o)}return a.unwrapped=e,a}var ia=$W();function OW(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}function zW({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!DW(r))throw new Error(Na(17));o=r.reducer,i=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?Er(e,i):Er(e))}function MW(e){return"asyncThunk"===e._reducerDefinitionType}function DW(e){return"reducerWithPrepare"===e._reducerDefinitionType}function NW({type:e,reducerName:t},n,r,a){if(!a)throw new Error(Na(18));const{payloadCreator:o,fulfilled:i,pending:s,rejected:c,settled:l,options:u}=n,f=a(e,o,u);r.exposeAction(t,f),i&&r.addCase(f.fulfilled,i),s&&r.addCase(f.pending,s),c&&r.addCase(f.rejected,c),l&&r.addMatcher(f.settled,l),r.exposeCaseReducer(t,{fulfilled:i||wv,pending:s||wv,rejected:c||wv,settled:l||wv})}function wv(){}var LW=(e,t)=>{if("function"!=typeof e)throw new Error(Na(32))},wR="listenerMiddleware",jW=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=Er(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(Na(21));return LW(o),{predicate:a,type:t,effect:o}},BW=Object.assign((e=>{const{type:t,predicate:n,effect:r}=jW(e);return{id:Sw(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Na(22))}}}),{withTypes:()=>BW}),FW=Object.assign(Er(`${wR}/add`),{withTypes:()=>FW});Er(`${wR}/removeAll`);var UW=Object.assign(Er(`${wR}/remove`),{withTypes:()=>UW}),VW=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,qW=e=>e.flatMap((e=>VW(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),kR=Symbol.for("rtk-state-proxy-original"),WW=e=>!!e&&!!e[kR],HW=new WeakMap,GW=(e,t)=>B4(HW,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===kR)return e;const a=Reflect.get(e,n,r);if(typeof a>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:Sw()});if(typeof t>"u")throw new Error(Na(24));return t}}return a}})}),KW=e=>{if(!WW(e))throw new Error(Na(25));return e[kR]},QW=(e={})=>e;function YW(...e){const t=Object.fromEntries(qW(e)),n=()=>Object.keys(t).length?gR(t):QW;let r=n();function a(e,t){return r(e,t)}a.withLazyLoadedSlices=()=>a;const o=Object.assign((function(e,n){return function(r,...a){return e(GW(n?n(r,...a):r,t),...a)}}),{original:KW});return Object.assign(a,{inject:(e,o={})=>{const{reducerPath:i,reducer:s}=e,c=t[i];return!o.overrideExisting&&c&&c!==s||(t[i]=s,r=n()),a},selector:o})}function Na(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ZW={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/router/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/router/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"75f5d9c2e3f1e845",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/router",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.174",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/router",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/router",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/router"},r8=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(r8||{});function XW(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function JW(e){return new RegExp("(^|:)//").test(e)}var eH=e=>e.replace(/\/$/,""),tH=e=>e.replace(/^\//,"");function nH(e,t){if(!e)return t;if(!t)return e;if(JW(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=eH(e)}${n}${t=tH(t)}`}var NI=e=>[].concat(...e);function rH(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function aH(){return typeof document>"u"||"hidden"!==document.visibilityState}var LI=Il;function a8(e,t){if(e===t||!(LI(e)&&LI(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let a=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const r of n)o[r]=a8(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}var jI=(...e)=>fetch(...e),oH=e=>e.status>=200&&e.status<=299,iH=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function BI(e){if(!Il(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function sH({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=jI,paramsSerializer:r,isJsonContentType:a=iH,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>"u"&&n===jI&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,p)=>{const{signal:h,getState:m,extra:g,endpoint:y,forced:v,type:b}=p;let _,{url:w,headers:k=new Headers(u.headers),params:x,responseHandler:S=c??"json",validateStatus:E=l??oH,timeout:A=s,...C}="string"==typeof d?{url:d}:d,z={...u,signal:h,...C};k=new Headers(BI(k)),z.headers=await t(k,{getState:m,extra:g,endpoint:y,forced:v,type:b})||k;const I=e=>"object"==typeof e&&(Il(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!z.headers.has("content-type")&&I(z.body)&&z.headers.set("content-type",o),I(z.body)&&a(z.headers)&&(z.body=JSON.stringify(z.body,i)),x){const e=~w.indexOf("?")?"&":"?";w+=e+(r?r(x):new URLSearchParams(BI(x)))}w=nH(e,w);const T=new Request(w,z);_={request:new Request(w,z)};let R,j=!1,P=A&&setTimeout((()=>{j=!0,p.abort()}),A);try{R=await n(T)}catch(e){return{error:{status:j?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:_}}finally{P&&clearTimeout(P)}const O=R.clone();_.response=O;let N,M="";try{let e;if(await Promise.all([f(R,S).then((e=>N=e),(t=>e=t)),O.text().then((e=>M=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:R.status,data:M,error:String(e)},meta:_}}return E(R,N)?{data:N,meta:_}:{error:{status:R.status,data:N},meta:_}};async function f(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var FI=class{constructor(e,t=void 0){this.value=e,this.meta=t}},xR=Er("__rtkq/focused"),o8=Er("__rtkq/unfocused"),SR=Er("__rtkq/online"),i8=Er("__rtkq/offline");function s8(e){return"query"===e.type}function cH(e){return"mutation"===e.type}function ER(e,t,n,r,a,o){return lH(e)?e(t,n,r,a).map(U4).map(o):Array.isArray(e)?e.map(U4).map(o):[]}function lH(e){return"function"==typeof e}function U4(e){return"string"==typeof e?{type:e}:e}function UI(e){return null!=e}function Jg(e){let t=0;for(const n in e)t++;return t}function fH(e,t){return e.catch(t)}var $y=Symbol("forceQueryFn"),V4=e=>"function"==typeof e[$y];function uH({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:a}){const o=new Map,i=new Map,{unsubscribeQueryResult:s,removeMutationResult:c,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,a){const i=(c,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:d,[$y]:p,...h}={})=>(m,g)=>{var y;const v=e({queryArgs:c,endpointDefinition:a,endpointName:n}),b=t({...h,type:"query",subscribe:u,forceRefetch:f,subscriptionOptions:d,endpointName:n,originalArgs:c,queryCacheKey:v,[$y]:p}),_=r.endpoints[n].select(c),w=m(b),k=_(g()),{requestId:x,abort:S}=w,E=k.requestId!==x,A=null==(y=o.get(m))?void 0:y[v],C=()=>_(g()),z=Object.assign(p?w.then(C):E&&!A?Promise.resolve(k):Promise.all([A,w]).then(C),{arg:c,requestId:x,subscriptionOptions:d,queryCacheKey:v,abort:S,async unwrap(){const e=await z;if(e.isError)throw e.error;return e.data},refetch:()=>m(i(c,{subscribe:!1,forceRefetch:!0})),unsubscribe(){u&&m(s({queryCacheKey:v,requestId:x}))},updateSubscriptionOptions(e){z.subscriptionOptions=e,m(l({endpointName:n,requestId:x,queryCacheKey:v,options:e}))}});if(!A&&!E&&!p){const e=o.get(m)||{};e[v]=z,o.set(m,e),z.then((()=>{delete e[v],Jg(e)||o.delete(m)}))}return z};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:a}={})=>(o,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:a}),u=o(l),{requestId:f,abort:d,unwrap:p}=u,h=fH(u.unwrap().then((e=>({data:e}))),(e=>({error:e}))),m=Object.assign(h,{arg:u.arg,requestId:f,abort:d,unwrap:p,reset:()=>{o(c({requestId:f,fixedCacheKey:a}))}}),g=i.get(o)||{};return i.set(o,g),g[f]=m,m.then((()=>{delete g[f],Jg(g)||i.delete(o)})),a&&(g[a]=m,m.then((()=>{g[a]===m&&(delete g[a],Jg(g)||i.delete(o))}))),m}},getRunningQueryThunk:function(t,n){return r=>{var i;const s=a.endpointDefinitions[t],c=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(i=o.get(r))?void 0:i[c]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=i.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(UI)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(UI)}}}function VI(e){return e}function dH({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:o}){const i=async(e,{signal:r,abort:a,rejectWithValue:o,fulfillWithValue:i,dispatch:c,getState:l,extra:u})=>{const f=n[e.endpointName];try{let n,o=VI;const d={signal:r,abort:a,dispatch:c,getState:l,extra:u,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,l()):void 0},p="query"===e.type?e[$y]:void 0;if(p?n=p():f.query?(n=await t(f.query(e.originalArgs),d,f.extraOptions),f.transformResponse&&(o=f.transformResponse)):n=await f.queryFn(e.originalArgs,d,f.extraOptions,(e=>t(e,d,f.extraOptions))),typeof process<"u"&&ZW.NODE_ENV,n.error)throw new FI(n.error,n.meta);return i(await o(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[Gg]:!0})}catch(t){let n=t;if(n instanceof FI){let t=VI;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[Gg]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,a,o;const i=null==(a=null==(r=n[e])?void 0:r.queries)?void 0:a[t.queryCacheKey],s=null==(o=n[e])?void 0:o.config.refetchOnMountOrArgChange,c=null==i?void 0:i.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(c))/1e3>=l)}const c=DI(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Gg]:!0}),condition(t,{getState:r}){var a,o,i;const c=r(),l=null==(o=null==(a=c[e])?void 0:a.queries)?void 0:o[t.queryCacheKey],u=null==l?void 0:l.fulfilledTimeStamp,f=t.originalArgs,d=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!V4(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,c)||s8(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:c}))||!u)},dispatchConditionRejection:!0}),l=DI(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Gg]:!0})});function u(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:c,mutationThunk:l,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,c=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},l=a.endpoints[e].select(t)(o());if(i)r(c());else if(s){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(c());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(c())}else r(c(!1))},updateQueryData:(e,t,n,r=!0)=>(o,i)=>{const s=a.endpoints[e].select(t)(i());let c,l={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(Rc(s.data)){const[e,t,r]=YN(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),c=e}else c=n(s.data),l.patches.push({op:"replace",path:[],value:c}),l.inversePatches.push({op:"replace",path:[],value:s.data});return o(a.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[$y]:()=>({data:n})})),patchQueryData:(e,t,i,s)=>(c,l)=>{const u=n[e],f=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(c(a.internalActions.queryResultPatched({queryCacheKey:f,patches:i})),!s)return;const d=a.endpoints[e].select(t)(l()),p=ER(u.providesTags,d.data,void 0,t,{},o);c(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:ly(bR(e),u(t)),matchFulfilled:ly(op(e),u(t)),matchRejected:ly(i1(e),u(t))}}}}function c8(e,t,n,r){return ER(n[e.meta.arg.endpointName][t],op(e)?e.payload:void 0,Cw(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function kv(e,t,n){const r=e[t];r&&n(r)}function Py(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function qI(e,t,n){const r=e[Py(t)];r&&n(r)}var N0={};function pH({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:s,config:c}){const l=Er(`${e}/resetApiState`),u=ia({name:`${e}/queries`,initialState:N0,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:D0()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){kv(e,t,(e=>{e.data=$I(e.data,n.concat())}))},prepare:D0()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const a=V4(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),kv(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=a&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{kv(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!V4(t.arg))return;const{merge:a}=r[t.arg.endpointName];if(e.status="fulfilled",a)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:o,baseQueryMeta:i,requestId:s}=t;let c=h_(e.data,(e=>a(e,n,{arg:o.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:s})));e.data=c}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?a8(Cc(e.data)?qq(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:a,payload:o})=>{kv(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=o??a}}))})).addMatcher(i,((e,t)=>{const{queries:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),f=ia({name:`${e}/mutations`,initialState:N0,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Py(t);n in e&&delete e[n]},prepare:D0()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[Py(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:a})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&qI(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&qI(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(i,((e,t)=>{const{mutations:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),d=ia({name:`${e}/invalidation`,initialState:N0,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:a,providedTags:o}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(a);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of o){const o=(n=e[t]??(e[t]={}))[r=i||"__internal_without_id"]??(n[r]=[]);o.includes(a)||o.push(a)}},prepare:D0()}},extraReducers(e){e.addCase(u.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(i,((e,t)=>{var n,r;const{provided:a}=o(t);for(const[t,o]of Object.entries(a))for(const[a,i]of Object.entries(o)){const o=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);for(const e of i)o.includes(e)||o.push(e)}})).addMatcher(ap(op(t),Cw(t)),((e,t)=>{const n=c8(t,"providesTags",r,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:n}))}))}}),p=ia({name:`${e}/subscriptions`,initialState:N0,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=ia({name:`${e}/internalSubscriptions`,initialState:N0,reducers:{subscriptionsUpdated:{reducer:(e,t)=>$I(e,t.payload),prepare:D0()}}}),m=ia({name:`${e}/config`,initialState:{online:rH(),focused:aH(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(SR,(e=>{e.online=!0})).addCase(i8,(e=>{e.online=!1})).addCase(xR,(e=>{e.focused=!0})).addCase(o8,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),g=gR({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>g(l.match(t)?void 0:e,t),actions:{...m.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:l}}}var Bh=Symbol.for("RTKQ/skipToken"),l8={status:"uninitialized"},WI=h_(l8,(()=>{})),HI=h_(l8,(()=>{}));function hH({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>WI,a=e=>HI;return{buildQuerySelector:function(t,a){return s=>{const c=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(s===Bh?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[c])??WI},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Py(e)??Bh:e,n(t===Bh?a:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??HI},o)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set;for(const e of n.map(U4)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:NI(Object.values(t)))??[];for(const e of n)a.add(e)}return NI(Array.from(a.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...XW(e.status)}}function i(e){return e[t]}}var Og=WeakMap?new WeakMap:void 0,GI=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Og?void 0:Og.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Il(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Il(t)&&(null==Og||Og.set(t,e)),n=e}return`${e}(${n})`};function mH(...e){return function(t){const n=Iy((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:t.reducerPath??"api"})})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=GI;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:GI({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:Sw(),extractRehydrationInfo:n,hasRehydrationInfo:Iy((e=>null!=n(e)))},o={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in a.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Na(39))}else{a.endpointDefinitions[n]=r;for(const e of i)e.injectEndpoint(n,r)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(a.endpointDefinitions[e]):Object.assign(a.endpointDefinitions[e]||{},n);return o}},i=e.map((e=>e.init(o,r,a)));return o.injectEndpoints({endpoints:t.endpoints})}}function gH(e){for(let t in e)return!1;return!0}var yH=2147482.647,_H=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!gH(t)}const s={};function c(e,t,r,o){const c=n.endpointDefinitions[t],l=(null==c?void 0:c.keepUnusedDataFor)??o.keepUnusedDataFor;if(l===1/0)return;const u=Math.max(0,Math.min(l,yH));if(!i(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{i(e)||r.dispatch(a({queryCacheKey:e})),delete s[e]}),1e3*u)}}return(r,a,i)=>{var l;if(o.match(r)){const t=a.getState()[e],{queryCacheKey:n}=r.payload;c(n,null==(l=t.queries[n])?void 0:l.endpointName,a,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(s))t&&clearTimeout(t),delete s[e];if(n.hasRehydrationInfo(r)){const t=a.getState()[e],{queries:o}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(o))c(e,null==n?void 0:n.endpointName,a,t.config)}}},vH=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:a,api:o,assertTagType:i,refetchQuery:s,internalState:c})=>{const{removeQueryResult:l}=o.internalActions,u=ap(op(r),Cw(r)),f=ap(op(r,a),i1(r,a));let d=[];function p(n,r){const a=r.getState(),i=a[e];if(d.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(i))return;const u=d;if(d=[],0===u.length)return;const f=o.util.selectInvalidatedBy(a,u);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===Jg(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(c8(e,"invalidatesTags",n,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(ER(e.payload,void 0,void 0,void 0,void 0,i),t)}},bH=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:a})=>{const o={};function i({queryCacheKey:t},n){const s=n.getState()[e],c=s.queries[t],u=a.currentSubscriptions[t];if(!c||"uninitialized"===c.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:d}=l(u);if(!Number.isFinite(f))return;const p=o[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+f;o[t]={nextPollTimestamp:h,pollingInterval:f,timeout:setTimeout((()=>{(s.config.focused||!d)&&n.dispatch(r(c,t)),i({queryCacheKey:t},n)}),f)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=a.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=l(s);if(!Number.isFinite(u))return void c(t);const f=o[t],d=Date.now()+u;(!f||d<f.nextPollTimestamp)&&i({queryCacheKey:t},n)}function c(e){const t=o[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete o[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))c(e)}()}},wH=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:a})=>{const{removeQueryResult:o}=n.internalActions;function i(n,i){const s=n.getState()[e],c=s.queries,l=a.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=c[e],a=l[e];a&&t&&((Object.values(a).some((e=>!0===e[i]))||Object.values(a).every((e=>void 0===e[i]))&&s.config[i])&&(0===Jg(a)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{xR.match(e)&&i(t,"refetchOnFocus"),SR.match(e)&&i(t,"refetchOnReconnect")}},KI=new Error("Promise never resolved before cacheEntryRemoved."),kH=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o})=>{const i=F4(r),s=F4(a),c=op(r,a),l={};function u(t,r,a,o,i){const s=n.endpointDefinitions[t],c=null==s?void 0:s.onCacheEntryAdded;if(!c)return;let u={};const f=new Promise((e=>{u.cacheEntryRemoved=e})),d=Promise.race([new Promise((e=>{u.valueResolved=e})),f.then((()=>{throw KI}))]);d.catch((()=>{})),l[a]=u;const p=e.endpoints[t].select("query"===s.type?r:a),h=o.dispatch(((e,t,n)=>n)),m={...o,getCacheEntry:()=>p(o.getState()),requestId:i,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:d,cacheEntryRemoved:f},g=c(r,m);Promise.resolve(g).catch((e=>{if(e!==KI)throw e}))}return(n,o,f)=>{const d=function(t){return i(t)?t.meta.arg.queryCacheKey:s(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Py(t.payload):""}(n);if(r.pending.match(n)){const e=f[t].queries[d],r=o.getState()[t].queries[d];!e&&r&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId)}else if(a.pending.match(n))o.getState()[t].mutations[d]&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId);else if(c(n)){const e=l[d];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=l[d];e&&(delete l[d],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},xH=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=bR(n,r),o=i1(n,r),i=op(n,r),s={};return(n,r)=>{var c,l;if(a(n)){const{requestId:a,arg:{endpointName:o,originalArgs:i}}=n.meta,c=t.endpointDefinitions[o],l=null==c?void 0:c.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[a]=t;const u=e.endpoints[o].select("query"===c.type?i:a),f=r.dispatch(((e,t,n)=>n)),d={...r,getCacheEntry:()=>u(r.getState()),requestId:a,extra:f,updateCachedData:"query"===c.type?t=>r.dispatch(e.util.updateQueryData(o,i,t)):void 0,queryFulfilled:n};l(i,d)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(c=s[e])||c.resolve({data:n.payload,meta:t}),delete s[e]}else if(o(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=s[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},SH=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},EH=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let a=null,o=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:s}=e.internalActions,c=()=>n.currentSubscriptions,l={getSubscriptions:c,getSubscriptionCount:e=>Jg(c()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=c();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(c,u)=>{if(a||(a=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return a=n.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,l];const f=((n,r)=>{var a,o,c;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return null!=(a=null==n?void 0:n[e])&&a[t]&&(n[e][t]=o),!0}if(s.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,a=n[o=e.queryCacheKey]??(n[o]={});return a[`${t}_running`]={},e.subscribe&&(a[t]=e.subscriptionOptions??a[t]??{}),!0}let l=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;l||(l=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:a}}=r;if(e&&t.subscribe){const e=n[c=t.queryCacheKey]??(n[c]={});e[a]=t.subscriptionOptions??e[a]??{},l=!0}}return l})(n.currentSubscriptions,c);let d=!0;if(f){o||(o=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=YN(a,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),a=t,o=null}),500));const i="string"==typeof c.type&&!!c.type.startsWith(r),s=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;d=!i&&!s}return[d,!1]}};function CH(e){const{reducerPath:t,queryThunk:n,api:r,context:a}=e,{apiUid:o}=a,i={invalidateTags:Er(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),c=[SH,_H,vH,bH,kH,xH];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},f=c.map((e=>e(u))),d=EH(u),p=wH(u);return e=>c=>{if(!VN(c))return e(c);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));const l={...n,next:e},u=n.getState(),[h,m]=d(c,l,u);let g;if(g=h?e(c):m,n.getState()[t]&&(p(c,l,u),s(c)||a.hasRehydrationInfo(c)))for(let e of f)e(c,l,u);return g}},actions:i};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function Ld(e,...t){return Object.assign(e,...t)}var QI=Symbol(),RH=({createSelector:e=io}={})=>({name:QI,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u},f){Jq();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:SR,onOffline:i8,onFocus:xR,onFocusLost:o8},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:g,upsertQueryData:y,prefetch:v,buildMatchThunkActions:b}=dH({baseQuery:n,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:_,actions:w}=pH({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});Ld(t.util,{patchQueryData:m,updateQueryData:g,upsertQueryData:y,prefetch:v,resetApiState:w.resetApiState}),Ld(t.internalActions,w);const{middleware:k,actions:x}=CH({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});Ld(t.util,x),Ld(t,{reducer:_,middleware:k});const{buildQuerySelector:S,buildMutationSelector:E,selectInvalidatedBy:A,selectCachedArgsForQuery:C}=hH({serializeQueryArgs:o,reducerPath:a,createSelector:e});Ld(t.util,{selectInvalidatedBy:A,selectCachedArgsForQuery:C});const{buildInitiateQuery:z,buildInitiateMutation:I,getRunningMutationThunk:T,getRunningMutationsThunk:R,getRunningQueriesThunk:j,getRunningQueryThunk:P}=uH({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return Ld(t.util,{getRunningMutationThunk:T,getRunningMutationsThunk:R,getRunningQueryThunk:P,getRunningQueriesThunk:j}),{name:QI,injectEndpoint(e,n){var r;const a=t;(r=a.endpoints)[e]??(r[e]={}),s8(n)?Ld(a.endpoints[e],{name:e,select:S(e,n),initiate:z(e,n)},b(p,e)):cH(n)&&Ld(a.endpoints[e],{name:e,select:E(),initiate:I(e)},b(h,e))}}}}),v=kw();const ze=Dl(v),Ab=Iq({__proto__:null,default:ze},[v]);var YI,ZI,$x={exports:{}},Px={};
|
|
28
28
|
/**
|
|
29
29
|
* @license React
|
|
30
30
|
* use-sync-external-store-with-selector.production.min.js
|
|
@@ -33,7 +33,7 @@ var Tq=Object.defineProperty,Aq=(e,t,n)=>t in e?Tq(e,t,{enumerable:!0,configurab
|
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/function TH(){if(YI)return Px;YI=1;var e=kw();var t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,a=e.useEffect,o=e.useMemo,i=e.useDebugValue;return Px.useSyncExternalStoreWithSelector=function(e,s,c,l,u){var f=r(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=o((function(){function e(e){if(!a){if(a=!0,n=e,e=l(e),void 0!==u&&d.hasValue){var o=d.value;if(u(o,e))return r=o}return r=e}if(o=r,t(n,e))return o;var i=l(e);return void 0!==u&&u(o,i)?o:(n=e,r=i)}var n,r,a=!1,o=void 0===c?null:c;return[function(){return e(s())},null===o?void 0:function(){return e(o())}]}),[s,c,l,u]);var p=n(e,f[0],f[1]);return a((function(){d.hasValue=!0,d.value=p}),[p]),i(p),p},Px}function AH(){return ZI||(ZI=1,$x.exports=TH()),$x.exports}var IH=AH(),Cl="default"in Ab?ze:Ab,XI=Symbol.for("react-redux-context"),JI=typeof globalThis<"u"?globalThis:{};function $H(){if(!Cl.createContext)return{};const e=JI[XI]??(JI[XI]=new Map);let t=e.get(Cl.createContext);return t||(t=Cl.createContext(null),e.set(Cl.createContext,t)),t}var Zh=$H(),PH=()=>{throw new Error("uSES not initialized!")};function CR(e=Zh){return function(){return Cl.useContext(e)}}var f8=CR(),u8=PH,OH=e=>{u8=e},zH=(e,t)=>e===t;function MH(e=Zh){const t=e===Zh?f8:CR(e),n=(e,n={})=>{const{equalityFn:r=zH,devModeChecks:a={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:i,getServerState:s,stabilityCheck:c,identityFunctionCheck:l}=t();Cl.useRef(!0);const u=Cl.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,a.stabilityCheck]),f=u8(i.addNestedSub,o.getState,s||o.getState,u,r);return Cl.useDebugValue(f),f};return Object.assign(n,{withTypes:()=>n}),n}var Tc=MH();function DH(e){e()}var NH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function e9(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function fy(e,t){if(e9(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!e9(e[n[r]],t[n[r]]))return!1;return!0}function d8(e=Zh){const t=e===Zh?f8:CR(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}NH?Cl.useLayoutEffect:Cl.useEffect;var p8=d8();function LH(e=Zh){const t=e===Zh?p8:d8(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var g_=LH(),jH=DH;function BH(e){return"query"===e.type}function FH(e){return"mutation"===e.type}function xv(e,...t){return Object.assign(e,...t)}function Ox(e){return e.replace(e[0],e[0].toUpperCase())}OH(IH.useSyncExternalStoreWithSelector);var zg=WeakMap?new WeakMap:void 0,UH=({endpointName:e,queryArgs:t})=>{let n="";const r=null==zg?void 0:zg.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Il(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Il(t)&&(null==zg||zg.set(t,e)),n=e}return`${e}(${n})`},zx=Symbol();function t9(e,t,n,r){const a=v.useMemo((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),o=v.useRef(a);return v.useEffect((()=>{o.current.serialized!==a.serialized&&(o.current=a)}),[a]),o.current.serialized===a.serialized?o.current.queryArgs:e}function Mx(e){const t=v.useRef(e);return v.useEffect((()=>{fy(t.current,e)||(t.current=e)}),[e]),fy(t.current,e)?t.current:e}var VH=typeof window<"u"&&window.document&&window.document.createElement?v.useLayoutEffect:v.useEffect,qH=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:r8.pending}:e;function WH({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:a},unstable__sideEffectsInRender:o,createSelector:i},serializeQueryArgs:s,context:c}){const l=o?e=>e():v.useEffect;return{buildQueryHooks:function(o){const f=(t,{refetchOnReconnect:r,refetchOnFocus:a,refetchOnMountOrArgChange:i,skip:s=!1,pollingInterval:u=0,skipPollingIfUnfocused:f=!1}={})=>{const{initiate:d}=e.endpoints[o],p=n(),h=v.useRef();if(!h.current){const t=p(e.internalActions.internal_getRTKQSubscriptions());h.current=t}const m=t9(s?Bh:t,UH,c.endpointDefinitions[o],o),g=Mx({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:u,skipPollingIfUnfocused:f}),y=v.useRef(!1),b=v.useRef();let{queryCacheKey:_,requestId:w}=b.current||{},k=!1;_&&w&&(k=h.current.isRequestSubscribed(_,w));const x=!k&&y.current;return l((()=>{y.current=k})),l((()=>{x&&(b.current=void 0)}),[x]),l((()=>{var e;const t=b.current;if(m===Bh)return null==t||t.unsubscribe(),void(b.current=void 0);const n=null==(e=b.current)?void 0:e.subscriptionOptions;if(t&&t.arg===m)g!==n&&t.updateSubscriptionOptions(g);else{null==t||t.unsubscribe();const e=p(d(m,{subscriptionOptions:g,forceRefetch:i}));b.current=e}}),[p,d,i,m,g,x]),v.useEffect((()=>()=>{var e;null==(e=b.current)||e.unsubscribe(),b.current=void 0}),[]),v.useMemo((()=>({refetch:()=>{var e;if(!b.current)throw new Error(Na(38));return null==(e=b.current)?void 0:e.refetch()}})),[])},d=({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:i=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:c}=e.endpoints[o],u=n(),[f,d]=v.useState(zx),p=v.useRef(),h=Mx({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:i,skipPollingIfUnfocused:s});l((()=>{var e,t;const n=null==(e=p.current)?void 0:e.subscriptionOptions;h!==n&&(null==(t=p.current)||t.updateSubscriptionOptions(h))}),[h]);const m=v.useRef(h);l((()=>{m.current=h}),[h]);const g=v.useCallback((function(e,n=!1){let r;return t((()=>{var t;null==(t=p.current)||t.unsubscribe(),p.current=r=u(c(e,{subscriptionOptions:m.current,forceRefetch:!n})),d(e)})),r}),[u,c]);return v.useEffect((()=>()=>{var e;null==(e=null==p?void 0:p.current)||e.unsubscribe()}),[]),v.useEffect((()=>{f!==zx&&!p.current&&g(f,!0)}),[f,g]),v.useMemo((()=>[g,f]),[g,f])},p=(t,{skip:n=!1,selectFromResult:l}={})=>{const{select:f}=e.endpoints[o],d=t9(n?Bh:t,s,c.endpointDefinitions[o],o),p=v.useRef(),h=v.useMemo((()=>i([f(d),(e,t)=>t,e=>d],u,{memoizeOptions:{resultEqualityCheck:fy}})),[f,d]),m=v.useMemo((()=>l?i([h],l,{devModeChecks:{identityFunctionCheck:"never"}}):h),[h,l]),g=r((e=>m(e,p.current)),fy),y=a(),b=h(y.getState(),p.current);return VH((()=>{p.current=b}),[b]),g};return{useQueryState:p,useQuerySubscription:f,useLazyQuerySubscription:d,useLazyQuery(e){const[t,n]=d(e),r=p(n,{...e,skip:n===zx}),a=v.useMemo((()=>({lastArg:n})),[n]);return v.useMemo((()=>[t,r,a]),[t,r,a])},useQuery(e,t){const n=f(e,t),r=p(e,{selectFromResult:e===Bh||null!=t&&t.skip?void 0:qH,...t}),{data:a,status:o,isLoading:i,isSuccess:s,isError:c,error:l}=r;return v.useDebugValue({data:a,status:o,isLoading:i,isSuccess:s,isError:c,error:l}),v.useMemo((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(a){return({selectFromResult:o,fixedCacheKey:s}={})=>{const{select:c,initiate:l}=e.endpoints[a],u=n(),[f,d]=v.useState();v.useEffect((()=>()=>{null!=f&&f.arg.fixedCacheKey||null==f||f.reset()}),[f]);const p=v.useCallback((function(e){const t=u(l(e,{fixedCacheKey:s}));return d(t),t}),[u,l,s]),{requestId:h}=f||{},m=v.useMemo((()=>c({fixedCacheKey:s,requestId:null==f?void 0:f.requestId})),[s,f,c]),g=v.useMemo((()=>o?i([m],o):m),[o,m]),y=r(g,fy),b=null==s?null==f?void 0:f.arg.originalArgs:void 0,_=v.useCallback((()=>{t((()=>{f&&d(void 0),s&&u(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:s}))}))}),[u,s,f,h]),{endpointName:w,data:k,status:x,isLoading:S,isSuccess:E,isError:A,error:C}=y;v.useDebugValue({endpointName:w,data:k,status:x,isLoading:S,isSuccess:E,isError:A,error:C});const z=v.useMemo((()=>({...y,originalArgs:b,reset:_})),[y,b,_]);return v.useMemo((()=>[p,z]),[p,z])}},usePrefetch:function(t,r){const a=n(),o=Mx(r);return v.useCallback(((n,r)=>a(e.util.prefetch(t,n,{...o,...r}))),[t,a,o])}};function u(e,t,n){if(null!=t&&t.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=c.endpointDefinitions[e];s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:null==t?void 0:t.data;void 0===r&&(r=e.data);const a=void 0!==r,o=e.isLoading,i=!a&&o,l=e.isSuccess||o&&a;return{...e,data:r,currentData:e.data,isFetching:o,isLoading:i,isSuccess:l}}}var HH=Symbol(),GH=({batch:e=jH,hooks:t={useDispatch:g_,useSelector:Tc,useStore:p8},createSelector:n=io,unstable__sideEffectsInRender:r=!1,...a}={})=>({name:HH,init(a,{serializeQueryArgs:o},i){const s=a,{buildQueryHooks:c,buildMutationHook:l,usePrefetch:u}=WH({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:o,context:i});return xv(s,{usePrefetch:u}),xv(i,{batch:e}),{injectEndpoint(e,t){if(BH(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}=c(e);xv(s.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}),a[`use${Ox(e)}Query`]=t,a[`useLazy${Ox(e)}Query`]=n}else if(FH(t)){const t=l(e);xv(s.endpoints[e],{useMutation:t}),a[`use${Ox(e)}Mutation`]=t}}}}}),KH=mH(RH(),GH());const RR="auth_token",h8=()=>localStorage.getItem(RR)||void 0,QH=e=>localStorage.setItem(RR,e),YH=()=>localStorage.removeItem(RR),ZH=()=>!!h8(),Xh={getToken:h8,setToken:QH,removeToken:YH,hasToken:ZH},XH="remote-ready",m8=Er("reselectUser"),TR=Er("requestLogin"),g8=Er("requestLogout"),JH="host-store-connect",y8=Er("remoteLogin"),AR=Er("remoteLogout"),n9=Er("requestMicroFrontendFetch"),eG=Er("sendMicroFrontendFetchResponse"),tG=e=>{Xh.removeToken(),e(AR())},nG=e=>async(t,n,r)=>{const a=await e(t,n,r);return a.error&&[401].includes(a.error.status)&&tG(n.dispatch),a},rG=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},aG=5,oG=e=>t=>!!e&&t.includes(e.status),r9=e=>new Promise((t=>setTimeout(t,1e3*e))),iG=e=>async(t,n,r)=>{const a=(null==r?void 0:r.maxRetries)??5;await rG((()=>n.getState().network.isOnline));let o=0;const i=async()=>{var s,c,l,u;const f=await e(t,n,r),d=f.error;if(o>=a)return f;o>0&&await r9(Math.pow(2,o)),o++;const p=oG(d);switch(!0){case"mutation"===n.type:return f;case!navigator.onLine:case p([408,404]):case d&&"FETCH_ERROR"===(null==d?void 0:d.status):case d&&d.status>=500:return await i();case 429===(null==(s=null==f?void 0:f.error)?void 0:s.status):{const e=null==(u=null==(l=null==(c=f.meta)?void 0:c.response)?void 0:l.headers)?void 0:u.get("Retry-After");return await r9(+(e||"0")),await i()}default:return f}};return await i()};var Ib=(e=>(e.SERVER_RULES="serverRules",e.EVENT_ATTENDEES="eventAttendees",e))(Ib||{});const IR=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,uy="8.48.0",Co=globalThis;function Rw(e,t,n){const r=Co,a=r.__SENTRY__=r.__SENTRY__||{},o=a[uy]=a[uy]||{};return o[e]||(o[e]=t())}const y_=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,sG="Sentry Logger ",a9=["debug","info","warn","error","log","assert","trace"],o9={};function $R(e){if(!("console"in Co))return e();const t=Co.console,n={},r=Object.keys(o9);r.forEach((e=>{const r=o9[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function cG(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return y_?a9.forEach((n=>{t[n]=(...t)=>{e&&$R((()=>{Co.console[n](`${sG}[${n}]:`,...t)}))}})):a9.forEach((e=>{t[e]=()=>{}})),t}const Go=Rw("logger",cG),Dx="<anonymous>";function ru(e){try{return e&&"function"==typeof e&&e.name||Dx}catch{return Dx}}function i9(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch{return}}}const db={},s9={};function _8(e,t){db[e]=db[e]||[],db[e].push(t)}function v8(e,t){if(!s9[e]){s9[e]=!0;try{t()}catch(t){y_&&Go.error(`Error while instrumenting ${e}`,t)}}}function q4(e,t){const n=e&&db[e];if(n)for(const r of n)try{r(t)}catch(t){y_&&Go.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ru(r)}\nError:`,t)}}function __(){return PR(Co),Co}function PR(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||uy,t[uy]=t[uy]||{}}const b8=Object.prototype.toString;function lG(e){switch(b8.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Tw(e,Error)}}function OR(e,t){return b8.call(e)===`[object ${t}]`}function $b(e){return OR(e,"String")}function zR(e){return OR(e,"Object")}function fG(e){return typeof Event<"u"&&Tw(e,Event)}function uG(e){return typeof Element<"u"&&Tw(e,Element)}function dG(e){return OR(e,"RegExp")}function MR(e){return!(!e||!e.then||"function"!=typeof e.then)}function pG(e){return zR(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Tw(e,t){try{return e instanceof t}catch{return!1}}function hG(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const w8=Co,mG=80;function DR(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,a=[];let o=0,i=0;const s=" > ",c=s.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++<r&&(l=gG(n,u),!("html"===l||o>1&&i+a.length*c+l.length>=f));)a.push(l),i+=l.length,n=n.parentNode;return a.reverse().join(s)}catch{return"<unknown>"}}function gG(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(w8.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const a=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(a&&a.length)a.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&$b(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const o=["aria-label","type","name","title","alt"];for(const e of o){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function yG(){try{return w8.document.location.href}catch{return""}}function Nx(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function _G(e,t,n=!1){return!!$b(e)&&(dG(t)?t.test(e):!!$b(t)&&(n?e===t:e.includes(t)))}function vG(e,t=[],n=!1){return t.some((t=>_G(e,t,n)))}function Is(e,t,n){if(!(t in e))return;const r=e[t],a=n(r);"function"==typeof a&&k8(a,r);try{e[t]=a}catch{y_&&Go.log(`Failed to replace method "${t}" in object`,e)}}function Oy(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{y_&&Go.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function k8(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Oy(e,"__sentry_original__",t)}catch{}}function x8(e){return e.__sentry_original__}function bG(e){if(lG(e))return{message:e.message,name:e.name,stack:e.stack,...l9(e)};if(fG(e)){const t={type:e.type,target:c9(e.target),currentTarget:c9(e.currentTarget),...l9(e)};return typeof CustomEvent<"u"&&Tw(e,CustomEvent)&&(t.detail=e.detail),t}return e}function c9(e){try{return uG(e)?DR(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function l9(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function vc(e){return W4(e,new Map)}function W4(e,t){if(wG(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.getOwnPropertyNames(e))typeof e[n]<"u"&&(r[n]=W4(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(W4(e,t))})),r}return e}function wG(e){if(!zR(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}const S8=1e3;function Aw(){return Date.now()/S8}function kG(){const{performance:e}=Co;if(!e||!e.now)return Aw;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/S8}const E8=kG(),xG=(()=>{const{performance:e}=Co;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=a<t,i=e.timing&&e.timing.navigationStart,s="number"==typeof i?Math.abs(i+n-r):t;return o||s<t?a<=s?e.timeOrigin:i:r})();function Jf(){const e=Co,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function SG(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function EG(e,t,n){const r=e.exception=e.exception||{},a=r.values=r.values||[],o=a[0]=a[0]||{};o.value||(o.value=""),o.type||(o.type="Error")}function C8(e,t){const n=SG(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}var Gf;function f9(e){return new Xf((t=>{t(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(Gf||(Gf={}));class Xf{constructor(e){Xf.prototype.__init.call(this),Xf.prototype.__init2.call(this),Xf.prototype.__init3.call(this),Xf.prototype.__init4.call(this),this._state=Gf.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Xf(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Xf(((t,n)=>{let r,a;return this.then((t=>{a=!1,r=t,e&&e()}),(t=>{a=!0,r=t,e&&e()})).then((()=>{a?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(Gf.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Gf.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===Gf.PENDING){if(MR(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Gf.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Gf.RESOLVED&&e[1](this._value),this._state===Gf.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function CG(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||E8(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Jf()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function u9(){return Jf()}function H4(){return Jf().substring(16)}function Iw(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Iw(r[e],t[e],n-1));return r}const G4="_sentrySpan";function d9(e,t){t?Oy(e,G4,t):delete e[G4]}function K4(e){return e[G4]}const RG=100;class NR{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:u9(),spanId:H4()}}clone(){const e=new NR;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,d9(e,K4(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&CG(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof Jh?[t.getScopeData(),t.getRequestSession()]:zR(t)?[e,e.requestSession]:[],{tags:a,extra:o,user:i,contexts:s,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,d9(this,void 0),this._attachments=[],this.setPropagationContext({traceId:u9()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:RG;if(n<=0)return this;const r={timestamp:Aw(),...e},a=this._breadcrumbs;return a.push(r),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:K4(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Iw(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:H4(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Jf();if(!this._client)return Go.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Jf();if(!this._client)return Go.warn("No client configured on scope - will not capture message!"),r;const a=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Jf();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Go.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const Jh=NR;function TG(){return Rw("defaultCurrentScope",(()=>new Jh))}function AG(){return Rw("defaultIsolationScope",(()=>new Jh))}class IG{constructor(e,t){let n,r;n=e||new Jh,r=t||new Jh,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return MR(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function s1(){const e=PR(__());return e.stack=e.stack||new IG(TG(),AG())}function $G(e){return s1().withScope(e)}function PG(e,t){const n=s1();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function p9(e){return s1().withScope((()=>e(s1().getIsolationScope())))}function OG(){return{withIsolationScope:p9,withScope:$G,withSetScope:PG,withSetIsolationScope:(e,t)=>p9(t),getCurrentScope:()=>s1().getScope(),getIsolationScope:()=>s1().getIsolationScope()}}function $w(e){const t=PR(e);return t.acs?t.acs:OG()}function E1(){return $w(__()).getCurrentScope()}function v_(){return $w(__()).getIsolationScope()}function zG(){return Rw("globalScope",(()=>new Jh))}function MG(...e){const t=$w(__());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function Nl(){return E1().getClient()}const DG="_sentryMetrics";function NG(e){const t=e[DG];if(!t)return;const n={};for(const[,[e,r]]of t)(n[e]||(n[e]=[])).push(vc(r));return n}const R8="sentry.source",LG="sentry.sample_rate",jG="sentry.op",BG="sentry.origin",FG=0,UG=1,VG="sentry-",qG=/^sentry-/;function WG(e){const t=HG(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(qG)){e[t.slice(7)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function HG(e){if(e&&($b(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=h9(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):h9(e)}function h9(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}const GG=1;function KG(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return vc({parent_span_id:r?t:zy(e).parent_span_id,span_id:r?H4():t,trace_id:n})}function m9(e){return"number"==typeof e?g9(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?g9(e.getTime()):E8()}function g9(e){return e>9999999999?e/1e3:e}function zy(e){if(YG(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(QG(e)){const{attributes:r,startTime:a,name:o,endTime:i,parentSpanId:s,status:c}=e;return vc({span_id:t,trace_id:n,data:r,description:o,parent_span_id:s,start_timestamp:m9(a),timestamp:m9(i)||void 0,status:XG(c),op:r[jG],origin:r[BG],_metrics_summary:NG(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function QG(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function YG(e){return"function"==typeof e.getSpanJSON}function ZG(e){const{traceFlags:t}=e.spanContext();return 1===t}function XG(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const JG="_sentryRootSpan";function LR(e){return e[JG]||e}function T8(){const e=$w(__());return e.getActiveSpan?e.getActiveSpan():K4(E1())}function eK(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Nl(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const A8="production",tK="_frozenDsc";function nK(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},a=vc({environment:n.environment||A8,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",a),a}function I8(e){const t=Nl();if(!t)return{};const n=LR(e),r=n[tK];if(r)return r;const a=n.spanContext().traceState,o=a&&a.get("sentry.dsc"),i=o&&WG(o);if(i)return i;const s=nK(e.spanContext().traceId,t),c=zy(n),l=c.data||{},u=l[LG];null!=u&&(s.sample_rate=`${u}`);const f=l[R8],d=c.description;return"url"!==f&&d&&(s.transaction=d),eK()&&(s.sampled=String(ZG(n))),t.emit("createDsc",s,n),s}function y9(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;IR&&Go.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}function rK(e,t=!1){const{host:n,path:r,pass:a,port:o,projectId:i,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&a?`:${a}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function aK(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}function Kf(e,t=100,n=1/0){try{return Q4("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Q4(e,t,n=1/0,r=1/0,a=aK()){const[o,i]=a;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const s=oK(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return s.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return Q4("",l.toJSON(),c-1,r,a)}catch{}const u=Array.isArray(t)?[]:{};let f=0;const d=bG(t);for(const e in d){if(!Object.prototype.hasOwnProperty.call(d,e))continue;if(f>=r){u[e]="[MaxProperties ~]";break}const t=d[e];u[e]=Q4(e,t,c-1,r,a),f++}return i(t),u}function oK(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(hG(t))return"[VueViewModel]";if(pG(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${ru(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=iK(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function iK(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function sK(e,t=[]){return[e,t]}function cK(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function lK(e,t,n,r){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:rK(r)},...a&&{trace:vc({...a})}}}function Y4(e,t,n,r=0){return new Xf(((a,o)=>{const i=e[r];if(null===t||"function"!=typeof i)a(t);else{const s=i({...t},n);IR&&i.id&&null===s&&Go.log(`Event processor "${i.id}" dropped event`),MR(s)?s.then((t=>Y4(e,t,n,r+1).then(a))).then(null,o):Y4(e,s,n,r+1).then(a).then(null,o)}}))}let Sv,_9,Ev;function fK(e){const t=Co._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Ev&&n.length===_9||(_9=n.length,Ev=n.reduce(((n,r)=>{Sv||(Sv={});const a=Sv[r];if(a)n[a[0]]=a[1];else{const a=e(r);for(let e=a.length-1;e>=0;e--){const o=a[e],i=o&&o.filename,s=t[r];if(i&&s){n[i]=s,Sv[r]=[i,s];break}}}return n}),{})),Ev}function uK(e,t){const{fingerprint:n,span:r,breadcrumbs:a,sdkProcessingMetadata:o}=t;dK(e,t),r&&mK(e,r),gK(e,n),pK(e,a),hK(e,o)}function v9(e,t){const{extra:n,tags:r,user:a,contexts:o,level:i,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:f,propagationContext:d,transactionName:p,span:h}=t;Cv(e,"extra",n),Cv(e,"tags",r),Cv(e,"user",a),Cv(e,"contexts",o),e.sdkProcessingMetadata=Iw(e.sdkProcessingMetadata,s,2),i&&(e.level=i),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...d}}function Cv(e,t,n){e[t]=Iw(e[t],n,1)}function dK(e,t){const{extra:n,tags:r,user:a,contexts:o,level:i,transactionName:s}=t,c=vc(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=vc(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=vc(a);u&&Object.keys(u).length&&(e.user={...u,...e.user});const f=vc(o);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),i&&(e.level=i),s&&"transaction"!==e.type&&(e.transaction=s)}function pK(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function hK(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function mK(e,t){e.contexts={trace:KG(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:I8(t),...e.sdkProcessingMetadata};const n=zy(LR(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}function gK(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function yK(e,t,n,r,a,o){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Jf(),timestamp:t.timestamp||Aw()},l=n.integrations||e.integrations.map((e=>e.name));_K(c,e),wK(c,l),a&&a.emit("applyFrameMetadata",t),void 0===t.type&&vK(c,e.stackParser);const u=xK(r,n.captureContext);n.mechanism&&C8(c,n.mechanism);const f=a?a.getEventProcessors():[],d=zG().getScopeData();if(o){v9(d,o.getScopeData())}if(u){v9(d,u.getScopeData())}const p=[...n.attachments||[],...d.attachments];p.length&&(n.attachments=p),uK(c,d);return Y4([...f,...d.eventProcessors],c,n).then((e=>(e&&bK(e),"number"==typeof i&&i>0?kK(e,i,s):e)))}function _K(e,t){const{environment:n,release:r,dist:a,maxValueLength:o=250}=t;e.environment=e.environment||n||A8,!e.release&&r&&(e.release=r),!e.dist&&a&&(e.dist=a),e.message&&(e.message=Nx(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=Nx(i.value,o));const s=e.request;s&&s.url&&(s.url=Nx(s.url,o))}function vK(e,t){const n=fK(t);try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{n&&e.filename&&(e.debug_id=n[e.filename])}))}))}catch{}}function bK(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch{}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}function wK(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function kK(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Kf(e.data,t,n)}})))},...e.user&&{user:Kf(e.user,t,n)},...e.contexts&&{contexts:Kf(e.contexts,t,n)},...e.extra&&{extra:Kf(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Kf(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:Kf(e.data,t,n)}})))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=Kf(e.contexts.flags,3,n)),r}function xK(e,t){if(!t)return e;const n=e?e.clone():new Jh;return n.update(t),n}function jR(e,t){return E1().captureException(e,void 0)}function SK(e,t){const n={captureContext:t};return E1().captureMessage(e,void 0,n)}function EK(e,t){v_().setContext(e,t)}function CK(e,t){v_().setExtra(e,t)}function RK(e){v_().addEventProcessor(e)}const TK=6e4;function AK(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?TK:r-t}function IK(e,t){return e[t]||e.all||0}function $K(e,t,n=Date.now()){return IK(e,t)>n}function PK(e,{statusCode:t,headers:n},r=Date.now()){const a={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const e of o.trim().split(",")){const[t,n,,,o]=e.split(":",5),i=parseInt(t,10),s=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(a[e]=r+s):a[e]=r+s;else a.all=r+s}else i?a.all=r+AK(i,r):429===t&&(a.all=r+6e4);return a}function OK(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return MK(e,n)||zK(e,r)}function zK(e,t){return!!t&&b9(e)===b9(t)}function MK(e,t){return!!t&&e.includes(t.host)}function b9(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const DK=100;function NK(e,t){const n=Nl(),r=v_();if(!n)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:o=DK}=n.getOptions();if(o<=0)return;const i={timestamp:Aw(),...e},s=a?$R((()=>a(i,t))):i;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,o))}function LK(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const jK="Dedupe",BK=()=>{let e;return{name:jK,processEvent(t){if(t.type)return t;try{if(UK(t,e))return IR&&Go.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},FK=BK;function UK(e,t){return!!t&&!(!VK(e,t)&&!qK(e,t))}function VK(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!P8(e,t)||!$8(e,t))}function qK(e,t){const n=w9(t),r=w9(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&P8(e,t)&&$8(e,t))}function $8(e,t){let n=i9(e),r=i9(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],a=n[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function P8(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function w9(e){return e.exception&&e.exception.values&&e.exception.values[0]}function WK(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function HK(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function GK(){return!HK()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function k9(){return typeof window<"u"&&(!GK()||KK())}function KK(){const e=Co.process;return!!e&&"renderer"===e.type}const Rv=Co;function QK(){const e=Rv.chrome,t=e&&e.app&&e.app.runtime,n="history"in Rv&&!!Rv.history.pushState&&!!Rv.history.replaceState;return!t&&n}function YK(e,t){return e??t()}function pb(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const X0=Co;function ZK(){setTimeout((()=>{}))}function c1(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(x8(e))return e}catch{return e}const n=function(...n){try{const r=n.map((e=>c1(e,t)));return e.apply(this,r)}catch(e){throw ZK(),MG((r=>{r.addEventProcessor((e=>(t.mechanism&&(EG(e),C8(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),jR(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}k8(n,e),Oy(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}const O8=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,XK=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",b_=(e,t,n,r)=>{let a,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(a||0),(o||void 0===a)&&(a=t.value,t.delta=o,t.rating=XK(t.value,n),e(t)))}},Xt=Co,JK=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,z8=(e=!0)=>{const t=Xt.performance&&Xt.performance.getEntriesByType&&Xt.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},BR=()=>{const e=z8();return e&&e.activationStart||0},w_=(e,t)=>{const n=z8();let r="navigate";return n&&(Xt.document&&Xt.document.prerendering||BR()>0?r="prerender":Xt.document&&Xt.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:JK(),navigationType:r}},um=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},k_=e=>{const t=t=>{("pagehide"===t.type||Xt.document&&"hidden"===Xt.document.visibilityState)&&e(t)};Xt.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Pw=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let dy=-1;const eQ=()=>"hidden"!==Xt.document.visibilityState||Xt.document.prerendering?1/0:0,Pb=e=>{"hidden"===Xt.document.visibilityState&&dy>-1&&(dy="visibilitychange"===e.type?e.timeStamp:0,nQ())},tQ=()=>{addEventListener("visibilitychange",Pb,!0),addEventListener("prerenderingchange",Pb,!0)},nQ=()=>{removeEventListener("visibilitychange",Pb,!0),removeEventListener("prerenderingchange",Pb,!0)},FR=()=>(Xt.document&&dy<0&&(dy=eQ(),tQ()),{get firstHiddenTime(){return dy}}),Ow=e=>{Xt.document&&Xt.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},rQ=[1800,3e3],aQ=(e,t={})=>{Ow((()=>{const n=FR(),r=w_("FCP");let a;const o=um("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-BR(),0),r.entries.push(e),a(!0)))}))}));o&&(a=b_(e,r,rQ,t.reportAllChanges))}))},oQ=[.1,.25],iQ=(e,t={})=>{aQ(Pw((()=>{const n=w_("CLS",0);let r,a=0,o=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=o[0],n=o[o.length-1];a&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e])}})),a>n.value&&(n.value=a,n.entries=o,r())},s=um("layout-shift",i);s&&(r=b_(e,n,oQ,t.reportAllChanges),k_((()=>{i(s.takeRecords()),r(!0)})),setTimeout(r,0))})))},sQ=[100,300],cQ=(e,t={})=>{Ow((()=>{const n=FR(),r=w_("FID");let a;const o=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),a(!0))},i=e=>{e.forEach(o)},s=um("first-input",i);a=b_(e,r,sQ,t.reportAllChanges),s&&k_(Pw((()=>{i(s.takeRecords()),s.disconnect()})))}))};let M8=0,Lx=1/0,Tv=0;const lQ=e=>{e.forEach((e=>{e.interactionId&&(Lx=Math.min(Lx,e.interactionId),Tv=Math.max(Tv,e.interactionId),M8=Tv?(Tv-Lx)/7+1:0)}))};let Z4;const fQ=()=>Z4?M8:performance.interactionCount||0,uQ=()=>{"interactionCount"in performance||Z4||(Z4=um("event",lQ,{type:"event",buffered:!0,durationThreshold:0}))},Qf=[],jx=new Map,dQ=40;let pQ=0;const hQ=()=>fQ()-pQ,mQ=()=>{const e=Math.min(Qf.length-1,Math.floor(hQ()/50));return Qf[e]},Bx=10,gQ=[],yQ=e=>{if(gQ.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=Qf[Qf.length-1],n=jx.get(e.interactionId);if(n||Qf.length<10||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};jx.set(t.id,t),Qf.push(t)}Qf.sort(((e,t)=>t.latency-e.latency)),Qf.length>10&&Qf.splice(10).forEach((e=>jx.delete(e.id)))}},D8=e=>{const t=Xt.requestIdleCallback||Xt.setTimeout;let n=-1;return e=Pw(e),Xt.document&&"hidden"===Xt.document.visibilityState?e():(n=t(e),k_(e)),n},_Q=[200,500],vQ=(e,t={})=>{"PerformanceEventTiming"in Xt&&"interactionId"in PerformanceEventTiming.prototype&&Ow((()=>{uQ();const n=w_("INP");let r;const a=e=>{D8((()=>{e.forEach(yQ);const t=mQ();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())}))},o=um("event",a,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=b_(e,n,_Q,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),k_((()=>{a(o.takeRecords()),r(!0)})))}))},bQ=[2500,4e3],x9={},wQ=(e,t={})=>{Ow((()=>{const n=FR(),r=w_("LCP");let a;const o=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-BR(),0),r.entries=[e],a())}))},i=um("largest-contentful-paint",o);if(i){a=b_(e,r,bQ,t.reportAllChanges);const n=Pw((()=>{x9[r.id]||(o(i.takeRecords()),i.disconnect(),x9[r.id]=!0,a(!0))}));["keydown","click"].forEach((e=>{Xt.document&&addEventListener(e,(()=>D8(n)),{once:!0,capture:!0})})),k_(n)}}))},py={},Ob={};let N8,L8,j8,B8;function kQ(e,t=!1){return zw("cls",e,RQ,N8,t)}function xQ(e,t=!1){return zw("lcp",e,AQ,j8,t)}function SQ(e){return zw("fid",e,TQ,L8)}function EQ(e){return zw("inp",e,IQ,B8)}function CQ(e,t){return F8(e,t),Ob[e]||($Q(e),Ob[e]=!0),U8(e,t)}function x_(e,t){const n=py[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){O8&&Go.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ru(r)}\nError:`,t)}}function RQ(){return iQ((e=>{x_("cls",{metric:e}),N8=e}),{reportAllChanges:!0})}function TQ(){return cQ((e=>{x_("fid",{metric:e}),L8=e}))}function AQ(){return wQ((e=>{x_("lcp",{metric:e}),j8=e}),{reportAllChanges:!0})}function IQ(){return vQ((e=>{x_("inp",{metric:e}),B8=e}))}function zw(e,t,n,r,a=!1){let o;return F8(e,t),Ob[e]||(o=n(),Ob[e]=!0),r&&t({metric:r}),U8(e,t,a?o:void 0)}function $Q(e){const t={};"event"===e&&(t.durationThreshold=0),um(e,(t=>{x_(e,{entries:t})}),t)}function F8(e,t){py[e]=py[e]||[],py[e].push(t)}function U8(e,t,n){return()=>{n&&n();const r=py[e];if(!r)return;const a=r.indexOf(t);-1!==a&&r.splice(a,1)}}const PQ=1e3;let S9,X4,J4,Av;function OQ(e){_8("dom",e),v8("dom",zQ)}function zQ(){if(!Xt.document)return;const e=q4.bind(null,"dom"),t=E9(e,!0);Xt.document.addEventListener("click",t,!1),Xt.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=Xt[t],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Is(r,"addEventListener",(function(t){return function(n,r,a){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=E9(e);o.handler=r,t.call(this,n,r,a)}o.refCount++}catch{}return t.call(this,n,r,a)}})),Is(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},a=n[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}})))}))}function MQ(e){if(e.type!==X4)return!1;try{if(!e.target||e.target._sentryId!==J4)return!1}catch{}return!0}function DQ(e,t){return"keypress"===e&&(!t||!t.tagName||!("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable))}function E9(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=NQ(n);if(DQ(n.type,r))return;Oy(n,"_sentryCaptured",!0),r&&!r._sentryId&&Oy(r,"_sentryId",Jf());const a="keypress"===n.type?"input":n.type;MQ(n)||(e({event:n,name:a,global:t}),X4=n.type,J4=r?r._sentryId:void 0),clearTimeout(S9),S9=Xt.setTimeout((()=>{J4=void 0,X4=void 0}),PQ)}}function NQ(e){try{return e.target}catch{return null}}function LQ(e){const t="history";_8(t,e),v8(t,jQ)}function jQ(){if(!QK())return;const e=Xt.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Av,t=String(n);Av=t,q4("history",{from:e,to:t})}return e.apply(this,t)}}Xt.onpopstate=function(...t){const n=Xt.location.href,r=Av;if(Av=n,q4("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch{}},Is(Xt.history,"pushState",t),Is(Xt.history,"replaceState",t)}const Fx={};function BQ(e){const t=Fx[e];if(t)return t;let n=Xt[e];if(WK(n))return Fx[e]=n.bind(Xt);const r=Xt.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(t){O8&&Go.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Fx[e]=n.bind(Xt))}function l1(...e){return BQ("setTimeout")(...e)}const FQ="__sentry_xhr_v3__",UQ=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],VQ="BrowserApiErrors",qQ=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:VQ,setupOnce(){t.setTimeout&&Is(X0,"setTimeout",C9),t.setInterval&&Is(X0,"setInterval",C9),t.requestAnimationFrame&&Is(X0,"requestAnimationFrame",HQ),t.XMLHttpRequest&&"XMLHttpRequest"in X0&&Is(XMLHttpRequest.prototype,"send",GQ);const e=t.eventTarget;e&&(Array.isArray(e)?e:UQ).forEach(KQ)}}},WQ=qQ;function C9(e){return function(...t){const n=t[0];return t[0]=c1(n,{mechanism:{data:{function:ru(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function HQ(e){return function(t){return e.apply(this,[c1(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ru(e)},handled:!1,type:"instrument"}})])}}function GQ(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Is(n,e,(function(t){const n={mechanism:{data:{function:e,handler:ru(t)},handled:!1,type:"instrument"}},r=x8(t);return r&&(n.mechanism.data.handler=ru(r)),c1(t,n)}))})),e.apply(this,t)}}function KQ(e){const t=X0[e],n=t&&t.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Is(n,"addEventListener",(function(t){return function(n,r,a){try{QQ(r)&&(r.handleEvent=c1(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ru(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,c1(r,{mechanism:{data:{function:"addEventListener",handler:ru(r),target:e},handled:!1,type:"instrument"}}),a])}})),Is(n,"removeEventListener",(function(e){return function(t,n,r){try{const a=n.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch{}return e.call(this,t,n,r)}})))}function QQ(e){return"function"==typeof e.handleEvent}const Gn=Co,UR="sentryReplaySession",YQ="replay_event",VR="Unable to send Replay",ZQ=3e5,XQ=9e5,JQ=5e3,eY=5500,tY=6e4,nY=5e3,rY=3,R9=15e4,Iv=5e3,aY=3e3,oY=300,qR=2e7,iY=4999,sY=15e3,T9=36e5;function eC(e,t){return e??t()}function My(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}var ba;function cY(e){return e.nodeType===e.ELEMENT_NODE}function hy(e){const t=My([e,"optionalAccess",e=>e.host]);return My([t,"optionalAccess",e=>e.shadowRoot])===e}function my(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function lY(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function fY(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function zb(e){try{const t=e.rules||e.cssRules;return t?lY(Array.from(t,V8).join("")):null}catch{return null}}function uY(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,a=r[n],o=r.getPropertyPriority(a);t+=`${a}:${r.getPropertyValue(a)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function V8(e){let t;if(pY(e))try{t=zb(e.styleSheet)||fY(e)}catch{}else if(hY(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=uY(e)),n&&(t=dY(t)),n||r)return t}return t||e.cssText}function dY(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function pY(e){return"styleSheet"in e}function hY(e){return"selectorText"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ba||(ba={}));class q8{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return eC(My([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),(()=>-1))}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function mY(){return new q8}function Mw({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Dy({isMasked:e,element:t,value:n,maskInputFn:r}){let a=n||"";return e?(r&&(a=r(a,t)),"*".repeat(a.length)):a}function f1(e){return e.toLowerCase()}function tC(e){return e.toUpperCase()}const A9="__rrweb_original__";function gY(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const a=t.getImageData,o=A9 in a?a[A9]:a;if(new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0}function WR(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?f1(t):null}function Mb(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function W8(e,t){let n;try{n=new URL(e,eC(t,(()=>window.location.href)))}catch{return null}return eC(My([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const I9={};function H8(e){const t=I9[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch{}return I9[e]=r.bind(window)}function nC(...e){return H8("setTimeout")(...e)}function G8(...e){return H8("clearTimeout")(...e)}function K8(e){try{return e.contentDocument}catch{}}let yY=1;const _Y=new RegExp("[^a-z0-9-_:]"),Ny=-2;function HR(){return yY++}function vY(e){if(e instanceof HTMLFormElement)return"form";const t=f1(e.tagName);return _Y.test(t)?"div":t}function bY(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}let Mg,$9;const wY=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,kY=/^(?:[a-z+]+:)?\/\//i,xY=/^www\..*/i,SY=/^(data:)([^,]*),(.*)/i;function Db(e,t){return(e||"").replace(wY,((e,n,r,a,o,i)=>{const s=r||o||i,c=n||a||"";if(!s)return e;if(kY.test(s)||xY.test(s))return`url(${c}${s}${c})`;if(SY.test(s))return`url(${c}${s}${c})`;if("/"===s[0])return`url(${c}${bY(t)+s}${c})`;const l=t.split("/"),u=s.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const EY=/^[^ \t\n\r\u000c]+/,CY=/^[, \t\n\r\u000c]+/;function RY(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const a=e.exec(t.substring(n));return a?(r=a[0],n+=r.length,r):""}const a=[];for(;r(CY),!(n>=t.length);){let o=r(EY);if(","===o.slice(-1))o=Kg(e,o.substring(0,o.length-1)),a.push(o);else{let r="";o=Kg(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){a.push((o+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,a.push((o+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return a.join(", ")}const P9=new WeakMap;function Kg(e,t){return t&&""!==t.trim()?Dw(e,t):t}function TY(e){return!("svg"!==e.tagName&&!e.ownerSVGElement)}function Dw(e,t){let n=P9.get(e);if(n||(n=e.createElement("a"),P9.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function Q8(e,t,n,r,a,o){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&("table"===t||"td"===t||"th"===t)?Kg(e,r):"srcset"===n?RY(e,r):"style"===n?Db(r,Dw(e)):"object"===t&&"data"===n?Kg(e,r):"function"==typeof o?o(n,r,a):r)}function Y8(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function AY(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function IY(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Fh(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Fh(e.parentNode,t,n,r+1)}function Qg(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(IY(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function u1(e,t,n,r,a,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,c=-1;if(o){if(c=Fh(i,Qg(r,a)),c<0)return!0;s=Fh(i,Qg(t,n),c>=0?c:1/0)}else{if(s=Fh(i,Qg(t,n)),s<0)return!1;c=Fh(i,Qg(r,a),s>=0?s:1/0)}return s>=0?!(c>=0)||s<=c:!(c>=0)&&!!o}catch{}return!!o}function $Y(e,t,n){const r=e.contentWindow;if(!r)return;let a,o=!1;try{a=r.document.readyState}catch{return}if("complete"!==a){const r=nC((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{G8(r),o=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return nC(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function PY(e,t,n){let r,a=!1;try{r=e.sheet}catch{return}if(r)return;const o=nC((()=>{a||(t(),a=!0)}),n);e.addEventListener("load",(()=>{G8(o),a=!0,t()}))}function OY(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w=!1}=t,k=zY(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:ba.Document,childNodes:[],compatMode:e.compatMode}:{type:ba.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ba.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return DY(e,{doc:n,blockClass:a,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w,rootId:k,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d});case e.TEXT_NODE:return MY(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:k});case e.CDATA_SECTION_NODE:return{type:ba.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:ba.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}function zY(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}function MY(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:a,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,f=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const p="STYLE"===f||void 0,h="SCRIPT"===f||void 0,m="TEXTAREA"===f||void 0;if(p&&d){try{e.nextSibling||e.previousSibling||My([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(d=zb(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=Db(d,Dw(t.doc))}h&&(d="SCRIPT_PLACEHOLDER");const g=u1(e,r,o,a,i,n);if(!p&&!h&&!m&&d&&g&&(d=s?s(d,e.parentElement):d.replace(/[\S]/g,"*")),m&&d&&(c.textarea||g)&&(d=l?l(d,e.parentNode):d.replace(/[\S]/g,"*")),"OPTION"===f&&d){d=Dy({isMasked:u1(e,r,o,a,i,Mw({type:null,tagName:f,maskInputOptions:c})),element:e,value:d,maskInputFn:l})}return{type:ba.Text,textContent:d||"",isStyle:p,rootId:u}}function DY(e,t){const{doc:n,blockClass:r,blockSelector:a,unblockSelector:o,inlineStylesheet:i,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:_}=t,w=AY(e,r,a,o),k=vY(e);let x={};const S=e.attributes.length;for(let t=0;t<S;t++){const r=e.attributes[t];r.name&&!Y8(k,r.name,r.value)&&(x[r.name]=Q8(n,k,f1(r.name),r.value,e,c))}if("link"===k&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=zb(t)),r&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=Db(r,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=zb(e.sheet);t&&(x._cssText=Db(t,Dw(n)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){const t=e,n=WR(t),r=Mb(t,tC(k),n),a=t.checked;if("submit"!==n&&"button"!==n&&r){const e=u1(t,y,b,v,_,Mw({type:n,tagName:tC(k),maskInputOptions:s}));x.value=Dy({isMasked:e,element:t,value:r,maskInputFn:l})}a&&(x.checked=a)}if("option"===k&&(e.selected&&!s.select?x.selected=!0:delete x.selected),"canvas"===k&&d)if("2d"===e.__context)gY(e)||(x.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(u.type,u.quality)&&(x.rr_dataURL=t)}if("img"===k&&f){Mg||(Mg=n.createElement("canvas"),$9=Mg.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",a=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{Mg.width=t.naturalWidth,Mg.height=t.naturalHeight,$9.drawImage(t,0,0),x.rr_dataURL=Mg.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(a?x.crossOrigin=a:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if(("audio"===k||"video"===k)&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),w){const{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${n}px`}}let E;"iframe"===k&&!p(x.src)&&(!w&&!K8(e)&&(x.rr_src=x.src),delete x.src);try{customElements.get(k)&&(E=!0)}catch{}return{type:ba.Element,tagName:k,attributes:x,childNodes:[],isSVG:TY(e)||void 0,needBlock:w,rootId:m,isCustom:E}}function Hn(e){return null==e?"":e.toLowerCase()}function NY(e,t){if(t.comment&&e.type===ba.Comment)return!0;if(e.type===ba.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===W8(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Hn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Hn(e.attributes.name)||"icon"===Hn(e.attributes.rel)||"apple-touch-icon"===Hn(e.attributes.rel)||"shortcut icon"===Hn(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Hn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Hn(e.attributes.property).match(/^(og|twitter|fb):/)||Hn(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Hn(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Hn(e.attributes.name)||"googlebot"===Hn(e.attributes.name)||"bingbot"===Hn(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Hn(e.attributes.name)||"generator"===Hn(e.attributes.name)||"framework"===Hn(e.attributes.name)||"publisher"===Hn(e.attributes.name)||"progid"===Hn(e.attributes.name)||Hn(e.attributes.property).match(/^article:/)||Hn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Hn(e.attributes.name)||"yandex-verification"===Hn(e.attributes.name)||"csrf-token"===Hn(e.attributes.name)||"p:domain_verify"===Hn(e.attributes.name)||"verify-v1"===Hn(e.attributes.name)||"verification"===Hn(e.attributes.name)||"shopify-checkout-api-token"===Hn(e.attributes.name)))return!0}}return!1}function Yg(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:w=!1,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:z=!1}=t;let{preserveWhiteSpace:I=!0}=t;const T=OY(e,{doc:n,mirror:r,blockClass:a,blockSelector:o,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:_,recordCanvas:w,keepIframeSrcFn:C,newlyAddedElement:z});if(!T)return console.warn(e,"not serialized"),null;let R;R=r.hasNode(e)?r.getId(e):NY(T,v)||!I&&T.type===ba.Text&&!T.isStyle&&!T.textContent.replace(/^\s+|\s+$/gm,"").length?-2:HR();const j=Object.assign(T,{id:R});if(r.add(e,j),-2===R)return null;k&&k(e);let P=!d;if(j.type===ba.Element){P=P&&!j.needBlock,delete j.needBlock;const t=e.shadowRoot;t&&my(t)&&(j.isShadowHost=!0)}if((j.type===ba.Document||j.type===ba.Element)&&P){v.headWhitespace&&j.type===ba.Element&&"head"===j.tagName&&(I=!1);const t={doc:n,mirror:r,blockClass:a,blockSelector:o,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:C};for(const n of Array.from(e.childNodes)){const e=Yg(n,t);e&&j.childNodes.push(e)}if(cY(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Yg(n,t);r&&(my(e.shadowRoot)&&(r.isShadow=!0),j.childNodes.push(r))}}return e.parentNode&&hy(e.parentNode)&&my(e.parentNode)&&(j.isShadow=!0),j.type===ba.Element&&"iframe"===j.tagName&&$Y(e,(()=>{const t=K8(e);if(t&&x){const n=Yg(t,{doc:t,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:C});n&&x(e,n)}}),S),j.type===ba.Element&&"link"===j.tagName&&"string"==typeof j.attributes.rel&&("stylesheet"===j.attributes.rel||"preload"===j.attributes.rel&&"string"==typeof j.attributes.href&&"css"===W8(j.attributes.href))&&PY(e,(()=>{if(E){const t=Yg(e,{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:C});t&&E(e,t)}}),A),j}function LY(e,t){const{mirror:n=new q8,blockClass:r="rr-block",blockSelector:a=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:s="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:f=!0,inlineImages:d=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:A=()=>!1}=t;return Yg(e,{doc:e,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,maskAllText:i,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:d,recordCanvas:p,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:A,newlyAddedElement:!1})}function Wd(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function Ho(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const qg="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let O9={map:{},getId:()=>(console.error(qg),-1),getNode:()=>(console.error(qg),null),removeNodeFromMap(){console.error(qg)},has:()=>(console.error(qg),!1),reset(){console.error(qg)}};function Ly(e,t,n={}){let r=null,a=0;return function(...o){const i=Date.now();!a&&!1===n.leading&&(a=i);const s=t-(i-a),c=this;s<=0||s>t?(r&&(WY(r),r=null),a=i,e.apply(c,o)):!r&&!1!==n.trailing&&(r=Nw((()=>{a=!1===n.leading?0:Date.now(),r=null,e.apply(c,o)}),s))}}function Z8(e,t,n,r,a=window){const o=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,r?n:{set(e){Nw((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>Z8(e,t,o||{},!0)}function GR(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],a=n(r);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(O9=new Proxy(O9,{get:(e,t,n)=>("map"===t&&console.error(qg),Reflect.get(e,t,n))}));let Nb=Date.now;function X8(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Wd([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||Wd([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||Wd([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Wd([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||Wd([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||Wd([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function J8(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function e7(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function t7(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Wi(e,t,n,r,a){if(!e)return!1;const o=t7(e);if(!o)return!1;const i=Qg(t,n);if(!a){const e=r&&o.matches(r);return i(o)&&!e}const s=Fh(o,i);let c=-1;return!(s<0)&&(r&&(c=Fh(o,Qg(null,r))),s>-1&&c<0||s<c)}function jY(e,t){return-1!==t.getId(e)}function Ux(e,t){return-2===t.getId(e)}function n7(e,t){if(hy(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||n7(e.parentNode,t))}function rC(e){return!!e.changedTouches}function BY(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}function r7(e,t){return!("IFRAME"!==e.nodeName||!t.getMeta(e))}function a7(e,t){return!("LINK"!==e.nodeName||e.nodeType!==e.ELEMENT_NODE||!e.getAttribute||"stylesheet"!==e.getAttribute("rel")||!t.getMeta(e))}function aC(e){return!!Wd([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(Nb=()=>(new Date).getTime());class FY{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return YK(this.styleIDMap.get(e),(()=>-1))}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function o7(e){let t=null;return Wd([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function UY(e){let t,n=e;for(;t=o7(n);)n=t;return n}function VY(e){const t=e.ownerDocument;if(!t)return!1;const n=UY(e);return t.contains(n)}function i7(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||VY(e))}const z9={};function KR(e){const t=z9[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch{}return z9[e]=r.bind(window)}function qY(...e){return KR("requestAnimationFrame")(...e)}function Nw(...e){return KR("setTimeout")(...e)}function WY(...e){return KR("clearTimeout")(...e)}var M9,D9,Vt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Vt||{}),$t=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))($t||{}),Wo=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Wo||{}),Wf=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Wf||{});function QR(e){try{return e.contentDocument}catch{}}function HY(e){try{return e.contentWindow}catch{}}function GY(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function N9(e){return"__ln"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(M9||(M9={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(D9||(D9={}));class KY{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=GY([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&N9(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&N9(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const L9=(e,t)=>`${e}@${t}`;class QY{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new KY,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},a=a=>{if(!a.parentNode||!i7(a))return;const o=hy(a.parentNode)?this.mirror.getId(o7(a)):this.mirror.getId(a.parentNode),i=r(a);if(-1===o||-1===i)return n.addNode(a);const s=Yg(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{r7(e,this.mirror)&&!Wi(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),a7(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),aC(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{Wi(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:i,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)j9(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||a(e);for(const e of this.addedSet)!B9(this.droppedSet,e)&&!j9(this.removes,e,this.mirror)||B9(this.movedSet,e)?a(e):this.droppedSet.add(e);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),a(e.value)}const i={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};!i.texts.length&&!i.attributes.length&&!i.removes.length&&!i.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!Ux(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;!Wi(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:u1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,t7(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=WR(t),a=t.tagName;r=Mb(t,a,n);const o=Mw({maskInputOptions:this.maskInputOptions,tagName:a,type:n});r=Dy({isMasked:u1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(Wi(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let a=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(QR(t))return;n="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Y8(t.tagName,n)&&(a.attributes[n]=Q8(this.doc,f1(t.tagName),f1(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?a.styleDiff[e]=""===o?r:[r,o]:a._unchangedStyles[e]=[r,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(Wi(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=hy(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Wi(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ux(t,this.mirror)||!jY(t,this.mirror)||(this.addedSet.has(t)?(oC(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||n7(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[L9(n,r)]?oC(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!hy(e.target)||!my(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Ux(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[L9(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Wi(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),aC(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function oC(e,t){e.delete(t),t.childNodes.forEach((t=>oC(e,t)))}function j9(e,t,n){return 0!==e.length&&YY(e,t,n)}function YY(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some((e=>e.id===t)))return!0;r=r.parentNode}return!1}function B9(e,t){return 0!==e.size&&s7(e,t)}function s7(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||s7(e,n))}let gy;function ZY(e){gy=e}function XY(){gy=void 0}const on=e=>gy?(...t)=>{try{return e(...t)}catch(e){if(gy&&!0===gy(e))return()=>{};throw e}}:e;function _c(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const Zg=[];function S_(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function c7(e,t){const n=new QY;Zg.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const a=_c([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);a&&window[a]&&(r=window[a]);const o=new r(on((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function JY({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const a="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,s=[];const c=Ly(on((t=>{const n=Date.now()-i;e(s.map((e=>(e.timeOffset-=n,e))),t),s=[],i=null})),o),l=on(Ly(on((e=>{const t=S_(e),{clientX:n,clientY:a}=rC(e)?e.changedTouches[0]:e;i||(i=Nb()),s.push({x:n,y:a,id:r.getId(t),timeOffset:Nb()-i}),c(typeof DragEvent<"u"&&e instanceof DragEvent?$t.Drag:e instanceof MouseEvent?$t.MouseMove:$t.TouchMove)})),a,{trailing:!1})),u=[Ho("mousemove",l,n),Ho("touchmove",l,n),Ho("drag",l,n)];return on((()=>{u.forEach((e=>e()))}))}function eZ({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const s=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let l=null;return Object.keys(Wo).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((i=>{let s=f1(i);const u=(t=>i=>{const s=S_(i);if(Wi(s,r,a,o,!0))return;let c=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=Wf.Mouse;break;case"touch":c=Wf.Touch;break;case"pen":c=Wf.Pen}c===Wf.Touch?Wo[t]===Wo.MouseDown?u="TouchStart":Wo[t]===Wo.MouseUp&&(u="TouchEnd"):Wf.Pen}else rC(i)&&(c=Wf.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===Wf.Touch||u.startsWith("Mouse")&&c===Wf.Mouse)&&(c=null)):Wo[t]===Wo.Click&&(c=l,l=null);const f=rC(i)?i.changedTouches[0]:i;if(!f)return;const d=n.getId(s),{clientX:p,clientY:h}=f;on(e)({type:Wo[u],id:d,x:p,y:h,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(Wo[i]){case Wo.MouseDown:case Wo.MouseUp:s=s.replace("mouse","pointer");break;case Wo.TouchStart:case Wo.TouchEnd:return}c.push(Ho(s,u,t))})),on((()=>{c.forEach((e=>e()))}))}function l7({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,sampling:i}){return Ho("scroll",on(Ly(on((i=>{const s=S_(i);if(!s||Wi(s,r,a,o,!0))return;const c=n.getId(s);if(s===t&&t.defaultView){const n=X8(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})})),i.scroll||100)),t)}function tZ({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Ho("resize",on(Ly(on((()=>{const t=J8(),a=e7();(n!==t||r!==a)&&(e({width:Number(a),height:Number(t)}),n=t,r=a)})),200)),t)}const nZ=["INPUT","TEXTAREA","SELECT"],F9=new WeakMap;function rZ({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,ignoreClass:i,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:f,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=S_(e);const u=e.isTrusted,g=n&&tC(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||nZ.indexOf(g)<0||Wi(n,r,a,o,!0))return;const v=n;if(v.classList.contains(i)||s&&v.matches(s))return;const b=WR(n);let _=Mb(v,g,b),w=!1;const k=Mw({maskInputOptions:c,tagName:g,type:b}),x=u1(n,d,h,p,m,k);("radio"===b||"checkbox"===b)&&(w=n.checked),_=Dy({isMasked:x,element:n,value:_,maskInputFn:l}),y(n,f?{text:_,isChecked:w,userTriggered:u}:{text:_,isChecked:w});const S=n.name;"radio"===b&&S&&w&&t.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach((e=>{if(e!==n){const t=Dy({isMasked:x,element:e,value:Mb(e,g,b),maskInputFn:l});y(e,f?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}}))}function y(t,r){const a=F9.get(t);if(!a||a.text!==r.text||a.isChecked!==r.isChecked){F9.set(t,r);const a=n.getId(t);on(e)({...r,id:a})}}const v=("last"===u.input?["change"]:["input","change"]).map((e=>Ho(e,on(g),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...w.map((e=>Z8(e[0],e[1],{set(){on(g)({target:this,isTrusted:!1})}},!1,b)))),on((()=>{v.forEach((e=>e()))}))}function Lb(e){return function(e,t){if($v("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||$v("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||$v("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||$v("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Hd(e,t,n){let r,a;return e?(e.ownerNode?r=t.getId(e.ownerNode):a=n.getId(e),{styleId:a,id:r}):{}}function aZ({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:on(((r,a,o)=>{const[i,s]=o,{id:c,styleId:l}=Hd(a,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:s}]}),r.apply(a,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let i,s;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:on(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=Hd(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:i}]}),r.apply(a,o)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:on(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=Hd(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replace:i}),r.apply(a,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:on(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=Hd(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replaceSync:i}),r.apply(a,o)}))}));const c={};Pv("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Pv("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Pv("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Pv("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach((([r,a])=>{l[r]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(l[r].insertRule,{apply:on(((r,a,o)=>{const[i,s]=o,{id:c,styleId:l}=Hd(a.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...Lb(a),s||0]}]}),r.apply(a,o)}))}),a.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:on(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=Hd(a.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:[...Lb(a),i]}]}),r.apply(a,o)}))})})),on((()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}function f7({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const a="#document"===n.nodeName?_c([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):_c([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=_c([a,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(_c([a,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&a&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return _c([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=_c([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch{}return n}}),on((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function oZ({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){const o=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:on(((a,i,s)=>{const[c,l,u]=s;if(n.has(c))return o.apply(i,[c,l,u]);const{id:f,styleId:d}=Hd(_c([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(f&&-1!==f||d&&-1!==d)&&e({id:f,styleId:d,set:{property:c,value:l,priority:u},index:Lb(i.parentRule)}),a.apply(i,s)}))});const i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:on(((a,o,s)=>{const[c]=s;if(n.has(c))return i.apply(o,[c]);const{id:l,styleId:u}=Hd(_c([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:Lb(o.parentRule)}),a.apply(o,s)}))}),on((()=>{a.CSSStyleDeclaration.prototype.setProperty=o,a.CSSStyleDeclaration.prototype.removeProperty=i}))}function iZ({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:a,sampling:o,doc:i}){const s=on((i=>Ly(on((o=>{const s=S_(o);if(!s||Wi(s,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:f}=s;e({type:i,id:a.getId(s),currentTime:c,volume:l,muted:u,playbackRate:f})})),o.media||500))),c=[Ho("play",s(0),i),Ho("pause",s(1),i),Ho("seeked",s(2),i),Ho("volumechange",s(3),i),Ho("ratechange",s(4),i)];return on((()=>{c.forEach((e=>e()))}))}function sZ({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],a=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return a.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=GR(t.fonts,"add",(function(t){return function(n){return Nw(on((()=>{const t=a.get(n);t&&(e(t),a.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(i),on((()=>{r.forEach((e=>e()))}))}function cZ(e){const{doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,selectionCb:i}=e;let s=!0;const c=on((()=>{const e=t.getSelection();if(!e||s&&_c([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:s,startOffset:l,endContainer:u,endOffset:f}=i;Wi(s,r,a,o,!0)||Wi(u,r,a,o,!0)||c.push({start:n.getId(s),startOffset:l,end:n.getId(u),endOffset:f})}i({ranges:c})}));return c(),Ho("selectionchange",c)}function lZ({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?GR(n.customElements,"define",(function(e){return function(n,r,a){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,a])}})):()=>{}}function fZ(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=c7(e,e.doc));const a=JY(e),o=eZ(e),i=l7(e),s=tZ(e,{win:n}),c=rZ(e),l=iZ(e);let u=()=>{},f=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(u=aZ(e,{win:n}),f=f7(e,e.doc),d=oZ(e,{win:n}),e.collectFonts&&(p=sZ(e)));const h=cZ(e),m=lZ(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return on((()=>{Zg.forEach((e=>e.reset())),_c([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),a(),o(),i(),s(),c(),l(),u(),f(),d(),p(),h(),m(),g.forEach((e=>e()))}))}function $v(e){return typeof window[e]<"u"}function Pv(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class iC{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const a=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let i=a.get(t);return i||(i=this.generateIdFn(),a.set(t,i),o.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function U9(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}class uZ{constructor(){this.crossOriginIframeMirror=new iC(HR),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class dZ{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new iC(HR),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new iC(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),U9([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);const n=QR(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin||!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Vt.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Vt.IncrementalSnapshot,data:{source:$t.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Vt.Meta:case Vt.Load:case Vt.DomContentLoaded:return!1;case Vt.Plugin:return t;case Vt.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Vt.IncrementalSnapshot:switch(t.data.source){case $t.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case $t.Drag:case $t.TouchMove:case $t.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case $t.ViewportResize:return!1;case $t.MediaInteraction:case $t.MouseInteraction:case $t.Scroll:case $t.CanvasMutation:case $t.Input:return this.replaceIds(t.data,e,["id"]),t;case $t.StyleSheetRule:case $t.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case $t.Font:return t;case $t.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case $t.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),U9([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const a of r)!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type!==ba.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class pZ{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class hZ{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!my(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=c7({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(l7({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Nw((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(f7({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=QR(e),n=HY(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(GR(e.prototype,"attachShadow",(function(e){return function(r){const a=e.call(this,r);return this.shadowRoot&&i7(this)&&n.addShadowRoot(this.shadowRoot,t),a}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class V9{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class mZ{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new FY,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:V8(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class gZ{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,qY((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Sr,jb;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=pb([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const gc=mY();function eu(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:a="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:f=null,maskTextSelector:d=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,maxCanvasSize:w=null,packFn:k,sampling:x={},dataURLOptions:S={},mousemoveWait:E,recordDOM:A=!0,recordCanvas:C=!1,recordCrossOriginIframes:z=!1,recordAfter:I=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:T=!1,collectFonts:R=!1,inlineImages:j=!1,plugins:P,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:M,onMutation:D,getCanvasManager:B}=e;ZY(M);const L=!z||window.parent===window;let q=!1;if(!L)try{window.parent.document&&(q=!1)}catch{q=!0}if(L&&!t)throw new Error("emit function is required");if(!L&&!q)return()=>{};void 0!==E&&void 0===x.mousemove&&(x.mousemove=E),gc.reset();const V=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},F=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};BY();let U,$=0;const W=e=>{for(const t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!q&&(e=k(e)),e};Sr=(e,a)=>{const o=e;if(o.timestamp=Nb(),pb([Zg,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&o.type!==Vt.FullSnapshot&&!(o.type===Vt.IncrementalSnapshot&&o.data.source===$t.Mutation)&&Zg.forEach((e=>e.unfreeze())),L)pb([t,"optionalCall",e=>e(W(o),a)]);else if(q){const e={type:"rrweb",event:W(o),origin:window.location.origin,isCheckout:a};window.parent.postMessage(e,"*")}if(o.type===Vt.FullSnapshot)U=o,$=0;else if(o.type===Vt.IncrementalSnapshot){if(o.data.source===$t.Mutation&&o.data.isAttachIframe)return;$++;const e=r&&$>=r,t=n&&U&&o.timestamp-U.timestamp>n;(e||t)&&ee(!0)}};const H=e=>{Sr({type:Vt.IncrementalSnapshot,data:{source:$t.Mutation,...e}})},G=e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.Scroll,...e}}),Q=e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.CanvasMutation,...e}}),K=new mZ({mutationCb:H,adoptedStyleSheetCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new uZ:new dZ({mirror:gc,mutationCb:H,stylesheetManager:K,recordCrossOriginIframes:z,wrappedEmit:Sr});for(const e of P||[])e.getMirror&&e.getMirror({nodeMirror:gc,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const Z=new gZ,X=_Z(B,{mirror:gc,win:window,mutationCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.CanvasMutation,...e}}),recordCanvas:C,blockClass:a,blockSelector:o,unblockSelector:i,maxCanvasSize:w,sampling:x.canvas,dataURLOptions:S,errorHandler:M}),J="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new pZ:new hZ({mutationCb:H,scrollCb:G,bypassOptions:{onMutation:D,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:V,dataURLOptions:S,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:C,inlineImages:j,sampling:x,slimDOMOptions:F,iframeManager:Y,stylesheetManager:K,canvasManager:X,keepIframeSrcFn:O,processedNodeManager:Z},mirror:gc}),ee=(e=!1)=>{if(!A)return;Sr({type:Vt.Meta,data:{href:window.location.href,width:e7(),height:J8()}},e),K.reset(),J.init(),Zg.forEach((e=>e.lock()));const t=LY(document,{mirror:gc,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:V,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:F,dataURLOptions:S,recordCanvas:C,inlineImages:j,onSerialize:e=>{r7(e,gc)&&Y.addIframe(e),a7(e,gc)&&K.trackLinkElement(e),aC(e)&&J.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),e.contentWindow&&X.addWindow(e.contentWindow),J.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:O});if(!t)return console.warn("Failed to snapshot the document");Sr({type:Vt.FullSnapshot,data:{node:t,initialOffset:X8(window)}}),Zg.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,gc.getId(document))};jb=ee;try{const e=[],t=e=>on(fZ)({onMutation:D,mutationCb:H,mousemoveCb:(e,t)=>Sr({type:Vt.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.MouseInteraction,...e}}),scrollCb:G,viewportResizeCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.ViewportResize,...e}}),inputCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.Input,...e}}),mediaInteractionCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.MediaInteraction,...e}}),styleSheetRuleCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.StyleSheetRule,...e}}),styleDeclarationCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.Font,...e}}),selectionCb:e=>{Sr({type:Vt.IncrementalSnapshot,data:{source:$t.Selection,...e}})},customElementCb:e=>{Sr({type:Vt.IncrementalSnapshot,data:{source:$t.CustomElement,...e}})},blockClass:a,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,maskInputOptions:V,inlineStylesheet:h,sampling:x,recordDOM:A,recordCanvas:C,inlineImages:j,userTriggeredOnInput:T,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:O,blockSelector:o,unblockSelector:i,slimDOMOptions:F,dataURLOptions:S,mirror:gc,iframeManager:Y,stylesheetManager:K,shadowDomManager:J,processedNodeManager:Z,canvasManager:X,ignoreCSSAttributes:N,plugins:pb([P,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>Sr({type:Vt.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{ee(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Ho("DOMContentLoaded",(()=>{Sr({type:Vt.DomContentLoaded,data:{}}),"DOMContentLoaded"===I&&n()}))),e.push(Ho("load",(()=>{Sr({type:Vt.Load,data:{}}),"load"===I&&n()}),window))),()=>{e.forEach((e=>e())),Z.destroy(),jb=void 0,XY()}}catch(e){console.warn(e)}}function yZ(e){if(!jb)throw new Error("please take full snapshot after start recording");jb(e)}function _Z(e,t){try{return e?e(t):new V9}catch{return console.warn("Unable to initialize CanvasManager"),new V9}}eu.mirror=gc,eu.takeFullSnapshot=yZ;const vZ=3,bZ=5;function YR(e){return e>9999999999?e:1e3*e}function Vx(e){return e>9999999999?e/1e3:e}function E_(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Vt.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:Kf(t,10,1e3)}}),"console"===t.category))))}const wZ="button,a";function u7(e){return e.closest(wZ)||e}function d7(e){const t=p7(e);return t&&t instanceof Element?u7(t):t}function p7(e){return kZ(e)?e.target:e}function kZ(e){return"object"==typeof e&&!!e&&"target"in e}let Gd;function xZ(e){return Gd||(Gd=[],SZ()),Gd.push(e),()=>{const t=Gd?Gd.indexOf(e):-1;t>-1&&Gd.splice(t,1)}}function SZ(){Is(Gn,"open",(function(e){return function(...t){if(Gd)try{Gd.forEach((e=>e()))}catch{}return e.apply(Gn,t)}}))}const EZ=new Set([$t.Mutation,$t.StyleSheetRule,$t.StyleDeclaration,$t.AdoptedStyleSheet,$t.CanvasMutation,$t.Selection,$t.MediaInteraction]);function CZ(e,t,n){e.handleClick(t,n)}class RZ{constructor(e,t,n=E_){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=xZ((()=>{this._lastMutation=q9()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(AZ(t,this._ignoreSelector)||!IZ(e))return;const n={timestamp:Vx(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Vx(e)}registerScroll(e=Date.now()){this._lastScroll=Vx(e)}registerClick(e){const t=u7(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=q9();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,a=!n&&!r,{clickCount:o,clickBreadcrumb:i}=e;if(a){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:Gn.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,a)}else if(o>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:Gn.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=l1((()=>this._checkClicks()),1e3)}}const TZ=["A","BUTTON","INPUT"];function AZ(e,t){return!!(!TZ.includes(e.tagName)||"INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||"A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target"))||t&&e.matches(t))}function IZ(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}function q9(){return Date.now()/1e3}function $Z(e,t){try{if(!PZ(t))return;const{source:n}=t.data;if(EZ.has(n)&&e.registerMutation(t.timestamp),n===$t.Scroll&&e.registerScroll(t.timestamp),OZ(t)){const{type:n,id:r}=t.data,a=eu.mirror.getNode(r);a instanceof HTMLElement&&n===Wo.Click&&e.registerClick(a)}}catch{}}function PZ(e){return 3===e.type}function OZ(e){return e.data.source===$t.MouseInteraction}function Rl(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Bb;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Bb||(Bb={}));const zZ=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function MZ(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(zZ.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}const DZ=e=>t=>{if(!e.isEnabled())return;const n=NZ(t);if(!n)return;const r="click"===t.name,a=r?t.event:void 0;r&&e.clickDetector&&a&&a.target&&!a.altKey&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&CZ(e.clickDetector,n,d7(t.event)),E_(e,n)};function h7(e,t){const n=eu.mirror.getId(e),r=n&&eu.mirror.getNode(n),a=r&&eu.mirror.getMeta(r),o=a&&jZ(a)?a:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===Bb.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:MZ(o.attributes)}}:{}}}function NZ(e){const{target:t,message:n}=LZ(e);return Rl({category:`ui.${e.name}`,...h7(t,n)})}function LZ(e){const t="click"===e.name;let n,r=null;try{r=t?d7(e.event):p7(e.event),n=DR(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function jZ(e){return e.type===Bb.Element}function BZ(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=FZ(t);n&&E_(e,n)}function FZ(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:a,key:o,target:i}=e;if(!i||UZ(i)||!o)return null;const s=t||r||a,c=1===o.length;if(!s&&c)return null;const l=DR(i,{maxStringLength:200})||"<unknown>";return Rl({category:"ui.keyDown",message:l,data:{...h7(i,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:a,key:o}})}function UZ(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}const VZ={resource:KZ,paint:HZ,navigation:GZ};function Ov(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function qZ(e){return e.map(WZ).filter(Boolean)}function WZ(e){const t=VZ[e.entryType];return t?t(e):null}function d1(e){return((xG||Gn.performance.timeOrigin)+e)/1e3}function HZ(e){const{duration:t,entryType:n,name:r,startTime:a}=e,o=d1(a);return{type:n,name:r,start:o,end:o+t,data:void 0}}function GZ(e){const{entryType:t,name:n,decodedBodySize:r,duration:a,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:f,redirectCount:d,startTime:p,transferSize:h,type:m}=e;return 0===a?null:{type:`${t}.${m}`,start:d1(p),end:d1(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:a,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:f,domComplete:o,redirectCount:d}}}function KZ(e){const{entryType:t,initiatorType:n,name:r,responseEnd:a,startTime:o,decodedBodySize:i,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:d1(o),end:d1(a),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:s}}}function QZ(e){const t=e.entries[e.entries.length-1];return Lw(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function YZ(e){return void 0!==e.sources}function ZZ(e){const t=[],n=[];for(const r of e.entries)if(YZ(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=eu.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Lw(e,"cumulative-layout-shift",n,t)}function XZ(e){const t=e.entries[e.entries.length-1];return Lw(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function JZ(e){const t=e.entries[e.entries.length-1];return Lw(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function Lw(e,t,n,r){const a=e.value,o=e.rating,i=d1(a);return{type:"web-vital",name:t,start:i,end:i,data:{value:a,size:a,rating:o,nodeIds:n?n.map((e=>eu.mirror.getId(e))):void 0,attributions:r}}}function eX(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(CQ(e,n))})),r.push(xQ(Ov(QZ,e)),kQ(Ov(ZZ,e)),SQ(Ov(XZ,e)),EQ(Ov(JZ,e))),()=>{r.forEach((e=>e()))}}const Et=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,tX='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function nX(){const e=new Blob([tX]);return URL.createObjectURL(e)}const W9=["info","warn","error","log"],hb="[Replay] ";function qx(e,t="info"){NK({category:"console",data:{logger:"replay"},level:t,message:`${hb}${e}`},{level:t})}function rX(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return Et?(W9.forEach((e=>{n[e]=(...n)=>{Go[e](hb,...n),t&&qx(n.join(""),LK(e))}})),n.exception=(r,...a)=>{a.length&&n.error&&n.error(...a),Go.error(hb,r),e?jR(r):t&&qx(r,"error")},n.infoTick=(...e)=>{Go.info(hb,...e),t&&setTimeout((()=>qx(e[0])),0)}):W9.forEach((e=>{n[e]=()=>{}})),n}const Tt=rX();class ZR extends Error{constructor(){super(`Event buffer exceeded maximum size of ${qR}.`)}}class m7{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>qR)throw new ZR;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?YR(e):null}}class aX{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Et&&Tt.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,a)=>{const o=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",o),!i.success)return Et&&Tt.error("Error in compression worker: ",i.response),void a(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class oX{constructor(e){this._worker=new aX(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=YR(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>qR?Promise.reject(new ZR):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Et&&Tt.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class iX{constructor(e){this._fallback=new m7,this._compression=new oX(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Et&&Tt.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){Et&&Tt.exception(e,"Failed to add events when switching buffers.")}}}function sX({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=cX(t);if(e)return e}return Et&&Tt.info("Using simple buffer"),new m7}function cX(e){try{const t=e||lX();if(!t)return;Et&&Tt.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new iX(n)}catch(e){Et&&Tt.exception(e,"Failed to create compression worker")}}function lX(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?nX():""}function XR(){try{return"sessionStorage"in Gn&&!!Gn.sessionStorage}catch{return!1}}function fX(e){uX(),e.session=void 0}function uX(){if(XR())try{Gn.sessionStorage.removeItem(UR)}catch{}}function g7(e){return void 0!==e&&Math.random()<e}function y7(e){const t=Date.now();return{id:e.id||Jf(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function JR(e){if(XR())try{Gn.sessionStorage.setItem(UR,JSON.stringify(e))}catch{}}function dX(e,t){return g7(e)?"session":!!t&&"buffer"}function H9({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const a=y7({sampled:dX(e,t),previousSessionId:r});return n&&JR(a),a}function pX(){if(!XR())return null;try{const e=Gn.sessionStorage.getItem(UR);if(!e)return null;const t=JSON.parse(e);return Et&&Tt.infoTick("Loading existing session"),y7(t)}catch{return null}}function sC(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function _7(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return sC(e.started,t,r)||sC(e.lastActivity,n,r)}function v7(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!_7(e,{sessionIdleExpire:t,maxReplayDuration:n})||"buffer"===e.sampled&&0===e.segmentId)}function Wx({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const a=r.stickySession&&pX();return a?v7(a,{sessionIdleExpire:e,maxReplayDuration:t})?(Et&&Tt.infoTick("Session in sessionStorage is expired, creating new one..."),H9(r,{previousSessionId:a.id})):a:(Et&&Tt.infoTick("Creating new session"),H9(r,{previousSessionId:n}))}function hX(e){return e.type===Vt.Custom}function eT(e,t,n){return!!w7(e,t)&&(b7(e,t,n),!0)}function mX(e,t,n){return w7(e,t)?b7(e,t,n):Promise.resolve(null)}async function b7(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const a="buffer"===e.recordingMode;try{n&&a&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=gX(t,e.getOptions().beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(t){const n=t&&t instanceof ZR,o=n?"addEventSizeExceeded":"addEvent";if(n&&a)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o});const i=Nl();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function w7(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=YR(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Et&&Tt.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function gX(e,t){try{if("function"==typeof t&&hX(e))return t(e)}catch(e){return Et&&Tt.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function tT(e){return!e.type}function cC(e){return"transaction"===e.type}function yX(e){return"replay_event"===e.type}function G9(e){return"feedback"===e.type}function _X(e){return(t,n)=>{if(!e.isEnabled()||!tT(t)&&!cC(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(cC(t))return void vX(e,t);bX(e,t)}}}function vX(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function bX(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();"function"==typeof r&&!r(t)||l1((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}function wX(e){return t=>{!e.isEnabled()||!tT(t)||kX(e,t)}}function kX(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){E_(e,Rl({category:"replay.hydrate-error",data:{url:yG()}}))}}function xX(e){const t=Nl();t&&t.on("beforeAddBreadcrumb",(t=>SX(e,t)))}function SX(e,t){if(!e.isEnabled()||!k7(t))return;const n=EX(t);n&&E_(e,n)}function EX(e){return!k7(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?CX(e):Rl(e)}function CX(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Rl(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Iv?(n=!0,`${e.slice(0,Iv)}…`):e;if("object"==typeof e)try{const t=Kf(e,7);return JSON.stringify(t).length>Iv?(n=!0,`${JSON.stringify(t,null,2).slice(0,Iv)}…`):t}catch{}return e}));return Rl({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function k7(e){return!!e.category}function RX(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}function x7(){const e=E1().getPropagationContext().dsc;e&&delete e.replay_id;const t=T8();if(t){delete I8(t).replay_id}}function TX(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Vt.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}function AX(e,t){return!("buffer"!==e.recordingMode||t.message===VR||!t.exception||t.type)&&g7(e.getOptions().errorSampleRate)}function IX(e){return Object.assign(((t,n)=>!e.isEnabled()||e.isPaused()?t:yX(t)?(delete t.breadcrumbs,t):tT(t)||cC(t)||G9(t)?e.checkAndHandleExpiredSession()?G9(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),TX(e,t),t):RX(t,n)&&!e.getOptions()._experiments.captureExceptions?(Et&&Tt.log("Ignoring error from rrweb internals",t),null):((AX(e,t)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(x7(),t):t),{id:"Replay"})}function jw(e,t){return t.map((({type:t,start:n,end:r,name:a,data:o})=>{const i=e.throttledAddEvent({type:Vt.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof i?Promise.resolve(null):i}))}function $X(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function PX(e){return t=>{if(!e.isEnabled())return;const n=$X(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(jw(e,[n]),!1))))}}function OX(e,t){return(!Et||!e.getOptions()._experiments.traceInternals)&&OK(t,Nl())}function S7(e,t){e.isEnabled()&&null!==t&&(OX(e,t.name)||e.addUpdate((()=>(jw(e,[t]),!0))))}function Bw(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=T7(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function E7(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function C7(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[T7(e)];if(!e)return[void 0]}catch(t){return Et&&Tt.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Et&&Tt.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Fb(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function R7(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:a,method:o,statusCode:i,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:a,data:vc({method:o,statusCode:i,request:s,response:c})}}function jy(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Jd(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:a,warnings:o}=zX(n);return r.body=a,o&&o.length>0&&(r._meta={warnings:o}),r}function lC(e,t){return Object.entries(e).reduce(((n,[r,a])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=a),n}),{})}function T7(e){return new URLSearchParams(e).toString()}function zX(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>R9,n=MX(e);if(t){const t=e.slice(0,R9);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function MX(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}function Ub(e,t){return vG(DX(e),t)}function DX(e,t=Gn.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Gn.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function NX(e,t,n){try{const r=R7("resource.fetch",await jX(e,t,n));S7(n.replay,r)}catch(e){Et&&Tt.exception(e,"Failed to capture fetch breadcrumb")}}function LX(e,t){const{input:n,response:r}=t,a=Bw(n?A7(n):void 0),o=r?E7(r.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==o&&(e.data.response_body_size=o)}async function jX(e,t,n){const r=Date.now(),{startTimestamp:a=r,endTimestamp:o=r}=t,{url:i,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,f=Ub(i,n.networkDetailAllowUrls)&&!Ub(i,n.networkDetailDenyUrls);return{startTimestamp:a,endTimestamp:o,url:i,method:s,statusCode:c,request:f?BX(n,t.input,l):jy(l),response:await FX(f,n,t.response,u)}}function BX({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const a=n?qX(n,t):{};if(!e)return Jd(a,r,void 0);const o=A7(n),[i,s]=C7(o),c=Jd(a,r,i);return s?Fb(c,s):c}async function FX(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,a){if(!e&&void 0!==a)return jy(a);const o=r?I7(r.headers,n):{};if(!r||!t&&void 0!==a)return Jd(o,a,void 0);const[i,s]=await VX(r),c=UX(i,{networkCaptureBodies:t,responseBodySize:a,captureDetails:e,headers:o});return s?Fb(c,s):c}function UX(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:a}){try{const o=e&&e.length&&void 0===n?Bw(e):n;return r?Jd(a,o,t?e:void 0):jy(o)}catch(e){return Et&&Tt.exception(e,"Failed to serialize response body"),Jd(a,n,void 0)}}async function VX(e){const t=WX(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await HX(t)]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(Et&&Tt.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Et&&Tt.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function A7(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function I7(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function qX(e,t){return 1===e.length&&"string"!=typeof e[0]?K9(e[0],t):2===e.length?K9(e[1],t):{}}function K9(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?I7(n,t):Array.isArray(n)?{}:lC(n,t):{}}function WX(e){try{return e.clone()}catch(e){Et&&Tt.exception(e,"Failed to clone response body")}}function HX(e){return new Promise(((t,n)=>{const r=l1((()=>n(new Error("Timeout while trying to read response body"))),500);GX(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}async function GX(e){return await e.text()}async function KX(e,t,n){try{const r=R7("resource.xhr",YX(e,t,n));S7(n.replay,r)}catch(e){Et&&Tt.exception(e,"Failed to capture xhr breadcrumb")}}function QX(e,t){const{xhr:n,input:r}=t;if(!n)return;const a=Bw(r),o=n.getResponseHeader("content-length")?E7(n.getResponseHeader("content-length")):eJ(n.response,n.responseType);void 0!==a&&(e.data.request_body_size=a),void 0!==o&&(e.data.response_body_size=o)}function YX(e,t,n){const r=Date.now(),{startTimestamp:a=r,endTimestamp:o=r,input:i,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:f,response_body_size:d}=e.data;if(!c)return null;if(!s||!Ub(c,n.networkDetailAllowUrls)||Ub(c,n.networkDetailDenyUrls)){return{startTimestamp:a,endTimestamp:o,url:c,method:l,statusCode:u,request:jy(f),response:jy(d)}}const p=s[FQ],h=p?lC(p.request_headers,n.networkRequestHeaders):{},m=lC(ZX(s),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?C7(i):[void 0],[v,b]=n.networkCaptureBodies?XX(s):[void 0],_=Jd(h,f,g),w=Jd(m,d,v);return{startTimestamp:a,endTimestamp:o,url:c,method:l,statusCode:u,request:y?Fb(_,y):_,response:b?Fb(w,b):w}}function ZX(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{}):{}}function XX(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return JX(e.response,e.responseType)}catch(e){t.push(e)}return Et&&Tt.warn("Failed to get xhr response body",...t),[void 0]}function JX(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Et&&Tt.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Et&&Tt.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function eJ(e,t){try{return Bw("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}function tJ(e){const t=Nl();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",((e,t)=>nJ(s,e,t)))}catch{}}function nJ(e,t,n){if(t.data)try{rJ(t)&&oJ(n)&&(QX(t,n),KX(t,n,e)),aJ(t)&&iJ(n)&&(LX(t,n),NX(t,n,e))}catch(e){Et&&Tt.exception(e,"Error when enriching network breadcrumb")}}function rJ(e){return"xhr"===e.category}function aJ(e){return"fetch"===e.category}function oJ(e){return e&&e.xhr}function iJ(e){return e&&e.response}function sJ(e){const t=Nl();OQ(DZ(e)),LQ(PX(e)),xX(e),tJ(e);RK(IX(e)),t&&(t.on("beforeSendEvent",wX(e)),t.on("afterSendEvent",_X(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}async function cJ(e){try{return Promise.all(jw(e,[lJ(Gn.performance.memory)]))}catch{return[]}}function lJ(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function fJ(e,t,n){let r,a,o;const i=n.maxWait?Math.max(n.maxWait,t):0;function s(){return c(),r=e(),r}function c(){void 0!==a&&clearTimeout(a),void 0!==o&&clearTimeout(o),a=o=void 0}function l(){return a&&clearTimeout(a),a=l1(s,t),i&&void 0===o&&(o=l1(s,i)),r}return l.cancel=c,l.flush=function(){return void 0!==a||void 0!==o?s():r},l}function uJ(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Et&&Tt.warn("Received replay event after session expired."));const a=r||!t;t=!0,e.clickDetector&&$Z(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&a&&e.setInitialState(),!eT(e,n,a))return!0;if(!a)return!1;const t=e.session;if(pJ(e,a),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(Et&&Tt.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&JR(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}function dJ(e){const t=e.getOptions();return{type:Vt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function pJ(e,t){!t||!e.session||0!==e.session.segmentId||eT(e,dJ(e),!1)}function hJ(e,t,n,r){return sK(lK(e,cK(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function mJ({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function gJ({client:e,scope:t,replayId:n,event:r}){const a={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,a);const o=await yK(e.getOptions(),r,a,t,e,v_());if(!o)return null;o.platform=o.platform||"javascript";const i=e.getSdkMetadata(),{name:s,version:c}=i&&i.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:c||"0.0.0"},o}async function yJ({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:a,session:o}){const i=mJ({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,f=Nl(),d=E1(),p=f&&f.getTransport(),h=f&&f.getDsn();if(!(f&&p&&h&&o.sampled))return f9({});const m={type:YQ,replay_start_timestamp:u/1e3,timestamp:a/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:o.sampled},g=await gJ({scope:d,client:f,replayId:t,event:m});if(!g)return f.recordDroppedEvent("event_processor","replay",m),Et&&Tt.info("An event processor returned `null`, will not send event."),f9({});delete g.sdkProcessingMetadata;const y=hJ(g,i,h,f.getOptions().tunnel);let v;try{v=await p.send(y)}catch(e){const t=new Error(VR);try{t.cause=e}catch{}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new $7(v.statusCode);const b=PK({},v);if($K(b,"replay"))throw new nT(b);return v}class $7 extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class nT extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function P7(e,t={count:0,interval:nY}){const{recordingData:n,onError:r}=e;if(n.length)try{return await yJ(e),!0}catch(n){if(n instanceof $7||n instanceof nT)throw n;if(EK("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${VR} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{l1((async()=>{try{await P7(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const O7="__THROTTLED",_J="__SKIPPED";function vJ(e,t,n){const r=new Map;let a=!1;return(...o)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(i),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=a;return a=!0,e?_J:O7}a=!1;const s=r.get(i)||0;return r.set(i,s+1),e(...o)}}class Kd{constructor({options:e,recordingOptions:t}){Kd.prototype.__init.call(this),Kd.prototype.__init2.call(this),Kd.prototype.__init3.call(this),Kd.prototype.__init4.call(this),Kd.prototype.__init5.call(this),Kd.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:ZQ,sessionIdleExpire:XQ},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=fJ((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=vJ(((e,t)=>mX(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),a=n?{threshold:Math.min(aY,n),timeout:n,scrollTimeout:oY,ignoreSelector:r?r.join(","):""}:void 0;if(a&&(this.clickDetector=new RZ(this,a)),Et){const t=e._experiments;Tt.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){Et&&Tt.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session)return void(Et&&Tt.exception(new Error("Unable to initialize and create session")));!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Et&&Tt.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Et&&Tt.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Et&&Tt.info("Buffering is in progress, call `flush()` to save the replay"));Et&&Tt.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Wx({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Et&&Tt.info("Buffering is in progress, call `flush()` to save the replay"));Et&&Tt.infoTick("Starting replay in buffer mode");const e=Wx({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=eu({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:tY}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:uJ(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{Et&&Tt.info("Stopping Replay"+(t?` triggered by ${t}`:"")),x7(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,fX(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Et&&Tt.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Et&&Tt.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Et&&Tt.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();!e||!n||"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&sC(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Gn.location.pathname}${Gn.location.hash}${Gn.location.search}`,t=`${Gn.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===O7){const e=Rl({category:"replay.throttled"});this.addUpdate((()=>!eT(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||T8(),t=e&&LR(e),n=(t&&zy(t).data||{})[R8];if(t&&n&&["route","custom"].includes(n))return zy(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=sX({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Wx({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!v7(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Gn.document.addEventListener("visibilitychange",this._handleVisibilityChange),Gn.addEventListener("blur",this._handleWindowBlur),Gn.addEventListener("focus",this._handleWindowFocus),Gn.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(sJ(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=eX(this)}_removeListeners(){try{Gn.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Gn.removeEventListener("blur",this._handleWindowBlur),Gn.removeEventListener("focus",this._handleWindowFocus),Gn.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Gn.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Rl({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Rl({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{BZ(this,e)}}_doChangeToBackgroundTasks(e){!this.session||_7(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Et&&Tt.info("Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Vt.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=qZ(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(jw(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await cJ(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await P7({replayId:e,recordingData:a,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=Nl();if(t){const n=e instanceof nT?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else Et&&Tt.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Et&&Tt.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,a=n>this._options.maxReplayDuration+5e3;if(r||a)return Et&&Tt.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&Et&&Tt.info("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&JR(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=Rl({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function L0(e,t){return[...e,...t].join(",")}function bJ({mask:e,unmask:t,block:n,unblock:r,ignore:a}){return{maskTextSelector:L0(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:L0(t,[]),blockSelector:L0(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:L0(r,[]),ignoreSelector:L0(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function wJ({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:a,value:o}){return!r||a.unmaskTextSelector&&e.matches(a.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const Q9='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',kJ=["content-length","content-type","accept"];let Y9=!1;const xJ=e=>new Fw(e);class Fw{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=JQ,flushMaxDelay:t=eY,minReplayDuration:n=iY,maxReplayDuration:r=T9,stickySession:a=!0,useCompression:o=!0,workerUrl:i,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:f=750,mutationLimit:d=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:_=[],maskAttributes:w=["title","placeholder"],unmask:k=[],block:x=[],unblock:S=[],ignore:E=[],maskFn:A,beforeAddRecordingEvent:C,beforeErrorSampling:z,onError:I}={}){this.name=Fw.id;const T=bJ({mask:_,unmask:k,block:x,unblock:S,ignore:E});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:A,maskInputFn:A,maskAttributeFn:(e,t,n)=>wJ({maskAttributes:w,maskAllText:c,privacyOptions:T,key:e,value:t,el:n}),...T,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,sY),maxReplayDuration:Math.min(r,T9),stickySession:a,useCompression:o,workerUrl:i,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:f,mutationLimit:d,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:Z9(v),networkResponseHeaders:Z9(b),beforeAddRecordingEvent:C,beforeErrorSampling:z,onError:I,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Q9}`:Q9),this._isInitialized&&k9())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Y9}set _isInitialized(e){Y9=e}afterAllSetup(e){!k9()||this._replay||(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=SJ(this._initialOptions,e);this._replay=new Kd({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function SJ(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...vc(e)},a=y9(n.replaysSessionSampleRate),o=y9(n.replaysOnErrorSampleRate);return null==a&&null==o&&$R((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=a&&(r.sessionSampleRate=a),null!=o&&(r.errorSampleRate=o),r}function Z9(e){return[...kJ,...e.map((e=>e.toLowerCase()))]}Fw.__initStatic();const z7=()=>"object"!=typeof window;var EJ={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/router/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/router/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"66cc23d6587139ac",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/router",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.172",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/router",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/router",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/router"};z7()||(window.build=EJ.BUILD_NUMBER),xJ(),WQ(),FK();const X9={data:null,isError:!1,isPending:!1,isSuccess:!1},ro=ia({name:"user",initialState:X9,reducers:{reset:e=>{Object.assign(e,X9)},setData:(e,{payload:t})=>{e.data=t},updateData:(e,{payload:t})=>{e.data&&Object.assign(e.data,t)},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setPending:(e,{payload:t})=>{e.isPending=t},setIsError:(e,{payload:t})=>{e.isError=t},setError:(e,{payload:t})=>{e.error=t},updateUser:(e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectAccountId:e=>{var t;return null==(t=e.data)?void 0:t.account.id},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess,selectIsAdmin:e=>{var t;return"ADMIN"===(null==(t=e.data)?void 0:t.account.role)}}}),CJ=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return CK("exceptionMessage",t),void jR(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}SK(t)},J9=["debug","info","warn","error"],RJ=(e,t)=>{const n=J9.indexOf(e);return J9.indexOf(t)>=n},zv=(e,t,n,...r)=>{RJ(t,e)&&console.log(`[${e}] ${n}`,...r)},TJ=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),AJ=(e=!z7()&&TJ()||"warn")=>{let t=e;return{debug:(e,...n)=>zv("debug",t,e,...n),info:(e,...n)=>zv("info",t,e,...n),warn:(e,...n)=>zv("warn",t,e,...n),error:(e,...n)=>(CJ(e,...n),zv("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},au=AJ(),Uw="staticState",mb={path:"",baseUrl:"",search:""},IJ=e=>{if(!e)return mb;try{return JSON.parse(decodeURIComponent(e))||mb}catch(e){return au.error("Error parsing static state",e),mb}},M7=()=>new URLSearchParams(window.location.search).get(Uw),$J=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:a,search:o}=window.location;return`${Uw}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||a,search:n||o}))}`},PJ=()=>{const e=M7();return e&&localStorage.setItem(Uw,e),D7()},D7=()=>{try{const e=localStorage.getItem(Uw)||M7();return IJ(e)}catch(e){return au.error("Error parsing static state",e),mb}},C_={create:$J,init:PJ,get:D7},OJ=e=>{try{const{type:t,payload:n}=e,r={type:t};return void 0!==n&&(r.payload=JSON.parse(JSON.stringify(n))),r}catch(t){return au.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},zJ=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const a=OJ(e);t.postMessage(a,"*")}catch(e){au.error("Failed to process or send message:",e)}},MJ=({onMessage:e,whitelist:t})=>{const n=n=>{const r=n.origin!==window.location.origin,a=n.data&&"object"==typeof n.data&&"type"in n.data,o=t.some((({type:e})=>e===n.data.type||"*"===e));r&&a&&o&&e(n.data)};return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},DJ=async e=>{const t={};e.headers.forEach(((e,n)=>{t[n]=e}));return{body:["get","head"].includes(e.method.toLowerCase())?null:await(async()=>{try{return await e.text()}catch(e){return au.error("No body or error reading body:",e),null}})(),headers:t,url:e.url,method:e.method,mode:e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}},NJ=e=>{const{url:t,status:n,statusText:r,headers:a,body:o}=e,i=new Response(JSON.stringify(o),{status:n,statusText:r,headers:a});return Object.defineProperty(i,"url",{value:t}),i},LJ=async e=>{const t=crypto.randomUUID();return zJ({action:n9({id:t,options:await DJ(e)}),windowElement:window.parent,whitelist:[n9]}),new Promise((e=>{const n=MJ({onMessage:({payload:{id:r,response:a}})=>{t===r&&(n(),e(NJ(a)))},whitelist:[eG]})}))},rT=()=>{var e;try{return(null==(e=window.wellesley)?void 0:e.v1)||window.wellesley}catch(e){au.error("Error getting window.wellesley:",e)}},jJ=e=>new Response(JSON.stringify(e),{status:200,statusText:"OK",headers:{"Content-Type":"application/json"}}),BJ=e=>{var t,n;if(e.url.includes("accounts/profile")){const e=null==(n=null==(t=rT())?void 0:t.initialState)?void 0:n.user;return!(null==e||!e.selectedUserId)&&jJ(e)}},FJ=Object.freeze(Object.defineProperty({__proto__:null,userHandler:BJ},Symbol.toStringTag,{value:"Module"})),UJ=e=>Object.values(FJ).reduce(((t,n)=>t||n(e)),void 0),VJ=async e=>UJ(e)||await fetch(e),qJ=()=>{try{return window.self!==window.top}catch{return!0}},WJ=()=>e=>qJ()?LJ(e):VJ(e),HJ=C_.get().baseUrl,GJ=HJ||"",KJ=sH({fetchFn:WJ(),baseUrl:GJ,responseHandler:e=>{const t=e.headers.get("content-type");return(null==t?void 0:t.startsWith("application/json"))?e.json():e.text()},prepareHeaders:e=>{const t=Xh.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),QJ=nG(iG(KJ)),YJ=KH({tagTypes:["Secure","Post","Follow","Like","Settings","Rbac_Config","Admin_Apps","Admin_Users","Admin_Audit_Logs","Admin_Reports","Admin_Signup_Requests","Admin_Posts","Admin_Uploads","Admin_Roles","Admin_Jobs_Stats","Admin_Federation","Admin_Domain_Block","Group_Apps","User_Apps","Account","Profile","UserNoHtml","Relationship","Bookmarks",...Object.values(Ib)],reducerPath:"openapi",baseQuery:QJ,endpoints:()=>({})}),ar=YJ.injectEndpoints({endpoints:e=>({postApiV1AccountsAddReason:e.mutation({query:e=>({url:"/api/v1/accounts/add-reason",method:"POST",body:e.signupReasonParams})}),postApiV1AccountsAuthenticateEmail:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/email",method:"POST",body:e.authRequest})}),postApiV1AccountsAuthenticatePhone:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/phone",method:"POST",body:e.authPhoneRequest})}),putApiV1AccountsChangeName:e.mutation({query:e=>({url:"/api/v1/accounts/change/name",method:"PUT",params:{id:e.id,name:e.name,username:e.username}})}),postApiV1AccountsCheckCaptcha:e.mutation({query:e=>({url:"/api/v1/accounts/check-captcha",method:"POST",body:e.captchaVerificationParams})}),postApiV1AccountsConfirmEmail:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-email",method:"POST",body:e.codeVerificationParams})}),postApiV1AccountsConfirmPhone:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-phone",method:"POST",body:e.codeVerificationParams})}),deleteApiV1AccountsDelete:e.mutation({query:()=>({url:"/api/v1/accounts/delete",method:"DELETE"})}),postApiV1AccountsEmailChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsEmailChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/request",method:"POST",body:e.emailChangeRequest})}),putApiV1AccountsEmailChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/email/change/resend-code",method:"PUT"})}),postApiV1AccountsFinishCreating:e.mutation({query:e=>({url:"/api/v1/accounts/finish-creating",method:"POST",body:e.finishCreatingAccountParams,params:{htmlContent:e.htmlContent}})}),putApiV1AccountsGetTokenByHash:e.mutation({query:e=>({url:`/api/v1/accounts/get-token/${e.hash}`,method:"PUT"})}),postApiV1AccountsLoginsAddEmailPassword:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password",method:"POST",body:e.addEmailRequest})}),postApiV1AccountsLoginsAddEmailPasswordConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password/confirm",method:"POST",body:e.body})}),putApiV1AccountsLoginsAddEmailPasswordResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/logins/add-email-password/resend-code",method:"PUT"})}),postApiV1AccountsLoginsAddPhone:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-phone",method:"POST",body:e.addPhoneRequest})}),deleteApiV1AccountsLoginsRemoveEmailPassword:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-email-password",method:"DELETE"})}),deleteApiV1AccountsLoginsRemovePhone:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-phone",method:"DELETE"})}),postApiV1AccountsPasswordChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsPasswordChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/request",method:"POST",body:e.passwordChangeRequest})}),putApiV1AccountsPasswordChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/password/change/resend-code",method:"PUT"})}),postApiV1AccountsPasswordRecover:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover",method:"POST",body:e.passwordRecoveryRequest})}),postApiV1AccountsPasswordRecoverChange:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/change",method:"POST",body:e.passwordRecoveryChange})}),postApiV1AccountsPasswordRecoverCheckCode:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/check-code",method:"POST",body:e.passwordRecoveryCode})}),postApiV1AccountsPhoneChangeConfirmAuth:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/auth",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeConfirmNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/new-phone",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/new-phone",method:"POST",body:e.addPhoneRequest})}),putApiV1AccountsPhoneChangeRequest:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/request",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeAuth:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/auth",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeNewPhone:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/new-phone",method:"PUT"})}),getApiV1AccountsProfile:e.query({query:e=>({url:"/api/v1/accounts/profile",params:{htmlContent:e.htmlContent}})}),postApiV1AccountsReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName,htmlContent:e.htmlContent}})}),putApiV1AccountsResendCodeByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-code/${e.hash}`,method:"PUT"})}),putApiV1AccountsResendEmailByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-email/${e.hash}`,method:"PUT"})}),postApiV1AccountsSignup:e.mutation({query:e=>({url:"/api/v1/accounts/signup",method:"POST",body:e.accountCreate})}),postApiV1AccountsSignupPhone:e.mutation({query:e=>({url:"/api/v1/accounts/signup-phone",method:"POST",body:e.phoneSignup})}),postApiV1AccountsUserReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/user/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName}})}),getApiV1AccountsById:e.query({query:e=>({url:`/api/v1/accounts/${e.id}`,params:{htmlContent:e.htmlContent}})}),getApiV1AddressesSuggest:e.query({query:e=>({url:"/api/v1/addresses/suggest",params:{text:e.text}})}),getApiV1AdminAccountByAccountId:e.query({query:e=>({url:`/api/v1/admin/account/${e.accountId}`,params:{htmlContent:e.htmlContent}})}),getApiV1AdminAuditLog:e.query({query:e=>({url:"/api/v1/admin/audit_log",params:{accountId:e.accountId,action:e.action,appId:e.appId,domainSearch:e.domainSearch,email:e.email,group:e.group,lastId:e.lastId,limit:e.limit,offset:e.offset,ruleId:e.ruleId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminChangeEmail:e.mutation({query:e=>({url:"/api/v1/admin/change/email",method:"PUT",params:{email:e.email,id:e.id,username:e.username}})}),putApiV1AdminChangePassword:e.mutation({query:e=>({url:"/api/v1/admin/change/password",method:"PUT",params:{id:e.id,password:e.password,username:e.username}})}),putApiV1AdminChangeRoleAssign:e.mutation({query:e=>({url:"/api/v1/admin/change/role/assign",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),putApiV1AdminChangeRoleRevoke:e.mutation({query:e=>({url:"/api/v1/admin/change/role/revoke",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),postApiV1AdminClearApErrors:e.mutation({query:e=>({url:"/api/v1/admin/clear-ap-errors",method:"POST",params:{domain:e.domain}})}),postApiV1AdminCreateAccount:e.mutation({query:e=>({url:"/api/v1/admin/create-account",method:"POST",body:e.accountCreate,params:{htmlContent:e.htmlContent}})}),deleteApiV1AdminDelete:e.mutation({query:e=>({url:"/api/v1/admin/delete",method:"DELETE",params:{email:e.email,id:e.id,username:e.username}})}),getApiV1AdminDomainAllow:e.query({query:e=>({url:"/api/v1/admin/domain-allow",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainAllow:e.mutation({query:e=>({url:"/api/v1/admin/domain-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminDomainAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-allow/${e.domain}`,method:"DELETE"})}),putApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"PUT",body:e.blockDomainReq})}),getApiV1AdminDomainBlock:e.query({query:e=>({url:"/api/v1/admin/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"POST",body:e.blockDomainReq})}),getApiV1AdminDomainBlockList:e.query({query:e=>({url:"/api/v1/admin/domain-block/list",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1AdminDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-block/${e.domain}`,method:"DELETE"})}),getApiV1AdminFederation:e.query({query:e=>({url:"/api/v1/admin/federation",params:{blockState:e.blockState,lastId:e.lastId,limit:e.limit,offset:e.offset,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,unavailable:e.unavailable,untilId:e.untilId,warning:e.warning}})}),getApiV1AdminFederationMetricsOperations:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/operations",params:{window:e.window}})}),getApiV1AdminFederationMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-average-single",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFederationMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-averages-all",params:{operations:e.operations,window:e.window}})}),getApiV1AdminFederationByDomain:e.query({query:e=>({url:`/api/v1/admin/federation/${e.domain}`})}),postApiV1AdminFeedClearUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/clear-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),getApiV1AdminFeedMetricsGlobalAllOperation:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-operation",params:{ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsGlobalAllOwners:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-owners",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFeedMetricsGlobalSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-single",params:{operation:e.operation,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsHistory:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all",params:{limit:e.limit,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAllSingleOwner:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all-single-owner",params:{limit:e.limit,ownerType:e.ownerType,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryByOwnerType:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/by-owner-type",params:{limit:e.limit,operation:e.operation,userId:e.userId}})}),getApiV1AdminFeedMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-average-single",params:{operation:e.operation,ownerType:e.ownerType,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-averages-all",params:{ownerType:e.ownerType,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsSlowestOperations:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-operations",params:{limit:e.limit,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsers:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-all",params:{limit:e.limit,ownerType:e.ownerType,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-single",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSummary:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/summary",params:{includeUserCounts:e.includeUserCounts,window:e.window}})}),getApiV1AdminFeedMetricsUserCountAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-all",params:{ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsUserCountSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-single",params:{operation:e.operation,ownerType:e.ownerType,window:e.window}})}),postApiV1AdminFeedRegenerateUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/regenerate-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),postApiV1AdminPostsDelete:e.mutation({query:e=>({url:"/api/v1/admin/posts/delete",method:"POST",body:e.postDelete})}),deleteApiV1AdminPurge:e.mutation({query:e=>({url:"/api/v1/admin/purge",method:"DELETE",params:{id:e.id}})}),postApiV1AdminRegenerateKeys:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys",method:"POST",params:{userId:e.userId,username:e.username}})}),postApiV1AdminRegenerateKeysAll:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys-all",method:"POST",params:{batch:e.batch}})}),postApiV1AdminReportsDeletePosts:e.mutation({query:e=>({url:"/api/v1/admin/reports/delete-posts",method:"POST",body:e.body})}),getApiV1AdminReportsList:e.query({query:e=>({url:"/api/v1/admin/reports/list",params:{groupId:e.groupId,lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1AdminReportsByReportId:e.query({query:e=>({url:`/api/v1/admin/reports/${e.reportId}`})}),postApiV1AdminReportsByReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1AdminReportsByReportIdAssignToSelf:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/assign-to-self`,method:"POST"})}),deleteApiV1AdminReportsByReportIdDelete:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/delete`,method:"DELETE"})}),postApiV1AdminReportsByReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1AdminReportsByReportIdReopen:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1AdminReportsByReportIdResolve:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/resolve`,method:"POST"})}),postApiV1AdminReportsByReportIdUnassign:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/unassign`,method:"POST"})}),postApiV1AdminRestartApDelivery:e.mutation({query:e=>({url:"/api/v1/admin/restart-ap-delivery",method:"POST",params:{domain:e.domain}})}),getApiV1AdminSearch:e.query({query:e=>({url:"/api/v1/admin/search",params:{accountId:e.accountId,country:e.country,displayName:e.displayName,domain:e.domain,email:e.email,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,role:e.role,sortBy:e.sortBy,sortOrder:e.sortOrder,state:e.state,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminSignupRequestsApproveByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/approve/${e.hash}`,method:"PUT"})}),deleteApiV1AdminSignupRequestsDeleteByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/delete/${e.hash}`,method:"DELETE"})}),getApiV1AdminSignupRequestsList:e.query({query:e=>({url:"/api/v1/admin/signup_requests/list",params:{email:e.email,hash:e.hash,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1AdminSignupRequestsRejectByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/reject/${e.hash}`,method:"PUT",params:{reason:e.reason}})}),getApiV1AdminUploadsJobsQueueByQueueName:e.query({query:e=>({url:`/api/v1/admin/uploads/jobs/queue/${e.queueName}`,params:{limit:e.limit,page:e.page,sortBy:e.sortBy,sortOrder:e.sortOrder,uploadType:e.uploadType}})}),getApiV1AdminUploadsJobsSummary:e.query({query:()=>({url:"/api/v1/admin/uploads/jobs/summary"})}),getApiV1AdminUploadsSearch:e.query({query:e=>({url:"/api/v1/admin/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType,userId:e.userId}})}),getApiV1AdminUploadsStorageByUserId:e.query({query:e=>({url:`/api/v1/admin/uploads/storage/${e.userId}`})}),postApiV1AdminUserChangeState:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state",method:"POST",body:e.changeUserState})}),getApiV1AdminUserByUserId:e.query({query:e=>({url:`/api/v1/admin/user/${e.userId}`})}),postApiV1Apps:e.mutation({query:e=>({url:"/api/v1/apps",method:"POST",body:e.body,params:{enable:e.enable}})}),getApiV1Apps:e.query({query:()=>({url:"/api/v1/apps"})}),getApiV1AppsEnabled:e.query({query:()=>({url:"/api/v1/apps/enabled"})}),getApiV1AppsGroupByGroupId:e.query({query:e=>({url:`/api/v1/apps/group/${e.groupId}`})}),deleteApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"DELETE"})}),putApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"PUT"})}),getApiV1AppsInstalled:e.query({query:()=>({url:"/api/v1/apps/installed"})}),getApiV1AppsUser:e.query({query:()=>({url:"/api/v1/apps/user"})}),deleteApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"DELETE"})}),putApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"PUT"})}),putApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"PUT",body:e.body,params:{enable:e.enable}})}),getApiV1AppsByAppId:e.query({query:e=>({url:`/api/v1/apps/${e.appId}`})}),deleteApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"DELETE"})}),getApiV1AppsByAppIdData:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/data`,params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1AppsByAppIdData:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data`,method:"POST",body:e.dataCreate})}),putApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"DELETE"})}),putApiV1AppsByAppIdDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/default`,method:"PUT"})}),putApiV1AppsByAppIdDisable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/disable`,method:"PUT"})}),putApiV1AppsByAppIdEnable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/enable`,method:"PUT"})}),getApiV1AppsByAppIdStats:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/stats`})}),putApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"PUT"})}),deleteApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"DELETE"})}),getApiV1Block:e.query({query:e=>({url:"/api/v1/block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1BlockBy:e.query({query:e=>({url:"/api/v1/block/by",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"DELETE"})}),postApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"POST"})}),postApiV1Categories:e.mutation({query:e=>({url:"/api/v1/categories",method:"POST",body:e.categoryCreate})}),getApiV1CategoriesNameByCategoryName:e.query({query:e=>({url:`/api/v1/categories/name/${e.categoryName}`})}),putApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"PUT",body:e.categoryUpdate})}),getApiV1CategoriesByCategoryId:e.query({query:e=>({url:`/api/v1/categories/${e.categoryId}`})}),deleteApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"DELETE"})}),getApiV1CustomEmojis:e.query({query:e=>({url:"/api/v1/custom_emojis",params:{shortcode:e.shortcode}})}),deleteApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"DELETE",params:{shortcode:e.shortcode,category:e.category}})}),postApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"POST",body:e.emoji,params:{overwrite:e.overwrite}})}),getApiV1CustomEmojisExport:e.query({query:e=>({url:"/api/v1/custom_emojis/export",params:{category:e.category}})}),postApiV1CustomEmojisImport:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import",method:"POST",body:e.body,params:{visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1CustomEmojisSearch:e.query({query:e=>({url:"/api/v1/custom_emojis/search",params:{shortcode:e.shortcode}})}),postApiV1CustomEmojisUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/upload",method:"POST",body:e.body,params:{shortcode:e.shortcode,visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1Data:e.query({query:e=>({url:"/api/v1/data",params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1Data:e.mutation({query:e=>({url:"/api/v1/data",method:"POST",body:e.dataCreate})}),putApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"DELETE"})}),getApiV1Drafts:e.query({query:()=>({url:"/api/v1/drafts"})}),postApiV1Drafts:e.mutation({query:e=>({url:"/api/v1/drafts",method:"POST",body:e.createDraftRequest})}),getApiV1DraftsPostByPostId:e.query({query:e=>({url:`/api/v1/drafts/post/${e.postId}`})}),putApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"PUT",body:e.updateDraftRequest})}),getApiV1DraftsByDraftId:e.query({query:e=>({url:`/api/v1/drafts/${e.draftId}`})}),deleteApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"DELETE"})}),postApiV1DraftsByDraftIdPublish:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}/publish`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1Events:e.query({query:e=>({url:"/api/v1/events",params:{limit:e.limit,offset:e.offset,organizerId:e.organizerId,ownerId:e.ownerId,username:e.username}})}),postApiV1Events:e.mutation({query:e=>({url:"/api/v1/events",method:"POST",body:e.createEvent})}),getApiV1EventsCalendarGByGroupnameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/g/${e.groupname}.ics`})}),getApiV1EventsCalendarPByIdIcs:e.query({query:e=>({url:`/api/v1/events/calendar/p/${e.id}.ics`})}),getApiV1EventsCalendarUByUsernameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/u/${e.username}.ics`})}),getApiV1EventsFollowing:e.query({query:e=>({url:"/api/v1/events/following",params:{limit:e.limit,offset:e.offset}})}),getApiV1EventsMy:e.query({query:e=>({url:"/api/v1/events/my",params:{limit:e.limit,notRespondedOnly:e.notRespondedOnly,offset:e.offset,organizedOnly:e.organizedOnly,past:e.past}})}),getApiV1EventsSettings:e.query({query:e=>({url:"/api/v1/events/settings",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsRegeneratePrivateId:e.mutation({query:e=>({url:"/api/v1/events/settings/regeneratePrivateId",method:"POST",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsUpdate:e.mutation({query:e=>({url:"/api/v1/events/settings/update",method:"POST",body:e.updateEventsSettings,params:{ownerId:e.ownerId}})}),putApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"PUT",body:e.updateEvent})}),getApiV1EventsByEventId:e.query({query:e=>({url:`/api/v1/events/${e.eventId}`})}),deleteApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"DELETE"})}),getApiV1EventsByEventIdIcs:e.query({query:e=>({url:`/api/v1/events/${e.eventId}.ics`})}),postApiV1EventsByEventIdAccept:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/accept`,method:"POST"})}),getApiV1EventsByEventIdAttendees:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/attendees`,params:{limit:e.limit,offset:e.offset}})}),deleteApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"DELETE"})}),postApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"POST"})}),postApiV1EventsByEventIdCancel:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/cancel`,method:"POST"})}),postApiV1EventsByEventIdInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/interested`,method:"POST"})}),postApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"POST"})}),deleteApiV1EventsByEventIdLeave:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/leave`,method:"DELETE"})}),postApiV1EventsByEventIdMaybe:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/maybe`,method:"POST"})}),getApiV1EventsByEventIdMutual:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/mutual`,params:{limit:e.limit,offset:e.offset}})}),postApiV1EventsByEventIdReject:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/reject`,method:"POST"})}),postApiV1FaspClear:e.mutation({query:()=>({url:"/api/v1/fasp/clear",method:"POST"})}),getApiV1FaspDebugV0CallbackCallbacks:e.query({query:()=>({url:"/api/v1/fasp/debug/v0/callback/callbacks"})}),deleteApiV1FaspDebugV0CallbackCallbacksById:e.mutation({query:e=>({url:`/api/v1/fasp/debug/v0/callback/callbacks/${e.id}`,method:"DELETE"})}),postApiV1FaspRegistration:e.mutation({query:e=>({url:"/api/v1/fasp/registration",method:"POST",body:e.registrationRequest})}),postApiV1FaspByProviderIdCapabilities:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/capabilities`,method:"POST",body:e.body})}),postApiV1FaspByProviderIdDebugCall:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/debug-call`,method:"POST",body:e.body})}),getApiV1FaspByProviderIdRegistrationFinish:e.query({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`})}),postApiV1FaspByProviderIdRegistrationFinish:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`,method:"POST"})}),postApiV1FaspByProviderIdRequestBackfill:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/request_backfill`,method:"POST",params:{category:e.category}})}),putApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"PUT",body:e.createForum})}),getApiV1ForumsByForumId:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}`})}),deleteApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"DELETE"})}),getApiV1ForumsByForumIdCategories:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdPosts:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/posts`,params:{forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1ForumsByForumIdTags:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdTagsSearch:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags/search`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Geo:e.query({query:e=>({url:"/api/v1/geo",params:{latitude:e.latitude,longitude:e.longitude}})}),getApiV1Groups:e.query({query:e=>({url:"/api/v1/groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1Groups:e.mutation({query:e=>({url:"/api/v1/groups",method:"POST",body:e.groupCreate})}),getApiV1GroupsAccount:e.query({query:e=>({url:"/api/v1/groups/account",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserId:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserIdGroups:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}/groups`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsNameByGroupname:e.query({query:e=>({url:`/api/v1/groups/name/${e.groupname}`})}),getApiV1GroupsSearch:e.query({query:e=>({url:"/api/v1/groups/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,substring:e.substring,untilId:e.untilId}})}),putApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"PUT",body:e.groupUpdate})}),getApiV1GroupsByGroupId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}`})}),deleteApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdForum:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`})}),postApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"POST"})}),postApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"POST"})}),putApiV1GroupsByGroupIdMedia:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/media`,method:"PUT",body:e.groupMediaUpdate})}),putApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"PUT",body:e.groupMemberUpdate})}),getApiV1GroupsByGroupIdMembers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"POST",body:e.groupMemberCreate})}),deleteApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdUsers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Import:e.query({query:()=>({url:"/api/v1/import"})}),postApiV1Import:e.mutation({query:e=>({url:"/api/v1/import",method:"POST",body:e.body,params:{overwrite:e.overwrite,type:e.type}})}),postApiV1ImportStartById:e.mutation({query:e=>({url:`/api/v1/import/start/${e.id}`,method:"POST"})}),getApiV1ImportById:e.query({query:e=>({url:`/api/v1/import/${e.id}`})}),getApiV1Instance:e.query({query:()=>({url:"/api/v1/instance"})}),getApiV1InstanceCountries:e.query({query:()=>({url:"/api/v1/instance/countries"})}),getApiV1InstanceDomains:e.query({query:e=>({url:"/api/v1/instance/domains",params:{domain:e.domain,limit:e.limit,software:e.software}})}),getApiV1InstanceExtendedDescription:e.query({query:()=>({url:"/api/v1/instance/extended_description"})}),getApiV1InstanceSupportedLanguages:e.query({query:()=>({url:"/api/v1/instance/supported_languages"})}),getApiV1InstanceTimezones:e.query({query:()=>({url:"/api/v1/instance/timezones"})}),getApiV1JobsListJobs:e.query({query:e=>({url:"/api/v1/jobs/list-jobs",params:{limit:e.limit,offset:e.offset}})}),getApiV1JobsListStats:e.query({query:e=>({url:"/api/v1/jobs/list-stats",params:{queue:e.queue}})}),getApiV1JobsListStatsAll:e.query({query:()=>({url:"/api/v1/jobs/list-stats-all"})}),getApiV1JobsLists:e.query({query:e=>({url:"/api/v1/jobs/lists",params:{limit:e.limit,listKind:e.listKind,offset:e.offset,queue:e.queue}})}),getApiV1JobsStats:e.query({query:()=>({url:"/api/v1/jobs/stats"})}),getApiV1JobsStatsPerDay:e.query({query:e=>({url:"/api/v1/jobs/stats-per-day",params:{lastDays:e.lastDays,queue:e.queue}})}),getApiV1Links:e.query({query:e=>({url:"/api/v1/links",params:{url:e.url}})}),getApiV1Lists:e.query({query:()=>({url:"/api/v1/lists"})}),postApiV1Lists:e.mutation({query:e=>({url:"/api/v1/lists",method:"POST",body:e.userListCreate})}),putApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"PUT",body:e.userListCreate})}),getApiV1ListsByListId:e.query({query:e=>({url:`/api/v1/lists/${e.listId}`})}),deleteApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"DELETE"})}),getApiV1ListsByListIdUsers:e.query({query:e=>({url:`/api/v1/lists/${e.listId}/users`})}),deleteApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"DELETE"})}),postApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"POST"})}),getApiV1Metrics:e.query({query:e=>({url:"/api/v1/metrics",params:{from:e.from,period:e.period,to:e.to}})}),getApiV1MetricsTotals:e.query({query:()=>({url:"/api/v1/metrics/totals"})}),getApiV1Mute:e.query({query:e=>({url:"/api/v1/mute",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"DELETE"})}),postApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"POST",params:{duration:e.duration}})}),putApiV1Notes:e.mutation({query:e=>({url:"/api/v1/notes",method:"PUT",body:e.noteUpdate})}),getApiV1Notes:e.query({query:e=>({url:"/api/v1/notes",params:{userIds:e.userIds}})}),deleteApiV1NotesByUserId:e.mutation({query:e=>({url:`/api/v1/notes/${e.userId}`,method:"DELETE"})}),getApiV1Notifications:e.query({query:e=>({url:"/api/v1/notifications",params:{excludeTypes:e.excludeTypes,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,types:e.types,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1NotificationsCount:e.query({query:e=>({url:"/api/v1/notifications/count",params:{excludeTypes:e.excludeTypes,status:e.status,types:e.types}})}),postApiV1NotificationsMarkAll:e.mutation({query:e=>({url:"/api/v1/notifications/mark-all",method:"POST",params:{status:e.status}})}),getApiV1NotificationsById:e.query({query:e=>({url:`/api/v1/notifications/${e.id}`,params:{htmlContent:e.htmlContent}})}),postApiV1NotificationsByIdMark:e.mutation({query:e=>({url:`/api/v1/notifications/${e.id}/mark`,method:"POST",params:{status:e.status,htmlContent:e.htmlContent}})}),postApiV1PollsByPollIdRefresh:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/refresh`,method:"POST"})}),postApiV1PollsByPollIdVote:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/vote`,method:"POST",body:e.body})}),getApiV1Posts:e.query({query:e=>({url:"/api/v1/posts",params:{bookmarkedOnly:e.bookmarkedOnly,forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,includeFollowStatus:e.includeFollowStatus,includeReply:e.includeReply,lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,listId:e.listId,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,ownerId:e.ownerId,ownerType:e.ownerType,pinned:e.pinned,repostKind:e.repostKind,repostOf:e.repostOf,repostsOnly:e.repostsOnly,search:e.search,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,userId:e.userId,username:e.username,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),postApiV1Posts:e.mutation({query:e=>({url:"/api/v1/posts",method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsBookmarks:e.query({query:()=>({url:"/api/v1/posts/bookmarks"})}),getApiV1PostsFollowing:e.query({query:e=>({url:"/api/v1/posts/following",params:{ignoreCache:e.ignoreCache,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1PostsLiked:e.query({query:e=>({url:"/api/v1/posts/liked",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMentioned:e.query({query:e=>({url:"/api/v1/posts/mentioned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,private:e.private,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMy:e.query({query:e=>({url:"/api/v1/posts/my",params:{bookmarkedOnly:e.bookmarkedOnly,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,lastId:e.lastId,limit:e.limit,offset:e.offset,repostsOnly:e.repostsOnly,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsPins:e.query({query:e=>({url:"/api/v1/posts/pins",params:{postOnly:e.postOnly}})}),deleteApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"DELETE"})}),postApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"POST"})}),getApiV1PostsPublic:e.query({query:e=>({url:"/api/v1/posts/public",params:{includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,local:e.local,offset:e.offset,ownerType:e.ownerType,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),getApiV1PostsReplies:e.query({query:e=>({url:"/api/v1/posts/replies",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,htmlContent:e.htmlContent}})}),getApiV1PostsSubscribe:e.query({query:e=>({url:"/api/v1/posts/subscribe",params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostId:e.query({query:e=>({url:`/api/v1/posts/${e.postId}`,params:{includeBookmarkStatus:e.includeBookmarkStatus,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,withComments:e.withComments,withParents:e.withParents,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"DELETE"})}),deleteApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"DELETE"})}),postApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"POST"})}),getApiV1PostsByPostIdComments:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,params:{lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdComments:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"DELETE"})}),postApiV1PostsByPostIdDetach:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/detach`,method:"POST"})}),getApiV1PostsByPostIdEdits:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/edits`,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdLikes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"DELETE"})}),postApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"POST"})}),postApiV1PostsByPostIdRefreshCard:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/refresh-card`,method:"POST"})}),deleteApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"DELETE"})}),postApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdReposts:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/reposts`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,skipDuplicates:e.skipDuplicates,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"POST"})}),deleteApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"DELETE"})}),postApiV1PostsByPostIdTranslate:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/translate`,method:"POST",params:{htmlContent:e.htmlContent,lang:e.lang}})}),getApiV1Rbac:e.query({query:()=>({url:"/api/v1/rbac"})}),getApiV1RbacActorsByActorIdPermissions:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/permissions`,params:{scope:e.scope}})}),getApiV1RbacActorsByActorIdRoles:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/roles`,params:{scope:e.scope}})}),putApiV1RbacRolesByRoleId:e.mutation({query:e=>({url:`/api/v1/rbac/roles/${e.roleId}`,method:"PUT",body:e.rbacRoleTemplate})}),getApiV1RbacScopesByScopeRoles:e.query({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`})}),postApiV1RbacScopesByScopeRoles:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`,method:"POST",body:e.rbacRoleTemplate})}),deleteApiV1RbacScopesByScopeRolesAndRoleName:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles/${e.roleName}`,method:"DELETE"})}),getApiV1RbacByResource:e.query({query:e=>({url:`/api/v1/rbac/${e.resource}`})}),postApiV1Reports:e.mutation({query:e=>({url:"/api/v1/reports",method:"POST",body:e.createReport})}),putApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"PUT",body:e.rule})}),getApiV1Rules:e.query({query:()=>({url:"/api/v1/rules"})}),postApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"POST",params:{hint:e.hint,ordering:e.ordering,text:e.text}})}),postApiV1RulesReorder:e.mutation({query:e=>({url:"/api/v1/rules/reorder",method:"POST",body:e.body})}),deleteApiV1RulesById:e.mutation({query:e=>({url:`/api/v1/rules/${e.id}`,method:"DELETE"})}),getApiV1Search:e.query({query:e=>({url:"/api/v1/search",params:{actorType:e.actorType,fasp:e.fasp,filter:e.filter,followStatus:e.followStatus,followers:e.followers,following:e.following,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,q:e.q,resolve:e.resolve,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withComments:e.withComments,withParent:e.withParent,htmlContent:e.htmlContent}})}),deleteApiV1SessionsAll:e.mutation({query:()=>({url:"/api/v1/sessions/all",method:"DELETE"})}),getApiV1SessionsList:e.query({query:()=>({url:"/api/v1/sessions/list"})}),putApiV1SessionsRevokeAll:e.mutation({query:()=>({url:"/api/v1/sessions/revoke/all",method:"PUT"})}),putApiV1SessionsRevokeBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/revoke/${e.sessionKey}`,method:"PUT"})}),deleteApiV1SessionsBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/${e.sessionKey}`,method:"DELETE"})}),putApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"PUT",body:e.platformSettings})}),getApiV1Settings:e.query({query:e=>({url:"/api/v1/settings",params:{keys:e.keys}})}),deleteApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"DELETE",params:{keys:e.keys}})}),putApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"PUT",body:e.userSettings})}),getApiV1SettingsUser:e.query({query:e=>({url:"/api/v1/settings/user",params:{keys:e.keys}})}),deleteApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"DELETE",params:{keys:e.keys}})}),getApiV1TagsFeatured:e.query({query:e=>({url:"/api/v1/tags/featured",params:{userId:e.userId}})}),deleteApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"DELETE"})}),postApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"POST"})}),postApiV1TagsFollowByName:e.mutation({query:e=>({url:`/api/v1/tags/follow/${e.name}`,method:"POST"})}),getApiV1TagsFollowed:e.query({query:()=>({url:"/api/v1/tags/followed"})}),getApiV1TagsTrending:e.query({query:()=>({url:"/api/v1/tags/trending"})}),postApiV1TagsUnfollowByName:e.mutation({query:e=>({url:`/api/v1/tags/unfollow/${e.name}`,method:"POST"})}),getApiV1TagsByName:e.query({query:e=>({url:`/api/v1/tags/${e.name}`,params:{historySince:e.historySince}})}),postApiV1TranslateText:e.mutation({query:e=>({url:"/api/v1/translate/text",method:"POST",body:e.translationRequest})}),getApiV1TrendsLinks:e.query({query:()=>({url:"/api/v1/trends/links"})}),getApiV1TrendsPosts:e.query({query:e=>({url:"/api/v1/trends/posts",params:{htmlContent:e.htmlContent}})}),getApiV1TrendsTags:e.query({query:()=>({url:"/api/v1/trends/tags"})}),postApiV1Uploads:e.mutation({query:e=>({url:"/api/v1/uploads",method:"POST",body:e.createUpload})}),postApiV1UploadsBatch:e.mutation({query:e=>({url:"/api/v1/uploads/batch",method:"POST",body:e.body})}),postApiV1UploadsList:e.mutation({query:e=>({url:"/api/v1/uploads/list",method:"POST",body:e.uploadList})}),getApiV1UploadsSearch:e.query({query:e=>({url:"/api/v1/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType}})}),getApiV1UploadsUsages:e.query({query:e=>({url:"/api/v1/uploads/usages",params:{ids:e.ids}})}),getApiV1UploadsById:e.query({query:e=>({url:`/api/v1/uploads/${e.id}`})}),deleteApiV1UploadsById:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}`,method:"DELETE"})}),postApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"POST",body:e.body})}),putApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"PUT",body:e.body})}),postApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"POST",body:e.body})}),putApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"PUT",body:e.body})}),postApiV1UploadsByIdThumbnail:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/thumbnail`,method:"POST",body:e.changeVideoThumbnail})}),getApiV1UserAlias:e.query({query:()=>({url:"/api/v1/user-alias"})}),deleteApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"DELETE",params:{uri:e.uri}})}),postApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"POST",params:{acct:e.acct}})}),getApiV1UserDomainBlock:e.query({query:()=>({url:"/api/v1/user-domain-block"})}),deleteApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"DELETE"})}),postApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"POST"})}),deleteApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"DELETE",params:{id:e.id,name:e.name}})}),postApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"POST",body:e.userCreate,params:{account_id:e.accountId,email:e.email,htmlContent:e.htmlContent}})}),getApiV1Users:e.query({query:e=>({url:"/api/v1/users",params:{full:e.full,username:e.username,htmlContent:e.htmlContent}})}),getApiV1UsersCheck:e.query({query:e=>({url:"/api/v1/users/check",params:{username:e.username}})}),getApiV1UsersConnections:e.query({query:e=>({url:"/api/v1/users/connections",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersFollowByUsername:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),postApiV1UsersFollowByUsernameAccept:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/accept`,method:"POST"})}),postApiV1UsersFollowByUsernamePend:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/pend`,method:"POST"})}),postApiV1UsersFollowByUsernameReject:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/reject`,method:"POST"})}),postApiV1UsersFollowByUsernameUndo:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/undo`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),getApiV1UsersFollowees:e.query({query:e=>({url:"/api/v1/users/followees",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersFollowers:e.query({query:e=>({url:"/api/v1/users/followers",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInvite:e.mutation({query:e=>({url:"/api/v1/users/invite",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),postApiV1UsersInviteAccept:e.mutation({query:e=>({url:"/api/v1/users/invite/accept",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),getApiV1UsersInviteInviteeEntities:e.query({query:e=>({url:"/api/v1/users/invite/invitee/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeEntitiesByInviterUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/entities/${e.inviterUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInviters:e.query({query:e=>({url:"/api/v1/users/invite/invitee/inviters",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInvitersByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/inviters/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterEntities:e.query({query:e=>({url:"/api/v1/users/invite/inviter/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInvitees:e.query({query:e=>({url:"/api/v1/users/invite/inviter/invitees",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInviteesByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/inviter/invitees/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInviteReject:e.mutation({query:e=>({url:"/api/v1/users/invite/reject",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),postApiV1UsersInviteUndo:e.mutation({query:e=>({url:"/api/v1/users/invite/undo",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),getApiV1UsersRelationships:e.query({query:e=>({url:"/api/v1/users/relationships",params:{filter:e.filter,targets:e.targets}})}),getApiV1UsersRemoteByUserNameFullFollowers:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/followers`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRemoteByUserNameFullFollowing:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/following`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRenameHistory:e.query({query:()=>({url:"/api/v1/users/rename-history"})}),putApiV1UsersByUserId:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}`,method:"PUT",body:e.userUpdate,params:{htmlContent:e.htmlContent}})}),getApiV1UsersByUserId:e.query({query:e=>({url:`/api/v1/users/${e.userId}`,params:{allowDeleted:e.allowDeleted,full:e.full,htmlContent:e.htmlContent}})}),getApiV1UsersByUserIdFollowers:e.query({query:e=>({url:`/api/v1/users/${e.userId}/followers`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1UsersByUserIdFollowing:e.query({query:e=>({url:`/api/v1/users/${e.userId}/following`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1UsersByUserIdMedia:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}/media`,method:"PUT",body:e.userUpdateMedia,params:{htmlContent:e.htmlContent}})})}),overrideExisting:!1}),{usePostApiV1AccountsAddReasonMutation:kqe,usePostApiV1AccountsAuthenticateEmailMutation:xqe,usePostApiV1AccountsAuthenticatePhoneMutation:Sqe,usePutApiV1AccountsChangeNameMutation:Eqe,usePostApiV1AccountsCheckCaptchaMutation:Cqe,usePostApiV1AccountsConfirmEmailMutation:Rqe,usePostApiV1AccountsConfirmPhoneMutation:Tqe,useDeleteApiV1AccountsDeleteMutation:Aqe,usePostApiV1AccountsEmailChangeConfirmMutation:Iqe,usePostApiV1AccountsEmailChangeRequestMutation:$qe,usePutApiV1AccountsEmailChangeResendCodeMutation:Pqe,usePostApiV1AccountsFinishCreatingMutation:Oqe,usePutApiV1AccountsGetTokenByHashMutation:zqe,usePostApiV1AccountsLoginsAddEmailPasswordMutation:Mqe,usePostApiV1AccountsLoginsAddEmailPasswordConfirmMutation:Dqe,usePutApiV1AccountsLoginsAddEmailPasswordResendCodeMutation:Nqe,usePostApiV1AccountsLoginsAddPhoneMutation:Lqe,useDeleteApiV1AccountsLoginsRemoveEmailPasswordMutation:jqe,useDeleteApiV1AccountsLoginsRemovePhoneMutation:Bqe,usePostApiV1AccountsPasswordChangeConfirmMutation:Fqe,usePostApiV1AccountsPasswordChangeRequestMutation:Uqe,usePutApiV1AccountsPasswordChangeResendCodeMutation:Vqe,usePostApiV1AccountsPasswordRecoverMutation:qqe,usePostApiV1AccountsPasswordRecoverChangeMutation:Wqe,usePostApiV1AccountsPasswordRecoverCheckCodeMutation:Hqe,usePostApiV1AccountsPhoneChangeConfirmAuthMutation:Gqe,usePostApiV1AccountsPhoneChangeConfirmNewPhoneMutation:Kqe,usePostApiV1AccountsPhoneChangeNewPhoneMutation:Qqe,usePutApiV1AccountsPhoneChangeRequestMutation:Yqe,usePutApiV1AccountsPhoneChangeResendCodeAuthMutation:Zqe,usePutApiV1AccountsPhoneChangeResendCodeNewPhoneMutation:Xqe,useGetApiV1AccountsProfileQuery:Jqe,usePostApiV1AccountsReselectUserMutation:eWe,usePutApiV1AccountsResendCodeByHashMutation:tWe,usePutApiV1AccountsResendEmailByHashMutation:nWe,usePostApiV1AccountsSignupMutation:rWe,usePostApiV1AccountsSignupPhoneMutation:aWe,usePostApiV1AccountsUserReselectUserMutation:oWe,useGetApiV1AccountsByIdQuery:iWe,useGetApiV1AddressesSuggestQuery:sWe,useGetApiV1AdminAccountByAccountIdQuery:cWe,useGetApiV1AdminAuditLogQuery:lWe,usePutApiV1AdminChangeEmailMutation:fWe,usePutApiV1AdminChangePasswordMutation:uWe,usePutApiV1AdminChangeRoleAssignMutation:dWe,usePutApiV1AdminChangeRoleRevokeMutation:pWe,usePostApiV1AdminClearApErrorsMutation:hWe,usePostApiV1AdminCreateAccountMutation:mWe,useDeleteApiV1AdminDeleteMutation:gWe,useGetApiV1AdminDomainAllowQuery:yWe,usePostApiV1AdminDomainAllowMutation:_We,useDeleteApiV1AdminDomainAllowByDomainMutation:vWe,usePutApiV1AdminDomainBlockMutation:bWe,useGetApiV1AdminDomainBlockQuery:wWe,usePostApiV1AdminDomainBlockMutation:kWe,useGetApiV1AdminDomainBlockListQuery:xWe,useDeleteApiV1AdminDomainBlockByDomainMutation:SWe,useGetApiV1AdminFederationQuery:EWe,useGetApiV1AdminFederationMetricsOperationsQuery:CWe,useGetApiV1AdminFederationMetricsRunningAverageSingleQuery:RWe,useGetApiV1AdminFederationMetricsRunningAveragesAllQuery:TWe,useGetApiV1AdminFederationByDomainQuery:AWe,usePostApiV1AdminFeedClearUserFeedMutation:IWe,useGetApiV1AdminFeedMetricsGlobalAllOperationQuery:$We,useGetApiV1AdminFeedMetricsGlobalAllOwnersQuery:PWe,useGetApiV1AdminFeedMetricsGlobalSingleQuery:OWe,useGetApiV1AdminFeedMetricsHistoryQuery:zWe,useGetApiV1AdminFeedMetricsHistoryAllQuery:MWe,useGetApiV1AdminFeedMetricsHistoryAllSingleOwnerQuery:DWe,useGetApiV1AdminFeedMetricsHistoryByOwnerTypeQuery:NWe,useGetApiV1AdminFeedMetricsRunningAverageSingleQuery:LWe,useGetApiV1AdminFeedMetricsRunningAveragesAllQuery:jWe,useGetApiV1AdminFeedMetricsSlowestOperationsQuery:BWe,useGetApiV1AdminFeedMetricsSlowestUsersQuery:FWe,useGetApiV1AdminFeedMetricsSlowestUsersAllQuery:UWe,useGetApiV1AdminFeedMetricsSlowestUsersSingleQuery:VWe,useGetApiV1AdminFeedMetricsSummaryQuery:qWe,useGetApiV1AdminFeedMetricsUserCountAllQuery:WWe,useGetApiV1AdminFeedMetricsUserCountSingleQuery:HWe,usePostApiV1AdminFeedRegenerateUserFeedMutation:GWe,usePostApiV1AdminPostsDeleteMutation:KWe,useDeleteApiV1AdminPurgeMutation:QWe,usePostApiV1AdminRegenerateKeysMutation:YWe,usePostApiV1AdminRegenerateKeysAllMutation:ZWe,usePostApiV1AdminReportsDeletePostsMutation:XWe,useGetApiV1AdminReportsListQuery:JWe,useGetApiV1AdminReportsByReportIdQuery:eHe,usePostApiV1AdminReportsByReportIdAddNoteMutation:tHe,usePostApiV1AdminReportsByReportIdAssignToSelfMutation:nHe,useDeleteApiV1AdminReportsByReportIdDeleteMutation:rHe,usePostApiV1AdminReportsByReportIdRemoveNoteMutation:aHe,usePostApiV1AdminReportsByReportIdReopenMutation:oHe,usePostApiV1AdminReportsByReportIdResolveMutation:iHe,usePostApiV1AdminReportsByReportIdUnassignMutation:sHe,usePostApiV1AdminRestartApDeliveryMutation:cHe,useGetApiV1AdminSearchQuery:lHe,usePutApiV1AdminSignupRequestsApproveByHashMutation:fHe,useDeleteApiV1AdminSignupRequestsDeleteByHashMutation:uHe,useGetApiV1AdminSignupRequestsListQuery:dHe,usePutApiV1AdminSignupRequestsRejectByHashMutation:pHe,useGetApiV1AdminUploadsJobsQueueByQueueNameQuery:hHe,useGetApiV1AdminUploadsJobsSummaryQuery:mHe,useGetApiV1AdminUploadsSearchQuery:gHe,useGetApiV1AdminUploadsStorageByUserIdQuery:yHe,usePostApiV1AdminUserChangeStateMutation:_He,useGetApiV1AdminUserByUserIdQuery:vHe,usePostApiV1AppsMutation:bHe,useGetApiV1AppsQuery:wHe,useGetApiV1AppsEnabledQuery:kHe,useGetApiV1AppsGroupByGroupIdQuery:xHe,useDeleteApiV1AppsGroupByGroupIdAndAppIdMutation:SHe,usePutApiV1AppsGroupByGroupIdAndAppIdMutation:EHe,useGetApiV1AppsInstalledQuery:CHe,useGetApiV1AppsUserQuery:RHe,useDeleteApiV1AppsUserByAppIdMutation:THe,usePutApiV1AppsUserByAppIdMutation:AHe,usePutApiV1AppsByAppIdMutation:IHe,useGetApiV1AppsByAppIdQuery:$He,useDeleteApiV1AppsByAppIdMutation:PHe,useGetApiV1AppsByAppIdDataQuery:OHe,usePostApiV1AppsByAppIdDataMutation:zHe,usePutApiV1AppsByAppIdDataAndIdMutation:MHe,useDeleteApiV1AppsByAppIdDataAndIdMutation:DHe,usePutApiV1AppsByAppIdDefaultMutation:NHe,usePutApiV1AppsByAppIdDisableMutation:LHe,usePutApiV1AppsByAppIdEnableMutation:jHe,useGetApiV1AppsByAppIdStatsQuery:BHe,usePutApiV1AppsByAppIdUserDefaultMutation:FHe,useDeleteApiV1AppsByAppIdUserDefaultMutation:UHe,useGetApiV1BlockQuery:VHe,useGetApiV1BlockByQuery:qHe,useDeleteApiV1BlockByUserIdMutation:WHe,usePostApiV1BlockByUserIdMutation:HHe,usePostApiV1CategoriesMutation:GHe,useGetApiV1CategoriesNameByCategoryNameQuery:KHe,usePutApiV1CategoriesByCategoryIdMutation:QHe,useGetApiV1CategoriesByCategoryIdQuery:YHe,useDeleteApiV1CategoriesByCategoryIdMutation:ZHe,useGetApiV1CustomEmojisQuery:XHe,useDeleteApiV1CustomEmojisMutation:JHe,usePostApiV1CustomEmojisMutation:eGe,useGetApiV1CustomEmojisExportQuery:tGe,usePostApiV1CustomEmojisImportMutation:nGe,useGetApiV1CustomEmojisSearchQuery:rGe,usePostApiV1CustomEmojisUploadMutation:aGe,useGetApiV1DataQuery:oGe,usePostApiV1DataMutation:iGe,usePutApiV1DataByIdMutation:sGe,useDeleteApiV1DataByIdMutation:cGe,useGetApiV1DraftsQuery:lGe,usePostApiV1DraftsMutation:fGe,useGetApiV1DraftsPostByPostIdQuery:uGe,usePutApiV1DraftsByDraftIdMutation:dGe,useGetApiV1DraftsByDraftIdQuery:pGe,useDeleteApiV1DraftsByDraftIdMutation:hGe,usePostApiV1DraftsByDraftIdPublishMutation:mGe,useGetApiV1EventsQuery:gGe,usePostApiV1EventsMutation:yGe,useGetApiV1EventsCalendarGByGroupnameIcsQuery:_Ge,useGetApiV1EventsCalendarPByIdIcsQuery:vGe,useGetApiV1EventsCalendarUByUsernameIcsQuery:bGe,useGetApiV1EventsFollowingQuery:wGe,useGetApiV1EventsMyQuery:kGe,useGetApiV1EventsSettingsQuery:xGe,usePostApiV1EventsSettingsRegeneratePrivateIdMutation:SGe,usePostApiV1EventsSettingsUpdateMutation:EGe,usePutApiV1EventsByEventIdMutation:CGe,useGetApiV1EventsByEventIdQuery:RGe,useDeleteApiV1EventsByEventIdMutation:TGe,useGetApiV1EventsByEventIdIcsQuery:AGe,usePostApiV1EventsByEventIdAcceptMutation:IGe,useGetApiV1EventsByEventIdAttendeesQuery:$Ge,useDeleteApiV1EventsByEventIdAttendeesAndUserIdMutation:PGe,usePostApiV1EventsByEventIdAttendeesAndUserIdMutation:OGe,usePostApiV1EventsByEventIdCancelMutation:zGe,usePostApiV1EventsByEventIdInterestedMutation:MGe,usePostApiV1EventsByEventIdJoinMutation:DGe,useDeleteApiV1EventsByEventIdLeaveMutation:NGe,usePostApiV1EventsByEventIdMaybeMutation:LGe,useGetApiV1EventsByEventIdMutualQuery:jGe,usePostApiV1EventsByEventIdRejectMutation:BGe,usePostApiV1FaspClearMutation:FGe,useGetApiV1FaspDebugV0CallbackCallbacksQuery:UGe,useDeleteApiV1FaspDebugV0CallbackCallbacksByIdMutation:VGe,usePostApiV1FaspRegistrationMutation:qGe,usePostApiV1FaspByProviderIdCapabilitiesMutation:WGe,usePostApiV1FaspByProviderIdDebugCallMutation:HGe,useGetApiV1FaspByProviderIdRegistrationFinishQuery:GGe,usePostApiV1FaspByProviderIdRegistrationFinishMutation:KGe,usePostApiV1FaspByProviderIdRequestBackfillMutation:QGe,usePutApiV1ForumsByForumIdMutation:YGe,useGetApiV1ForumsByForumIdQuery:ZGe,useDeleteApiV1ForumsByForumIdMutation:XGe,useGetApiV1ForumsByForumIdCategoriesQuery:JGe,useGetApiV1ForumsByForumIdPostsQuery:eKe,useGetApiV1ForumsByForumIdTagsQuery:tKe,useGetApiV1ForumsByForumIdTagsSearchQuery:nKe,useGetApiV1GeoQuery:rKe,useGetApiV1GroupsQuery:aKe,usePostApiV1GroupsMutation:oKe,useGetApiV1GroupsAccountQuery:iKe,useGetApiV1GroupsMemberByUserIdQuery:sKe,useGetApiV1GroupsMemberByUserIdGroupsQuery:cKe,useGetApiV1GroupsNameByGroupnameQuery:lKe,useGetApiV1GroupsSearchQuery:fKe,usePutApiV1GroupsByGroupIdMutation:uKe,useGetApiV1GroupsByGroupIdQuery:dKe,useDeleteApiV1GroupsByGroupIdMutation:pKe,useGetApiV1GroupsByGroupIdForumQuery:hKe,usePostApiV1GroupsByGroupIdForumMutation:mKe,usePostApiV1GroupsByGroupIdJoinMutation:gKe,usePutApiV1GroupsByGroupIdMediaMutation:yKe,usePutApiV1GroupsByGroupIdMembersMutation:_Ke,useGetApiV1GroupsByGroupIdMembersQuery:vKe,usePostApiV1GroupsByGroupIdMembersMutation:bKe,useDeleteApiV1GroupsByGroupIdMembersAndMemberIdMutation:wKe,useGetApiV1GroupsByGroupIdUsersQuery:kKe,useGetApiV1ImportQuery:xKe,usePostApiV1ImportMutation:SKe,usePostApiV1ImportStartByIdMutation:EKe,useGetApiV1ImportByIdQuery:CKe,useGetApiV1InstanceQuery:RKe,useGetApiV1InstanceCountriesQuery:TKe,useGetApiV1InstanceDomainsQuery:AKe,useGetApiV1InstanceExtendedDescriptionQuery:IKe,useGetApiV1InstanceSupportedLanguagesQuery:$Ke,useGetApiV1InstanceTimezonesQuery:PKe,useGetApiV1JobsListJobsQuery:OKe,useGetApiV1JobsListStatsQuery:zKe,useGetApiV1JobsListStatsAllQuery:MKe,useGetApiV1JobsListsQuery:DKe,useGetApiV1JobsStatsQuery:NKe,useGetApiV1JobsStatsPerDayQuery:LKe,useGetApiV1LinksQuery:jKe,useGetApiV1ListsQuery:BKe,usePostApiV1ListsMutation:FKe,usePutApiV1ListsByListIdMutation:UKe,useGetApiV1ListsByListIdQuery:VKe,useDeleteApiV1ListsByListIdMutation:qKe,useGetApiV1ListsByListIdUsersQuery:WKe,useDeleteApiV1ListsByListIdUsersAndUserIdMutation:HKe,usePostApiV1ListsByListIdUsersAndUserIdMutation:GKe,useGetApiV1MetricsQuery:KKe,useGetApiV1MetricsTotalsQuery:QKe,useGetApiV1MuteQuery:YKe,useDeleteApiV1MuteByUserIdMutation:ZKe,usePostApiV1MuteByUserIdMutation:XKe,usePutApiV1NotesMutation:JKe,useGetApiV1NotesQuery:eQe,useDeleteApiV1NotesByUserIdMutation:tQe,useGetApiV1NotificationsQuery:nQe,useGetApiV1NotificationsCountQuery:rQe,usePostApiV1NotificationsMarkAllMutation:aQe,useGetApiV1NotificationsByIdQuery:oQe,usePostApiV1NotificationsByIdMarkMutation:iQe,usePostApiV1PollsByPollIdRefreshMutation:sQe,usePostApiV1PollsByPollIdVoteMutation:cQe,useGetApiV1PostsQuery:lQe,usePostApiV1PostsMutation:fQe,useGetApiV1PostsBookmarksQuery:uQe,useGetApiV1PostsFollowingQuery:dQe,useGetApiV1PostsLikedQuery:pQe,useGetApiV1PostsMentionedQuery:hQe,useGetApiV1PostsMyQuery:mQe,useGetApiV1PostsPinsQuery:gQe,useDeleteApiV1PostsPinsByPostIdMutation:yQe,usePostApiV1PostsPinsByPostIdMutation:_Qe,useGetApiV1PostsPublicQuery:vQe,useGetApiV1PostsRepliesQuery:bQe,useGetApiV1PostsSubscribeQuery:wQe,usePutApiV1PostsByPostIdMutation:kQe,useGetApiV1PostsByPostIdQuery:xQe,useDeleteApiV1PostsByPostIdMutation:SQe,useDeleteApiV1PostsByPostIdBookmarkMutation:EQe,usePostApiV1PostsByPostIdBookmarkMutation:CQe,useGetApiV1PostsByPostIdCommentsQuery:RQe,usePostApiV1PostsByPostIdCommentsMutation:TQe,usePutApiV1PostsByPostIdCommentsAndCommentIdMutation:AQe,useDeleteApiV1PostsByPostIdCommentsAndCommentIdMutation:IQe,usePostApiV1PostsByPostIdDetachMutation:$Qe,useGetApiV1PostsByPostIdEditsQuery:PQe,useGetApiV1PostsByPostIdLikesQuery:OQe,useDeleteApiV1PostsByPostIdLikesMutation:zQe,usePostApiV1PostsByPostIdLikesMutation:MQe,usePostApiV1PostsByPostIdRefreshCardMutation:DQe,useDeleteApiV1PostsByPostIdRepostMutation:NQe,usePostApiV1PostsByPostIdRepostMutation:LQe,useGetApiV1PostsByPostIdRepostsQuery:jQe,usePostApiV1PostsByPostIdSubscribeMutation:BQe,useDeleteApiV1PostsByPostIdSubscribeMutation:FQe,usePostApiV1PostsByPostIdTranslateMutation:UQe,useGetApiV1RbacQuery:VQe,useGetApiV1RbacActorsByActorIdPermissionsQuery:qQe,useGetApiV1RbacActorsByActorIdRolesQuery:WQe,usePutApiV1RbacRolesByRoleIdMutation:HQe,useGetApiV1RbacScopesByScopeRolesQuery:GQe,usePostApiV1RbacScopesByScopeRolesMutation:KQe,useDeleteApiV1RbacScopesByScopeRolesAndRoleNameMutation:QQe,useGetApiV1RbacByResourceQuery:YQe,usePostApiV1ReportsMutation:ZQe,usePutApiV1RulesMutation:XQe,useGetApiV1RulesQuery:JQe,usePostApiV1RulesMutation:eYe,usePostApiV1RulesReorderMutation:tYe,useDeleteApiV1RulesByIdMutation:nYe,useGetApiV1SearchQuery:ZJ,useDeleteApiV1SessionsAllMutation:rYe,useGetApiV1SessionsListQuery:aYe,usePutApiV1SessionsRevokeAllMutation:oYe,usePutApiV1SessionsRevokeBySessionKeyMutation:iYe,useDeleteApiV1SessionsBySessionKeyMutation:sYe,usePutApiV1SettingsMutation:cYe,useGetApiV1SettingsQuery:lYe,useDeleteApiV1SettingsMutation:fYe,usePutApiV1SettingsUserMutation:uYe,useGetApiV1SettingsUserQuery:dYe,useDeleteApiV1SettingsUserMutation:pYe,useGetApiV1TagsFeaturedQuery:hYe,useDeleteApiV1TagsFeaturedByNameMutation:mYe,usePostApiV1TagsFeaturedByNameMutation:gYe,usePostApiV1TagsFollowByNameMutation:yYe,useGetApiV1TagsFollowedQuery:_Ye,useGetApiV1TagsTrendingQuery:vYe,usePostApiV1TagsUnfollowByNameMutation:bYe,useGetApiV1TagsByNameQuery:wYe,usePostApiV1TranslateTextMutation:kYe,useGetApiV1TrendsLinksQuery:xYe,useGetApiV1TrendsPostsQuery:SYe,useGetApiV1TrendsTagsQuery:EYe,usePostApiV1UploadsMutation:CYe,usePostApiV1UploadsBatchMutation:RYe,usePostApiV1UploadsListMutation:TYe,useGetApiV1UploadsSearchQuery:AYe,useGetApiV1UploadsUsagesQuery:IYe,useGetApiV1UploadsByIdQuery:$Ye,useDeleteApiV1UploadsByIdMutation:PYe,usePostApiV1UploadsByIdMetaMutation:OYe,usePutApiV1UploadsByIdMetaMutation:zYe,usePostApiV1UploadsByIdTagsMutation:MYe,usePutApiV1UploadsByIdTagsMutation:DYe,usePostApiV1UploadsByIdThumbnailMutation:NYe,useGetApiV1UserAliasQuery:LYe,useDeleteApiV1UserAliasMutation:jYe,usePostApiV1UserAliasMutation:BYe,useGetApiV1UserDomainBlockQuery:FYe,useDeleteApiV1UserDomainBlockByDomainMutation:UYe,usePostApiV1UserDomainBlockByDomainMutation:VYe,useDeleteApiV1UsersMutation:qYe,usePostApiV1UsersMutation:WYe,useGetApiV1UsersQuery:HYe,useGetApiV1UsersCheckQuery:GYe,useGetApiV1UsersConnectionsQuery:KYe,usePostApiV1UsersFollowByUsernameMutation:QYe,usePostApiV1UsersFollowByUsernameAcceptMutation:YYe,usePostApiV1UsersFollowByUsernamePendMutation:ZYe,usePostApiV1UsersFollowByUsernameRejectMutation:XYe,usePostApiV1UsersFollowByUsernameUndoMutation:JYe,useGetApiV1UsersFolloweesQuery:eZe,useGetApiV1UsersFollowersQuery:tZe,usePostApiV1UsersInviteMutation:nZe,usePostApiV1UsersInviteAcceptMutation:rZe,useGetApiV1UsersInviteInviteeEntitiesQuery:aZe,useGetApiV1UsersInviteInviteeEntitiesByInviterUserQuery:oZe,useGetApiV1UsersInviteInviteeInvitersQuery:iZe,useGetApiV1UsersInviteInviteeInvitersByEntityUserQuery:sZe,useGetApiV1UsersInviteInviterEntitiesQuery:cZe,useGetApiV1UsersInviteInviterInviteesQuery:lZe,useGetApiV1UsersInviteInviterInviteesByEntityUserQuery:fZe,usePostApiV1UsersInviteRejectMutation:uZe,usePostApiV1UsersInviteUndoMutation:dZe,useGetApiV1UsersRelationshipsQuery:pZe,useGetApiV1UsersRemoteByUserNameFullFollowersQuery:hZe,useGetApiV1UsersRemoteByUserNameFullFollowingQuery:mZe,useGetApiV1UsersRenameHistoryQuery:gZe,usePutApiV1UsersByUserIdMutation:yZe,useGetApiV1UsersByUserIdQuery:_Ze,useGetApiV1UsersByUserIdFollowersQuery:vZe,useGetApiV1UsersByUserIdFollowingQuery:bZe,usePutApiV1UsersByUserIdMediaMutation:wZe}=ar,e$={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!!Xh.getToken(),isAuthenticated:!1},p1=ia({name:"auth",initialState:e$,reducers:{login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload||null,e.isPending=!1},logout:()=>({...e$,isPending:!1}),setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload},showAuthBlock:(e,t)=>{e.isAuthBlockVisible=t.payload}},selectors:{selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectAuthBlockVisible:e=>e.isAuthBlockVisible,selectIsAuthenticated:e=>e.isAuthenticated}}),XJ={data:null,isPending:!1,isSuccess:!1},qo=ia({name:"userNoHTML",initialState:XJ,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}});var t$,Hx={};function JJ(){return t$||(t$=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],n=[],r=[],a=[],o=(e,t)=>{if("function"!=typeof e)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeBefore=e=>o(e,t),e.subscribeAfter=e=>o(e,n);const i=(e,t)=>{if(!e.action)throw new Error("Expected the action to be a string.");if("function"!=typeof e.listener)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeActionBefore=(e,t)=>i({action:e,listener:t},r),e.subscribeActionAfter=(e,t)=>i({action:e,listener:t},a),e.unsubscribeBefore=()=>{t.length=0},e.unsubscribeActionsBefore=()=>{r.length=0},e.unsubscribeAfter=()=>{n.length=0},e.unsubscribeActionsAfter=()=>{a.length=0},e.unsubscribeAll=()=>{e.unsubscribeBefore(),e.unsubscribeActionsBefore(),e.unsubscribeAfter(),e.unsubscribeActionsAfter()};const s=(e,t)=>{const n=e.filter((({action:e})=>e!==t));e.length=0,e.concat(n)};e.unsubscribeActionBefore=e=>{s(r,e)},e.unsubscribeActionAfter=e=>{s(a,e)},e.unsubscribeActionAll=t=>{e.unsubscribeActionBefore(t),e.unsubscribeActionAfter(t)};const c=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r(e)}},l=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r.action===e.type&&r.listener(e)}};e.subscribeActionMiddleware=e=>e=>o=>{c(o,t),l(o,r);const i=e(o);return c(o,n),l(o,a),i},e.default=e.subscribeActionMiddleware}(Hx)),Hx}var eee=JJ();const tee=Dl(eee),aT=e=>e,N7=io(aT,(e=>e.data)),nee=io(aT,(e=>e.error)),ree=io(aT,(e=>e.isPending)),aee=io(N7,(e=>null==e?void 0:e.rules)),oee={data:null,isPending:!1},gb=ia({name:"instanceInfo",initialState:oee,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:N7,selectInstanceInfoError:nee,selectInstanceInfoPending:ree,selectPlatformRules:aee,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),iee={data:null,isPending:!1,isSuccess:!1},Vb=ia({name:"profileSettings",initialState:iee,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),see={sms:"wellesley.admin.sms",auth:"wellesley.admin.auth",openai:"wellesley.admin.openai",uploads:"wellesley.admin.uploads",captcha:"wellesley.admin.captcha",language:"wellesley.admin.language",mediacache:"wellesley.admin.mediacache",translation:"wellesley.admin.translation"},cee={posts:"wellesley.posts",registration:"wellesley.registration",confirmationCode:"wellesley.confirmationCode",uploadsPolicyDoc:"wellesley.uploads.policy.doc",uploadsPolicyAudio:"wellesley.uploads.policy.audio",uploadsPolicyImage:"wellesley.uploads.policy.image",uploadsPolicyVideo:"wellesley.uploads.policy.video",captcha:"wellesley.captcha"},lee={data:null,isPending:!1},{posts:Gx,uploadsPolicyDoc:n$,uploadsPolicyAudio:Kx,uploadsPolicyImage:Mv,uploadsPolicyVideo:j0,registration:fee,captcha:uee}=cee,{captcha:dee,language:pee,translation:hee,openai:mee}=see,C1=e=>e.data,gee=io(C1,(e=>{var t,n,r;return{max_characters:(null==(t=null==e?void 0:e[Gx])?void 0:t.max_characters)||0,max_media_attachments:(null==(n=null==e?void 0:e[Gx])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==e?void 0:e[Gx])?void 0:r.max_pins)||0}})),L7=io(C1,(e=>{var t,n,r;return{...null==e?void 0:e[Mv],maxSize:(null==(t=null==e?void 0:e[Mv])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[Mv])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==e?void 0:e[Mv])?void 0:r.maxResolution)||0}})),j7=io(C1,(e=>{var t,n,r,a;return{...null==e?void 0:e[j0],maxSize:(null==(t=null==e?void 0:e[j0])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[j0])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[j0])?void 0:r.maxDuration)||0,maxResolution:(null==(a=null==e?void 0:e[j0])?void 0:a.maxResolution)||0}})),B7=io(C1,(e=>{var t,n;return{...null==e?void 0:e[Kx],maxSize:null==(t=null==e?void 0:e[Kx])?void 0:t.maxSize,keepOriginal:(null==(n=null==e?void 0:e[Kx])?void 0:n.keepOriginal)||0}})),F7=io(C1,(e=>{var t;return{...null==e?void 0:e[n$],maxSize:(null==(t=null==e?void 0:e[n$])?void 0:t.maxSize)||0}})),U7=io([L7,j7,B7,F7],((e,t,n,r)=>({IMAGE:null==e?void 0:e.extensions,VIDEO:null==t?void 0:t.extensions,AUDIO:null==n?void 0:n.extensions,DOCUMENT:null==r?void 0:r.extensions}))),yee=io(U7,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),yy=ia({name:"platformSettings",initialState:lee,reducers:{setSettings:(e,t)=>{e.data={...e.data,...t.payload}},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectSettings:C1,selectPostConfig:gee,selectDocPolicy:F7,selectImagePolicy:L7,selectVideoPolicy:j7,selectAudioPolicy:B7,selectSupportedExtensions:U7,selectFullExtensionsList:yee,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[fee]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[pee]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[hee]},selectOpenai:e=>{var t;return null==(t=e.data)?void 0:t[mee]},selectCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[uee]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[dee]}}}),r$={data:{userId:"",list:[]},count:{},isPending:!1},_ee=e=>e,vee=e=>e.error,bee=e=>e.isPending,wee=e=>{var t;return null==(t=e.count)?void 0:t.total},kee=e=>{var t;return null==(t=e.count)?void 0:t.unread},xee=e=>e.data.userId,oT=io(_ee,(e=>e.data.list)),See=io(oT,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),Eee=io(oT,(e=>null==e?void 0:e.at(-1))),xl=ia({name:"notifications",initialState:r$,reducers:{setPending:(e,t)=>{e.isPending=t.payload},setError:(e,t)=>{e.error=t.payload},setNotifications:(e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}},addNotification:(e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])},markNotification:(e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))},updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},setTotalCount:(e,t)=>{e.count.total=t.payload},setUnreadCount:(e,t)=>{e.count.unread=t.payload},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))},resetState:()=>r$,undoNotitication:(e,t)=>{var n,r,a;const o=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===o)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(a=e.data.list)?void 0:a.filter((e=>e.id!==o)))||[]}},selectors:{selectError:vee,selectIsPending:bee,selectTotalCount:wee,selectUnreadCount:kee,selectNotifications:oT,selectUnreadNotifications:See,selectLastNotification:Eee,selectNotificationsOwner:xee}}),Cee=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},Ree={deviceType:Cee()},iT=ia({name:"ui",initialState:Ree,reducers:{setDeviceType:(e,{payload:t})=>{e.deviceType=t}},selectors:{selectDeviceType:e=>e.deviceType,selectIsMobile:e=>"mobile"===e.deviceType,selectIsTablet:e=>"tablet"===e.deviceType,selectIsDesktop:e=>"desktop"===e.deviceType}});function Tee(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const Aee={isOnline:Tee()},Iee=ia({name:"network",initialState:Aee,reducers:{setOnline:(e,{payload:t})=>{e.isOnline=t}},selectors:{selectOnline:e=>e.isOnline}});var $ee={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/router/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/router/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"66cc23d6587139ac",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/router",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.172",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/router",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/router",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/router"};const R1=YW(ar,Iee,iT,p1,ro,qo,gb,xl,Vb,yy);let J0;const Pee=e=>{const t=wW({devTools:{name:$ee.APP_NAME},reducer:R1,preloadedState:e,middleware:e=>e().concat(ar.middleware,tee)});return J0=t,t},h1=e=>J0||(J0=Pee(e),J0),Oee={path:"",transitionPath:""},Ko=ia({name:"router",initialState:Oee,reducers:{setPath:(e,{payload:t})=>{t!==e.path&&(e.path=t)},requestChangePath:(e,{payload:t})=>{t!==e.transitionPath&&(e.transitionPath=t)}},selectors:{selectPath:e=>e.path,selectTransitionPath:e=>e.transitionPath}}).injectInto(R1),V7=(e,t)=>{const n=Lq(null==t?void 0:t.queryParams);return(null!=t&&t.props&&!Xd.isNumber(e)?BN(e,null==t?void 0:t.props):e)+n},zee=e=>!(null==e||!e.target);function fC(e,t){const n=V7(e,t);if(zee(t)&&"_blank"===t.target){const{origin:e}=new URL(document.referrer||window.location.origin),t=n.includes("://")?n:e+n;window.open(t,"_blank")}else h1().dispatch(Ko.actions.requestChangePath(n))}const q7=()=>fC;var a$,o$,i$,s$,Qx={exports:{}},gi={},Yx={exports:{}},Zx={};
|
|
36
|
+
*/function TH(){if(YI)return Px;YI=1;var e=kw();var t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,a=e.useEffect,o=e.useMemo,i=e.useDebugValue;return Px.useSyncExternalStoreWithSelector=function(e,s,c,l,u){var f=r(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=o((function(){function e(e){if(!a){if(a=!0,n=e,e=l(e),void 0!==u&&d.hasValue){var o=d.value;if(u(o,e))return r=o}return r=e}if(o=r,t(n,e))return o;var i=l(e);return void 0!==u&&u(o,i)?o:(n=e,r=i)}var n,r,a=!1,o=void 0===c?null:c;return[function(){return e(s())},null===o?void 0:function(){return e(o())}]}),[s,c,l,u]);var p=n(e,f[0],f[1]);return a((function(){d.hasValue=!0,d.value=p}),[p]),i(p),p},Px}function AH(){return ZI||(ZI=1,$x.exports=TH()),$x.exports}var IH=AH(),Cl="default"in Ab?ze:Ab,XI=Symbol.for("react-redux-context"),JI=typeof globalThis<"u"?globalThis:{};function $H(){if(!Cl.createContext)return{};const e=JI[XI]??(JI[XI]=new Map);let t=e.get(Cl.createContext);return t||(t=Cl.createContext(null),e.set(Cl.createContext,t)),t}var Zh=$H(),PH=()=>{throw new Error("uSES not initialized!")};function CR(e=Zh){return function(){return Cl.useContext(e)}}var f8=CR(),u8=PH,OH=e=>{u8=e},zH=(e,t)=>e===t;function MH(e=Zh){const t=e===Zh?f8:CR(e),n=(e,n={})=>{const{equalityFn:r=zH,devModeChecks:a={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:i,getServerState:s,stabilityCheck:c,identityFunctionCheck:l}=t();Cl.useRef(!0);const u=Cl.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,a.stabilityCheck]),f=u8(i.addNestedSub,o.getState,s||o.getState,u,r);return Cl.useDebugValue(f),f};return Object.assign(n,{withTypes:()=>n}),n}var Tc=MH();function DH(e){e()}var NH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function e9(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function fy(e,t){if(e9(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!e9(e[n[r]],t[n[r]]))return!1;return!0}function d8(e=Zh){const t=e===Zh?f8:CR(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}NH?Cl.useLayoutEffect:Cl.useEffect;var p8=d8();function LH(e=Zh){const t=e===Zh?p8:d8(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var g_=LH(),jH=DH;function BH(e){return"query"===e.type}function FH(e){return"mutation"===e.type}function xv(e,...t){return Object.assign(e,...t)}function Ox(e){return e.replace(e[0],e[0].toUpperCase())}OH(IH.useSyncExternalStoreWithSelector);var zg=WeakMap?new WeakMap:void 0,UH=({endpointName:e,queryArgs:t})=>{let n="";const r=null==zg?void 0:zg.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Il(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Il(t)&&(null==zg||zg.set(t,e)),n=e}return`${e}(${n})`},zx=Symbol();function t9(e,t,n,r){const a=v.useMemo((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),o=v.useRef(a);return v.useEffect((()=>{o.current.serialized!==a.serialized&&(o.current=a)}),[a]),o.current.serialized===a.serialized?o.current.queryArgs:e}function Mx(e){const t=v.useRef(e);return v.useEffect((()=>{fy(t.current,e)||(t.current=e)}),[e]),fy(t.current,e)?t.current:e}var VH=typeof window<"u"&&window.document&&window.document.createElement?v.useLayoutEffect:v.useEffect,qH=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:r8.pending}:e;function WH({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:a},unstable__sideEffectsInRender:o,createSelector:i},serializeQueryArgs:s,context:c}){const l=o?e=>e():v.useEffect;return{buildQueryHooks:function(o){const f=(t,{refetchOnReconnect:r,refetchOnFocus:a,refetchOnMountOrArgChange:i,skip:s=!1,pollingInterval:u=0,skipPollingIfUnfocused:f=!1}={})=>{const{initiate:d}=e.endpoints[o],p=n(),h=v.useRef();if(!h.current){const t=p(e.internalActions.internal_getRTKQSubscriptions());h.current=t}const m=t9(s?Bh:t,UH,c.endpointDefinitions[o],o),g=Mx({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:u,skipPollingIfUnfocused:f}),y=v.useRef(!1),b=v.useRef();let{queryCacheKey:_,requestId:w}=b.current||{},k=!1;_&&w&&(k=h.current.isRequestSubscribed(_,w));const x=!k&&y.current;return l((()=>{y.current=k})),l((()=>{x&&(b.current=void 0)}),[x]),l((()=>{var e;const t=b.current;if(m===Bh)return null==t||t.unsubscribe(),void(b.current=void 0);const n=null==(e=b.current)?void 0:e.subscriptionOptions;if(t&&t.arg===m)g!==n&&t.updateSubscriptionOptions(g);else{null==t||t.unsubscribe();const e=p(d(m,{subscriptionOptions:g,forceRefetch:i}));b.current=e}}),[p,d,i,m,g,x]),v.useEffect((()=>()=>{var e;null==(e=b.current)||e.unsubscribe(),b.current=void 0}),[]),v.useMemo((()=>({refetch:()=>{var e;if(!b.current)throw new Error(Na(38));return null==(e=b.current)?void 0:e.refetch()}})),[])},d=({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:i=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:c}=e.endpoints[o],u=n(),[f,d]=v.useState(zx),p=v.useRef(),h=Mx({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:i,skipPollingIfUnfocused:s});l((()=>{var e,t;const n=null==(e=p.current)?void 0:e.subscriptionOptions;h!==n&&(null==(t=p.current)||t.updateSubscriptionOptions(h))}),[h]);const m=v.useRef(h);l((()=>{m.current=h}),[h]);const g=v.useCallback((function(e,n=!1){let r;return t((()=>{var t;null==(t=p.current)||t.unsubscribe(),p.current=r=u(c(e,{subscriptionOptions:m.current,forceRefetch:!n})),d(e)})),r}),[u,c]);return v.useEffect((()=>()=>{var e;null==(e=null==p?void 0:p.current)||e.unsubscribe()}),[]),v.useEffect((()=>{f!==zx&&!p.current&&g(f,!0)}),[f,g]),v.useMemo((()=>[g,f]),[g,f])},p=(t,{skip:n=!1,selectFromResult:l}={})=>{const{select:f}=e.endpoints[o],d=t9(n?Bh:t,s,c.endpointDefinitions[o],o),p=v.useRef(),h=v.useMemo((()=>i([f(d),(e,t)=>t,e=>d],u,{memoizeOptions:{resultEqualityCheck:fy}})),[f,d]),m=v.useMemo((()=>l?i([h],l,{devModeChecks:{identityFunctionCheck:"never"}}):h),[h,l]),g=r((e=>m(e,p.current)),fy),y=a(),b=h(y.getState(),p.current);return VH((()=>{p.current=b}),[b]),g};return{useQueryState:p,useQuerySubscription:f,useLazyQuerySubscription:d,useLazyQuery(e){const[t,n]=d(e),r=p(n,{...e,skip:n===zx}),a=v.useMemo((()=>({lastArg:n})),[n]);return v.useMemo((()=>[t,r,a]),[t,r,a])},useQuery(e,t){const n=f(e,t),r=p(e,{selectFromResult:e===Bh||null!=t&&t.skip?void 0:qH,...t}),{data:a,status:o,isLoading:i,isSuccess:s,isError:c,error:l}=r;return v.useDebugValue({data:a,status:o,isLoading:i,isSuccess:s,isError:c,error:l}),v.useMemo((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(a){return({selectFromResult:o,fixedCacheKey:s}={})=>{const{select:c,initiate:l}=e.endpoints[a],u=n(),[f,d]=v.useState();v.useEffect((()=>()=>{null!=f&&f.arg.fixedCacheKey||null==f||f.reset()}),[f]);const p=v.useCallback((function(e){const t=u(l(e,{fixedCacheKey:s}));return d(t),t}),[u,l,s]),{requestId:h}=f||{},m=v.useMemo((()=>c({fixedCacheKey:s,requestId:null==f?void 0:f.requestId})),[s,f,c]),g=v.useMemo((()=>o?i([m],o):m),[o,m]),y=r(g,fy),b=null==s?null==f?void 0:f.arg.originalArgs:void 0,_=v.useCallback((()=>{t((()=>{f&&d(void 0),s&&u(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:s}))}))}),[u,s,f,h]),{endpointName:w,data:k,status:x,isLoading:S,isSuccess:E,isError:A,error:C}=y;v.useDebugValue({endpointName:w,data:k,status:x,isLoading:S,isSuccess:E,isError:A,error:C});const z=v.useMemo((()=>({...y,originalArgs:b,reset:_})),[y,b,_]);return v.useMemo((()=>[p,z]),[p,z])}},usePrefetch:function(t,r){const a=n(),o=Mx(r);return v.useCallback(((n,r)=>a(e.util.prefetch(t,n,{...o,...r}))),[t,a,o])}};function u(e,t,n){if(null!=t&&t.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=c.endpointDefinitions[e];s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:null==t?void 0:t.data;void 0===r&&(r=e.data);const a=void 0!==r,o=e.isLoading,i=!a&&o,l=e.isSuccess||o&&a;return{...e,data:r,currentData:e.data,isFetching:o,isLoading:i,isSuccess:l}}}var HH=Symbol(),GH=({batch:e=jH,hooks:t={useDispatch:g_,useSelector:Tc,useStore:p8},createSelector:n=io,unstable__sideEffectsInRender:r=!1,...a}={})=>({name:HH,init(a,{serializeQueryArgs:o},i){const s=a,{buildQueryHooks:c,buildMutationHook:l,usePrefetch:u}=WH({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:o,context:i});return xv(s,{usePrefetch:u}),xv(i,{batch:e}),{injectEndpoint(e,t){if(BH(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}=c(e);xv(s.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}),a[`use${Ox(e)}Query`]=t,a[`useLazy${Ox(e)}Query`]=n}else if(FH(t)){const t=l(e);xv(s.endpoints[e],{useMutation:t}),a[`use${Ox(e)}Mutation`]=t}}}}}),KH=mH(RH(),GH());const RR="auth_token",h8=()=>localStorage.getItem(RR)||void 0,QH=e=>localStorage.setItem(RR,e),YH=()=>localStorage.removeItem(RR),ZH=()=>!!h8(),Xh={getToken:h8,setToken:QH,removeToken:YH,hasToken:ZH},XH="remote-ready",m8=Er("reselectUser"),TR=Er("requestLogin"),g8=Er("requestLogout"),JH="host-store-connect",y8=Er("remoteLogin"),AR=Er("remoteLogout"),n9=Er("requestMicroFrontendFetch"),eG=Er("sendMicroFrontendFetchResponse"),tG=e=>{Xh.removeToken(),e(AR())},nG=e=>async(t,n,r)=>{const a=await e(t,n,r);return a.error&&[401].includes(a.error.status)&&tG(n.dispatch),a},rG=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},aG=5,oG=e=>t=>!!e&&t.includes(e.status),r9=e=>new Promise((t=>setTimeout(t,1e3*e))),iG=e=>async(t,n,r)=>{const a=(null==r?void 0:r.maxRetries)??5;await rG((()=>n.getState().network.isOnline));let o=0;const i=async()=>{var s,c,l,u;const f=await e(t,n,r),d=f.error;if(o>=a)return f;o>0&&await r9(Math.pow(2,o)),o++;const p=oG(d);switch(!0){case"mutation"===n.type:return f;case!navigator.onLine:case p([408,404]):case d&&"FETCH_ERROR"===(null==d?void 0:d.status):case d&&d.status>=500:return await i();case 429===(null==(s=null==f?void 0:f.error)?void 0:s.status):{const e=null==(u=null==(l=null==(c=f.meta)?void 0:c.response)?void 0:l.headers)?void 0:u.get("Retry-After");return await r9(+(e||"0")),await i()}default:return f}};return await i()};var Ib=(e=>(e.SERVER_RULES="serverRules",e.EVENT_ATTENDEES="eventAttendees",e))(Ib||{});const IR=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,uy="8.48.0",Co=globalThis;function Rw(e,t,n){const r=Co,a=r.__SENTRY__=r.__SENTRY__||{},o=a[uy]=a[uy]||{};return o[e]||(o[e]=t())}const y_=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,sG="Sentry Logger ",a9=["debug","info","warn","error","log","assert","trace"],o9={};function $R(e){if(!("console"in Co))return e();const t=Co.console,n={},r=Object.keys(o9);r.forEach((e=>{const r=o9[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function cG(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return y_?a9.forEach((n=>{t[n]=(...t)=>{e&&$R((()=>{Co.console[n](`${sG}[${n}]:`,...t)}))}})):a9.forEach((e=>{t[e]=()=>{}})),t}const Go=Rw("logger",cG),Dx="<anonymous>";function ru(e){try{return e&&"function"==typeof e&&e.name||Dx}catch{return Dx}}function i9(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch{return}}}const db={},s9={};function _8(e,t){db[e]=db[e]||[],db[e].push(t)}function v8(e,t){if(!s9[e]){s9[e]=!0;try{t()}catch(t){y_&&Go.error(`Error while instrumenting ${e}`,t)}}}function q4(e,t){const n=e&&db[e];if(n)for(const r of n)try{r(t)}catch(t){y_&&Go.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ru(r)}\nError:`,t)}}function __(){return PR(Co),Co}function PR(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||uy,t[uy]=t[uy]||{}}const b8=Object.prototype.toString;function lG(e){switch(b8.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Tw(e,Error)}}function OR(e,t){return b8.call(e)===`[object ${t}]`}function $b(e){return OR(e,"String")}function zR(e){return OR(e,"Object")}function fG(e){return typeof Event<"u"&&Tw(e,Event)}function uG(e){return typeof Element<"u"&&Tw(e,Element)}function dG(e){return OR(e,"RegExp")}function MR(e){return!(!e||!e.then||"function"!=typeof e.then)}function pG(e){return zR(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Tw(e,t){try{return e instanceof t}catch{return!1}}function hG(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const w8=Co,mG=80;function DR(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,a=[];let o=0,i=0;const s=" > ",c=s.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++<r&&(l=gG(n,u),!("html"===l||o>1&&i+a.length*c+l.length>=f));)a.push(l),i+=l.length,n=n.parentNode;return a.reverse().join(s)}catch{return"<unknown>"}}function gG(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(w8.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const a=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(a&&a.length)a.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&$b(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const o=["aria-label","type","name","title","alt"];for(const e of o){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function yG(){try{return w8.document.location.href}catch{return""}}function Nx(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function _G(e,t,n=!1){return!!$b(e)&&(dG(t)?t.test(e):!!$b(t)&&(n?e===t:e.includes(t)))}function vG(e,t=[],n=!1){return t.some((t=>_G(e,t,n)))}function Is(e,t,n){if(!(t in e))return;const r=e[t],a=n(r);"function"==typeof a&&k8(a,r);try{e[t]=a}catch{y_&&Go.log(`Failed to replace method "${t}" in object`,e)}}function Oy(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{y_&&Go.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function k8(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Oy(e,"__sentry_original__",t)}catch{}}function x8(e){return e.__sentry_original__}function bG(e){if(lG(e))return{message:e.message,name:e.name,stack:e.stack,...l9(e)};if(fG(e)){const t={type:e.type,target:c9(e.target),currentTarget:c9(e.currentTarget),...l9(e)};return typeof CustomEvent<"u"&&Tw(e,CustomEvent)&&(t.detail=e.detail),t}return e}function c9(e){try{return uG(e)?DR(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function l9(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function vc(e){return W4(e,new Map)}function W4(e,t){if(wG(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.getOwnPropertyNames(e))typeof e[n]<"u"&&(r[n]=W4(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(W4(e,t))})),r}return e}function wG(e){if(!zR(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}const S8=1e3;function Aw(){return Date.now()/S8}function kG(){const{performance:e}=Co;if(!e||!e.now)return Aw;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/S8}const E8=kG(),xG=(()=>{const{performance:e}=Co;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=a<t,i=e.timing&&e.timing.navigationStart,s="number"==typeof i?Math.abs(i+n-r):t;return o||s<t?a<=s?e.timeOrigin:i:r})();function Jf(){const e=Co,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function SG(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function EG(e,t,n){const r=e.exception=e.exception||{},a=r.values=r.values||[],o=a[0]=a[0]||{};o.value||(o.value=""),o.type||(o.type="Error")}function C8(e,t){const n=SG(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}var Gf;function f9(e){return new Xf((t=>{t(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(Gf||(Gf={}));class Xf{constructor(e){Xf.prototype.__init.call(this),Xf.prototype.__init2.call(this),Xf.prototype.__init3.call(this),Xf.prototype.__init4.call(this),this._state=Gf.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Xf(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Xf(((t,n)=>{let r,a;return this.then((t=>{a=!1,r=t,e&&e()}),(t=>{a=!0,r=t,e&&e()})).then((()=>{a?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(Gf.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Gf.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===Gf.PENDING){if(MR(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Gf.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Gf.RESOLVED&&e[1](this._value),this._state===Gf.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function CG(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||E8(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Jf()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function u9(){return Jf()}function H4(){return Jf().substring(16)}function Iw(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Iw(r[e],t[e],n-1));return r}const G4="_sentrySpan";function d9(e,t){t?Oy(e,G4,t):delete e[G4]}function K4(e){return e[G4]}const RG=100;class NR{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:u9(),spanId:H4()}}clone(){const e=new NR;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,d9(e,K4(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&CG(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof Jh?[t.getScopeData(),t.getRequestSession()]:zR(t)?[e,e.requestSession]:[],{tags:a,extra:o,user:i,contexts:s,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,d9(this,void 0),this._attachments=[],this.setPropagationContext({traceId:u9()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:RG;if(n<=0)return this;const r={timestamp:Aw(),...e},a=this._breadcrumbs;return a.push(r),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:K4(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Iw(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:H4(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Jf();if(!this._client)return Go.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Jf();if(!this._client)return Go.warn("No client configured on scope - will not capture message!"),r;const a=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Jf();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Go.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const Jh=NR;function TG(){return Rw("defaultCurrentScope",(()=>new Jh))}function AG(){return Rw("defaultIsolationScope",(()=>new Jh))}class IG{constructor(e,t){let n,r;n=e||new Jh,r=t||new Jh,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return MR(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function s1(){const e=PR(__());return e.stack=e.stack||new IG(TG(),AG())}function $G(e){return s1().withScope(e)}function PG(e,t){const n=s1();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function p9(e){return s1().withScope((()=>e(s1().getIsolationScope())))}function OG(){return{withIsolationScope:p9,withScope:$G,withSetScope:PG,withSetIsolationScope:(e,t)=>p9(t),getCurrentScope:()=>s1().getScope(),getIsolationScope:()=>s1().getIsolationScope()}}function $w(e){const t=PR(e);return t.acs?t.acs:OG()}function E1(){return $w(__()).getCurrentScope()}function v_(){return $w(__()).getIsolationScope()}function zG(){return Rw("globalScope",(()=>new Jh))}function MG(...e){const t=$w(__());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function Nl(){return E1().getClient()}const DG="_sentryMetrics";function NG(e){const t=e[DG];if(!t)return;const n={};for(const[,[e,r]]of t)(n[e]||(n[e]=[])).push(vc(r));return n}const R8="sentry.source",LG="sentry.sample_rate",jG="sentry.op",BG="sentry.origin",FG=0,UG=1,VG="sentry-",qG=/^sentry-/;function WG(e){const t=HG(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(qG)){e[t.slice(7)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function HG(e){if(e&&($b(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=h9(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):h9(e)}function h9(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}const GG=1;function KG(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return vc({parent_span_id:r?t:zy(e).parent_span_id,span_id:r?H4():t,trace_id:n})}function m9(e){return"number"==typeof e?g9(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?g9(e.getTime()):E8()}function g9(e){return e>9999999999?e/1e3:e}function zy(e){if(YG(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(QG(e)){const{attributes:r,startTime:a,name:o,endTime:i,parentSpanId:s,status:c}=e;return vc({span_id:t,trace_id:n,data:r,description:o,parent_span_id:s,start_timestamp:m9(a),timestamp:m9(i)||void 0,status:XG(c),op:r[jG],origin:r[BG],_metrics_summary:NG(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function QG(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function YG(e){return"function"==typeof e.getSpanJSON}function ZG(e){const{traceFlags:t}=e.spanContext();return 1===t}function XG(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const JG="_sentryRootSpan";function LR(e){return e[JG]||e}function T8(){const e=$w(__());return e.getActiveSpan?e.getActiveSpan():K4(E1())}function eK(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Nl(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const A8="production",tK="_frozenDsc";function nK(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},a=vc({environment:n.environment||A8,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",a),a}function I8(e){const t=Nl();if(!t)return{};const n=LR(e),r=n[tK];if(r)return r;const a=n.spanContext().traceState,o=a&&a.get("sentry.dsc"),i=o&&WG(o);if(i)return i;const s=nK(e.spanContext().traceId,t),c=zy(n),l=c.data||{},u=l[LG];null!=u&&(s.sample_rate=`${u}`);const f=l[R8],d=c.description;return"url"!==f&&d&&(s.transaction=d),eK()&&(s.sampled=String(ZG(n))),t.emit("createDsc",s,n),s}function y9(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;IR&&Go.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}function rK(e,t=!1){const{host:n,path:r,pass:a,port:o,projectId:i,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&a?`:${a}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function aK(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}function Kf(e,t=100,n=1/0){try{return Q4("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Q4(e,t,n=1/0,r=1/0,a=aK()){const[o,i]=a;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const s=oK(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return s.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return Q4("",l.toJSON(),c-1,r,a)}catch{}const u=Array.isArray(t)?[]:{};let f=0;const d=bG(t);for(const e in d){if(!Object.prototype.hasOwnProperty.call(d,e))continue;if(f>=r){u[e]="[MaxProperties ~]";break}const t=d[e];u[e]=Q4(e,t,c-1,r,a),f++}return i(t),u}function oK(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(hG(t))return"[VueViewModel]";if(pG(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${ru(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=iK(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function iK(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function sK(e,t=[]){return[e,t]}function cK(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function lK(e,t,n,r){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:rK(r)},...a&&{trace:vc({...a})}}}function Y4(e,t,n,r=0){return new Xf(((a,o)=>{const i=e[r];if(null===t||"function"!=typeof i)a(t);else{const s=i({...t},n);IR&&i.id&&null===s&&Go.log(`Event processor "${i.id}" dropped event`),MR(s)?s.then((t=>Y4(e,t,n,r+1).then(a))).then(null,o):Y4(e,s,n,r+1).then(a).then(null,o)}}))}let Sv,_9,Ev;function fK(e){const t=Co._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Ev&&n.length===_9||(_9=n.length,Ev=n.reduce(((n,r)=>{Sv||(Sv={});const a=Sv[r];if(a)n[a[0]]=a[1];else{const a=e(r);for(let e=a.length-1;e>=0;e--){const o=a[e],i=o&&o.filename,s=t[r];if(i&&s){n[i]=s,Sv[r]=[i,s];break}}}return n}),{})),Ev}function uK(e,t){const{fingerprint:n,span:r,breadcrumbs:a,sdkProcessingMetadata:o}=t;dK(e,t),r&&mK(e,r),gK(e,n),pK(e,a),hK(e,o)}function v9(e,t){const{extra:n,tags:r,user:a,contexts:o,level:i,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:f,propagationContext:d,transactionName:p,span:h}=t;Cv(e,"extra",n),Cv(e,"tags",r),Cv(e,"user",a),Cv(e,"contexts",o),e.sdkProcessingMetadata=Iw(e.sdkProcessingMetadata,s,2),i&&(e.level=i),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...d}}function Cv(e,t,n){e[t]=Iw(e[t],n,1)}function dK(e,t){const{extra:n,tags:r,user:a,contexts:o,level:i,transactionName:s}=t,c=vc(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=vc(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=vc(a);u&&Object.keys(u).length&&(e.user={...u,...e.user});const f=vc(o);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),i&&(e.level=i),s&&"transaction"!==e.type&&(e.transaction=s)}function pK(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function hK(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function mK(e,t){e.contexts={trace:KG(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:I8(t),...e.sdkProcessingMetadata};const n=zy(LR(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}function gK(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function yK(e,t,n,r,a,o){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Jf(),timestamp:t.timestamp||Aw()},l=n.integrations||e.integrations.map((e=>e.name));_K(c,e),wK(c,l),a&&a.emit("applyFrameMetadata",t),void 0===t.type&&vK(c,e.stackParser);const u=xK(r,n.captureContext);n.mechanism&&C8(c,n.mechanism);const f=a?a.getEventProcessors():[],d=zG().getScopeData();if(o){v9(d,o.getScopeData())}if(u){v9(d,u.getScopeData())}const p=[...n.attachments||[],...d.attachments];p.length&&(n.attachments=p),uK(c,d);return Y4([...f,...d.eventProcessors],c,n).then((e=>(e&&bK(e),"number"==typeof i&&i>0?kK(e,i,s):e)))}function _K(e,t){const{environment:n,release:r,dist:a,maxValueLength:o=250}=t;e.environment=e.environment||n||A8,!e.release&&r&&(e.release=r),!e.dist&&a&&(e.dist=a),e.message&&(e.message=Nx(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=Nx(i.value,o));const s=e.request;s&&s.url&&(s.url=Nx(s.url,o))}function vK(e,t){const n=fK(t);try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{n&&e.filename&&(e.debug_id=n[e.filename])}))}))}catch{}}function bK(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch{}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}function wK(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function kK(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Kf(e.data,t,n)}})))},...e.user&&{user:Kf(e.user,t,n)},...e.contexts&&{contexts:Kf(e.contexts,t,n)},...e.extra&&{extra:Kf(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Kf(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:Kf(e.data,t,n)}})))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=Kf(e.contexts.flags,3,n)),r}function xK(e,t){if(!t)return e;const n=e?e.clone():new Jh;return n.update(t),n}function jR(e,t){return E1().captureException(e,void 0)}function SK(e,t){const n={captureContext:t};return E1().captureMessage(e,void 0,n)}function EK(e,t){v_().setContext(e,t)}function CK(e,t){v_().setExtra(e,t)}function RK(e){v_().addEventProcessor(e)}const TK=6e4;function AK(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?TK:r-t}function IK(e,t){return e[t]||e.all||0}function $K(e,t,n=Date.now()){return IK(e,t)>n}function PK(e,{statusCode:t,headers:n},r=Date.now()){const a={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const e of o.trim().split(",")){const[t,n,,,o]=e.split(":",5),i=parseInt(t,10),s=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(a[e]=r+s):a[e]=r+s;else a.all=r+s}else i?a.all=r+AK(i,r):429===t&&(a.all=r+6e4);return a}function OK(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return MK(e,n)||zK(e,r)}function zK(e,t){return!!t&&b9(e)===b9(t)}function MK(e,t){return!!t&&e.includes(t.host)}function b9(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const DK=100;function NK(e,t){const n=Nl(),r=v_();if(!n)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:o=DK}=n.getOptions();if(o<=0)return;const i={timestamp:Aw(),...e},s=a?$R((()=>a(i,t))):i;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,o))}function LK(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const jK="Dedupe",BK=()=>{let e;return{name:jK,processEvent(t){if(t.type)return t;try{if(UK(t,e))return IR&&Go.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},FK=BK;function UK(e,t){return!!t&&!(!VK(e,t)&&!qK(e,t))}function VK(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!P8(e,t)||!$8(e,t))}function qK(e,t){const n=w9(t),r=w9(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&P8(e,t)&&$8(e,t))}function $8(e,t){let n=i9(e),r=i9(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],a=n[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function P8(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function w9(e){return e.exception&&e.exception.values&&e.exception.values[0]}function WK(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function HK(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function GK(){return!HK()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function k9(){return typeof window<"u"&&(!GK()||KK())}function KK(){const e=Co.process;return!!e&&"renderer"===e.type}const Rv=Co;function QK(){const e=Rv.chrome,t=e&&e.app&&e.app.runtime,n="history"in Rv&&!!Rv.history.pushState&&!!Rv.history.replaceState;return!t&&n}function YK(e,t){return e??t()}function pb(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const X0=Co;function ZK(){setTimeout((()=>{}))}function c1(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(x8(e))return e}catch{return e}const n=function(...n){try{const r=n.map((e=>c1(e,t)));return e.apply(this,r)}catch(e){throw ZK(),MG((r=>{r.addEventProcessor((e=>(t.mechanism&&(EG(e),C8(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),jR(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}k8(n,e),Oy(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}const O8=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,XK=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",b_=(e,t,n,r)=>{let a,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(a||0),(o||void 0===a)&&(a=t.value,t.delta=o,t.rating=XK(t.value,n),e(t)))}},Xt=Co,JK=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,z8=(e=!0)=>{const t=Xt.performance&&Xt.performance.getEntriesByType&&Xt.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},BR=()=>{const e=z8();return e&&e.activationStart||0},w_=(e,t)=>{const n=z8();let r="navigate";return n&&(Xt.document&&Xt.document.prerendering||BR()>0?r="prerender":Xt.document&&Xt.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:JK(),navigationType:r}},um=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},k_=e=>{const t=t=>{("pagehide"===t.type||Xt.document&&"hidden"===Xt.document.visibilityState)&&e(t)};Xt.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Pw=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let dy=-1;const eQ=()=>"hidden"!==Xt.document.visibilityState||Xt.document.prerendering?1/0:0,Pb=e=>{"hidden"===Xt.document.visibilityState&&dy>-1&&(dy="visibilitychange"===e.type?e.timeStamp:0,nQ())},tQ=()=>{addEventListener("visibilitychange",Pb,!0),addEventListener("prerenderingchange",Pb,!0)},nQ=()=>{removeEventListener("visibilitychange",Pb,!0),removeEventListener("prerenderingchange",Pb,!0)},FR=()=>(Xt.document&&dy<0&&(dy=eQ(),tQ()),{get firstHiddenTime(){return dy}}),Ow=e=>{Xt.document&&Xt.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},rQ=[1800,3e3],aQ=(e,t={})=>{Ow((()=>{const n=FR(),r=w_("FCP");let a;const o=um("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-BR(),0),r.entries.push(e),a(!0)))}))}));o&&(a=b_(e,r,rQ,t.reportAllChanges))}))},oQ=[.1,.25],iQ=(e,t={})=>{aQ(Pw((()=>{const n=w_("CLS",0);let r,a=0,o=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=o[0],n=o[o.length-1];a&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e])}})),a>n.value&&(n.value=a,n.entries=o,r())},s=um("layout-shift",i);s&&(r=b_(e,n,oQ,t.reportAllChanges),k_((()=>{i(s.takeRecords()),r(!0)})),setTimeout(r,0))})))},sQ=[100,300],cQ=(e,t={})=>{Ow((()=>{const n=FR(),r=w_("FID");let a;const o=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),a(!0))},i=e=>{e.forEach(o)},s=um("first-input",i);a=b_(e,r,sQ,t.reportAllChanges),s&&k_(Pw((()=>{i(s.takeRecords()),s.disconnect()})))}))};let M8=0,Lx=1/0,Tv=0;const lQ=e=>{e.forEach((e=>{e.interactionId&&(Lx=Math.min(Lx,e.interactionId),Tv=Math.max(Tv,e.interactionId),M8=Tv?(Tv-Lx)/7+1:0)}))};let Z4;const fQ=()=>Z4?M8:performance.interactionCount||0,uQ=()=>{"interactionCount"in performance||Z4||(Z4=um("event",lQ,{type:"event",buffered:!0,durationThreshold:0}))},Qf=[],jx=new Map,dQ=40;let pQ=0;const hQ=()=>fQ()-pQ,mQ=()=>{const e=Math.min(Qf.length-1,Math.floor(hQ()/50));return Qf[e]},Bx=10,gQ=[],yQ=e=>{if(gQ.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=Qf[Qf.length-1],n=jx.get(e.interactionId);if(n||Qf.length<10||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};jx.set(t.id,t),Qf.push(t)}Qf.sort(((e,t)=>t.latency-e.latency)),Qf.length>10&&Qf.splice(10).forEach((e=>jx.delete(e.id)))}},D8=e=>{const t=Xt.requestIdleCallback||Xt.setTimeout;let n=-1;return e=Pw(e),Xt.document&&"hidden"===Xt.document.visibilityState?e():(n=t(e),k_(e)),n},_Q=[200,500],vQ=(e,t={})=>{"PerformanceEventTiming"in Xt&&"interactionId"in PerformanceEventTiming.prototype&&Ow((()=>{uQ();const n=w_("INP");let r;const a=e=>{D8((()=>{e.forEach(yQ);const t=mQ();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())}))},o=um("event",a,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=b_(e,n,_Q,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),k_((()=>{a(o.takeRecords()),r(!0)})))}))},bQ=[2500,4e3],x9={},wQ=(e,t={})=>{Ow((()=>{const n=FR(),r=w_("LCP");let a;const o=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-BR(),0),r.entries=[e],a())}))},i=um("largest-contentful-paint",o);if(i){a=b_(e,r,bQ,t.reportAllChanges);const n=Pw((()=>{x9[r.id]||(o(i.takeRecords()),i.disconnect(),x9[r.id]=!0,a(!0))}));["keydown","click"].forEach((e=>{Xt.document&&addEventListener(e,(()=>D8(n)),{once:!0,capture:!0})})),k_(n)}}))},py={},Ob={};let N8,L8,j8,B8;function kQ(e,t=!1){return zw("cls",e,RQ,N8,t)}function xQ(e,t=!1){return zw("lcp",e,AQ,j8,t)}function SQ(e){return zw("fid",e,TQ,L8)}function EQ(e){return zw("inp",e,IQ,B8)}function CQ(e,t){return F8(e,t),Ob[e]||($Q(e),Ob[e]=!0),U8(e,t)}function x_(e,t){const n=py[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){O8&&Go.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ru(r)}\nError:`,t)}}function RQ(){return iQ((e=>{x_("cls",{metric:e}),N8=e}),{reportAllChanges:!0})}function TQ(){return cQ((e=>{x_("fid",{metric:e}),L8=e}))}function AQ(){return wQ((e=>{x_("lcp",{metric:e}),j8=e}),{reportAllChanges:!0})}function IQ(){return vQ((e=>{x_("inp",{metric:e}),B8=e}))}function zw(e,t,n,r,a=!1){let o;return F8(e,t),Ob[e]||(o=n(),Ob[e]=!0),r&&t({metric:r}),U8(e,t,a?o:void 0)}function $Q(e){const t={};"event"===e&&(t.durationThreshold=0),um(e,(t=>{x_(e,{entries:t})}),t)}function F8(e,t){py[e]=py[e]||[],py[e].push(t)}function U8(e,t,n){return()=>{n&&n();const r=py[e];if(!r)return;const a=r.indexOf(t);-1!==a&&r.splice(a,1)}}const PQ=1e3;let S9,X4,J4,Av;function OQ(e){_8("dom",e),v8("dom",zQ)}function zQ(){if(!Xt.document)return;const e=q4.bind(null,"dom"),t=E9(e,!0);Xt.document.addEventListener("click",t,!1),Xt.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=Xt[t],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Is(r,"addEventListener",(function(t){return function(n,r,a){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=E9(e);o.handler=r,t.call(this,n,r,a)}o.refCount++}catch{}return t.call(this,n,r,a)}})),Is(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},a=n[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}})))}))}function MQ(e){if(e.type!==X4)return!1;try{if(!e.target||e.target._sentryId!==J4)return!1}catch{}return!0}function DQ(e,t){return"keypress"===e&&(!t||!t.tagName||!("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable))}function E9(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=NQ(n);if(DQ(n.type,r))return;Oy(n,"_sentryCaptured",!0),r&&!r._sentryId&&Oy(r,"_sentryId",Jf());const a="keypress"===n.type?"input":n.type;MQ(n)||(e({event:n,name:a,global:t}),X4=n.type,J4=r?r._sentryId:void 0),clearTimeout(S9),S9=Xt.setTimeout((()=>{J4=void 0,X4=void 0}),PQ)}}function NQ(e){try{return e.target}catch{return null}}function LQ(e){const t="history";_8(t,e),v8(t,jQ)}function jQ(){if(!QK())return;const e=Xt.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Av,t=String(n);Av=t,q4("history",{from:e,to:t})}return e.apply(this,t)}}Xt.onpopstate=function(...t){const n=Xt.location.href,r=Av;if(Av=n,q4("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch{}},Is(Xt.history,"pushState",t),Is(Xt.history,"replaceState",t)}const Fx={};function BQ(e){const t=Fx[e];if(t)return t;let n=Xt[e];if(WK(n))return Fx[e]=n.bind(Xt);const r=Xt.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(t){O8&&Go.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Fx[e]=n.bind(Xt))}function l1(...e){return BQ("setTimeout")(...e)}const FQ="__sentry_xhr_v3__",UQ=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],VQ="BrowserApiErrors",qQ=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:VQ,setupOnce(){t.setTimeout&&Is(X0,"setTimeout",C9),t.setInterval&&Is(X0,"setInterval",C9),t.requestAnimationFrame&&Is(X0,"requestAnimationFrame",HQ),t.XMLHttpRequest&&"XMLHttpRequest"in X0&&Is(XMLHttpRequest.prototype,"send",GQ);const e=t.eventTarget;e&&(Array.isArray(e)?e:UQ).forEach(KQ)}}},WQ=qQ;function C9(e){return function(...t){const n=t[0];return t[0]=c1(n,{mechanism:{data:{function:ru(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function HQ(e){return function(t){return e.apply(this,[c1(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ru(e)},handled:!1,type:"instrument"}})])}}function GQ(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Is(n,e,(function(t){const n={mechanism:{data:{function:e,handler:ru(t)},handled:!1,type:"instrument"}},r=x8(t);return r&&(n.mechanism.data.handler=ru(r)),c1(t,n)}))})),e.apply(this,t)}}function KQ(e){const t=X0[e],n=t&&t.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Is(n,"addEventListener",(function(t){return function(n,r,a){try{QQ(r)&&(r.handleEvent=c1(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ru(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,c1(r,{mechanism:{data:{function:"addEventListener",handler:ru(r),target:e},handled:!1,type:"instrument"}}),a])}})),Is(n,"removeEventListener",(function(e){return function(t,n,r){try{const a=n.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch{}return e.call(this,t,n,r)}})))}function QQ(e){return"function"==typeof e.handleEvent}const Gn=Co,UR="sentryReplaySession",YQ="replay_event",VR="Unable to send Replay",ZQ=3e5,XQ=9e5,JQ=5e3,eY=5500,tY=6e4,nY=5e3,rY=3,R9=15e4,Iv=5e3,aY=3e3,oY=300,qR=2e7,iY=4999,sY=15e3,T9=36e5;function eC(e,t){return e??t()}function My(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}var ba;function cY(e){return e.nodeType===e.ELEMENT_NODE}function hy(e){const t=My([e,"optionalAccess",e=>e.host]);return My([t,"optionalAccess",e=>e.shadowRoot])===e}function my(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function lY(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function fY(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function zb(e){try{const t=e.rules||e.cssRules;return t?lY(Array.from(t,V8).join("")):null}catch{return null}}function uY(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,a=r[n],o=r.getPropertyPriority(a);t+=`${a}:${r.getPropertyValue(a)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function V8(e){let t;if(pY(e))try{t=zb(e.styleSheet)||fY(e)}catch{}else if(hY(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=uY(e)),n&&(t=dY(t)),n||r)return t}return t||e.cssText}function dY(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function pY(e){return"styleSheet"in e}function hY(e){return"selectorText"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ba||(ba={}));class q8{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return eC(My([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),(()=>-1))}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function mY(){return new q8}function Mw({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Dy({isMasked:e,element:t,value:n,maskInputFn:r}){let a=n||"";return e?(r&&(a=r(a,t)),"*".repeat(a.length)):a}function f1(e){return e.toLowerCase()}function tC(e){return e.toUpperCase()}const A9="__rrweb_original__";function gY(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const a=t.getImageData,o=A9 in a?a[A9]:a;if(new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0}function WR(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?f1(t):null}function Mb(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function W8(e,t){let n;try{n=new URL(e,eC(t,(()=>window.location.href)))}catch{return null}return eC(My([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const I9={};function H8(e){const t=I9[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch{}return I9[e]=r.bind(window)}function nC(...e){return H8("setTimeout")(...e)}function G8(...e){return H8("clearTimeout")(...e)}function K8(e){try{return e.contentDocument}catch{}}let yY=1;const _Y=new RegExp("[^a-z0-9-_:]"),Ny=-2;function HR(){return yY++}function vY(e){if(e instanceof HTMLFormElement)return"form";const t=f1(e.tagName);return _Y.test(t)?"div":t}function bY(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}let Mg,$9;const wY=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,kY=/^(?:[a-z+]+:)?\/\//i,xY=/^www\..*/i,SY=/^(data:)([^,]*),(.*)/i;function Db(e,t){return(e||"").replace(wY,((e,n,r,a,o,i)=>{const s=r||o||i,c=n||a||"";if(!s)return e;if(kY.test(s)||xY.test(s))return`url(${c}${s}${c})`;if(SY.test(s))return`url(${c}${s}${c})`;if("/"===s[0])return`url(${c}${bY(t)+s}${c})`;const l=t.split("/"),u=s.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const EY=/^[^ \t\n\r\u000c]+/,CY=/^[, \t\n\r\u000c]+/;function RY(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const a=e.exec(t.substring(n));return a?(r=a[0],n+=r.length,r):""}const a=[];for(;r(CY),!(n>=t.length);){let o=r(EY);if(","===o.slice(-1))o=Kg(e,o.substring(0,o.length-1)),a.push(o);else{let r="";o=Kg(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){a.push((o+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,a.push((o+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return a.join(", ")}const P9=new WeakMap;function Kg(e,t){return t&&""!==t.trim()?Dw(e,t):t}function TY(e){return!("svg"!==e.tagName&&!e.ownerSVGElement)}function Dw(e,t){let n=P9.get(e);if(n||(n=e.createElement("a"),P9.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function Q8(e,t,n,r,a,o){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&("table"===t||"td"===t||"th"===t)?Kg(e,r):"srcset"===n?RY(e,r):"style"===n?Db(r,Dw(e)):"object"===t&&"data"===n?Kg(e,r):"function"==typeof o?o(n,r,a):r)}function Y8(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function AY(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function IY(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Fh(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Fh(e.parentNode,t,n,r+1)}function Qg(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(IY(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function u1(e,t,n,r,a,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,c=-1;if(o){if(c=Fh(i,Qg(r,a)),c<0)return!0;s=Fh(i,Qg(t,n),c>=0?c:1/0)}else{if(s=Fh(i,Qg(t,n)),s<0)return!1;c=Fh(i,Qg(r,a),s>=0?s:1/0)}return s>=0?!(c>=0)||s<=c:!(c>=0)&&!!o}catch{}return!!o}function $Y(e,t,n){const r=e.contentWindow;if(!r)return;let a,o=!1;try{a=r.document.readyState}catch{return}if("complete"!==a){const r=nC((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{G8(r),o=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return nC(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function PY(e,t,n){let r,a=!1;try{r=e.sheet}catch{return}if(r)return;const o=nC((()=>{a||(t(),a=!0)}),n);e.addEventListener("load",(()=>{G8(o),a=!0,t()}))}function OY(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w=!1}=t,k=zY(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:ba.Document,childNodes:[],compatMode:e.compatMode}:{type:ba.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ba.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return DY(e,{doc:n,blockClass:a,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w,rootId:k,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d});case e.TEXT_NODE:return MY(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:k});case e.CDATA_SECTION_NODE:return{type:ba.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:ba.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}function zY(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}function MY(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:a,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,f=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const p="STYLE"===f||void 0,h="SCRIPT"===f||void 0,m="TEXTAREA"===f||void 0;if(p&&d){try{e.nextSibling||e.previousSibling||My([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(d=zb(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=Db(d,Dw(t.doc))}h&&(d="SCRIPT_PLACEHOLDER");const g=u1(e,r,o,a,i,n);if(!p&&!h&&!m&&d&&g&&(d=s?s(d,e.parentElement):d.replace(/[\S]/g,"*")),m&&d&&(c.textarea||g)&&(d=l?l(d,e.parentNode):d.replace(/[\S]/g,"*")),"OPTION"===f&&d){d=Dy({isMasked:u1(e,r,o,a,i,Mw({type:null,tagName:f,maskInputOptions:c})),element:e,value:d,maskInputFn:l})}return{type:ba.Text,textContent:d||"",isStyle:p,rootId:u}}function DY(e,t){const{doc:n,blockClass:r,blockSelector:a,unblockSelector:o,inlineStylesheet:i,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:_}=t,w=AY(e,r,a,o),k=vY(e);let x={};const S=e.attributes.length;for(let t=0;t<S;t++){const r=e.attributes[t];r.name&&!Y8(k,r.name,r.value)&&(x[r.name]=Q8(n,k,f1(r.name),r.value,e,c))}if("link"===k&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=zb(t)),r&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=Db(r,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=zb(e.sheet);t&&(x._cssText=Db(t,Dw(n)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){const t=e,n=WR(t),r=Mb(t,tC(k),n),a=t.checked;if("submit"!==n&&"button"!==n&&r){const e=u1(t,y,b,v,_,Mw({type:n,tagName:tC(k),maskInputOptions:s}));x.value=Dy({isMasked:e,element:t,value:r,maskInputFn:l})}a&&(x.checked=a)}if("option"===k&&(e.selected&&!s.select?x.selected=!0:delete x.selected),"canvas"===k&&d)if("2d"===e.__context)gY(e)||(x.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(u.type,u.quality)&&(x.rr_dataURL=t)}if("img"===k&&f){Mg||(Mg=n.createElement("canvas"),$9=Mg.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",a=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{Mg.width=t.naturalWidth,Mg.height=t.naturalHeight,$9.drawImage(t,0,0),x.rr_dataURL=Mg.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(a?x.crossOrigin=a:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if(("audio"===k||"video"===k)&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),w){const{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${n}px`}}let E;"iframe"===k&&!p(x.src)&&(!w&&!K8(e)&&(x.rr_src=x.src),delete x.src);try{customElements.get(k)&&(E=!0)}catch{}return{type:ba.Element,tagName:k,attributes:x,childNodes:[],isSVG:TY(e)||void 0,needBlock:w,rootId:m,isCustom:E}}function Hn(e){return null==e?"":e.toLowerCase()}function NY(e,t){if(t.comment&&e.type===ba.Comment)return!0;if(e.type===ba.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===W8(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Hn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Hn(e.attributes.name)||"icon"===Hn(e.attributes.rel)||"apple-touch-icon"===Hn(e.attributes.rel)||"shortcut icon"===Hn(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Hn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Hn(e.attributes.property).match(/^(og|twitter|fb):/)||Hn(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Hn(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Hn(e.attributes.name)||"googlebot"===Hn(e.attributes.name)||"bingbot"===Hn(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Hn(e.attributes.name)||"generator"===Hn(e.attributes.name)||"framework"===Hn(e.attributes.name)||"publisher"===Hn(e.attributes.name)||"progid"===Hn(e.attributes.name)||Hn(e.attributes.property).match(/^article:/)||Hn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Hn(e.attributes.name)||"yandex-verification"===Hn(e.attributes.name)||"csrf-token"===Hn(e.attributes.name)||"p:domain_verify"===Hn(e.attributes.name)||"verify-v1"===Hn(e.attributes.name)||"verification"===Hn(e.attributes.name)||"shopify-checkout-api-token"===Hn(e.attributes.name)))return!0}}return!1}function Yg(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:w=!1,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:z=!1}=t;let{preserveWhiteSpace:I=!0}=t;const T=OY(e,{doc:n,mirror:r,blockClass:a,blockSelector:o,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:_,recordCanvas:w,keepIframeSrcFn:C,newlyAddedElement:z});if(!T)return console.warn(e,"not serialized"),null;let R;R=r.hasNode(e)?r.getId(e):NY(T,v)||!I&&T.type===ba.Text&&!T.isStyle&&!T.textContent.replace(/^\s+|\s+$/gm,"").length?-2:HR();const j=Object.assign(T,{id:R});if(r.add(e,j),-2===R)return null;k&&k(e);let P=!d;if(j.type===ba.Element){P=P&&!j.needBlock,delete j.needBlock;const t=e.shadowRoot;t&&my(t)&&(j.isShadowHost=!0)}if((j.type===ba.Document||j.type===ba.Element)&&P){v.headWhitespace&&j.type===ba.Element&&"head"===j.tagName&&(I=!1);const t={doc:n,mirror:r,blockClass:a,blockSelector:o,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:C};for(const n of Array.from(e.childNodes)){const e=Yg(n,t);e&&j.childNodes.push(e)}if(cY(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Yg(n,t);r&&(my(e.shadowRoot)&&(r.isShadow=!0),j.childNodes.push(r))}}return e.parentNode&&hy(e.parentNode)&&my(e.parentNode)&&(j.isShadow=!0),j.type===ba.Element&&"iframe"===j.tagName&&$Y(e,(()=>{const t=K8(e);if(t&&x){const n=Yg(t,{doc:t,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:C});n&&x(e,n)}}),S),j.type===ba.Element&&"link"===j.tagName&&"string"==typeof j.attributes.rel&&("stylesheet"===j.attributes.rel||"preload"===j.attributes.rel&&"string"==typeof j.attributes.href&&"css"===W8(j.attributes.href))&&PY(e,(()=>{if(E){const t=Yg(e,{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:C});t&&E(e,t)}}),A),j}function LY(e,t){const{mirror:n=new q8,blockClass:r="rr-block",blockSelector:a=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:s="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:f=!0,inlineImages:d=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:A=()=>!1}=t;return Yg(e,{doc:e,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,maskAllText:i,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:d,recordCanvas:p,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:A,newlyAddedElement:!1})}function Wd(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function Ho(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const qg="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let O9={map:{},getId:()=>(console.error(qg),-1),getNode:()=>(console.error(qg),null),removeNodeFromMap(){console.error(qg)},has:()=>(console.error(qg),!1),reset(){console.error(qg)}};function Ly(e,t,n={}){let r=null,a=0;return function(...o){const i=Date.now();!a&&!1===n.leading&&(a=i);const s=t-(i-a),c=this;s<=0||s>t?(r&&(WY(r),r=null),a=i,e.apply(c,o)):!r&&!1!==n.trailing&&(r=Nw((()=>{a=!1===n.leading?0:Date.now(),r=null,e.apply(c,o)}),s))}}function Z8(e,t,n,r,a=window){const o=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,r?n:{set(e){Nw((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>Z8(e,t,o||{},!0)}function GR(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],a=n(r);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(O9=new Proxy(O9,{get:(e,t,n)=>("map"===t&&console.error(qg),Reflect.get(e,t,n))}));let Nb=Date.now;function X8(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Wd([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||Wd([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||Wd([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Wd([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||Wd([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||Wd([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function J8(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function e7(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function t7(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Wi(e,t,n,r,a){if(!e)return!1;const o=t7(e);if(!o)return!1;const i=Qg(t,n);if(!a){const e=r&&o.matches(r);return i(o)&&!e}const s=Fh(o,i);let c=-1;return!(s<0)&&(r&&(c=Fh(o,Qg(null,r))),s>-1&&c<0||s<c)}function jY(e,t){return-1!==t.getId(e)}function Ux(e,t){return-2===t.getId(e)}function n7(e,t){if(hy(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||n7(e.parentNode,t))}function rC(e){return!!e.changedTouches}function BY(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}function r7(e,t){return!("IFRAME"!==e.nodeName||!t.getMeta(e))}function a7(e,t){return!("LINK"!==e.nodeName||e.nodeType!==e.ELEMENT_NODE||!e.getAttribute||"stylesheet"!==e.getAttribute("rel")||!t.getMeta(e))}function aC(e){return!!Wd([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(Nb=()=>(new Date).getTime());class FY{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return YK(this.styleIDMap.get(e),(()=>-1))}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function o7(e){let t=null;return Wd([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function UY(e){let t,n=e;for(;t=o7(n);)n=t;return n}function VY(e){const t=e.ownerDocument;if(!t)return!1;const n=UY(e);return t.contains(n)}function i7(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||VY(e))}const z9={};function KR(e){const t=z9[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch{}return z9[e]=r.bind(window)}function qY(...e){return KR("requestAnimationFrame")(...e)}function Nw(...e){return KR("setTimeout")(...e)}function WY(...e){return KR("clearTimeout")(...e)}var M9,D9,Vt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Vt||{}),$t=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))($t||{}),Wo=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Wo||{}),Wf=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Wf||{});function QR(e){try{return e.contentDocument}catch{}}function HY(e){try{return e.contentWindow}catch{}}function GY(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function N9(e){return"__ln"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(M9||(M9={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(D9||(D9={}));class KY{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=GY([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&N9(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&N9(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const L9=(e,t)=>`${e}@${t}`;class QY{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new KY,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},a=a=>{if(!a.parentNode||!i7(a))return;const o=hy(a.parentNode)?this.mirror.getId(o7(a)):this.mirror.getId(a.parentNode),i=r(a);if(-1===o||-1===i)return n.addNode(a);const s=Yg(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{r7(e,this.mirror)&&!Wi(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),a7(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),aC(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{Wi(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:i,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)j9(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||a(e);for(const e of this.addedSet)!B9(this.droppedSet,e)&&!j9(this.removes,e,this.mirror)||B9(this.movedSet,e)?a(e):this.droppedSet.add(e);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),a(e.value)}const i={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};!i.texts.length&&!i.attributes.length&&!i.removes.length&&!i.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!Ux(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;!Wi(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:u1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,t7(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=WR(t),a=t.tagName;r=Mb(t,a,n);const o=Mw({maskInputOptions:this.maskInputOptions,tagName:a,type:n});r=Dy({isMasked:u1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(Wi(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let a=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(QR(t))return;n="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Y8(t.tagName,n)&&(a.attributes[n]=Q8(this.doc,f1(t.tagName),f1(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?a.styleDiff[e]=""===o?r:[r,o]:a._unchangedStyles[e]=[r,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(Wi(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=hy(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Wi(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ux(t,this.mirror)||!jY(t,this.mirror)||(this.addedSet.has(t)?(oC(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||n7(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[L9(n,r)]?oC(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!hy(e.target)||!my(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Ux(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[L9(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Wi(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),aC(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function oC(e,t){e.delete(t),t.childNodes.forEach((t=>oC(e,t)))}function j9(e,t,n){return 0!==e.length&&YY(e,t,n)}function YY(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some((e=>e.id===t)))return!0;r=r.parentNode}return!1}function B9(e,t){return 0!==e.size&&s7(e,t)}function s7(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||s7(e,n))}let gy;function ZY(e){gy=e}function XY(){gy=void 0}const on=e=>gy?(...t)=>{try{return e(...t)}catch(e){if(gy&&!0===gy(e))return()=>{};throw e}}:e;function _c(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const Zg=[];function S_(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function c7(e,t){const n=new QY;Zg.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const a=_c([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);a&&window[a]&&(r=window[a]);const o=new r(on((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function JY({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const a="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,s=[];const c=Ly(on((t=>{const n=Date.now()-i;e(s.map((e=>(e.timeOffset-=n,e))),t),s=[],i=null})),o),l=on(Ly(on((e=>{const t=S_(e),{clientX:n,clientY:a}=rC(e)?e.changedTouches[0]:e;i||(i=Nb()),s.push({x:n,y:a,id:r.getId(t),timeOffset:Nb()-i}),c(typeof DragEvent<"u"&&e instanceof DragEvent?$t.Drag:e instanceof MouseEvent?$t.MouseMove:$t.TouchMove)})),a,{trailing:!1})),u=[Ho("mousemove",l,n),Ho("touchmove",l,n),Ho("drag",l,n)];return on((()=>{u.forEach((e=>e()))}))}function eZ({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const s=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let l=null;return Object.keys(Wo).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((i=>{let s=f1(i);const u=(t=>i=>{const s=S_(i);if(Wi(s,r,a,o,!0))return;let c=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=Wf.Mouse;break;case"touch":c=Wf.Touch;break;case"pen":c=Wf.Pen}c===Wf.Touch?Wo[t]===Wo.MouseDown?u="TouchStart":Wo[t]===Wo.MouseUp&&(u="TouchEnd"):Wf.Pen}else rC(i)&&(c=Wf.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===Wf.Touch||u.startsWith("Mouse")&&c===Wf.Mouse)&&(c=null)):Wo[t]===Wo.Click&&(c=l,l=null);const f=rC(i)?i.changedTouches[0]:i;if(!f)return;const d=n.getId(s),{clientX:p,clientY:h}=f;on(e)({type:Wo[u],id:d,x:p,y:h,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(Wo[i]){case Wo.MouseDown:case Wo.MouseUp:s=s.replace("mouse","pointer");break;case Wo.TouchStart:case Wo.TouchEnd:return}c.push(Ho(s,u,t))})),on((()=>{c.forEach((e=>e()))}))}function l7({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,sampling:i}){return Ho("scroll",on(Ly(on((i=>{const s=S_(i);if(!s||Wi(s,r,a,o,!0))return;const c=n.getId(s);if(s===t&&t.defaultView){const n=X8(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})})),i.scroll||100)),t)}function tZ({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Ho("resize",on(Ly(on((()=>{const t=J8(),a=e7();(n!==t||r!==a)&&(e({width:Number(a),height:Number(t)}),n=t,r=a)})),200)),t)}const nZ=["INPUT","TEXTAREA","SELECT"],F9=new WeakMap;function rZ({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,ignoreClass:i,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:f,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=S_(e);const u=e.isTrusted,g=n&&tC(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||nZ.indexOf(g)<0||Wi(n,r,a,o,!0))return;const v=n;if(v.classList.contains(i)||s&&v.matches(s))return;const b=WR(n);let _=Mb(v,g,b),w=!1;const k=Mw({maskInputOptions:c,tagName:g,type:b}),x=u1(n,d,h,p,m,k);("radio"===b||"checkbox"===b)&&(w=n.checked),_=Dy({isMasked:x,element:n,value:_,maskInputFn:l}),y(n,f?{text:_,isChecked:w,userTriggered:u}:{text:_,isChecked:w});const S=n.name;"radio"===b&&S&&w&&t.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach((e=>{if(e!==n){const t=Dy({isMasked:x,element:e,value:Mb(e,g,b),maskInputFn:l});y(e,f?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}}))}function y(t,r){const a=F9.get(t);if(!a||a.text!==r.text||a.isChecked!==r.isChecked){F9.set(t,r);const a=n.getId(t);on(e)({...r,id:a})}}const v=("last"===u.input?["change"]:["input","change"]).map((e=>Ho(e,on(g),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...w.map((e=>Z8(e[0],e[1],{set(){on(g)({target:this,isTrusted:!1})}},!1,b)))),on((()=>{v.forEach((e=>e()))}))}function Lb(e){return function(e,t){if($v("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||$v("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||$v("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||$v("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Hd(e,t,n){let r,a;return e?(e.ownerNode?r=t.getId(e.ownerNode):a=n.getId(e),{styleId:a,id:r}):{}}function aZ({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:on(((r,a,o)=>{const[i,s]=o,{id:c,styleId:l}=Hd(a,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:s}]}),r.apply(a,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let i,s;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:on(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=Hd(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:i}]}),r.apply(a,o)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:on(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=Hd(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replace:i}),r.apply(a,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:on(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=Hd(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replaceSync:i}),r.apply(a,o)}))}));const c={};Pv("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Pv("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Pv("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Pv("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach((([r,a])=>{l[r]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(l[r].insertRule,{apply:on(((r,a,o)=>{const[i,s]=o,{id:c,styleId:l}=Hd(a.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...Lb(a),s||0]}]}),r.apply(a,o)}))}),a.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:on(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=Hd(a.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:[...Lb(a),i]}]}),r.apply(a,o)}))})})),on((()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}function f7({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const a="#document"===n.nodeName?_c([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):_c([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=_c([a,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(_c([a,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&a&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return _c([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=_c([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch{}return n}}),on((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function oZ({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){const o=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:on(((a,i,s)=>{const[c,l,u]=s;if(n.has(c))return o.apply(i,[c,l,u]);const{id:f,styleId:d}=Hd(_c([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(f&&-1!==f||d&&-1!==d)&&e({id:f,styleId:d,set:{property:c,value:l,priority:u},index:Lb(i.parentRule)}),a.apply(i,s)}))});const i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:on(((a,o,s)=>{const[c]=s;if(n.has(c))return i.apply(o,[c]);const{id:l,styleId:u}=Hd(_c([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:Lb(o.parentRule)}),a.apply(o,s)}))}),on((()=>{a.CSSStyleDeclaration.prototype.setProperty=o,a.CSSStyleDeclaration.prototype.removeProperty=i}))}function iZ({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:a,sampling:o,doc:i}){const s=on((i=>Ly(on((o=>{const s=S_(o);if(!s||Wi(s,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:f}=s;e({type:i,id:a.getId(s),currentTime:c,volume:l,muted:u,playbackRate:f})})),o.media||500))),c=[Ho("play",s(0),i),Ho("pause",s(1),i),Ho("seeked",s(2),i),Ho("volumechange",s(3),i),Ho("ratechange",s(4),i)];return on((()=>{c.forEach((e=>e()))}))}function sZ({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],a=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return a.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=GR(t.fonts,"add",(function(t){return function(n){return Nw(on((()=>{const t=a.get(n);t&&(e(t),a.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(i),on((()=>{r.forEach((e=>e()))}))}function cZ(e){const{doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,selectionCb:i}=e;let s=!0;const c=on((()=>{const e=t.getSelection();if(!e||s&&_c([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:s,startOffset:l,endContainer:u,endOffset:f}=i;Wi(s,r,a,o,!0)||Wi(u,r,a,o,!0)||c.push({start:n.getId(s),startOffset:l,end:n.getId(u),endOffset:f})}i({ranges:c})}));return c(),Ho("selectionchange",c)}function lZ({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?GR(n.customElements,"define",(function(e){return function(n,r,a){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,a])}})):()=>{}}function fZ(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=c7(e,e.doc));const a=JY(e),o=eZ(e),i=l7(e),s=tZ(e,{win:n}),c=rZ(e),l=iZ(e);let u=()=>{},f=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(u=aZ(e,{win:n}),f=f7(e,e.doc),d=oZ(e,{win:n}),e.collectFonts&&(p=sZ(e)));const h=cZ(e),m=lZ(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return on((()=>{Zg.forEach((e=>e.reset())),_c([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),a(),o(),i(),s(),c(),l(),u(),f(),d(),p(),h(),m(),g.forEach((e=>e()))}))}function $v(e){return typeof window[e]<"u"}function Pv(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class iC{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const a=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let i=a.get(t);return i||(i=this.generateIdFn(),a.set(t,i),o.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function U9(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}class uZ{constructor(){this.crossOriginIframeMirror=new iC(HR),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class dZ{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new iC(HR),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new iC(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),U9([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);const n=QR(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin||!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Vt.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Vt.IncrementalSnapshot,data:{source:$t.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Vt.Meta:case Vt.Load:case Vt.DomContentLoaded:return!1;case Vt.Plugin:return t;case Vt.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Vt.IncrementalSnapshot:switch(t.data.source){case $t.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case $t.Drag:case $t.TouchMove:case $t.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case $t.ViewportResize:return!1;case $t.MediaInteraction:case $t.MouseInteraction:case $t.Scroll:case $t.CanvasMutation:case $t.Input:return this.replaceIds(t.data,e,["id"]),t;case $t.StyleSheetRule:case $t.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case $t.Font:return t;case $t.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case $t.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),U9([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const a of r)!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type!==ba.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class pZ{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class hZ{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!my(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=c7({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(l7({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Nw((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(f7({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=QR(e),n=HY(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(GR(e.prototype,"attachShadow",(function(e){return function(r){const a=e.call(this,r);return this.shadowRoot&&i7(this)&&n.addShadowRoot(this.shadowRoot,t),a}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class V9{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class mZ{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new FY,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:V8(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class gZ{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,qY((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Sr,jb;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=pb([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const gc=mY();function eu(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:a="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:f=null,maskTextSelector:d=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,maxCanvasSize:w=null,packFn:k,sampling:x={},dataURLOptions:S={},mousemoveWait:E,recordDOM:A=!0,recordCanvas:C=!1,recordCrossOriginIframes:z=!1,recordAfter:I=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:T=!1,collectFonts:R=!1,inlineImages:j=!1,plugins:P,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:M,onMutation:D,getCanvasManager:B}=e;ZY(M);const L=!z||window.parent===window;let q=!1;if(!L)try{window.parent.document&&(q=!1)}catch{q=!0}if(L&&!t)throw new Error("emit function is required");if(!L&&!q)return()=>{};void 0!==E&&void 0===x.mousemove&&(x.mousemove=E),gc.reset();const V=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},F=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};BY();let U,$=0;const W=e=>{for(const t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!q&&(e=k(e)),e};Sr=(e,a)=>{const o=e;if(o.timestamp=Nb(),pb([Zg,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&o.type!==Vt.FullSnapshot&&!(o.type===Vt.IncrementalSnapshot&&o.data.source===$t.Mutation)&&Zg.forEach((e=>e.unfreeze())),L)pb([t,"optionalCall",e=>e(W(o),a)]);else if(q){const e={type:"rrweb",event:W(o),origin:window.location.origin,isCheckout:a};window.parent.postMessage(e,"*")}if(o.type===Vt.FullSnapshot)U=o,$=0;else if(o.type===Vt.IncrementalSnapshot){if(o.data.source===$t.Mutation&&o.data.isAttachIframe)return;$++;const e=r&&$>=r,t=n&&U&&o.timestamp-U.timestamp>n;(e||t)&&ee(!0)}};const H=e=>{Sr({type:Vt.IncrementalSnapshot,data:{source:$t.Mutation,...e}})},G=e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.Scroll,...e}}),Q=e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.CanvasMutation,...e}}),K=new mZ({mutationCb:H,adoptedStyleSheetCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new uZ:new dZ({mirror:gc,mutationCb:H,stylesheetManager:K,recordCrossOriginIframes:z,wrappedEmit:Sr});for(const e of P||[])e.getMirror&&e.getMirror({nodeMirror:gc,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const Z=new gZ,X=_Z(B,{mirror:gc,win:window,mutationCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.CanvasMutation,...e}}),recordCanvas:C,blockClass:a,blockSelector:o,unblockSelector:i,maxCanvasSize:w,sampling:x.canvas,dataURLOptions:S,errorHandler:M}),J="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new pZ:new hZ({mutationCb:H,scrollCb:G,bypassOptions:{onMutation:D,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:V,dataURLOptions:S,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:C,inlineImages:j,sampling:x,slimDOMOptions:F,iframeManager:Y,stylesheetManager:K,canvasManager:X,keepIframeSrcFn:O,processedNodeManager:Z},mirror:gc}),ee=(e=!1)=>{if(!A)return;Sr({type:Vt.Meta,data:{href:window.location.href,width:e7(),height:J8()}},e),K.reset(),J.init(),Zg.forEach((e=>e.lock()));const t=LY(document,{mirror:gc,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:V,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:F,dataURLOptions:S,recordCanvas:C,inlineImages:j,onSerialize:e=>{r7(e,gc)&&Y.addIframe(e),a7(e,gc)&&K.trackLinkElement(e),aC(e)&&J.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),e.contentWindow&&X.addWindow(e.contentWindow),J.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:O});if(!t)return console.warn("Failed to snapshot the document");Sr({type:Vt.FullSnapshot,data:{node:t,initialOffset:X8(window)}}),Zg.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,gc.getId(document))};jb=ee;try{const e=[],t=e=>on(fZ)({onMutation:D,mutationCb:H,mousemoveCb:(e,t)=>Sr({type:Vt.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.MouseInteraction,...e}}),scrollCb:G,viewportResizeCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.ViewportResize,...e}}),inputCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.Input,...e}}),mediaInteractionCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.MediaInteraction,...e}}),styleSheetRuleCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.StyleSheetRule,...e}}),styleDeclarationCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>Sr({type:Vt.IncrementalSnapshot,data:{source:$t.Font,...e}}),selectionCb:e=>{Sr({type:Vt.IncrementalSnapshot,data:{source:$t.Selection,...e}})},customElementCb:e=>{Sr({type:Vt.IncrementalSnapshot,data:{source:$t.CustomElement,...e}})},blockClass:a,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,maskInputOptions:V,inlineStylesheet:h,sampling:x,recordDOM:A,recordCanvas:C,inlineImages:j,userTriggeredOnInput:T,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:O,blockSelector:o,unblockSelector:i,slimDOMOptions:F,dataURLOptions:S,mirror:gc,iframeManager:Y,stylesheetManager:K,shadowDomManager:J,processedNodeManager:Z,canvasManager:X,ignoreCSSAttributes:N,plugins:pb([P,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>Sr({type:Vt.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{ee(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Ho("DOMContentLoaded",(()=>{Sr({type:Vt.DomContentLoaded,data:{}}),"DOMContentLoaded"===I&&n()}))),e.push(Ho("load",(()=>{Sr({type:Vt.Load,data:{}}),"load"===I&&n()}),window))),()=>{e.forEach((e=>e())),Z.destroy(),jb=void 0,XY()}}catch(e){console.warn(e)}}function yZ(e){if(!jb)throw new Error("please take full snapshot after start recording");jb(e)}function _Z(e,t){try{return e?e(t):new V9}catch{return console.warn("Unable to initialize CanvasManager"),new V9}}eu.mirror=gc,eu.takeFullSnapshot=yZ;const vZ=3,bZ=5;function YR(e){return e>9999999999?e:1e3*e}function Vx(e){return e>9999999999?e/1e3:e}function E_(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Vt.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:Kf(t,10,1e3)}}),"console"===t.category))))}const wZ="button,a";function u7(e){return e.closest(wZ)||e}function d7(e){const t=p7(e);return t&&t instanceof Element?u7(t):t}function p7(e){return kZ(e)?e.target:e}function kZ(e){return"object"==typeof e&&!!e&&"target"in e}let Gd;function xZ(e){return Gd||(Gd=[],SZ()),Gd.push(e),()=>{const t=Gd?Gd.indexOf(e):-1;t>-1&&Gd.splice(t,1)}}function SZ(){Is(Gn,"open",(function(e){return function(...t){if(Gd)try{Gd.forEach((e=>e()))}catch{}return e.apply(Gn,t)}}))}const EZ=new Set([$t.Mutation,$t.StyleSheetRule,$t.StyleDeclaration,$t.AdoptedStyleSheet,$t.CanvasMutation,$t.Selection,$t.MediaInteraction]);function CZ(e,t,n){e.handleClick(t,n)}class RZ{constructor(e,t,n=E_){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=xZ((()=>{this._lastMutation=q9()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(AZ(t,this._ignoreSelector)||!IZ(e))return;const n={timestamp:Vx(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Vx(e)}registerScroll(e=Date.now()){this._lastScroll=Vx(e)}registerClick(e){const t=u7(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=q9();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,a=!n&&!r,{clickCount:o,clickBreadcrumb:i}=e;if(a){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:Gn.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,a)}else if(o>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:Gn.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=l1((()=>this._checkClicks()),1e3)}}const TZ=["A","BUTTON","INPUT"];function AZ(e,t){return!!(!TZ.includes(e.tagName)||"INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||"A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target"))||t&&e.matches(t))}function IZ(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}function q9(){return Date.now()/1e3}function $Z(e,t){try{if(!PZ(t))return;const{source:n}=t.data;if(EZ.has(n)&&e.registerMutation(t.timestamp),n===$t.Scroll&&e.registerScroll(t.timestamp),OZ(t)){const{type:n,id:r}=t.data,a=eu.mirror.getNode(r);a instanceof HTMLElement&&n===Wo.Click&&e.registerClick(a)}}catch{}}function PZ(e){return 3===e.type}function OZ(e){return e.data.source===$t.MouseInteraction}function Rl(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Bb;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Bb||(Bb={}));const zZ=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function MZ(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(zZ.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}const DZ=e=>t=>{if(!e.isEnabled())return;const n=NZ(t);if(!n)return;const r="click"===t.name,a=r?t.event:void 0;r&&e.clickDetector&&a&&a.target&&!a.altKey&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&CZ(e.clickDetector,n,d7(t.event)),E_(e,n)};function h7(e,t){const n=eu.mirror.getId(e),r=n&&eu.mirror.getNode(n),a=r&&eu.mirror.getMeta(r),o=a&&jZ(a)?a:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===Bb.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:MZ(o.attributes)}}:{}}}function NZ(e){const{target:t,message:n}=LZ(e);return Rl({category:`ui.${e.name}`,...h7(t,n)})}function LZ(e){const t="click"===e.name;let n,r=null;try{r=t?d7(e.event):p7(e.event),n=DR(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function jZ(e){return e.type===Bb.Element}function BZ(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=FZ(t);n&&E_(e,n)}function FZ(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:a,key:o,target:i}=e;if(!i||UZ(i)||!o)return null;const s=t||r||a,c=1===o.length;if(!s&&c)return null;const l=DR(i,{maxStringLength:200})||"<unknown>";return Rl({category:"ui.keyDown",message:l,data:{...h7(i,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:a,key:o}})}function UZ(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}const VZ={resource:KZ,paint:HZ,navigation:GZ};function Ov(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function qZ(e){return e.map(WZ).filter(Boolean)}function WZ(e){const t=VZ[e.entryType];return t?t(e):null}function d1(e){return((xG||Gn.performance.timeOrigin)+e)/1e3}function HZ(e){const{duration:t,entryType:n,name:r,startTime:a}=e,o=d1(a);return{type:n,name:r,start:o,end:o+t,data:void 0}}function GZ(e){const{entryType:t,name:n,decodedBodySize:r,duration:a,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:f,redirectCount:d,startTime:p,transferSize:h,type:m}=e;return 0===a?null:{type:`${t}.${m}`,start:d1(p),end:d1(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:a,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:f,domComplete:o,redirectCount:d}}}function KZ(e){const{entryType:t,initiatorType:n,name:r,responseEnd:a,startTime:o,decodedBodySize:i,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:d1(o),end:d1(a),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:s}}}function QZ(e){const t=e.entries[e.entries.length-1];return Lw(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function YZ(e){return void 0!==e.sources}function ZZ(e){const t=[],n=[];for(const r of e.entries)if(YZ(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=eu.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Lw(e,"cumulative-layout-shift",n,t)}function XZ(e){const t=e.entries[e.entries.length-1];return Lw(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function JZ(e){const t=e.entries[e.entries.length-1];return Lw(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function Lw(e,t,n,r){const a=e.value,o=e.rating,i=d1(a);return{type:"web-vital",name:t,start:i,end:i,data:{value:a,size:a,rating:o,nodeIds:n?n.map((e=>eu.mirror.getId(e))):void 0,attributions:r}}}function eX(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(CQ(e,n))})),r.push(xQ(Ov(QZ,e)),kQ(Ov(ZZ,e)),SQ(Ov(XZ,e)),EQ(Ov(JZ,e))),()=>{r.forEach((e=>e()))}}const Et=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,tX='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function nX(){const e=new Blob([tX]);return URL.createObjectURL(e)}const W9=["info","warn","error","log"],hb="[Replay] ";function qx(e,t="info"){NK({category:"console",data:{logger:"replay"},level:t,message:`${hb}${e}`},{level:t})}function rX(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return Et?(W9.forEach((e=>{n[e]=(...n)=>{Go[e](hb,...n),t&&qx(n.join(""),LK(e))}})),n.exception=(r,...a)=>{a.length&&n.error&&n.error(...a),Go.error(hb,r),e?jR(r):t&&qx(r,"error")},n.infoTick=(...e)=>{Go.info(hb,...e),t&&setTimeout((()=>qx(e[0])),0)}):W9.forEach((e=>{n[e]=()=>{}})),n}const Tt=rX();class ZR extends Error{constructor(){super(`Event buffer exceeded maximum size of ${qR}.`)}}class m7{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>qR)throw new ZR;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?YR(e):null}}class aX{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Et&&Tt.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,a)=>{const o=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",o),!i.success)return Et&&Tt.error("Error in compression worker: ",i.response),void a(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class oX{constructor(e){this._worker=new aX(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=YR(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>qR?Promise.reject(new ZR):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Et&&Tt.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class iX{constructor(e){this._fallback=new m7,this._compression=new oX(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Et&&Tt.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){Et&&Tt.exception(e,"Failed to add events when switching buffers.")}}}function sX({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=cX(t);if(e)return e}return Et&&Tt.info("Using simple buffer"),new m7}function cX(e){try{const t=e||lX();if(!t)return;Et&&Tt.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new iX(n)}catch(e){Et&&Tt.exception(e,"Failed to create compression worker")}}function lX(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?nX():""}function XR(){try{return"sessionStorage"in Gn&&!!Gn.sessionStorage}catch{return!1}}function fX(e){uX(),e.session=void 0}function uX(){if(XR())try{Gn.sessionStorage.removeItem(UR)}catch{}}function g7(e){return void 0!==e&&Math.random()<e}function y7(e){const t=Date.now();return{id:e.id||Jf(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function JR(e){if(XR())try{Gn.sessionStorage.setItem(UR,JSON.stringify(e))}catch{}}function dX(e,t){return g7(e)?"session":!!t&&"buffer"}function H9({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const a=y7({sampled:dX(e,t),previousSessionId:r});return n&&JR(a),a}function pX(){if(!XR())return null;try{const e=Gn.sessionStorage.getItem(UR);if(!e)return null;const t=JSON.parse(e);return Et&&Tt.infoTick("Loading existing session"),y7(t)}catch{return null}}function sC(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function _7(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return sC(e.started,t,r)||sC(e.lastActivity,n,r)}function v7(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!_7(e,{sessionIdleExpire:t,maxReplayDuration:n})||"buffer"===e.sampled&&0===e.segmentId)}function Wx({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const a=r.stickySession&&pX();return a?v7(a,{sessionIdleExpire:e,maxReplayDuration:t})?(Et&&Tt.infoTick("Session in sessionStorage is expired, creating new one..."),H9(r,{previousSessionId:a.id})):a:(Et&&Tt.infoTick("Creating new session"),H9(r,{previousSessionId:n}))}function hX(e){return e.type===Vt.Custom}function eT(e,t,n){return!!w7(e,t)&&(b7(e,t,n),!0)}function mX(e,t,n){return w7(e,t)?b7(e,t,n):Promise.resolve(null)}async function b7(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const a="buffer"===e.recordingMode;try{n&&a&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=gX(t,e.getOptions().beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(t){const n=t&&t instanceof ZR,o=n?"addEventSizeExceeded":"addEvent";if(n&&a)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o});const i=Nl();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function w7(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=YR(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Et&&Tt.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function gX(e,t){try{if("function"==typeof t&&hX(e))return t(e)}catch(e){return Et&&Tt.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function tT(e){return!e.type}function cC(e){return"transaction"===e.type}function yX(e){return"replay_event"===e.type}function G9(e){return"feedback"===e.type}function _X(e){return(t,n)=>{if(!e.isEnabled()||!tT(t)&&!cC(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(cC(t))return void vX(e,t);bX(e,t)}}}function vX(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function bX(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();"function"==typeof r&&!r(t)||l1((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}function wX(e){return t=>{!e.isEnabled()||!tT(t)||kX(e,t)}}function kX(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){E_(e,Rl({category:"replay.hydrate-error",data:{url:yG()}}))}}function xX(e){const t=Nl();t&&t.on("beforeAddBreadcrumb",(t=>SX(e,t)))}function SX(e,t){if(!e.isEnabled()||!k7(t))return;const n=EX(t);n&&E_(e,n)}function EX(e){return!k7(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?CX(e):Rl(e)}function CX(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Rl(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Iv?(n=!0,`${e.slice(0,Iv)}…`):e;if("object"==typeof e)try{const t=Kf(e,7);return JSON.stringify(t).length>Iv?(n=!0,`${JSON.stringify(t,null,2).slice(0,Iv)}…`):t}catch{}return e}));return Rl({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function k7(e){return!!e.category}function RX(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}function x7(){const e=E1().getPropagationContext().dsc;e&&delete e.replay_id;const t=T8();if(t){delete I8(t).replay_id}}function TX(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Vt.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}function AX(e,t){return!("buffer"!==e.recordingMode||t.message===VR||!t.exception||t.type)&&g7(e.getOptions().errorSampleRate)}function IX(e){return Object.assign(((t,n)=>!e.isEnabled()||e.isPaused()?t:yX(t)?(delete t.breadcrumbs,t):tT(t)||cC(t)||G9(t)?e.checkAndHandleExpiredSession()?G9(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),TX(e,t),t):RX(t,n)&&!e.getOptions()._experiments.captureExceptions?(Et&&Tt.log("Ignoring error from rrweb internals",t),null):((AX(e,t)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(x7(),t):t),{id:"Replay"})}function jw(e,t){return t.map((({type:t,start:n,end:r,name:a,data:o})=>{const i=e.throttledAddEvent({type:Vt.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof i?Promise.resolve(null):i}))}function $X(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function PX(e){return t=>{if(!e.isEnabled())return;const n=$X(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(jw(e,[n]),!1))))}}function OX(e,t){return(!Et||!e.getOptions()._experiments.traceInternals)&&OK(t,Nl())}function S7(e,t){e.isEnabled()&&null!==t&&(OX(e,t.name)||e.addUpdate((()=>(jw(e,[t]),!0))))}function Bw(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=T7(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function E7(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function C7(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[T7(e)];if(!e)return[void 0]}catch(t){return Et&&Tt.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Et&&Tt.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Fb(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function R7(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:a,method:o,statusCode:i,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:a,data:vc({method:o,statusCode:i,request:s,response:c})}}function jy(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Jd(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:a,warnings:o}=zX(n);return r.body=a,o&&o.length>0&&(r._meta={warnings:o}),r}function lC(e,t){return Object.entries(e).reduce(((n,[r,a])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=a),n}),{})}function T7(e){return new URLSearchParams(e).toString()}function zX(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>R9,n=MX(e);if(t){const t=e.slice(0,R9);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function MX(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}function Ub(e,t){return vG(DX(e),t)}function DX(e,t=Gn.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Gn.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function NX(e,t,n){try{const r=R7("resource.fetch",await jX(e,t,n));S7(n.replay,r)}catch(e){Et&&Tt.exception(e,"Failed to capture fetch breadcrumb")}}function LX(e,t){const{input:n,response:r}=t,a=Bw(n?A7(n):void 0),o=r?E7(r.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==o&&(e.data.response_body_size=o)}async function jX(e,t,n){const r=Date.now(),{startTimestamp:a=r,endTimestamp:o=r}=t,{url:i,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,f=Ub(i,n.networkDetailAllowUrls)&&!Ub(i,n.networkDetailDenyUrls);return{startTimestamp:a,endTimestamp:o,url:i,method:s,statusCode:c,request:f?BX(n,t.input,l):jy(l),response:await FX(f,n,t.response,u)}}function BX({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const a=n?qX(n,t):{};if(!e)return Jd(a,r,void 0);const o=A7(n),[i,s]=C7(o),c=Jd(a,r,i);return s?Fb(c,s):c}async function FX(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,a){if(!e&&void 0!==a)return jy(a);const o=r?I7(r.headers,n):{};if(!r||!t&&void 0!==a)return Jd(o,a,void 0);const[i,s]=await VX(r),c=UX(i,{networkCaptureBodies:t,responseBodySize:a,captureDetails:e,headers:o});return s?Fb(c,s):c}function UX(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:a}){try{const o=e&&e.length&&void 0===n?Bw(e):n;return r?Jd(a,o,t?e:void 0):jy(o)}catch(e){return Et&&Tt.exception(e,"Failed to serialize response body"),Jd(a,n,void 0)}}async function VX(e){const t=WX(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await HX(t)]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(Et&&Tt.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Et&&Tt.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function A7(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function I7(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function qX(e,t){return 1===e.length&&"string"!=typeof e[0]?K9(e[0],t):2===e.length?K9(e[1],t):{}}function K9(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?I7(n,t):Array.isArray(n)?{}:lC(n,t):{}}function WX(e){try{return e.clone()}catch(e){Et&&Tt.exception(e,"Failed to clone response body")}}function HX(e){return new Promise(((t,n)=>{const r=l1((()=>n(new Error("Timeout while trying to read response body"))),500);GX(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}async function GX(e){return await e.text()}async function KX(e,t,n){try{const r=R7("resource.xhr",YX(e,t,n));S7(n.replay,r)}catch(e){Et&&Tt.exception(e,"Failed to capture xhr breadcrumb")}}function QX(e,t){const{xhr:n,input:r}=t;if(!n)return;const a=Bw(r),o=n.getResponseHeader("content-length")?E7(n.getResponseHeader("content-length")):eJ(n.response,n.responseType);void 0!==a&&(e.data.request_body_size=a),void 0!==o&&(e.data.response_body_size=o)}function YX(e,t,n){const r=Date.now(),{startTimestamp:a=r,endTimestamp:o=r,input:i,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:f,response_body_size:d}=e.data;if(!c)return null;if(!s||!Ub(c,n.networkDetailAllowUrls)||Ub(c,n.networkDetailDenyUrls)){return{startTimestamp:a,endTimestamp:o,url:c,method:l,statusCode:u,request:jy(f),response:jy(d)}}const p=s[FQ],h=p?lC(p.request_headers,n.networkRequestHeaders):{},m=lC(ZX(s),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?C7(i):[void 0],[v,b]=n.networkCaptureBodies?XX(s):[void 0],_=Jd(h,f,g),w=Jd(m,d,v);return{startTimestamp:a,endTimestamp:o,url:c,method:l,statusCode:u,request:y?Fb(_,y):_,response:b?Fb(w,b):w}}function ZX(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{}):{}}function XX(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return JX(e.response,e.responseType)}catch(e){t.push(e)}return Et&&Tt.warn("Failed to get xhr response body",...t),[void 0]}function JX(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Et&&Tt.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Et&&Tt.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function eJ(e,t){try{return Bw("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}function tJ(e){const t=Nl();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",((e,t)=>nJ(s,e,t)))}catch{}}function nJ(e,t,n){if(t.data)try{rJ(t)&&oJ(n)&&(QX(t,n),KX(t,n,e)),aJ(t)&&iJ(n)&&(LX(t,n),NX(t,n,e))}catch(e){Et&&Tt.exception(e,"Error when enriching network breadcrumb")}}function rJ(e){return"xhr"===e.category}function aJ(e){return"fetch"===e.category}function oJ(e){return e&&e.xhr}function iJ(e){return e&&e.response}function sJ(e){const t=Nl();OQ(DZ(e)),LQ(PX(e)),xX(e),tJ(e);RK(IX(e)),t&&(t.on("beforeSendEvent",wX(e)),t.on("afterSendEvent",_X(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}async function cJ(e){try{return Promise.all(jw(e,[lJ(Gn.performance.memory)]))}catch{return[]}}function lJ(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function fJ(e,t,n){let r,a,o;const i=n.maxWait?Math.max(n.maxWait,t):0;function s(){return c(),r=e(),r}function c(){void 0!==a&&clearTimeout(a),void 0!==o&&clearTimeout(o),a=o=void 0}function l(){return a&&clearTimeout(a),a=l1(s,t),i&&void 0===o&&(o=l1(s,i)),r}return l.cancel=c,l.flush=function(){return void 0!==a||void 0!==o?s():r},l}function uJ(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Et&&Tt.warn("Received replay event after session expired."));const a=r||!t;t=!0,e.clickDetector&&$Z(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&a&&e.setInitialState(),!eT(e,n,a))return!0;if(!a)return!1;const t=e.session;if(pJ(e,a),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(Et&&Tt.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&JR(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}function dJ(e){const t=e.getOptions();return{type:Vt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function pJ(e,t){!t||!e.session||0!==e.session.segmentId||eT(e,dJ(e),!1)}function hJ(e,t,n,r){return sK(lK(e,cK(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function mJ({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function gJ({client:e,scope:t,replayId:n,event:r}){const a={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,a);const o=await yK(e.getOptions(),r,a,t,e,v_());if(!o)return null;o.platform=o.platform||"javascript";const i=e.getSdkMetadata(),{name:s,version:c}=i&&i.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:c||"0.0.0"},o}async function yJ({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:a,session:o}){const i=mJ({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,f=Nl(),d=E1(),p=f&&f.getTransport(),h=f&&f.getDsn();if(!(f&&p&&h&&o.sampled))return f9({});const m={type:YQ,replay_start_timestamp:u/1e3,timestamp:a/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:o.sampled},g=await gJ({scope:d,client:f,replayId:t,event:m});if(!g)return f.recordDroppedEvent("event_processor","replay",m),Et&&Tt.info("An event processor returned `null`, will not send event."),f9({});delete g.sdkProcessingMetadata;const y=hJ(g,i,h,f.getOptions().tunnel);let v;try{v=await p.send(y)}catch(e){const t=new Error(VR);try{t.cause=e}catch{}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new $7(v.statusCode);const b=PK({},v);if($K(b,"replay"))throw new nT(b);return v}class $7 extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class nT extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function P7(e,t={count:0,interval:nY}){const{recordingData:n,onError:r}=e;if(n.length)try{return await yJ(e),!0}catch(n){if(n instanceof $7||n instanceof nT)throw n;if(EK("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${VR} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{l1((async()=>{try{await P7(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const O7="__THROTTLED",_J="__SKIPPED";function vJ(e,t,n){const r=new Map;let a=!1;return(...o)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(i),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=a;return a=!0,e?_J:O7}a=!1;const s=r.get(i)||0;return r.set(i,s+1),e(...o)}}class Kd{constructor({options:e,recordingOptions:t}){Kd.prototype.__init.call(this),Kd.prototype.__init2.call(this),Kd.prototype.__init3.call(this),Kd.prototype.__init4.call(this),Kd.prototype.__init5.call(this),Kd.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:ZQ,sessionIdleExpire:XQ},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=fJ((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=vJ(((e,t)=>mX(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),a=n?{threshold:Math.min(aY,n),timeout:n,scrollTimeout:oY,ignoreSelector:r?r.join(","):""}:void 0;if(a&&(this.clickDetector=new RZ(this,a)),Et){const t=e._experiments;Tt.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){Et&&Tt.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session)return void(Et&&Tt.exception(new Error("Unable to initialize and create session")));!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Et&&Tt.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Et&&Tt.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Et&&Tt.info("Buffering is in progress, call `flush()` to save the replay"));Et&&Tt.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Wx({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Et&&Tt.info("Buffering is in progress, call `flush()` to save the replay"));Et&&Tt.infoTick("Starting replay in buffer mode");const e=Wx({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=eu({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:tY}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:uJ(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{Et&&Tt.info("Stopping Replay"+(t?` triggered by ${t}`:"")),x7(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,fX(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Et&&Tt.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Et&&Tt.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Et&&Tt.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();!e||!n||"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&sC(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Gn.location.pathname}${Gn.location.hash}${Gn.location.search}`,t=`${Gn.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===O7){const e=Rl({category:"replay.throttled"});this.addUpdate((()=>!eT(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||T8(),t=e&&LR(e),n=(t&&zy(t).data||{})[R8];if(t&&n&&["route","custom"].includes(n))return zy(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=sX({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Wx({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!v7(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Gn.document.addEventListener("visibilitychange",this._handleVisibilityChange),Gn.addEventListener("blur",this._handleWindowBlur),Gn.addEventListener("focus",this._handleWindowFocus),Gn.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(sJ(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=eX(this)}_removeListeners(){try{Gn.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Gn.removeEventListener("blur",this._handleWindowBlur),Gn.removeEventListener("focus",this._handleWindowFocus),Gn.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Gn.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Rl({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Rl({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{BZ(this,e)}}_doChangeToBackgroundTasks(e){!this.session||_7(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Et&&Tt.info("Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Vt.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=qZ(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(jw(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await cJ(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await P7({replayId:e,recordingData:a,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=Nl();if(t){const n=e instanceof nT?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else Et&&Tt.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Et&&Tt.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,a=n>this._options.maxReplayDuration+5e3;if(r||a)return Et&&Tt.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&Et&&Tt.info("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&JR(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=Rl({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function L0(e,t){return[...e,...t].join(",")}function bJ({mask:e,unmask:t,block:n,unblock:r,ignore:a}){return{maskTextSelector:L0(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:L0(t,[]),blockSelector:L0(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:L0(r,[]),ignoreSelector:L0(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function wJ({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:a,value:o}){return!r||a.unmaskTextSelector&&e.matches(a.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const Q9='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',kJ=["content-length","content-type","accept"];let Y9=!1;const xJ=e=>new Fw(e);class Fw{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=JQ,flushMaxDelay:t=eY,minReplayDuration:n=iY,maxReplayDuration:r=T9,stickySession:a=!0,useCompression:o=!0,workerUrl:i,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:f=750,mutationLimit:d=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:_=[],maskAttributes:w=["title","placeholder"],unmask:k=[],block:x=[],unblock:S=[],ignore:E=[],maskFn:A,beforeAddRecordingEvent:C,beforeErrorSampling:z,onError:I}={}){this.name=Fw.id;const T=bJ({mask:_,unmask:k,block:x,unblock:S,ignore:E});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:A,maskInputFn:A,maskAttributeFn:(e,t,n)=>wJ({maskAttributes:w,maskAllText:c,privacyOptions:T,key:e,value:t,el:n}),...T,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,sY),maxReplayDuration:Math.min(r,T9),stickySession:a,useCompression:o,workerUrl:i,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:f,mutationLimit:d,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:Z9(v),networkResponseHeaders:Z9(b),beforeAddRecordingEvent:C,beforeErrorSampling:z,onError:I,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Q9}`:Q9),this._isInitialized&&k9())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Y9}set _isInitialized(e){Y9=e}afterAllSetup(e){!k9()||this._replay||(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=SJ(this._initialOptions,e);this._replay=new Kd({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function SJ(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...vc(e)},a=y9(n.replaysSessionSampleRate),o=y9(n.replaysOnErrorSampleRate);return null==a&&null==o&&$R((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=a&&(r.sessionSampleRate=a),null!=o&&(r.errorSampleRate=o),r}function Z9(e){return[...kJ,...e.map((e=>e.toLowerCase()))]}Fw.__initStatic();const z7=()=>"object"!=typeof window;var EJ={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/router/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/router/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"75f5d9c2e3f1e845",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/router",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.174",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/router",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/router",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/router"};z7()||(window.build=EJ.BUILD_NUMBER),xJ(),WQ(),FK();const X9={data:null,isError:!1,isPending:!1,isSuccess:!1},ro=ia({name:"user",initialState:X9,reducers:{reset:e=>{Object.assign(e,X9)},setData:(e,{payload:t})=>{e.data=t},updateData:(e,{payload:t})=>{e.data&&Object.assign(e.data,t)},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setPending:(e,{payload:t})=>{e.isPending=t},setIsError:(e,{payload:t})=>{e.isError=t},setError:(e,{payload:t})=>{e.error=t},updateUser:(e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectAccountId:e=>{var t;return null==(t=e.data)?void 0:t.account.id},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess,selectIsAdmin:e=>{var t;return"ADMIN"===(null==(t=e.data)?void 0:t.account.role)}}}),CJ=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return CK("exceptionMessage",t),void jR(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}SK(t)},J9=["debug","info","warn","error"],RJ=(e,t)=>{const n=J9.indexOf(e);return J9.indexOf(t)>=n},zv=(e,t,n,...r)=>{RJ(t,e)&&console.log(`[${e}] ${n}`,...r)},TJ=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),AJ=(e=!z7()&&TJ()||"warn")=>{let t=e;return{debug:(e,...n)=>zv("debug",t,e,...n),info:(e,...n)=>zv("info",t,e,...n),warn:(e,...n)=>zv("warn",t,e,...n),error:(e,...n)=>(CJ(e,...n),zv("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},au=AJ(),Uw="staticState",mb={path:"",baseUrl:"",search:""},IJ=e=>{if(!e)return mb;try{return JSON.parse(decodeURIComponent(e))||mb}catch(e){return au.error("Error parsing static state",e),mb}},M7=()=>new URLSearchParams(window.location.search).get(Uw),$J=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:a,search:o}=window.location;return`${Uw}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||a,search:n||o}))}`},PJ=()=>{const e=M7();return e&&localStorage.setItem(Uw,e),D7()},D7=()=>{try{const e=localStorage.getItem(Uw)||M7();return IJ(e)}catch(e){return au.error("Error parsing static state",e),mb}},C_={create:$J,init:PJ,get:D7},OJ=e=>{try{const{type:t,payload:n}=e,r={type:t};return void 0!==n&&(r.payload=JSON.parse(JSON.stringify(n))),r}catch(t){return au.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},zJ=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const a=OJ(e);t.postMessage(a,"*")}catch(e){au.error("Failed to process or send message:",e)}},MJ=({onMessage:e,whitelist:t})=>{const n=n=>{const r=n.origin!==window.location.origin,a=n.data&&"object"==typeof n.data&&"type"in n.data,o=t.some((({type:e})=>e===n.data.type||"*"===e));r&&a&&o&&e(n.data)};return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},DJ=async e=>{const t={};e.headers.forEach(((e,n)=>{t[n]=e}));return{body:["get","head"].includes(e.method.toLowerCase())?null:await(async()=>{try{return await e.text()}catch(e){return au.error("No body or error reading body:",e),null}})(),headers:t,url:e.url,method:e.method,mode:e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}},NJ=e=>{const{url:t,status:n,statusText:r,headers:a,body:o}=e,i=new Response(JSON.stringify(o),{status:n,statusText:r,headers:a});return Object.defineProperty(i,"url",{value:t}),i},LJ=async e=>{const t=crypto.randomUUID();return zJ({action:n9({id:t,options:await DJ(e)}),windowElement:window.parent,whitelist:[n9]}),new Promise((e=>{const n=MJ({onMessage:({payload:{id:r,response:a}})=>{t===r&&(n(),e(NJ(a)))},whitelist:[eG]})}))},rT=()=>{var e;try{return(null==(e=window.wellesley)?void 0:e.v1)||window.wellesley}catch(e){au.error("Error getting window.wellesley:",e)}},jJ=e=>new Response(JSON.stringify(e),{status:200,statusText:"OK",headers:{"Content-Type":"application/json"}}),BJ=e=>{var t,n;if(e.url.includes("accounts/profile")){const e=null==(n=null==(t=rT())?void 0:t.initialState)?void 0:n.user;return!(null==e||!e.selectedUserId)&&jJ(e)}},FJ=Object.freeze(Object.defineProperty({__proto__:null,userHandler:BJ},Symbol.toStringTag,{value:"Module"})),UJ=e=>Object.values(FJ).reduce(((t,n)=>t||n(e)),void 0),VJ=async e=>UJ(e)||await fetch(e),qJ=()=>{try{return window.self!==window.top}catch{return!0}},WJ=()=>e=>qJ()?LJ(e):VJ(e),HJ=C_.get().baseUrl,GJ=HJ||"",KJ=sH({fetchFn:WJ(),baseUrl:GJ,responseHandler:e=>{const t=e.headers.get("content-type");return(null==t?void 0:t.startsWith("application/json"))?e.json():e.text()},prepareHeaders:e=>{const t=Xh.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),QJ=nG(iG(KJ)),YJ=KH({tagTypes:["Secure","Post","Follow","Like","Settings","Rbac_Config","Admin_Apps","Admin_Users","Admin_Audit_Logs","Admin_Reports","Admin_Signup_Requests","Admin_Posts","Admin_Uploads","Admin_Roles","Admin_Jobs_Stats","Admin_Federation","Admin_Domain_Block","Group_Apps","User_Apps","Account","Profile","UserNoHtml","Relationship","Bookmarks",...Object.values(Ib)],reducerPath:"openapi",baseQuery:QJ,endpoints:()=>({})}),ar=YJ.injectEndpoints({endpoints:e=>({postApiV1AccountsAddReason:e.mutation({query:e=>({url:"/api/v1/accounts/add-reason",method:"POST",body:e.signupReasonParams})}),postApiV1AccountsAuthenticateEmail:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/email",method:"POST",body:e.authRequest})}),postApiV1AccountsAuthenticatePhone:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/phone",method:"POST",body:e.authPhoneRequest})}),putApiV1AccountsChangeName:e.mutation({query:e=>({url:"/api/v1/accounts/change/name",method:"PUT",params:{id:e.id,name:e.name,username:e.username}})}),postApiV1AccountsCheckCaptcha:e.mutation({query:e=>({url:"/api/v1/accounts/check-captcha",method:"POST",body:e.captchaVerificationParams})}),postApiV1AccountsConfirmEmail:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-email",method:"POST",body:e.codeVerificationParams})}),postApiV1AccountsConfirmPhone:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-phone",method:"POST",body:e.codeVerificationParams})}),deleteApiV1AccountsDelete:e.mutation({query:()=>({url:"/api/v1/accounts/delete",method:"DELETE"})}),postApiV1AccountsEmailChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsEmailChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/request",method:"POST",body:e.emailChangeRequest})}),putApiV1AccountsEmailChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/email/change/resend-code",method:"PUT"})}),postApiV1AccountsFinishCreating:e.mutation({query:e=>({url:"/api/v1/accounts/finish-creating",method:"POST",body:e.finishCreatingAccountParams,params:{htmlContent:e.htmlContent}})}),putApiV1AccountsGetTokenByHash:e.mutation({query:e=>({url:`/api/v1/accounts/get-token/${e.hash}`,method:"PUT"})}),postApiV1AccountsLoginsAddEmailPassword:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password",method:"POST",body:e.addEmailRequest})}),postApiV1AccountsLoginsAddEmailPasswordConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password/confirm",method:"POST",body:e.body})}),putApiV1AccountsLoginsAddEmailPasswordResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/logins/add-email-password/resend-code",method:"PUT"})}),postApiV1AccountsLoginsAddPhone:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-phone",method:"POST",body:e.addPhoneRequest})}),deleteApiV1AccountsLoginsRemoveEmailPassword:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-email-password",method:"DELETE"})}),deleteApiV1AccountsLoginsRemovePhone:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-phone",method:"DELETE"})}),postApiV1AccountsPasswordChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsPasswordChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/request",method:"POST",body:e.passwordChangeRequest})}),putApiV1AccountsPasswordChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/password/change/resend-code",method:"PUT"})}),postApiV1AccountsPasswordRecover:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover",method:"POST",body:e.passwordRecoveryRequest})}),postApiV1AccountsPasswordRecoverChange:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/change",method:"POST",body:e.passwordRecoveryChange})}),postApiV1AccountsPasswordRecoverCheckCode:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/check-code",method:"POST",body:e.passwordRecoveryCode})}),postApiV1AccountsPhoneChangeConfirmAuth:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/auth",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeConfirmNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/new-phone",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/new-phone",method:"POST",body:e.addPhoneRequest})}),putApiV1AccountsPhoneChangeRequest:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/request",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeAuth:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/auth",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeNewPhone:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/new-phone",method:"PUT"})}),getApiV1AccountsProfile:e.query({query:e=>({url:"/api/v1/accounts/profile",params:{htmlContent:e.htmlContent}})}),postApiV1AccountsReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName,htmlContent:e.htmlContent}})}),putApiV1AccountsResendCodeByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-code/${e.hash}`,method:"PUT"})}),putApiV1AccountsResendEmailByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-email/${e.hash}`,method:"PUT"})}),postApiV1AccountsSignup:e.mutation({query:e=>({url:"/api/v1/accounts/signup",method:"POST",body:e.accountCreate})}),postApiV1AccountsSignupPhone:e.mutation({query:e=>({url:"/api/v1/accounts/signup-phone",method:"POST",body:e.phoneSignup})}),postApiV1AccountsUserReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/user/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName}})}),getApiV1AccountsById:e.query({query:e=>({url:`/api/v1/accounts/${e.id}`,params:{htmlContent:e.htmlContent}})}),getApiV1AddressesSuggest:e.query({query:e=>({url:"/api/v1/addresses/suggest",params:{text:e.text}})}),getApiV1AdminAccountByAccountId:e.query({query:e=>({url:`/api/v1/admin/account/${e.accountId}`,params:{htmlContent:e.htmlContent}})}),getApiV1AdminAuditLog:e.query({query:e=>({url:"/api/v1/admin/audit_log",params:{accountId:e.accountId,action:e.action,appId:e.appId,domainSearch:e.domainSearch,email:e.email,group:e.group,lastId:e.lastId,limit:e.limit,offset:e.offset,ruleId:e.ruleId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminChangeEmail:e.mutation({query:e=>({url:"/api/v1/admin/change/email",method:"PUT",params:{email:e.email,id:e.id,username:e.username}})}),putApiV1AdminChangePassword:e.mutation({query:e=>({url:"/api/v1/admin/change/password",method:"PUT",params:{id:e.id,password:e.password,username:e.username}})}),putApiV1AdminChangeRoleAssign:e.mutation({query:e=>({url:"/api/v1/admin/change/role/assign",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),putApiV1AdminChangeRoleRevoke:e.mutation({query:e=>({url:"/api/v1/admin/change/role/revoke",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),postApiV1AdminClearApErrors:e.mutation({query:e=>({url:"/api/v1/admin/clear-ap-errors",method:"POST",params:{domain:e.domain}})}),postApiV1AdminCreateAccount:e.mutation({query:e=>({url:"/api/v1/admin/create-account",method:"POST",body:e.accountCreate,params:{htmlContent:e.htmlContent}})}),deleteApiV1AdminDelete:e.mutation({query:e=>({url:"/api/v1/admin/delete",method:"DELETE",params:{email:e.email,id:e.id,username:e.username}})}),getApiV1AdminDomainAllow:e.query({query:e=>({url:"/api/v1/admin/domain-allow",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainAllow:e.mutation({query:e=>({url:"/api/v1/admin/domain-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminDomainAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-allow/${e.domain}`,method:"DELETE"})}),putApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"PUT",body:e.blockDomainReq})}),getApiV1AdminDomainBlock:e.query({query:e=>({url:"/api/v1/admin/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"POST",body:e.blockDomainReq})}),getApiV1AdminDomainBlockList:e.query({query:e=>({url:"/api/v1/admin/domain-block/list",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1AdminDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-block/${e.domain}`,method:"DELETE"})}),getApiV1AdminFederation:e.query({query:e=>({url:"/api/v1/admin/federation",params:{blockState:e.blockState,lastId:e.lastId,limit:e.limit,offset:e.offset,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,unavailable:e.unavailable,untilId:e.untilId,warning:e.warning}})}),getApiV1AdminFederationMetricsOperations:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/operations",params:{window:e.window}})}),getApiV1AdminFederationMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-average-single",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFederationMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-averages-all",params:{operations:e.operations,window:e.window}})}),getApiV1AdminFederationByDomain:e.query({query:e=>({url:`/api/v1/admin/federation/${e.domain}`})}),postApiV1AdminFeedClearUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/clear-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),getApiV1AdminFeedMetricsGlobalAllOperation:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-operation",params:{ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsGlobalAllOwners:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-owners",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFeedMetricsGlobalSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-single",params:{operation:e.operation,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsHistory:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all",params:{limit:e.limit,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAllSingleOwner:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all-single-owner",params:{limit:e.limit,ownerType:e.ownerType,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryByOwnerType:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/by-owner-type",params:{limit:e.limit,operation:e.operation,userId:e.userId}})}),getApiV1AdminFeedMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-average-single",params:{operation:e.operation,ownerType:e.ownerType,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-averages-all",params:{ownerType:e.ownerType,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsSlowestOperations:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-operations",params:{limit:e.limit,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsers:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-all",params:{limit:e.limit,ownerType:e.ownerType,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-single",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSummary:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/summary",params:{includeUserCounts:e.includeUserCounts,window:e.window}})}),getApiV1AdminFeedMetricsUserCountAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-all",params:{ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsUserCountSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-single",params:{operation:e.operation,ownerType:e.ownerType,window:e.window}})}),postApiV1AdminFeedRegenerateUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/regenerate-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),postApiV1AdminPostsDelete:e.mutation({query:e=>({url:"/api/v1/admin/posts/delete",method:"POST",body:e.postDelete})}),deleteApiV1AdminPurge:e.mutation({query:e=>({url:"/api/v1/admin/purge",method:"DELETE",params:{id:e.id}})}),postApiV1AdminRegenerateKeys:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys",method:"POST",params:{userId:e.userId,username:e.username}})}),postApiV1AdminRegenerateKeysAll:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys-all",method:"POST",params:{batch:e.batch}})}),postApiV1AdminReportsDeletePosts:e.mutation({query:e=>({url:"/api/v1/admin/reports/delete-posts",method:"POST",body:e.body})}),getApiV1AdminReportsList:e.query({query:e=>({url:"/api/v1/admin/reports/list",params:{groupId:e.groupId,lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1AdminReportsByReportId:e.query({query:e=>({url:`/api/v1/admin/reports/${e.reportId}`})}),postApiV1AdminReportsByReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1AdminReportsByReportIdAssignToSelf:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/assign-to-self`,method:"POST"})}),deleteApiV1AdminReportsByReportIdDelete:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/delete`,method:"DELETE"})}),postApiV1AdminReportsByReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1AdminReportsByReportIdReopen:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1AdminReportsByReportIdResolve:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/resolve`,method:"POST"})}),postApiV1AdminReportsByReportIdUnassign:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/unassign`,method:"POST"})}),postApiV1AdminRestartApDelivery:e.mutation({query:e=>({url:"/api/v1/admin/restart-ap-delivery",method:"POST",params:{domain:e.domain}})}),getApiV1AdminSearch:e.query({query:e=>({url:"/api/v1/admin/search",params:{accountId:e.accountId,country:e.country,displayName:e.displayName,domain:e.domain,email:e.email,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,role:e.role,sortBy:e.sortBy,sortOrder:e.sortOrder,state:e.state,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminSignupRequestsApproveByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/approve/${e.hash}`,method:"PUT"})}),deleteApiV1AdminSignupRequestsDeleteByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/delete/${e.hash}`,method:"DELETE"})}),getApiV1AdminSignupRequestsList:e.query({query:e=>({url:"/api/v1/admin/signup_requests/list",params:{email:e.email,hash:e.hash,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1AdminSignupRequestsRejectByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/reject/${e.hash}`,method:"PUT",params:{reason:e.reason}})}),getApiV1AdminUploadsJobsQueueByQueueName:e.query({query:e=>({url:`/api/v1/admin/uploads/jobs/queue/${e.queueName}`,params:{limit:e.limit,page:e.page,sortBy:e.sortBy,sortOrder:e.sortOrder,uploadType:e.uploadType}})}),getApiV1AdminUploadsJobsSummary:e.query({query:()=>({url:"/api/v1/admin/uploads/jobs/summary"})}),getApiV1AdminUploadsSearch:e.query({query:e=>({url:"/api/v1/admin/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType,userId:e.userId}})}),getApiV1AdminUploadsStorageByUserId:e.query({query:e=>({url:`/api/v1/admin/uploads/storage/${e.userId}`})}),postApiV1AdminUserChangeState:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state",method:"POST",body:e.changeUserState})}),getApiV1AdminUserByUserId:e.query({query:e=>({url:`/api/v1/admin/user/${e.userId}`})}),postApiV1Apps:e.mutation({query:e=>({url:"/api/v1/apps",method:"POST",body:e.body,params:{enable:e.enable}})}),getApiV1Apps:e.query({query:()=>({url:"/api/v1/apps"})}),getApiV1AppsEnabled:e.query({query:()=>({url:"/api/v1/apps/enabled"})}),getApiV1AppsGroupByGroupId:e.query({query:e=>({url:`/api/v1/apps/group/${e.groupId}`})}),deleteApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"DELETE"})}),putApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"PUT"})}),getApiV1AppsInstalled:e.query({query:()=>({url:"/api/v1/apps/installed"})}),getApiV1AppsUser:e.query({query:()=>({url:"/api/v1/apps/user"})}),deleteApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"DELETE"})}),putApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"PUT"})}),putApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"PUT",body:e.body,params:{enable:e.enable}})}),getApiV1AppsByAppId:e.query({query:e=>({url:`/api/v1/apps/${e.appId}`})}),deleteApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"DELETE"})}),getApiV1AppsByAppIdData:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/data`,params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1AppsByAppIdData:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data`,method:"POST",body:e.dataCreate})}),putApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"DELETE"})}),putApiV1AppsByAppIdDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/default`,method:"PUT"})}),putApiV1AppsByAppIdDisable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/disable`,method:"PUT"})}),putApiV1AppsByAppIdEnable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/enable`,method:"PUT"})}),getApiV1AppsByAppIdStats:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/stats`})}),putApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"PUT"})}),deleteApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"DELETE"})}),getApiV1Block:e.query({query:e=>({url:"/api/v1/block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1BlockBy:e.query({query:e=>({url:"/api/v1/block/by",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"DELETE"})}),postApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"POST"})}),postApiV1Categories:e.mutation({query:e=>({url:"/api/v1/categories",method:"POST",body:e.categoryCreate})}),getApiV1CategoriesNameByCategoryName:e.query({query:e=>({url:`/api/v1/categories/name/${e.categoryName}`})}),putApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"PUT",body:e.categoryUpdate})}),getApiV1CategoriesByCategoryId:e.query({query:e=>({url:`/api/v1/categories/${e.categoryId}`})}),deleteApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"DELETE"})}),getApiV1CustomEmojis:e.query({query:e=>({url:"/api/v1/custom_emojis",params:{shortcode:e.shortcode}})}),deleteApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"DELETE",params:{shortcode:e.shortcode,category:e.category}})}),postApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"POST",body:e.emoji,params:{overwrite:e.overwrite}})}),getApiV1CustomEmojisExport:e.query({query:e=>({url:"/api/v1/custom_emojis/export",params:{category:e.category}})}),postApiV1CustomEmojisImport:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import",method:"POST",body:e.body,params:{visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1CustomEmojisSearch:e.query({query:e=>({url:"/api/v1/custom_emojis/search",params:{shortcode:e.shortcode}})}),postApiV1CustomEmojisUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/upload",method:"POST",body:e.body,params:{shortcode:e.shortcode,visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1Data:e.query({query:e=>({url:"/api/v1/data",params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1Data:e.mutation({query:e=>({url:"/api/v1/data",method:"POST",body:e.dataCreate})}),putApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"DELETE"})}),getApiV1Drafts:e.query({query:()=>({url:"/api/v1/drafts"})}),postApiV1Drafts:e.mutation({query:e=>({url:"/api/v1/drafts",method:"POST",body:e.createDraftRequest})}),getApiV1DraftsPostByPostId:e.query({query:e=>({url:`/api/v1/drafts/post/${e.postId}`})}),putApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"PUT",body:e.updateDraftRequest})}),getApiV1DraftsByDraftId:e.query({query:e=>({url:`/api/v1/drafts/${e.draftId}`})}),deleteApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"DELETE"})}),postApiV1DraftsByDraftIdPublish:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}/publish`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1Events:e.query({query:e=>({url:"/api/v1/events",params:{limit:e.limit,offset:e.offset,organizerId:e.organizerId,ownerId:e.ownerId,username:e.username}})}),postApiV1Events:e.mutation({query:e=>({url:"/api/v1/events",method:"POST",body:e.createEvent})}),getApiV1EventsCalendarGByGroupnameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/g/${e.groupname}.ics`})}),getApiV1EventsCalendarPByIdIcs:e.query({query:e=>({url:`/api/v1/events/calendar/p/${e.id}.ics`})}),getApiV1EventsCalendarUByUsernameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/u/${e.username}.ics`})}),getApiV1EventsFollowing:e.query({query:e=>({url:"/api/v1/events/following",params:{limit:e.limit,offset:e.offset}})}),getApiV1EventsMy:e.query({query:e=>({url:"/api/v1/events/my",params:{limit:e.limit,notRespondedOnly:e.notRespondedOnly,offset:e.offset,organizedOnly:e.organizedOnly,past:e.past}})}),getApiV1EventsSettings:e.query({query:e=>({url:"/api/v1/events/settings",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsRegeneratePrivateId:e.mutation({query:e=>({url:"/api/v1/events/settings/regeneratePrivateId",method:"POST",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsUpdate:e.mutation({query:e=>({url:"/api/v1/events/settings/update",method:"POST",body:e.updateEventsSettings,params:{ownerId:e.ownerId}})}),putApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"PUT",body:e.updateEvent})}),getApiV1EventsByEventId:e.query({query:e=>({url:`/api/v1/events/${e.eventId}`})}),deleteApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"DELETE"})}),getApiV1EventsByEventIdIcs:e.query({query:e=>({url:`/api/v1/events/${e.eventId}.ics`})}),postApiV1EventsByEventIdAccept:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/accept`,method:"POST"})}),getApiV1EventsByEventIdAttendees:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/attendees`,params:{limit:e.limit,offset:e.offset}})}),deleteApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"DELETE"})}),postApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"POST"})}),postApiV1EventsByEventIdCancel:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/cancel`,method:"POST"})}),postApiV1EventsByEventIdInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/interested`,method:"POST"})}),postApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"POST"})}),deleteApiV1EventsByEventIdLeave:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/leave`,method:"DELETE"})}),postApiV1EventsByEventIdMaybe:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/maybe`,method:"POST"})}),getApiV1EventsByEventIdMutual:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/mutual`,params:{limit:e.limit,offset:e.offset}})}),postApiV1EventsByEventIdReject:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/reject`,method:"POST"})}),postApiV1FaspClear:e.mutation({query:()=>({url:"/api/v1/fasp/clear",method:"POST"})}),getApiV1FaspDebugV0CallbackCallbacks:e.query({query:()=>({url:"/api/v1/fasp/debug/v0/callback/callbacks"})}),deleteApiV1FaspDebugV0CallbackCallbacksById:e.mutation({query:e=>({url:`/api/v1/fasp/debug/v0/callback/callbacks/${e.id}`,method:"DELETE"})}),postApiV1FaspRegistration:e.mutation({query:e=>({url:"/api/v1/fasp/registration",method:"POST",body:e.registrationRequest})}),postApiV1FaspByProviderIdCapabilities:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/capabilities`,method:"POST",body:e.body})}),postApiV1FaspByProviderIdDebugCall:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/debug-call`,method:"POST",body:e.body})}),getApiV1FaspByProviderIdRegistrationFinish:e.query({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`})}),postApiV1FaspByProviderIdRegistrationFinish:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`,method:"POST"})}),postApiV1FaspByProviderIdRequestBackfill:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/request_backfill`,method:"POST",params:{category:e.category}})}),putApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"PUT",body:e.createForum})}),getApiV1ForumsByForumId:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}`})}),deleteApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"DELETE"})}),getApiV1ForumsByForumIdCategories:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdPosts:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/posts`,params:{forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1ForumsByForumIdTags:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdTagsSearch:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags/search`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Geo:e.query({query:e=>({url:"/api/v1/geo",params:{latitude:e.latitude,longitude:e.longitude}})}),getApiV1Groups:e.query({query:e=>({url:"/api/v1/groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1Groups:e.mutation({query:e=>({url:"/api/v1/groups",method:"POST",body:e.groupCreate})}),getApiV1GroupsAccount:e.query({query:e=>({url:"/api/v1/groups/account",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserId:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserIdGroups:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}/groups`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsNameByGroupname:e.query({query:e=>({url:`/api/v1/groups/name/${e.groupname}`})}),getApiV1GroupsSearch:e.query({query:e=>({url:"/api/v1/groups/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,substring:e.substring,untilId:e.untilId}})}),putApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"PUT",body:e.groupUpdate})}),getApiV1GroupsByGroupId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}`})}),deleteApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdForum:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`})}),postApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"POST"})}),postApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"POST"})}),putApiV1GroupsByGroupIdMedia:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/media`,method:"PUT",body:e.groupMediaUpdate})}),putApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"PUT",body:e.groupMemberUpdate})}),getApiV1GroupsByGroupIdMembers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"POST",body:e.groupMemberCreate})}),deleteApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdUsers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Import:e.query({query:()=>({url:"/api/v1/import"})}),postApiV1Import:e.mutation({query:e=>({url:"/api/v1/import",method:"POST",body:e.body,params:{overwrite:e.overwrite,type:e.type}})}),postApiV1ImportStartById:e.mutation({query:e=>({url:`/api/v1/import/start/${e.id}`,method:"POST"})}),getApiV1ImportById:e.query({query:e=>({url:`/api/v1/import/${e.id}`})}),getApiV1Instance:e.query({query:()=>({url:"/api/v1/instance"})}),getApiV1InstanceCountries:e.query({query:()=>({url:"/api/v1/instance/countries"})}),getApiV1InstanceDomains:e.query({query:e=>({url:"/api/v1/instance/domains",params:{domain:e.domain,limit:e.limit,software:e.software}})}),getApiV1InstanceExtendedDescription:e.query({query:()=>({url:"/api/v1/instance/extended_description"})}),getApiV1InstanceSupportedLanguages:e.query({query:()=>({url:"/api/v1/instance/supported_languages"})}),getApiV1InstanceTimezones:e.query({query:()=>({url:"/api/v1/instance/timezones"})}),getApiV1JobsListJobs:e.query({query:e=>({url:"/api/v1/jobs/list-jobs",params:{limit:e.limit,offset:e.offset}})}),getApiV1JobsListStats:e.query({query:e=>({url:"/api/v1/jobs/list-stats",params:{queue:e.queue}})}),getApiV1JobsListStatsAll:e.query({query:()=>({url:"/api/v1/jobs/list-stats-all"})}),getApiV1JobsLists:e.query({query:e=>({url:"/api/v1/jobs/lists",params:{limit:e.limit,listKind:e.listKind,offset:e.offset,queue:e.queue}})}),getApiV1JobsStats:e.query({query:()=>({url:"/api/v1/jobs/stats"})}),getApiV1JobsStatsPerDay:e.query({query:e=>({url:"/api/v1/jobs/stats-per-day",params:{lastDays:e.lastDays,queue:e.queue}})}),getApiV1Links:e.query({query:e=>({url:"/api/v1/links",params:{url:e.url}})}),getApiV1Lists:e.query({query:()=>({url:"/api/v1/lists"})}),postApiV1Lists:e.mutation({query:e=>({url:"/api/v1/lists",method:"POST",body:e.userListCreate})}),putApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"PUT",body:e.userListCreate})}),getApiV1ListsByListId:e.query({query:e=>({url:`/api/v1/lists/${e.listId}`})}),deleteApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"DELETE"})}),getApiV1ListsByListIdUsers:e.query({query:e=>({url:`/api/v1/lists/${e.listId}/users`})}),deleteApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"DELETE"})}),postApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"POST"})}),getApiV1Metrics:e.query({query:e=>({url:"/api/v1/metrics",params:{from:e.from,period:e.period,to:e.to}})}),getApiV1MetricsTotals:e.query({query:()=>({url:"/api/v1/metrics/totals"})}),getApiV1Mute:e.query({query:e=>({url:"/api/v1/mute",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"DELETE"})}),postApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"POST",params:{duration:e.duration}})}),putApiV1Notes:e.mutation({query:e=>({url:"/api/v1/notes",method:"PUT",body:e.noteUpdate})}),getApiV1Notes:e.query({query:e=>({url:"/api/v1/notes",params:{userIds:e.userIds}})}),deleteApiV1NotesByUserId:e.mutation({query:e=>({url:`/api/v1/notes/${e.userId}`,method:"DELETE"})}),getApiV1Notifications:e.query({query:e=>({url:"/api/v1/notifications",params:{excludeTypes:e.excludeTypes,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,types:e.types,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1NotificationsCount:e.query({query:e=>({url:"/api/v1/notifications/count",params:{excludeTypes:e.excludeTypes,status:e.status,types:e.types}})}),postApiV1NotificationsMarkAll:e.mutation({query:e=>({url:"/api/v1/notifications/mark-all",method:"POST",params:{status:e.status}})}),getApiV1NotificationsById:e.query({query:e=>({url:`/api/v1/notifications/${e.id}`,params:{htmlContent:e.htmlContent}})}),postApiV1NotificationsByIdMark:e.mutation({query:e=>({url:`/api/v1/notifications/${e.id}/mark`,method:"POST",params:{status:e.status,htmlContent:e.htmlContent}})}),postApiV1PollsByPollIdRefresh:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/refresh`,method:"POST"})}),postApiV1PollsByPollIdVote:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/vote`,method:"POST",body:e.body})}),getApiV1Posts:e.query({query:e=>({url:"/api/v1/posts",params:{bookmarkedOnly:e.bookmarkedOnly,forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,includeFollowStatus:e.includeFollowStatus,includeReply:e.includeReply,lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,listId:e.listId,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,ownerId:e.ownerId,ownerType:e.ownerType,pinned:e.pinned,repostKind:e.repostKind,repostOf:e.repostOf,repostsOnly:e.repostsOnly,search:e.search,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,userId:e.userId,username:e.username,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),postApiV1Posts:e.mutation({query:e=>({url:"/api/v1/posts",method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsBookmarks:e.query({query:()=>({url:"/api/v1/posts/bookmarks"})}),getApiV1PostsFollowing:e.query({query:e=>({url:"/api/v1/posts/following",params:{ignoreCache:e.ignoreCache,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1PostsLiked:e.query({query:e=>({url:"/api/v1/posts/liked",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMentioned:e.query({query:e=>({url:"/api/v1/posts/mentioned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,private:e.private,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMy:e.query({query:e=>({url:"/api/v1/posts/my",params:{bookmarkedOnly:e.bookmarkedOnly,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,lastId:e.lastId,limit:e.limit,offset:e.offset,repostsOnly:e.repostsOnly,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsPins:e.query({query:e=>({url:"/api/v1/posts/pins",params:{postOnly:e.postOnly}})}),deleteApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"DELETE"})}),postApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"POST"})}),getApiV1PostsPublic:e.query({query:e=>({url:"/api/v1/posts/public",params:{includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,local:e.local,offset:e.offset,ownerType:e.ownerType,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),getApiV1PostsReplies:e.query({query:e=>({url:"/api/v1/posts/replies",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,htmlContent:e.htmlContent}})}),getApiV1PostsSubscribe:e.query({query:e=>({url:"/api/v1/posts/subscribe",params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostId:e.query({query:e=>({url:`/api/v1/posts/${e.postId}`,params:{includeBookmarkStatus:e.includeBookmarkStatus,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,withComments:e.withComments,withParents:e.withParents,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"DELETE"})}),deleteApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"DELETE"})}),postApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"POST"})}),getApiV1PostsByPostIdComments:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,params:{lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdComments:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"DELETE"})}),postApiV1PostsByPostIdDetach:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/detach`,method:"POST"})}),getApiV1PostsByPostIdEdits:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/edits`,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdLikes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"DELETE"})}),postApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"POST"})}),postApiV1PostsByPostIdRefreshCard:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/refresh-card`,method:"POST"})}),deleteApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"DELETE"})}),postApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdReposts:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/reposts`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,skipDuplicates:e.skipDuplicates,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"POST"})}),deleteApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"DELETE"})}),postApiV1PostsByPostIdTranslate:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/translate`,method:"POST",params:{htmlContent:e.htmlContent,lang:e.lang}})}),getApiV1Rbac:e.query({query:()=>({url:"/api/v1/rbac"})}),getApiV1RbacActorsByActorIdPermissions:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/permissions`,params:{scope:e.scope}})}),getApiV1RbacActorsByActorIdRoles:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/roles`,params:{scope:e.scope}})}),putApiV1RbacRolesByRoleId:e.mutation({query:e=>({url:`/api/v1/rbac/roles/${e.roleId}`,method:"PUT",body:e.rbacRoleTemplate})}),getApiV1RbacScopesByScopeRoles:e.query({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`})}),postApiV1RbacScopesByScopeRoles:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`,method:"POST",body:e.rbacRoleTemplate})}),deleteApiV1RbacScopesByScopeRolesAndRoleName:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles/${e.roleName}`,method:"DELETE"})}),getApiV1RbacByResource:e.query({query:e=>({url:`/api/v1/rbac/${e.resource}`})}),postApiV1Reports:e.mutation({query:e=>({url:"/api/v1/reports",method:"POST",body:e.createReport})}),putApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"PUT",body:e.rule})}),getApiV1Rules:e.query({query:()=>({url:"/api/v1/rules"})}),postApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"POST",params:{hint:e.hint,ordering:e.ordering,text:e.text}})}),postApiV1RulesReorder:e.mutation({query:e=>({url:"/api/v1/rules/reorder",method:"POST",body:e.body})}),deleteApiV1RulesById:e.mutation({query:e=>({url:`/api/v1/rules/${e.id}`,method:"DELETE"})}),getApiV1Search:e.query({query:e=>({url:"/api/v1/search",params:{actorType:e.actorType,fasp:e.fasp,filter:e.filter,followStatus:e.followStatus,followers:e.followers,following:e.following,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,q:e.q,resolve:e.resolve,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withComments:e.withComments,withParent:e.withParent,htmlContent:e.htmlContent}})}),deleteApiV1SessionsAll:e.mutation({query:()=>({url:"/api/v1/sessions/all",method:"DELETE"})}),getApiV1SessionsList:e.query({query:()=>({url:"/api/v1/sessions/list"})}),putApiV1SessionsRevokeAll:e.mutation({query:()=>({url:"/api/v1/sessions/revoke/all",method:"PUT"})}),putApiV1SessionsRevokeBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/revoke/${e.sessionKey}`,method:"PUT"})}),deleteApiV1SessionsBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/${e.sessionKey}`,method:"DELETE"})}),putApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"PUT",body:e.platformSettings})}),getApiV1Settings:e.query({query:e=>({url:"/api/v1/settings",params:{keys:e.keys}})}),deleteApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"DELETE",params:{keys:e.keys}})}),putApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"PUT",body:e.userSettings})}),getApiV1SettingsUser:e.query({query:e=>({url:"/api/v1/settings/user",params:{keys:e.keys}})}),deleteApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"DELETE",params:{keys:e.keys}})}),getApiV1TagsFeatured:e.query({query:e=>({url:"/api/v1/tags/featured",params:{userId:e.userId}})}),deleteApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"DELETE"})}),postApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"POST"})}),postApiV1TagsFollowByName:e.mutation({query:e=>({url:`/api/v1/tags/follow/${e.name}`,method:"POST"})}),getApiV1TagsFollowed:e.query({query:()=>({url:"/api/v1/tags/followed"})}),getApiV1TagsTrending:e.query({query:()=>({url:"/api/v1/tags/trending"})}),postApiV1TagsUnfollowByName:e.mutation({query:e=>({url:`/api/v1/tags/unfollow/${e.name}`,method:"POST"})}),getApiV1TagsByName:e.query({query:e=>({url:`/api/v1/tags/${e.name}`,params:{historySince:e.historySince}})}),postApiV1TranslateText:e.mutation({query:e=>({url:"/api/v1/translate/text",method:"POST",body:e.translationRequest})}),getApiV1TrendsLinks:e.query({query:()=>({url:"/api/v1/trends/links"})}),getApiV1TrendsPosts:e.query({query:e=>({url:"/api/v1/trends/posts",params:{htmlContent:e.htmlContent}})}),getApiV1TrendsTags:e.query({query:()=>({url:"/api/v1/trends/tags"})}),postApiV1Uploads:e.mutation({query:e=>({url:"/api/v1/uploads",method:"POST",body:e.createUpload})}),postApiV1UploadsBatch:e.mutation({query:e=>({url:"/api/v1/uploads/batch",method:"POST",body:e.body})}),postApiV1UploadsList:e.mutation({query:e=>({url:"/api/v1/uploads/list",method:"POST",body:e.uploadList})}),getApiV1UploadsSearch:e.query({query:e=>({url:"/api/v1/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType}})}),getApiV1UploadsUsages:e.query({query:e=>({url:"/api/v1/uploads/usages",params:{ids:e.ids}})}),getApiV1UploadsById:e.query({query:e=>({url:`/api/v1/uploads/${e.id}`})}),deleteApiV1UploadsById:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}`,method:"DELETE"})}),postApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"POST",body:e.body})}),putApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"PUT",body:e.body})}),postApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"POST",body:e.body})}),putApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"PUT",body:e.body})}),postApiV1UploadsByIdThumbnail:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/thumbnail`,method:"POST",body:e.changeVideoThumbnail})}),getApiV1UserAlias:e.query({query:()=>({url:"/api/v1/user-alias"})}),deleteApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"DELETE",params:{uri:e.uri}})}),postApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"POST",params:{acct:e.acct}})}),getApiV1UserDomainBlock:e.query({query:()=>({url:"/api/v1/user-domain-block"})}),deleteApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"DELETE"})}),postApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"POST"})}),deleteApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"DELETE",params:{id:e.id,name:e.name}})}),postApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"POST",body:e.userCreate,params:{account_id:e.accountId,email:e.email,htmlContent:e.htmlContent}})}),getApiV1Users:e.query({query:e=>({url:"/api/v1/users",params:{full:e.full,username:e.username,htmlContent:e.htmlContent}})}),getApiV1UsersCheck:e.query({query:e=>({url:"/api/v1/users/check",params:{username:e.username}})}),getApiV1UsersConnections:e.query({query:e=>({url:"/api/v1/users/connections",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersFollowByUsername:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),postApiV1UsersFollowByUsernameAccept:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/accept`,method:"POST"})}),postApiV1UsersFollowByUsernamePend:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/pend`,method:"POST"})}),postApiV1UsersFollowByUsernameReject:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/reject`,method:"POST"})}),postApiV1UsersFollowByUsernameUndo:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/undo`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),getApiV1UsersFollowees:e.query({query:e=>({url:"/api/v1/users/followees",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersFollowers:e.query({query:e=>({url:"/api/v1/users/followers",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInvite:e.mutation({query:e=>({url:"/api/v1/users/invite",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),postApiV1UsersInviteAccept:e.mutation({query:e=>({url:"/api/v1/users/invite/accept",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),getApiV1UsersInviteInviteeEntities:e.query({query:e=>({url:"/api/v1/users/invite/invitee/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeEntitiesByInviterUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/entities/${e.inviterUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInviters:e.query({query:e=>({url:"/api/v1/users/invite/invitee/inviters",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInvitersByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/inviters/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterEntities:e.query({query:e=>({url:"/api/v1/users/invite/inviter/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInvitees:e.query({query:e=>({url:"/api/v1/users/invite/inviter/invitees",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInviteesByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/inviter/invitees/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInviteReject:e.mutation({query:e=>({url:"/api/v1/users/invite/reject",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),postApiV1UsersInviteUndo:e.mutation({query:e=>({url:"/api/v1/users/invite/undo",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),getApiV1UsersRelationships:e.query({query:e=>({url:"/api/v1/users/relationships",params:{filter:e.filter,targets:e.targets}})}),getApiV1UsersRemoteByUserNameFullFollowers:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/followers`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRemoteByUserNameFullFollowing:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/following`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRenameHistory:e.query({query:()=>({url:"/api/v1/users/rename-history"})}),putApiV1UsersByUserId:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}`,method:"PUT",body:e.userUpdate,params:{htmlContent:e.htmlContent}})}),getApiV1UsersByUserId:e.query({query:e=>({url:`/api/v1/users/${e.userId}`,params:{allowDeleted:e.allowDeleted,full:e.full,htmlContent:e.htmlContent}})}),getApiV1UsersByUserIdFollowers:e.query({query:e=>({url:`/api/v1/users/${e.userId}/followers`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1UsersByUserIdFollowing:e.query({query:e=>({url:`/api/v1/users/${e.userId}/following`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1UsersByUserIdMedia:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}/media`,method:"PUT",body:e.userUpdateMedia,params:{htmlContent:e.htmlContent}})})}),overrideExisting:!1}),{usePostApiV1AccountsAddReasonMutation:kqe,usePostApiV1AccountsAuthenticateEmailMutation:xqe,usePostApiV1AccountsAuthenticatePhoneMutation:Sqe,usePutApiV1AccountsChangeNameMutation:Eqe,usePostApiV1AccountsCheckCaptchaMutation:Cqe,usePostApiV1AccountsConfirmEmailMutation:Rqe,usePostApiV1AccountsConfirmPhoneMutation:Tqe,useDeleteApiV1AccountsDeleteMutation:Aqe,usePostApiV1AccountsEmailChangeConfirmMutation:Iqe,usePostApiV1AccountsEmailChangeRequestMutation:$qe,usePutApiV1AccountsEmailChangeResendCodeMutation:Pqe,usePostApiV1AccountsFinishCreatingMutation:Oqe,usePutApiV1AccountsGetTokenByHashMutation:zqe,usePostApiV1AccountsLoginsAddEmailPasswordMutation:Mqe,usePostApiV1AccountsLoginsAddEmailPasswordConfirmMutation:Dqe,usePutApiV1AccountsLoginsAddEmailPasswordResendCodeMutation:Nqe,usePostApiV1AccountsLoginsAddPhoneMutation:Lqe,useDeleteApiV1AccountsLoginsRemoveEmailPasswordMutation:jqe,useDeleteApiV1AccountsLoginsRemovePhoneMutation:Bqe,usePostApiV1AccountsPasswordChangeConfirmMutation:Fqe,usePostApiV1AccountsPasswordChangeRequestMutation:Uqe,usePutApiV1AccountsPasswordChangeResendCodeMutation:Vqe,usePostApiV1AccountsPasswordRecoverMutation:qqe,usePostApiV1AccountsPasswordRecoverChangeMutation:Wqe,usePostApiV1AccountsPasswordRecoverCheckCodeMutation:Hqe,usePostApiV1AccountsPhoneChangeConfirmAuthMutation:Gqe,usePostApiV1AccountsPhoneChangeConfirmNewPhoneMutation:Kqe,usePostApiV1AccountsPhoneChangeNewPhoneMutation:Qqe,usePutApiV1AccountsPhoneChangeRequestMutation:Yqe,usePutApiV1AccountsPhoneChangeResendCodeAuthMutation:Zqe,usePutApiV1AccountsPhoneChangeResendCodeNewPhoneMutation:Xqe,useGetApiV1AccountsProfileQuery:Jqe,usePostApiV1AccountsReselectUserMutation:eWe,usePutApiV1AccountsResendCodeByHashMutation:tWe,usePutApiV1AccountsResendEmailByHashMutation:nWe,usePostApiV1AccountsSignupMutation:rWe,usePostApiV1AccountsSignupPhoneMutation:aWe,usePostApiV1AccountsUserReselectUserMutation:oWe,useGetApiV1AccountsByIdQuery:iWe,useGetApiV1AddressesSuggestQuery:sWe,useGetApiV1AdminAccountByAccountIdQuery:cWe,useGetApiV1AdminAuditLogQuery:lWe,usePutApiV1AdminChangeEmailMutation:fWe,usePutApiV1AdminChangePasswordMutation:uWe,usePutApiV1AdminChangeRoleAssignMutation:dWe,usePutApiV1AdminChangeRoleRevokeMutation:pWe,usePostApiV1AdminClearApErrorsMutation:hWe,usePostApiV1AdminCreateAccountMutation:mWe,useDeleteApiV1AdminDeleteMutation:gWe,useGetApiV1AdminDomainAllowQuery:yWe,usePostApiV1AdminDomainAllowMutation:_We,useDeleteApiV1AdminDomainAllowByDomainMutation:vWe,usePutApiV1AdminDomainBlockMutation:bWe,useGetApiV1AdminDomainBlockQuery:wWe,usePostApiV1AdminDomainBlockMutation:kWe,useGetApiV1AdminDomainBlockListQuery:xWe,useDeleteApiV1AdminDomainBlockByDomainMutation:SWe,useGetApiV1AdminFederationQuery:EWe,useGetApiV1AdminFederationMetricsOperationsQuery:CWe,useGetApiV1AdminFederationMetricsRunningAverageSingleQuery:RWe,useGetApiV1AdminFederationMetricsRunningAveragesAllQuery:TWe,useGetApiV1AdminFederationByDomainQuery:AWe,usePostApiV1AdminFeedClearUserFeedMutation:IWe,useGetApiV1AdminFeedMetricsGlobalAllOperationQuery:$We,useGetApiV1AdminFeedMetricsGlobalAllOwnersQuery:PWe,useGetApiV1AdminFeedMetricsGlobalSingleQuery:OWe,useGetApiV1AdminFeedMetricsHistoryQuery:zWe,useGetApiV1AdminFeedMetricsHistoryAllQuery:MWe,useGetApiV1AdminFeedMetricsHistoryAllSingleOwnerQuery:DWe,useGetApiV1AdminFeedMetricsHistoryByOwnerTypeQuery:NWe,useGetApiV1AdminFeedMetricsRunningAverageSingleQuery:LWe,useGetApiV1AdminFeedMetricsRunningAveragesAllQuery:jWe,useGetApiV1AdminFeedMetricsSlowestOperationsQuery:BWe,useGetApiV1AdminFeedMetricsSlowestUsersQuery:FWe,useGetApiV1AdminFeedMetricsSlowestUsersAllQuery:UWe,useGetApiV1AdminFeedMetricsSlowestUsersSingleQuery:VWe,useGetApiV1AdminFeedMetricsSummaryQuery:qWe,useGetApiV1AdminFeedMetricsUserCountAllQuery:WWe,useGetApiV1AdminFeedMetricsUserCountSingleQuery:HWe,usePostApiV1AdminFeedRegenerateUserFeedMutation:GWe,usePostApiV1AdminPostsDeleteMutation:KWe,useDeleteApiV1AdminPurgeMutation:QWe,usePostApiV1AdminRegenerateKeysMutation:YWe,usePostApiV1AdminRegenerateKeysAllMutation:ZWe,usePostApiV1AdminReportsDeletePostsMutation:XWe,useGetApiV1AdminReportsListQuery:JWe,useGetApiV1AdminReportsByReportIdQuery:eHe,usePostApiV1AdminReportsByReportIdAddNoteMutation:tHe,usePostApiV1AdminReportsByReportIdAssignToSelfMutation:nHe,useDeleteApiV1AdminReportsByReportIdDeleteMutation:rHe,usePostApiV1AdminReportsByReportIdRemoveNoteMutation:aHe,usePostApiV1AdminReportsByReportIdReopenMutation:oHe,usePostApiV1AdminReportsByReportIdResolveMutation:iHe,usePostApiV1AdminReportsByReportIdUnassignMutation:sHe,usePostApiV1AdminRestartApDeliveryMutation:cHe,useGetApiV1AdminSearchQuery:lHe,usePutApiV1AdminSignupRequestsApproveByHashMutation:fHe,useDeleteApiV1AdminSignupRequestsDeleteByHashMutation:uHe,useGetApiV1AdminSignupRequestsListQuery:dHe,usePutApiV1AdminSignupRequestsRejectByHashMutation:pHe,useGetApiV1AdminUploadsJobsQueueByQueueNameQuery:hHe,useGetApiV1AdminUploadsJobsSummaryQuery:mHe,useGetApiV1AdminUploadsSearchQuery:gHe,useGetApiV1AdminUploadsStorageByUserIdQuery:yHe,usePostApiV1AdminUserChangeStateMutation:_He,useGetApiV1AdminUserByUserIdQuery:vHe,usePostApiV1AppsMutation:bHe,useGetApiV1AppsQuery:wHe,useGetApiV1AppsEnabledQuery:kHe,useGetApiV1AppsGroupByGroupIdQuery:xHe,useDeleteApiV1AppsGroupByGroupIdAndAppIdMutation:SHe,usePutApiV1AppsGroupByGroupIdAndAppIdMutation:EHe,useGetApiV1AppsInstalledQuery:CHe,useGetApiV1AppsUserQuery:RHe,useDeleteApiV1AppsUserByAppIdMutation:THe,usePutApiV1AppsUserByAppIdMutation:AHe,usePutApiV1AppsByAppIdMutation:IHe,useGetApiV1AppsByAppIdQuery:$He,useDeleteApiV1AppsByAppIdMutation:PHe,useGetApiV1AppsByAppIdDataQuery:OHe,usePostApiV1AppsByAppIdDataMutation:zHe,usePutApiV1AppsByAppIdDataAndIdMutation:MHe,useDeleteApiV1AppsByAppIdDataAndIdMutation:DHe,usePutApiV1AppsByAppIdDefaultMutation:NHe,usePutApiV1AppsByAppIdDisableMutation:LHe,usePutApiV1AppsByAppIdEnableMutation:jHe,useGetApiV1AppsByAppIdStatsQuery:BHe,usePutApiV1AppsByAppIdUserDefaultMutation:FHe,useDeleteApiV1AppsByAppIdUserDefaultMutation:UHe,useGetApiV1BlockQuery:VHe,useGetApiV1BlockByQuery:qHe,useDeleteApiV1BlockByUserIdMutation:WHe,usePostApiV1BlockByUserIdMutation:HHe,usePostApiV1CategoriesMutation:GHe,useGetApiV1CategoriesNameByCategoryNameQuery:KHe,usePutApiV1CategoriesByCategoryIdMutation:QHe,useGetApiV1CategoriesByCategoryIdQuery:YHe,useDeleteApiV1CategoriesByCategoryIdMutation:ZHe,useGetApiV1CustomEmojisQuery:XHe,useDeleteApiV1CustomEmojisMutation:JHe,usePostApiV1CustomEmojisMutation:eGe,useGetApiV1CustomEmojisExportQuery:tGe,usePostApiV1CustomEmojisImportMutation:nGe,useGetApiV1CustomEmojisSearchQuery:rGe,usePostApiV1CustomEmojisUploadMutation:aGe,useGetApiV1DataQuery:oGe,usePostApiV1DataMutation:iGe,usePutApiV1DataByIdMutation:sGe,useDeleteApiV1DataByIdMutation:cGe,useGetApiV1DraftsQuery:lGe,usePostApiV1DraftsMutation:fGe,useGetApiV1DraftsPostByPostIdQuery:uGe,usePutApiV1DraftsByDraftIdMutation:dGe,useGetApiV1DraftsByDraftIdQuery:pGe,useDeleteApiV1DraftsByDraftIdMutation:hGe,usePostApiV1DraftsByDraftIdPublishMutation:mGe,useGetApiV1EventsQuery:gGe,usePostApiV1EventsMutation:yGe,useGetApiV1EventsCalendarGByGroupnameIcsQuery:_Ge,useGetApiV1EventsCalendarPByIdIcsQuery:vGe,useGetApiV1EventsCalendarUByUsernameIcsQuery:bGe,useGetApiV1EventsFollowingQuery:wGe,useGetApiV1EventsMyQuery:kGe,useGetApiV1EventsSettingsQuery:xGe,usePostApiV1EventsSettingsRegeneratePrivateIdMutation:SGe,usePostApiV1EventsSettingsUpdateMutation:EGe,usePutApiV1EventsByEventIdMutation:CGe,useGetApiV1EventsByEventIdQuery:RGe,useDeleteApiV1EventsByEventIdMutation:TGe,useGetApiV1EventsByEventIdIcsQuery:AGe,usePostApiV1EventsByEventIdAcceptMutation:IGe,useGetApiV1EventsByEventIdAttendeesQuery:$Ge,useDeleteApiV1EventsByEventIdAttendeesAndUserIdMutation:PGe,usePostApiV1EventsByEventIdAttendeesAndUserIdMutation:OGe,usePostApiV1EventsByEventIdCancelMutation:zGe,usePostApiV1EventsByEventIdInterestedMutation:MGe,usePostApiV1EventsByEventIdJoinMutation:DGe,useDeleteApiV1EventsByEventIdLeaveMutation:NGe,usePostApiV1EventsByEventIdMaybeMutation:LGe,useGetApiV1EventsByEventIdMutualQuery:jGe,usePostApiV1EventsByEventIdRejectMutation:BGe,usePostApiV1FaspClearMutation:FGe,useGetApiV1FaspDebugV0CallbackCallbacksQuery:UGe,useDeleteApiV1FaspDebugV0CallbackCallbacksByIdMutation:VGe,usePostApiV1FaspRegistrationMutation:qGe,usePostApiV1FaspByProviderIdCapabilitiesMutation:WGe,usePostApiV1FaspByProviderIdDebugCallMutation:HGe,useGetApiV1FaspByProviderIdRegistrationFinishQuery:GGe,usePostApiV1FaspByProviderIdRegistrationFinishMutation:KGe,usePostApiV1FaspByProviderIdRequestBackfillMutation:QGe,usePutApiV1ForumsByForumIdMutation:YGe,useGetApiV1ForumsByForumIdQuery:ZGe,useDeleteApiV1ForumsByForumIdMutation:XGe,useGetApiV1ForumsByForumIdCategoriesQuery:JGe,useGetApiV1ForumsByForumIdPostsQuery:eKe,useGetApiV1ForumsByForumIdTagsQuery:tKe,useGetApiV1ForumsByForumIdTagsSearchQuery:nKe,useGetApiV1GeoQuery:rKe,useGetApiV1GroupsQuery:aKe,usePostApiV1GroupsMutation:oKe,useGetApiV1GroupsAccountQuery:iKe,useGetApiV1GroupsMemberByUserIdQuery:sKe,useGetApiV1GroupsMemberByUserIdGroupsQuery:cKe,useGetApiV1GroupsNameByGroupnameQuery:lKe,useGetApiV1GroupsSearchQuery:fKe,usePutApiV1GroupsByGroupIdMutation:uKe,useGetApiV1GroupsByGroupIdQuery:dKe,useDeleteApiV1GroupsByGroupIdMutation:pKe,useGetApiV1GroupsByGroupIdForumQuery:hKe,usePostApiV1GroupsByGroupIdForumMutation:mKe,usePostApiV1GroupsByGroupIdJoinMutation:gKe,usePutApiV1GroupsByGroupIdMediaMutation:yKe,usePutApiV1GroupsByGroupIdMembersMutation:_Ke,useGetApiV1GroupsByGroupIdMembersQuery:vKe,usePostApiV1GroupsByGroupIdMembersMutation:bKe,useDeleteApiV1GroupsByGroupIdMembersAndMemberIdMutation:wKe,useGetApiV1GroupsByGroupIdUsersQuery:kKe,useGetApiV1ImportQuery:xKe,usePostApiV1ImportMutation:SKe,usePostApiV1ImportStartByIdMutation:EKe,useGetApiV1ImportByIdQuery:CKe,useGetApiV1InstanceQuery:RKe,useGetApiV1InstanceCountriesQuery:TKe,useGetApiV1InstanceDomainsQuery:AKe,useGetApiV1InstanceExtendedDescriptionQuery:IKe,useGetApiV1InstanceSupportedLanguagesQuery:$Ke,useGetApiV1InstanceTimezonesQuery:PKe,useGetApiV1JobsListJobsQuery:OKe,useGetApiV1JobsListStatsQuery:zKe,useGetApiV1JobsListStatsAllQuery:MKe,useGetApiV1JobsListsQuery:DKe,useGetApiV1JobsStatsQuery:NKe,useGetApiV1JobsStatsPerDayQuery:LKe,useGetApiV1LinksQuery:jKe,useGetApiV1ListsQuery:BKe,usePostApiV1ListsMutation:FKe,usePutApiV1ListsByListIdMutation:UKe,useGetApiV1ListsByListIdQuery:VKe,useDeleteApiV1ListsByListIdMutation:qKe,useGetApiV1ListsByListIdUsersQuery:WKe,useDeleteApiV1ListsByListIdUsersAndUserIdMutation:HKe,usePostApiV1ListsByListIdUsersAndUserIdMutation:GKe,useGetApiV1MetricsQuery:KKe,useGetApiV1MetricsTotalsQuery:QKe,useGetApiV1MuteQuery:YKe,useDeleteApiV1MuteByUserIdMutation:ZKe,usePostApiV1MuteByUserIdMutation:XKe,usePutApiV1NotesMutation:JKe,useGetApiV1NotesQuery:eQe,useDeleteApiV1NotesByUserIdMutation:tQe,useGetApiV1NotificationsQuery:nQe,useGetApiV1NotificationsCountQuery:rQe,usePostApiV1NotificationsMarkAllMutation:aQe,useGetApiV1NotificationsByIdQuery:oQe,usePostApiV1NotificationsByIdMarkMutation:iQe,usePostApiV1PollsByPollIdRefreshMutation:sQe,usePostApiV1PollsByPollIdVoteMutation:cQe,useGetApiV1PostsQuery:lQe,usePostApiV1PostsMutation:fQe,useGetApiV1PostsBookmarksQuery:uQe,useGetApiV1PostsFollowingQuery:dQe,useGetApiV1PostsLikedQuery:pQe,useGetApiV1PostsMentionedQuery:hQe,useGetApiV1PostsMyQuery:mQe,useGetApiV1PostsPinsQuery:gQe,useDeleteApiV1PostsPinsByPostIdMutation:yQe,usePostApiV1PostsPinsByPostIdMutation:_Qe,useGetApiV1PostsPublicQuery:vQe,useGetApiV1PostsRepliesQuery:bQe,useGetApiV1PostsSubscribeQuery:wQe,usePutApiV1PostsByPostIdMutation:kQe,useGetApiV1PostsByPostIdQuery:xQe,useDeleteApiV1PostsByPostIdMutation:SQe,useDeleteApiV1PostsByPostIdBookmarkMutation:EQe,usePostApiV1PostsByPostIdBookmarkMutation:CQe,useGetApiV1PostsByPostIdCommentsQuery:RQe,usePostApiV1PostsByPostIdCommentsMutation:TQe,usePutApiV1PostsByPostIdCommentsAndCommentIdMutation:AQe,useDeleteApiV1PostsByPostIdCommentsAndCommentIdMutation:IQe,usePostApiV1PostsByPostIdDetachMutation:$Qe,useGetApiV1PostsByPostIdEditsQuery:PQe,useGetApiV1PostsByPostIdLikesQuery:OQe,useDeleteApiV1PostsByPostIdLikesMutation:zQe,usePostApiV1PostsByPostIdLikesMutation:MQe,usePostApiV1PostsByPostIdRefreshCardMutation:DQe,useDeleteApiV1PostsByPostIdRepostMutation:NQe,usePostApiV1PostsByPostIdRepostMutation:LQe,useGetApiV1PostsByPostIdRepostsQuery:jQe,usePostApiV1PostsByPostIdSubscribeMutation:BQe,useDeleteApiV1PostsByPostIdSubscribeMutation:FQe,usePostApiV1PostsByPostIdTranslateMutation:UQe,useGetApiV1RbacQuery:VQe,useGetApiV1RbacActorsByActorIdPermissionsQuery:qQe,useGetApiV1RbacActorsByActorIdRolesQuery:WQe,usePutApiV1RbacRolesByRoleIdMutation:HQe,useGetApiV1RbacScopesByScopeRolesQuery:GQe,usePostApiV1RbacScopesByScopeRolesMutation:KQe,useDeleteApiV1RbacScopesByScopeRolesAndRoleNameMutation:QQe,useGetApiV1RbacByResourceQuery:YQe,usePostApiV1ReportsMutation:ZQe,usePutApiV1RulesMutation:XQe,useGetApiV1RulesQuery:JQe,usePostApiV1RulesMutation:eYe,usePostApiV1RulesReorderMutation:tYe,useDeleteApiV1RulesByIdMutation:nYe,useGetApiV1SearchQuery:ZJ,useDeleteApiV1SessionsAllMutation:rYe,useGetApiV1SessionsListQuery:aYe,usePutApiV1SessionsRevokeAllMutation:oYe,usePutApiV1SessionsRevokeBySessionKeyMutation:iYe,useDeleteApiV1SessionsBySessionKeyMutation:sYe,usePutApiV1SettingsMutation:cYe,useGetApiV1SettingsQuery:lYe,useDeleteApiV1SettingsMutation:fYe,usePutApiV1SettingsUserMutation:uYe,useGetApiV1SettingsUserQuery:dYe,useDeleteApiV1SettingsUserMutation:pYe,useGetApiV1TagsFeaturedQuery:hYe,useDeleteApiV1TagsFeaturedByNameMutation:mYe,usePostApiV1TagsFeaturedByNameMutation:gYe,usePostApiV1TagsFollowByNameMutation:yYe,useGetApiV1TagsFollowedQuery:_Ye,useGetApiV1TagsTrendingQuery:vYe,usePostApiV1TagsUnfollowByNameMutation:bYe,useGetApiV1TagsByNameQuery:wYe,usePostApiV1TranslateTextMutation:kYe,useGetApiV1TrendsLinksQuery:xYe,useGetApiV1TrendsPostsQuery:SYe,useGetApiV1TrendsTagsQuery:EYe,usePostApiV1UploadsMutation:CYe,usePostApiV1UploadsBatchMutation:RYe,usePostApiV1UploadsListMutation:TYe,useGetApiV1UploadsSearchQuery:AYe,useGetApiV1UploadsUsagesQuery:IYe,useGetApiV1UploadsByIdQuery:$Ye,useDeleteApiV1UploadsByIdMutation:PYe,usePostApiV1UploadsByIdMetaMutation:OYe,usePutApiV1UploadsByIdMetaMutation:zYe,usePostApiV1UploadsByIdTagsMutation:MYe,usePutApiV1UploadsByIdTagsMutation:DYe,usePostApiV1UploadsByIdThumbnailMutation:NYe,useGetApiV1UserAliasQuery:LYe,useDeleteApiV1UserAliasMutation:jYe,usePostApiV1UserAliasMutation:BYe,useGetApiV1UserDomainBlockQuery:FYe,useDeleteApiV1UserDomainBlockByDomainMutation:UYe,usePostApiV1UserDomainBlockByDomainMutation:VYe,useDeleteApiV1UsersMutation:qYe,usePostApiV1UsersMutation:WYe,useGetApiV1UsersQuery:HYe,useGetApiV1UsersCheckQuery:GYe,useGetApiV1UsersConnectionsQuery:KYe,usePostApiV1UsersFollowByUsernameMutation:QYe,usePostApiV1UsersFollowByUsernameAcceptMutation:YYe,usePostApiV1UsersFollowByUsernamePendMutation:ZYe,usePostApiV1UsersFollowByUsernameRejectMutation:XYe,usePostApiV1UsersFollowByUsernameUndoMutation:JYe,useGetApiV1UsersFolloweesQuery:eZe,useGetApiV1UsersFollowersQuery:tZe,usePostApiV1UsersInviteMutation:nZe,usePostApiV1UsersInviteAcceptMutation:rZe,useGetApiV1UsersInviteInviteeEntitiesQuery:aZe,useGetApiV1UsersInviteInviteeEntitiesByInviterUserQuery:oZe,useGetApiV1UsersInviteInviteeInvitersQuery:iZe,useGetApiV1UsersInviteInviteeInvitersByEntityUserQuery:sZe,useGetApiV1UsersInviteInviterEntitiesQuery:cZe,useGetApiV1UsersInviteInviterInviteesQuery:lZe,useGetApiV1UsersInviteInviterInviteesByEntityUserQuery:fZe,usePostApiV1UsersInviteRejectMutation:uZe,usePostApiV1UsersInviteUndoMutation:dZe,useGetApiV1UsersRelationshipsQuery:pZe,useGetApiV1UsersRemoteByUserNameFullFollowersQuery:hZe,useGetApiV1UsersRemoteByUserNameFullFollowingQuery:mZe,useGetApiV1UsersRenameHistoryQuery:gZe,usePutApiV1UsersByUserIdMutation:yZe,useGetApiV1UsersByUserIdQuery:_Ze,useGetApiV1UsersByUserIdFollowersQuery:vZe,useGetApiV1UsersByUserIdFollowingQuery:bZe,usePutApiV1UsersByUserIdMediaMutation:wZe}=ar,e$={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!!Xh.getToken(),isAuthenticated:!1},p1=ia({name:"auth",initialState:e$,reducers:{login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload||null,e.isPending=!1},logout:()=>({...e$,isPending:!1}),setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload},showAuthBlock:(e,t)=>{e.isAuthBlockVisible=t.payload}},selectors:{selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectAuthBlockVisible:e=>e.isAuthBlockVisible,selectIsAuthenticated:e=>e.isAuthenticated}}),XJ={data:null,isPending:!1,isSuccess:!1},qo=ia({name:"userNoHTML",initialState:XJ,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}});var t$,Hx={};function JJ(){return t$||(t$=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],n=[],r=[],a=[],o=(e,t)=>{if("function"!=typeof e)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeBefore=e=>o(e,t),e.subscribeAfter=e=>o(e,n);const i=(e,t)=>{if(!e.action)throw new Error("Expected the action to be a string.");if("function"!=typeof e.listener)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeActionBefore=(e,t)=>i({action:e,listener:t},r),e.subscribeActionAfter=(e,t)=>i({action:e,listener:t},a),e.unsubscribeBefore=()=>{t.length=0},e.unsubscribeActionsBefore=()=>{r.length=0},e.unsubscribeAfter=()=>{n.length=0},e.unsubscribeActionsAfter=()=>{a.length=0},e.unsubscribeAll=()=>{e.unsubscribeBefore(),e.unsubscribeActionsBefore(),e.unsubscribeAfter(),e.unsubscribeActionsAfter()};const s=(e,t)=>{const n=e.filter((({action:e})=>e!==t));e.length=0,e.concat(n)};e.unsubscribeActionBefore=e=>{s(r,e)},e.unsubscribeActionAfter=e=>{s(a,e)},e.unsubscribeActionAll=t=>{e.unsubscribeActionBefore(t),e.unsubscribeActionAfter(t)};const c=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r(e)}},l=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r.action===e.type&&r.listener(e)}};e.subscribeActionMiddleware=e=>e=>o=>{c(o,t),l(o,r);const i=e(o);return c(o,n),l(o,a),i},e.default=e.subscribeActionMiddleware}(Hx)),Hx}var eee=JJ();const tee=Dl(eee),aT=e=>e,N7=io(aT,(e=>e.data)),nee=io(aT,(e=>e.error)),ree=io(aT,(e=>e.isPending)),aee=io(N7,(e=>null==e?void 0:e.rules)),oee={data:null,isPending:!1},gb=ia({name:"instanceInfo",initialState:oee,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:N7,selectInstanceInfoError:nee,selectInstanceInfoPending:ree,selectPlatformRules:aee,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),iee={data:null,isPending:!1,isSuccess:!1},Vb=ia({name:"profileSettings",initialState:iee,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),see={sms:"wellesley.admin.sms",auth:"wellesley.admin.auth",openai:"wellesley.admin.openai",uploads:"wellesley.admin.uploads",captcha:"wellesley.admin.captcha",language:"wellesley.admin.language",mediacache:"wellesley.admin.mediacache",translation:"wellesley.admin.translation"},cee={posts:"wellesley.posts",registration:"wellesley.registration",confirmationCode:"wellesley.confirmationCode",uploadsPolicyDoc:"wellesley.uploads.policy.doc",uploadsPolicyAudio:"wellesley.uploads.policy.audio",uploadsPolicyImage:"wellesley.uploads.policy.image",uploadsPolicyVideo:"wellesley.uploads.policy.video",captcha:"wellesley.captcha"},lee={data:null,isPending:!1},{posts:Gx,uploadsPolicyDoc:n$,uploadsPolicyAudio:Kx,uploadsPolicyImage:Mv,uploadsPolicyVideo:j0,registration:fee,captcha:uee}=cee,{captcha:dee,language:pee,translation:hee,openai:mee}=see,C1=e=>e.data,gee=io(C1,(e=>{var t,n,r;return{max_characters:(null==(t=null==e?void 0:e[Gx])?void 0:t.max_characters)||0,max_media_attachments:(null==(n=null==e?void 0:e[Gx])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==e?void 0:e[Gx])?void 0:r.max_pins)||0}})),L7=io(C1,(e=>{var t,n,r;return{...null==e?void 0:e[Mv],maxSize:(null==(t=null==e?void 0:e[Mv])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[Mv])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==e?void 0:e[Mv])?void 0:r.maxResolution)||0}})),j7=io(C1,(e=>{var t,n,r,a;return{...null==e?void 0:e[j0],maxSize:(null==(t=null==e?void 0:e[j0])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[j0])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[j0])?void 0:r.maxDuration)||0,maxResolution:(null==(a=null==e?void 0:e[j0])?void 0:a.maxResolution)||0}})),B7=io(C1,(e=>{var t,n;return{...null==e?void 0:e[Kx],maxSize:null==(t=null==e?void 0:e[Kx])?void 0:t.maxSize,keepOriginal:(null==(n=null==e?void 0:e[Kx])?void 0:n.keepOriginal)||0}})),F7=io(C1,(e=>{var t;return{...null==e?void 0:e[n$],maxSize:(null==(t=null==e?void 0:e[n$])?void 0:t.maxSize)||0}})),U7=io([L7,j7,B7,F7],((e,t,n,r)=>({IMAGE:null==e?void 0:e.extensions,VIDEO:null==t?void 0:t.extensions,AUDIO:null==n?void 0:n.extensions,DOCUMENT:null==r?void 0:r.extensions}))),yee=io(U7,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),yy=ia({name:"platformSettings",initialState:lee,reducers:{setSettings:(e,t)=>{e.data={...e.data,...t.payload}},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectSettings:C1,selectPostConfig:gee,selectDocPolicy:F7,selectImagePolicy:L7,selectVideoPolicy:j7,selectAudioPolicy:B7,selectSupportedExtensions:U7,selectFullExtensionsList:yee,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[fee]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[pee]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[hee]},selectOpenai:e=>{var t;return null==(t=e.data)?void 0:t[mee]},selectCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[uee]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[dee]}}}),r$={data:{userId:"",list:[]},count:{},isPending:!1},_ee=e=>e,vee=e=>e.error,bee=e=>e.isPending,wee=e=>{var t;return null==(t=e.count)?void 0:t.total},kee=e=>{var t;return null==(t=e.count)?void 0:t.unread},xee=e=>e.data.userId,oT=io(_ee,(e=>e.data.list)),See=io(oT,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),Eee=io(oT,(e=>null==e?void 0:e.at(-1))),xl=ia({name:"notifications",initialState:r$,reducers:{setPending:(e,t)=>{e.isPending=t.payload},setError:(e,t)=>{e.error=t.payload},setNotifications:(e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}},addNotification:(e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])},markNotification:(e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))},updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},setTotalCount:(e,t)=>{e.count.total=t.payload},setUnreadCount:(e,t)=>{e.count.unread=t.payload},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))},resetState:()=>r$,undoNotitication:(e,t)=>{var n,r,a;const o=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===o)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(a=e.data.list)?void 0:a.filter((e=>e.id!==o)))||[]}},selectors:{selectError:vee,selectIsPending:bee,selectTotalCount:wee,selectUnreadCount:kee,selectNotifications:oT,selectUnreadNotifications:See,selectLastNotification:Eee,selectNotificationsOwner:xee}}),Cee=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},Ree={deviceType:Cee()},iT=ia({name:"ui",initialState:Ree,reducers:{setDeviceType:(e,{payload:t})=>{e.deviceType=t}},selectors:{selectDeviceType:e=>e.deviceType,selectIsMobile:e=>"mobile"===e.deviceType,selectIsTablet:e=>"tablet"===e.deviceType,selectIsDesktop:e=>"desktop"===e.deviceType}});function Tee(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const Aee={isOnline:Tee()},Iee=ia({name:"network",initialState:Aee,reducers:{setOnline:(e,{payload:t})=>{e.isOnline=t}},selectors:{selectOnline:e=>e.isOnline}});var $ee={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/router/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/router/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"75f5d9c2e3f1e845",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/router",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.174",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/router",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/router",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/router"};const R1=YW(ar,Iee,iT,p1,ro,qo,gb,xl,Vb,yy);let J0;const Pee=e=>{const t=wW({devTools:{name:$ee.APP_NAME},reducer:R1,preloadedState:e,middleware:e=>e().concat(ar.middleware,tee)});return J0=t,t},h1=e=>J0||(J0=Pee(e),J0),Oee={path:"",transitionPath:""},Ko=ia({name:"router",initialState:Oee,reducers:{setPath:(e,{payload:t})=>{t!==e.path&&(e.path=t)},requestChangePath:(e,{payload:t})=>{t!==e.transitionPath&&(e.transitionPath=t)}},selectors:{selectPath:e=>e.path,selectTransitionPath:e=>e.transitionPath}}).injectInto(R1),V7=(e,t)=>{const n=Lq(null==t?void 0:t.queryParams);return(null!=t&&t.props&&!Xd.isNumber(e)?BN(e,null==t?void 0:t.props):e)+n},zee=e=>!(null==e||!e.target);function fC(e,t){const n=V7(e,t);if(zee(t)&&"_blank"===t.target){const{origin:e}=new URL(document.referrer||window.location.origin),t=n.includes("://")?n:e+n;window.open(t,"_blank")}else h1().dispatch(Ko.actions.requestChangePath(n))}const q7=()=>fC;var a$,o$,i$,s$,Qx={exports:{}},gi={},Yx={exports:{}},Zx={};
|
|
37
37
|
/**
|
|
38
38
|
* @license React
|
|
39
39
|
* scheduler.production.min.js
|
|
@@ -115,7 +115,7 @@ const vte=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l5=(...e)=>e.
|
|
|
115
115
|
*
|
|
116
116
|
* This source code is licensed under the MIT license found in the
|
|
117
117
|
* LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/function eie(){if(PP)return Cn;PP=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case o:case a:case u:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case l:case p:case d:case i:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Cn.ContextConsumer=s,Cn.ContextProvider=i,Cn.Element=t,Cn.ForwardRef=l,Cn.Fragment=r,Cn.Lazy=p,Cn.Memo=d,Cn.Portal=n,Cn.Profiler=o,Cn.StrictMode=a,Cn.Suspense=u,Cn.SuspenseList=f,Cn.isAsyncMode=function(){return!1},Cn.isConcurrentMode=function(){return!1},Cn.isContextConsumer=function(e){return m(e)===s},Cn.isContextProvider=function(e){return m(e)===i},Cn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Cn.isForwardRef=function(e){return m(e)===l},Cn.isFragment=function(e){return m(e)===r},Cn.isLazy=function(e){return m(e)===p},Cn.isMemo=function(e){return m(e)===d},Cn.isPortal=function(e){return m(e)===n},Cn.isProfiler=function(e){return m(e)===o},Cn.isStrictMode=function(e){return m(e)===a},Cn.isSuspense=function(e){return m(e)===u},Cn.isSuspenseList=function(e){return m(e)===f},Cn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===a||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===i||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},Cn.typeOf=m,Cn}function tie(){return OP||(OP=1,iS.exports=eie()),iS.exports}function yL(){if(zP)return sS;zP=1;var e=cu(),t=Yi();return sS=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}function nie(){if(MP)return cS;MP=1;var e=yL();return cS=function(t){return e(t)&&t!=+t}}tie(),nie(),yL();var fS,DP,uS,NP,dS,LP,pS,jP,hS,BP,mS,FP,gS,UP,yS,VP,_S,qP,vS,WP,bS,HP,wS,GP,kS,KP,xS,QP,SS,YP,ES,ZP,CS,XP,RS,JP,TS,eO,AS,tO,IS,nO,$S,rO,PS,aO,OS,oO,Vv=function(e){return Joe(e)&&e.indexOf("%")===e.length-1},rie=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},lS=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a]};function aie(){if(DP)return fS;DP=1;var e=tk();return fS=function(){this.__data__=new e,this.size=0}}function oie(){if(NP)return uS;return NP=1,uS=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}function iie(){if(LP)return dS;return LP=1,dS=function(e){return this.__data__.get(e)}}function sie(){if(jP)return pS;return jP=1,pS=function(e){return this.__data__.has(e)}}function cie(){if(BP)return hS;BP=1;var e=tk(),t=$T(),n=PT();return hS=function(r,a){var o=this.__data__;if(o instanceof e){var i=o.__data__;if(!t||i.length<199)return i.push([r,a]),this.size=++o.size,this;o=this.__data__=new n(i)}return o.set(r,a),this.size=o.size,this}}function OT(){if(FP)return mS;FP=1;var e=tk(),t=aie(),n=oie(),r=iie(),a=sie(),o=cie();function i(t){var n=this.__data__=new e(t);this.size=n.size}return i.prototype.clear=t,i.prototype.delete=n,i.prototype.get=r,i.prototype.has=a,i.prototype.set=o,mS=i}function lie(){if(UP)return gS;UP=1;return gS=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function fie(){if(VP)return yS;return VP=1,yS=function(e){return this.__data__.has(e)}}function uie(){if(qP)return _S;qP=1;var e=PT(),t=lie(),n=fie();function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,_S=r}function die(){if(WP)return vS;return WP=1,vS=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}}function pie(){if(HP)return bS;return HP=1,bS=function(e,t){return e.has(t)}}function _L(){if(GP)return wS;GP=1;var e=uie(),t=die(),n=pie();return wS=function(r,a,o,i,s,c){var l=1&o,u=r.length,f=a.length;if(u!=f&&!(l&&f>u))return!1;var d=c.get(r),p=c.get(a);if(d&&p)return d==a&&p==r;var h=-1,m=!0,g=2&o?new e:void 0;for(c.set(r,a),c.set(a,r);++h<u;){var y=r[h],v=a[h];if(i)var b=l?i(v,y,h,a,r,c):i(y,v,h,r,a,c);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!t(a,(function(e,t){if(!n(g,t)&&(y===e||s(y,e,o,i,c)))return g.push(t)}))){m=!1;break}}else if(y!==v&&!s(y,v,o,i,c)){m=!1;break}}return c.delete(r),c.delete(a),m}}function vL(){if(KP)return kS;KP=1;var e=Xo().Uint8Array;return kS=e}function hie(){if(QP)return xS;return QP=1,xS=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}}function mie(){if(YP)return SS;return YP=1,SS=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}}function gie(){if(ZP)return ES;ZP=1;var e=$1(),t=vL(),n=IT(),r=_L(),a=hie(),o=mie(),i=e?e.prototype:void 0,s=i?i.valueOf:void 0;return ES=function(e,i,c,l,u,f,d){switch(c){case"[object DataView]":if(e.byteLength!=i.byteLength||e.byteOffset!=i.byteOffset)return!1;e=e.buffer,i=i.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=i.byteLength||!f(new t(e),new t(i)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+i);case"[object Error]":return e.name==i.name&&e.message==i.message;case"[object RegExp]":case"[object String]":return e==i+"";case"[object Map]":var p=a;case"[object Set]":var h=1&l;if(p||(p=o),e.size!=i.size&&!h)return!1;var m=d.get(e);if(m)return m==i;l|=2,d.set(e,i);var g=r(p(e),p(i),l,u,f,d);return d.delete(e),g;case"[object Symbol]":if(s)return s.call(e)==s.call(i)}return!1}}function zT(){if(XP)return CS;return XP=1,CS=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}}function bL(){if(JP)return RS;JP=1;var e=zT(),t=vi();return RS=function(n,r,a){var o=r(n);return t(n)?o:e(o,a(n))}}function yie(){if(eO)return TS;return eO=1,TS=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}}function wL(){if(tO)return AS;return tO=1,AS=function(){return[]}}function MT(){if(nO)return IS;nO=1;var e=yie(),t=wL(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return IS=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function _ie(){if(rO)return $S;return rO=1,$S=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}}function vie(){if(aO)return PS;aO=1;var e=cu(),t=Yi();return PS=function(n){return t(n)&&"[object Arguments]"==e(n)}}function DT(){if(oO)return OS;oO=1;var e=vie(),t=Yi(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!a.call(e,"callee")};return OS=o}var zS,iO,sO,MS,cO,DS,lO,NS,fO,LS,uO,ey={exports:{}};function bie(){if(iO)return zS;return iO=1,zS=function(){return!1}}function NT(){return sO||(sO=1,e=ey,t=ey.exports,n=Xo(),r=bie(),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,i=o&&o.exports===a?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||r,e.exports=s),ey.exports;var e,t,n,r,a,o,i,s}function LT(){if(cO)return MS;cO=1;var e=/^(?:0|[1-9]\d*)$/;return MS=function(t,n){var r=typeof t;return!!(n=n??9007199254740991)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function jT(){if(lO)return DS;lO=1;return DS=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function wie(){if(fO)return NS;fO=1;var e=cu(),t=jT(),n=Yi(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,NS=function(a){return n(a)&&t(a.length)&&!!r[e(a)]}}function BT(){if(uO)return LS;return uO=1,LS=function(e){return function(t){return e(t)}}}ey.exports;var dO,jS,pO,BS,hO,FS,mO,US,gO,VS,yO,qS,_O,WS,vO,HS,bO,GS,wO,KS,kO,QS,xO,YS,SO,ZS,EO,XS,CO,JS,RO,e6,TO,t6,AO,n6,IO,r6,$O,a6,PO,o6,OO,i6,zO,s6,MO,c6,DO,l6,NO,f6,LO,u6,jO,d6,BO,p6,FO,h6,UO,m6,VO,g6,qO,y6,WO,_6,HO,v6,GO,b6,KO,w6,QO,k6,YO,x6,ZO,S6,XO,E6,JO,C6,ez,R6,tz,T6,nz,A6,rz,I6,az,$6,oz,P6,iz,O6,sz,z6,cz,M6,lz,D6,fz,ty={exports:{}};function FT(){return dO||(dO=1,e=ty,t=ty.exports,n=lL(),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,o=a&&a.exports===r&&n.process,i=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch{}}(),e.exports=i),ty.exports;var e,t,n,r,a,o,i}function kL(){if(pO)return jS;pO=1;var e=wie(),t=BT(),n=FT(),r=n&&n.isTypedArray,a=r?t(r):e;return jS=a}function xL(){if(hO)return BS;hO=1;var e=_ie(),t=DT(),n=vi(),r=NT(),a=LT(),o=kL(),i=Object.prototype.hasOwnProperty;return BS=function(s,c){var l=n(s),u=!l&&t(s),f=!l&&!u&&r(s),d=!l&&!u&&!f&&o(s),p=l||u||f||d,h=p?e(s.length,String):[],m=h.length;for(var g in s)(c||i.call(s,g))&&(!p||!("length"==g||f&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m)))&&h.push(g);return h}}function UT(){if(mO)return FS;mO=1;var e=Object.prototype;return FS=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function SL(){if(gO)return US;return gO=1,US=function(e,t){return function(n){return e(t(n))}}}function kie(){if(yO)return VS;yO=1;var e=SL()(Object.keys,Object);return VS=e}function EL(){if(_O)return qS;_O=1;var e=UT(),t=kie(),n=Object.prototype.hasOwnProperty;return qS=function(r){if(!e(r))return t(r);var a=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&a.push(o);return a}}function CL(){if(vO)return WS;vO=1;var e=Xw(),t=jT();return WS=function(n){return null!=n&&t(n.length)&&!e(n)}}function rk(){if(bO)return HS;bO=1;var e=xL(),t=EL(),n=CL();return HS=function(r){return n(r)?e(r):t(r)}}function RL(){if(wO)return GS;wO=1;var e=bL(),t=MT(),n=rk();return GS=function(r){return e(r,n,t)}}function xie(){if(kO)return KS;kO=1;var e=RL(),t=Object.prototype.hasOwnProperty;return KS=function(n,r,a,o,i,s){var c=1&a,l=e(n),u=l.length;if(u!=e(r).length&&!c)return!1;for(var f=u;f--;){var d=l[f];if(!(c?d in r:t.call(r,d)))return!1}var p=s.get(n),h=s.get(r);if(p&&h)return p==r&&h==n;var m=!0;s.set(n,r),s.set(r,n);for(var g=c;++f<u;){var y=n[d=l[f]],v=r[d];if(o)var b=c?o(v,y,d,r,n,s):o(y,v,d,n,r,s);if(!(void 0===b?y===v||i(y,v,a,o,s):b)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var _=n.constructor,w=r.constructor;_!=w&&"constructor"in n&&"constructor"in r&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(m=!1)}return s.delete(n),s.delete(r),m}}function Sie(){if(xO)return QS;xO=1;var e=pm()(Xo(),"DataView");return QS=e}function Eie(){if(SO)return YS;SO=1;var e=pm()(Xo(),"Promise");return YS=e}function Cie(){if(EO)return ZS;EO=1;var e=pm()(Xo(),"Set");return ZS=e}function TL(){if(CO)return XS;CO=1;var e=pm()(Xo(),"WeakMap");return XS=e}function P_(){if(RO)return JS;RO=1;var e=Sie(),t=$T(),n=Eie(),r=Cie(),a=TL(),o=cu(),i=fL(),s="[object Map]",c="[object Promise]",l="[object Set]",u="[object WeakMap]",f="[object DataView]",d=i(e),p=i(t),h=i(n),m=i(r),g=i(a),y=o;return(e&&y(new e(new ArrayBuffer(1)))!=f||t&&y(new t)!=s||n&&y(n.resolve())!=c||r&&y(new r)!=l||a&&y(new a)!=u)&&(y=function(e){var t=o(e),n="[object Object]"==t?e.constructor:void 0,r=n?i(n):"";if(r)switch(r){case d:return f;case p:return s;case h:return c;case m:return l;case g:return u}return t}),JS=y}function Rie(){if(TO)return e6;TO=1;var e=OT(),t=_L(),n=gie(),r=xie(),a=P_(),o=vi(),i=NT(),s=kL(),c="[object Arguments]",l="[object Array]",u="[object Object]",f=Object.prototype.hasOwnProperty;return e6=function(d,p,h,m,g,y){var v=o(d),b=o(p),_=v?l:a(d),w=b?l:a(p),k=(_=_==c?u:_)==u,x=(w=w==c?u:w)==u,S=_==w;if(S&&i(d)){if(!i(p))return!1;v=!0,k=!1}if(S&&!k)return y||(y=new e),v||s(d)?t(d,p,h,m,g,y):n(d,p,_,h,m,g,y);if(!(1&h)){var E=k&&f.call(d,"__wrapped__"),A=x&&f.call(p,"__wrapped__");if(E||A){var C=E?d.value():d,z=A?p.value():p;return y||(y=new e),g(C,z,h,m,y)}}return!!S&&(y||(y=new e),r(d,p,h,m,g,y))}}function AL(){if(AO)return t6;AO=1;var e=Rie(),t=Yi();return t6=function n(r,a,o,i,s){return r===a||(null==r||null==a||!t(r)&&!t(a)?r!=r&&a!=a:e(r,a,o,i,n,s))},t6}function Tie(){if(IO)return n6;IO=1;var e=OT(),t=AL();return n6=function(n,r,a,o){var i=a.length,s=i,c=!o;if(null==n)return!s;for(n=Object(n);i--;){var l=a[i];if(c&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++i<s;){var u=(l=a[i])[0],f=n[u],d=l[1];if(c&&l[2]){if(void 0===f&&!(u in n))return!1}else{var p=new e;if(o)var h=o(f,d,u,n,r,p);if(!(void 0===h?t(d,f,3,o,p):h))return!1}}return!0}}function IL(){if($O)return r6;$O=1;var e=$c();return r6=function(t){return t==t&&!e(t)}}function Aie(){if(PO)return a6;PO=1;var e=IL(),t=rk();return a6=function(n){for(var r=t(n),a=r.length;a--;){var o=r[a],i=n[o];r[a]=[o,i,e(i)]}return r}}function $L(){if(OO)return o6;return OO=1,o6=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function Iie(){if(zO)return i6;zO=1;var e=Tie(),t=Aie(),n=$L();return i6=function(r){var a=t(r);return 1==a.length&&a[0][2]?n(a[0][0],a[0][1]):function(t){return t===r||e(t,r,a)}}}function $ie(){if(MO)return s6;return MO=1,s6=function(e,t){return null!=e&&t in Object(e)}}function Pie(){if(DO)return c6;DO=1;var e=hL(),t=DT(),n=vi(),r=LT(),a=jT(),o=$_();return c6=function(i,s,c){for(var l=-1,u=(s=e(s,i)).length,f=!1;++l<u;){var d=o(s[l]);if(!(f=null!=i&&c(i,d)))break;i=i[d]}return f||++l!=u?f:!!(u=null==i?0:i.length)&&a(u)&&r(d,u)&&(n(i)||t(i))}}function Oie(){if(NO)return l6;NO=1;var e=$ie(),t=Pie();return l6=function(n,r){return null!=n&&t(n,r,e)}}function zie(){if(LO)return f6;LO=1;var e=AL(),t=gL(),n=Oie(),r=AT(),a=IL(),o=$L(),i=$_();return f6=function(s,c){return r(s)&&a(c)?o(i(s),c):function(r){var a=t(r,s);return void 0===a&&a===c?n(r,s):e(c,a,3)}}}function VT(){if(jO)return u6;return jO=1,u6=function(e){return e}}function Mie(){if(BO)return d6;return BO=1,d6=function(e){return function(t){return null==t?void 0:t[e]}}}function Die(){if(FO)return p6;FO=1;var e=mL();return p6=function(t){return function(n){return e(n,t)}}}function Nie(){if(UO)return h6;UO=1;var e=Mie(),t=Die(),n=AT(),r=$_();return h6=function(a){return n(a)?e(r(a)):t(a)}}function Lie(){if(VO)return m6;VO=1;var e=Iie(),t=zie(),n=VT(),r=vi(),a=Nie();return m6=function(o){return"function"==typeof o?o:null==o?n:"object"==typeof o?r(o)?t(o[0],o[1]):e(o):a(o)}}function jie(){if(qO)return g6;return qO=1,g6=function(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}}function Bie(){if(WO)return y6;return WO=1,y6=function(e){return e!=e}}function Fie(){if(HO)return _6;return HO=1,_6=function(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}}function Uie(){if(GO)return v6;GO=1;var e=jie(),t=Bie(),n=Fie();return v6=function(r,a,o){return a==a?n(r,a,o):e(r,t,o)}}function Vie(){if(KO)return b6;KO=1;var e=Uie();return b6=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1}}function PL(){if(QO)return w6;return QO=1,w6=function(){}}function qie(){if(YO)return k6;YO=1;var e=$1(),t=DT(),n=vi(),r=e?e.isConcatSpreadable:void 0;return k6=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}function Wie(){if(ZO)return x6;ZO=1;var e=zT(),t=qie();return x6=function n(r,a,o,i,s){var c=-1,l=r.length;for(o||(o=t),s||(s=[]);++c<l;){var u=r[c];a>0&&o(u)?a>1?n(u,a-1,o,i,s):e(s,u):i||(s[s.length]=u)}return s},x6}function qT(){if(XO)return S6;return XO=1,S6=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}}function Hie(){if(JO)return E6;JO=1;var e=qT(),t=Math.max;return E6=function(n,r,a){return r=t(void 0===r?n.length-1:r,0),function(){for(var o=arguments,i=-1,s=t(o.length-r,0),c=Array(s);++i<s;)c[i]=o[r+i];i=-1;for(var l=Array(r+1);++i<r;)l[i]=o[i];return l[r]=a(c),e(n,this,l)}},E6}function Gie(){if(ez)return C6;return ez=1,C6=function(e){return function(){return e}}}function OL(){if(tz)return R6;tz=1;var e=pm(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return R6=t}function Kie(){if(nz)return T6;nz=1;var e=Gie(),t=OL(),n=VT();return T6=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function zL(){if(rz)return A6;rz=1;var e=Date.now;return A6=function(t){var n=0,r=0;return function(){var a=e(),o=16-(a-r);if(r=a,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},A6}function ML(){if(az)return I6;az=1;var e=Kie(),t=zL()(e);return I6=t}function Qie(){if(oz)return $6;oz=1;var e=Xo();return $6=function(){return e.Date.now()}}function Yie(){if(iz)return P6;iz=1;var e=/\s/;return P6=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}function Zie(){if(sz)return O6;sz=1;var e=Yie(),t=/^\s+/;return O6=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}}function DL(){if(cz)return z6;cz=1;var e=Zie(),t=$c(),n=I_(),r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt;return z6=function(s){if("number"==typeof s)return s;if(n(s))return NaN;if(t(s)){var c="function"==typeof s.valueOf?s.valueOf():s;s=t(c)?c+"":c}if("string"!=typeof s)return 0===s?s:+s;s=e(s);var l=a.test(s);return l||o.test(s)?i(s.slice(2),l?2:8):r.test(s)?NaN:+s}}function NL(){if(lz)return M6;lz=1;var e=$c(),t=Qie(),n=DL(),r=Math.max,a=Math.min;return M6=function(o,i,s){var c,l,u,f,d,p,h=0,m=!1,g=!1,y=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function v(e){var t=c,n=l;return c=l=void 0,h=e,f=o.apply(n,t)}function b(e){var t=e-p;return void 0===p||t>=i||t<0||g&&e-h>=u}function _(){var e=t();if(b(e))return w(e);d=setTimeout(_,function(e){var t=i-(e-p);return g?a(t,u-(e-h)):t}(e))}function w(e){return d=void 0,y&&c?v(e):(c=l=void 0,f)}function k(){var e=t(),n=b(e);if(c=arguments,l=this,p=e,n){if(void 0===d)return function(e){return h=e,d=setTimeout(_,i),m?v(e):f}(p);if(g)return clearTimeout(d),d=setTimeout(_,i),v(p)}return void 0===d&&(d=setTimeout(_,i)),f}return i=n(i)||0,e(s)&&(m=!!s.leading,u=(g="maxWait"in s)?r(n(s.maxWait)||0,i):u,y="trailing"in s?!!s.trailing:y),k.cancel=function(){void 0!==d&&clearTimeout(d),h=0,c=p=l=d=void 0},k.flush=function(){return void 0===d?f:w(t())},k},M6}function Xie(){if(fz)return D6;fz=1;var e=NL(),t=$c();return D6=function(n,r,a){var o=!0,i=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return t(a)&&(o="leading"in a?!!a.leading:o,i="trailing"in a?!!a.trailing:i),e(n,r,{leading:o,maxWait:r,trailing:i})}}ty.exports;var Jie=Xie();const ese=Dl(Jie);function Vy(e){return(Vy="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})(e)}function uz(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 qv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uz(Object(n),!0).forEach((function(t){tse(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tse(e,t,n){return(t=nse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nse(e){var t=rse(e,"string");return"symbol"==Vy(t)?t:t+""}function rse(e,t){if("object"!=Vy(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Vy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function ase(e,t){return cse(e)||sse(e,t)||ise(e,t)||ose()}function ose(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ise(e,t){if(e){if("string"==typeof e)return dz(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dz(e,t)}}function dz(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}function sse(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0!==t)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}function cse(e){if(Array.isArray(e))return e}var N6,pz,L6,hz,j6,mz,B6,gz,F6,yz,U6,_z,V6,vz,q6,bz,W6,wz,H6,kz,G6,xz,K6,Sz,Q6,Ez,lse=v.forwardRef((function(e,t){var n=e.aspect,r=e.initialDimension,a=void 0===r?{width:-1,height:-1}:r,o=e.width,i=void 0===o?"100%":o,s=e.height,c=void 0===s?"100%":s,l=e.minWidth,u=void 0===l?0:l,f=e.minHeight,d=e.maxHeight,p=e.children,h=e.debounce,m=void 0===h?0:h,g=e.id,y=e.className,b=e.onResize,_=e.style,w=void 0===_?{}:_,k=v.useRef(null),x=v.useRef();x.current=b,v.useImperativeHandle(t,(function(){return Object.defineProperty(k.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),k.current},configurable:!0})}));var S=ase(v.useState({containerWidth:a.width,containerHeight:a.height}),2),E=S[0],A=S[1],C=v.useCallback((function(e,t){A((function(n){var r=Math.round(e),a=Math.round(t);return n.containerWidth===r&&n.containerHeight===a?n:{containerWidth:r,containerHeight:a}}))}),[]);v.useEffect((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,a=n.height;C(r,a),null===(t=x.current)||void 0===t||t.call(x,r,a)};m>0&&(e=ese(e,m,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=k.current.getBoundingClientRect(),r=n.width,a=n.height;return C(r,a),t.observe(k.current),function(){t.disconnect()}}),[C,m]);var z=v.useMemo((function(){var e=E.containerWidth,t=E.containerHeight;if(e<0||t<0)return null;lS(Vv(i)||Vv(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",i,c),lS(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=Vv(i)?e:i,a=Vv(c)?t:c;n&&n>0&&(r?a=r/n:a&&(r=a*n),d&&a>d&&(a=d)),lS(r>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,a,i,c,u,f,n);var o=!Array.isArray(p)&&rie(p.type).endsWith("Chart");return ze.Children.map(p,(function(e){return ze.isValidElement(e)?v.cloneElement(e,qv({width:r,height:a},o?{style:qv({height:"100%",width:"100%",maxHeight:a,maxWidth:r},e.props.style)}:{})):e}))}),[n,p,c,d,f,u,E,i]);return ze.createElement("div",{id:g?"".concat(g):void 0,className:n5("recharts-responsive-container",y),style:qv(qv({},w),{},{width:i,height:c,minWidth:u,minHeight:f,maxHeight:d}),ref:k},z)}));function WT(){if(pz)return N6;pz=1;var e=SL()(Object.getPrototypeOf,Object);return N6=e}function fse(){if(hz)return L6;hz=1;var e=cu(),t=WT(),n=Yi(),r=Function.prototype,a=Object.prototype,o=r.toString,i=a.hasOwnProperty,s=o.call(Object);return L6=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var a=t(r);if(null===a)return!0;var c=i.call(a,"constructor")&&a.constructor;return"function"==typeof c&&c instanceof c&&o.call(c)==s}}function use(){if(mz)return j6;mz=1;var e=DL(),t=1/0;return j6=function(n){return n?(n=e(n))===t||n===-t?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}}function LL(){if(gz)return B6;gz=1;var e=OL();return B6=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function jL(){if(yz)return F6;yz=1;var e=use();return F6=function(t){var n=e(t),r=n%1;return n==n?r?n-r:n:0}}function HT(){if(_z)return U6;return _z=1,U6=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}}function BL(){if(vz)return V6;vz=1;var e=LL(),t=IT(),n=Object.prototype.hasOwnProperty;return V6=function(r,a,o){var i=r[a];(!n.call(r,a)||!t(i,o)||void 0===o&&!(a in r))&&e(r,a,o)}}function ak(){if(bz)return q6;bz=1;var e=BL(),t=LL();return q6=function(n,r,a,o){var i=!a;a||(a={});for(var s=-1,c=r.length;++s<c;){var l=r[s],u=o?o(a[l],n[l],l,a,n):void 0;void 0===u&&(u=n[l]),i?t(a,l,u):e(a,l,u)}return a}}function FL(){if(wz)return W6;wz=1;var e=ak(),t=rk();return W6=function(n,r){return n&&e(r,t(r),n)}}function dse(){if(kz)return H6;return kz=1,H6=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}}function pse(){if(xz)return G6;xz=1;var e=$c(),t=UT(),n=dse(),r=Object.prototype.hasOwnProperty;return G6=function(a){if(!e(a))return n(a);var o=t(a),i=[];for(var s in a)"constructor"==s&&(o||!r.call(a,s))||i.push(s);return i}}function GT(){if(Sz)return K6;Sz=1;var e=xL(),t=pse(),n=CL();return K6=function(r){return n(r)?e(r,!0):t(r)}}function hse(){if(Ez)return Q6;Ez=1;var e=ak(),t=GT();return Q6=function(n,r){return n&&e(r,t(r),n)}}var Cz,Y6,Rz,Z6,Tz,X6,Az,J6,Iz,eE,$z,tE,Pz,nE,Oz,rE,zz,aE,Mz,oE,Dz,iE,Nz,sE,Lz,cE,jz,lE,Bz,fE,Fz,uE,Uz,dE,Vz,pE,qz,hE,Wz,mE,Hz,gE,Gz,ny={exports:{}};function mse(){return Cz||(Cz=1,e=ny,t=ny.exports,n=Xo(),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,o=a&&a.exports===r?n.Buffer:void 0,i=o?o.allocUnsafe:void 0,e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=i?i(n):new e.constructor(n);return e.copy(r),r}),ny.exports;var e,t,n,r,a,o,i}function ok(){if(Rz)return Y6;return Rz=1,Y6=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}}function gse(){if(Tz)return Z6;Tz=1;var e=ak(),t=MT();return Z6=function(n,r){return e(n,t(n),r)}}function UL(){if(Az)return X6;Az=1;var e=zT(),t=WT(),n=MT(),r=wL(),a=Object.getOwnPropertySymbols;return X6=a?function(r){for(var a=[];r;)e(a,n(r)),r=t(r);return a}:r}function yse(){if(Iz)return J6;Iz=1;var e=ak(),t=UL();return J6=function(n,r){return e(n,t(n),r)}}function _se(){if($z)return eE;$z=1;var e=bL(),t=UL(),n=GT();return eE=function(r){return e(r,n,t)}}function vse(){if(Pz)return tE;Pz=1;var e=Object.prototype.hasOwnProperty;return tE=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}}function KT(){if(Oz)return nE;Oz=1;var e=vL();return nE=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function bse(){if(zz)return rE;zz=1;var e=KT();return rE=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}function wse(){if(Mz)return aE;Mz=1;var e=/\w*$/;return aE=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}function kse(){if(Dz)return oE;Dz=1;var e=$1(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return oE=function(e){return n?Object(n.call(e)):{}}}function xse(){if(Nz)return iE;Nz=1;var e=KT();return iE=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}function Sse(){if(Lz)return sE;Lz=1;var e=KT(),t=bse(),n=wse(),r=kse(),a=xse();return sE=function(o,i,s){var c=o.constructor;switch(i){case"[object ArrayBuffer]":return e(o);case"[object Boolean]":case"[object Date]":return new c(+o);case"[object DataView]":return t(o,s);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(o,s);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(o);case"[object RegExp]":return n(o);case"[object Symbol]":return r(o)}}}function ik(){if(jz)return cE;jz=1;var e=$c(),t=Object.create;return cE=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var a=new n;return n.prototype=void 0,a}}()}function Ese(){if(Bz)return lE;Bz=1;var e=ik(),t=WT(),n=UT();return lE=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}function Cse(){if(Fz)return fE;Fz=1;var e=P_(),t=Yi();return fE=function(n){return t(n)&&"[object Map]"==e(n)}}function Rse(){if(Uz)return uE;Uz=1;var e=Cse(),t=BT(),n=FT(),r=n&&n.isMap,a=r?t(r):e;return uE=a}function Tse(){if(Vz)return dE;Vz=1;var e=P_(),t=Yi();return dE=function(n){return t(n)&&"[object Set]"==e(n)}}function Ase(){if(qz)return pE;qz=1;var e=Tse(),t=BT(),n=FT(),r=n&&n.isSet,a=r?t(r):e;return pE=a}function VL(){if(Wz)return hE;Wz=1;var e=OT(),t=HT(),n=BL(),r=FL(),a=hse(),o=mse(),i=ok(),s=gse(),c=yse(),l=RL(),u=_se(),f=P_(),d=vse(),p=Sse(),h=Ese(),m=vi(),g=NT(),y=Rse(),v=$c(),b=Ase(),_=rk(),w=GT(),k="[object Arguments]",x="[object Function]",S="[object Object]",E={};return E[k]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E[S]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E[x]=E["[object WeakMap]"]=!1,hE=function A(C,z,I,T,R,j){var P,O=1&z,N=2&z,M=4&z;if(I&&(P=R?I(C,T,R,j):I(C)),void 0!==P)return P;if(!v(C))return C;var D=m(C);if(D){if(P=d(C),!O)return i(C,P)}else{var B=f(C),L=B==x||"[object GeneratorFunction]"==B;if(g(C))return o(C,O);if(B==S||B==k||L&&!R){if(P=N||L?{}:h(C),!O)return N?c(C,a(P,C)):s(C,r(P,C))}else{if(!E[B])return R?C:{};P=p(C,B,O)}}j||(j=new e);var q=j.get(C);if(q)return q;j.set(C,P),b(C)?C.forEach((function(e){P.add(A(e,z,I,e,C,j))})):y(C)&&C.forEach((function(e,t){P.set(t,A(e,z,I,t,C,j))}));var V=D?void 0:(M?N?u:l:N?w:_)(C);return t(V||C,(function(e,t){V&&(e=C[t=e]),n(P,t,A(e,z,I,t,C,j))})),P},hE}function Ise(){if(Hz)return mE;Hz=1;var e=Wie();return mE=function(t){return(null==t?0:t.length)?e(t,1):[]}}function $se(){if(Gz)return gE;Gz=1;var e=Ise(),t=Hie(),n=ML();return gE=function(r){return n(t(r,void 0,e),r+"")}}ny.exports;const Pse={light:"",dark:".dark"},qL=v.createContext(null);function WL(){const e=v.useContext(qL);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const Ose=v.forwardRef((({id:e,className:t,children:n,config:r,...a},o)=>{const i=v.useId(),s=`chart-${e||i.replace(/:/g,"")}`;return B.jsx(qL.Provider,{value:{config:r},children:B.jsxs("div",{"data-chart":s,ref:o,className:xe("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...a,children:[B.jsx(zse,{id:s,config:r}),B.jsx(lse,{children:n})]})})}));Ose.displayName="Chart";const zse=({id:e,config:t})=>{const n=Object.entries(t).filter((([,e])=>e.theme||e.color));return n.length?B.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Pse).map((([t,r])=>`\n${r} [data-chart=${e}] {\n${n.map((([e,n])=>{var r;const a=(null==(r=n.theme)?void 0:r[t])||n.color;return a?` --color-${e}: ${a};`:null})).join("\n")}\n}\n`)).join("\n")}}):null},Mse=v.forwardRef((({active:e,payload:t,className:n,indicator:r="dot",hideLabel:a=!1,hideIndicator:o=!1,label:i,labelFormatter:s,labelClassName:c,formatter:l,color:u,nameKey:f,labelKey:d},p)=>{const{config:h}=WL(),m=v.useMemo((()=>{var e;if(a||null==t||!t.length)return null;const[n]=t,r=`${d||(null==n?void 0:n.dataKey)||(null==n?void 0:n.name)||"value"}`,o=xC(h,n,r),l=d||"string"!=typeof i?null==o?void 0:o.label:(null==(e=h[i])?void 0:e.label)||i;return s?B.jsx("div",{className:xe("font-medium",c),children:s(l,t)}):l?B.jsx("div",{className:xe("font-medium",c),children:l}):null}),[i,s,t,a,c,h,d]);if(!e||null==t||!t.length)return null;const g=1===t.length&&"dot"!==r,y=t.length>10;return B.jsxs("div",{ref:p,className:xe("grid min-w-[8rem] items-start gap-1.5 rounded-sm border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",y&&"min-w-[16rem]",n),children:[g?null:m,B.jsx("div",{className:xe("grid gap-1.5",y&&"grid-cols-2 gap-x-4"),children:t.map(((e,t)=>{var n;const a=`${f||e.name||e.dataKey||"value"}`,i=xC(h,e,a),s=u||(null==(n=e.payload)?void 0:n.fill)||e.color||"";return B.jsx("div",{className:xe("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===r&&"items-center"),children:l&&void 0!==(null==e?void 0:e.value)&&void 0!==(null==e?void 0:e.payload)&&e.name?l(e.value,e.name,e,t,[e.payload]):B.jsxs(B.Fragment,{children:[null!=i&&i.icon?B.jsx(i.icon,{}):!o&&B.jsx("div",{className:xe("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===r,"w-1":"line"===r,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===r,"my-0.5":g&&"dashed"===r}),style:{"--color-bg":s,"--color-border":s}}),B.jsxs("div",{className:xe("flex flex-1 justify-between leading-none",g?"items-end":"items-center"),children:[B.jsxs("div",{className:"grid gap-1.5",children:[g?m:null,B.jsx("span",{className:"text-muted-foreground",children:(null==i?void 0:i.label)||e.name})]}),e.value&&B.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)}))})]})}));Mse.displayName="ChartTooltip";const Dse=v.forwardRef((({className:e,hideIcon:t=!1,payload:n,nameKey:r,onItemHover:a,hoveredItem:o},i)=>{const{config:s}=WL(),c=v.useRef({});return v.useEffect((()=>{if(o&&c.current[o]){const e=c.current[o];e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[o]),null!=n&&n.length?B.jsx("div",{ref:i,className:xe("flex h-[150px] w-full flex-wrap items-center justify-center gap-6 overflow-y-auto pb-10",e),children:n.map((e=>{var n;const i=`${r||e.dataKey||"value"}`,l=xC(s,e,i),u=!!a&&i===o;return B.jsxs("div",{ref:e=>{e?c.current[i]=e:delete c.current[i]},className:xe("group flex cursor-pointer select-none items-center gap-2 text-base transition-all duration-150",u?"scale-105 text-black":o?"text-gray-700 opacity-40":"text-gray-700"),onMouseEnter:()=>null==a?void 0:a(e.dataKey),onMouseLeave:()=>null==a?void 0:a(null),children:[null!=l&&l.icon&&!t?B.jsx(l.icon,{}):B.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color||""}}),B.jsx("span",{className:"min-w-[max-content]",children:(null==l?void 0:l.label)||e.name})]},(null==(n=e.value)?void 0:n.toString())||i)}))}):null}));function xC(e,t,n){if("object"!=typeof t||null===t)return;const r="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0;let a=n;return n in t&&"string"==typeof t[n]?a=t[n]:r&&n in r&&"string"==typeof r[n]&&(a=r[n]),a in e?e[a]:e[n]}Dse.displayName="ChartLegend";const Nse=({children:e,className:t})=>B.jsx("div",{className:xe("flex flex-wrap gap-1",t),children:e}),Kz=({text:e,icon:t,disabled:n,avatarSrc:r,onClick:a,onRemove:o})=>B.jsxs("div",{onClick:n?void 0:a,className:xe("flex cursor-pointer items-center gap-xxxs rounded-sm bg-slate-100 p-xxs text-sm font-medium text-slate-900 transition-all hover:bg-slate-200 [&_svg]:size-4",n&&"cursor-not-allowed bg-slate-100 text-slate-300"),children:[r&&B.jsxs(wT,{className:xe("size-6 text-[10px]"),children:[B.jsx(kT,{src:r,alt:e}),B.jsx(nL,{className:"text-xs",children:e.charAt(0).toUpperCase()})]}),t,B.jsx("span",{children:e}),o&&B.jsx("button",{onClick:e=>{e.stopPropagation(),null==o||o()},disabled:n,className:"pointer-events-auto cursor-pointer ",children:B.jsx(uT,{size:16})})]});function sk(e){const t=v.useRef({value:e,previous:e});return v.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function ck(e){const[t,n]=v.useState(void 0);return Ro((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const HL="Checkbox",[Lse,EZe]=Zo(HL),[jse,Bse]=Lse(HL),Fse=v.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:o,required:i,disabled:s,value:c="on",onCheckedChange:l,...u}=e,[f,d]=v.useState(null),p=un(t,(e=>d(e))),h=v.useRef(!1),m=!f||!!f.closest("form"),[g=!1,y]=ip({prop:a,defaultProp:o,onChange:l}),b=v.useRef(g);return v.useEffect((()=>{const e=null==f?void 0:f.form;if(e){const t=()=>y(b.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,y]),v.createElement(jse,{scope:n,state:g,disabled:s},v.createElement(wt.button,Ie({type:"button",role:"checkbox","aria-checked":qh(g)?"mixed":g,"aria-required":i,"data-state":GL(g),"data-disabled":s?"":void 0,disabled:s,value:c},u,{ref:p,onKeyDown:st(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:st(e.onClick,(e=>{y((e=>!!qh(e)||!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&v.createElement(qse,{control:f,bubbles:!h.current,name:r,value:c,checked:g,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))})),Use="CheckboxIndicator",Vse=v.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,o=Bse(Use,n);return v.createElement(zs,{present:r||qh(o.state)||!0===o.state},v.createElement(wt.span,Ie({"data-state":GL(o.state),"data-disabled":o.disabled?"":void 0},a,{ref:t,style:{pointerEvents:"none",...e.style}})))})),qse=e=>{const{control:t,checked:n,bubbles:r=!0,...a}=e,o=v.useRef(null),i=sk(n),s=ck(t);return v.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&a){const t=new Event("click",{bubbles:r});e.indeterminate=qh(n),a.call(e,!qh(n)&&n),e.dispatchEvent(t)}}),[i,n,r]),v.createElement("input",Ie({type:"checkbox","aria-hidden":!0,defaultChecked:!qh(n)&&n},a,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function qh(e){return"indeterminate"===e}function GL(e){return qh(e)?"indeterminate":e?"checked":"unchecked"}const KL=Fse,Wse=Vse,Hse=jl("transition-[border-width,background-color] duration-300 relative overflow-hidden ",{variants:{size:{default:"size-xs"},variant:{default:"peer shrink-0 rounded-sm border border-blue_100 data-[state=unchecked]:border-slate-300 data-[state=checked]:text-primary-foreground disabled:cursor-not-allowed disabled:!border-0 disabled:!bg-slate-100 md:hover:!border-[2px] md:hover:data-[state=checked]:bg-blue_120"}},defaultVariants:{size:"default",variant:"default"}}),QT=v.forwardRef((({className:e,size:t,variant:n,iconType:r,...a},o)=>{const[i]=v.useState(a.checked),[s,c]=v.useState(!1);v.useEffect((()=>{i!==a.checked&&c(!0)}),[a.checked]);const l=e=>"minus"===r?B.jsx(Wte,{...e}):B.jsx(fT,{...e});return B.jsxs(KL,{ref:o,className:xe(e,Hse({size:t,variant:n})),...a,children:[B.jsx("div",{className:xe("transform-origin-center absolute left-0 top-0 size-full",{"bg-blue_100":(s||i)&&!a.disabled,"animate-fill-in":a.checked&&s,"animate-fill-out":!a.checked&&s})}),B.jsx(Wse,{className:"relative flex items-center justify-center text-current",children:B.jsx(l,{className:"size-xxxs",color:a.disabled?"var(--slate-300)":"white"})})]})}));QT.displayName=KL.displayName;var Qz=1,Gse=.9,Kse=.8,Qse=.17,yE=.1,_E=.999,Yse=.9999,Zse=.99,Xse=/[\\\/_+.#"@\[\(\{&]/,Jse=/[\\\/_+.#"@\[\(\{&]/g,ece=/[\s-]/,QL=/[\s-]/g;function SC(e,t,n,r,a,o,i){if(o===t.length)return a===e.length?Qz:Zse;var s=`${a},${o}`;if(void 0!==i[s])return i[s];for(var c,l,u,f,d=r.charAt(o),p=n.indexOf(d,a),h=0;p>=0;)(c=SC(e,t,n,r,p+1,o+1,i))>h&&(p===a?c*=Qz:Xse.test(e.charAt(p-1))?(c*=Kse,(u=e.slice(a,p-1).match(Jse))&&a>0&&(c*=Math.pow(_E,u.length))):ece.test(e.charAt(p-1))?(c*=Gse,(f=e.slice(a,p-1).match(QL))&&a>0&&(c*=Math.pow(_E,f.length))):(c*=Qse,a>0&&(c*=Math.pow(_E,p-a))),e.charAt(p)!==t.charAt(o)&&(c*=Yse)),(c<yE&&n.charAt(p-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(p-1)!==r.charAt(o))&&((l=SC(e,t,n,r,p+1,o+2,i))*yE>c&&(c=l*yE)),c>h&&(h=c),p=n.indexOf(d,p+1);return i[s]=h,h}function Yz(e){return e.toLowerCase().replace(QL," ")}function tce(e,t,n){return SC(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,Yz(e),Yz(t),0,0,{})}var V0='[cmdk-group=""]',vE='[cmdk-group-items=""]',nce='[cmdk-group-heading=""]',YT='[cmdk-item=""]',Zz=`${YT}:not([aria-disabled="true"])`,EC="cmdk-item-select",jh="data-value",rce=(e,t,n)=>tce(e,t,n),YL=v.createContext(void 0),O_=()=>v.useContext(YL),ZL=v.createContext(void 0),ZT=()=>v.useContext(ZL),XL=v.createContext(void 0),JL=v.forwardRef(((e,t)=>{let n=Wg((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),r=Wg((()=>new Set)),a=Wg((()=>new Map)),o=Wg((()=>new Map)),i=Wg((()=>new Set)),s=ej(e),{label:c,children:l,value:u,onValueChange:f,filter:d,shouldFilter:p,loop:h,disablePointerSelection:m=!1,vimBindings:g=!0,...y}=e,b=v.useId(),_=v.useId(),w=v.useId(),k=v.useRef(null),x=hce();nm((()=>{if(void 0!==u){let e=u.trim();n.current.value=e,S.emit()}}),[u]),nm((()=>{x(6,T)}),[]);let S=v.useMemo((()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var a,o,i;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)I(),C(),x(1,z);else if("value"===e&&(r||x(5,T),void 0!==(null==(a=s.current)?void 0:a.value))){let e=t??"";return void(null==(i=(o=s.current).onValueChange)||i.call(o,e))}S.emit()}},emit:()=>{i.current.forEach((e=>e()))}})),[]),E=v.useMemo((()=>({value:(e,t,r)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,A(t,r)),x(2,(()=>{C(),S.emit()})))},item:(e,t)=>(r.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),x(3,(()=>{I(),C(),n.current.value||z(),S.emit()})),()=>{o.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=R();x(4,(()=>{I(),(null==t?void 0:t.getAttribute("id"))===e&&z(),S.emit()}))}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{o.current.delete(e),a.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],disablePointerSelection:m,listId:b,inputId:w,labelId:_,listInnerRef:k})),[]);function A(e,t){var r,a;let o=null!=(a=null==(r=s.current)?void 0:r.filter)?a:rce;return e?o(e,n.current.search,t):0}function C(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=a.current.get(n),o=0;r.forEach((t=>{let n=e.get(t);o=Math.max(n,o)})),t.push([n,o])}));let r=k.current;j().sort(((t,n)=>{var r,a;let o=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(a=e.get(o))?a:0)})).forEach((e=>{let t=e.closest(vE);t?t.appendChild(e.parentElement===t?e:e.closest(`${vE} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${vE} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=k.current.querySelector(`${V0}[${jh}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function z(){let e=j().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(jh);S.setState("value",t||void 0)}function I(){var e,t,i,c;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let l=0;for(let a of r.current){let r=A(null!=(t=null==(e=o.current.get(a))?void 0:e.value)?t:"",null!=(c=null==(i=o.current.get(a))?void 0:i.keywords)?c:[]);n.current.filtered.items.set(a,r),r>0&&l++}for(let[e,t]of a.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=l}function T(){var e,t,n;let r=R();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(V0))?void 0:t.querySelector(nce))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=k.current)?void 0:e.querySelector(`${YT}[aria-selected="true"]`)}function j(){var e;return Array.from(null==(e=k.current)?void 0:e.querySelectorAll(Zz))}function P(e){let t=j()[e];t&&S.setState("value",t.getAttribute(jh))}function O(e){var t;let n=R(),r=j(),a=r.findIndex((e=>e===n)),o=r[a+e];null!=(t=s.current)&&t.loop&&(o=a+e<0?r[r.length-1]:a+e===r.length?r[0]:r[a+e]),o&&S.setState("value",o.getAttribute(jh))}function N(e){let t,n=R(),r=null==n?void 0:n.closest(V0);for(;r&&!t;)r=e>0?dce(r,V0):pce(r,V0),t=null==r?void 0:r.querySelector(Zz);t?S.setState("value",t.getAttribute(jh)):O(e)}let M=()=>P(j().length-1),D=e=>{e.preventDefault(),e.metaKey?M():e.altKey?N(1):O(1)},B=e=>{e.preventDefault(),e.metaKey?P(0):e.altKey?N(-1):O(-1)};return v.createElement(wt.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=y.onKeyDown)||t.call(y,e),!e.defaultPrevented)switch(e.key){case"n":case"j":g&&e.ctrlKey&&D(e);break;case"ArrowDown":D(e);break;case"p":case"k":g&&e.ctrlKey&&B(e);break;case"ArrowUp":B(e);break;case"Home":e.preventDefault(),P(0);break;case"End":e.preventDefault(),M();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=R();if(t){let e=new Event(EC);t.dispatchEvent(e)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:gce},c),lk(e,(e=>v.createElement(ZL.Provider,{value:S},v.createElement(YL.Provider,{value:E},e)))))})),ace=v.forwardRef(((e,t)=>{var n,r;let a=v.useId(),o=v.useRef(null),i=v.useContext(XL),s=O_(),c=ej(e),l=null!=(r=null==(n=c.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;nm((()=>{if(!l)return s.item(a,null==i?void 0:i.id)}),[l]);let u=tj(a,o,[e.value,e.children,o],e.keywords),f=ZT(),d=rm((e=>e.value&&e.value===u.current)),p=rm((e=>!(!l&&!1!==s.filter())||(!e.search||e.filtered.items.get(a)>0)));function h(){var e,t;m(),null==(t=(e=c.current).onSelect)||t.call(e,u.current)}function m(){f.setState("value",u.current,!0)}if(v.useEffect((()=>{let t=o.current;if(t&&!e.disabled)return t.addEventListener(EC,h),()=>t.removeEventListener(EC,h)}),[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:y,onSelect:b,forceMount:_,keywords:w,...k}=e;return v.createElement(wt.div,{ref:qy([o,t]),...k,id:a,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!d,"data-disabled":!!g,"data-selected":!!d,onPointerMove:g||s.disablePointerSelection?void 0:m,onClick:g?void 0:h},e.children)})),oce=v.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:a,...o}=e,i=v.useId(),s=v.useRef(null),c=v.useRef(null),l=v.useId(),u=O_(),f=rm((e=>!(!a&&!1!==u.filter())||(!e.search||e.filtered.groups.has(i))));nm((()=>u.group(i)),[]),tj(i,s,[e.value,e.heading,c]);let d=v.useMemo((()=>({id:i,forceMount:a})),[a]);return v.createElement(wt.div,{ref:qy([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&v.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),lk(e,(e=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},v.createElement(XL.Provider,{value:d},e)))))})),ice=v.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,a=v.useRef(null),o=rm((e=>!e.search));return n||o?v.createElement(wt.div,{ref:qy([a,t]),...r,"cmdk-separator":"",role:"separator"}):null})),sce=v.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,a=null!=e.value,o=ZT(),i=rm((e=>e.search)),s=rm((e=>e.value)),c=O_(),l=v.useMemo((()=>{var e;let t=null==(e=c.listInnerRef.current)?void 0:e.querySelector(`${YT}[${jh}="${encodeURIComponent(s)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return v.useEffect((()=>{null!=e.value&&o.setState("search",e.value)}),[e.value]),v.createElement(wt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:a?e.value:i,onChange:e=>{a||o.setState("search",e.target.value),null==n||n(e.target.value)}})})),cce=v.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,o=v.useRef(null),i=v.useRef(null),s=O_();return v.useEffect((()=>{if(i.current&&o.current){let e,t=i.current,n=o.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),v.createElement(wt.div,{ref:qy([o,t]),...a,"cmdk-list":"",role:"listbox","aria-label":r,id:s.listId},lk(e,(e=>v.createElement("div",{ref:qy([i,s.listInnerRef]),"cmdk-list-sizer":""},e))))})),lce=v.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:o,container:i,...s}=e;return v.createElement(U5,{open:n,onOpenChange:r},v.createElement(Qw,{container:i},v.createElement(A1,{"cmdk-overlay":"",className:a}),v.createElement(I1,{"aria-label":e.label,"cmdk-dialog":"",className:o},v.createElement(JL,{ref:t,...s}))))})),fce=v.forwardRef(((e,t)=>rm((e=>0===e.filtered.count))?v.createElement(wt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),uce=v.forwardRef(((e,t)=>{let{progress:n,children:r,label:a="Loading...",...o}=e;return v.createElement(wt.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},lk(e,(e=>v.createElement("div",{"aria-hidden":!0},e))))})),bi=Object.assign(JL,{List:cce,Item:ace,Input:sce,Group:oce,Separator:ice,Dialog:lce,Empty:fce,Loading:uce});function dce(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function pce(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function ej(e){let t=v.useRef(e);return nm((()=>{t.current=e})),t}var nm=typeof window>"u"?v.useEffect:v.useLayoutEffect;function Wg(e){let t=v.useRef();return void 0===t.current&&(t.current=e()),t}function qy(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function rm(e){let t=ZT(),n=()=>e(t.snapshot());return v.useSyncExternalStore(t.subscribe,n,n)}function tj(e,t,n,r=[]){let a=v.useRef(),o=O_();return nm((()=>{var i;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),c=r.map((e=>e.trim()));o.value(e,s,c),null==(i=t.current)||i.setAttribute(jh,s),a.current=s})),a}var hce=()=>{let[e,t]=v.useState(),n=Wg((()=>new Map));return nm((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function mce(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}function lk({asChild:e,children:t},n){return e&&v.isValidElement(t)?v.cloneElement(mce(t),{ref:t.ref},n(t.props.children)):n(t)}var gce={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const yce=Qw,nj=v.forwardRef((({className:e,...t},n)=>(v.useEffect((()=>{const e=document.querySelectorAll(".blured-modal-overlay");return e.forEach((e=>e&&(e.style.filter="blur(5px)"))),()=>{e.forEach((e=>e&&(e.style.filter="none")))}}),[]),B.jsx(A1,{ref:n,"data-testid":"dialog_overlay",className:xe("fixed inset-0 z-100 bg-black opacity-[0.8] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}))));nj.displayName=A1.displayName;const _ce=jl("",{variants:{closeVariant:{none:"",insideCard:"absolute right-m top-m rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground text-slate-400",outsideCard:"fixed right-[30px] top-[30px] z-100 text-slate-400",mobileGallery:"fixed right-m top-[62px] text-white z-[110]"}},defaultVariants:{closeVariant:"outsideCard"}}),vce=jl("",{variants:{closeSize:{small:"size-6",big:"size-[42px]","18x18":"size-[18px]"}},defaultVariants:{closeSize:"small"}}),bce=v.forwardRef((({title:e,titleIcon:t,className:n,showClose:r=!0,closeVariant:a="outsideCard",closeSize:o="big",children:i,overlayClassName:s,childrenClassName:c,onBack:l,onCloseModal:u,renderFooter:f,...d},p)=>{const h=B.jsxs(Yw,{className:xe(_ce({closeVariant:a})),children:[B.jsx(uT,{onClick:u,fill:"currentColor",className:xe(vce({closeSize:o}))}),B.jsx("span",{className:"sr-only",children:"Close"})]});return B.jsxs(yce,{children:[B.jsx(nj,{className:s,onClick:u}),r&&"insideCard"!==a&&h,B.jsxs(I1,{ref:p,className:xe("fixed left-[50%] top-[50%] z-100 grid max-w-[600px] translate-x-[-50%] translate-y-[-50%] !overflow-visible rounded-sm bg-background shadow-lg outline-none duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] max-md:w-[calc(100vw-32px)] md:w-full [&>div]:min-w-0",n),...d,children:[e&&B.jsxs("h3",{className:"flex items-center justify-center gap-xxs border-b border-slate-200 p-m text-center text-lg font-semibold text-slate-700",children:[t,e]}),B.jsx("div",{className:xe("p-m",c),children:i}),r&&"insideCard"===a&&h,l&&B.jsx("button",{"data-testid":"dialog-back-button","aria-label":"Back",onClick:l,className:"absolute left-m top-m",children:B.jsx(u5,{color:"var(--slate-400)",size:24})}),B.jsx(rj,{className:"empty:hidden",children:null==f?void 0:f()})]})]})}));bce.displayName=I1.displayName;const rj=({className:e,...t})=>B.jsx("div",{className:xe("flex border-t border-slate-200 p-m",e),...t});rj.displayName="DialogFooter";const wce=v.forwardRef((({className:e,...t},n)=>B.jsx(R_,{ref:n,className:xe("text-lg font-semibold leading-none tracking-tight",e),...t})));wce.displayName=R_.displayName;const kce=v.forwardRef((({className:e,...t},n)=>B.jsx(T_,{ref:n,className:xe("text-sm text-muted-foreground",e),...t})));kce.displayName=T_.displayName;const xce=v.forwardRef((({className:e,...t},n)=>B.jsx(bi,{ref:n,className:xe("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));xce.displayName=bi.displayName;const Sce=v.forwardRef((({className:e,...t},n)=>B.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:B.jsx(bi.Input,{ref:n,className:xe("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})})));Sce.displayName=bi.Input.displayName;const Ece=v.forwardRef((({className:e,...t},n)=>B.jsx(bi.List,{ref:n,className:xe("mt-2 max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));Ece.displayName=bi.List.displayName;const Cce=v.forwardRef(((e,t)=>B.jsx(bi.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));Cce.displayName=bi.Empty.displayName;const Rce=v.forwardRef((({className:e,...t},n)=>B.jsx(bi.Group,{ref:n,className:xe("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})));Rce.displayName=bi.Group.displayName;const Tce=v.forwardRef((({className:e,...t},n)=>B.jsx(bi.Separator,{ref:n,className:xe("-mx-1 h-px bg-border",e),...t})));Tce.displayName=bi.Separator.displayName;const Ace=v.forwardRef((({className:e,...t},n)=>B.jsx(bi.Item,{ref:n,className:xe("relative flex max-w-[215px] cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t})));function np(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Xz(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function aj(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Xz(e,t);return!n&&"function"==typeof r&&(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Xz(e[t],null)}}}}function hm(...e){return v.useCallback(aj(...e),e)}function Ice(e,t){const n=v.createContext(t),r=e=>{const{children:t,...r}=e,a=v.useMemo((()=>r),Object.values(r));return B.jsx(n.Provider,{value:a,children:t})};return r.displayName=e+"Provider",[r,function(r){const a=v.useContext(n);if(a)return a;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function $ce(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>v.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return v.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=v.createContext(r),o=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,c=(null==(n=null==r?void 0:r[e])?void 0:n[o])||a,l=v.useMemo((()=>s),Object.values(s));return B.jsx(c.Provider,{value:l,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const c=(null==(s=null==i?void 0:i[e])?void 0:s[o])||a,l=v.useContext(c);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Pce(r,...t)]}function Pce(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return v.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}Ace.displayName=bi.Item.displayName;var Hb=null!=globalThis&&globalThis.document?v.useLayoutEffect:()=>{},Oce=Ab[" useId ".trim().toString()]||(()=>{}),zce=0;function bE(e){const[t,n]=v.useState(Oce());return Hb((()=>{e||n((e=>e??String(zce++)))}),[e]),e||(t?`radix-${t}`:"")}function am(e){const t=v.useRef(e);return v.useEffect((()=>{t.current=e})),v.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Mce({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=Dce({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=am(n);return[i,v.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}function Dce({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,a=v.useRef(r),o=am(t);return v.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}function oj(e){const t=Nce(e),n=v.forwardRef(((e,n)=>{const{children:r,...a}=e,o=v.Children.toArray(r),i=o.find(jce);if(i){const e=i.props.children,r=o.map((t=>t===i?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t));return B.jsx(t,{...a,ref:n,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return B.jsx(t,{...a,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function Nce(e){const t=v.forwardRef(((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const e=Fce(n),a=Bce(r,n.props);return n.type!==v.Fragment&&(a.ref=t?aj(t,e):e),v.cloneElement(n,a)}return v.Children.count(n)>1?v.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var Lce=Symbol("radix.slottable");function jce(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Lce}function Bce(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function Fce(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Uce=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],lu=Uce.reduce(((e,t)=>{const n=oj(`Primitive.${t}`),r=v.forwardRef(((e,r)=>{const{asChild:a,...o}=e,i=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),B.jsx(i,{...o,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function Vce(e,t){e&&Ll.flushSync((()=>e.dispatchEvent(t)))}function qce(e,t=(null==globalThis?void 0:globalThis.document)){const n=am(e);v.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var Jz,Wce="DismissableLayer",CC="dismissableLayer.update",Hce="dismissableLayer.pointerDownOutside",Gce="dismissableLayer.focusOutside",ij=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sj=v.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...c}=e,l=v.useContext(ij),[u,f]=v.useState(null),d=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=v.useState({}),h=hm(t,(e=>f(e))),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,_=l.layersWithOutsidePointerEventsDisabled.size>0,w=b>=y,k=Yce((e=>{const t=e.target,n=[...l.branches].some((e=>e.contains(t)));!w||n||(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),d),x=Zce((e=>{const t=e.target;[...l.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),d);return qce((e=>{b===l.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),d),v.useEffect((()=>{if(u)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(Jz=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),eM(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(d.body.style.pointerEvents=Jz)}}),[u,d,n,l]),v.useEffect((()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),eM())}),[u,l]),v.useEffect((()=>{const e=()=>p({});return document.addEventListener(CC,e),()=>document.removeEventListener(CC,e)}),[]),B.jsx(lu.div,{...c,ref:h,style:{pointerEvents:_?w?"auto":"none":void 0,...e.style},onFocusCapture:np(e.onFocusCapture,x.onFocusCapture),onBlurCapture:np(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:np(e.onPointerDownCapture,k.onPointerDownCapture)})}));sj.displayName=Wce;var Kce="DismissableLayerBranch",Qce=v.forwardRef(((e,t)=>{const n=v.useContext(ij),r=v.useRef(null),a=hm(t,r);return v.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),B.jsx(lu.div,{...e,ref:a})}));function Yce(e,t=(null==globalThis?void 0:globalThis.document)){const n=am(e),r=v.useRef(!1),a=v.useRef((()=>{}));return v.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){cj(Hce,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Zce(e,t=(null==globalThis?void 0:globalThis.document)){const n=am(e),r=v.useRef(!1);return v.useEffect((()=>{const e=e=>{e.target&&!r.current&&cj(Gce,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function eM(){const e=new CustomEvent(CC);document.dispatchEvent(e)}function cj(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Vce(a,o):a.dispatchEvent(o)}Qce.displayName=Kce;var wE="focusScope.autoFocusOnMount",kE="focusScope.autoFocusOnUnmount",tM={bubbles:!1,cancelable:!0},Xce="FocusScope",lj=v.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,c]=v.useState(null),l=am(a),u=am(o),f=v.useRef(null),d=hm(t,(e=>c(e))),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?f.current=t:qd(f.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||qd(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&qd(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,p.paused]),v.useEffect((()=>{if(s){rM.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(wE,tM);s.addEventListener(wE,l),s.dispatchEvent(t),t.defaultPrevented||(Jce(ale(fj(s)),{select:!0}),document.activeElement===e&&qd(s))}return()=>{s.removeEventListener(wE,l),setTimeout((()=>{const t=new CustomEvent(kE,tM);s.addEventListener(kE,u),s.dispatchEvent(t),t.defaultPrevented||qd(e??document.body,{select:!0}),s.removeEventListener(kE,u),rM.remove(p)}),0)}}}),[s,l,u,p]);const h=v.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=ele(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&qd(o,{select:!0})):(e.preventDefault(),n&&qd(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,p.paused]);return B.jsx(lu.div,{tabIndex:-1,...i,ref:d,onKeyDown:h})}));function Jce(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(qd(r,{select:t}),document.activeElement!==n)return}function ele(e){const t=fj(e);return[nM(t,e),nM(t.reverse(),e)]}function fj(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nM(e,t){for(const n of e)if(!tle(n,{upTo:t}))return n}function tle(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function nle(e){return e instanceof HTMLInputElement&&"select"in e}function qd(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&nle(e)&&t&&e.select()}}lj.displayName=Xce;var rM=rle();function rle(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=aM(e,t),e.unshift(t)},remove(t){var n;e=aM(e,t),null==(n=e[0])||n.resume()}}}function aM(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function ale(e){return e.filter((e=>"A"!==e.tagName))}var ole="Portal",uj=v.forwardRef(((e,t)=>{var n;const{container:r,...a}=e,[o,i]=v.useState(!1);Hb((()=>i(!0)),[]);const s=r||o&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return s?W7.createPortal(B.jsx(lu.div,{...a,ref:t}),s):null}));function ile(e,t){return v.useReducer(((e,n)=>t[e][n]??e),e)}uj.displayName=ole;var fk=e=>{const{present:t,children:n}=e,r=sle(t),a="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),o=hm(r.ref,cle(a));return"function"==typeof n||r.isPresent?v.cloneElement(a,{ref:o}):null};function sle(e){const[t,n]=v.useState(),r=v.useRef({}),a=v.useRef(e),o=v.useRef("none"),i=e?"mounted":"unmounted",[s,c]=ile(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect((()=>{const e=Wv(r.current);o.current="mounted"===s?e:"none"}),[s]),Hb((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=Wv(t);e?c("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?c("UNMOUNT"):c(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),a.current=e}}),[e,c]),Hb((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=Wv(r.current).includes(o.animationName);if(o.target===t&&i&&(c("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=Wv(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Wv(e){return(null==e?void 0:e.animationName)||"none"}function cle(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}fk.displayName="Presence";var xE=0;function lle(){v.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oM()),document.body.insertAdjacentElement("beforeend",e[1]??oM()),xE++,()=>{1===xE&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),xE--}}),[])}function oM(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var dj=E5(),SE=function(){},uk=v.forwardRef((function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:SE,onWheelCapture:SE,onTouchMoveCapture:SE}),a=r[0],o=r[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,f=e.shards,d=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=e.gapMode,_=vT(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=d,k=S5([n,t]),x=So(So({},_),a);return v.createElement(v.Fragment,null,u&&v.createElement(w,{sideCar:dj,removeScrollBar:l,shards:f,noIsolation:p,inert:h,setCallbacks:o,allowPinchZoom:!!m,lockRef:n,gapMode:b}),i?v.cloneElement(v.Children.only(s),So(So({},x),{ref:k})):v.createElement(y,So({},x,{className:c,ref:k}),s))}));uk.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},uk.classNames={fullWidth:wy,zeroRight:by};var RC=!1;if(typeof window<"u")try{var Hv=Object.defineProperty({},"passive",{get:function(){return RC=!0,!0}});window.addEventListener("test",Hv,Hv),window.removeEventListener("test",Hv,Hv)}catch{RC=!1}var jg=!!RC&&{passive:!1},fle=function(e){return"TEXTAREA"===e.tagName},pj=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!fle(e)&&"visible"===n[t])},ule=function(e){return pj(e,"overflowY")},dle=function(e){return pj(e,"overflowX")},iM=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),hj(e,r)){var a=mj(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ple=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},hle=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},hj=function(e,t){return"v"===e?ule(t):dle(t)},mj=function(e,t){return"v"===e?ple(t):hle(t)},mle=function(e,t){return"h"===e&&"rtl"===t?-1:1},gle=function(e,t,n,r,a){var o=mle(e,window.getComputedStyle(t).direction),i=o*r,s=n.target,c=t.contains(s),l=!1,u=i>0,f=0,d=0;do{var p=mj(e,s),h=p[0],m=p[1]-p[2]-o*h;(h||m)&&hj(e,s)&&(f+=m,d+=h),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(Math.abs(f)<1||!a)||!u&&(Math.abs(d)<1||!a))&&(l=!0),l},Gv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sM=function(e){return[e.deltaX,e.deltaY]},cM=function(e){return e&&"current"in e?e.current:e},yle=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_le=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},vle=0,Bg=[];function ble(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),a=v.useState(vle++)[0],o=v.useState(bT)[0],i=v.useRef(e);v.useEffect((function(){i.current=e}),[e]),v.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=x5([e.lockRef.current],(e.shards||[]).map(cM),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=Gv(e),s=n.current,c="deltaX"in e?e.deltaX:s[0]-o[0],l="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=iM(f,u);if(!d)return!0;if(d?a=f:(a="v"===f?"h":"v",d=iM(f,u)),!d)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=a),!a)return!0;var p=r.current||a;return gle(p,t,e,"h"===p?c:l,!0)}),[]),c=v.useCallback((function(e){var n=e;if(Bg.length&&Bg[Bg.length-1]===o){var r="deltaY"in n?sM(n):Gv(n),a=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&yle(e.delta,r)}))[0];if(a&&a.should)return void(n.cancelable&&n.preventDefault());if(!a){var c=(i.current.shards||[]).map(cM).filter(Boolean).filter((function(e){return e.contains(n.target)}));(c.length>0?s(n,c[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=v.useCallback((function(e,n,r,a){var o={name:e,delta:n,target:r,should:a,shadowParent:wle(r)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=v.useCallback((function(e){n.current=Gv(e),r.current=void 0}),[]),f=v.useCallback((function(t){l(t.type,sM(t),t.target,s(t,e.lockRef.current))}),[]),d=v.useCallback((function(t){l(t.type,Gv(t),t.target,s(t,e.lockRef.current))}),[]);v.useEffect((function(){return Bg.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,jg),document.addEventListener("touchmove",c,jg),document.addEventListener("touchstart",u,jg),function(){Bg=Bg.filter((function(e){return e!==o})),document.removeEventListener("wheel",c,jg),document.removeEventListener("touchmove",c,jg),document.removeEventListener("touchstart",u,jg)}}),[]);var p=e.removeScrollBar,h=e.inert;return v.createElement(v.Fragment,null,h?v.createElement(o,{styles:_le(a)}):null,p?v.createElement(A5,{gapMode:e.gapMode}):null)}function wle(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kle=R5(dj,ble);var gj=v.forwardRef((function(e,t){return v.createElement(uk,So({},e,{ref:t,sideCar:kle}))}));gj.classNames=uk.classNames;var XT="Dialog",[yj,CZe]=$ce(XT),[xle,Pc]=yj(XT),_j=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=v.useRef(null),c=v.useRef(null),[l=!1,u]=Mce({prop:r,defaultProp:a,onChange:o});return B.jsx(xle,{scope:t,triggerRef:s,contentRef:c,contentId:bE(),titleId:bE(),descriptionId:bE(),open:l,onOpenChange:u,onOpenToggle:v.useCallback((()=>u((e=>!e))),[u]),modal:i,children:n})};_j.displayName=XT;var vj="DialogTrigger",bj=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Pc(vj,n),o=hm(t,a.triggerRef);return B.jsx(lu.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":tA(a.open),...r,ref:o,onClick:np(e.onClick,a.onOpenToggle)})}));bj.displayName=vj;var JT="DialogPortal",[Sle,wj]=yj(JT,{forceMount:void 0}),kj=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=Pc(JT,t);return B.jsx(Sle,{scope:t,forceMount:n,children:v.Children.map(r,(e=>B.jsx(fk,{present:n||o.open,children:B.jsx(uj,{asChild:!0,container:a,children:e})})))})};kj.displayName=JT;var Gb="DialogOverlay",xj=v.forwardRef(((e,t)=>{const n=wj(Gb,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Pc(Gb,e.__scopeDialog);return o.modal?B.jsx(fk,{present:r||o.open,children:B.jsx(Cle,{...a,ref:t})}):null}));xj.displayName=Gb;var Ele=oj("DialogOverlay.RemoveScroll"),Cle=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Pc(Gb,n);return B.jsx(gj,{as:Ele,allowPinchZoom:!0,shards:[a.contentRef],children:B.jsx(lu.div,{"data-state":tA(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),om="DialogContent",Sj=v.forwardRef(((e,t)=>{const n=wj(om,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Pc(om,e.__scopeDialog);return B.jsx(fk,{present:r||o.open,children:o.modal?B.jsx(Rle,{...a,ref:t}):B.jsx(Tle,{...a,ref:t})})}));Sj.displayName=om;var Rle=v.forwardRef(((e,t)=>{const n=Pc(om,e.__scopeDialog),r=v.useRef(null),a=hm(t,n.contentRef,r);return v.useEffect((()=>{const e=r.current;if(e)return Kw(e)}),[]),B.jsx(Ej,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:np(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:np(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:np(e.onFocusOutside,(e=>e.preventDefault()))})})),Tle=v.forwardRef(((e,t)=>{const n=Pc(om,e.__scopeDialog),r=v.useRef(!1),a=v.useRef(!1);return B.jsx(Ej,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),Ej=v.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=Pc(om,n),c=v.useRef(null),l=hm(t,c);return lle(),B.jsxs(B.Fragment,{children:[B.jsx(lj,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:B.jsx(sj,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":tA(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),B.jsxs(B.Fragment,{children:[B.jsx(Ale,{titleId:s.titleId}),B.jsx($le,{contentRef:c,descriptionId:s.descriptionId})]})]})})),eA="DialogTitle",Cj=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Pc(eA,n);return B.jsx(lu.h2,{id:a.titleId,...r,ref:t})}));Cj.displayName=eA;var Rj="DialogDescription",Tj=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Pc(Rj,n);return B.jsx(lu.p,{id:a.descriptionId,...r,ref:t})}));Tj.displayName=Rj;var Aj="DialogClose",Ij=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Pc(Aj,n);return B.jsx(lu.button,{type:"button",...r,ref:t,onClick:np(e.onClick,(()=>a.onOpenChange(!1)))})}));function tA(e){return e?"open":"closed"}Ij.displayName=Aj;var $j="DialogTitleWarning",[RZe,Pj]=Ice($j,{contentName:om,titleName:eA,docsSlug:"dialog"}),Ale=({titleId:e})=>{const t=Pj($j),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},Ile="DialogDescriptionWarning",$le=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pj(Ile).contentName}}.`;return v.useEffect((()=>{var r;const a=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},Ple=_j,Ole=bj,zle=kj,Mle=xj,Dle=Sj,Nle=Cj,Lle=Tj,jle=Ij;function Ble(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Oj=ze.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),P1=()=>{const e=ze.useContext(Oj);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};Ble("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}");const Fle=24,Ule=typeof window<"u"?v.useLayoutEffect:v.useEffect;function lM(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function Vle(){return nA(/^Mac/)}function qle(){return nA(/^iPhone/)}function fM(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Wle(){return nA(/^iPad/)||Vle()&&navigator.maxTouchPoints>1}function zj(){return qle()||Wle()}function nA(e){return typeof window<"u"&&null!=window.navigator?e.test(window.navigator.platform):void 0}const EE=typeof document<"u"&&window.visualViewport;function uM(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Mj(e){for(uM(e)&&(e=e.parentElement);e&&!uM(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const Hle=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let CE,Kv=0;function Gle(e={}){let{isDisabled:t}=e;Ule((()=>{if(!t)return Kv++,1===Kv&&zj()&&(CE=Kle()),()=>{Kv--,0===Kv&&(null==CE||CE())}}),[t])}function Kle(){let e,t=0,n=window.pageXOffset,r=window.pageYOffset,a=lM(Qle(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let o=lM(q0(document,"touchstart",(n=>{e=Mj(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),q0(document,"touchmove",(n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,a=e.scrollTop,o=e.scrollHeight-e.clientHeight;0!==o&&((a<=0&&r>t||a>=o&&r<t)&&n.preventDefault(),t=r)}),{passive:!1,capture:!0}),q0(document,"touchend",(e=>{let t=e.target;TC(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),q0(document,"focus",(e=>{let t=e.target;TC(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",EE&&(EE.height<window.innerHeight?requestAnimationFrame((()=>{dM(t)})):EE.addEventListener("resize",(()=>dM(t)),{once:!0}))})))}),!0),q0(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{a(),o(),window.scrollTo(n,r)}}function Qle(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function q0(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function dM(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=Mj(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=r-n)}e=t.parentElement}}function TC(e){return e instanceof HTMLInputElement&&!Hle.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Yle(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Zle(...e){return t=>e.forEach((e=>Yle(e,t)))}function Dj(...e){return v.useCallback(Zle(...e),e)}const Nj=new WeakMap;function _a(e,t,n=!1){if(!(e&&e instanceof HTMLElement))return;let r={};Object.entries(t).forEach((([t,n])=>{t.startsWith("--")?e.style.setProperty(t,n):(r[t]=e.style[t],e.style[t]=n)})),!n&&Nj.set(e,r)}function Xle(e,t){if(!(e&&e instanceof HTMLElement))return;let n=Nj.get(e);n&&(e.style[t]=n[t])}const va=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Qv(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let a=r.match(/^matrix3d\((.+)\)$/);return a?parseFloat(a[1].split(", ")[va(t)?13:12]):(a=r.match(/^matrix\((.+)\)$/),a?parseFloat(a[1].split(", ")[va(t)?5:4]):null)}function Jle(e){return 8*(Math.log(e+1)-2)}function RE(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function efe(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}const pr={DURATION:.5,EASE:[.32,.72,0,1]},Lj=.4,tfe=.25,nfe=100,jj=8,Oh=16,AC=26,TE="vaul-dragging";function Bj(e){const t=ze.useRef(e);return ze.useEffect((()=>{t.current=e})),ze.useMemo((()=>(...e)=>null==t.current?void 0:t.current.call(t,...e)),[])}function rfe({defaultProp:e,onChange:t}){const n=ze.useState(e),[r]=n,a=ze.useRef(r),o=Bj(t);return ze.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}function Fj({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=rfe({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=Bj(n);return[i,ze.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}function afe({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:a,fadeFromIndex:o,onSnapPointChange:i,direction:s="bottom",container:c,snapToSequentialPoint:l}){const[u,f]=Fj({prop:e,defaultProp:null==n?void 0:n[0],onChange:t}),[d,p]=ze.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);ze.useEffect((()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const h=ze.useMemo((()=>u===(null==n?void 0:n[n.length-1])||null),[n,u]),m=ze.useMemo((()=>null==n?void 0:n.findIndex((e=>e===u))),[n,u]),g=n&&n.length>0&&(o||0===o)&&!Number.isNaN(o)&&n[o]===u||!n,y=ze.useMemo((()=>{const e=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var t;return null!=(t=null==n?void 0:n.map((t=>{const n="string"==typeof t;let r=0;if(n&&(r=parseInt(t,10)),va(s)){const a=n?r:d?t*e.height:0;return d?"bottom"===s?e.height-a:-e.height+a:a}const a=n?r:d?t*e.width:0;return d?"right"===s?e.width-a:-e.width+a:a})))?t:[]}),[n,d,c]),v=ze.useMemo((()=>null!==m?null==y?void 0:y[m]:null),[y,m]),b=ze.useCallback((e=>{var t;const c=null!=(t=null==y?void 0:y.findIndex((t=>t===e)))?t:null;i(c),_a(r.current,{transition:`transform ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`,transform:va(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),y&&c!==y.length-1&&c!==o&&c<o?_a(a.current,{transition:`opacity ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`,opacity:"0"}):_a(a.current,{transition:`opacity ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`,opacity:"1"}),f(null==n?void 0:n[Math.max(c,0)])}),[r.current,n,y,o,a,f]);return ze.useEffect((()=>{if(u||e){var t;const r=null!=(t=null==n?void 0:n.findIndex((t=>t===e||t===u)))?t:-1;y&&-1!==r&&"number"==typeof y[r]&&b(y[r])}}),[u,e,n,y,b]),{isLastSnapPoint:h,activeSnapPoint:u,shouldFade:g,getPercentageDragged:function(e,t){if(!n||"number"!=typeof m||!y||void 0===o)return null;const r=m===o-1;if(m>=o&&t)return 0;if(r&&!t)return 1;if(!g&&!r)return null;const a=r?m+1:m-1,i=r?y[a]-y[a-1]:y[a+1]-y[a],s=e/Math.abs(i);return r?1-s:s},setActiveSnapPoint:f,activeSnapPointIndex:m,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:i}){if(void 0===o)return;const c="bottom"===s||"right"===s?(v??0)-e:(v??0)+e,u=0===m,f=e>0;if(m===o-1&&_a(a.current,{transition:`opacity ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`}),!l&&r>2&&!f)return void(i?t():b(y[0]));if(!l&&r>2&&f&&y&&n)return void b(y[n.length-1]);const d=null==y?void 0:y.reduce(((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-c)<Math.abs(e-c)?t:e)),p=va(s)?window.innerHeight:window.innerWidth;if(r>Lj&&Math.abs(e)<.4*p){const e=f?1:-1;if(e>0&&h)return void b(y[n.length-1]);if(u&&e<0&&i&&t(),null===m)return;b(y[m+e])}else b(d)},onDrag:function({draggedDistance:e}){if(null===v)return;const t="bottom"===s||"right"===s?v-e:v+e;("bottom"===s||"right"===s)&&t<y[y.length-1]||("top"===s||"left"===s)&&t>y[y.length-1]||_a(r.current,{transform:va(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:y}}const ofe=()=>()=>{};function ife(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:a}=P1(),o=ze.useRef(null),i=v.useMemo((()=>document.body.style.backgroundColor),[]);function s(){return(window.innerWidth-26)/window.innerWidth}ze.useEffect((()=>{if(t&&n){o.current&&clearTimeout(o.current);const t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;efe(r&&!a?RE(document.body,{background:"black"}):ofe,RE(t,{transformOrigin:va(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${pr.DURATION}s`,transitionTimingFunction:`cubic-bezier(${pr.EASE.join(",")})`}));const n=RE(t,{borderRadius:"8px",overflow:"hidden",...va(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),o.current=window.setTimeout((()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")}),1e3*pr.DURATION)}}}),[t,n,i])}let W0=null;function sfe({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:a,noBodyStyles:o}){const[i,s]=ze.useState((()=>typeof window<"u"?window.location.href:"")),c=ze.useRef(0),l=ze.useCallback((()=>{if(fM()&&null===W0&&e&&!o){W0={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:-c.current+"px",left:-e+"px",right:"0px",height:"auto"}),window.setTimeout((()=>window.requestAnimationFrame((()=>{const e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=-(c.current+e)+"px")}))),300)}}),[e]),u=ze.useCallback((()=>{if(fM()&&null!==W0&&!o){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,W0),window.requestAnimationFrame((()=>{a&&i!==window.location.href?s(window.location.href):window.scrollTo(t,e)})),W0=null}}),[i]);return ze.useEffect((()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),ze.useEffect((()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout((()=>{u()}),500)):u())}),[e,r,i,t,n,l,u]),{restorePositionSetting:u}}function Uj({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:a,snapPoints:o,shouldScaleBackground:i=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=tfe,scrollLockTimeout:l=100,dismissible:u=!0,handleOnly:f=!1,fadeFromIndex:d=o&&o.length-1,activeSnapPoint:p,setActiveSnapPoint:h,fixed:m,modal:g=!0,onClose:y,nested:v,noBodyStyles:b,direction:_="bottom",defaultOpen:w=!1,disablePreventScroll:k=!0,snapToSequentialPoint:x=!1,preventScrollRestoration:S=!1,repositionInputs:E=!0,onAnimationEnd:A,container:C,autoFocus:z=!1}){var I,T;const[R=!1,j]=Fj({defaultProp:w,prop:e,onChange:e=>{null==t||t(e),!e&&!v&&ce(),setTimeout((()=>{null==A||A(e)}),1e3*pr.DURATION),e&&!g&&typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),e||(document.body.style.pointerEvents="auto")}}),[P,O]=ze.useState(!1),[N,M]=ze.useState(!1),[D,B]=ze.useState(!1),L=ze.useRef(null),q=ze.useRef(null),V=ze.useRef(null),F=ze.useRef(null),U=ze.useRef(null),$=ze.useRef(!1),W=ze.useRef(null),H=ze.useRef(0),G=ze.useRef(!1),Q=ze.useRef(0),K=ze.useRef(null),Y=ze.useRef((null==(I=K.current)?void 0:I.getBoundingClientRect().height)||0),Z=ze.useRef((null==(T=K.current)?void 0:T.getBoundingClientRect().width)||0),X=ze.useRef(0),J=ze.useCallback((e=>{o&&e===ae.length-1&&(q.current=new Date)}),[]),{activeSnapPoint:ee,activeSnapPointIndex:te,setActiveSnapPoint:ne,onRelease:re,snapPointsOffset:ae,onDrag:oe,shouldFade:ie,getPercentageDragged:se}=afe({snapPoints:o,activeSnapPointProp:p,setActiveSnapPointProp:h,drawerRef:K,fadeFromIndex:d,overlayRef:L,onSnapPointChange:J,direction:_,container:C,snapToSequentialPoint:x});Gle({isDisabled:!R||N||!g||D||!P||!E||!k});const{restorePositionSetting:ce}=sfe({isOpen:R,modal:g,nested:v,hasBeenOpened:P,preventScrollRestoration:S,noBodyStyles:b});function le(){return(window.innerWidth-26)/window.innerWidth}function ue(e,t){var n,r;let a=e;const o=null==(n=window.getSelection())?void 0:n.toString(),i=K.current?Qv(K.current,_):null,s=new Date;if(a.hasAttribute("data-vaul-no-drag")||a.closest("[data-vaul-no-drag]"))return!1;if("right"===_||"left"===_)return!0;if(q.current&&s.getTime()-q.current.getTime()<500)return!1;if(null!==i&&("bottom"===_?i>0:i<0))return!0;if(o&&o.length>0)return!1;if(s.getTime()-(null==(r=U.current)?void 0:r.getTime())<l&&0===i||t)return U.current=s,!1;for(;a;){if(a.scrollHeight>a.clientHeight){if(0!==a.scrollTop)return U.current=new Date,!1;if("dialog"===a.getAttribute("role"))return!0}a=a.parentNode}return!0}function fe(e){!N||!K.current||(K.current.classList.remove(TE),$.current=!1,M(!1),F.current=new Date),null==y||y(),e||j(!1),setTimeout((()=>{o&&ne(o[0])}),1e3*pr.DURATION)}function de(){if(!K.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=Qv(K.current,_);_a(K.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`}),_a(L.current,{transition:`opacity ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`,opacity:"1"}),i&&t&&t>0&&R&&_a(e,{borderRadius:"8px",overflow:"hidden",...va(_)?{transform:`scale(${le()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${le()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${pr.DURATION}s`,transitionTimingFunction:`cubic-bezier(${pr.EASE.join(",")})`},!0)}return ze.useEffect((()=>{var e;function t(){if(!K.current||!E)return;if(TC(document.activeElement)||G.current){var e;const t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight;let r=n-t;const a=K.current.getBoundingClientRect().height||0,i=a>.8*n;X.current||(X.current=a);const s=K.current.getBoundingClientRect().top;if(Math.abs(Q.current-r)>60&&(G.current=!G.current),o&&o.length>0&&ae&&te){r+=ae[te]||0}if(Q.current=r,a>t||G.current){const e=K.current.getBoundingClientRect().height;let n=e;e>t&&(n=t-(i?s:26)),K.current.style.height=m?e-Math.max(r,0)+"px":`${Math.max(n,t-s)}px`}else K.current.style.height=`${X.current}px`;o&&o.length>0&&!G.current?K.current.style.bottom="0px":K.current.style.bottom=`${Math.max(r,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}}),[te,o,ae]),ze.useEffect((()=>(R&&(_a(document.documentElement,{scrollBehavior:"auto"}),q.current=new Date),()=>{Xle(document.documentElement,"scrollBehavior")})),[R]),ze.createElement(Ple,{defaultOpen:w,onOpenChange:e=>{!u&&!e||(e?O(!0):fe(!0),j(e))},open:R},ze.createElement(Oj.Provider,{value:{activeSnapPoint:ee,snapPoints:o,setActiveSnapPoint:ne,drawerRef:K,overlayRef:L,onOpenChange:t,onPress:function(e){var t,n;!u&&!o||K.current&&!K.current.contains(e.target)||(Y.current=(null==(t=K.current)?void 0:t.getBoundingClientRect().height)||0,Z.current=(null==(n=K.current)?void 0:n.getBoundingClientRect().width)||0,M(!0),V.current=new Date,zj()&&window.addEventListener("touchend",(()=>$.current=!1),{once:!0}),e.target.setPointerCapture(e.pointerId),H.current=va(_)?e.pageY:e.pageX)},onRelease:function(e){if(!N||!K.current)return;K.current.classList.remove(TE),$.current=!1,M(!1),F.current=new Date;const t=Qv(K.current,_);if(!ue(e.target,!1)||!t||Number.isNaN(t)||null===V.current)return;const n=F.current.getTime()-V.current.getTime(),r=H.current-(va(_)?e.pageY:e.pageX),i=Math.abs(r)/n;if(i>.05&&(B(!0),setTimeout((()=>{B(!1)}),200)),o)return re({draggedDistance:r*("bottom"===_||"right"===_?1:-1),closeDrawer:fe,velocity:i,dismissible:u}),void(null==a||a(e,!0));if("bottom"===_||"right"===_?r>0:r<0)return de(),void(null==a||a(e,!0));if(i>Lj)return fe(),void(null==a||a(e,!1));var s;const l=Math.min(null!=(s=K.current.getBoundingClientRect().height)?s:0,window.innerHeight);var f;const d=Math.min(null!=(f=K.current.getBoundingClientRect().width)?f:0,window.innerWidth),p="left"===_||"right"===_;if(Math.abs(t)>=(p?d:l)*c)return fe(),void(null==a||a(e,!1));null==a||a(e,!0),de()},onDrag:function(e){if(K.current&&N){const t="bottom"===_||"right"===_?1:-1,n=(H.current-(va(_)?e.pageY:e.pageX))*t,a=n>0,s=o&&!u&&!a;if(s&&0===te)return;const c=Math.abs(n),l=document.querySelector("[data-vaul-drawer-wrapper]");let f=c/("bottom"===_||"top"===_?Y.current:Z.current);const p=se(c,a);if(null!==p&&(f=p),s&&f>=1||!$.current&&!ue(e.target,a))return;if(K.current.classList.add(TE),$.current=!0,_a(K.current,{transition:"none"}),_a(L.current,{transition:"none"}),o&&oe({draggedDistance:n}),a&&!o){const e=Jle(n),r=Math.min(-1*e,0)*t;return void _a(K.current,{transform:va(_)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`})}const h=1-f;if((ie||d&&te===d-1)&&(null==r||r(e,f),_a(L.current,{opacity:`${h}`,transition:"none"},!0)),l&&L.current&&i){const e=Math.min(le()+f*(1-le()),1),t=8-8*f,n=Math.max(0,14-14*f);_a(l,{borderRadius:`${t}px`,transform:va(_)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:"none"},!0)}if(!o){const e=c*t;_a(K.current,{transform:va(_)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:u,handleOnly:f,isOpen:R,isDragging:N,shouldFade:ie,closeDrawer:fe,onNestedDrag:function(e,t){if(t<0)return;const n=(window.innerWidth-16)/window.innerWidth,r=n+t*(1-n),a=16*t-16;_a(K.current,{transform:va(_)?`scale(${r}) translate3d(0, ${a}px, 0)`:`scale(${r}) translate3d(${a}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){const t=e?(window.innerWidth-16)/window.innerWidth:1,n=e?-16:0;W.current&&window.clearTimeout(W.current),_a(K.current,{transition:`transform ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`,transform:`scale(${t}) translate3d(0, ${n}px, 0)`}),!e&&K.current&&(W.current=setTimeout((()=>{const e=Qv(K.current,_);_a(K.current,{transition:"none",transform:va(_)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}),500))},onNestedRelease:function(e,t){const n=va(_)?window.innerHeight:window.innerWidth,r=t?(n-16)/n:1,a=t?-16:0;t&&_a(K.current,{transition:`transform ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`,transform:va(_)?`scale(${r}) translate3d(0, ${a}px, 0)`:`scale(${r}) translate3d(${a}px, 0, 0)`})},keyboardIsOpen:G,modal:g,snapPointsOffset:ae,direction:_,shouldScaleBackground:i,setBackgroundColorOnScale:s,noBodyStyles:b,container:C,autoFocus:z}},n))}const Vj=ze.forwardRef((function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:a,shouldFade:o,isOpen:i,modal:s}=P1(),c=Dj(t,n),l=r&&r.length>0;return s?ze.createElement(Mle,{onMouseUp:a,ref:c,"data-vaul-overlay":"","data-vaul-snap-points":i&&l?"true":"false","data-vaul-snap-points-overlay":i&&o?"true":"false",...e}):(typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),null)}));Vj.displayName="Drawer.Overlay";const qj=ze.forwardRef((function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},a){const{drawerRef:o,onPress:i,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,modal:f,isOpen:d,direction:p,snapPoints:h,container:m,handleOnly:g,autoFocus:y}=P1(),[v,b]=ze.useState(!1),_=Dj(a,o),w=ze.useRef(null),k=ze.useRef(null),x=ze.useRef(!1),S=h&&h.length>0;ife();function E(e){w.current=null,x.current=!1,s(e)}return ze.useEffect((()=>{S&&window.requestAnimationFrame((()=>{b(!0)}))}),[]),ze.createElement(Dle,{"data-vaul-drawer-direction":p,"data-vaul-drawer":"","data-vaul-delayed-snap-points":v?"true":"false","data-vaul-snap-points":d&&S?"true":"false","data-vaul-custom-container":m?"true":"false",...r,ref:_,style:u&&u.length>0?{"--snap-point-height":`${u[0]}px`,...t}:t,onPointerDown:e=>{g||(null==r.onPointerDown||r.onPointerDown.call(r,e),w.current={x:e.pageX,y:e.pageY},i(e))},onOpenAutoFocus:e=>{null==n||n(e),y||e.preventDefault()},onPointerDownOutside:t=>{null==e||e(t),f&&!t.defaultPrevented?l.current&&(l.current=!1):t.preventDefault()},onFocusOutside:e=>{f||e.preventDefault()},onPointerMove:e=>{if(k.current=e,g||(null==r.onPointerMove||r.onPointerMove.call(r,e),!w.current))return;const t=e.pageY-w.current.y,n=e.pageX-w.current.x,a="touch"===e.pointerType?10:2;((e,t,n=0)=>{if(x.current)return!0;const r=Math.abs(e.y),a=Math.abs(e.x),o=a>r,i=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*i<0)&&a>=0&&a<=n)return o}else if(!(e.y*i<0)&&r>=0&&r<=n)return!o;return x.current=!0,!0})({x:n,y:t},p,a)?c(e):(Math.abs(n)>a||Math.abs(t)>a)&&(w.current=null)},onPointerUp:e=>{null==r.onPointerUp||r.onPointerUp.call(r,e),w.current=null,x.current=!1,s(e)},onPointerOut:e=>{null==r.onPointerOut||r.onPointerOut.call(r,e),E(k.current)},onContextMenu:e=>{null==r.onContextMenu||r.onContextMenu.call(r,e),E(k.current)}})}));qj.displayName="Drawer.Content";const cfe=250,lfe=120,Wj=ze.forwardRef((function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:a,isDragging:o,snapPoints:i,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:f,onPress:d,onDrag:p}=P1(),h=ze.useRef(null),m=ze.useRef(!1);function g(){window.clearTimeout(h.current),m.current=!1}return ze.createElement("div",{onClick:function(){m.current?g():window.setTimeout((()=>{!function(){if(o||e||m.current)return void g();if(g(),(!i||0===i.length)&&l)return void a();if(s===i[i.length-1]&&l)return void a();const t=i.findIndex((e=>e===s));if(-1===t)return;const n=i[t+1];c(n)}()}),120)},onPointerCancel:g,onPointerDown:e=>{u&&d(e),h.current=window.setTimeout((()=>{m.current=!0}),250)},onPointerMove:e=>{u&&p(e)},ref:r,"data-vaul-drawer-visible":f?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},ze.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))}));function ffe({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:a,onNestedRelease:o}=P1();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return ze.createElement(Uj,{nested:!0,onClose:()=>{a(!1)},onDrag:(t,n)=>{r(t,n),null==e||e(t,n)},onOpenChange:e=>{e&&a(e)},onRelease:o,...n})}function ufe(e){const t=P1(),{container:n=t.container,...r}=e;return ze.createElement(zle,{container:n,...r})}Wj.displayName="Drawer.Handle";const _p={Root:Uj,NestedRoot:ffe,Content:qj,Overlay:Vj,Trigger:Ole,Portal:ufe,Handle:Wj,Close:jle,Title:Nle,Description:Lle},dfe=_p.Portal,Hj=v.forwardRef((({className:e,...t},n)=>B.jsx(_p.Overlay,{ref:n,className:xe("fixed inset-0 z-50 bg-black/5",e),...t})));Hj.displayName=_p.Overlay.displayName;const pfe=v.forwardRef((({className:e,children:t,direction:n="bottom",...r},a)=>B.jsxs(dfe,{children:[B.jsx(Hj,{}),B.jsxs(_p.Content,{ref:a,className:xe("fixed z-50 border bg-background shadow-lg","bottom"===n&&"inset-x-0 bottom-0 mt-24 flex h-auto flex-col rounded-t-sm","top"===n&&"inset-x-0 top-0 mb-24 flex h-auto flex-col rounded-b-sm","left"===n&&"inset-y-0 left-0 flex h-full flex-col","right"===n&&"inset-y-0 right-0 flex h-full w-[346px] flex-col sm:w-[435px]",e),...r,children:["bottom"===n&&B.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]})));pfe.displayName="DrawerContent";const hfe=v.forwardRef((({className:e,...t},n)=>B.jsx(_p.Title,{ref:n,className:xe("text-lg font-semibold leading-none tracking-tight",e),...t})));hfe.displayName=_p.Title.displayName;const mfe=v.forwardRef((({className:e,...t},n)=>B.jsx(_p.Description,{ref:n,className:xe("text-sm text-muted-foreground",e),...t})));function rA(e){const t=e+"CollectionProvider",[n,r]=Zo(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e+"CollectionSlot",s=e+"CollectionItemSlot",c="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=ze.useRef(null),o=ze.useRef(new Map).current;return ze.createElement(a,{scope:t,itemMap:o,collectionRef:r},n)},Slot:ze.forwardRef(((e,t)=>{const{scope:n,children:r}=e,a=un(t,o(i,n).collectionRef);return ze.createElement(em,{ref:a},r)})),ItemSlot:ze.forwardRef(((e,t)=>{const{scope:n,children:r,...a}=e,i=ze.useRef(null),l=un(t,i),u=o(s,n);return ze.useEffect((()=>(u.itemMap.set(i,{ref:i,...a}),()=>{u.itemMap.delete(i)}))),ze.createElement(em,{[c]:"",ref:l},r)}))},function(t){const n=o(e+"CollectionConsumer",t);return ze.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}mfe.displayName=_p.Description.displayName;const gfe=v.createContext(void 0);function aA(e){const t=v.useContext(gfe);return e||t||"ltr"}const yfe=["top","right","bottom","left"],sp=Math.min,Hi=Math.max,Kb=Math.round,Yv=Math.floor,cp=e=>({x:e,y:e}),_fe={left:"right",right:"left",bottom:"top",top:"bottom"},vfe={start:"end",end:"start"};function IC(e,t,n){return Hi(e,sp(t,n))}function ou(e,t){return"function"==typeof e?e(t):e}function iu(e){return e.split("-")[0]}function O1(e){return e.split("-")[1]}function oA(e){return"x"===e?"y":"x"}function iA(e){return"y"===e?"height":"width"}function lp(e){return["top","bottom"].includes(iu(e))?"y":"x"}function sA(e){return oA(lp(e))}function bfe(e,t,n){void 0===n&&(n=!1);const r=O1(e),a=sA(e),o=iA(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Qb(i)),[i,Qb(i)]}function wfe(e){const t=Qb(e);return[$C(e),t,$C(t)]}function $C(e){return e.replace(/start|end/g,(e=>vfe[e]))}function kfe(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}function xfe(e,t,n,r){const a=O1(e);let o=kfe(iu(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map($C)))),o}function Qb(e){return e.replace(/left|right|bottom|top/g,(e=>_fe[e]))}function Sfe(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gj(e){return"number"!=typeof e?Sfe(e):{top:e,right:e,bottom:e,left:e}}function Yb(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function pM(e,t,n){let{reference:r,floating:a}=e;const o=lp(t),i=sA(t),s=iA(i),c=iu(t),l="y"===o,u=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,d=r[s]/2-a[s]/2;let p;switch(c){case"top":p={x:u,y:r.y-a.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-a.width,y:f};break;default:p={x:r.x,y:r.y}}switch(O1(t)){case"start":p[i]-=d*(n&&l?-1:1);break;case"end":p[i]+=d*(n&&l?-1:1)}return p}const Efe=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:f}=pM(l,r,c),d=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:o,fn:m}=s[n],{x:g,y:y,data:v,reset:b}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:a,middlewareData:p,rects:l,platform:i,elements:{reference:e,floating:t}});u=g??u,f=y??f,p={...p,[o]:{...p[o],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(l=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:u,y:f}=pM(l,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:a,middlewareData:p}};async function Wy(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=ou(t,e),h=Gj(p),m=s[d?"floating"===f?"reference":"floating":f],g=Yb(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),y="floating"===f?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await(null==o.isElement?void 0:o.isElement(v))&&await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},_=Yb(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:c}):y);return{top:(g.top-_.top+h.top)/b.y,bottom:(_.bottom-g.bottom+h.bottom)/b.y,left:(g.left-_.left+h.left)/b.x,right:(_.right-g.right+h.right)/b.x}}const Cfe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ou(e,t)||{};if(null==l)return{};const f=Gj(u),d={x:n,y:r},p=sA(a),h=iA(p),m=await i.getDimensions(l),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",_=o.reference[h]+o.reference[p]-d[p]-o.floating[h],w=d[p]-o.reference[p],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let x=k?k[b]:0;(!x||!await(null==i.isElement?void 0:i.isElement(k)))&&(x=s.floating[b]||o.floating[h]);const S=_/2-w/2,E=x/2-m[h]/2-1,A=sp(f[y],E),C=sp(f[v],E),z=A,I=x-m[h]-C,T=x/2-m[h]/2+S,R=IC(z,T,I),j=!c.arrow&&null!=O1(a)&&T!==R&&o.reference[h]/2-(T<z?A:C)-m[h]/2<0,P=j?T<z?T-z:T-I:0;return{[p]:d[p]+P,data:{[p]:R,centerOffset:T-R-P,...j&&{alignmentOffset:P}},reset:j}}}),Rfe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=ou(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=iu(a),v=lp(s),b=iu(s)===s,_=await(null==c.isRTL?void 0:c.isRTL(l.floating)),w=d||(b||!m?[Qb(s)]:wfe(s)),k="none"!==h;!d&&k&&w.push(...xfe(s,m,h,_));const x=[s,...w],S=await Wy(t,g),E=[];let A=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[y]),f){const e=bfe(a,i,_);E.push(S[e[0]],S[e[1]])}if(A=[...A,{placement:a,overflows:E}],!E.every((e=>e<=0))){var C,z;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(z=A.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:z.placement;if(!n)switch(p){case"bestFit":{var I;const e=null==(I=A.filter((e=>{if(k){const t=lp(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}};function hM(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mM(e){return yfe.some((t=>e[t]>=0))}const Tfe=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=ou(e,t);switch(r){case"referenceHidden":{const e=hM(await Wy(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:mM(e)}}}case"escaped":{const e=hM(await Wy(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:mM(e)}}}default:return{}}}}};async function Afe(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=iu(n),s=O1(n),c="y"===lp(n),l=["left","top"].includes(i)?-1:1,u=o&&c?-1:1,f=ou(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}const Ife=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,c=await Afe(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+c.x,y:o+c.y,data:{...c,placement:i}}}}},$fe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=ou(e,t),l={x:n,y:r},u=await Wy(t,c),f=lp(iu(a)),d=oA(f);let p=l[d],h=l[f];if(o){const e="y"===d?"bottom":"right";p=IC(p+u["y"===d?"top":"left"],p,p-u[e])}if(i){const e="y"===f?"bottom":"right";h=IC(h+u["y"===f?"top":"left"],h,h-u[e])}const m=s.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[d]:o,[f]:i}}}}}},Pfe=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ou(e,t),u={x:n,y:r},f=lp(a),d=oA(f);let p=u[d],h=u[f];const m=ou(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+g.mainAxis,n=o.reference[d]+o.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var y,v;const e="y"===d?"width":"height",t=["top","left"].includes(iu(a)),n=o.reference[f]-o.floating[e]+(t&&(null==(y=i.offset)?void 0:y[f])||0)+(t?0:g.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[f])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[d]:p,[f]:h}}}},Ofe=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:c=()=>{},...l}=ou(e,t),u=await Wy(t,l),f=iu(a),d=O1(a),p="y"===lp(a),{width:h,height:m}=o.floating;let g,y;"top"===f||"bottom"===f?(g=f,y=d===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=f,g="end"===d?"top":"bottom");const v=m-u.top-u.bottom,b=h-u.left-u.right,_=sp(m-u[g],v),w=sp(h-u[y],b),k=!t.middlewareData.shift;let x=_,S=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(x=v),k&&!d){const e=Hi(u.left,0),t=Hi(u.right,0),n=Hi(u.top,0),r=Hi(u.bottom,0);p?S=h-2*(0!==e||0!==t?e+t:Hi(u.left,u.right)):x=m-2*(0!==n||0!==r?n+r:Hi(u.top,u.bottom))}await c({...t,availableWidth:S,availableHeight:x});const E=await i.getDimensions(s.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function dk(){return typeof window<"u"}function fp(e){return Kj(e)?(e.nodeName||"").toLowerCase():"#document"}function Gi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function fu(e){var t;return null==(t=(Kj(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Kj(e){return!!dk()&&(e instanceof Node||e instanceof Gi(e).Node)}function $l(e){return!!dk()&&(e instanceof Element||e instanceof Gi(e).Element)}function Pl(e){return!!dk()&&(e instanceof HTMLElement||e instanceof Gi(e).HTMLElement)}function gM(e){return!(!dk()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof Gi(e).ShadowRoot)}function z_(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Ps(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function zfe(e){return["table","td","th"].includes(fp(e))}function Mfe(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function cA(e){const t=lA(),n=$l(e)?Ps(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Qj(e){let t=g1(e);for(;Pl(t)&&!pk(t);){if(cA(t))return t;if(Mfe(t))return null;t=g1(t)}return null}function lA(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function pk(e){return["html","body","#document"].includes(fp(e))}function Ps(e){return Gi(e).getComputedStyle(e)}function hk(e){return $l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function g1(e){if("html"===fp(e))return e;const t=e.assignedSlot||e.parentNode||gM(e)&&e.host||fu(e);return gM(t)?t.host:t}function Yj(e){const t=g1(e);return pk(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pl(t)&&z_(t)?t:Yj(t)}function Hy(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=Yj(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=Gi(a);if(o){const e=Dfe(i);return t.concat(i,i.visualViewport||[],z_(a)?a:[],e&&n?Hy(e):[])}return t.concat(a,Hy(a,[],n))}function Dfe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zj(e){const t=Ps(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Pl(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=Kb(n)!==o||Kb(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function fA(e){return $l(e)?e:e.contextElement}function t1(e){const t=fA(e);if(!Pl(t))return cp(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=Zj(t);let i=(o?Kb(n.width):n.width)/r,s=(o?Kb(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Nfe=cp(0);function Xj(e){const t=Gi(e);return lA()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Nfe}function Lfe(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Gi(e))&&t}function im(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=fA(e);let i=cp(1);t&&(r?$l(r)&&(i=t1(r)):i=t1(e));const s=Lfe(o,n,r)?Xj(o):cp(0);let c=(a.left+s.x)/i.x,l=(a.top+s.y)/i.y,u=a.width/i.x,f=a.height/i.y;if(o){const e=Gi(o),t=r&&$l(r)?Gi(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=t1(n),t=n.getBoundingClientRect(),r=Ps(n),a=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,f*=e.y,c+=a,l+=o,n=Gi(n).frameElement}}return Yb({width:u,height:f,x:c,y:l})}const jfe=[":popover-open",":modal"];function Jj(e){let t=!1,n=0,r=0;if(jfe.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch{}}(n)})),t){const t=Qj(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function Bfe(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=fu(r),[i]=t?Jj(t.floating):[!1];if(r===o||i)return n;let s={scrollLeft:0,scrollTop:0},c=cp(1);const l=cp(0),u=Pl(r);if((u||!u&&"fixed"!==a)&&(("body"!==fp(r)||z_(o))&&(s=hk(r)),Pl(r))){const e=im(r);c=t1(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+l.x,y:n.y*c.y-s.scrollTop*c.y+l.y}}function Ffe(e){return Array.from(e.getClientRects())}function eB(e){return im(fu(e)).left+hk(e).scrollLeft}function Ufe(e){const t=fu(e),n=hk(e),r=e.ownerDocument.body,a=Hi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Hi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+eB(e);const s=-n.scrollTop;return"rtl"===Ps(r).direction&&(i+=Hi(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}function Vfe(e,t){const n=Gi(e),r=fu(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,c=0;if(a){o=a.width,i=a.height;const e=lA();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,c=a.offsetTop)}return{width:o,height:i,x:s,y:c}}function qfe(e,t){const n=im(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=Pl(e)?t1(e):cp(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}function yM(e,t,n){let r;if("viewport"===t)r=Vfe(e,n);else if("document"===t)r=Ufe(fu(e));else if($l(t))r=qfe(t,n);else{const n=Xj(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Yb(r)}function tB(e,t){const n=g1(e);return!(n===t||!$l(n)||pk(n))&&("fixed"===Ps(n).position||tB(n,t))}function Wfe(e,t){const n=t.get(e);if(n)return n;let r=Hy(e,[],!1).filter((e=>$l(e)&&"body"!==fp(e))),a=null;const o="fixed"===Ps(e).position;let i=o?g1(e):e;for(;$l(i)&&!pk(i);){const t=Ps(i),n=cA(i);!n&&"fixed"===t.position&&(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||z_(i)&&!n&&tB(e,i))?r=r.filter((e=>e!==i)):a=t,i=g1(i)}return t.set(e,r),r}function Hfe(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?Wfe(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=yM(t,n,a);return e.top=Hi(r.top,e.top),e.right=sp(r.right,e.right),e.bottom=sp(r.bottom,e.bottom),e.left=Hi(r.left,e.left),e}),yM(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Gfe(e){const{width:t,height:n}=Zj(e);return{width:t,height:n}}function Kfe(e,t,n,r){const a=Pl(t),o=fu(t),i="fixed"===n,s=im(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=cp(0);if(a||!a&&!i)if(("body"!==fp(t)||z_(o))&&(c=hk(t)),a){const e=im(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=eB(o));let u=s.left+c.scrollLeft-l.x,f=s.top+c.scrollTop-l.y;const[d,p,h]=Jj(r);return d&&(u+=p,f+=h,a&&(u+=t.clientLeft,f+=t.clientTop)),{x:u,y:f,width:s.width,height:s.height}}function _M(e,t){return Pl(e)&&"fixed"!==Ps(e).position?t?t(e):e.offsetParent:null}function nB(e,t){const n=Gi(e);if(!Pl(e))return n;let r=_M(e,t);for(;r&&zfe(r)&&"static"===Ps(r).position;)r=_M(r,t);return r&&("html"===fp(r)||"body"===fp(r)&&"static"===Ps(r).position&&!cA(r))?n:r||Qj(e)||n}const Qfe=async function(e){const t=this.getOffsetParent||nB,n=this.getDimensions;return{reference:Kfe(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function Yfe(e){return"rtl"===Ps(e).direction}const Zfe={convertOffsetParentRelativeRectToViewportRelativeRect:Bfe,getDocumentElement:fu,getClippingRect:Hfe,getOffsetParent:nB,getElementRects:Qfe,getClientRects:Ffe,getDimensions:Gfe,getScale:t1,isElement:$l,isRTL:Yfe};function Xfe(e,t){let n,r=null;const a=fu(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),o();const{left:l,top:u,width:f,height:d}=e.getBoundingClientRect();if(s||t(),!f||!d)return;const p={rootMargin:-Yv(u)+"px "+-Yv(a.clientWidth-(l+f))+"px "+-Yv(a.clientHeight-(u+d))+"px "+-Yv(l)+"px",threshold:Hi(0,sp(1,c))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...p,root:a.ownerDocument})}catch{r=new IntersectionObserver(m,p)}r.observe(e)}(!0),o}function Jfe(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=fA(e),u=a||o?[...l?Hy(l):[],...Hy(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const f=l&&s?Xfe(l,n):null;let d=-1,p=null;i&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),l&&!c&&p.observe(l),p.observe(t));let h,m=c?im(e):null;return c&&function t(){const r=im(e);m&&(r.x!==m.x||r.y!==m.y||r.width!==m.width||r.height!==m.height)&&n(),m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(h)}}const eue=$fe,tue=Rfe,nue=Ofe,rue=Tfe,vM=Cfe,aue=Pfe,oue=(e,t,n)=>{const r=new Map,a={platform:Zfe,...n},o={...a.platform,_c:r};return Efe(e,t,{...a,platform:o})};var _b=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Zb(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Zb(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(!("_owner"===n&&e.$$typeof||Zb(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function rB(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bM(e,t){const n=rB(e);return Math.round(t*n)/n}function AE(e){const t=v.useRef(e);return _b((()=>{t.current=e})),t}function iue(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,f]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=v.useState(r);Zb(d,r)||p(r);const[h,m]=v.useState(null),[g,y]=v.useState(null),b=v.useCallback((e=>{e!==x.current&&(x.current=e,m(e))}),[]),_=v.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),w=o||h,k=i||g,x=v.useRef(null),S=v.useRef(null),E=v.useRef(u),A=null!=c,C=AE(c),z=AE(a),I=AE(l),T=v.useCallback((()=>{if(!x.current||!S.current)return;const e={placement:t,strategy:n,middleware:d};z.current&&(e.platform=z.current),oue(x.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==I.current};R.current&&!Zb(E.current,t)&&(E.current=t,Ll.flushSync((()=>{f(t)})))}))}),[d,t,n,z,I]);_b((()=>{!1===l&&E.current.isPositioned&&(E.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[l]);const R=v.useRef(!1);_b((()=>(R.current=!0,()=>{R.current=!1})),[]),_b((()=>{if(w&&(x.current=w),k&&(S.current=k),w&&k){if(C.current)return C.current(w,k,T);T()}}),[w,k,T,C,A]);const j=v.useMemo((()=>({reference:x,floating:S,setReference:b,setFloating:_})),[b,_]),P=v.useMemo((()=>({reference:w,floating:k})),[w,k]),O=v.useMemo((()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=bM(P.floating,u.x),r=bM(P.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...rB(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,P.floating,u.x,u.y]);return v.useMemo((()=>({...u,update:T,refs:j,elements:P,floatingStyles:O})),[u,T,j,P,O])}const sue=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?vM({element:n.current,padding:r}).fn(t):{}:n?vM({element:n,padding:r}).fn(t):{}}}),cue=(e,t)=>({...Ife(e),options:[e,t]}),lue=(e,t)=>({...eue(e),options:[e,t]}),fue=(e,t)=>({...aue(e),options:[e,t]}),uue=(e,t)=>({...tue(e),options:[e,t]}),due=(e,t)=>({...nue(e),options:[e,t]}),pue=(e,t)=>({...rue(e),options:[e,t]}),hue=(e,t)=>({...sue(e),options:[e,t]}),aB="Popper",[oB,z1]=Zo(aB),[mue,iB]=oB(aB),gue=e=>{const{__scopePopper:t,children:n}=e,[r,a]=v.useState(null);return v.createElement(mue,{scope:t,anchor:r,onAnchorChange:a},n)},yue="PopperAnchor",_ue=v.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=iB(yue,n),i=v.useRef(null),s=un(t,i);return v.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:v.createElement(wt.div,Ie({},a,{ref:s}))})),sB="PopperContent",[vue,TZe]=oB(sB),bue=v.forwardRef(((e,t)=>{var n,r,a,o,i,s,c,l;const{__scopePopper:u,side:f="bottom",sideOffset:d=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:_="partial",hideWhenDetached:w=!1,updatePositionStrategy:k="optimized",onPlaced:x,...S}=e,E=iB(sB,u),[A,C]=v.useState(null),z=un(t,(e=>C(e))),[I,T]=v.useState(null),R=ck(I),j=null!==(n=null==R?void 0:R.width)&&void 0!==n?n:0,P=null!==(r=null==R?void 0:R.height)&&void 0!==r?r:0,O=f+("center"!==p?"-"+p:""),N="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},M=Array.isArray(y)?y:[y],D=M.length>0,B={padding:N,boundary:M.filter(wue),altBoundary:D},{refs:L,floatingStyles:q,placement:V,isPositioned:F,middlewareData:U}=iue({strategy:"fixed",placement:O,whileElementsMounted:(...e)=>Jfe(...e,{animationFrame:"always"===k}),elements:{reference:E.anchor},middleware:[cue({mainAxis:d+P,alignmentAxis:h}),g&&lue({mainAxis:!0,crossAxis:!1,limiter:"partial"===_?fue():void 0,...B}),g&&uue({...B}),due({...B,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),I&&hue({element:I,padding:m}),kue({arrowWidth:j,arrowHeight:P}),w&&pue({strategy:"referenceHidden",...B})]}),[$,W]=cB(V),H=Ac(x);Ro((()=>{F&&(null==H||H())}),[F,H]);const G=null===(a=U.arrow)||void 0===a?void 0:a.x,Q=null===(o=U.arrow)||void 0===o?void 0:o.y,K=0!==(null===(i=U.arrow)||void 0===i?void 0:i.centerOffset),[Y,Z]=v.useState();return Ro((()=>{A&&Z(window.getComputedStyle(A).zIndex)}),[A]),v.createElement("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:F?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[null===(s=U.transformOrigin)||void 0===s?void 0:s.x,null===(c=U.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},v.createElement(vue,{scope:u,placedSide:$,onArrowChange:T,arrowX:G,arrowY:Q,shouldHideArrow:K},v.createElement(wt.div,Ie({"data-side":$,"data-align":W},S,{ref:z,style:{...S.style,animation:F?void 0:"none",opacity:null!==(l=U.hide)&&void 0!==l&&l.referenceHidden?0:void 0}}))))}));function wue(e){return null!==e}const kue=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a,o,i;const{placement:s,rects:c,middlewareData:l}=t,u=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),f=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[p,h]=cB(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(r=null===(a=l.arrow)||void 0===a?void 0:a.x)&&void 0!==r?r:0)+f/2,y=(null!==(o=null===(i=l.arrow)||void 0===i?void 0:i.y)&&void 0!==o?o:0)+d/2;let v="",b="";return"bottom"===p?(v=u?m:`${g}px`,b=-d+"px"):"top"===p?(v=u?m:`${g}px`,b=`${c.floating.height+d}px`):"right"===p?(v=-d+"px",b=u?m:`${y}px`):"left"===p&&(v=`${c.floating.width+d}px`,b=u?m:`${y}px`),{data:{x:v,y:b}}}});function cB(e){const[t,n="center"]=e.split("-");return[t,n]}const lB=gue,uA=_ue,dA=bue,IE="rovingFocusGroup.onEntryFocus",xue={bubbles:!1,cancelable:!0},pA="RovingFocusGroup",[PC,fB,Sue]=rA(pA),[Eue,M1]=Zo(pA,[Sue]),[Cue,Rue]=Eue(pA),Tue=v.forwardRef(((e,t)=>v.createElement(PC.Provider,{scope:e.__scopeRovingFocusGroup},v.createElement(PC.Slot,{scope:e.__scopeRovingFocusGroup},v.createElement(Aue,Ie({},e,{ref:t})))))),Aue=v.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,...u}=e,f=v.useRef(null),d=un(t,f),p=aA(o),[h=null,m]=ip({prop:i,defaultProp:s,onChange:c}),[g,y]=v.useState(!1),b=Ac(l),_=fB(n),w=v.useRef(!1),[k,x]=v.useState(0);return v.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(IE,b),()=>e.removeEventListener(IE,b)}),[b]),v.createElement(Cue,{scope:n,orientation:r,dir:p,loop:a,currentTabStopId:h,onItemFocus:v.useCallback((e=>m(e)),[m]),onItemShiftTab:v.useCallback((()=>y(!0)),[]),onFocusableItemAdd:v.useCallback((()=>x((e=>e+1))),[]),onFocusableItemRemove:v.useCallback((()=>x((e=>e-1))),[])},v.createElement(wt.div,Ie({tabIndex:g||0===k?-1:0,"data-orientation":r},u,{ref:d,style:{outline:"none",...e.style},onMouseDown:st(e.onMouseDown,(()=>{w.current=!0})),onFocus:st(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(IE,xue);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=_().filter((e=>e.focusable));uB([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:st(e.onBlur,(()=>y(!1)))})))})),Iue="RovingFocusGroupItem",$ue=v.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:o,...i}=e,s=tp(),c=o||s,l=Rue(Iue,n),u=l.currentTabStopId===c,f=fB(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=l;return v.useEffect((()=>{if(r)return d(),()=>p()}),[r,d,p]),v.createElement(PC.ItemSlot,{scope:n,id:c,focusable:r,active:a},v.createElement(wt.span,Ie({tabIndex:u?0:-1,"data-orientation":l.orientation},i,{ref:t,onMouseDown:st(e.onMouseDown,(e=>{r?l.onItemFocus(c):e.preventDefault()})),onFocus:st(e.onFocus,(()=>l.onItemFocus(c))),onKeyDown:st(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=zue(e,l.orientation,l.dir);if(void 0!==t){e.preventDefault();let n=f().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=l.loop?Mue(n,r+1):n.slice(r+1)}setTimeout((()=>uB(n)))}}))})))})),Pue={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Oue(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function zue(e,t,n){const r=Oue(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return Pue[r]}function uB(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Mue(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}const hA=Tue,mA=$ue,OC=["Enter"," "],Due=["ArrowDown","PageUp","Home"],dB=["ArrowUp","PageDown","End"],Nue=[...Due,...dB],Lue={ltr:[...OC,"ArrowRight"],rtl:[...OC,"ArrowLeft"]},jue={ltr:["ArrowLeft"],rtl:["ArrowRight"]},mk="Menu",[Gy,Bue,Fue]=rA(mk),[mm,pB]=Zo(mk,[Fue,z1,M1]),hB=z1(),mB=M1(),[AZe,gm]=mm(mk),[IZe,M_]=mm(mk),Uue=v.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,a=hB(n);return v.createElement(uA,Ie({},a,r,{ref:t}))})),gB="MenuPortal",[Vue,yB]=mm(gB,{forceMount:void 0}),que=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,o=gm(gB,t);return v.createElement(Vue,{scope:t,forceMount:n},v.createElement(zs,{present:n||o.open},v.createElement(yT,{asChild:!0,container:a},r)))},kc="MenuContent",[Wue,gA]=mm(kc),Hue=v.forwardRef(((e,t)=>{const n=yB(kc,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=gm(kc,e.__scopeMenu),i=M_(kc,e.__scopeMenu);return v.createElement(Gy.Provider,{scope:e.__scopeMenu},v.createElement(zs,{present:r||o.open},v.createElement(Gy.Slot,{scope:e.__scopeMenu},i.modal?v.createElement(Gue,Ie({},a,{ref:t})):v.createElement(Kue,Ie({},a,{ref:t})))))})),Gue=v.forwardRef(((e,t)=>{const n=gm(kc,e.__scopeMenu),r=v.useRef(null),a=un(t,r);return v.useEffect((()=>{const e=r.current;if(e)return Kw(e)}),[]),v.createElement(yA,Ie({},e,{ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:st(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),Kue=v.forwardRef(((e,t)=>{const n=gm(kc,e.__scopeMenu);return v.createElement(yA,Ie({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),yA=v.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:p,disableOutsideScroll:h,...m}=e,g=gm(kc,n),y=M_(kc,n),b=hB(n),_=mB(n),w=Bue(n),[k,x]=v.useState(null),S=v.useRef(null),E=un(t,S,g.onContentChange),A=v.useRef(0),C=v.useRef(""),z=v.useRef(0),I=v.useRef(null),T=v.useRef("right"),R=v.useRef(0),j=h?Gw:v.Fragment,P=h?{as:em,allowPinchZoom:!0}:void 0;v.useEffect((()=>()=>window.clearTimeout(A.current)),[]),_T();const O=v.useCallback((e=>{var t,n;return T.current===(null===(t=I.current)||void 0===t?void 0:t.side)&&dde(e,null===(n=I.current)||void 0===n?void 0:n.area)}),[]);return v.createElement(Wue,{scope:n,searchRef:C,onItemEnter:v.useCallback((e=>{O(e)&&e.preventDefault()}),[O]),onItemLeave:v.useCallback((e=>{var t;O(e)||(null===(t=S.current)||void 0===t||t.focus(),x(null))}),[O]),onTriggerLeave:v.useCallback((e=>{O(e)&&e.preventDefault()}),[O]),pointerGraceTimerRef:z,onPointerGraceIntentChange:v.useCallback((e=>{I.current=e}),[])},v.createElement(j,P,v.createElement(gT,{asChild:!0,trapped:a,onMountAutoFocus:st(o,(e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()})),onUnmountAutoFocus:i},v.createElement(Ww,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:p},v.createElement(hA,Ie({asChild:!0},_,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:x,onEntryFocus:st(c,(e=>{y.isUsingKeyboardRef.current||e.preventDefault()}))}),v.createElement(dA,Ie({role:"menu","aria-orientation":"vertical","data-state":kB(g.open),"data-radix-menu-content":"",dir:y.dir},b,m,{ref:E,style:{outline:"none",...m.style},onKeyDown:st(m.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;const r=C.current+e,a=w().filter((e=>!e.disabled)),o=document.activeElement,i=null===(t=a.find((e=>e.ref.current===o)))||void 0===t?void 0:t.textValue,s=fde(a.map((e=>e.textValue)),r,i),c=null===(n=a.find((e=>e.textValue===s)))||void 0===n?void 0:n.ref.current;(function e(t){C.current=t,window.clearTimeout(A.current),""!==t&&(A.current=window.setTimeout((()=>e("")),1e3))})(r),c&&setTimeout((()=>c.focus()))})(e.key));const a=S.current;if(e.target!==a||!Nue.includes(e.key))return;e.preventDefault();const o=w().filter((e=>!e.disabled)).map((e=>e.ref.current));dB.includes(e.key)&&o.reverse(),cde(o)})),onBlur:st(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),C.current="")})),onPointerMove:st(e.onPointerMove,Ky((e=>{const t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>R.current?"right":"left";T.current=t,R.current=e.clientX}})))})))))))})),Que=v.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return v.createElement(wt.div,Ie({},r,{ref:t}))})),zC="MenuItem",wM="menu.itemSelect",_A=v.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...a}=e,o=v.useRef(null),i=M_(zC,e.__scopeMenu),s=gA(zC,e.__scopeMenu),c=un(t,o),l=v.useRef(!1);return v.createElement(_B,Ie({},a,{ref:c,disabled:n,onClick:st(e.onClick,(()=>{const e=o.current;if(!n&&e){const t=new CustomEvent(wM,{bubbles:!0,cancelable:!0});e.addEventListener(wM,(e=>null==r?void 0:r(e)),{once:!0}),b5(e,t),t.defaultPrevented?l.current=!1:i.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),l.current=!0},onPointerUp:st(e.onPointerUp,(e=>{var t;l.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:st(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||OC.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),_B=v.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:a,...o}=e,i=gA(zC,n),s=mB(n),c=v.useRef(null),l=un(t,c),[u,f]=v.useState(!1),[d,p]=v.useState("");return v.useEffect((()=>{const e=c.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[o.children]),v.createElement(Gy.ItemSlot,{scope:n,disabled:r,textValue:a??d},v.createElement(mA,Ie({asChild:!0},s,{focusable:!r}),v.createElement(wt.div,Ie({role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:l,onPointerMove:st(e.onPointerMove,Ky((e=>{r?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:st(e.onPointerLeave,Ky((e=>i.onItemLeave(e)))),onFocus:st(e.onFocus,(()=>f(!0))),onBlur:st(e.onBlur,(()=>f(!1)))}))))})),Yue=v.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...a}=e;return v.createElement(bB,{scope:e.__scopeMenu,checked:n},v.createElement(_A,Ie({role:"menuitemcheckbox","aria-checked":Xb(n)?"mixed":n},a,{ref:t,"data-state":vA(n),onSelect:st(a.onSelect,(()=>null==r?void 0:r(!!Xb(n)||!n)),{checkForDefaultPrevented:!1})})))})),Zue="MenuRadioGroup",[$Ze,Xue]=mm(Zue,{value:void 0,onValueChange:()=>{}}),Jue="MenuRadioItem",ede=v.forwardRef(((e,t)=>{const{value:n,...r}=e,a=Xue(Jue,e.__scopeMenu),o=n===a.value;return v.createElement(bB,{scope:e.__scopeMenu,checked:o},v.createElement(_A,Ie({role:"menuitemradio","aria-checked":o},r,{ref:t,"data-state":vA(o),onSelect:st(r.onSelect,(()=>{var e;return null===(e=a.onValueChange)||void 0===e?void 0:e.call(a,n)}),{checkForDefaultPrevented:!1})})))})),vB="MenuItemIndicator",[bB,tde]=mm(vB,{checked:!1}),nde=v.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...a}=e,o=tde(vB,n);return v.createElement(zs,{present:r||Xb(o.checked)||!0===o.checked},v.createElement(wt.span,Ie({},a,{ref:t,"data-state":vA(o.checked)})))})),rde=v.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return v.createElement(wt.div,Ie({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),ade="MenuSub",[PZe,wB]=mm(ade),Zv="MenuSubTrigger",ode=v.forwardRef(((e,t)=>{const n=gm(Zv,e.__scopeMenu),r=M_(Zv,e.__scopeMenu),a=wB(Zv,e.__scopeMenu),o=gA(Zv,e.__scopeMenu),i=v.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=o,l={__scopeMenu:e.__scopeMenu},u=v.useCallback((()=>{i.current&&window.clearTimeout(i.current),i.current=null}),[]);return v.useEffect((()=>u),[u]),v.useEffect((()=>{const e=s.current;return()=>{window.clearTimeout(e),c(null)}}),[s,c]),v.createElement(Uue,Ie({asChild:!0},l),v.createElement(_B,Ie({id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":kB(n.open)},e,{ref:hT(t,a.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),!e.disabled&&!t.defaultPrevented&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:st(e.onPointerMove,Ky((t=>{o.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(o.onPointerGraceIntentChange(null),i.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:st(e.onPointerLeave,Ky((e=>{var t;u();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var a;const t=null===(a=n.content)||void 0===a?void 0:a.dataset.side,i="right"===t,c=i?-5:5,l=r[i?"left":"right"],u=r[i?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+c,y:e.clientY},{x:l,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:l,y:r.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>o.onPointerGraceIntentChange(null)),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}}))),onKeyDown:st(e.onKeyDown,(t=>{const a=""!==o.searchRef.current;var i;e.disabled||a&&" "===t.key||!Lue[r.dir].includes(t.key)||(n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault())}))})))})),ide="MenuSubContent",sde=v.forwardRef(((e,t)=>{const n=yB(kc,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=gm(kc,e.__scopeMenu),i=M_(kc,e.__scopeMenu),s=wB(ide,e.__scopeMenu),c=v.useRef(null),l=un(t,c);return v.createElement(Gy.Provider,{scope:e.__scopeMenu},v.createElement(zs,{present:r||o.open},v.createElement(Gy.Slot,{scope:e.__scopeMenu},v.createElement(yA,Ie({id:s.contentId,"aria-labelledby":s.triggerId},a,{ref:l,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;i.isUsingKeyboardRef.current&&(null===(t=c.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:st(e.onFocusOutside,(e=>{e.target!==s.trigger&&o.onOpenChange(!1)})),onEscapeKeyDown:st(e.onEscapeKeyDown,(e=>{i.onClose(),e.preventDefault()})),onKeyDown:st(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=jue[i.dir].includes(e.key);var r;t&&n&&(o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function kB(e){return e?"open":"closed"}function Xb(e){return"indeterminate"===e}function vA(e){return Xb(e)?"indeterminate":e?"checked":"unchecked"}function cde(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function lde(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}function fde(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,a=n?e.indexOf(n):-1;let o=lde(e,Math.max(a,0));1===r.length&&(o=o.filter((e=>e!==n)));const i=o.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return i!==n?i:void 0}function ude(e,t){const{x:n,y:r}=e;let a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const i=t[e].x,s=t[e].y,c=t[o].x,l=t[o].y;s>r!=l>r&&n<(c-i)*(r-s)/(l-s)+i&&(a=!a)}return a}function dde(e,t){if(!t)return!1;return ude({x:e.clientX,y:e.clientY},t)}function Ky(e){return t=>"mouse"===t.pointerType?e(t):void 0}const pde=que,hde=Hue,mde=Que,gde=_A,yde=Yue,_de=ede,vde=nde,bde=rde,wde=ode,kde=sde,xB="DropdownMenu",[xde,OZe]=Zo(xB,[pB]),Fl=pB(),[zZe,Sde]=xde(xB),Ede=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Fl(t);return v.createElement(pde,Ie({},r,n))},Cde="DropdownMenuContent",Rde=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Sde(Cde,n),o=Fl(n),i=v.useRef(!1);return v.createElement(hde,Ie({id:a.contentId,"aria-labelledby":a.triggerId},o,r,{ref:t,onCloseAutoFocus:st(e.onCloseAutoFocus,(e=>{var t;i.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),i.current=!1,e.preventDefault()})),onInteractOutside:st(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(i.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),Tde=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(mde,Ie({},a,r,{ref:t}))})),Ade=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(gde,Ie({},a,r,{ref:t}))})),Ide=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(yde,Ie({},a,r,{ref:t}))})),$de=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(_de,Ie({},a,r,{ref:t}))})),Pde=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(vde,Ie({},a,r,{ref:t}))})),Ode=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(bde,Ie({},a,r,{ref:t}))})),zde=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(wde,Ie({},a,r,{ref:t}))})),Mde=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(kde,Ie({},a,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),Dde=Ede,SB=Rde,EB=Tde,CB=Ade,RB=Ide,TB=$de,Nde=Pde,bA=Ode,AB=zde,IB=Mde,Lde=v.forwardRef((({className:e,inset:t,children:n,...r},a)=>B.jsxs(AB,{ref:a,className:xe("flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,B.jsx(d5,{className:"ml-auto h-4 w-4"})]})));Lde.displayName=AB.displayName;const jde=v.forwardRef((({className:e,...t},n)=>B.jsx(IB,{ref:n,className:xe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})));jde.displayName=IB.displayName;const Bde=v.forwardRef((({className:e,sideOffset:t=4,...n},r)=>B.jsx(Dde,{children:B.jsx(SB,{ref:r,sideOffset:t,className:xe("z-[101] flex max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] flex-col gap-xxxs overflow-y-auto rounded-lg border border-slate-200 bg-white p-xxs text-popover-foreground ","shadow-[0px_0px_12px_0px_rgba(0,0,0,0.08)] ","data-[state=open]:animate-in data-[state=closed]:animate-out ","data-[state=open]:fade-in data-[state=open]:slide-in-from-top-2 ","data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-2 ","data-[state=closed]:duration-150 data-[state=open]:duration-150 ","data-[state=closed]:[animation-timing-function:ease-in] data-[state=open]:[animation-timing-function:ease-out]",e),...n})})));Bde.displayName=SB.displayName;const Fde=v.forwardRef((({className:e,inset:t,...n},r)=>B.jsx(CB,{ref:r,className:xe("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-slate-900 outline-none transition-colors hover:bg-slate-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-xl",e),...n})));Fde.displayName=CB.displayName;const Ude=v.forwardRef((({className:e,children:t,checked:n,checkboxPosition:r="right",...a},o)=>{const i=B.jsx(QT,{size:"default",variant:"default",checked:n});return B.jsxs(RB,{ref:o,className:xe("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-slate-900"," outline-none transition-colors hover:bg-slate-100 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,onSelect:e=>e.preventDefault(),...a,children:["left"===r&&i,B.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===r&&i]})}));Ude.displayName=RB.displayName;const Vde=v.forwardRef((({className:e,children:t,radioPosition:n="right",...r},a)=>{const o=B.jsx("div",{className:"flex h-xxs items-center justify-center",children:B.jsx(Nde,{children:B.jsx(fT,{size:20})})});return B.jsxs(TB,{ref:a,className:xe("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-slate-900"," outline-none transition-colors hover:bg-slate-100 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),onSelect:e=>e.preventDefault(),...r,children:["left"===n&&o,B.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===n&&o]})}));Vde.displayName=TB.displayName;const qde=v.forwardRef((({className:e,inset:t,...n},r)=>B.jsx(EB,{ref:r,className:xe("text-sm font-semibold",t&&"pl-xl",e),...n})));qde.displayName=EB.displayName;const Wde=v.forwardRef((({className:e,...t},n)=>B.jsx(bA,{ref:n,className:xe("-mx-1 my-1 h-px bg-muted",e),...t})));Wde.displayName=bA.displayName;const Hde=ze.createContext(null),Gde=()=>ze.useContext(Hde);function kM(e,[t,n]){return Math.min(n,Math.max(t,e))}const $B=v.forwardRef(((e,t)=>v.createElement(wt.span,Ie({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),Kde=$B,Qde=[" ","Enter","ArrowUp","ArrowDown"],Yde=[" ","Enter"],gk="Select",[yk,_k,Zde]=rA(gk),[D1,MZe]=Zo(gk,[Zde,z1]),wA=z1(),[Xde,ym]=D1(gk),[Jde,epe]=D1(gk),tpe=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:i,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:f,disabled:d,required:p}=e,h=wA(t),[m,g]=v.useState(null),[y,b]=v.useState(null),[_,w]=v.useState(!1),k=aA(l),[x=!1,S]=ip({prop:r,defaultProp:a,onChange:o}),[E,A]=ip({prop:i,defaultProp:s,onChange:c}),C=v.useRef(null),z=!m||!!m.closest("form"),[I,T]=v.useState(new Set),R=Array.from(I).map((e=>e.props.value)).join(";");return v.createElement(lB,h,v.createElement(Xde,{required:p,scope:t,trigger:m,onTriggerChange:g,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:_,onValueNodeHasChildrenChange:w,contentId:tp(),value:E,onValueChange:A,open:x,onOpenChange:S,dir:k,triggerPointerDownPosRef:C,disabled:d},v.createElement(yk.Provider,{scope:t},v.createElement(Jde,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback((e=>{T((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:v.useCallback((e=>{T((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),z?v.createElement(DB,{key:R,"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:f,value:E,onChange:e=>A(e.target.value),disabled:d},void 0===E?v.createElement("option",{value:""}):null,Array.from(I)):null))},npe="SelectTrigger",rpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=wA(n),i=ym(npe,n),s=i.disabled||r,c=un(t,i.onTriggerChange),l=_k(n),[u,f,d]=NB((e=>{const t=l().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=LB(t,e,n);void 0!==r&&i.onValueChange(r.value)})),p=()=>{s||(i.onOpenChange(!0),d())};return v.createElement(uA,Ie({asChild:!0},o),v.createElement(wt.button,Ie({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":MB(i.value)?"":void 0},a,{ref:c,onClick:st(a.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:st(a.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(p(),i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:st(a.onKeyDown,(e=>{const t=""!==u.current;!(e.ctrlKey||e.altKey||e.metaKey)&&1===e.key.length&&f(e.key),(!t||" "!==e.key)&&Qde.includes(e.key)&&(p(),e.preventDefault())}))})))})),ape="SelectValue",ope=v.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:i="",...s}=e,c=ym(ape,n),{onValueNodeHasChildrenChange:l}=c,u=void 0!==o,f=un(t,c.onValueNodeChange);return Ro((()=>{l(u)}),[l,u]),v.createElement(wt.span,Ie({},s,{ref:f,style:{pointerEvents:"none"}}),MB(c.value)?v.createElement(v.Fragment,null,i):o)})),ipe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return v.createElement(wt.span,Ie({"aria-hidden":!0},a,{ref:t}),r||"▼")})),spe=e=>v.createElement(yT,Ie({asChild:!0},e)),y1="SelectContent",cpe=v.forwardRef(((e,t)=>{const n=ym(y1,e.__scopeSelect),[r,a]=v.useState();if(Ro((()=>{a(new DocumentFragment)}),[]),!n.open){const t=r;return t?Ll.createPortal(v.createElement(PB,{scope:e.__scopeSelect},v.createElement(yk.Slot,{scope:e.__scopeSelect},v.createElement("div",null,e.children))),t):null}return v.createElement(lpe,Ie({},e,{ref:t}))})),Yf=10,[PB,_m]=D1(y1),lpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:g,...y}=e,b=ym(y1,n),[_,w]=v.useState(null),[k,x]=v.useState(null),S=un(t,(e=>w(e))),[E,A]=v.useState(null),[C,z]=v.useState(null),I=_k(n),[T,R]=v.useState(!1),j=v.useRef(!1);v.useEffect((()=>{if(_)return Kw(_)}),[_]),_T();const P=v.useCallback((e=>{const[t,...n]=I().map((e=>e.ref.current)),[r]=n.slice(-1),a=document.activeElement;for(const n of e)if(n===a||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&k&&(k.scrollTop=0),n===r&&k&&(k.scrollTop=k.scrollHeight),null==n||n.focus(),document.activeElement!==a))return}),[I,k]),O=v.useCallback((()=>P([E,_])),[P,E,_]);v.useEffect((()=>{T&&O()}),[T,O]);const{onOpenChange:N,triggerPointerDownPosRef:M}=b;v.useEffect((()=>{if(_){let e={x:0,y:0};const t=t=>{var n,r,a,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=M.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(a=null===(o=M.current)||void 0===o?void 0:o.y)&&void 0!==a?a:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():_.contains(n.target)||N(!1),document.removeEventListener("pointermove",t),M.current=null};return null!==M.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[_,N,M]),v.useEffect((()=>{const e=()=>N(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[N]);const[D,B]=NB((e=>{const t=I().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=LB(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),L=v.useCallback(((e,t,n)=>{const r=!j.current&&!n;(void 0!==b.value&&b.value===t||r)&&(A(e),r&&(j.current=!0))}),[b.value]),q=v.useCallback((()=>null==_?void 0:_.focus()),[_]),V=v.useCallback(((e,t,n)=>{const r=!j.current&&!n;(void 0!==b.value&&b.value===t||r)&&z(e)}),[b.value]),F="popper"===r?xM:fpe,U=F===xM?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:g}:{};return v.createElement(PB,{scope:n,content:_,viewport:k,onViewportChange:x,itemRefCallback:L,selectedItem:E,onItemLeave:q,itemTextRefCallback:V,focusSelectedItem:O,selectedItemText:C,position:r,isPositioned:T,searchRef:D},v.createElement(Gw,{as:em,allowPinchZoom:!0},v.createElement(gT,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:st(a,(e=>{var t;null===(t=b.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},v.createElement(Ww,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},v.createElement(F,Ie({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault()},y,U,{onPlaced:()=>R(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:st(y.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),!t&&1===e.key.length&&B(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=I().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>P(t))),e.preventDefault()}}))}))))))})),fpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=ym(y1,n),i=_m(y1,n),[s,c]=v.useState(null),[l,u]=v.useState(null),f=un(t,(e=>u(e))),d=_k(n),p=v.useRef(!1),h=v.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:y,focusSelectedItem:b}=i,_=v.useCallback((()=>{if(o.trigger&&o.valueNode&&s&&l&&m&&g&&y){const e=o.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),a=y.getBoundingClientRect();if("rtl"!==o.dir){const r=a.left-t.left,o=n.left-r,i=e.left-o,c=e.width+i,l=Math.max(c,t.width),u=window.innerWidth-Yf,f=kM(o,[Yf,u-l]);s.style.minWidth=c+"px",s.style.left=f+"px"}else{const r=t.right-a.right,o=window.innerWidth-n.right-r,i=window.innerWidth-e.right-o,c=e.width+i,l=Math.max(c,t.width),u=window.innerWidth-Yf,f=kM(o,[Yf,u-l]);s.style.minWidth=c+"px",s.style.right=f+"px"}const i=d(),c=window.innerHeight-2*Yf,u=m.scrollHeight,f=window.getComputedStyle(l),h=parseInt(f.borderTopWidth,10),v=parseInt(f.paddingTop,10),b=parseInt(f.borderBottomWidth,10),_=h+v+u+parseInt(f.paddingBottom,10)+b,w=Math.min(5*g.offsetHeight,_),k=window.getComputedStyle(m),x=parseInt(k.paddingTop,10),S=parseInt(k.paddingBottom,10),E=e.top+e.height/2-Yf,A=c-E,C=g.offsetHeight/2,z=h+v+(g.offsetTop+C),I=_-z;if(z<=E){const e=g===i[i.length-1].ref.current;s.style.bottom="0px";const t=l.clientHeight-m.offsetTop-m.offsetHeight,n=z+Math.max(A,C+(e?S:0)+t+b);s.style.height=n+"px"}else{const e=g===i[0].ref.current;s.style.top="0px";const t=Math.max(E,h+m.offsetTop+(e?x:0)+C)+I;s.style.height=t+"px",m.scrollTop=z-E+m.offsetTop}s.style.margin=`${Yf}px 0`,s.style.minHeight=w+"px",s.style.maxHeight=c+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[d,o.trigger,o.valueNode,s,l,m,g,y,o.dir,r]);Ro((()=>_()),[_]);const[w,k]=v.useState();Ro((()=>{l&&k(window.getComputedStyle(l).zIndex)}),[l]);const x=v.useCallback((e=>{e&&!0===h.current&&(_(),null==b||b(),h.current=!1)}),[_,b]);return v.createElement(upe,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:x},v.createElement("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},v.createElement(wt.div,Ie({},a,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}}))))})),xM=v.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=Yf,...o}=e,i=wA(n);return v.createElement(dA,Ie({},i,o,{ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[upe,kA]=D1(y1,{}),SM="SelectViewport",dpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=_m(SM,n),o=kA(SM,n),i=un(t,a.onViewportChange),s=v.useRef(0);return v.createElement(v.Fragment,null,v.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),v.createElement(yk.Slot,{scope:n},v.createElement(wt.div,Ie({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:st(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(null!=r&&r.current&&n){const e=Math.abs(s.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Yf,a=parseFloat(n.style.minHeight),o=parseFloat(n.style.height),i=Math.max(a,o);if(i<r){const a=i+e,o=Math.min(r,a),s=a-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop}))}))))})),ppe="SelectGroup",[hpe,mpe]=D1(ppe),gpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=tp();return v.createElement(hpe,{scope:n,id:a},v.createElement(wt.div,Ie({role:"group","aria-labelledby":a},r,{ref:t})))})),ype="SelectLabel",_pe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=mpe(ype,n);return v.createElement(wt.div,Ie({id:a.id},r,{ref:t}))})),MC="SelectItem",[vpe,OB]=D1(MC),bpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...i}=e,s=ym(MC,n),c=_m(MC,n),l=s.value===r,[u,f]=v.useState(o??""),[d,p]=v.useState(!1),h=un(t,(e=>{var t;return null===(t=c.itemRefCallback)||void 0===t?void 0:t.call(c,e,r,a)})),m=tp(),g=()=>{a||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.createElement(vpe,{scope:n,value:r,disabled:a,textId:m,isSelected:l,onItemTextChange:v.useCallback((e=>{f((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},v.createElement(yk.ItemSlot,{scope:n,value:r,disabled:a,textValue:u},v.createElement(wt.div,Ie({role:"option","aria-labelledby":m,"data-highlighted":d?"":void 0,"aria-selected":l&&d,"data-state":l?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1},i,{ref:h,onFocus:st(i.onFocus,(()=>p(!0))),onBlur:st(i.onBlur,(()=>p(!1))),onPointerUp:st(i.onPointerUp,g),onPointerMove:st(i.onPointerMove,(e=>{var t;a?null===(t=c.onItemLeave)||void 0===t||t.call(c):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:st(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=c.onItemLeave)||void 0===t||t.call(c))})),onKeyDown:st(i.onKeyDown,(e=>{var t;""!==(null===(t=c.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(Yde.includes(e.key)&&g()," "===e.key&&e.preventDefault())}))}))))})),Xv="SelectItemText",wpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,i=ym(Xv,n),s=_m(Xv,n),c=OB(Xv,n),l=epe(Xv,n),[u,f]=v.useState(null),d=un(t,(e=>f(e)),c.onItemTextChange,(e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,c.value,c.disabled)})),p=null==u?void 0:u.textContent,h=v.useMemo((()=>v.createElement("option",{key:c.value,value:c.value,disabled:c.disabled},p)),[c.disabled,c.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=l;return Ro((()=>(m(h),()=>g(h))),[m,g,h]),v.createElement(v.Fragment,null,v.createElement(wt.span,Ie({id:c.textId},o,{ref:d})),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Ll.createPortal(o.children,i.valueNode):null)})),kpe="SelectItemIndicator",xpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return OB(kpe,n).isSelected?v.createElement(wt.span,Ie({"aria-hidden":!0},r,{ref:t})):null})),EM="SelectScrollUpButton",Spe=v.forwardRef(((e,t)=>{const n=_m(EM,e.__scopeSelect),r=kA(EM,e.__scopeSelect),[a,o]=v.useState(!1),i=un(t,r.onScrollButtonChange);return Ro((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;o(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?v.createElement(zB,Ie({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),CM="SelectScrollDownButton",Epe=v.forwardRef(((e,t)=>{const n=_m(CM,e.__scopeSelect),r=kA(CM,e.__scopeSelect),[a,o]=v.useState(!1),i=un(t,r.onScrollButtonChange);return Ro((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;o(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?v.createElement(zB,Ie({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),zB=v.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=_m("SelectScrollButton",n),i=v.useRef(null),s=_k(n),c=v.useCallback((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return v.useEffect((()=>()=>c()),[c]),Ro((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[s]),v.createElement(wt.div,Ie({"aria-hidden":!0},a,{ref:t,style:{flexShrink:0,...a.style},onPointerDown:st(a.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:st(a.onPointerMove,(()=>{var e;null===(e=o.onItemLeave)||void 0===e||e.call(o),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:st(a.onPointerLeave,(()=>{c()}))}))})),Cpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return v.createElement(wt.div,Ie({"aria-hidden":!0},r,{ref:t}))}));function MB(e){return""===e||void 0===e}const DB=v.forwardRef(((e,t)=>{const{value:n,...r}=e,a=v.useRef(null),o=un(t,a),i=sk(n);return v.useEffect((()=>{const e=a.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(i!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[i,n]),v.createElement($B,{asChild:!0},v.createElement("select",Ie({},r,{ref:o,defaultValue:n})))}));function NB(e){const t=Ac(e),n=v.useRef(""),r=v.useRef(0),a=v.useCallback((e=>{const a=n.current+e;t(a),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(a)}),[t]),o=v.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return v.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,a,o]}function LB(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,a=n?e.indexOf(n):-1;let o=Rpe(e,Math.max(a,0));1===r.length&&(o=o.filter((e=>e!==n)));const i=o.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return i!==n?i:void 0}function Rpe(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}DB.displayName="BubbleSelect";const jB=tpe,BB=rpe,FB=ope,Tpe=ipe,Ape=spe,UB=cpe,Ipe=dpe,VB=gpe,qB=_pe,WB=bpe,$pe=wpe,Ppe=xpe,HB=Spe,GB=Epe,KB=Cpe,Ope=jB,QB=v.forwardRef((({...e},t)=>B.jsx(Ope,{ref:t,...e})));QB.displayName=jB.displayName;const YB=v.forwardRef(((e,t)=>B.jsx(VB,{ref:t,...e})));YB.displayName=VB.displayName;const ZB=v.forwardRef(((e,t)=>B.jsx(FB,{ref:t,...e})));ZB.displayName=FB.displayName;const xA=v.forwardRef((({className:e,children:t,caption:n,error:r,icon:a,...o},i)=>B.jsxs("div",{className:"w-full",children:[B.jsxs(BB,{ref:i,className:xe("flex h-l w-full items-center justify-between rounded-m border bg-background p-xxs text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50",r?"border-red-500":"border-input",e),...o,children:[B.jsxs("div",{className:"flex flex-1 items-center gap-xxs",children:[a&&B.jsx("span",{className:xe("text-muted-foreground",{"text-red-dark":r}),children:a}),t]}),B.jsx(Tpe,{asChild:!0,children:B.jsx(f5,{size:20})})]}),n||r?r?B.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-red-600",children:[B.jsx(p5,{size:16}),r]}):B.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-muted-foreground",children:[B.jsx(jte,{size:16}),n]}):null]})));xA.displayName="SelectTriggerWrapper";const XB=v.forwardRef((({className:e,children:t,caption:n,error:r,icon:a,...o},i)=>B.jsx(xA,{ref:i,className:xe("[&>span]:line-clamp-1 [&>span]:text-left",e),caption:n,error:r,icon:a,...o,children:t})));XB.displayName=BB.displayName;const JB=v.forwardRef((({className:e,children:t,position:n="popper",...r},a)=>{const o=v.useMemo((()=>{const e=t=>{var n,r;if(!t)return!1;if(Array.isArray(t))return t.some(e);if(v.isValidElement(t)){const a=null==(n=t.type)?void 0:n.displayName;return"SelectActions"===a||"SelectFooter"===a||e(null==(r=t.props)?void 0:r.children)}return!1};return e(t)}),[t]);return B.jsx(Ape,{children:B.jsx(UB,{ref:a,className:xe("z-[101] flex max-h-[var(--radix-select-content-available-height)] min-w-[8rem] flex-col rounded-lg border border-slate-200 bg-white text-popover-foreground","shadow-[0px_0px_12px_0px_rgba(0,0,0,0.08)]","data-[state=open]:animate-in data-[state=closed]:animate-out ","data-[state=open]:fade-in data-[state=open]:slide-in-from-top-2 ","data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-2 ","data-[state=closed]:duration-150 data-[state=open]:duration-150 ","data-[state=closed]:[animation-timing-function:ease-in] data-[state=open]:[animation-timing-function:ease-out]","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:B.jsx(Ipe,{className:xe("flex flex-col gap-xxxs overflow-y-auto px-xxs",{"py-xxs":!o},"popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})})}));JB.displayName=UB.displayName;const eF=v.forwardRef((({className:e,...t},n)=>B.jsx(qB,{ref:n,className:xe("text-sm font-medium text-slate-900",e),...t})));eF.displayName=qB.displayName;const tF=v.forwardRef((({className:e,showCheck:t=!0,checkPosition:n="right",children:r,...a},o)=>{const i=B.jsx(Ppe,{children:B.jsx(fT,{size:20})});return B.jsxs(WB,{ref:o,className:xe("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs","text-base font-medium text-slate-900 outline-none transition-colors hover:bg-slate-100","focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[t&&"left"===n&&i,B.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:B.jsx($pe,{children:r})}),t&&"right"===n&&i]})}));tF.displayName=WB.displayName;const nF=v.forwardRef((({className:e,...t},n)=>B.jsx(KB,{ref:n,className:xe("-mx-1 my-1 h-px bg-slate-200",e),...t})));nF.displayName=KB.displayName;const zpe=(e,t)=>{const n=v.useRef(null),[r,a]=v.useState(e.length);return v.useLayoutEffect((()=>{if(!n.current||0===e.length)return void a(e.length);const r=n.current.offsetWidth-60,o=document.createElement("div");Object.assign(o.style,{position:"absolute",visibility:"hidden",whiteSpace:"nowrap",display:"flex",gap:"4px",top:"-9999px",left:"-9999px"}),document.body.appendChild(o);let i=0,s=0;for(const n of e){const e=document.createElement("div");e.className="gap-xxxs p-xxs flex cursor-pointer items-center rounded-sm bg-slate-100 text-sm font-medium text-slate-900";const a=document.createElement("span");if(a.textContent="string"==typeof n?n:n.value,e.appendChild(a),"string"!=typeof n&&n.avatar){const t=document.createElement("div");t.className="w-6 h-6 rounded-full bg-slate-300 flex-shrink-0",e.insertBefore(t,a)}if(t){const t=document.createElement("button");t.innerHTML="×",t.className="ml-1 rounded-full outline-none",e.appendChild(t)}o.appendChild(e);const c=e.offsetWidth+4;if(!(i+c<=r))break;i+=c,s++}document.body.removeChild(o),a(Math.max(1,s))}),[e,t]),{containerRef:n,visibleCount:r}},Mpe=v.forwardRef((({className:e,selectedValues:t=[],placeholder:n,onRemoveValue:r,icon:a,caption:o,error:i,...s},c)=>{const{containerRef:l,visibleCount:u}=zpe(t,r),f=t.length-u;return B.jsx(xA,{ref:c,className:e,caption:o,error:i,icon:a,...s,children:B.jsx("div",{ref:l,className:"flex w-full flex-1 flex-nowrap overflow-hidden",children:0===t.length?B.jsx("span",{children:n||"Select options..."}):B.jsxs(Nse,{children:[t.slice(0,u).map((e=>{const t="string"==typeof e?e:e.value;return B.jsx(Kz,{avatarSrc:"string"==typeof e?void 0:e.avatar,text:t,onRemove:()=>null==r?void 0:r(t)},t)})),f>0&&B.jsx(Kz,{text:`+${f}`})]})})})}));Mpe.displayName="SelectMultiTrigger";const Dpe=v.forwardRef((({value:e,isSelected:t=!1,checkboxPosition:n="right",onSelect:r,className:a,children:o,...i},s)=>{const c=B.jsx(QT,{size:"default",variant:"default",checked:t}),l=()=>{null==r||r(e)};return B.jsxs("div",{ref:s,className:xe("relative flex cursor-pointer select-none items-center gap-xxs rounded-m","p-xxs text-base font-medium text-slate-900 outline-none transition-colors hover:bg-slate-100","focus:bg-accent focus:text-accent-foreground",a),onClick:l,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),l())},...i,children:["left"===n&&c,B.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:o}),"right"===n&&c]})}));Dpe.displayName="SelectCheckboxItem";const Npe=v.forwardRef((({className:e,...t},n)=>B.jsx(HB,{ref:n,className:xe("flex cursor-default items-center justify-center py-xxs",e),...t,children:B.jsx(Ate,{size:16})})));Npe.displayName=HB.displayName;const Lpe=v.forwardRef((({className:e,...t},n)=>B.jsx(GB,{ref:n,className:xe("flex cursor-default items-center justify-center p-xxs",e),...t,children:B.jsx(f5,{size:16})})));Lpe.displayName=GB.displayName;const jpe=v.forwardRef((({className:e,children:t,...n},r)=>B.jsx("div",{ref:r,className:xe("sticky top-0 z-20 bg-white p-xxs",e),...n,children:t})));jpe.displayName="SelectActions";const Bpe=v.forwardRef((({className:e,children:t,...n},r)=>B.jsx("div",{ref:r,className:xe("sticky bottom-0 z-20 bg-white p-xxs",e),...n,children:t})));Bpe.displayName="SelectFooter";const Fpe=v.createContext({}),vp=()=>{const e=v.useContext(Fpe),t=v.useContext(rF),n=Gde();e||console.error("useFormContext must be used within a FormProvider");const{getFieldState:r,formState:a}=n,o=r(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...o}},rF=v.createContext({}),Upe=v.forwardRef((({className:e,...t},n)=>{const r=v.useId();return B.jsx(rF.Provider,{value:{id:r},children:B.jsx("div",{ref:n,className:xe("mt-[8px]",e),...t})})}));Upe.displayName="FormItem";const Vpe=v.forwardRef((({className:e,isRequired:t,...n},r)=>{var a;const{formItemId:o}=vp();return B.jsx(CF,{ref:r,className:xe("mb-2 text-sm font-medium",e),htmlFor:o,...n,children:t?`*${null==(a=n.children)?void 0:a.toString()}`:n.children})}));Vpe.displayName="FormLabel";const qpe=v.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:a,formMessageId:o}=vp();return B.jsx(yp,{ref:t,id:r,"aria-describedby":n?`${a} ${o}`:`${a}`,"aria-invalid":!!n,...e})}));qpe.displayName="FormControl";const Wpe=v.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=vp();return B.jsx("p",{ref:n,id:r,className:xe("text-sm text-muted-foreground",e),...t})}));Wpe.displayName="FormDescription";const Hpe=v.forwardRef((({className:e,children:t,...n},r)=>{const{error:a,formMessageId:o}=vp(),i=a?String(null==a?void 0:a.message):t;return i?B.jsxs("p",{ref:r,id:o,className:xe("flex items-center gap-1 pt-xxs text-sm text-red-dark",e),...n,children:[B.jsx(p5,{size:16,className:"text-red-dark"})," ",i]}):null}));Hpe.displayName="FormMessage";const Gpe=v.forwardRef((({...e},t)=>{const{name:n}=vp();return B.jsx(QB,{ref:t,name:n,...e})}));Gpe.displayName="FormSelect";const Kpe=v.forwardRef((({className:e,children:t,...n},r)=>{const{formItemId:a}=vp();return B.jsx(XB,{ref:r,id:a,className:e,...n,children:t})}));Kpe.displayName="FormSelectTrigger";const Qpe=v.forwardRef(((e,t)=>B.jsx(JB,{ref:t,...e})));Qpe.displayName="FormSelectContent";const Ype=v.forwardRef(((e,t)=>B.jsx(tF,{ref:t,...e})));Ype.displayName="FormSelectItem";const Zpe=v.forwardRef(((e,t)=>B.jsx(YB,{ref:t,...e})));Zpe.displayName="FormSelectGroup";const Xpe=v.forwardRef(((e,t)=>B.jsx(eF,{ref:t,...e})));Xpe.displayName="FormSelectLabel";const Jpe=v.forwardRef(((e,t)=>B.jsx(nF,{ref:t,...e})));Jpe.displayName="FormSelectSeparator";const ehe=v.forwardRef(((e,t)=>B.jsx(ZB,{ref:t,...e})));function Wh(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function aF(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>v.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return v.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=v.createContext(r),o=n.length;function i(t){const{scope:n,children:r,...i}=t,s=(null==n?void 0:n[e][o])||a,c=v.useMemo((()=>i),Object.values(i));return v.createElement(s.Provider,{value:c},r)}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const s=(null==i?void 0:i[e][o])||a,c=v.useContext(s);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},the(r,...t)]}function the(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return v.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function vk(e){const t=v.useRef(e);return v.useEffect((()=>{t.current=e})),v.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function nhe(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function rhe(...e){return t=>e.forEach((e=>nhe(e,t)))}function ahe(...e){return v.useCallback(rhe(...e),e)}function vm(e){return e.split("-")[0]}function D_(e){return e.split("-")[1]}function N1(e){return["top","bottom"].includes(vm(e))?"x":"y"}function SA(e){return"y"===e?"height":"width"}function RM(e,t,n){let{reference:r,floating:a}=e;const o=r.x+r.width/2-a.width/2,i=r.y+r.height/2-a.height/2,s=N1(t),c=SA(s),l=r[c]/2-a[c]/2,u="x"===s;let f;switch(vm(t)){case"top":f={x:o,y:r.y-a.height};break;case"bottom":f={x:o,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:i};break;case"left":f={x:r.x-a.width,y:i};break;default:f={x:r.x,y:r.y}}switch(D_(t)){case"start":f[s]-=l*(n&&u?-1:1);break;case"end":f[s]+=l*(n&&u?-1:1)}return f}ehe.displayName="FormSelectValue";const ohe=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:l,y:u}=RM(c,r,s),f=r,d={},p=0;for(let n=0;n<o.length;n++){const{name:h,fn:m}=o[n],{x:g,y:y,data:v,reset:b}=await m({x:l,y:u,initialPlacement:r,placement:f,strategy:a,middlewareData:d,rects:c,platform:i,elements:{reference:e,floating:t}});l=g??l,u=y??u,d={...d,[h]:{...d[h],...v}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:l,y:u}=RM(c,f,s))),n=-1)}return{x:l,y:u,placement:f,strategy:a,middlewareData:d}};function oF(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function Jb(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Qy(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,h=oF(p),m=s[d?"floating"===f?"reference":"floating":f],g=Jb(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),y=Jb(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...i.floating,x:r,y:a}:i.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),strategy:c}):i[f]);return{top:g.top-y.top+h.top,bottom:y.bottom-g.bottom+h.bottom,left:g.left-y.left+h.left,right:y.right-g.right+h.right}}const ihe=Math.min,Nh=Math.max;function DC(e,t,n){return Nh(e,ihe(t,n))}const TM=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e??{},{x:a,y:o,placement:i,rects:s,platform:c}=t;if(null==n)return{};const l=oF(r),u={x:a,y:o},f=N1(i),d=D_(i),p=SA(f),h=await c.getDimensions(n),m="y"===f?"top":"left",g="y"===f?"bottom":"right",y=s.reference[p]+s.reference[f]-u[f]-s.floating[p],v=u[f]-s.reference[f],b=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let _=b?"y"===f?b.clientHeight||0:b.clientWidth||0:0;0===_&&(_=s.floating[p]);const w=y/2-v/2,k=l[m],x=_-h[p]-l[g],S=_/2-h[p]/2+w,E=DC(k,S,x),A=("start"===d?l[m]:l[g])>0&&S!==E&&s.reference[p]<=s.floating[p];return{[f]:u[f]-(A?S<k?k-S:x-S:0),data:{[f]:E,centerOffset:S-E}}}}),she={left:"right",right:"left",bottom:"top",top:"bottom"};function ew(e){return e.replace(/left|right|bottom|top/g,(e=>she[e]))}function che(e,t,n){void 0===n&&(n=!1);const r=D_(e),a=N1(e),o=SA(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=ew(i)),{main:i,cross:ew(i)}}const lhe={start:"end",end:"start"};function AM(e){return e.replace(/start|end/g,(e=>lhe[e]))}const iF=["top","right","bottom","left"];iF.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const fhe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:a,rects:o,initialPlacement:i,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...h}=e,m=vm(r),g=[i,...f||(m!==i&&p?function(e){const t=ew(e);return[AM(e),t,AM(t)]}(i):[ew(i)])],y=await Qy(t,h),v=[];let b=(null==(n=a.flip)?void 0:n.overflows)||[];if(l&&v.push(y[m]),u){const{main:e,cross:t}=che(r,o,await(null==s.isRTL?void 0:s.isRTL(c.floating)));v.push(y[e],y[t])}if(b=[...b,{placement:r,overflows:v}],!v.every((e=>e<=0))){var _,w;const e=(null!=(_=null==(w=a.flip)?void 0:w.index)?_:0)+1,t=g[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var k;const e=null==(k=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:k[0].placement;e&&(n=e);break}case"initialPlacement":n=i}if(r!==n)return{reset:{placement:n}}}return{}}}};function IM(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $M(e){return iF.some((t=>e[t]>=0))}const uhe=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=IM(await Qy(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:$M(t)}}}case"escaped":{const t=IM(await Qy(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:$M(t)}}}default:return{}}}}},dhe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,a=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=vm(n),s=D_(n),c="x"===N1(n),l=["left","top"].includes(i)?-1:1,u=o&&c?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}(t,e);return{x:n+a.x,y:r+a.y,data:a}}}};function sF(e){return"x"===e?"y":"x"}const phe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,l={x:n,y:r},u=await Qy(t,c),f=N1(vm(a)),d=sF(f);let p=l[f],h=l[d];if(o){const e="y"===f?"bottom":"right";p=DC(p+u["y"===f?"top":"left"],p,p-u[e])}if(i){const e="y"===d?"bottom":"right";h=DC(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},hhe=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=e,u={x:n,y:r},f=N1(a),d=sF(f);let p=u[f],h=u[d];const m="function"==typeof s?s({...o,placement:a}):s,g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+g.mainAxis,n=o.reference[f]+o.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var y,v,b,_;const e="y"===f?"width":"height",t=["top","left"].includes(vm(a)),n=o.reference[d]-o.floating[e]+(t&&null!=(y=null==(v=i.offset)?void 0:v[d])?y:0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:null!=(b=null==(_=i.offset)?void 0:_[d])?b:0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},mhe=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:a,elements:o}=t,{apply:i,...s}=e,c=await Qy(t,s),l=vm(n),u=D_(n);let f,d;"top"===l||"bottom"===l?(f=l,d=u===(await(null==a.isRTL?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(d=l,f="end"===u?"top":"bottom");const p=Nh(c.left,0),h=Nh(c.right,0),m=Nh(c.top,0),g=Nh(c.bottom,0),y={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==m||0!==g?m+g:Nh(c.top,c.bottom)):c[f]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==h?p+h:Nh(c.left,c.right)):c[d])},v=await a.getDimensions(o.floating);null==i||i({...t,...y});const b=await a.getDimensions(o.floating);return v.width!==b.width||v.height!==b.height?{reset:{rects:!0}}:{}}}};function cF(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function uu(e){if(null==e)return window;if(!cF(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function N_(e){return uu(e).getComputedStyle(e)}function tu(e){return cF(e)?"":e?(e.nodeName||"").toLowerCase():""}function lF(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Ol(e){return e instanceof uu(e).HTMLElement}function up(e){return e instanceof uu(e).Element}function EA(e){return!(typeof ShadowRoot>"u")&&(e instanceof uu(e).ShadowRoot||e instanceof ShadowRoot)}function bk(e){const{overflow:t,overflowX:n,overflowY:r}=N_(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function ghe(e){return["table","td","th"].includes(tu(e))}function PM(e){const t=/firefox/i.test(lF()),n=N_(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function fF(){return!/^((?!chrome|android).)*safari/i.test(lF())}const OM=Math.min,xy=Math.max,tw=Math.round;function nu(e,t,n){var r,a,o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,l=1;t&&Ol(e)&&(c=e.offsetWidth>0&&tw(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&tw(s.height)/e.offsetHeight||1);const u=up(e)?uu(e):window,f=!fF()&&n,d=(s.left+(f&&null!=(r=null==(a=u.visualViewport)?void 0:a.offsetLeft)?r:0))/c,p=(s.top+(f&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetTop)?o:0))/l,h=s.width/c,m=s.height/l;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function rp(e){return(t=e,(t instanceof uu(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function wk(e){return up(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function uF(e){return nu(rp(e)).left+wk(e).scrollLeft}function yhe(e,t,n){const r=Ol(t),a=rp(t),o=nu(e,r&&function(e){const t=nu(e);return tw(t.width)!==e.offsetWidth||tw(t.height)!==e.offsetHeight}(t),"fixed"===n);let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==tu(t)||bk(a))&&(i=wk(t)),Ol(t)){const e=nu(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=uF(a));return{x:o.left+i.scrollLeft-s.x,y:o.top+i.scrollTop-s.y,width:o.width,height:o.height}}function dF(e){return"html"===tu(e)?e:e.assignedSlot||e.parentNode||(EA(e)?e.host:null)||rp(e)}function zM(e){return Ol(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function NC(e){const t=uu(e);let n=zM(e);for(;n&&ghe(n)&&"static"===getComputedStyle(n).position;)n=zM(n);return n&&("html"===tu(n)||"body"===tu(n)&&"static"===getComputedStyle(n).position&&!PM(n))?t:n||function(e){let t=dF(e);for(EA(t)&&(t=t.host);Ol(t)&&!["html","body"].includes(tu(t));){if(PM(t))return t;t=t.parentNode}return null}(e)||t}function MM(e){if(Ol(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=nu(e);return{width:t.width,height:t.height}}function pF(e){const t=dF(e);return["html","body","#document"].includes(tu(t))?e.ownerDocument.body:Ol(t)&&bk(t)?t:pF(t)}function nw(e,t){var n;void 0===t&&(t=[]);const r=pF(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=uu(r),i=a?[o].concat(o.visualViewport||[],bk(r)?r:[]):r,s=t.concat(i);return a?s:s.concat(nw(i))}function DM(e,t,n){return"viewport"===t?Jb(function(e,t){const n=uu(e),r=rp(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,c=0;if(a){o=a.width,i=a.height;const e=fF();(e||!e&&"fixed"===t)&&(s=a.offsetLeft,c=a.offsetTop)}return{width:o,height:i,x:s,y:c}}(e,n)):up(t)?function(e,t){const n=nu(e,!1,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft;return{top:r,left:a,x:a,y:r,right:a+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):Jb(function(e){var t;const n=rp(e),r=wk(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=xy(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=xy(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let s=-r.scrollLeft+uF(e);const c=-r.scrollTop;return"rtl"===N_(a||n).direction&&(s+=xy(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:c}}(rp(e)))}function _he(e){const t=nw(e),n=["absolute","fixed"].includes(N_(e).position)&&Ol(e)?NC(e):e;return up(n)?t.filter((e=>up(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&EA(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==tu(e))):[]}const vhe={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?_he(t):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=DM(t,n,a);return e.top=xy(r.top,e.top),e.right=OM(r.right,e.right),e.bottom=OM(r.bottom,e.bottom),e.left=xy(r.left,e.left),e}),DM(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const a=Ol(n),o=rp(n);if(n===o)return t;let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((a||!a&&"fixed"!==r)&&(("body"!==tu(n)||bk(o))&&(i=wk(n)),Ol(n))){const e=nu(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-i.scrollLeft+s.x,y:t.y-i.scrollTop+s.y}},isElement:up,getDimensions:MM,getOffsetParent:NC,getDocumentElement:rp,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:yhe(t,NC(n),r),floating:{...MM(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===N_(e).direction};function bhe(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=!0,animationFrame:s=!1}=r,c=a&&!s,l=o&&!s,u=c||l?[...up(e)?nw(e):[],...nw(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));let f,d=null;if(i){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),up(e)&&!s&&d.observe(e),d.observe(t)}let p=s?nu(e):null;return s&&function t(){const r=nu(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(f)}}const whe=(e,t,n)=>ohe(e,t,{platform:vhe,...n});var LC=typeof document<"u"?v.useLayoutEffect:v.useEffect;function jC(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!jC(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(!("_owner"===n&&e.$$typeof||jC(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function khe(e){const t=v.useRef(e);return LC((()=>{t.current=e})),t}function xhe(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:a}=void 0===e?{}:e;const o=v.useRef(null),i=v.useRef(null),s=khe(a),c=v.useRef(null),[l,u]=v.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[f,d]=v.useState(t);jC(null==f?void 0:f.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||d(t);const p=v.useCallback((()=>{!o.current||!i.current||whe(o.current,i.current,{middleware:f,placement:n,strategy:r}).then((e=>{h.current&&Ll.flushSync((()=>{u(e)}))}))}),[f,n,r]);LC((()=>{h.current&&p()}),[p]);const h=v.useRef(!1);LC((()=>(h.current=!0,()=>{h.current=!1})),[]);const m=v.useCallback((()=>{if("function"==typeof c.current&&(c.current(),c.current=null),o.current&&i.current)if(s.current){const e=s.current(o.current,i.current,p);c.current=e}else p()}),[p,s]),g=v.useCallback((e=>{o.current=e,m()}),[m]),y=v.useCallback((e=>{i.current=e,m()}),[m]),b=v.useMemo((()=>({reference:o,floating:i})),[]);return v.useMemo((()=>({...l,update:p,refs:b,reference:g,floating:y})),[l,p,b,g,y])}const She=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn:e=>function(e){return Object.prototype.hasOwnProperty.call(e,"current")}(t)?null!=t.current?TM({element:t.current,padding:n}).fn(e):{}:t?TM({element:t,padding:n}).fn(e):{}}};function Ehe(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Che(...e){return t=>e.forEach((e=>Ehe(e,t)))}const hF=v.forwardRef(((e,t)=>{const{children:n,...r}=e,a=v.Children.toArray(n),o=a.find(The);if(o){const e=o.props.children,n=a.map((t=>t===o?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t));return v.createElement(BC,Ie({},r,{ref:t}),v.isValidElement(e)?v.cloneElement(e,void 0,n):null)}return v.createElement(BC,Ie({},r,{ref:t}),n)}));hF.displayName="Slot";const BC=v.forwardRef(((e,t)=>{const{children:n,...r}=e;return v.isValidElement(n)?v.cloneElement(n,{...Ahe(r,n.props),ref:Che(t,n.ref)}):v.Children.count(n)>1?v.Children.only(null):null}));BC.displayName="SlotClone";const Rhe=({children:e})=>v.createElement(v.Fragment,null,e);function The(e){return v.isValidElement(e)&&e.type===Rhe}function Ahe(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}const Ihe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],FC=Ihe.reduce(((e,t)=>{const n=v.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?hF:t;return v.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),v.createElement(o,Ie({},a,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function $he(e,t){e&&Ll.flushSync((()=>e.dispatchEvent(t)))}function Phe(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Ohe(...e){return t=>e.forEach((e=>Phe(e,t)))}function zhe(...e){return v.useCallback(Ohe(...e),e)}const Vh=null!=globalThis&&globalThis.document?v.useLayoutEffect:()=>{};function Mhe(e){const[t,n]=v.useState(void 0);return Vh((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const mF="Popper",[CA,gF]=aF(mF),[DZe,Dhe]=CA(mF),rw="PopperContent",[Nhe,NZe]=CA(rw),[Lhe,jhe]=CA(rw,{hasParent:!1,positionUpdateFns:new Set}),Bhe=v.forwardRef(((e,t)=>{var n,r,a,o,i,s,c,l;const{__scopePopper:u,side:f="bottom",sideOffset:d=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:_=!1,avoidCollisions:w=!0,onPlaced:k,...x}=e,S=Dhe(rw,u),[E,A]=v.useState(null),C=zhe(t,(e=>A(e))),[z,I]=v.useState(null),T=Mhe(z),R=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,j=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,P=f+("center"!==p?"-"+p:""),O="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},N=Array.isArray(g)?g:[g],M=N.length>0,D={padding:O,boundary:N.filter(Uhe),altBoundary:M},{reference:B,floating:L,strategy:q,x:V,y:F,placement:U,middlewareData:$,update:W}=xhe({strategy:"fixed",placement:P,whileElementsMounted:bhe,middleware:[Vhe(),dhe({mainAxis:d+j,alignmentAxis:h}),w?phe({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?hhe():void 0,...D}):void 0,z?She({element:z,padding:m}):void 0,w?fhe({...D}):void 0,mhe({...D,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),qhe({arrowWidth:R,arrowHeight:j}),_?uhe({strategy:"referenceHidden"}):void 0].filter(Fhe)});Vh((()=>{B(S.anchor)}),[B,S.anchor]);const H=null!==V&&null!==F,[G,Q]=yF(U),K=vk(k);Vh((()=>{H&&(null==K||K())}),[H,K]);const Y=null===(a=$.arrow)||void 0===a?void 0:a.x,Z=null===(o=$.arrow)||void 0===o?void 0:o.y,X=0!==(null===(i=$.arrow)||void 0===i?void 0:i.centerOffset),[J,ee]=v.useState();Vh((()=>{E&&ee(window.getComputedStyle(E).zIndex)}),[E]);const{hasParent:te,positionUpdateFns:ne}=jhe(rw,u),re=!te;v.useLayoutEffect((()=>{if(!re)return ne.add(W),()=>{ne.delete(W)}}),[re,ne,W]),Vh((()=>{re&&H&&Array.from(ne).reverse().forEach((e=>requestAnimationFrame(e)))}),[re,H,ne]);const ae={"data-side":G,"data-align":Q,...x,ref:C,style:{...x.style,animation:H?void 0:"none",opacity:null!==(s=$.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return v.createElement("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:q,left:0,top:0,transform:H?`translate3d(${Math.round(V)}px, ${Math.round(F)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(c=$.transformOrigin)||void 0===c?void 0:c.x,null===(l=$.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},v.createElement(Nhe,{scope:u,placedSide:G,onArrowChange:I,arrowX:Y,arrowY:Z,shouldHideArrow:X},re?v.createElement(Lhe,{scope:u,hasParent:!0,positionUpdateFns:ne},v.createElement(FC.div,ae)):v.createElement(FC.div,ae)))}));function Fhe(e){return void 0!==e}function Uhe(e){return null!==e}const Vhe=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:a}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${a}px`),{}}}),qhe=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a,o,i;const{placement:s,rects:c,middlewareData:l}=t,u=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),f=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[p,h]=yF(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(r=null===(a=l.arrow)||void 0===a?void 0:a.x)&&void 0!==r?r:0)+f/2,y=(null!==(o=null===(i=l.arrow)||void 0===i?void 0:i.y)&&void 0!==o?o:0)+d/2;let v="",b="";return"bottom"===p?(v=u?m:`${g}px`,b=-d+"px"):"top"===p?(v=u?m:`${g}px`,b=`${c.floating.height+d}px`):"right"===p?(v=-d+"px",b=u?m:`${y}px`):"left"===p&&(v=`${c.floating.width+d}px`,b=u?m:`${y}px`),{data:{x:v,y:b}}}});function yF(e){const[t,n="center"]=e.split("-");return[t,n]}const Whe=Bhe;function Hhe(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Ghe(...e){return t=>e.forEach((e=>Hhe(e,t)))}function Khe(...e){return v.useCallback(Ghe(...e),e)}function Qhe(e,t){return v.useReducer(((e,n)=>t[e][n]??e),e)}const _F=e=>{const{present:t,children:n}=e,r=Yhe(t),a="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),o=Khe(r.ref,a.ref);return"function"==typeof n||r.isPresent?v.cloneElement(a,{ref:o}):null};function Yhe(e){const[t,n]=v.useState(),r=v.useRef({}),a=v.useRef(e),o=v.useRef("none"),i=e?"mounted":"unmounted",[s,c]=Qhe(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect((()=>{const e=Jv(r.current);o.current="mounted"===s?e:"none"}),[s]),Vh((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=Jv(t);e?c("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?c("UNMOUNT"):c(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),a.current=e}}),[e,c]),Vh((()=>{if(t){const e=e=>{const n=Jv(r.current).includes(e.animationName);e.target===t&&n&&Ll.flushSync((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(o.current=Jv(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Jv(e){return(null==e?void 0:e.animationName)||"none"}function Zhe(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Xhe(...e){return t=>e.forEach((e=>Zhe(e,t)))}function Jhe(...e){return v.useCallback(Xhe(...e),e)}function eme(e,t=(null==globalThis?void 0:globalThis.document)){const n=vk(e);v.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}_F.displayName="Presence";const UC="dismissableLayer.update",tme="dismissableLayer.pointerDownOutside",nme="dismissableLayer.focusOutside";let NM;const rme=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ame=v.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...l}=e,u=v.useContext(rme),[f,d]=v.useState(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,h]=v.useState({}),m=Jhe(t,(e=>d(e))),g=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),_=f?g.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,k=_>=b,x=ome((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));!k||n||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p),S=ime((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==i||i(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p);return eme((e=>{_===u.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),p),v.useEffect((()=>{if(f)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(NM=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),LM(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=NM)}}),[f,p,r,u]),v.useEffect((()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),LM())}),[f,u]),v.useEffect((()=>{const e=()=>h({});return document.addEventListener(UC,e),()=>document.removeEventListener(UC,e)}),[]),v.createElement(FC.div,Ie({},l,{ref:m,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Wh(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Wh(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Wh(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function ome(e,t=(null==globalThis?void 0:globalThis.document)){const n=vk(e),r=v.useRef(!1),a=v.useRef((()=>{}));return v.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){vF(tme,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ime(e,t=(null==globalThis?void 0:globalThis.document)){const n=vk(e),r=v.useRef(!1);return v.useEffect((()=>{const e=e=>{e.target&&!r.current&&vF(nme,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function LM(){const e=new CustomEvent(UC);document.dispatchEvent(e)}function vF(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?$he(a,o):a.dispatchEvent(o)}let $E;const bF="HoverCard",[wF,LZe]=aF(bF,[gF]),sme=gF(),[jZe,kF]=wF(bF),cme="HoverCardPortal",[BZe,lme]=wF(cme,{forceMount:void 0}),VC="HoverCardContent",fme=v.forwardRef(((e,t)=>{const n=lme(VC,e.__scopeHoverCard),{forceMount:r=n.forceMount,...a}=e,o=kF(VC,e.__scopeHoverCard);return v.createElement(_F,{present:r||o.open},v.createElement(ume,Ie({"data-state":o.open?"open":"closed"},a,{onPointerEnter:Wh(e.onPointerEnter,jM(o.onOpen)),onPointerLeave:Wh(e.onPointerLeave,jM(o.onClose)),ref:t})))})),ume=v.forwardRef(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,...s}=e,c=kF(VC,n),l=sme(n),u=v.useRef(null),f=ahe(t,u),[d,p]=v.useState(!1);return v.useEffect((()=>{if(d){const e=document.body;return $E=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=$E,e.style.webkitUserSelect=$E}}}),[d]),v.useEffect((()=>{if(u.current){const e=()=>{p(!1),c.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&(c.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}}),[c.isPointerDownOnContentRef,c.hasSelectionRef]),v.useEffect((()=>{u.current&&dme(u.current).forEach((e=>e.setAttribute("tabindex","-1")))})),v.createElement(ame,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:Wh(o,(e=>{e.preventDefault()})),onDismiss:c.onDismiss},v.createElement(Whe,Ie({},l,s,{onPointerDown:Wh(s.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&p(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0})),ref:f,style:{...s.style,userSelect:d?"text":void 0,WebkitUserSelect:d?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}));function jM(e){return t=>"touch"===t.pointerType?void 0:e()}function dme(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}const xF=fme,pme=v.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},a)=>B.jsx(xF,{ref:a,align:t,sideOffset:n,className:xe("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})));pme.displayName=xF.displayName;const SF=v.forwardRef((({className:e,type:t,...n},r)=>{const{error:a}=vp();return B.jsx("input",{type:t,className:xe("flex w-full rounded-m px-4 py-3.5 text-base text-slate-900 outline outline-1 outline-input ring-offset-background transition-all duration-200 ease-in-out file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-base placeholder:text-muted-foreground placeholder:text-slate-400 hover:outline-2 hover:outline-slate-400 focus-visible:bg-slate-50 focus-visible:text-slate-900 focus-visible:outline-2 focus-visible:outline-blue_120 disabled:cursor-not-allowed disabled:text-slate-300 disabled:outline-slate-200",{"bg-red_30_17 outline-red-dark":!!a},e),ref:r,...n})}));SF.displayName="Input";const hme=v.forwardRef(((e,t)=>v.createElement(wt.label,Ie({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))),EF=hme,mme=jl("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),CF=v.forwardRef((({className:e,...t},n)=>B.jsx(EF,{ref:n,className:xe(mme(),e),...t})));CF.displayName=EF.displayName;const RF="Radio",[gme,TF]=Zo(RF),[yme,_me]=gme(RF),vme=v.forwardRef(((e,t)=>{const{__scopeRadio:n,name:r,checked:a=!1,required:o,disabled:i,value:s="on",onCheck:c,...l}=e,[u,f]=v.useState(null),d=un(t,(e=>f(e))),p=v.useRef(!1),h=!u||!!u.closest("form");return v.createElement(yme,{scope:n,checked:a,disabled:i},v.createElement(wt.button,Ie({type:"button",role:"radio","aria-checked":a,"data-state":AF(a),"data-disabled":i?"":void 0,disabled:i,value:s},l,{ref:d,onClick:st(e.onClick,(e=>{a||null==c||c(),h&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),h&&v.createElement(kme,{control:u,bubbles:!p.current,name:r,value:s,checked:a,required:o,disabled:i,style:{transform:"translateX(-100%)"}}))})),bme="RadioIndicator",wme=v.forwardRef(((e,t)=>{const{__scopeRadio:n,forceMount:r,...a}=e,o=_me(bme,n);return v.createElement(zs,{present:r||o.checked},v.createElement(wt.span,Ie({"data-state":AF(o.checked),"data-disabled":o.disabled?"":void 0},a,{ref:t})))})),kme=e=>{const{control:t,checked:n,bubbles:r=!0,...a}=e,o=v.useRef(null),i=sk(n),s=ck(t);return v.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&a){const t=new Event("click",{bubbles:r});a.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),v.createElement("input",Ie({type:"radio","aria-hidden":!0,defaultChecked:n},a,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function AF(e){return e?"checked":"unchecked"}const xme=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],IF="RadioGroup",[Sme,FZe]=Zo(IF,[M1,TF]),$F=M1(),PF=TF(),[Eme,Cme]=Sme(IF),Rme=v.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:a,value:o,required:i=!1,disabled:s=!1,orientation:c,dir:l,loop:u=!0,onValueChange:f,...d}=e,p=$F(n),h=aA(l),[m,g]=ip({prop:o,defaultProp:a,onChange:f});return v.createElement(Eme,{scope:n,name:r,required:i,disabled:s,value:m,onValueChange:g},v.createElement(hA,Ie({asChild:!0},p,{orientation:c,dir:h,loop:u}),v.createElement(wt.div,Ie({role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":s?"":void 0,dir:h},d,{ref:t}))))})),Tme="RadioGroupItem",Ame=v.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...a}=e,o=Cme(Tme,n),i=o.disabled||r,s=$F(n),c=PF(n),l=v.useRef(null),u=un(t,l),f=o.value===a.value,d=v.useRef(!1);return v.useEffect((()=>{const e=e=>{xme.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),v.createElement(mA,Ie({asChild:!0},s,{focusable:!i,active:f}),v.createElement(vme,Ie({disabled:i,required:o.required,checked:f},c,a,{name:o.name,ref:u,onCheck:()=>o.onValueChange(a.value),onKeyDown:st((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:st(a.onFocus,(()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())}))})))})),Ime=v.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,a=PF(n);return v.createElement(wme,Ie({},a,r,{ref:t}))})),OF=Rme,zF=Ame,$me=Ime,Pme=v.forwardRef((({className:e,...t},n)=>B.jsx(OF,{className:xe("grid gap-2",e),...t,ref:n})));Pme.displayName=OF.displayName;const Ome=v.forwardRef((({className:e,...t},n)=>B.jsx(zF,{ref:n,className:xe("aspect-square size-6 rounded-full border border-slate-300 disabled:cursor-not-allowed disabled:border-slate-100 disabled:bg-slate-100 data-[state=checked]:border-blue_100 data-[state=checked]:bg-blue_100 md:hover:border-2",e),...t,children:B.jsx($me,{className:"flex items-center justify-center",children:B.jsx($te,{className:"stack-animate size-2 border-none",style:{fill:t.disabled?"var(--slate-300)":"white",color:t.disabled?"var(--slate-300)":"white"}})})})));Ome.displayName=zF.displayName;const zme=U5,Mme=Qw,MF=v.forwardRef((({className:e,...t},n)=>B.jsx(A1,{className:xe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));MF.displayName=A1.displayName;const Dme=jl("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),DF=v.forwardRef((({side:e="right",className:t,overlayClassName:n,children:r,...a},o)=>B.jsxs(Mme,{children:[B.jsx(MF,{className:xe("bg-slate-900/70",n)}),B.jsxs(I1,{ref:o,className:xe(Dme({side:e}),t),...a,children:[r,B.jsxs(Yw,{className:"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[B.jsx(uT,{className:"h-4 w-4"}),B.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));DF.displayName=I1.displayName;const NF=({className:e,...t})=>B.jsx("div",{className:xe("flex flex-col space-y-2 text-center sm:text-left",e),...t});NF.displayName="SheetHeader";const LF=v.forwardRef((({className:e,...t},n)=>B.jsx(R_,{ref:n,className:xe("text-lg font-semibold text-foreground",e),...t})));LF.displayName=R_.displayName;const jF=v.forwardRef((({className:e,...t},n)=>B.jsx(T_,{ref:n,className:xe("text-sm text-muted-foreground",e),...t})));jF.displayName=T_.displayName;const[kk,UZe]=Zo("Tooltip",[z1]),RA=z1(),Nme="TooltipProvider",Lme=700,qC="tooltip.open",[jme,TA]=kk(Nme),Bme=e=>{const{__scopeTooltip:t,delayDuration:n=Lme,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,[i,s]=v.useState(!0),c=v.useRef(!1),l=v.useRef(0);return v.useEffect((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),v.createElement(jme,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:v.useCallback((()=>{window.clearTimeout(l.current),s(!1)}),[]),onClose:v.useCallback((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:c,onPointerInTransitChange:v.useCallback((e=>{c.current=e}),[]),disableHoverableContent:a},o)},AA="Tooltip",[Fme,xk]=kk(AA),BF=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:s}=e,c=TA(AA,e.__scopeTooltip),l=RA(t),[u,f]=v.useState(null),d=tp(),p=v.useRef(0),h=i??c.disableHoverableContent,m=s??c.delayDuration,g=v.useRef(!1),[y=!1,b]=ip({prop:r,defaultProp:a,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(qC))):c.onClose(),null==o||o(e)}}),_=v.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),w=v.useCallback((()=>{window.clearTimeout(p.current),g.current=!1,b(!0)}),[b]),k=v.useCallback((()=>{window.clearTimeout(p.current),b(!1)}),[b]),x=v.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{g.current=!0,b(!0)}),m)}),[m,b]);return v.useEffect((()=>()=>window.clearTimeout(p.current)),[]),v.createElement(lB,l,v.createElement(Fme,{scope:t,contentId:d,open:y,stateAttribute:_,trigger:u,onTriggerChange:f,onTriggerEnter:v.useCallback((()=>{c.isOpenDelayed?x():w()}),[c.isOpenDelayed,x,w]),onTriggerLeave:v.useCallback((()=>{h?k():window.clearTimeout(p.current)}),[k,h]),onOpen:w,onClose:k,disableHoverableContent:h},n))},BM="TooltipTrigger",FF=v.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=xk(BM,n),o=TA(BM,n),i=RA(n),s=un(t,v.useRef(null),a.onTriggerChange),c=v.useRef(!1),l=v.useRef(!1),u=v.useCallback((()=>c.current=!1),[]);return v.useEffect((()=>()=>document.removeEventListener("pointerup",u)),[u]),v.createElement(uA,Ie({asChild:!0},i),v.createElement(wt.button,Ie({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},r,{ref:s,onPointerMove:st(e.onPointerMove,(e=>{"touch"!==e.pointerType&&!l.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),l.current=!0)})),onPointerLeave:st(e.onPointerLeave,(()=>{a.onTriggerLeave(),l.current=!1})),onPointerDown:st(e.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",u,{once:!0})})),onFocus:st(e.onFocus,(()=>{c.current||a.onOpen()})),onBlur:st(e.onBlur,a.onClose),onClick:st(e.onClick,a.onClose)})))})),Ume="TooltipPortal",[VZe,Vme]=kk(Ume,{forceMount:void 0}),Yy="TooltipContent",UF=v.forwardRef(((e,t)=>{const n=Vme(Yy,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,i=xk(Yy,e.__scopeTooltip);return v.createElement(zs,{present:r||i.open},i.disableHoverableContent?v.createElement(VF,Ie({side:a},o,{ref:t})):v.createElement(qme,Ie({side:a},o,{ref:t})))})),qme=v.forwardRef(((e,t)=>{const n=xk(Yy,e.__scopeTooltip),r=TA(Yy,e.__scopeTooltip),a=v.useRef(null),o=un(t,a),[i,s]=v.useState(null),{trigger:c,onClose:l}=n,u=a.current,{onPointerInTransitChange:f}=r,d=v.useCallback((()=>{s(null),f(!1)}),[f]),p=v.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},a=Yme([...Gme(r,Hme(r,n.getBoundingClientRect())),...Kme(t.getBoundingClientRect())]);s(a),f(!0)}),[f]);return v.useEffect((()=>()=>d()),[d]),v.useEffect((()=>{if(c&&u){const e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}}),[c,u,p,d]),v.useEffect((()=>{if(i){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==u?void 0:u.contains(t)),a=!Qme(n,i);r?d():a&&(d(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,u,i,l,d]),v.createElement(VF,Ie({},e,{ref:o}))})),[Wme,qZe]=kk(AA,{isInside:!1}),VF=v.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...s}=e,c=xk(Yy,n),l=RA(n),{onClose:u}=c;return v.useEffect((()=>(document.addEventListener(qC,u),()=>document.removeEventListener(qC,u))),[u]),v.useEffect((()=>{if(c.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(c.trigger)&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,u]),v.createElement(Ww,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:u},v.createElement(dA,Ie({"data-state":c.stateAttribute},l,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),v.createElement(mT,null,r),v.createElement(Wme,{scope:n,isInside:!0},v.createElement(Kde,{id:c.contentId,role:"tooltip"},a||r))))}));function Hme(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Gme(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function Kme(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function Qme(e,t){const{x:n,y:r}=e;let a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const i=t[e].x,s=t[e].y,c=t[o].x,l=t[o].y;s>r!=l>r&&n<(c-i)*(r-s)/(l-s)+i&&(a=!a)}return a}function Yme(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),Zme(t)}function Zme(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const Xme=BF,Jme=FF,qF=UF;var PE,FM,OE,UM,zE,VM,ME,qM,DE,WM,NE,HM,LE,GM,jE,KM,BE,QM,FE,YM,UE,ZM,VE,XM,qE,JM,WE,eD,HE,tD,GE,nD,KE,rD,QE,aD,YE,oD,ZE,iD,XE,sD,JE,cD,e4,lD,t4,fD,n4,uD,r4,dD,a4,pD,o4,hD,i4,mD,s4,gD,c4,yD,l4,_D,f4,vD,u4,bD,d4,wD,p4,kD,h4,xD,m4,SD,g4,ED,y4,CD,_4,RD;function WF(){if(FM)return PE;FM=1;var e=TL(),t=e&&new e;return PE=t}function HF(){if(UM)return OE;UM=1;var e=VT(),t=WF();return OE=t?function(e,n){return t.set(e,n),e}:e}function Sk(){if(VM)return zE;VM=1;var e=ik(),t=$c();return zE=function(n){return function(){var r=arguments;switch(r.length){case 0:return new n;case 1:return new n(r[0]);case 2:return new n(r[0],r[1]);case 3:return new n(r[0],r[1],r[2]);case 4:return new n(r[0],r[1],r[2],r[3]);case 5:return new n(r[0],r[1],r[2],r[3],r[4]);case 6:return new n(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new n(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var a=e(n.prototype),o=n.apply(a,r);return t(o)?o:a}},zE}function ege(){if(qM)return ME;qM=1;var e=Sk(),t=Xo();return ME=function(n,r,a){var o=1&r,i=e(n);return function e(){return(this&&this!==t&&this instanceof e?i:n).apply(o?a:this,arguments)}},ME}function GF(){if(WM)return DE;WM=1;var e=Math.max;return DE=function(t,n,r,a){for(var o=-1,i=t.length,s=r.length,c=-1,l=n.length,u=e(i-s,0),f=Array(l+u),d=!a;++c<l;)f[c]=n[c];for(;++o<s;)(d||o<i)&&(f[r[o]]=t[o]);for(;u--;)f[c++]=t[o++];return f}}function KF(){if(HM)return NE;HM=1;var e=Math.max;return NE=function(t,n,r,a){for(var o=-1,i=t.length,s=-1,c=r.length,l=-1,u=n.length,f=e(i-c,0),d=Array(f+u),p=!a;++o<f;)d[o]=t[o];for(var h=o;++l<u;)d[h+l]=n[l];for(;++s<c;)(p||o<i)&&(d[h+r[s]]=t[o++]);return d}}function tge(){if(GM)return LE;return GM=1,LE=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}}function IA(){if(KM)return jE;return KM=1,jE=function(){}}function $A(){if(QM)return BE;QM=1;var e=ik(),t=IA();function n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}return n.prototype=e(t.prototype),n.prototype.constructor=n,BE=n}function QF(){if(YM)return FE;YM=1;var e=WF(),t=PL();return FE=e?function(t){return e.get(t)}:t}function nge(){if(ZM)return UE;ZM=1;return UE={}}function rge(){if(XM)return VE;XM=1;var e=nge(),t=Object.prototype.hasOwnProperty;return VE=function(n){for(var r=n.name+"",a=e[r],o=t.call(e,r)?a.length:0;o--;){var i=a[o],s=i.func;if(null==s||s==n)return i.name}return r}}function YF(){if(JM)return qE;JM=1;var e=ik(),t=IA();function n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}return n.prototype=e(t.prototype),n.prototype.constructor=n,qE=n}function age(){if(eD)return WE;eD=1;var e=$A(),t=YF(),n=ok();return WE=function(r){if(r instanceof e)return r.clone();var a=new t(r.__wrapped__,r.__chain__);return a.__actions__=n(r.__actions__),a.__index__=r.__index__,a.__values__=r.__values__,a}}function oge(){if(tD)return HE;tD=1;var e=$A(),t=YF(),n=IA(),r=vi(),a=Yi(),o=age(),i=Object.prototype.hasOwnProperty;function s(n){if(a(n)&&!r(n)&&!(n instanceof e)){if(n instanceof t)return n;if(i.call(n,"__wrapped__"))return o(n)}return new t(n)}return s.prototype=n.prototype,s.prototype.constructor=s,HE=s}function ige(){if(nD)return GE;nD=1;var e=$A(),t=QF(),n=rge(),r=oge();return GE=function(a){var o=n(a),i=r[o];if("function"!=typeof i||!(o in e.prototype))return!1;if(a===i)return!0;var s=t(i);return!!s&&a===s[0]}}function ZF(){if(rD)return KE;rD=1;var e=HF(),t=zL()(e);return KE=t}function sge(){if(aD)return QE;aD=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;return QE=function(n){var r=n.match(e);return r?r[1].split(t):[]}}function cge(){if(oD)return YE;oD=1;var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;return YE=function(t,n){var r=n.length;if(!r)return t;var a=r-1;return n[a]=(r>1?"& ":"")+n[a],n=n.join(r>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+n+"] */\n")}}function lge(){if(iD)return ZE;iD=1;var e=HT(),t=Vie(),n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];return ZE=function(r,a){return e(n,(function(e){var n="_."+e[0];a&e[1]&&!t(r,n)&&r.push(n)})),r.sort()}}function XF(){if(sD)return XE;sD=1;var e=sge(),t=cge(),n=ML(),r=lge();return XE=function(a,o,i){var s=o+"";return n(a,t(s,r(e(s),i)))}}function JF(){if(cD)return JE;cD=1;var e=ige(),t=ZF(),n=XF();return JE=function(r,a,o,i,s,c,l,u,f,d){var p=8&a;a|=p?32:64,4&(a&=~(p?64:32))||(a&=-4);var h=[r,a,s,p?c:void 0,p?l:void 0,p?void 0:c,p?void 0:l,u,f,d],m=o.apply(void 0,h);return e(r)&&t(m,h),m.placeholder=i,n(m,r,a)}}function eU(){if(lD)return e4;return lD=1,e4=function(e){return e.placeholder}}function fge(){if(fD)return t4;fD=1;var e=ok(),t=LT(),n=Math.min;return t4=function(r,a){for(var o=r.length,i=n(a.length,o),s=e(r);i--;){var c=a[i];r[i]=t(c,o)?s[c]:void 0}return r}}function PA(){if(uD)return n4;uD=1;var e="__lodash_placeholder__";return n4=function(t,n){for(var r=-1,a=t.length,o=0,i=[];++r<a;){var s=t[r];(s===n||s===e)&&(t[r]=e,i[o++]=r)}return i}}function tU(){if(dD)return r4;dD=1;var e=GF(),t=KF(),n=tge(),r=Sk(),a=JF(),o=eU(),i=fge(),s=PA(),c=Xo();return r4=function l(u,f,d,p,h,m,g,y,v,b){var _=128&f,w=1&f,k=2&f,x=24&f,S=512&f,E=k?void 0:r(u);return function A(){for(var C=arguments.length,z=Array(C),I=C;I--;)z[I]=arguments[I];if(x)var T=o(A),R=n(z,T);if(p&&(z=e(z,p,h,x)),m&&(z=t(z,m,g,x)),C-=R,x&&C<b){var j=s(z,T);return a(u,f,l,A.placeholder,d,z,j,y,v,b-C)}var P=w?d:this,O=k?P[u]:u;return C=z.length,y?z=i(z,y):S&&C>1&&z.reverse(),_&&v<C&&(z.length=v),this&&this!==c&&this instanceof A&&(O=E||r(O)),O.apply(P,z)}},r4}function uge(){if(pD)return a4;pD=1;var e=qT(),t=Sk(),n=tU(),r=JF(),a=eU(),o=PA(),i=Xo();return a4=function(s,c,l){var u=t(s);return function t(){for(var f=arguments.length,d=Array(f),p=f,h=a(t);p--;)d[p]=arguments[p];var m=f<3&&d[0]!==h&&d[f-1]!==h?[]:o(d,h);return(f-=m.length)<l?r(s,c,n,t.placeholder,void 0,d,m,void 0,void 0,l-f):e(this&&this!==i&&this instanceof t?u:s,this,d)}},a4}function dge(){if(hD)return o4;hD=1;var e=qT(),t=Sk(),n=Xo();return o4=function(r,a,o,i){var s=1&a,c=t(r);return function t(){for(var a=-1,l=arguments.length,u=-1,f=i.length,d=Array(f+l),p=this&&this!==n&&this instanceof t?c:r;++u<f;)d[u]=i[u];for(;l--;)d[u++]=arguments[++a];return e(p,s?o:this,d)}},o4}function pge(){if(mD)return i4;mD=1;var e=GF(),t=KF(),n=PA(),r="__lodash_placeholder__",a=128,o=Math.min;return i4=function(i,s){var c=i[1],l=s[1],u=c|l,f=u<131,d=l==a&&8==c||l==a&&256==c&&i[7].length<=s[8]||384==l&&s[7].length<=s[8]&&8==c;if(!f&&!d)return i;1&l&&(i[2]=s[2],u|=1&c?0:4);var p=s[3];if(p){var h=i[3];i[3]=h?e(h,p,s[4]):p,i[4]=h?n(i[3],r):s[4]}return(p=s[5])&&(h=i[5],i[5]=h?t(h,p,s[6]):p,i[6]=h?n(i[5],r):s[6]),(p=s[7])&&(i[7]=p),l&a&&(i[8]=null==i[8]?s[8]:o(i[8],s[8])),null==i[9]&&(i[9]=s[9]),i[0]=s[0],i[1]=u,i}}function OA(){if(gD)return s4;gD=1;var e=HF(),t=ege(),n=uge(),r=tU(),a=dge(),o=QF(),i=pge(),s=ZF(),c=XF(),l=jL(),u=Math.max;return s4=function(f,d,p,h,m,g,y,v){var b=2&d;if(!b&&"function"!=typeof f)throw new TypeError("Expected a function");var _=h?h.length:0;if(_||(d&=-97,h=m=void 0),y=void 0===y?y:u(l(y),0),v=void 0===v?v:l(v),_-=m?m.length:0,64&d){var w=h,k=m;h=m=void 0}var x=b?void 0:o(f),S=[f,d,p,h,m,w,k,g,y,v];if(x&&i(S,x),f=S[0],d=S[1],p=S[2],h=S[3],m=S[4],!(v=S[9]=void 0===S[9]?b?0:f.length:u(S[9]-_,0))&&24&d&&(d&=-25),d&&1!=d)E=8==d||16==d?n(f,d,v):32!=d&&33!=d||m.length?r.apply(void 0,S):a(f,d,p,h);else var E=t(f,d,p);return c((x?e:s)(E,S),f,d)}}function hge(){if(yD)return c4;yD=1;var e=OA();return c4=function(t,n,r){return n=r?void 0:n,n=t&&null==n?t.length:n,e(t,128,void 0,void 0,void 0,void 0,n)}}function mge(){if(_D)return l4;_D=1;var e=VL();return l4=function(t){return e(t,4)}}function gge(){if(vD)return f4;vD=1;var e=OA();function t(n,r,a){var o=e(n,8,void 0,void 0,void 0,void 0,void 0,r=a?void 0:r);return o.placeholder=t.placeholder,o}return t.placeholder={},f4=t}function yge(){if(bD)return u4;bD=1;var e=cu(),t=Yi(),n=fse();return u4=function(r){if(!t(r))return!1;var a=e(r);return"[object Error]"==a||"[object DOMException]"==a||"string"==typeof r.message&&"string"==typeof r.name&&!n(r)}}function _ge(){if(wD)return d4;wD=1;var e=P_(),t=Yi();return d4=function(n){return t(n)&&"[object WeakMap]"==e(n)}}function vge(){if(kD)return p4;kD=1;var e=VL(),t=Lie();return p4=function(n){return t("function"==typeof n?n:e(n,1))}}function bge(){if(xD)return h4;xD=1;var e=OA(),t=$se(),n=t((function(t,n){return e(t,256,void 0,void 0,void 0,n)}));return h4=n}function wge(){if(SD)return m4;SD=1;var e=dL(),t=ok(),n=vi(),r=I_(),a=uL(),o=$_(),i=pL();return m4=function(s){return n(s)?e(s,o):r(s)?[s]:t(a(i(s)))}}function kge(){return ED||(ED=1,g4={ary:hge(),assign:FL(),clone:mge(),curry:gge(),forEach:HT(),isArray:vi(),isError:yge(),isFunction:Xw(),isWeakMap:_ge(),iteratee:vge(),keys:EL(),rearg:bge(),toInteger:jL(),toPath:wge()}),g4}function nU(){if(CD)return y4;CD=1;var e=FN(),t=kge();return y4=function(n,r,a){return e(t,n,r,a)}}function xge(){if(RD)return _4;RD=1;var e=nU()("debounce",NL());return e.placeholder=mR(),_4=e}function Sge(e,t,n=window){const r=v.useRef(t);v.useEffect((()=>{r.current=t}),[t]),v.useEffect((()=>{if(!n)return;const t=e=>r.current(e);return n.addEventListener(e,t),()=>{n.removeEventListener(e,t)}}),[e,n])}xge();const Ege=()=>Tc(iT.selectors.selectIsMobile);function TD({className:e,...t}){return B.jsx("div",{className:xe("animate-pulse rounded-md bg-muted",e),...t})}const Cge="sidebar_state",Rge=604800,Tge="14rem",Age="18rem",Ige="3rem",$ge="b",rU=v.createContext(null);function Ek(){const e=v.useContext(rU);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Pge=v.forwardRef((({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...i},s)=>{const c=Ege(),[l,u]=v.useState(!1),[f,d]=v.useState(e),p=t??f,h=v.useCallback((e=>{const t="function"==typeof e?e(p):e;n?n(t):d(t),document.cookie=`${Cge}=${t}; path=/; max-age=604800`}),[n,p]),m=v.useCallback((()=>c?u((e=>!e)):h((e=>!e))),[c,h,u]);v.useEffect((()=>{const e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[m]);const g=p?"expanded":"collapsed",y=v.useMemo((()=>({state:g,open:p,setOpen:h,isMobile:c,openMobile:l,setOpenMobile:u,toggleSidebar:m})),[g,p,h,c,l,u,m]);return B.jsx(rU.Provider,{value:y,children:B.jsx(Bme,{delayDuration:0,children:B.jsx("div",{style:{"--sidebar-width":Tge,"--sidebar-width-icon":Ige,...a},className:xe("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...i,children:o})})})}));Pge.displayName="SidebarProvider";const Oge=v.forwardRef((({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:a,...o},i)=>{const{isMobile:s,state:c,openMobile:l,setOpenMobile:u}=Ek();return"none"===n?B.jsx("div",{className:xe("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:i,...o,children:a}):s?B.jsx(zme,{open:l,onOpenChange:u,children:B.jsxs(DF,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Age},side:e,children:[B.jsxs(NF,{className:"sr-only",children:[B.jsx(LF,{children:"Sidebar"}),B.jsx(jF,{children:"Displays the mobile sidebar."})]}),B.jsx("div",{className:"flex h-full w-full flex-col",children:a})]})}):B.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":"collapsed"===c?n:"","data-variant":t,"data-side":e,children:[B.jsx("div",{className:xe("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),B.jsx("div",{className:xe("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...o,children:B.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-sm group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})})]})}));Oge.displayName="Sidebar";const zge=v.forwardRef((({className:e,onClick:t,...n},r)=>{const{toggleSidebar:a,open:o}=Ek();return B.jsx(qw,{ref:r,"data-sidebar":"trigger",variant:"tertiary",size:"icon_m",className:xe("size-6 text-slate-900",e),onClick:e=>{null==t||t(e),a()},...n,children:o?B.jsx(Qte,{size:16}):B.jsx(Gte,{size:16})})}));zge.displayName="SidebarTrigger";const Mge=v.forwardRef((({className:e,...t},n)=>{const{toggleSidebar:r}=Ek();return B.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:xe("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}));Mge.displayName="SidebarRail";const Dge=v.forwardRef((({className:e,...t},n)=>B.jsx("main",{ref:n,className:xe("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-m md:peer-data-[variant=inset]:shadow",e),...t})));Dge.displayName="SidebarInset";const Nge=v.forwardRef((({className:e,...t},n)=>B.jsx(SF,{ref:n,"data-sidebar":"input",className:xe("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t})));Nge.displayName="SidebarInput";const Lge=v.forwardRef((({className:e,...t},n)=>B.jsx("div",{ref:n,"data-sidebar":"header",className:xe("flex flex-col gap-2 p-2",e),...t})));Lge.displayName="SidebarHeader";const jge=v.forwardRef((({className:e,...t},n)=>B.jsx("div",{ref:n,"data-sidebar":"footer",className:xe("flex flex-col gap-2 p-2",e),...t})));jge.displayName="SidebarFooter";const Bge=v.forwardRef((({className:e,...t},n)=>B.jsx(bA,{ref:n,"data-sidebar":"separator",className:xe("mx-2 w-auto bg-sidebar-border",e),...t})));Bge.displayName="SidebarSeparator";const Fge=v.forwardRef((({className:e,...t},n)=>B.jsx("div",{ref:n,"data-sidebar":"content",className:xe("flex min-h-0 flex-1 flex-col gap-xxxs overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})));Fge.displayName="SidebarContent";const Uge=v.forwardRef((({className:e,...t},n)=>B.jsx("div",{ref:n,"data-sidebar":"group",className:xe("relative flex w-full min-w-0 flex-col px-xxs pt-xs",e),...t})));Uge.displayName="SidebarGroup";const Vge=v.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const a=t?yp:"div";return B.jsx(a,{ref:r,"data-sidebar":"group-label",className:xe("flex h-s shrink-0 items-center rounded-md px-xxs py-xxs text-xs font-semibold text-slate-700 opacity-60 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-xl group-data-[collapsible=icon]:opacity-0",e),...n})}));Vge.displayName="SidebarGroupLabel";const qge=v.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const a=t?yp:"button";return B.jsx(a,{ref:r,"data-sidebar":"group-action",className:xe("absolute right-xs top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})}));qge.displayName="SidebarGroupAction";const Wge=v.forwardRef((({className:e,...t},n)=>B.jsx("div",{ref:n,"data-sidebar":"group-content",className:xe("w-full text-sm",e),...t})));Wge.displayName="SidebarGroupContent";const Hge=v.forwardRef((({className:e,...t},n)=>B.jsx("ul",{ref:n,"data-sidebar":"menu",className:xe("flex w-full min-w-0 flex-col p-xs font-semibold text-slate-700 [&_svg]:size-4",e),...t})));Hge.displayName="SidebarMenu";const Gge=v.forwardRef((({className:e,...t},n)=>B.jsx("li",{ref:n,"data-sidebar":"menu-item",className:xe("group/menu-item relative",e),...t})));Gge.displayName="SidebarMenuItem";const Kge=jl("peer/menu-button flex w-full items-center gap-xxs overflow-hidden rounded-sm p-xxs text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:text-blue_100 hover:bg-white focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-white data-[active=true]:font-medium data-[active=true]:text-blue_100 data-[state=open]:hover:bg-white data-[state=open]:hover:text-blue_100 group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:text-blue_100 hover:bg-white",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-white hover:text-blue_100 hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-s text-sm",sm:"h-m text-xs",lg:"h-l text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Qge=v.forwardRef((({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:a,className:o,...i},s)=>{const c=e?yp:"button",{isMobile:l,state:u}=Ek(),f=B.jsx(c,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:xe(Kge({variant:n,size:r}),o),...i});return a?("string"==typeof a&&(a={children:a}),B.jsxs(BF,{children:[B.jsx(FF,{asChild:!0,children:f}),B.jsx(UF,{side:"right",align:"center",hidden:"collapsed"!==u||l,...a})]})):f}));Qge.displayName="SidebarMenuButton";const Yge=v.forwardRef((({className:e,asChild:t=!1,showOnHover:n=!1,...r},a)=>{const o=t?yp:"button";return B.jsx(o,{ref:a,"data-sidebar":"menu-action",className:xe("absolute right-xxxs top-xxs flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})}));Yge.displayName="SidebarMenuAction";const Zge=v.forwardRef((({className:e,...t},n)=>B.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:xe("pointer-events-none absolute right-xxxs flex h-m min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",e),...t})));Zge.displayName="SidebarMenuBadge";const Xge=v.forwardRef((({className:e,showIcon:t=!1,...n},r)=>{const a=v.useMemo((()=>`${Math.floor(40*Math.random())+50}%`),[]);return B.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:xe("flex h-8 items-center gap-xxs rounded-md px-xxs",e),...n,children:[t&&B.jsx(TD,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),B.jsx(TD,{className:"h-xxxs max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})}));Xge.displayName="SidebarMenuSkeleton";const Jge=v.forwardRef((({className:e,...t},n)=>B.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:xe("flex min-w-0 translate-x-px flex-col gap-xxxs border-l border-sidebar-border","group-data-[collapsible=icon]:hidden",e),...t})));Jge.displayName="SidebarMenuSub";const e1e=v.forwardRef((({...e},t)=>B.jsx("li",{ref:t,...e})));e1e.displayName="SidebarMenuSubItem";const t1e=v.forwardRef((({asChild:e=!1,size:t="md",isActive:n,className:r,...a},o)=>{const i=e?yp:"a";return B.jsx(i,{ref:o,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:xe("flex h-s min-w-0 -translate-x-px items-center gap-xxs overflow-hidden rounded-sm px-xxs text-sm text-slate-700 outline-none ring-sidebar-ring hover:bg-white hover:text-blue_100 focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-blue_100","data-[active=true]:bg-white data-[active=true]:text-blue_100","sm"===t&&"text-xs","md"===t&&"text-sm","group-data-[collapsible=icon]:hidden",r),...a})}));t1e.displayName="SidebarMenuSubButton";const aU="Switch",[n1e,WZe]=Zo(aU),[r1e,a1e]=n1e(aU),o1e=v.forwardRef(((e,t)=>{const{__scopeSwitch:n,name:r,checked:a,defaultChecked:o,required:i,disabled:s,value:c="on",onCheckedChange:l,...u}=e,[f,d]=v.useState(null),p=un(t,(e=>d(e))),h=v.useRef(!1),m=!f||!!f.closest("form"),[g=!1,y]=ip({prop:a,defaultProp:o,onChange:l});return v.createElement(r1e,{scope:n,checked:g,disabled:s},v.createElement(wt.button,Ie({type:"button",role:"switch","aria-checked":g,"aria-required":i,"data-state":oU(g),"data-disabled":s?"":void 0,disabled:s,value:c},u,{ref:p,onClick:st(e.onClick,(e=>{y((e=>!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&v.createElement(c1e,{control:f,bubbles:!h.current,name:r,value:c,checked:g,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))})),i1e="SwitchThumb",s1e=v.forwardRef(((e,t)=>{const{__scopeSwitch:n,...r}=e,a=a1e(i1e,n);return v.createElement(wt.span,Ie({"data-state":oU(a.checked),"data-disabled":a.disabled?"":void 0},r,{ref:t}))})),c1e=e=>{const{control:t,checked:n,bubbles:r=!0,...a}=e,o=v.useRef(null),i=sk(n),s=ck(t);return v.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&a){const t=new Event("click",{bubbles:r});a.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),v.createElement("input",Ie({type:"checkbox","aria-hidden":!0,defaultChecked:n},a,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function oU(e){return e?"checked":"unchecked"}const iU=o1e,l1e=s1e,f1e=v.forwardRef((({className:e,...t},n)=>B.jsx(iU,{className:xe("group peer inline-flex h-xs w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=checked]:bg-blue_100 data-[state=unchecked]:bg-slate-200","disabled:cursor-not-allowed disabled:!bg-slate-100 md:hover:data-[state=checked]:bg-blue_120 md:hover:data-[state=unchecked]:!bg-slate-300",e),...t,ref:n,children:B.jsx(l1e,{className:xe("pointer-events-none block size-xxs rounded-full bg-background shadow-lg ring-0 transition-[transform,width] data-[state=checked]:translate-x-[20px] data-[state=unchecked]:translate-x-0",{"md:group-hover:w-[26px] md:group-hover:data-[state=checked]:translate-x-[14px]":!t.disabled,"bg-slate-300":t.disabled})})})));f1e.displayName=iU.displayName;const sU="Tabs",[u1e,HZe]=Zo(sU,[M1]),cU=M1(),[GZe,zA]=u1e(sU),d1e="TabsList",p1e=v.forwardRef(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,o=zA(d1e,n),i=cU(n);return v.createElement(hA,Ie({asChild:!0},i,{orientation:o.orientation,dir:o.dir,loop:r}),v.createElement(wt.div,Ie({role:"tablist","aria-orientation":o.orientation},a,{ref:t})))})),h1e="TabsTrigger",m1e=v.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...o}=e,i=zA(h1e,n),s=cU(n),c=lU(i.baseId,r),l=fU(i.baseId,r),u=r===i.value;return v.createElement(mA,Ie({asChild:!0},s,{focusable:!a,active:u}),v.createElement(wt.button,Ie({type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c},o,{ref:t,onMouseDown:st(e.onMouseDown,(e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(r)})),onKeyDown:st(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&i.onValueChange(r)})),onFocus:st(e.onFocus,(()=>{const e="manual"!==i.activationMode;!u&&!a&&e&&i.onValueChange(r)}))})))})),g1e="TabsContent",y1e=v.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:o,...i}=e,s=zA(g1e,n),c=lU(s.baseId,r),l=fU(s.baseId,r),u=r===s.value,f=v.useRef(u);return v.useEffect((()=>{const e=requestAnimationFrame((()=>f.current=!1));return()=>cancelAnimationFrame(e)}),[]),v.createElement(zs,{present:a||u},(({present:n})=>v.createElement(wt.div,Ie({"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:l,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),n&&o)))}));function lU(e,t){return`${e}-trigger-${t}`}function fU(e,t){return`${e}-content-${t}`}const uU=p1e,dU=m1e,pU=y1e,_1e=v.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>B.jsx(uU,{ref:r,"data-testid":"tabsList",className:t?xe("inline-flex items-center justify-center gap-xxs border-b border-slate-200 p-none text-muted-foreground",e):e,...n})));_1e.displayName=uU.displayName;const v1e=v.forwardRef((({className:e,useDefaults:t=!0,children:n,...r},a)=>B.jsx(dU,{ref:a,className:t?xe("inline-flex items-center justify-center whitespace-nowrap p-xxs pb-[calc(theme(spacing.xxs)-2px)] pt-xxs text-basering-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring border-b-2 border-transparent font-semibold focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-slate-900","group relative before:absolute before:inset-xxxs before:rounded-sm before:bg-transparent before:transition-colors hover:before:bg-slate-50",e):e,...r,children:B.jsx("span",{className:"relative text-slate-500 group-hover:text-slate-900 group-data-[state=active]:text-slate-900",children:n})})));v1e.displayName=dU.displayName;const b1e=v.forwardRef((({className:e,...t},n)=>B.jsx(pU,{ref:n,className:xe("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})));b1e.displayName=pU.displayName;const w1e=v.forwardRef((({className:e,...t},n)=>B.jsx("table",{ref:n,className:xe("w-full caption-bottom text-sm",e),...t})));w1e.displayName="Table";const k1e=v.forwardRef((({className:e,...t},n)=>B.jsx("thead",{ref:n,className:xe("[&_tr]:border-b",e),...t})));k1e.displayName="TableHeader";const x1e=v.forwardRef((({className:e,...t},n)=>B.jsx("tbody",{ref:n,className:xe("[&_tr:last-child]:border-0",e),...t})));x1e.displayName="TableBody";const S1e=v.forwardRef((({className:e,...t},n)=>B.jsx("tfoot",{ref:n,className:xe("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})));S1e.displayName="TableFooter";const E1e=v.forwardRef((({className:e,...t},n)=>B.jsx("tr",{ref:n,className:xe("border-b bg-background transition-colors hover:bg-gray-100 data-[state=selected]:bg-gray-200 dark:hover:bg-muted dark:data-[state=selected]:bg-muted",e),...t})));E1e.displayName="TableRow";const C1e=v.forwardRef((({className:e,...t},n)=>B.jsx("th",{ref:n,className:xe("h-m bg-inherit px-xs py-xxs text-left align-middle font-normal text-muted-foreground","whitespace-nowrap border-slate-200 text-sm text-slate-500 [&:not(:last-child)]:border-r",e),...t})));C1e.displayName="TableHead";const R1e=v.forwardRef((({className:e,...t},n)=>B.jsx("td",{ref:n,className:xe("bg-inherit p-xs py-xxs align-middle","overflow-hidden truncate text-ellipsis border-slate-200 text-base text-slate-700 [&:not(:last-child)]:border-r",e),...t})));R1e.displayName="TableCell";const T1e=v.forwardRef((({className:e,...t},n)=>B.jsx("caption",{ref:n,className:xe("mt-s text-sm text-muted-foreground",e),...t})));T1e.displayName="TableCaption";const hU=(e,t)=>xe("flex w-full rounded-m px-4 py-3.5 text-base text-slate-900 outline outline-1 outline-input ring-offset-background transition-all duration-200 ease-in-out placeholder:text-base placeholder:text-muted-foreground placeholder:text-slate-400 hover:outline-2 hover:outline-slate-400 focus-visible:bg-slate-50 focus-visible:text-slate-900 focus-visible:outline-2 focus-visible:outline-blue_120 disabled:cursor-not-allowed disabled:select-none disabled:text-slate-300 disabled:outline-slate-200",{"bg-red_30_17 outline-red-dark":!!e},t),mU=v.forwardRef((({className:e,...t},n)=>{const{error:r}=vp();return B.jsx("textarea",{className:hU(!!r,e),ref:n,...t})}));mU.displayName="Textarea";const AD=Xme,ID=Jme,A1e=jl("z-50 overflow-hidden shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{size:{default:"rounded-md border text-sm px-3 py-1.5",small:"rounded-md border px-[11px] py-[3px] text-base leading-[16px]"},theme:{default:"bg-popover text-popover-foreground",dark:"bg-slate-900_90 text-slate-50"},defaultVariants:{size:"small",theme:"dark"}}}),WC=v.forwardRef((({className:e,sideOffset:t=1,size:n,theme:r,...a},o)=>B.jsx(qF,{ref:o,sideOffset:t,className:xe(A1e({size:n,theme:r,className:e})),...a})));WC.displayName=qF.displayName,ar.enhanceEndpoints({endpoints:{getApiV1Settings:{providesTags:["Settings"],async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){t(yy.actions.setPending(!0));try{const e=await Dt(n);e&&t(yy.actions.setSettings(e.data))}catch(e){au.error("Platform settings error:",e)}finally{t(yy.actions.setPending(!1))}}},getApiV1SettingsUser:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const e=await Dt(n);null!=e&&e.data&&t(Vb.actions.setSettings(e.data))}catch(e){au.error("Get profile settings error:",e)}}},putApiV1Settings:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n,getState:r}){const a=ar.util.selectCachedArgsForQuery(r(),"getApiV1Settings")[0],o=t(ar.util.updateQueryData("getApiV1Settings",a||{keys:[]},(t=>{Object.assign(t,Xd.merge(t,e.platformSettings))})));try{await n,Lt.success("Updated")}catch{o.undo(),Lt.error("Failed to update settings")}}},putApiV1SettingsUser:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n,getState:r}){var a;const o=ar.util.selectCachedArgsForQuery(r(),"getApiV1SettingsUser")[0],i=t(ar.util.updateQueryData("getApiV1SettingsUser",o||{keys:[]},(t=>{Object.assign(t,Xd.merge(t,e.userSettings))}))),s=null==(a=r().openapi.queries[`getApiV1SettingsUser(${JSON.stringify(o)})`])?void 0:a.data;t(Vb.actions.setSettings(s));try{await n,Lt.success("Updated")}catch{i.undo()}}},getApiV1Rules:{providesTags:[Ib.SERVER_RULES],async onQueryStarted(e,{queryFulfilled:t}){await Dt(t)}},postApiV1Rules:{invalidatesTags:[Ib.SERVER_RULES],async onQueryStarted(e,{queryFulfilled:t}){try{await t,Lt.success("Rule created")}catch(e){Lt.error(`Failed to create rule ${Tl(e)}`)}}},putApiV1Rules:{async onQueryStarted({rule:e},{dispatch:t,queryFulfilled:n,getState:r}){const a=ar.util.selectCachedArgsForQuery(r(),"getApiV1Rules")[0],o=t(ar.util.updateQueryData("getApiV1Rules",a,(t=>{const n=t.findIndex((t=>t.id===e.id));-1!==n&&(t[n]={...t[n],...e})})));try{await n,Lt.success("Rule updated")}catch(e){o.undo(),Lt.error(`Failed to update rule ${Tl(e)}`)}}},postApiV1RulesReorder:{async onQueryStarted({orderedRules:e},{dispatch:t,queryFulfilled:n,getState:r}){const a=ar.util.selectCachedArgsForQuery(r(),"getApiV1Rules")[0],o=t(ar.util.updateQueryData("getApiV1Rules",a,(()=>e)));try{await n}catch(e){o.undo(),Lt.error(`Failed to reorder rules ${Tl(e)}`)}}},deleteApiV1RulesById:{async onQueryStarted({id:e},{dispatch:t,queryFulfilled:n,getState:r}){const a=ar.util.selectCachedArgsForQuery(r(),"getApiV1Rules")[0],o=t(ar.util.updateQueryData("getApiV1Rules",a,(t=>{const n=t.findIndex((t=>t.id===e));-1!==n&&t.splice(n,1)})));try{await n,Lt.success("Rule deleted")}catch(e){o.undo(),Lt.error(`Failed to delete rule ${Tl(e)}`)}}}}});var $D,ry={exports:{}},I1e=ry.exports;
|
|
118
|
+
*/function eie(){if(PP)return Cn;PP=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case o:case a:case u:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case l:case p:case d:case i:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Cn.ContextConsumer=s,Cn.ContextProvider=i,Cn.Element=t,Cn.ForwardRef=l,Cn.Fragment=r,Cn.Lazy=p,Cn.Memo=d,Cn.Portal=n,Cn.Profiler=o,Cn.StrictMode=a,Cn.Suspense=u,Cn.SuspenseList=f,Cn.isAsyncMode=function(){return!1},Cn.isConcurrentMode=function(){return!1},Cn.isContextConsumer=function(e){return m(e)===s},Cn.isContextProvider=function(e){return m(e)===i},Cn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Cn.isForwardRef=function(e){return m(e)===l},Cn.isFragment=function(e){return m(e)===r},Cn.isLazy=function(e){return m(e)===p},Cn.isMemo=function(e){return m(e)===d},Cn.isPortal=function(e){return m(e)===n},Cn.isProfiler=function(e){return m(e)===o},Cn.isStrictMode=function(e){return m(e)===a},Cn.isSuspense=function(e){return m(e)===u},Cn.isSuspenseList=function(e){return m(e)===f},Cn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===a||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===i||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},Cn.typeOf=m,Cn}function tie(){return OP||(OP=1,iS.exports=eie()),iS.exports}function yL(){if(zP)return sS;zP=1;var e=cu(),t=Yi();return sS=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}function nie(){if(MP)return cS;MP=1;var e=yL();return cS=function(t){return e(t)&&t!=+t}}tie(),nie(),yL();var fS,DP,uS,NP,dS,LP,pS,jP,hS,BP,mS,FP,gS,UP,yS,VP,_S,qP,vS,WP,bS,HP,wS,GP,kS,KP,xS,QP,SS,YP,ES,ZP,CS,XP,RS,JP,TS,eO,AS,tO,IS,nO,$S,rO,PS,aO,OS,oO,Vv=function(e){return Joe(e)&&e.indexOf("%")===e.length-1},rie=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},lS=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a]};function aie(){if(DP)return fS;DP=1;var e=tk();return fS=function(){this.__data__=new e,this.size=0}}function oie(){if(NP)return uS;return NP=1,uS=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}function iie(){if(LP)return dS;return LP=1,dS=function(e){return this.__data__.get(e)}}function sie(){if(jP)return pS;return jP=1,pS=function(e){return this.__data__.has(e)}}function cie(){if(BP)return hS;BP=1;var e=tk(),t=$T(),n=PT();return hS=function(r,a){var o=this.__data__;if(o instanceof e){var i=o.__data__;if(!t||i.length<199)return i.push([r,a]),this.size=++o.size,this;o=this.__data__=new n(i)}return o.set(r,a),this.size=o.size,this}}function OT(){if(FP)return mS;FP=1;var e=tk(),t=aie(),n=oie(),r=iie(),a=sie(),o=cie();function i(t){var n=this.__data__=new e(t);this.size=n.size}return i.prototype.clear=t,i.prototype.delete=n,i.prototype.get=r,i.prototype.has=a,i.prototype.set=o,mS=i}function lie(){if(UP)return gS;UP=1;return gS=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function fie(){if(VP)return yS;return VP=1,yS=function(e){return this.__data__.has(e)}}function uie(){if(qP)return _S;qP=1;var e=PT(),t=lie(),n=fie();function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,_S=r}function die(){if(WP)return vS;return WP=1,vS=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}}function pie(){if(HP)return bS;return HP=1,bS=function(e,t){return e.has(t)}}function _L(){if(GP)return wS;GP=1;var e=uie(),t=die(),n=pie();return wS=function(r,a,o,i,s,c){var l=1&o,u=r.length,f=a.length;if(u!=f&&!(l&&f>u))return!1;var d=c.get(r),p=c.get(a);if(d&&p)return d==a&&p==r;var h=-1,m=!0,g=2&o?new e:void 0;for(c.set(r,a),c.set(a,r);++h<u;){var y=r[h],v=a[h];if(i)var b=l?i(v,y,h,a,r,c):i(y,v,h,r,a,c);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!t(a,(function(e,t){if(!n(g,t)&&(y===e||s(y,e,o,i,c)))return g.push(t)}))){m=!1;break}}else if(y!==v&&!s(y,v,o,i,c)){m=!1;break}}return c.delete(r),c.delete(a),m}}function vL(){if(KP)return kS;KP=1;var e=Xo().Uint8Array;return kS=e}function hie(){if(QP)return xS;return QP=1,xS=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}}function mie(){if(YP)return SS;return YP=1,SS=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}}function gie(){if(ZP)return ES;ZP=1;var e=$1(),t=vL(),n=IT(),r=_L(),a=hie(),o=mie(),i=e?e.prototype:void 0,s=i?i.valueOf:void 0;return ES=function(e,i,c,l,u,f,d){switch(c){case"[object DataView]":if(e.byteLength!=i.byteLength||e.byteOffset!=i.byteOffset)return!1;e=e.buffer,i=i.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=i.byteLength||!f(new t(e),new t(i)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+i);case"[object Error]":return e.name==i.name&&e.message==i.message;case"[object RegExp]":case"[object String]":return e==i+"";case"[object Map]":var p=a;case"[object Set]":var h=1&l;if(p||(p=o),e.size!=i.size&&!h)return!1;var m=d.get(e);if(m)return m==i;l|=2,d.set(e,i);var g=r(p(e),p(i),l,u,f,d);return d.delete(e),g;case"[object Symbol]":if(s)return s.call(e)==s.call(i)}return!1}}function zT(){if(XP)return CS;return XP=1,CS=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}}function bL(){if(JP)return RS;JP=1;var e=zT(),t=vi();return RS=function(n,r,a){var o=r(n);return t(n)?o:e(o,a(n))}}function yie(){if(eO)return TS;return eO=1,TS=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}}function wL(){if(tO)return AS;return tO=1,AS=function(){return[]}}function MT(){if(nO)return IS;nO=1;var e=yie(),t=wL(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return IS=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function _ie(){if(rO)return $S;return rO=1,$S=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}}function vie(){if(aO)return PS;aO=1;var e=cu(),t=Yi();return PS=function(n){return t(n)&&"[object Arguments]"==e(n)}}function DT(){if(oO)return OS;oO=1;var e=vie(),t=Yi(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!a.call(e,"callee")};return OS=o}var zS,iO,sO,MS,cO,DS,lO,NS,fO,LS,uO,ey={exports:{}};function bie(){if(iO)return zS;return iO=1,zS=function(){return!1}}function NT(){return sO||(sO=1,e=ey,t=ey.exports,n=Xo(),r=bie(),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,i=o&&o.exports===a?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||r,e.exports=s),ey.exports;var e,t,n,r,a,o,i,s}function LT(){if(cO)return MS;cO=1;var e=/^(?:0|[1-9]\d*)$/;return MS=function(t,n){var r=typeof t;return!!(n=n??9007199254740991)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function jT(){if(lO)return DS;lO=1;return DS=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function wie(){if(fO)return NS;fO=1;var e=cu(),t=jT(),n=Yi(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,NS=function(a){return n(a)&&t(a.length)&&!!r[e(a)]}}function BT(){if(uO)return LS;return uO=1,LS=function(e){return function(t){return e(t)}}}ey.exports;var dO,jS,pO,BS,hO,FS,mO,US,gO,VS,yO,qS,_O,WS,vO,HS,bO,GS,wO,KS,kO,QS,xO,YS,SO,ZS,EO,XS,CO,JS,RO,e6,TO,t6,AO,n6,IO,r6,$O,a6,PO,o6,OO,i6,zO,s6,MO,c6,DO,l6,NO,f6,LO,u6,jO,d6,BO,p6,FO,h6,UO,m6,VO,g6,qO,y6,WO,_6,HO,v6,GO,b6,KO,w6,QO,k6,YO,x6,ZO,S6,XO,E6,JO,C6,ez,R6,tz,T6,nz,A6,rz,I6,az,$6,oz,P6,iz,O6,sz,z6,cz,M6,lz,D6,fz,ty={exports:{}};function FT(){return dO||(dO=1,e=ty,t=ty.exports,n=lL(),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,o=a&&a.exports===r&&n.process,i=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch{}}(),e.exports=i),ty.exports;var e,t,n,r,a,o,i}function kL(){if(pO)return jS;pO=1;var e=wie(),t=BT(),n=FT(),r=n&&n.isTypedArray,a=r?t(r):e;return jS=a}function xL(){if(hO)return BS;hO=1;var e=_ie(),t=DT(),n=vi(),r=NT(),a=LT(),o=kL(),i=Object.prototype.hasOwnProperty;return BS=function(s,c){var l=n(s),u=!l&&t(s),f=!l&&!u&&r(s),d=!l&&!u&&!f&&o(s),p=l||u||f||d,h=p?e(s.length,String):[],m=h.length;for(var g in s)(c||i.call(s,g))&&(!p||!("length"==g||f&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m)))&&h.push(g);return h}}function UT(){if(mO)return FS;mO=1;var e=Object.prototype;return FS=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function SL(){if(gO)return US;return gO=1,US=function(e,t){return function(n){return e(t(n))}}}function kie(){if(yO)return VS;yO=1;var e=SL()(Object.keys,Object);return VS=e}function EL(){if(_O)return qS;_O=1;var e=UT(),t=kie(),n=Object.prototype.hasOwnProperty;return qS=function(r){if(!e(r))return t(r);var a=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&a.push(o);return a}}function CL(){if(vO)return WS;vO=1;var e=Xw(),t=jT();return WS=function(n){return null!=n&&t(n.length)&&!e(n)}}function rk(){if(bO)return HS;bO=1;var e=xL(),t=EL(),n=CL();return HS=function(r){return n(r)?e(r):t(r)}}function RL(){if(wO)return GS;wO=1;var e=bL(),t=MT(),n=rk();return GS=function(r){return e(r,n,t)}}function xie(){if(kO)return KS;kO=1;var e=RL(),t=Object.prototype.hasOwnProperty;return KS=function(n,r,a,o,i,s){var c=1&a,l=e(n),u=l.length;if(u!=e(r).length&&!c)return!1;for(var f=u;f--;){var d=l[f];if(!(c?d in r:t.call(r,d)))return!1}var p=s.get(n),h=s.get(r);if(p&&h)return p==r&&h==n;var m=!0;s.set(n,r),s.set(r,n);for(var g=c;++f<u;){var y=n[d=l[f]],v=r[d];if(o)var b=c?o(v,y,d,r,n,s):o(y,v,d,n,r,s);if(!(void 0===b?y===v||i(y,v,a,o,s):b)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var _=n.constructor,w=r.constructor;_!=w&&"constructor"in n&&"constructor"in r&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(m=!1)}return s.delete(n),s.delete(r),m}}function Sie(){if(xO)return QS;xO=1;var e=pm()(Xo(),"DataView");return QS=e}function Eie(){if(SO)return YS;SO=1;var e=pm()(Xo(),"Promise");return YS=e}function Cie(){if(EO)return ZS;EO=1;var e=pm()(Xo(),"Set");return ZS=e}function TL(){if(CO)return XS;CO=1;var e=pm()(Xo(),"WeakMap");return XS=e}function P_(){if(RO)return JS;RO=1;var e=Sie(),t=$T(),n=Eie(),r=Cie(),a=TL(),o=cu(),i=fL(),s="[object Map]",c="[object Promise]",l="[object Set]",u="[object WeakMap]",f="[object DataView]",d=i(e),p=i(t),h=i(n),m=i(r),g=i(a),y=o;return(e&&y(new e(new ArrayBuffer(1)))!=f||t&&y(new t)!=s||n&&y(n.resolve())!=c||r&&y(new r)!=l||a&&y(new a)!=u)&&(y=function(e){var t=o(e),n="[object Object]"==t?e.constructor:void 0,r=n?i(n):"";if(r)switch(r){case d:return f;case p:return s;case h:return c;case m:return l;case g:return u}return t}),JS=y}function Rie(){if(TO)return e6;TO=1;var e=OT(),t=_L(),n=gie(),r=xie(),a=P_(),o=vi(),i=NT(),s=kL(),c="[object Arguments]",l="[object Array]",u="[object Object]",f=Object.prototype.hasOwnProperty;return e6=function(d,p,h,m,g,y){var v=o(d),b=o(p),_=v?l:a(d),w=b?l:a(p),k=(_=_==c?u:_)==u,x=(w=w==c?u:w)==u,S=_==w;if(S&&i(d)){if(!i(p))return!1;v=!0,k=!1}if(S&&!k)return y||(y=new e),v||s(d)?t(d,p,h,m,g,y):n(d,p,_,h,m,g,y);if(!(1&h)){var E=k&&f.call(d,"__wrapped__"),A=x&&f.call(p,"__wrapped__");if(E||A){var C=E?d.value():d,z=A?p.value():p;return y||(y=new e),g(C,z,h,m,y)}}return!!S&&(y||(y=new e),r(d,p,h,m,g,y))}}function AL(){if(AO)return t6;AO=1;var e=Rie(),t=Yi();return t6=function n(r,a,o,i,s){return r===a||(null==r||null==a||!t(r)&&!t(a)?r!=r&&a!=a:e(r,a,o,i,n,s))},t6}function Tie(){if(IO)return n6;IO=1;var e=OT(),t=AL();return n6=function(n,r,a,o){var i=a.length,s=i,c=!o;if(null==n)return!s;for(n=Object(n);i--;){var l=a[i];if(c&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++i<s;){var u=(l=a[i])[0],f=n[u],d=l[1];if(c&&l[2]){if(void 0===f&&!(u in n))return!1}else{var p=new e;if(o)var h=o(f,d,u,n,r,p);if(!(void 0===h?t(d,f,3,o,p):h))return!1}}return!0}}function IL(){if($O)return r6;$O=1;var e=$c();return r6=function(t){return t==t&&!e(t)}}function Aie(){if(PO)return a6;PO=1;var e=IL(),t=rk();return a6=function(n){for(var r=t(n),a=r.length;a--;){var o=r[a],i=n[o];r[a]=[o,i,e(i)]}return r}}function $L(){if(OO)return o6;return OO=1,o6=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function Iie(){if(zO)return i6;zO=1;var e=Tie(),t=Aie(),n=$L();return i6=function(r){var a=t(r);return 1==a.length&&a[0][2]?n(a[0][0],a[0][1]):function(t){return t===r||e(t,r,a)}}}function $ie(){if(MO)return s6;return MO=1,s6=function(e,t){return null!=e&&t in Object(e)}}function Pie(){if(DO)return c6;DO=1;var e=hL(),t=DT(),n=vi(),r=LT(),a=jT(),o=$_();return c6=function(i,s,c){for(var l=-1,u=(s=e(s,i)).length,f=!1;++l<u;){var d=o(s[l]);if(!(f=null!=i&&c(i,d)))break;i=i[d]}return f||++l!=u?f:!!(u=null==i?0:i.length)&&a(u)&&r(d,u)&&(n(i)||t(i))}}function Oie(){if(NO)return l6;NO=1;var e=$ie(),t=Pie();return l6=function(n,r){return null!=n&&t(n,r,e)}}function zie(){if(LO)return f6;LO=1;var e=AL(),t=gL(),n=Oie(),r=AT(),a=IL(),o=$L(),i=$_();return f6=function(s,c){return r(s)&&a(c)?o(i(s),c):function(r){var a=t(r,s);return void 0===a&&a===c?n(r,s):e(c,a,3)}}}function VT(){if(jO)return u6;return jO=1,u6=function(e){return e}}function Mie(){if(BO)return d6;return BO=1,d6=function(e){return function(t){return null==t?void 0:t[e]}}}function Die(){if(FO)return p6;FO=1;var e=mL();return p6=function(t){return function(n){return e(n,t)}}}function Nie(){if(UO)return h6;UO=1;var e=Mie(),t=Die(),n=AT(),r=$_();return h6=function(a){return n(a)?e(r(a)):t(a)}}function Lie(){if(VO)return m6;VO=1;var e=Iie(),t=zie(),n=VT(),r=vi(),a=Nie();return m6=function(o){return"function"==typeof o?o:null==o?n:"object"==typeof o?r(o)?t(o[0],o[1]):e(o):a(o)}}function jie(){if(qO)return g6;return qO=1,g6=function(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}}function Bie(){if(WO)return y6;return WO=1,y6=function(e){return e!=e}}function Fie(){if(HO)return _6;return HO=1,_6=function(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}}function Uie(){if(GO)return v6;GO=1;var e=jie(),t=Bie(),n=Fie();return v6=function(r,a,o){return a==a?n(r,a,o):e(r,t,o)}}function Vie(){if(KO)return b6;KO=1;var e=Uie();return b6=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1}}function PL(){if(QO)return w6;return QO=1,w6=function(){}}function qie(){if(YO)return k6;YO=1;var e=$1(),t=DT(),n=vi(),r=e?e.isConcatSpreadable:void 0;return k6=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}function Wie(){if(ZO)return x6;ZO=1;var e=zT(),t=qie();return x6=function n(r,a,o,i,s){var c=-1,l=r.length;for(o||(o=t),s||(s=[]);++c<l;){var u=r[c];a>0&&o(u)?a>1?n(u,a-1,o,i,s):e(s,u):i||(s[s.length]=u)}return s},x6}function qT(){if(XO)return S6;return XO=1,S6=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}}function Hie(){if(JO)return E6;JO=1;var e=qT(),t=Math.max;return E6=function(n,r,a){return r=t(void 0===r?n.length-1:r,0),function(){for(var o=arguments,i=-1,s=t(o.length-r,0),c=Array(s);++i<s;)c[i]=o[r+i];i=-1;for(var l=Array(r+1);++i<r;)l[i]=o[i];return l[r]=a(c),e(n,this,l)}},E6}function Gie(){if(ez)return C6;return ez=1,C6=function(e){return function(){return e}}}function OL(){if(tz)return R6;tz=1;var e=pm(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return R6=t}function Kie(){if(nz)return T6;nz=1;var e=Gie(),t=OL(),n=VT();return T6=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function zL(){if(rz)return A6;rz=1;var e=Date.now;return A6=function(t){var n=0,r=0;return function(){var a=e(),o=16-(a-r);if(r=a,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},A6}function ML(){if(az)return I6;az=1;var e=Kie(),t=zL()(e);return I6=t}function Qie(){if(oz)return $6;oz=1;var e=Xo();return $6=function(){return e.Date.now()}}function Yie(){if(iz)return P6;iz=1;var e=/\s/;return P6=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}function Zie(){if(sz)return O6;sz=1;var e=Yie(),t=/^\s+/;return O6=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}}function DL(){if(cz)return z6;cz=1;var e=Zie(),t=$c(),n=I_(),r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt;return z6=function(s){if("number"==typeof s)return s;if(n(s))return NaN;if(t(s)){var c="function"==typeof s.valueOf?s.valueOf():s;s=t(c)?c+"":c}if("string"!=typeof s)return 0===s?s:+s;s=e(s);var l=a.test(s);return l||o.test(s)?i(s.slice(2),l?2:8):r.test(s)?NaN:+s}}function NL(){if(lz)return M6;lz=1;var e=$c(),t=Qie(),n=DL(),r=Math.max,a=Math.min;return M6=function(o,i,s){var c,l,u,f,d,p,h=0,m=!1,g=!1,y=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function v(e){var t=c,n=l;return c=l=void 0,h=e,f=o.apply(n,t)}function b(e){var t=e-p;return void 0===p||t>=i||t<0||g&&e-h>=u}function _(){var e=t();if(b(e))return w(e);d=setTimeout(_,function(e){var t=i-(e-p);return g?a(t,u-(e-h)):t}(e))}function w(e){return d=void 0,y&&c?v(e):(c=l=void 0,f)}function k(){var e=t(),n=b(e);if(c=arguments,l=this,p=e,n){if(void 0===d)return function(e){return h=e,d=setTimeout(_,i),m?v(e):f}(p);if(g)return clearTimeout(d),d=setTimeout(_,i),v(p)}return void 0===d&&(d=setTimeout(_,i)),f}return i=n(i)||0,e(s)&&(m=!!s.leading,u=(g="maxWait"in s)?r(n(s.maxWait)||0,i):u,y="trailing"in s?!!s.trailing:y),k.cancel=function(){void 0!==d&&clearTimeout(d),h=0,c=p=l=d=void 0},k.flush=function(){return void 0===d?f:w(t())},k},M6}function Xie(){if(fz)return D6;fz=1;var e=NL(),t=$c();return D6=function(n,r,a){var o=!0,i=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return t(a)&&(o="leading"in a?!!a.leading:o,i="trailing"in a?!!a.trailing:i),e(n,r,{leading:o,maxWait:r,trailing:i})}}ty.exports;var Jie=Xie();const ese=Dl(Jie);function Vy(e){return(Vy="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})(e)}function uz(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 qv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uz(Object(n),!0).forEach((function(t){tse(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tse(e,t,n){return(t=nse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nse(e){var t=rse(e,"string");return"symbol"==Vy(t)?t:t+""}function rse(e,t){if("object"!=Vy(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Vy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function ase(e,t){return cse(e)||sse(e,t)||ise(e,t)||ose()}function ose(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ise(e,t){if(e){if("string"==typeof e)return dz(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dz(e,t)}}function dz(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}function sse(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0!==t)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}function cse(e){if(Array.isArray(e))return e}var N6,pz,L6,hz,j6,mz,B6,gz,F6,yz,U6,_z,V6,vz,q6,bz,W6,wz,H6,kz,G6,xz,K6,Sz,Q6,Ez,lse=v.forwardRef((function(e,t){var n=e.aspect,r=e.initialDimension,a=void 0===r?{width:-1,height:-1}:r,o=e.width,i=void 0===o?"100%":o,s=e.height,c=void 0===s?"100%":s,l=e.minWidth,u=void 0===l?0:l,f=e.minHeight,d=e.maxHeight,p=e.children,h=e.debounce,m=void 0===h?0:h,g=e.id,y=e.className,b=e.onResize,_=e.style,w=void 0===_?{}:_,k=v.useRef(null),x=v.useRef();x.current=b,v.useImperativeHandle(t,(function(){return Object.defineProperty(k.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),k.current},configurable:!0})}));var S=ase(v.useState({containerWidth:a.width,containerHeight:a.height}),2),E=S[0],A=S[1],C=v.useCallback((function(e,t){A((function(n){var r=Math.round(e),a=Math.round(t);return n.containerWidth===r&&n.containerHeight===a?n:{containerWidth:r,containerHeight:a}}))}),[]);v.useEffect((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,a=n.height;C(r,a),null===(t=x.current)||void 0===t||t.call(x,r,a)};m>0&&(e=ese(e,m,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=k.current.getBoundingClientRect(),r=n.width,a=n.height;return C(r,a),t.observe(k.current),function(){t.disconnect()}}),[C,m]);var z=v.useMemo((function(){var e=E.containerWidth,t=E.containerHeight;if(e<0||t<0)return null;lS(Vv(i)||Vv(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",i,c),lS(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=Vv(i)?e:i,a=Vv(c)?t:c;n&&n>0&&(r?a=r/n:a&&(r=a*n),d&&a>d&&(a=d)),lS(r>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,a,i,c,u,f,n);var o=!Array.isArray(p)&&rie(p.type).endsWith("Chart");return ze.Children.map(p,(function(e){return ze.isValidElement(e)?v.cloneElement(e,qv({width:r,height:a},o?{style:qv({height:"100%",width:"100%",maxHeight:a,maxWidth:r},e.props.style)}:{})):e}))}),[n,p,c,d,f,u,E,i]);return ze.createElement("div",{id:g?"".concat(g):void 0,className:n5("recharts-responsive-container",y),style:qv(qv({},w),{},{width:i,height:c,minWidth:u,minHeight:f,maxHeight:d}),ref:k},z)}));function WT(){if(pz)return N6;pz=1;var e=SL()(Object.getPrototypeOf,Object);return N6=e}function fse(){if(hz)return L6;hz=1;var e=cu(),t=WT(),n=Yi(),r=Function.prototype,a=Object.prototype,o=r.toString,i=a.hasOwnProperty,s=o.call(Object);return L6=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var a=t(r);if(null===a)return!0;var c=i.call(a,"constructor")&&a.constructor;return"function"==typeof c&&c instanceof c&&o.call(c)==s}}function use(){if(mz)return j6;mz=1;var e=DL(),t=1/0;return j6=function(n){return n?(n=e(n))===t||n===-t?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}}function LL(){if(gz)return B6;gz=1;var e=OL();return B6=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function jL(){if(yz)return F6;yz=1;var e=use();return F6=function(t){var n=e(t),r=n%1;return n==n?r?n-r:n:0}}function HT(){if(_z)return U6;return _z=1,U6=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}}function BL(){if(vz)return V6;vz=1;var e=LL(),t=IT(),n=Object.prototype.hasOwnProperty;return V6=function(r,a,o){var i=r[a];(!n.call(r,a)||!t(i,o)||void 0===o&&!(a in r))&&e(r,a,o)}}function ak(){if(bz)return q6;bz=1;var e=BL(),t=LL();return q6=function(n,r,a,o){var i=!a;a||(a={});for(var s=-1,c=r.length;++s<c;){var l=r[s],u=o?o(a[l],n[l],l,a,n):void 0;void 0===u&&(u=n[l]),i?t(a,l,u):e(a,l,u)}return a}}function FL(){if(wz)return W6;wz=1;var e=ak(),t=rk();return W6=function(n,r){return n&&e(r,t(r),n)}}function dse(){if(kz)return H6;return kz=1,H6=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}}function pse(){if(xz)return G6;xz=1;var e=$c(),t=UT(),n=dse(),r=Object.prototype.hasOwnProperty;return G6=function(a){if(!e(a))return n(a);var o=t(a),i=[];for(var s in a)"constructor"==s&&(o||!r.call(a,s))||i.push(s);return i}}function GT(){if(Sz)return K6;Sz=1;var e=xL(),t=pse(),n=CL();return K6=function(r){return n(r)?e(r,!0):t(r)}}function hse(){if(Ez)return Q6;Ez=1;var e=ak(),t=GT();return Q6=function(n,r){return n&&e(r,t(r),n)}}var Cz,Y6,Rz,Z6,Tz,X6,Az,J6,Iz,eE,$z,tE,Pz,nE,Oz,rE,zz,aE,Mz,oE,Dz,iE,Nz,sE,Lz,cE,jz,lE,Bz,fE,Fz,uE,Uz,dE,Vz,pE,qz,hE,Wz,mE,Hz,gE,Gz,ny={exports:{}};function mse(){return Cz||(Cz=1,e=ny,t=ny.exports,n=Xo(),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,o=a&&a.exports===r?n.Buffer:void 0,i=o?o.allocUnsafe:void 0,e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=i?i(n):new e.constructor(n);return e.copy(r),r}),ny.exports;var e,t,n,r,a,o,i}function ok(){if(Rz)return Y6;return Rz=1,Y6=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}}function gse(){if(Tz)return Z6;Tz=1;var e=ak(),t=MT();return Z6=function(n,r){return e(n,t(n),r)}}function UL(){if(Az)return X6;Az=1;var e=zT(),t=WT(),n=MT(),r=wL(),a=Object.getOwnPropertySymbols;return X6=a?function(r){for(var a=[];r;)e(a,n(r)),r=t(r);return a}:r}function yse(){if(Iz)return J6;Iz=1;var e=ak(),t=UL();return J6=function(n,r){return e(n,t(n),r)}}function _se(){if($z)return eE;$z=1;var e=bL(),t=UL(),n=GT();return eE=function(r){return e(r,n,t)}}function vse(){if(Pz)return tE;Pz=1;var e=Object.prototype.hasOwnProperty;return tE=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}}function KT(){if(Oz)return nE;Oz=1;var e=vL();return nE=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function bse(){if(zz)return rE;zz=1;var e=KT();return rE=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}function wse(){if(Mz)return aE;Mz=1;var e=/\w*$/;return aE=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}function kse(){if(Dz)return oE;Dz=1;var e=$1(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return oE=function(e){return n?Object(n.call(e)):{}}}function xse(){if(Nz)return iE;Nz=1;var e=KT();return iE=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}function Sse(){if(Lz)return sE;Lz=1;var e=KT(),t=bse(),n=wse(),r=kse(),a=xse();return sE=function(o,i,s){var c=o.constructor;switch(i){case"[object ArrayBuffer]":return e(o);case"[object Boolean]":case"[object Date]":return new c(+o);case"[object DataView]":return t(o,s);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(o,s);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(o);case"[object RegExp]":return n(o);case"[object Symbol]":return r(o)}}}function ik(){if(jz)return cE;jz=1;var e=$c(),t=Object.create;return cE=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var a=new n;return n.prototype=void 0,a}}()}function Ese(){if(Bz)return lE;Bz=1;var e=ik(),t=WT(),n=UT();return lE=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}function Cse(){if(Fz)return fE;Fz=1;var e=P_(),t=Yi();return fE=function(n){return t(n)&&"[object Map]"==e(n)}}function Rse(){if(Uz)return uE;Uz=1;var e=Cse(),t=BT(),n=FT(),r=n&&n.isMap,a=r?t(r):e;return uE=a}function Tse(){if(Vz)return dE;Vz=1;var e=P_(),t=Yi();return dE=function(n){return t(n)&&"[object Set]"==e(n)}}function Ase(){if(qz)return pE;qz=1;var e=Tse(),t=BT(),n=FT(),r=n&&n.isSet,a=r?t(r):e;return pE=a}function VL(){if(Wz)return hE;Wz=1;var e=OT(),t=HT(),n=BL(),r=FL(),a=hse(),o=mse(),i=ok(),s=gse(),c=yse(),l=RL(),u=_se(),f=P_(),d=vse(),p=Sse(),h=Ese(),m=vi(),g=NT(),y=Rse(),v=$c(),b=Ase(),_=rk(),w=GT(),k="[object Arguments]",x="[object Function]",S="[object Object]",E={};return E[k]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E[S]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E[x]=E["[object WeakMap]"]=!1,hE=function A(C,z,I,T,R,j){var P,O=1&z,N=2&z,M=4&z;if(I&&(P=R?I(C,T,R,j):I(C)),void 0!==P)return P;if(!v(C))return C;var D=m(C);if(D){if(P=d(C),!O)return i(C,P)}else{var B=f(C),L=B==x||"[object GeneratorFunction]"==B;if(g(C))return o(C,O);if(B==S||B==k||L&&!R){if(P=N||L?{}:h(C),!O)return N?c(C,a(P,C)):s(C,r(P,C))}else{if(!E[B])return R?C:{};P=p(C,B,O)}}j||(j=new e);var q=j.get(C);if(q)return q;j.set(C,P),b(C)?C.forEach((function(e){P.add(A(e,z,I,e,C,j))})):y(C)&&C.forEach((function(e,t){P.set(t,A(e,z,I,t,C,j))}));var V=D?void 0:(M?N?u:l:N?w:_)(C);return t(V||C,(function(e,t){V&&(e=C[t=e]),n(P,t,A(e,z,I,t,C,j))})),P},hE}function Ise(){if(Hz)return mE;Hz=1;var e=Wie();return mE=function(t){return(null==t?0:t.length)?e(t,1):[]}}function $se(){if(Gz)return gE;Gz=1;var e=Ise(),t=Hie(),n=ML();return gE=function(r){return n(t(r,void 0,e),r+"")}}ny.exports;const Pse={light:"",dark:".dark"},qL=v.createContext(null);function WL(){const e=v.useContext(qL);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const Ose=v.forwardRef((({id:e,className:t,children:n,config:r,...a},o)=>{const i=v.useId(),s=`chart-${e||i.replace(/:/g,"")}`;return B.jsx(qL.Provider,{value:{config:r},children:B.jsxs("div",{"data-chart":s,ref:o,className:xe("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...a,children:[B.jsx(zse,{id:s,config:r}),B.jsx(lse,{children:n})]})})}));Ose.displayName="Chart";const zse=({id:e,config:t})=>{const n=Object.entries(t).filter((([,e])=>e.theme||e.color));return n.length?B.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Pse).map((([t,r])=>`\n${r} [data-chart=${e}] {\n${n.map((([e,n])=>{var r;const a=(null==(r=n.theme)?void 0:r[t])||n.color;return a?` --color-${e}: ${a};`:null})).join("\n")}\n}\n`)).join("\n")}}):null},Mse=v.forwardRef((({active:e,payload:t,className:n,indicator:r="dot",hideLabel:a=!1,hideIndicator:o=!1,label:i,labelFormatter:s,labelClassName:c,formatter:l,color:u,nameKey:f,labelKey:d},p)=>{const{config:h}=WL(),m=v.useMemo((()=>{var e;if(a||null==t||!t.length)return null;const[n]=t,r=`${d||(null==n?void 0:n.dataKey)||(null==n?void 0:n.name)||"value"}`,o=xC(h,n,r),l=d||"string"!=typeof i?null==o?void 0:o.label:(null==(e=h[i])?void 0:e.label)||i;return s?B.jsx("div",{className:xe("font-medium",c),children:s(l,t)}):l?B.jsx("div",{className:xe("font-medium",c),children:l}):null}),[i,s,t,a,c,h,d]);if(!e||null==t||!t.length)return null;const g=1===t.length&&"dot"!==r,y=t.length>10;return B.jsxs("div",{ref:p,className:xe("grid min-w-[8rem] items-start gap-1.5 rounded-sm border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",y&&"min-w-[16rem]",n),children:[g?null:m,B.jsx("div",{className:xe("grid gap-1.5",y&&"grid-cols-2 gap-x-4"),children:t.map(((e,t)=>{var n;const a=`${f||e.name||e.dataKey||"value"}`,i=xC(h,e,a),s=u||(null==(n=e.payload)?void 0:n.fill)||e.color||"";return B.jsx("div",{className:xe("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===r&&"items-center"),children:l&&void 0!==(null==e?void 0:e.value)&&void 0!==(null==e?void 0:e.payload)&&e.name?l(e.value,e.name,e,t,[e.payload]):B.jsxs(B.Fragment,{children:[null!=i&&i.icon?B.jsx(i.icon,{}):!o&&B.jsx("div",{className:xe("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===r,"w-1":"line"===r,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===r,"my-0.5":g&&"dashed"===r}),style:{"--color-bg":s,"--color-border":s}}),B.jsxs("div",{className:xe("flex flex-1 justify-between leading-none",g?"items-end":"items-center"),children:[B.jsxs("div",{className:"grid gap-1.5",children:[g?m:null,B.jsx("span",{className:"text-muted-foreground",children:(null==i?void 0:i.label)||e.name})]}),e.value&&B.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)}))})]})}));Mse.displayName="ChartTooltip";const Dse=v.forwardRef((({className:e,hideIcon:t=!1,payload:n,nameKey:r,onItemHover:a,hoveredItem:o},i)=>{const{config:s}=WL(),c=v.useRef({});return v.useEffect((()=>{if(o&&c.current[o]){const e=c.current[o];e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[o]),null!=n&&n.length?B.jsx("div",{ref:i,className:xe("flex h-[150px] w-full flex-wrap items-center justify-center gap-6 overflow-y-auto pb-10",e),children:n.map((e=>{var n;const i=`${r||e.dataKey||"value"}`,l=xC(s,e,i),u=!!a&&i===o;return B.jsxs("div",{ref:e=>{e?c.current[i]=e:delete c.current[i]},className:xe("group flex cursor-pointer select-none items-center gap-2 text-base transition-all duration-150",u?"scale-105 text-black":o?"text-gray-700 opacity-40":"text-gray-700"),onMouseEnter:()=>null==a?void 0:a(e.dataKey),onMouseLeave:()=>null==a?void 0:a(null),children:[null!=l&&l.icon&&!t?B.jsx(l.icon,{}):B.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color||""}}),B.jsx("span",{className:"min-w-[max-content]",children:(null==l?void 0:l.label)||e.name})]},(null==(n=e.value)?void 0:n.toString())||i)}))}):null}));function xC(e,t,n){if("object"!=typeof t||null===t)return;const r="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0;let a=n;return n in t&&"string"==typeof t[n]?a=t[n]:r&&n in r&&"string"==typeof r[n]&&(a=r[n]),a in e?e[a]:e[n]}Dse.displayName="ChartLegend";const Nse=({children:e,className:t})=>B.jsx("div",{className:xe("flex flex-wrap gap-1",t),children:e}),Kz=({text:e,icon:t,disabled:n,avatarSrc:r,onClick:a,onRemove:o})=>B.jsxs("div",{onClick:n?void 0:a,className:xe("flex cursor-pointer items-center gap-xxxs rounded-sm bg-slate-100 p-xxs text-sm font-medium text-slate-900 transition-all hover:bg-slate-200 [&_svg]:size-4",n&&"cursor-not-allowed bg-slate-100 text-slate-300"),children:[r&&B.jsxs(wT,{className:xe("size-6 text-[10px]"),children:[B.jsx(kT,{src:r,alt:e}),B.jsx(nL,{className:"text-xs",children:e.charAt(0).toUpperCase()})]}),t,B.jsx("span",{children:e}),o&&B.jsx("button",{onClick:e=>{e.stopPropagation(),null==o||o()},disabled:n,className:"pointer-events-auto cursor-pointer ",children:B.jsx(uT,{size:16})})]});function sk(e){const t=v.useRef({value:e,previous:e});return v.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function ck(e){const[t,n]=v.useState(void 0);return Ro((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const HL="Checkbox",[Lse,EZe]=Zo(HL),[jse,Bse]=Lse(HL),Fse=v.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:o,required:i,disabled:s,value:c="on",onCheckedChange:l,...u}=e,[f,d]=v.useState(null),p=un(t,(e=>d(e))),h=v.useRef(!1),m=!f||!!f.closest("form"),[g=!1,y]=ip({prop:a,defaultProp:o,onChange:l}),b=v.useRef(g);return v.useEffect((()=>{const e=null==f?void 0:f.form;if(e){const t=()=>y(b.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,y]),v.createElement(jse,{scope:n,state:g,disabled:s},v.createElement(wt.button,Ie({type:"button",role:"checkbox","aria-checked":qh(g)?"mixed":g,"aria-required":i,"data-state":GL(g),"data-disabled":s?"":void 0,disabled:s,value:c},u,{ref:p,onKeyDown:st(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:st(e.onClick,(e=>{y((e=>!!qh(e)||!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&v.createElement(qse,{control:f,bubbles:!h.current,name:r,value:c,checked:g,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))})),Use="CheckboxIndicator",Vse=v.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,o=Bse(Use,n);return v.createElement(zs,{present:r||qh(o.state)||!0===o.state},v.createElement(wt.span,Ie({"data-state":GL(o.state),"data-disabled":o.disabled?"":void 0},a,{ref:t,style:{pointerEvents:"none",...e.style}})))})),qse=e=>{const{control:t,checked:n,bubbles:r=!0,...a}=e,o=v.useRef(null),i=sk(n),s=ck(t);return v.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&a){const t=new Event("click",{bubbles:r});e.indeterminate=qh(n),a.call(e,!qh(n)&&n),e.dispatchEvent(t)}}),[i,n,r]),v.createElement("input",Ie({type:"checkbox","aria-hidden":!0,defaultChecked:!qh(n)&&n},a,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function qh(e){return"indeterminate"===e}function GL(e){return qh(e)?"indeterminate":e?"checked":"unchecked"}const KL=Fse,Wse=Vse,Hse=jl("transition-[border-width,background-color] duration-300 relative overflow-hidden ",{variants:{size:{default:"size-xs"},variant:{default:"peer shrink-0 rounded-sm border border-blue_100 data-[state=unchecked]:border-slate-300 data-[state=checked]:text-primary-foreground disabled:cursor-not-allowed disabled:!border-0 disabled:!bg-slate-100 md:hover:!border-[2px] md:hover:data-[state=checked]:bg-blue_120"}},defaultVariants:{size:"default",variant:"default"}}),QT=v.forwardRef((({className:e,size:t,variant:n,iconType:r,...a},o)=>{const[i]=v.useState(a.checked),[s,c]=v.useState(!1);v.useEffect((()=>{i!==a.checked&&c(!0)}),[a.checked]);const l=e=>"minus"===r?B.jsx(Wte,{...e}):B.jsx(fT,{...e});return B.jsxs(KL,{ref:o,className:xe(e,Hse({size:t,variant:n})),...a,children:[B.jsx("div",{className:xe("transform-origin-center absolute left-0 top-0 size-full",{"bg-blue_100":(s||i)&&!a.disabled,"animate-fill-in":a.checked&&s,"animate-fill-out":!a.checked&&s})}),B.jsx(Wse,{className:"relative flex items-center justify-center text-current",children:B.jsx(l,{className:"size-xxxs",color:a.disabled?"var(--slate-300)":"white"})})]})}));QT.displayName=KL.displayName;var Qz=1,Gse=.9,Kse=.8,Qse=.17,yE=.1,_E=.999,Yse=.9999,Zse=.99,Xse=/[\\\/_+.#"@\[\(\{&]/,Jse=/[\\\/_+.#"@\[\(\{&]/g,ece=/[\s-]/,QL=/[\s-]/g;function SC(e,t,n,r,a,o,i){if(o===t.length)return a===e.length?Qz:Zse;var s=`${a},${o}`;if(void 0!==i[s])return i[s];for(var c,l,u,f,d=r.charAt(o),p=n.indexOf(d,a),h=0;p>=0;)(c=SC(e,t,n,r,p+1,o+1,i))>h&&(p===a?c*=Qz:Xse.test(e.charAt(p-1))?(c*=Kse,(u=e.slice(a,p-1).match(Jse))&&a>0&&(c*=Math.pow(_E,u.length))):ece.test(e.charAt(p-1))?(c*=Gse,(f=e.slice(a,p-1).match(QL))&&a>0&&(c*=Math.pow(_E,f.length))):(c*=Qse,a>0&&(c*=Math.pow(_E,p-a))),e.charAt(p)!==t.charAt(o)&&(c*=Yse)),(c<yE&&n.charAt(p-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(p-1)!==r.charAt(o))&&((l=SC(e,t,n,r,p+1,o+2,i))*yE>c&&(c=l*yE)),c>h&&(h=c),p=n.indexOf(d,p+1);return i[s]=h,h}function Yz(e){return e.toLowerCase().replace(QL," ")}function tce(e,t,n){return SC(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,Yz(e),Yz(t),0,0,{})}var V0='[cmdk-group=""]',vE='[cmdk-group-items=""]',nce='[cmdk-group-heading=""]',YT='[cmdk-item=""]',Zz=`${YT}:not([aria-disabled="true"])`,EC="cmdk-item-select",jh="data-value",rce=(e,t,n)=>tce(e,t,n),YL=v.createContext(void 0),O_=()=>v.useContext(YL),ZL=v.createContext(void 0),ZT=()=>v.useContext(ZL),XL=v.createContext(void 0),JL=v.forwardRef(((e,t)=>{let n=Wg((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),r=Wg((()=>new Set)),a=Wg((()=>new Map)),o=Wg((()=>new Map)),i=Wg((()=>new Set)),s=ej(e),{label:c,children:l,value:u,onValueChange:f,filter:d,shouldFilter:p,loop:h,disablePointerSelection:m=!1,vimBindings:g=!0,...y}=e,b=v.useId(),_=v.useId(),w=v.useId(),k=v.useRef(null),x=hce();nm((()=>{if(void 0!==u){let e=u.trim();n.current.value=e,S.emit()}}),[u]),nm((()=>{x(6,T)}),[]);let S=v.useMemo((()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var a,o,i;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)I(),C(),x(1,z);else if("value"===e&&(r||x(5,T),void 0!==(null==(a=s.current)?void 0:a.value))){let e=t??"";return void(null==(i=(o=s.current).onValueChange)||i.call(o,e))}S.emit()}},emit:()=>{i.current.forEach((e=>e()))}})),[]),E=v.useMemo((()=>({value:(e,t,r)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,A(t,r)),x(2,(()=>{C(),S.emit()})))},item:(e,t)=>(r.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),x(3,(()=>{I(),C(),n.current.value||z(),S.emit()})),()=>{o.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=R();x(4,(()=>{I(),(null==t?void 0:t.getAttribute("id"))===e&&z(),S.emit()}))}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{o.current.delete(e),a.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],disablePointerSelection:m,listId:b,inputId:w,labelId:_,listInnerRef:k})),[]);function A(e,t){var r,a;let o=null!=(a=null==(r=s.current)?void 0:r.filter)?a:rce;return e?o(e,n.current.search,t):0}function C(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=a.current.get(n),o=0;r.forEach((t=>{let n=e.get(t);o=Math.max(n,o)})),t.push([n,o])}));let r=k.current;j().sort(((t,n)=>{var r,a;let o=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(a=e.get(o))?a:0)})).forEach((e=>{let t=e.closest(vE);t?t.appendChild(e.parentElement===t?e:e.closest(`${vE} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${vE} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=k.current.querySelector(`${V0}[${jh}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function z(){let e=j().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(jh);S.setState("value",t||void 0)}function I(){var e,t,i,c;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let l=0;for(let a of r.current){let r=A(null!=(t=null==(e=o.current.get(a))?void 0:e.value)?t:"",null!=(c=null==(i=o.current.get(a))?void 0:i.keywords)?c:[]);n.current.filtered.items.set(a,r),r>0&&l++}for(let[e,t]of a.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=l}function T(){var e,t,n;let r=R();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(V0))?void 0:t.querySelector(nce))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=k.current)?void 0:e.querySelector(`${YT}[aria-selected="true"]`)}function j(){var e;return Array.from(null==(e=k.current)?void 0:e.querySelectorAll(Zz))}function P(e){let t=j()[e];t&&S.setState("value",t.getAttribute(jh))}function O(e){var t;let n=R(),r=j(),a=r.findIndex((e=>e===n)),o=r[a+e];null!=(t=s.current)&&t.loop&&(o=a+e<0?r[r.length-1]:a+e===r.length?r[0]:r[a+e]),o&&S.setState("value",o.getAttribute(jh))}function N(e){let t,n=R(),r=null==n?void 0:n.closest(V0);for(;r&&!t;)r=e>0?dce(r,V0):pce(r,V0),t=null==r?void 0:r.querySelector(Zz);t?S.setState("value",t.getAttribute(jh)):O(e)}let M=()=>P(j().length-1),D=e=>{e.preventDefault(),e.metaKey?M():e.altKey?N(1):O(1)},B=e=>{e.preventDefault(),e.metaKey?P(0):e.altKey?N(-1):O(-1)};return v.createElement(wt.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=y.onKeyDown)||t.call(y,e),!e.defaultPrevented)switch(e.key){case"n":case"j":g&&e.ctrlKey&&D(e);break;case"ArrowDown":D(e);break;case"p":case"k":g&&e.ctrlKey&&B(e);break;case"ArrowUp":B(e);break;case"Home":e.preventDefault(),P(0);break;case"End":e.preventDefault(),M();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=R();if(t){let e=new Event(EC);t.dispatchEvent(e)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:gce},c),lk(e,(e=>v.createElement(ZL.Provider,{value:S},v.createElement(YL.Provider,{value:E},e)))))})),ace=v.forwardRef(((e,t)=>{var n,r;let a=v.useId(),o=v.useRef(null),i=v.useContext(XL),s=O_(),c=ej(e),l=null!=(r=null==(n=c.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;nm((()=>{if(!l)return s.item(a,null==i?void 0:i.id)}),[l]);let u=tj(a,o,[e.value,e.children,o],e.keywords),f=ZT(),d=rm((e=>e.value&&e.value===u.current)),p=rm((e=>!(!l&&!1!==s.filter())||(!e.search||e.filtered.items.get(a)>0)));function h(){var e,t;m(),null==(t=(e=c.current).onSelect)||t.call(e,u.current)}function m(){f.setState("value",u.current,!0)}if(v.useEffect((()=>{let t=o.current;if(t&&!e.disabled)return t.addEventListener(EC,h),()=>t.removeEventListener(EC,h)}),[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:y,onSelect:b,forceMount:_,keywords:w,...k}=e;return v.createElement(wt.div,{ref:qy([o,t]),...k,id:a,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!d,"data-disabled":!!g,"data-selected":!!d,onPointerMove:g||s.disablePointerSelection?void 0:m,onClick:g?void 0:h},e.children)})),oce=v.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:a,...o}=e,i=v.useId(),s=v.useRef(null),c=v.useRef(null),l=v.useId(),u=O_(),f=rm((e=>!(!a&&!1!==u.filter())||(!e.search||e.filtered.groups.has(i))));nm((()=>u.group(i)),[]),tj(i,s,[e.value,e.heading,c]);let d=v.useMemo((()=>({id:i,forceMount:a})),[a]);return v.createElement(wt.div,{ref:qy([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&v.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),lk(e,(e=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},v.createElement(XL.Provider,{value:d},e)))))})),ice=v.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,a=v.useRef(null),o=rm((e=>!e.search));return n||o?v.createElement(wt.div,{ref:qy([a,t]),...r,"cmdk-separator":"",role:"separator"}):null})),sce=v.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,a=null!=e.value,o=ZT(),i=rm((e=>e.search)),s=rm((e=>e.value)),c=O_(),l=v.useMemo((()=>{var e;let t=null==(e=c.listInnerRef.current)?void 0:e.querySelector(`${YT}[${jh}="${encodeURIComponent(s)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return v.useEffect((()=>{null!=e.value&&o.setState("search",e.value)}),[e.value]),v.createElement(wt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:a?e.value:i,onChange:e=>{a||o.setState("search",e.target.value),null==n||n(e.target.value)}})})),cce=v.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,o=v.useRef(null),i=v.useRef(null),s=O_();return v.useEffect((()=>{if(i.current&&o.current){let e,t=i.current,n=o.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),v.createElement(wt.div,{ref:qy([o,t]),...a,"cmdk-list":"",role:"listbox","aria-label":r,id:s.listId},lk(e,(e=>v.createElement("div",{ref:qy([i,s.listInnerRef]),"cmdk-list-sizer":""},e))))})),lce=v.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:o,container:i,...s}=e;return v.createElement(U5,{open:n,onOpenChange:r},v.createElement(Qw,{container:i},v.createElement(A1,{"cmdk-overlay":"",className:a}),v.createElement(I1,{"aria-label":e.label,"cmdk-dialog":"",className:o},v.createElement(JL,{ref:t,...s}))))})),fce=v.forwardRef(((e,t)=>rm((e=>0===e.filtered.count))?v.createElement(wt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),uce=v.forwardRef(((e,t)=>{let{progress:n,children:r,label:a="Loading...",...o}=e;return v.createElement(wt.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},lk(e,(e=>v.createElement("div",{"aria-hidden":!0},e))))})),bi=Object.assign(JL,{List:cce,Item:ace,Input:sce,Group:oce,Separator:ice,Dialog:lce,Empty:fce,Loading:uce});function dce(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function pce(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function ej(e){let t=v.useRef(e);return nm((()=>{t.current=e})),t}var nm=typeof window>"u"?v.useEffect:v.useLayoutEffect;function Wg(e){let t=v.useRef();return void 0===t.current&&(t.current=e()),t}function qy(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function rm(e){let t=ZT(),n=()=>e(t.snapshot());return v.useSyncExternalStore(t.subscribe,n,n)}function tj(e,t,n,r=[]){let a=v.useRef(),o=O_();return nm((()=>{var i;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),c=r.map((e=>e.trim()));o.value(e,s,c),null==(i=t.current)||i.setAttribute(jh,s),a.current=s})),a}var hce=()=>{let[e,t]=v.useState(),n=Wg((()=>new Map));return nm((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function mce(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}function lk({asChild:e,children:t},n){return e&&v.isValidElement(t)?v.cloneElement(mce(t),{ref:t.ref},n(t.props.children)):n(t)}var gce={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const yce=Qw,nj=v.forwardRef((({className:e,...t},n)=>(v.useEffect((()=>{const e=document.querySelectorAll(".blured-modal-overlay");return e.forEach((e=>e&&(e.style.filter="blur(5px)"))),()=>{e.forEach((e=>e&&(e.style.filter="none")))}}),[]),B.jsx(A1,{ref:n,"data-testid":"dialog_overlay",className:xe("fixed inset-0 z-100 bg-black opacity-[0.8] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}))));nj.displayName=A1.displayName;const _ce=jl("",{variants:{closeVariant:{none:"",insideCard:"absolute right-m top-m rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground text-slate-400",outsideCard:"fixed right-[30px] top-[30px] z-100 text-slate-400",mobileGallery:"fixed right-m top-[62px] text-white z-[110]"}},defaultVariants:{closeVariant:"outsideCard"}}),vce=jl("",{variants:{closeSize:{small:"size-6",big:"size-[42px]","18x18":"size-[18px]"}},defaultVariants:{closeSize:"small"}}),bce=v.forwardRef((({title:e,titleIcon:t,className:n,showClose:r=!0,closeVariant:a="outsideCard",closeSize:o="big",children:i,overlayClassName:s,childrenClassName:c,onBack:l,onCloseModal:u,renderFooter:f,...d},p)=>{const h=B.jsxs(Yw,{className:xe(_ce({closeVariant:a})),children:[B.jsx(uT,{onClick:u,fill:"currentColor",className:xe(vce({closeSize:o}))}),B.jsx("span",{className:"sr-only",children:"Close"})]});return B.jsxs(yce,{children:[B.jsx(nj,{className:s,onClick:u}),r&&"insideCard"!==a&&h,B.jsxs(I1,{ref:p,className:xe("fixed left-[50%] top-[50%] z-100 grid max-w-[600px] translate-x-[-50%] translate-y-[-50%] !overflow-visible rounded-sm bg-background shadow-lg outline-none duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] max-md:w-[calc(100vw-32px)] md:w-full [&>div]:min-w-0",n),...d,children:[e&&B.jsxs("h3",{className:"flex items-center justify-center gap-xxs border-b border-slate-200 p-m text-center text-lg font-semibold text-slate-700",children:[t,e]}),B.jsx("div",{className:xe("p-m",c),children:i}),r&&"insideCard"===a&&h,l&&B.jsx("button",{"data-testid":"dialog-back-button","aria-label":"Back",onClick:l,className:"absolute left-m top-m",children:B.jsx(u5,{color:"var(--slate-400)",size:24})}),B.jsx(rj,{className:"empty:hidden",children:null==f?void 0:f()})]})]})}));bce.displayName=I1.displayName;const rj=({className:e,...t})=>B.jsx("div",{className:xe("flex border-t border-slate-200 p-m",e),...t});rj.displayName="DialogFooter";const wce=v.forwardRef((({className:e,...t},n)=>B.jsx(R_,{ref:n,className:xe("text-lg font-semibold leading-none tracking-tight",e),...t})));wce.displayName=R_.displayName;const kce=v.forwardRef((({className:e,...t},n)=>B.jsx(T_,{ref:n,className:xe("text-sm text-muted-foreground",e),...t})));kce.displayName=T_.displayName;const xce=v.forwardRef((({className:e,...t},n)=>B.jsx(bi,{ref:n,className:xe("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));xce.displayName=bi.displayName;const Sce=v.forwardRef((({className:e,...t},n)=>B.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:B.jsx(bi.Input,{ref:n,className:xe("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})})));Sce.displayName=bi.Input.displayName;const Ece=v.forwardRef((({className:e,...t},n)=>B.jsx(bi.List,{ref:n,className:xe("mt-2 max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));Ece.displayName=bi.List.displayName;const Cce=v.forwardRef(((e,t)=>B.jsx(bi.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));Cce.displayName=bi.Empty.displayName;const Rce=v.forwardRef((({className:e,...t},n)=>B.jsx(bi.Group,{ref:n,className:xe("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})));Rce.displayName=bi.Group.displayName;const Tce=v.forwardRef((({className:e,...t},n)=>B.jsx(bi.Separator,{ref:n,className:xe("-mx-1 h-px bg-border",e),...t})));Tce.displayName=bi.Separator.displayName;const Ace=v.forwardRef((({className:e,...t},n)=>B.jsx(bi.Item,{ref:n,className:xe("relative flex max-w-[215px] cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t})));function np(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Xz(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function aj(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Xz(e,t);return!n&&"function"==typeof r&&(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Xz(e[t],null)}}}}function hm(...e){return v.useCallback(aj(...e),e)}function Ice(e,t){const n=v.createContext(t),r=e=>{const{children:t,...r}=e,a=v.useMemo((()=>r),Object.values(r));return B.jsx(n.Provider,{value:a,children:t})};return r.displayName=e+"Provider",[r,function(r){const a=v.useContext(n);if(a)return a;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function $ce(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>v.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return v.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=v.createContext(r),o=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,c=(null==(n=null==r?void 0:r[e])?void 0:n[o])||a,l=v.useMemo((()=>s),Object.values(s));return B.jsx(c.Provider,{value:l,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const c=(null==(s=null==i?void 0:i[e])?void 0:s[o])||a,l=v.useContext(c);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Pce(r,...t)]}function Pce(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return v.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}Ace.displayName=bi.Item.displayName;var Hb=null!=globalThis&&globalThis.document?v.useLayoutEffect:()=>{},Oce=Ab[" useId ".trim().toString()]||(()=>{}),zce=0;function bE(e){const[t,n]=v.useState(Oce());return Hb((()=>{e||n((e=>e??String(zce++)))}),[e]),e||(t?`radix-${t}`:"")}function am(e){const t=v.useRef(e);return v.useEffect((()=>{t.current=e})),v.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Mce({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=Dce({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=am(n);return[i,v.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}function Dce({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,a=v.useRef(r),o=am(t);return v.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}function oj(e){const t=Nce(e),n=v.forwardRef(((e,n)=>{const{children:r,...a}=e,o=v.Children.toArray(r),i=o.find(jce);if(i){const e=i.props.children,r=o.map((t=>t===i?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t));return B.jsx(t,{...a,ref:n,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return B.jsx(t,{...a,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function Nce(e){const t=v.forwardRef(((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const e=Fce(n),a=Bce(r,n.props);return n.type!==v.Fragment&&(a.ref=t?aj(t,e):e),v.cloneElement(n,a)}return v.Children.count(n)>1?v.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var Lce=Symbol("radix.slottable");function jce(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Lce}function Bce(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function Fce(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Uce=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],lu=Uce.reduce(((e,t)=>{const n=oj(`Primitive.${t}`),r=v.forwardRef(((e,r)=>{const{asChild:a,...o}=e,i=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),B.jsx(i,{...o,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function Vce(e,t){e&&Ll.flushSync((()=>e.dispatchEvent(t)))}function qce(e,t=(null==globalThis?void 0:globalThis.document)){const n=am(e);v.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var Jz,Wce="DismissableLayer",CC="dismissableLayer.update",Hce="dismissableLayer.pointerDownOutside",Gce="dismissableLayer.focusOutside",ij=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sj=v.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...c}=e,l=v.useContext(ij),[u,f]=v.useState(null),d=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=v.useState({}),h=hm(t,(e=>f(e))),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,_=l.layersWithOutsidePointerEventsDisabled.size>0,w=b>=y,k=Yce((e=>{const t=e.target,n=[...l.branches].some((e=>e.contains(t)));!w||n||(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),d),x=Zce((e=>{const t=e.target;[...l.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),d);return qce((e=>{b===l.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),d),v.useEffect((()=>{if(u)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(Jz=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),eM(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(d.body.style.pointerEvents=Jz)}}),[u,d,n,l]),v.useEffect((()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),eM())}),[u,l]),v.useEffect((()=>{const e=()=>p({});return document.addEventListener(CC,e),()=>document.removeEventListener(CC,e)}),[]),B.jsx(lu.div,{...c,ref:h,style:{pointerEvents:_?w?"auto":"none":void 0,...e.style},onFocusCapture:np(e.onFocusCapture,x.onFocusCapture),onBlurCapture:np(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:np(e.onPointerDownCapture,k.onPointerDownCapture)})}));sj.displayName=Wce;var Kce="DismissableLayerBranch",Qce=v.forwardRef(((e,t)=>{const n=v.useContext(ij),r=v.useRef(null),a=hm(t,r);return v.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),B.jsx(lu.div,{...e,ref:a})}));function Yce(e,t=(null==globalThis?void 0:globalThis.document)){const n=am(e),r=v.useRef(!1),a=v.useRef((()=>{}));return v.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){cj(Hce,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Zce(e,t=(null==globalThis?void 0:globalThis.document)){const n=am(e),r=v.useRef(!1);return v.useEffect((()=>{const e=e=>{e.target&&!r.current&&cj(Gce,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function eM(){const e=new CustomEvent(CC);document.dispatchEvent(e)}function cj(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Vce(a,o):a.dispatchEvent(o)}Qce.displayName=Kce;var wE="focusScope.autoFocusOnMount",kE="focusScope.autoFocusOnUnmount",tM={bubbles:!1,cancelable:!0},Xce="FocusScope",lj=v.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,c]=v.useState(null),l=am(a),u=am(o),f=v.useRef(null),d=hm(t,(e=>c(e))),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?f.current=t:qd(f.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||qd(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&qd(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,p.paused]),v.useEffect((()=>{if(s){rM.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(wE,tM);s.addEventListener(wE,l),s.dispatchEvent(t),t.defaultPrevented||(Jce(ale(fj(s)),{select:!0}),document.activeElement===e&&qd(s))}return()=>{s.removeEventListener(wE,l),setTimeout((()=>{const t=new CustomEvent(kE,tM);s.addEventListener(kE,u),s.dispatchEvent(t),t.defaultPrevented||qd(e??document.body,{select:!0}),s.removeEventListener(kE,u),rM.remove(p)}),0)}}}),[s,l,u,p]);const h=v.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=ele(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&qd(o,{select:!0})):(e.preventDefault(),n&&qd(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,p.paused]);return B.jsx(lu.div,{tabIndex:-1,...i,ref:d,onKeyDown:h})}));function Jce(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(qd(r,{select:t}),document.activeElement!==n)return}function ele(e){const t=fj(e);return[nM(t,e),nM(t.reverse(),e)]}function fj(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nM(e,t){for(const n of e)if(!tle(n,{upTo:t}))return n}function tle(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function nle(e){return e instanceof HTMLInputElement&&"select"in e}function qd(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&nle(e)&&t&&e.select()}}lj.displayName=Xce;var rM=rle();function rle(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=aM(e,t),e.unshift(t)},remove(t){var n;e=aM(e,t),null==(n=e[0])||n.resume()}}}function aM(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function ale(e){return e.filter((e=>"A"!==e.tagName))}var ole="Portal",uj=v.forwardRef(((e,t)=>{var n;const{container:r,...a}=e,[o,i]=v.useState(!1);Hb((()=>i(!0)),[]);const s=r||o&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return s?W7.createPortal(B.jsx(lu.div,{...a,ref:t}),s):null}));function ile(e,t){return v.useReducer(((e,n)=>t[e][n]??e),e)}uj.displayName=ole;var fk=e=>{const{present:t,children:n}=e,r=sle(t),a="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),o=hm(r.ref,cle(a));return"function"==typeof n||r.isPresent?v.cloneElement(a,{ref:o}):null};function sle(e){const[t,n]=v.useState(),r=v.useRef({}),a=v.useRef(e),o=v.useRef("none"),i=e?"mounted":"unmounted",[s,c]=ile(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect((()=>{const e=Wv(r.current);o.current="mounted"===s?e:"none"}),[s]),Hb((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=Wv(t);e?c("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?c("UNMOUNT"):c(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),a.current=e}}),[e,c]),Hb((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=Wv(r.current).includes(o.animationName);if(o.target===t&&i&&(c("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=Wv(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Wv(e){return(null==e?void 0:e.animationName)||"none"}function cle(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}fk.displayName="Presence";var xE=0;function lle(){v.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oM()),document.body.insertAdjacentElement("beforeend",e[1]??oM()),xE++,()=>{1===xE&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),xE--}}),[])}function oM(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var dj=E5(),SE=function(){},uk=v.forwardRef((function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:SE,onWheelCapture:SE,onTouchMoveCapture:SE}),a=r[0],o=r[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,f=e.shards,d=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=e.gapMode,_=vT(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=d,k=S5([n,t]),x=So(So({},_),a);return v.createElement(v.Fragment,null,u&&v.createElement(w,{sideCar:dj,removeScrollBar:l,shards:f,noIsolation:p,inert:h,setCallbacks:o,allowPinchZoom:!!m,lockRef:n,gapMode:b}),i?v.cloneElement(v.Children.only(s),So(So({},x),{ref:k})):v.createElement(y,So({},x,{className:c,ref:k}),s))}));uk.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},uk.classNames={fullWidth:wy,zeroRight:by};var RC=!1;if(typeof window<"u")try{var Hv=Object.defineProperty({},"passive",{get:function(){return RC=!0,!0}});window.addEventListener("test",Hv,Hv),window.removeEventListener("test",Hv,Hv)}catch{RC=!1}var jg=!!RC&&{passive:!1},fle=function(e){return"TEXTAREA"===e.tagName},pj=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!fle(e)&&"visible"===n[t])},ule=function(e){return pj(e,"overflowY")},dle=function(e){return pj(e,"overflowX")},iM=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),hj(e,r)){var a=mj(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ple=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},hle=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},hj=function(e,t){return"v"===e?ule(t):dle(t)},mj=function(e,t){return"v"===e?ple(t):hle(t)},mle=function(e,t){return"h"===e&&"rtl"===t?-1:1},gle=function(e,t,n,r,a){var o=mle(e,window.getComputedStyle(t).direction),i=o*r,s=n.target,c=t.contains(s),l=!1,u=i>0,f=0,d=0;do{var p=mj(e,s),h=p[0],m=p[1]-p[2]-o*h;(h||m)&&hj(e,s)&&(f+=m,d+=h),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(Math.abs(f)<1||!a)||!u&&(Math.abs(d)<1||!a))&&(l=!0),l},Gv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sM=function(e){return[e.deltaX,e.deltaY]},cM=function(e){return e&&"current"in e?e.current:e},yle=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_le=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},vle=0,Bg=[];function ble(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),a=v.useState(vle++)[0],o=v.useState(bT)[0],i=v.useRef(e);v.useEffect((function(){i.current=e}),[e]),v.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=x5([e.lockRef.current],(e.shards||[]).map(cM),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=Gv(e),s=n.current,c="deltaX"in e?e.deltaX:s[0]-o[0],l="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=iM(f,u);if(!d)return!0;if(d?a=f:(a="v"===f?"h":"v",d=iM(f,u)),!d)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=a),!a)return!0;var p=r.current||a;return gle(p,t,e,"h"===p?c:l,!0)}),[]),c=v.useCallback((function(e){var n=e;if(Bg.length&&Bg[Bg.length-1]===o){var r="deltaY"in n?sM(n):Gv(n),a=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&yle(e.delta,r)}))[0];if(a&&a.should)return void(n.cancelable&&n.preventDefault());if(!a){var c=(i.current.shards||[]).map(cM).filter(Boolean).filter((function(e){return e.contains(n.target)}));(c.length>0?s(n,c[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=v.useCallback((function(e,n,r,a){var o={name:e,delta:n,target:r,should:a,shadowParent:wle(r)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=v.useCallback((function(e){n.current=Gv(e),r.current=void 0}),[]),f=v.useCallback((function(t){l(t.type,sM(t),t.target,s(t,e.lockRef.current))}),[]),d=v.useCallback((function(t){l(t.type,Gv(t),t.target,s(t,e.lockRef.current))}),[]);v.useEffect((function(){return Bg.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,jg),document.addEventListener("touchmove",c,jg),document.addEventListener("touchstart",u,jg),function(){Bg=Bg.filter((function(e){return e!==o})),document.removeEventListener("wheel",c,jg),document.removeEventListener("touchmove",c,jg),document.removeEventListener("touchstart",u,jg)}}),[]);var p=e.removeScrollBar,h=e.inert;return v.createElement(v.Fragment,null,h?v.createElement(o,{styles:_le(a)}):null,p?v.createElement(A5,{gapMode:e.gapMode}):null)}function wle(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kle=R5(dj,ble);var gj=v.forwardRef((function(e,t){return v.createElement(uk,So({},e,{ref:t,sideCar:kle}))}));gj.classNames=uk.classNames;var XT="Dialog",[yj,CZe]=$ce(XT),[xle,Pc]=yj(XT),_j=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=v.useRef(null),c=v.useRef(null),[l=!1,u]=Mce({prop:r,defaultProp:a,onChange:o});return B.jsx(xle,{scope:t,triggerRef:s,contentRef:c,contentId:bE(),titleId:bE(),descriptionId:bE(),open:l,onOpenChange:u,onOpenToggle:v.useCallback((()=>u((e=>!e))),[u]),modal:i,children:n})};_j.displayName=XT;var vj="DialogTrigger",bj=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Pc(vj,n),o=hm(t,a.triggerRef);return B.jsx(lu.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":tA(a.open),...r,ref:o,onClick:np(e.onClick,a.onOpenToggle)})}));bj.displayName=vj;var JT="DialogPortal",[Sle,wj]=yj(JT,{forceMount:void 0}),kj=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=Pc(JT,t);return B.jsx(Sle,{scope:t,forceMount:n,children:v.Children.map(r,(e=>B.jsx(fk,{present:n||o.open,children:B.jsx(uj,{asChild:!0,container:a,children:e})})))})};kj.displayName=JT;var Gb="DialogOverlay",xj=v.forwardRef(((e,t)=>{const n=wj(Gb,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Pc(Gb,e.__scopeDialog);return o.modal?B.jsx(fk,{present:r||o.open,children:B.jsx(Cle,{...a,ref:t})}):null}));xj.displayName=Gb;var Ele=oj("DialogOverlay.RemoveScroll"),Cle=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Pc(Gb,n);return B.jsx(gj,{as:Ele,allowPinchZoom:!0,shards:[a.contentRef],children:B.jsx(lu.div,{"data-state":tA(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),om="DialogContent",Sj=v.forwardRef(((e,t)=>{const n=wj(om,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Pc(om,e.__scopeDialog);return B.jsx(fk,{present:r||o.open,children:o.modal?B.jsx(Rle,{...a,ref:t}):B.jsx(Tle,{...a,ref:t})})}));Sj.displayName=om;var Rle=v.forwardRef(((e,t)=>{const n=Pc(om,e.__scopeDialog),r=v.useRef(null),a=hm(t,n.contentRef,r);return v.useEffect((()=>{const e=r.current;if(e)return Kw(e)}),[]),B.jsx(Ej,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:np(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:np(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:np(e.onFocusOutside,(e=>e.preventDefault()))})})),Tle=v.forwardRef(((e,t)=>{const n=Pc(om,e.__scopeDialog),r=v.useRef(!1),a=v.useRef(!1);return B.jsx(Ej,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),Ej=v.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=Pc(om,n),c=v.useRef(null),l=hm(t,c);return lle(),B.jsxs(B.Fragment,{children:[B.jsx(lj,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:B.jsx(sj,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":tA(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),B.jsxs(B.Fragment,{children:[B.jsx(Ale,{titleId:s.titleId}),B.jsx($le,{contentRef:c,descriptionId:s.descriptionId})]})]})})),eA="DialogTitle",Cj=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Pc(eA,n);return B.jsx(lu.h2,{id:a.titleId,...r,ref:t})}));Cj.displayName=eA;var Rj="DialogDescription",Tj=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Pc(Rj,n);return B.jsx(lu.p,{id:a.descriptionId,...r,ref:t})}));Tj.displayName=Rj;var Aj="DialogClose",Ij=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Pc(Aj,n);return B.jsx(lu.button,{type:"button",...r,ref:t,onClick:np(e.onClick,(()=>a.onOpenChange(!1)))})}));function tA(e){return e?"open":"closed"}Ij.displayName=Aj;var $j="DialogTitleWarning",[RZe,Pj]=Ice($j,{contentName:om,titleName:eA,docsSlug:"dialog"}),Ale=({titleId:e})=>{const t=Pj($j),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},Ile="DialogDescriptionWarning",$le=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pj(Ile).contentName}}.`;return v.useEffect((()=>{var r;const a=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},Ple=_j,Ole=bj,zle=kj,Mle=xj,Dle=Sj,Nle=Cj,Lle=Tj,jle=Ij;function Ble(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Oj=ze.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),P1=()=>{const e=ze.useContext(Oj);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};Ble("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}");const Fle=24,Ule=typeof window<"u"?v.useLayoutEffect:v.useEffect;function lM(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function Vle(){return nA(/^Mac/)}function qle(){return nA(/^iPhone/)}function fM(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Wle(){return nA(/^iPad/)||Vle()&&navigator.maxTouchPoints>1}function zj(){return qle()||Wle()}function nA(e){return typeof window<"u"&&null!=window.navigator?e.test(window.navigator.platform):void 0}const EE=typeof document<"u"&&window.visualViewport;function uM(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Mj(e){for(uM(e)&&(e=e.parentElement);e&&!uM(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const Hle=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let CE,Kv=0;function Gle(e={}){let{isDisabled:t}=e;Ule((()=>{if(!t)return Kv++,1===Kv&&zj()&&(CE=Kle()),()=>{Kv--,0===Kv&&(null==CE||CE())}}),[t])}function Kle(){let e,t=0,n=window.pageXOffset,r=window.pageYOffset,a=lM(Qle(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let o=lM(q0(document,"touchstart",(n=>{e=Mj(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),q0(document,"touchmove",(n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,a=e.scrollTop,o=e.scrollHeight-e.clientHeight;0!==o&&((a<=0&&r>t||a>=o&&r<t)&&n.preventDefault(),t=r)}),{passive:!1,capture:!0}),q0(document,"touchend",(e=>{let t=e.target;TC(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),q0(document,"focus",(e=>{let t=e.target;TC(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",EE&&(EE.height<window.innerHeight?requestAnimationFrame((()=>{dM(t)})):EE.addEventListener("resize",(()=>dM(t)),{once:!0}))})))}),!0),q0(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{a(),o(),window.scrollTo(n,r)}}function Qle(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function q0(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function dM(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=Mj(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=r-n)}e=t.parentElement}}function TC(e){return e instanceof HTMLInputElement&&!Hle.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Yle(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Zle(...e){return t=>e.forEach((e=>Yle(e,t)))}function Dj(...e){return v.useCallback(Zle(...e),e)}const Nj=new WeakMap;function _a(e,t,n=!1){if(!(e&&e instanceof HTMLElement))return;let r={};Object.entries(t).forEach((([t,n])=>{t.startsWith("--")?e.style.setProperty(t,n):(r[t]=e.style[t],e.style[t]=n)})),!n&&Nj.set(e,r)}function Xle(e,t){if(!(e&&e instanceof HTMLElement))return;let n=Nj.get(e);n&&(e.style[t]=n[t])}const va=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Qv(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let a=r.match(/^matrix3d\((.+)\)$/);return a?parseFloat(a[1].split(", ")[va(t)?13:12]):(a=r.match(/^matrix\((.+)\)$/),a?parseFloat(a[1].split(", ")[va(t)?5:4]):null)}function Jle(e){return 8*(Math.log(e+1)-2)}function RE(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function efe(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}const pr={DURATION:.5,EASE:[.32,.72,0,1]},Lj=.4,tfe=.25,nfe=100,jj=8,Oh=16,AC=26,TE="vaul-dragging";function Bj(e){const t=ze.useRef(e);return ze.useEffect((()=>{t.current=e})),ze.useMemo((()=>(...e)=>null==t.current?void 0:t.current.call(t,...e)),[])}function rfe({defaultProp:e,onChange:t}){const n=ze.useState(e),[r]=n,a=ze.useRef(r),o=Bj(t);return ze.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}function Fj({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=rfe({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=Bj(n);return[i,ze.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}function afe({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:a,fadeFromIndex:o,onSnapPointChange:i,direction:s="bottom",container:c,snapToSequentialPoint:l}){const[u,f]=Fj({prop:e,defaultProp:null==n?void 0:n[0],onChange:t}),[d,p]=ze.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);ze.useEffect((()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const h=ze.useMemo((()=>u===(null==n?void 0:n[n.length-1])||null),[n,u]),m=ze.useMemo((()=>null==n?void 0:n.findIndex((e=>e===u))),[n,u]),g=n&&n.length>0&&(o||0===o)&&!Number.isNaN(o)&&n[o]===u||!n,y=ze.useMemo((()=>{const e=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var t;return null!=(t=null==n?void 0:n.map((t=>{const n="string"==typeof t;let r=0;if(n&&(r=parseInt(t,10)),va(s)){const a=n?r:d?t*e.height:0;return d?"bottom"===s?e.height-a:-e.height+a:a}const a=n?r:d?t*e.width:0;return d?"right"===s?e.width-a:-e.width+a:a})))?t:[]}),[n,d,c]),v=ze.useMemo((()=>null!==m?null==y?void 0:y[m]:null),[y,m]),b=ze.useCallback((e=>{var t;const c=null!=(t=null==y?void 0:y.findIndex((t=>t===e)))?t:null;i(c),_a(r.current,{transition:`transform ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`,transform:va(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),y&&c!==y.length-1&&c!==o&&c<o?_a(a.current,{transition:`opacity ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`,opacity:"0"}):_a(a.current,{transition:`opacity ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`,opacity:"1"}),f(null==n?void 0:n[Math.max(c,0)])}),[r.current,n,y,o,a,f]);return ze.useEffect((()=>{if(u||e){var t;const r=null!=(t=null==n?void 0:n.findIndex((t=>t===e||t===u)))?t:-1;y&&-1!==r&&"number"==typeof y[r]&&b(y[r])}}),[u,e,n,y,b]),{isLastSnapPoint:h,activeSnapPoint:u,shouldFade:g,getPercentageDragged:function(e,t){if(!n||"number"!=typeof m||!y||void 0===o)return null;const r=m===o-1;if(m>=o&&t)return 0;if(r&&!t)return 1;if(!g&&!r)return null;const a=r?m+1:m-1,i=r?y[a]-y[a-1]:y[a+1]-y[a],s=e/Math.abs(i);return r?1-s:s},setActiveSnapPoint:f,activeSnapPointIndex:m,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:i}){if(void 0===o)return;const c="bottom"===s||"right"===s?(v??0)-e:(v??0)+e,u=0===m,f=e>0;if(m===o-1&&_a(a.current,{transition:`opacity ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`}),!l&&r>2&&!f)return void(i?t():b(y[0]));if(!l&&r>2&&f&&y&&n)return void b(y[n.length-1]);const d=null==y?void 0:y.reduce(((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-c)<Math.abs(e-c)?t:e)),p=va(s)?window.innerHeight:window.innerWidth;if(r>Lj&&Math.abs(e)<.4*p){const e=f?1:-1;if(e>0&&h)return void b(y[n.length-1]);if(u&&e<0&&i&&t(),null===m)return;b(y[m+e])}else b(d)},onDrag:function({draggedDistance:e}){if(null===v)return;const t="bottom"===s||"right"===s?v-e:v+e;("bottom"===s||"right"===s)&&t<y[y.length-1]||("top"===s||"left"===s)&&t>y[y.length-1]||_a(r.current,{transform:va(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:y}}const ofe=()=>()=>{};function ife(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:a}=P1(),o=ze.useRef(null),i=v.useMemo((()=>document.body.style.backgroundColor),[]);function s(){return(window.innerWidth-26)/window.innerWidth}ze.useEffect((()=>{if(t&&n){o.current&&clearTimeout(o.current);const t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;efe(r&&!a?RE(document.body,{background:"black"}):ofe,RE(t,{transformOrigin:va(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${pr.DURATION}s`,transitionTimingFunction:`cubic-bezier(${pr.EASE.join(",")})`}));const n=RE(t,{borderRadius:"8px",overflow:"hidden",...va(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),o.current=window.setTimeout((()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")}),1e3*pr.DURATION)}}}),[t,n,i])}let W0=null;function sfe({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:a,noBodyStyles:o}){const[i,s]=ze.useState((()=>typeof window<"u"?window.location.href:"")),c=ze.useRef(0),l=ze.useCallback((()=>{if(fM()&&null===W0&&e&&!o){W0={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:-c.current+"px",left:-e+"px",right:"0px",height:"auto"}),window.setTimeout((()=>window.requestAnimationFrame((()=>{const e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=-(c.current+e)+"px")}))),300)}}),[e]),u=ze.useCallback((()=>{if(fM()&&null!==W0&&!o){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,W0),window.requestAnimationFrame((()=>{a&&i!==window.location.href?s(window.location.href):window.scrollTo(t,e)})),W0=null}}),[i]);return ze.useEffect((()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),ze.useEffect((()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout((()=>{u()}),500)):u())}),[e,r,i,t,n,l,u]),{restorePositionSetting:u}}function Uj({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:a,snapPoints:o,shouldScaleBackground:i=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=tfe,scrollLockTimeout:l=100,dismissible:u=!0,handleOnly:f=!1,fadeFromIndex:d=o&&o.length-1,activeSnapPoint:p,setActiveSnapPoint:h,fixed:m,modal:g=!0,onClose:y,nested:v,noBodyStyles:b,direction:_="bottom",defaultOpen:w=!1,disablePreventScroll:k=!0,snapToSequentialPoint:x=!1,preventScrollRestoration:S=!1,repositionInputs:E=!0,onAnimationEnd:A,container:C,autoFocus:z=!1}){var I,T;const[R=!1,j]=Fj({defaultProp:w,prop:e,onChange:e=>{null==t||t(e),!e&&!v&&ce(),setTimeout((()=>{null==A||A(e)}),1e3*pr.DURATION),e&&!g&&typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),e||(document.body.style.pointerEvents="auto")}}),[P,O]=ze.useState(!1),[N,M]=ze.useState(!1),[D,B]=ze.useState(!1),L=ze.useRef(null),q=ze.useRef(null),V=ze.useRef(null),F=ze.useRef(null),U=ze.useRef(null),$=ze.useRef(!1),W=ze.useRef(null),H=ze.useRef(0),G=ze.useRef(!1),Q=ze.useRef(0),K=ze.useRef(null),Y=ze.useRef((null==(I=K.current)?void 0:I.getBoundingClientRect().height)||0),Z=ze.useRef((null==(T=K.current)?void 0:T.getBoundingClientRect().width)||0),X=ze.useRef(0),J=ze.useCallback((e=>{o&&e===ae.length-1&&(q.current=new Date)}),[]),{activeSnapPoint:ee,activeSnapPointIndex:te,setActiveSnapPoint:ne,onRelease:re,snapPointsOffset:ae,onDrag:oe,shouldFade:ie,getPercentageDragged:se}=afe({snapPoints:o,activeSnapPointProp:p,setActiveSnapPointProp:h,drawerRef:K,fadeFromIndex:d,overlayRef:L,onSnapPointChange:J,direction:_,container:C,snapToSequentialPoint:x});Gle({isDisabled:!R||N||!g||D||!P||!E||!k});const{restorePositionSetting:ce}=sfe({isOpen:R,modal:g,nested:v,hasBeenOpened:P,preventScrollRestoration:S,noBodyStyles:b});function le(){return(window.innerWidth-26)/window.innerWidth}function ue(e,t){var n,r;let a=e;const o=null==(n=window.getSelection())?void 0:n.toString(),i=K.current?Qv(K.current,_):null,s=new Date;if(a.hasAttribute("data-vaul-no-drag")||a.closest("[data-vaul-no-drag]"))return!1;if("right"===_||"left"===_)return!0;if(q.current&&s.getTime()-q.current.getTime()<500)return!1;if(null!==i&&("bottom"===_?i>0:i<0))return!0;if(o&&o.length>0)return!1;if(s.getTime()-(null==(r=U.current)?void 0:r.getTime())<l&&0===i||t)return U.current=s,!1;for(;a;){if(a.scrollHeight>a.clientHeight){if(0!==a.scrollTop)return U.current=new Date,!1;if("dialog"===a.getAttribute("role"))return!0}a=a.parentNode}return!0}function fe(e){!N||!K.current||(K.current.classList.remove(TE),$.current=!1,M(!1),F.current=new Date),null==y||y(),e||j(!1),setTimeout((()=>{o&&ne(o[0])}),1e3*pr.DURATION)}function de(){if(!K.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=Qv(K.current,_);_a(K.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`}),_a(L.current,{transition:`opacity ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`,opacity:"1"}),i&&t&&t>0&&R&&_a(e,{borderRadius:"8px",overflow:"hidden",...va(_)?{transform:`scale(${le()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${le()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${pr.DURATION}s`,transitionTimingFunction:`cubic-bezier(${pr.EASE.join(",")})`},!0)}return ze.useEffect((()=>{var e;function t(){if(!K.current||!E)return;if(TC(document.activeElement)||G.current){var e;const t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight;let r=n-t;const a=K.current.getBoundingClientRect().height||0,i=a>.8*n;X.current||(X.current=a);const s=K.current.getBoundingClientRect().top;if(Math.abs(Q.current-r)>60&&(G.current=!G.current),o&&o.length>0&&ae&&te){r+=ae[te]||0}if(Q.current=r,a>t||G.current){const e=K.current.getBoundingClientRect().height;let n=e;e>t&&(n=t-(i?s:26)),K.current.style.height=m?e-Math.max(r,0)+"px":`${Math.max(n,t-s)}px`}else K.current.style.height=`${X.current}px`;o&&o.length>0&&!G.current?K.current.style.bottom="0px":K.current.style.bottom=`${Math.max(r,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}}),[te,o,ae]),ze.useEffect((()=>(R&&(_a(document.documentElement,{scrollBehavior:"auto"}),q.current=new Date),()=>{Xle(document.documentElement,"scrollBehavior")})),[R]),ze.createElement(Ple,{defaultOpen:w,onOpenChange:e=>{!u&&!e||(e?O(!0):fe(!0),j(e))},open:R},ze.createElement(Oj.Provider,{value:{activeSnapPoint:ee,snapPoints:o,setActiveSnapPoint:ne,drawerRef:K,overlayRef:L,onOpenChange:t,onPress:function(e){var t,n;!u&&!o||K.current&&!K.current.contains(e.target)||(Y.current=(null==(t=K.current)?void 0:t.getBoundingClientRect().height)||0,Z.current=(null==(n=K.current)?void 0:n.getBoundingClientRect().width)||0,M(!0),V.current=new Date,zj()&&window.addEventListener("touchend",(()=>$.current=!1),{once:!0}),e.target.setPointerCapture(e.pointerId),H.current=va(_)?e.pageY:e.pageX)},onRelease:function(e){if(!N||!K.current)return;K.current.classList.remove(TE),$.current=!1,M(!1),F.current=new Date;const t=Qv(K.current,_);if(!ue(e.target,!1)||!t||Number.isNaN(t)||null===V.current)return;const n=F.current.getTime()-V.current.getTime(),r=H.current-(va(_)?e.pageY:e.pageX),i=Math.abs(r)/n;if(i>.05&&(B(!0),setTimeout((()=>{B(!1)}),200)),o)return re({draggedDistance:r*("bottom"===_||"right"===_?1:-1),closeDrawer:fe,velocity:i,dismissible:u}),void(null==a||a(e,!0));if("bottom"===_||"right"===_?r>0:r<0)return de(),void(null==a||a(e,!0));if(i>Lj)return fe(),void(null==a||a(e,!1));var s;const l=Math.min(null!=(s=K.current.getBoundingClientRect().height)?s:0,window.innerHeight);var f;const d=Math.min(null!=(f=K.current.getBoundingClientRect().width)?f:0,window.innerWidth),p="left"===_||"right"===_;if(Math.abs(t)>=(p?d:l)*c)return fe(),void(null==a||a(e,!1));null==a||a(e,!0),de()},onDrag:function(e){if(K.current&&N){const t="bottom"===_||"right"===_?1:-1,n=(H.current-(va(_)?e.pageY:e.pageX))*t,a=n>0,s=o&&!u&&!a;if(s&&0===te)return;const c=Math.abs(n),l=document.querySelector("[data-vaul-drawer-wrapper]");let f=c/("bottom"===_||"top"===_?Y.current:Z.current);const p=se(c,a);if(null!==p&&(f=p),s&&f>=1||!$.current&&!ue(e.target,a))return;if(K.current.classList.add(TE),$.current=!0,_a(K.current,{transition:"none"}),_a(L.current,{transition:"none"}),o&&oe({draggedDistance:n}),a&&!o){const e=Jle(n),r=Math.min(-1*e,0)*t;return void _a(K.current,{transform:va(_)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`})}const h=1-f;if((ie||d&&te===d-1)&&(null==r||r(e,f),_a(L.current,{opacity:`${h}`,transition:"none"},!0)),l&&L.current&&i){const e=Math.min(le()+f*(1-le()),1),t=8-8*f,n=Math.max(0,14-14*f);_a(l,{borderRadius:`${t}px`,transform:va(_)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:"none"},!0)}if(!o){const e=c*t;_a(K.current,{transform:va(_)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:u,handleOnly:f,isOpen:R,isDragging:N,shouldFade:ie,closeDrawer:fe,onNestedDrag:function(e,t){if(t<0)return;const n=(window.innerWidth-16)/window.innerWidth,r=n+t*(1-n),a=16*t-16;_a(K.current,{transform:va(_)?`scale(${r}) translate3d(0, ${a}px, 0)`:`scale(${r}) translate3d(${a}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){const t=e?(window.innerWidth-16)/window.innerWidth:1,n=e?-16:0;W.current&&window.clearTimeout(W.current),_a(K.current,{transition:`transform ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`,transform:`scale(${t}) translate3d(0, ${n}px, 0)`}),!e&&K.current&&(W.current=setTimeout((()=>{const e=Qv(K.current,_);_a(K.current,{transition:"none",transform:va(_)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}),500))},onNestedRelease:function(e,t){const n=va(_)?window.innerHeight:window.innerWidth,r=t?(n-16)/n:1,a=t?-16:0;t&&_a(K.current,{transition:`transform ${pr.DURATION}s cubic-bezier(${pr.EASE.join(",")})`,transform:va(_)?`scale(${r}) translate3d(0, ${a}px, 0)`:`scale(${r}) translate3d(${a}px, 0, 0)`})},keyboardIsOpen:G,modal:g,snapPointsOffset:ae,direction:_,shouldScaleBackground:i,setBackgroundColorOnScale:s,noBodyStyles:b,container:C,autoFocus:z}},n))}const Vj=ze.forwardRef((function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:a,shouldFade:o,isOpen:i,modal:s}=P1(),c=Dj(t,n),l=r&&r.length>0;return s?ze.createElement(Mle,{onMouseUp:a,ref:c,"data-vaul-overlay":"","data-vaul-snap-points":i&&l?"true":"false","data-vaul-snap-points-overlay":i&&o?"true":"false",...e}):(typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),null)}));Vj.displayName="Drawer.Overlay";const qj=ze.forwardRef((function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},a){const{drawerRef:o,onPress:i,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,modal:f,isOpen:d,direction:p,snapPoints:h,container:m,handleOnly:g,autoFocus:y}=P1(),[v,b]=ze.useState(!1),_=Dj(a,o),w=ze.useRef(null),k=ze.useRef(null),x=ze.useRef(!1),S=h&&h.length>0;ife();function E(e){w.current=null,x.current=!1,s(e)}return ze.useEffect((()=>{S&&window.requestAnimationFrame((()=>{b(!0)}))}),[]),ze.createElement(Dle,{"data-vaul-drawer-direction":p,"data-vaul-drawer":"","data-vaul-delayed-snap-points":v?"true":"false","data-vaul-snap-points":d&&S?"true":"false","data-vaul-custom-container":m?"true":"false",...r,ref:_,style:u&&u.length>0?{"--snap-point-height":`${u[0]}px`,...t}:t,onPointerDown:e=>{g||(null==r.onPointerDown||r.onPointerDown.call(r,e),w.current={x:e.pageX,y:e.pageY},i(e))},onOpenAutoFocus:e=>{null==n||n(e),y||e.preventDefault()},onPointerDownOutside:t=>{null==e||e(t),f&&!t.defaultPrevented?l.current&&(l.current=!1):t.preventDefault()},onFocusOutside:e=>{f||e.preventDefault()},onPointerMove:e=>{if(k.current=e,g||(null==r.onPointerMove||r.onPointerMove.call(r,e),!w.current))return;const t=e.pageY-w.current.y,n=e.pageX-w.current.x,a="touch"===e.pointerType?10:2;((e,t,n=0)=>{if(x.current)return!0;const r=Math.abs(e.y),a=Math.abs(e.x),o=a>r,i=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*i<0)&&a>=0&&a<=n)return o}else if(!(e.y*i<0)&&r>=0&&r<=n)return!o;return x.current=!0,!0})({x:n,y:t},p,a)?c(e):(Math.abs(n)>a||Math.abs(t)>a)&&(w.current=null)},onPointerUp:e=>{null==r.onPointerUp||r.onPointerUp.call(r,e),w.current=null,x.current=!1,s(e)},onPointerOut:e=>{null==r.onPointerOut||r.onPointerOut.call(r,e),E(k.current)},onContextMenu:e=>{null==r.onContextMenu||r.onContextMenu.call(r,e),E(k.current)}})}));qj.displayName="Drawer.Content";const cfe=250,lfe=120,Wj=ze.forwardRef((function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:a,isDragging:o,snapPoints:i,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:f,onPress:d,onDrag:p}=P1(),h=ze.useRef(null),m=ze.useRef(!1);function g(){window.clearTimeout(h.current),m.current=!1}return ze.createElement("div",{onClick:function(){m.current?g():window.setTimeout((()=>{!function(){if(o||e||m.current)return void g();if(g(),(!i||0===i.length)&&l)return void a();if(s===i[i.length-1]&&l)return void a();const t=i.findIndex((e=>e===s));if(-1===t)return;const n=i[t+1];c(n)}()}),120)},onPointerCancel:g,onPointerDown:e=>{u&&d(e),h.current=window.setTimeout((()=>{m.current=!0}),250)},onPointerMove:e=>{u&&p(e)},ref:r,"data-vaul-drawer-visible":f?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},ze.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))}));function ffe({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:a,onNestedRelease:o}=P1();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return ze.createElement(Uj,{nested:!0,onClose:()=>{a(!1)},onDrag:(t,n)=>{r(t,n),null==e||e(t,n)},onOpenChange:e=>{e&&a(e)},onRelease:o,...n})}function ufe(e){const t=P1(),{container:n=t.container,...r}=e;return ze.createElement(zle,{container:n,...r})}Wj.displayName="Drawer.Handle";const _p={Root:Uj,NestedRoot:ffe,Content:qj,Overlay:Vj,Trigger:Ole,Portal:ufe,Handle:Wj,Close:jle,Title:Nle,Description:Lle},dfe=_p.Portal,Hj=v.forwardRef((({className:e,...t},n)=>B.jsx(_p.Overlay,{ref:n,className:xe("fixed inset-0 z-50 bg-black/5",e),...t})));Hj.displayName=_p.Overlay.displayName;const pfe=v.forwardRef((({className:e,children:t,direction:n="bottom",...r},a)=>B.jsxs(dfe,{children:[B.jsx(Hj,{}),B.jsxs(_p.Content,{ref:a,className:xe("fixed z-50 border bg-background shadow-lg","bottom"===n&&"inset-x-0 bottom-0 mt-24 flex h-auto flex-col rounded-t-sm","top"===n&&"inset-x-0 top-0 mb-24 flex h-auto flex-col rounded-b-sm","left"===n&&"inset-y-0 left-0 flex h-full flex-col","right"===n&&"inset-y-0 right-0 flex h-full w-[346px] flex-col sm:w-[435px]",e),...r,children:["bottom"===n&&B.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]})));pfe.displayName="DrawerContent";const hfe=v.forwardRef((({className:e,...t},n)=>B.jsx(_p.Title,{ref:n,className:xe("text-lg font-semibold leading-none tracking-tight",e),...t})));hfe.displayName=_p.Title.displayName;const mfe=v.forwardRef((({className:e,...t},n)=>B.jsx(_p.Description,{ref:n,className:xe("text-sm text-muted-foreground",e),...t})));function rA(e){const t=e+"CollectionProvider",[n,r]=Zo(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e+"CollectionSlot",s=e+"CollectionItemSlot",c="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=ze.useRef(null),o=ze.useRef(new Map).current;return ze.createElement(a,{scope:t,itemMap:o,collectionRef:r},n)},Slot:ze.forwardRef(((e,t)=>{const{scope:n,children:r}=e,a=un(t,o(i,n).collectionRef);return ze.createElement(em,{ref:a},r)})),ItemSlot:ze.forwardRef(((e,t)=>{const{scope:n,children:r,...a}=e,i=ze.useRef(null),l=un(t,i),u=o(s,n);return ze.useEffect((()=>(u.itemMap.set(i,{ref:i,...a}),()=>{u.itemMap.delete(i)}))),ze.createElement(em,{[c]:"",ref:l},r)}))},function(t){const n=o(e+"CollectionConsumer",t);return ze.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}mfe.displayName=_p.Description.displayName;const gfe=v.createContext(void 0);function aA(e){const t=v.useContext(gfe);return e||t||"ltr"}const yfe=["top","right","bottom","left"],sp=Math.min,Hi=Math.max,Kb=Math.round,Yv=Math.floor,cp=e=>({x:e,y:e}),_fe={left:"right",right:"left",bottom:"top",top:"bottom"},vfe={start:"end",end:"start"};function IC(e,t,n){return Hi(e,sp(t,n))}function ou(e,t){return"function"==typeof e?e(t):e}function iu(e){return e.split("-")[0]}function O1(e){return e.split("-")[1]}function oA(e){return"x"===e?"y":"x"}function iA(e){return"y"===e?"height":"width"}function lp(e){return["top","bottom"].includes(iu(e))?"y":"x"}function sA(e){return oA(lp(e))}function bfe(e,t,n){void 0===n&&(n=!1);const r=O1(e),a=sA(e),o=iA(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Qb(i)),[i,Qb(i)]}function wfe(e){const t=Qb(e);return[$C(e),t,$C(t)]}function $C(e){return e.replace(/start|end/g,(e=>vfe[e]))}function kfe(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}function xfe(e,t,n,r){const a=O1(e);let o=kfe(iu(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map($C)))),o}function Qb(e){return e.replace(/left|right|bottom|top/g,(e=>_fe[e]))}function Sfe(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gj(e){return"number"!=typeof e?Sfe(e):{top:e,right:e,bottom:e,left:e}}function Yb(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function pM(e,t,n){let{reference:r,floating:a}=e;const o=lp(t),i=sA(t),s=iA(i),c=iu(t),l="y"===o,u=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,d=r[s]/2-a[s]/2;let p;switch(c){case"top":p={x:u,y:r.y-a.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-a.width,y:f};break;default:p={x:r.x,y:r.y}}switch(O1(t)){case"start":p[i]-=d*(n&&l?-1:1);break;case"end":p[i]+=d*(n&&l?-1:1)}return p}const Efe=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:f}=pM(l,r,c),d=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:o,fn:m}=s[n],{x:g,y:y,data:v,reset:b}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:a,middlewareData:p,rects:l,platform:i,elements:{reference:e,floating:t}});u=g??u,f=y??f,p={...p,[o]:{...p[o],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(l=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:u,y:f}=pM(l,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:a,middlewareData:p}};async function Wy(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=ou(t,e),h=Gj(p),m=s[d?"floating"===f?"reference":"floating":f],g=Yb(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),y="floating"===f?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await(null==o.isElement?void 0:o.isElement(v))&&await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},_=Yb(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:c}):y);return{top:(g.top-_.top+h.top)/b.y,bottom:(_.bottom-g.bottom+h.bottom)/b.y,left:(g.left-_.left+h.left)/b.x,right:(_.right-g.right+h.right)/b.x}}const Cfe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ou(e,t)||{};if(null==l)return{};const f=Gj(u),d={x:n,y:r},p=sA(a),h=iA(p),m=await i.getDimensions(l),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",_=o.reference[h]+o.reference[p]-d[p]-o.floating[h],w=d[p]-o.reference[p],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let x=k?k[b]:0;(!x||!await(null==i.isElement?void 0:i.isElement(k)))&&(x=s.floating[b]||o.floating[h]);const S=_/2-w/2,E=x/2-m[h]/2-1,A=sp(f[y],E),C=sp(f[v],E),z=A,I=x-m[h]-C,T=x/2-m[h]/2+S,R=IC(z,T,I),j=!c.arrow&&null!=O1(a)&&T!==R&&o.reference[h]/2-(T<z?A:C)-m[h]/2<0,P=j?T<z?T-z:T-I:0;return{[p]:d[p]+P,data:{[p]:R,centerOffset:T-R-P,...j&&{alignmentOffset:P}},reset:j}}}),Rfe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=ou(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=iu(a),v=lp(s),b=iu(s)===s,_=await(null==c.isRTL?void 0:c.isRTL(l.floating)),w=d||(b||!m?[Qb(s)]:wfe(s)),k="none"!==h;!d&&k&&w.push(...xfe(s,m,h,_));const x=[s,...w],S=await Wy(t,g),E=[];let A=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[y]),f){const e=bfe(a,i,_);E.push(S[e[0]],S[e[1]])}if(A=[...A,{placement:a,overflows:E}],!E.every((e=>e<=0))){var C,z;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(z=A.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:z.placement;if(!n)switch(p){case"bestFit":{var I;const e=null==(I=A.filter((e=>{if(k){const t=lp(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}};function hM(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mM(e){return yfe.some((t=>e[t]>=0))}const Tfe=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=ou(e,t);switch(r){case"referenceHidden":{const e=hM(await Wy(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:mM(e)}}}case"escaped":{const e=hM(await Wy(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:mM(e)}}}default:return{}}}}};async function Afe(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=iu(n),s=O1(n),c="y"===lp(n),l=["left","top"].includes(i)?-1:1,u=o&&c?-1:1,f=ou(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}const Ife=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,c=await Afe(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+c.x,y:o+c.y,data:{...c,placement:i}}}}},$fe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=ou(e,t),l={x:n,y:r},u=await Wy(t,c),f=lp(iu(a)),d=oA(f);let p=l[d],h=l[f];if(o){const e="y"===d?"bottom":"right";p=IC(p+u["y"===d?"top":"left"],p,p-u[e])}if(i){const e="y"===f?"bottom":"right";h=IC(h+u["y"===f?"top":"left"],h,h-u[e])}const m=s.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[d]:o,[f]:i}}}}}},Pfe=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ou(e,t),u={x:n,y:r},f=lp(a),d=oA(f);let p=u[d],h=u[f];const m=ou(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+g.mainAxis,n=o.reference[d]+o.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var y,v;const e="y"===d?"width":"height",t=["top","left"].includes(iu(a)),n=o.reference[f]-o.floating[e]+(t&&(null==(y=i.offset)?void 0:y[f])||0)+(t?0:g.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[f])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[d]:p,[f]:h}}}},Ofe=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:c=()=>{},...l}=ou(e,t),u=await Wy(t,l),f=iu(a),d=O1(a),p="y"===lp(a),{width:h,height:m}=o.floating;let g,y;"top"===f||"bottom"===f?(g=f,y=d===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=f,g="end"===d?"top":"bottom");const v=m-u.top-u.bottom,b=h-u.left-u.right,_=sp(m-u[g],v),w=sp(h-u[y],b),k=!t.middlewareData.shift;let x=_,S=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(x=v),k&&!d){const e=Hi(u.left,0),t=Hi(u.right,0),n=Hi(u.top,0),r=Hi(u.bottom,0);p?S=h-2*(0!==e||0!==t?e+t:Hi(u.left,u.right)):x=m-2*(0!==n||0!==r?n+r:Hi(u.top,u.bottom))}await c({...t,availableWidth:S,availableHeight:x});const E=await i.getDimensions(s.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function dk(){return typeof window<"u"}function fp(e){return Kj(e)?(e.nodeName||"").toLowerCase():"#document"}function Gi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function fu(e){var t;return null==(t=(Kj(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Kj(e){return!!dk()&&(e instanceof Node||e instanceof Gi(e).Node)}function $l(e){return!!dk()&&(e instanceof Element||e instanceof Gi(e).Element)}function Pl(e){return!!dk()&&(e instanceof HTMLElement||e instanceof Gi(e).HTMLElement)}function gM(e){return!(!dk()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof Gi(e).ShadowRoot)}function z_(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Ps(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function zfe(e){return["table","td","th"].includes(fp(e))}function Mfe(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function cA(e){const t=lA(),n=$l(e)?Ps(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Qj(e){let t=g1(e);for(;Pl(t)&&!pk(t);){if(cA(t))return t;if(Mfe(t))return null;t=g1(t)}return null}function lA(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function pk(e){return["html","body","#document"].includes(fp(e))}function Ps(e){return Gi(e).getComputedStyle(e)}function hk(e){return $l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function g1(e){if("html"===fp(e))return e;const t=e.assignedSlot||e.parentNode||gM(e)&&e.host||fu(e);return gM(t)?t.host:t}function Yj(e){const t=g1(e);return pk(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pl(t)&&z_(t)?t:Yj(t)}function Hy(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=Yj(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=Gi(a);if(o){const e=Dfe(i);return t.concat(i,i.visualViewport||[],z_(a)?a:[],e&&n?Hy(e):[])}return t.concat(a,Hy(a,[],n))}function Dfe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zj(e){const t=Ps(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Pl(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=Kb(n)!==o||Kb(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function fA(e){return $l(e)?e:e.contextElement}function t1(e){const t=fA(e);if(!Pl(t))return cp(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=Zj(t);let i=(o?Kb(n.width):n.width)/r,s=(o?Kb(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Nfe=cp(0);function Xj(e){const t=Gi(e);return lA()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Nfe}function Lfe(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Gi(e))&&t}function im(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=fA(e);let i=cp(1);t&&(r?$l(r)&&(i=t1(r)):i=t1(e));const s=Lfe(o,n,r)?Xj(o):cp(0);let c=(a.left+s.x)/i.x,l=(a.top+s.y)/i.y,u=a.width/i.x,f=a.height/i.y;if(o){const e=Gi(o),t=r&&$l(r)?Gi(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=t1(n),t=n.getBoundingClientRect(),r=Ps(n),a=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,f*=e.y,c+=a,l+=o,n=Gi(n).frameElement}}return Yb({width:u,height:f,x:c,y:l})}const jfe=[":popover-open",":modal"];function Jj(e){let t=!1,n=0,r=0;if(jfe.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch{}}(n)})),t){const t=Qj(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function Bfe(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=fu(r),[i]=t?Jj(t.floating):[!1];if(r===o||i)return n;let s={scrollLeft:0,scrollTop:0},c=cp(1);const l=cp(0),u=Pl(r);if((u||!u&&"fixed"!==a)&&(("body"!==fp(r)||z_(o))&&(s=hk(r)),Pl(r))){const e=im(r);c=t1(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+l.x,y:n.y*c.y-s.scrollTop*c.y+l.y}}function Ffe(e){return Array.from(e.getClientRects())}function eB(e){return im(fu(e)).left+hk(e).scrollLeft}function Ufe(e){const t=fu(e),n=hk(e),r=e.ownerDocument.body,a=Hi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Hi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+eB(e);const s=-n.scrollTop;return"rtl"===Ps(r).direction&&(i+=Hi(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}function Vfe(e,t){const n=Gi(e),r=fu(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,c=0;if(a){o=a.width,i=a.height;const e=lA();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,c=a.offsetTop)}return{width:o,height:i,x:s,y:c}}function qfe(e,t){const n=im(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=Pl(e)?t1(e):cp(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}function yM(e,t,n){let r;if("viewport"===t)r=Vfe(e,n);else if("document"===t)r=Ufe(fu(e));else if($l(t))r=qfe(t,n);else{const n=Xj(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Yb(r)}function tB(e,t){const n=g1(e);return!(n===t||!$l(n)||pk(n))&&("fixed"===Ps(n).position||tB(n,t))}function Wfe(e,t){const n=t.get(e);if(n)return n;let r=Hy(e,[],!1).filter((e=>$l(e)&&"body"!==fp(e))),a=null;const o="fixed"===Ps(e).position;let i=o?g1(e):e;for(;$l(i)&&!pk(i);){const t=Ps(i),n=cA(i);!n&&"fixed"===t.position&&(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||z_(i)&&!n&&tB(e,i))?r=r.filter((e=>e!==i)):a=t,i=g1(i)}return t.set(e,r),r}function Hfe(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?Wfe(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=yM(t,n,a);return e.top=Hi(r.top,e.top),e.right=sp(r.right,e.right),e.bottom=sp(r.bottom,e.bottom),e.left=Hi(r.left,e.left),e}),yM(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Gfe(e){const{width:t,height:n}=Zj(e);return{width:t,height:n}}function Kfe(e,t,n,r){const a=Pl(t),o=fu(t),i="fixed"===n,s=im(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=cp(0);if(a||!a&&!i)if(("body"!==fp(t)||z_(o))&&(c=hk(t)),a){const e=im(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=eB(o));let u=s.left+c.scrollLeft-l.x,f=s.top+c.scrollTop-l.y;const[d,p,h]=Jj(r);return d&&(u+=p,f+=h,a&&(u+=t.clientLeft,f+=t.clientTop)),{x:u,y:f,width:s.width,height:s.height}}function _M(e,t){return Pl(e)&&"fixed"!==Ps(e).position?t?t(e):e.offsetParent:null}function nB(e,t){const n=Gi(e);if(!Pl(e))return n;let r=_M(e,t);for(;r&&zfe(r)&&"static"===Ps(r).position;)r=_M(r,t);return r&&("html"===fp(r)||"body"===fp(r)&&"static"===Ps(r).position&&!cA(r))?n:r||Qj(e)||n}const Qfe=async function(e){const t=this.getOffsetParent||nB,n=this.getDimensions;return{reference:Kfe(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function Yfe(e){return"rtl"===Ps(e).direction}const Zfe={convertOffsetParentRelativeRectToViewportRelativeRect:Bfe,getDocumentElement:fu,getClippingRect:Hfe,getOffsetParent:nB,getElementRects:Qfe,getClientRects:Ffe,getDimensions:Gfe,getScale:t1,isElement:$l,isRTL:Yfe};function Xfe(e,t){let n,r=null;const a=fu(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),o();const{left:l,top:u,width:f,height:d}=e.getBoundingClientRect();if(s||t(),!f||!d)return;const p={rootMargin:-Yv(u)+"px "+-Yv(a.clientWidth-(l+f))+"px "+-Yv(a.clientHeight-(u+d))+"px "+-Yv(l)+"px",threshold:Hi(0,sp(1,c))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...p,root:a.ownerDocument})}catch{r=new IntersectionObserver(m,p)}r.observe(e)}(!0),o}function Jfe(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=fA(e),u=a||o?[...l?Hy(l):[],...Hy(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const f=l&&s?Xfe(l,n):null;let d=-1,p=null;i&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),l&&!c&&p.observe(l),p.observe(t));let h,m=c?im(e):null;return c&&function t(){const r=im(e);m&&(r.x!==m.x||r.y!==m.y||r.width!==m.width||r.height!==m.height)&&n(),m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(h)}}const eue=$fe,tue=Rfe,nue=Ofe,rue=Tfe,vM=Cfe,aue=Pfe,oue=(e,t,n)=>{const r=new Map,a={platform:Zfe,...n},o={...a.platform,_c:r};return Efe(e,t,{...a,platform:o})};var _b=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Zb(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Zb(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(!("_owner"===n&&e.$$typeof||Zb(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function rB(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bM(e,t){const n=rB(e);return Math.round(t*n)/n}function AE(e){const t=v.useRef(e);return _b((()=>{t.current=e})),t}function iue(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,f]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=v.useState(r);Zb(d,r)||p(r);const[h,m]=v.useState(null),[g,y]=v.useState(null),b=v.useCallback((e=>{e!==x.current&&(x.current=e,m(e))}),[]),_=v.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),w=o||h,k=i||g,x=v.useRef(null),S=v.useRef(null),E=v.useRef(u),A=null!=c,C=AE(c),z=AE(a),I=AE(l),T=v.useCallback((()=>{if(!x.current||!S.current)return;const e={placement:t,strategy:n,middleware:d};z.current&&(e.platform=z.current),oue(x.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==I.current};R.current&&!Zb(E.current,t)&&(E.current=t,Ll.flushSync((()=>{f(t)})))}))}),[d,t,n,z,I]);_b((()=>{!1===l&&E.current.isPositioned&&(E.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[l]);const R=v.useRef(!1);_b((()=>(R.current=!0,()=>{R.current=!1})),[]),_b((()=>{if(w&&(x.current=w),k&&(S.current=k),w&&k){if(C.current)return C.current(w,k,T);T()}}),[w,k,T,C,A]);const j=v.useMemo((()=>({reference:x,floating:S,setReference:b,setFloating:_})),[b,_]),P=v.useMemo((()=>({reference:w,floating:k})),[w,k]),O=v.useMemo((()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=bM(P.floating,u.x),r=bM(P.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...rB(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,P.floating,u.x,u.y]);return v.useMemo((()=>({...u,update:T,refs:j,elements:P,floatingStyles:O})),[u,T,j,P,O])}const sue=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?vM({element:n.current,padding:r}).fn(t):{}:n?vM({element:n,padding:r}).fn(t):{}}}),cue=(e,t)=>({...Ife(e),options:[e,t]}),lue=(e,t)=>({...eue(e),options:[e,t]}),fue=(e,t)=>({...aue(e),options:[e,t]}),uue=(e,t)=>({...tue(e),options:[e,t]}),due=(e,t)=>({...nue(e),options:[e,t]}),pue=(e,t)=>({...rue(e),options:[e,t]}),hue=(e,t)=>({...sue(e),options:[e,t]}),aB="Popper",[oB,z1]=Zo(aB),[mue,iB]=oB(aB),gue=e=>{const{__scopePopper:t,children:n}=e,[r,a]=v.useState(null);return v.createElement(mue,{scope:t,anchor:r,onAnchorChange:a},n)},yue="PopperAnchor",_ue=v.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=iB(yue,n),i=v.useRef(null),s=un(t,i);return v.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:v.createElement(wt.div,Ie({},a,{ref:s}))})),sB="PopperContent",[vue,TZe]=oB(sB),bue=v.forwardRef(((e,t)=>{var n,r,a,o,i,s,c,l;const{__scopePopper:u,side:f="bottom",sideOffset:d=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:_="partial",hideWhenDetached:w=!1,updatePositionStrategy:k="optimized",onPlaced:x,...S}=e,E=iB(sB,u),[A,C]=v.useState(null),z=un(t,(e=>C(e))),[I,T]=v.useState(null),R=ck(I),j=null!==(n=null==R?void 0:R.width)&&void 0!==n?n:0,P=null!==(r=null==R?void 0:R.height)&&void 0!==r?r:0,O=f+("center"!==p?"-"+p:""),N="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},M=Array.isArray(y)?y:[y],D=M.length>0,B={padding:N,boundary:M.filter(wue),altBoundary:D},{refs:L,floatingStyles:q,placement:V,isPositioned:F,middlewareData:U}=iue({strategy:"fixed",placement:O,whileElementsMounted:(...e)=>Jfe(...e,{animationFrame:"always"===k}),elements:{reference:E.anchor},middleware:[cue({mainAxis:d+P,alignmentAxis:h}),g&&lue({mainAxis:!0,crossAxis:!1,limiter:"partial"===_?fue():void 0,...B}),g&&uue({...B}),due({...B,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),I&&hue({element:I,padding:m}),kue({arrowWidth:j,arrowHeight:P}),w&&pue({strategy:"referenceHidden",...B})]}),[$,W]=cB(V),H=Ac(x);Ro((()=>{F&&(null==H||H())}),[F,H]);const G=null===(a=U.arrow)||void 0===a?void 0:a.x,Q=null===(o=U.arrow)||void 0===o?void 0:o.y,K=0!==(null===(i=U.arrow)||void 0===i?void 0:i.centerOffset),[Y,Z]=v.useState();return Ro((()=>{A&&Z(window.getComputedStyle(A).zIndex)}),[A]),v.createElement("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:F?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[null===(s=U.transformOrigin)||void 0===s?void 0:s.x,null===(c=U.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},v.createElement(vue,{scope:u,placedSide:$,onArrowChange:T,arrowX:G,arrowY:Q,shouldHideArrow:K},v.createElement(wt.div,Ie({"data-side":$,"data-align":W},S,{ref:z,style:{...S.style,animation:F?void 0:"none",opacity:null!==(l=U.hide)&&void 0!==l&&l.referenceHidden?0:void 0}}))))}));function wue(e){return null!==e}const kue=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a,o,i;const{placement:s,rects:c,middlewareData:l}=t,u=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),f=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[p,h]=cB(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(r=null===(a=l.arrow)||void 0===a?void 0:a.x)&&void 0!==r?r:0)+f/2,y=(null!==(o=null===(i=l.arrow)||void 0===i?void 0:i.y)&&void 0!==o?o:0)+d/2;let v="",b="";return"bottom"===p?(v=u?m:`${g}px`,b=-d+"px"):"top"===p?(v=u?m:`${g}px`,b=`${c.floating.height+d}px`):"right"===p?(v=-d+"px",b=u?m:`${y}px`):"left"===p&&(v=`${c.floating.width+d}px`,b=u?m:`${y}px`),{data:{x:v,y:b}}}});function cB(e){const[t,n="center"]=e.split("-");return[t,n]}const lB=gue,uA=_ue,dA=bue,IE="rovingFocusGroup.onEntryFocus",xue={bubbles:!1,cancelable:!0},pA="RovingFocusGroup",[PC,fB,Sue]=rA(pA),[Eue,M1]=Zo(pA,[Sue]),[Cue,Rue]=Eue(pA),Tue=v.forwardRef(((e,t)=>v.createElement(PC.Provider,{scope:e.__scopeRovingFocusGroup},v.createElement(PC.Slot,{scope:e.__scopeRovingFocusGroup},v.createElement(Aue,Ie({},e,{ref:t})))))),Aue=v.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,...u}=e,f=v.useRef(null),d=un(t,f),p=aA(o),[h=null,m]=ip({prop:i,defaultProp:s,onChange:c}),[g,y]=v.useState(!1),b=Ac(l),_=fB(n),w=v.useRef(!1),[k,x]=v.useState(0);return v.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(IE,b),()=>e.removeEventListener(IE,b)}),[b]),v.createElement(Cue,{scope:n,orientation:r,dir:p,loop:a,currentTabStopId:h,onItemFocus:v.useCallback((e=>m(e)),[m]),onItemShiftTab:v.useCallback((()=>y(!0)),[]),onFocusableItemAdd:v.useCallback((()=>x((e=>e+1))),[]),onFocusableItemRemove:v.useCallback((()=>x((e=>e-1))),[])},v.createElement(wt.div,Ie({tabIndex:g||0===k?-1:0,"data-orientation":r},u,{ref:d,style:{outline:"none",...e.style},onMouseDown:st(e.onMouseDown,(()=>{w.current=!0})),onFocus:st(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(IE,xue);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=_().filter((e=>e.focusable));uB([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:st(e.onBlur,(()=>y(!1)))})))})),Iue="RovingFocusGroupItem",$ue=v.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:o,...i}=e,s=tp(),c=o||s,l=Rue(Iue,n),u=l.currentTabStopId===c,f=fB(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=l;return v.useEffect((()=>{if(r)return d(),()=>p()}),[r,d,p]),v.createElement(PC.ItemSlot,{scope:n,id:c,focusable:r,active:a},v.createElement(wt.span,Ie({tabIndex:u?0:-1,"data-orientation":l.orientation},i,{ref:t,onMouseDown:st(e.onMouseDown,(e=>{r?l.onItemFocus(c):e.preventDefault()})),onFocus:st(e.onFocus,(()=>l.onItemFocus(c))),onKeyDown:st(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=zue(e,l.orientation,l.dir);if(void 0!==t){e.preventDefault();let n=f().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=l.loop?Mue(n,r+1):n.slice(r+1)}setTimeout((()=>uB(n)))}}))})))})),Pue={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Oue(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function zue(e,t,n){const r=Oue(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return Pue[r]}function uB(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Mue(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}const hA=Tue,mA=$ue,OC=["Enter"," "],Due=["ArrowDown","PageUp","Home"],dB=["ArrowUp","PageDown","End"],Nue=[...Due,...dB],Lue={ltr:[...OC,"ArrowRight"],rtl:[...OC,"ArrowLeft"]},jue={ltr:["ArrowLeft"],rtl:["ArrowRight"]},mk="Menu",[Gy,Bue,Fue]=rA(mk),[mm,pB]=Zo(mk,[Fue,z1,M1]),hB=z1(),mB=M1(),[AZe,gm]=mm(mk),[IZe,M_]=mm(mk),Uue=v.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,a=hB(n);return v.createElement(uA,Ie({},a,r,{ref:t}))})),gB="MenuPortal",[Vue,yB]=mm(gB,{forceMount:void 0}),que=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,o=gm(gB,t);return v.createElement(Vue,{scope:t,forceMount:n},v.createElement(zs,{present:n||o.open},v.createElement(yT,{asChild:!0,container:a},r)))},kc="MenuContent",[Wue,gA]=mm(kc),Hue=v.forwardRef(((e,t)=>{const n=yB(kc,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=gm(kc,e.__scopeMenu),i=M_(kc,e.__scopeMenu);return v.createElement(Gy.Provider,{scope:e.__scopeMenu},v.createElement(zs,{present:r||o.open},v.createElement(Gy.Slot,{scope:e.__scopeMenu},i.modal?v.createElement(Gue,Ie({},a,{ref:t})):v.createElement(Kue,Ie({},a,{ref:t})))))})),Gue=v.forwardRef(((e,t)=>{const n=gm(kc,e.__scopeMenu),r=v.useRef(null),a=un(t,r);return v.useEffect((()=>{const e=r.current;if(e)return Kw(e)}),[]),v.createElement(yA,Ie({},e,{ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:st(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),Kue=v.forwardRef(((e,t)=>{const n=gm(kc,e.__scopeMenu);return v.createElement(yA,Ie({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),yA=v.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:p,disableOutsideScroll:h,...m}=e,g=gm(kc,n),y=M_(kc,n),b=hB(n),_=mB(n),w=Bue(n),[k,x]=v.useState(null),S=v.useRef(null),E=un(t,S,g.onContentChange),A=v.useRef(0),C=v.useRef(""),z=v.useRef(0),I=v.useRef(null),T=v.useRef("right"),R=v.useRef(0),j=h?Gw:v.Fragment,P=h?{as:em,allowPinchZoom:!0}:void 0;v.useEffect((()=>()=>window.clearTimeout(A.current)),[]),_T();const O=v.useCallback((e=>{var t,n;return T.current===(null===(t=I.current)||void 0===t?void 0:t.side)&&dde(e,null===(n=I.current)||void 0===n?void 0:n.area)}),[]);return v.createElement(Wue,{scope:n,searchRef:C,onItemEnter:v.useCallback((e=>{O(e)&&e.preventDefault()}),[O]),onItemLeave:v.useCallback((e=>{var t;O(e)||(null===(t=S.current)||void 0===t||t.focus(),x(null))}),[O]),onTriggerLeave:v.useCallback((e=>{O(e)&&e.preventDefault()}),[O]),pointerGraceTimerRef:z,onPointerGraceIntentChange:v.useCallback((e=>{I.current=e}),[])},v.createElement(j,P,v.createElement(gT,{asChild:!0,trapped:a,onMountAutoFocus:st(o,(e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()})),onUnmountAutoFocus:i},v.createElement(Ww,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:p},v.createElement(hA,Ie({asChild:!0},_,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:x,onEntryFocus:st(c,(e=>{y.isUsingKeyboardRef.current||e.preventDefault()}))}),v.createElement(dA,Ie({role:"menu","aria-orientation":"vertical","data-state":kB(g.open),"data-radix-menu-content":"",dir:y.dir},b,m,{ref:E,style:{outline:"none",...m.style},onKeyDown:st(m.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;const r=C.current+e,a=w().filter((e=>!e.disabled)),o=document.activeElement,i=null===(t=a.find((e=>e.ref.current===o)))||void 0===t?void 0:t.textValue,s=fde(a.map((e=>e.textValue)),r,i),c=null===(n=a.find((e=>e.textValue===s)))||void 0===n?void 0:n.ref.current;(function e(t){C.current=t,window.clearTimeout(A.current),""!==t&&(A.current=window.setTimeout((()=>e("")),1e3))})(r),c&&setTimeout((()=>c.focus()))})(e.key));const a=S.current;if(e.target!==a||!Nue.includes(e.key))return;e.preventDefault();const o=w().filter((e=>!e.disabled)).map((e=>e.ref.current));dB.includes(e.key)&&o.reverse(),cde(o)})),onBlur:st(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),C.current="")})),onPointerMove:st(e.onPointerMove,Ky((e=>{const t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>R.current?"right":"left";T.current=t,R.current=e.clientX}})))})))))))})),Que=v.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return v.createElement(wt.div,Ie({},r,{ref:t}))})),zC="MenuItem",wM="menu.itemSelect",_A=v.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...a}=e,o=v.useRef(null),i=M_(zC,e.__scopeMenu),s=gA(zC,e.__scopeMenu),c=un(t,o),l=v.useRef(!1);return v.createElement(_B,Ie({},a,{ref:c,disabled:n,onClick:st(e.onClick,(()=>{const e=o.current;if(!n&&e){const t=new CustomEvent(wM,{bubbles:!0,cancelable:!0});e.addEventListener(wM,(e=>null==r?void 0:r(e)),{once:!0}),b5(e,t),t.defaultPrevented?l.current=!1:i.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),l.current=!0},onPointerUp:st(e.onPointerUp,(e=>{var t;l.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:st(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||OC.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),_B=v.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:a,...o}=e,i=gA(zC,n),s=mB(n),c=v.useRef(null),l=un(t,c),[u,f]=v.useState(!1),[d,p]=v.useState("");return v.useEffect((()=>{const e=c.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[o.children]),v.createElement(Gy.ItemSlot,{scope:n,disabled:r,textValue:a??d},v.createElement(mA,Ie({asChild:!0},s,{focusable:!r}),v.createElement(wt.div,Ie({role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:l,onPointerMove:st(e.onPointerMove,Ky((e=>{r?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:st(e.onPointerLeave,Ky((e=>i.onItemLeave(e)))),onFocus:st(e.onFocus,(()=>f(!0))),onBlur:st(e.onBlur,(()=>f(!1)))}))))})),Yue=v.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...a}=e;return v.createElement(bB,{scope:e.__scopeMenu,checked:n},v.createElement(_A,Ie({role:"menuitemcheckbox","aria-checked":Xb(n)?"mixed":n},a,{ref:t,"data-state":vA(n),onSelect:st(a.onSelect,(()=>null==r?void 0:r(!!Xb(n)||!n)),{checkForDefaultPrevented:!1})})))})),Zue="MenuRadioGroup",[$Ze,Xue]=mm(Zue,{value:void 0,onValueChange:()=>{}}),Jue="MenuRadioItem",ede=v.forwardRef(((e,t)=>{const{value:n,...r}=e,a=Xue(Jue,e.__scopeMenu),o=n===a.value;return v.createElement(bB,{scope:e.__scopeMenu,checked:o},v.createElement(_A,Ie({role:"menuitemradio","aria-checked":o},r,{ref:t,"data-state":vA(o),onSelect:st(r.onSelect,(()=>{var e;return null===(e=a.onValueChange)||void 0===e?void 0:e.call(a,n)}),{checkForDefaultPrevented:!1})})))})),vB="MenuItemIndicator",[bB,tde]=mm(vB,{checked:!1}),nde=v.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...a}=e,o=tde(vB,n);return v.createElement(zs,{present:r||Xb(o.checked)||!0===o.checked},v.createElement(wt.span,Ie({},a,{ref:t,"data-state":vA(o.checked)})))})),rde=v.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return v.createElement(wt.div,Ie({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),ade="MenuSub",[PZe,wB]=mm(ade),Zv="MenuSubTrigger",ode=v.forwardRef(((e,t)=>{const n=gm(Zv,e.__scopeMenu),r=M_(Zv,e.__scopeMenu),a=wB(Zv,e.__scopeMenu),o=gA(Zv,e.__scopeMenu),i=v.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=o,l={__scopeMenu:e.__scopeMenu},u=v.useCallback((()=>{i.current&&window.clearTimeout(i.current),i.current=null}),[]);return v.useEffect((()=>u),[u]),v.useEffect((()=>{const e=s.current;return()=>{window.clearTimeout(e),c(null)}}),[s,c]),v.createElement(Uue,Ie({asChild:!0},l),v.createElement(_B,Ie({id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":kB(n.open)},e,{ref:hT(t,a.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),!e.disabled&&!t.defaultPrevented&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:st(e.onPointerMove,Ky((t=>{o.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(o.onPointerGraceIntentChange(null),i.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:st(e.onPointerLeave,Ky((e=>{var t;u();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var a;const t=null===(a=n.content)||void 0===a?void 0:a.dataset.side,i="right"===t,c=i?-5:5,l=r[i?"left":"right"],u=r[i?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+c,y:e.clientY},{x:l,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:l,y:r.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>o.onPointerGraceIntentChange(null)),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}}))),onKeyDown:st(e.onKeyDown,(t=>{const a=""!==o.searchRef.current;var i;e.disabled||a&&" "===t.key||!Lue[r.dir].includes(t.key)||(n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault())}))})))})),ide="MenuSubContent",sde=v.forwardRef(((e,t)=>{const n=yB(kc,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=gm(kc,e.__scopeMenu),i=M_(kc,e.__scopeMenu),s=wB(ide,e.__scopeMenu),c=v.useRef(null),l=un(t,c);return v.createElement(Gy.Provider,{scope:e.__scopeMenu},v.createElement(zs,{present:r||o.open},v.createElement(Gy.Slot,{scope:e.__scopeMenu},v.createElement(yA,Ie({id:s.contentId,"aria-labelledby":s.triggerId},a,{ref:l,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;i.isUsingKeyboardRef.current&&(null===(t=c.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:st(e.onFocusOutside,(e=>{e.target!==s.trigger&&o.onOpenChange(!1)})),onEscapeKeyDown:st(e.onEscapeKeyDown,(e=>{i.onClose(),e.preventDefault()})),onKeyDown:st(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=jue[i.dir].includes(e.key);var r;t&&n&&(o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function kB(e){return e?"open":"closed"}function Xb(e){return"indeterminate"===e}function vA(e){return Xb(e)?"indeterminate":e?"checked":"unchecked"}function cde(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function lde(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}function fde(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,a=n?e.indexOf(n):-1;let o=lde(e,Math.max(a,0));1===r.length&&(o=o.filter((e=>e!==n)));const i=o.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return i!==n?i:void 0}function ude(e,t){const{x:n,y:r}=e;let a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const i=t[e].x,s=t[e].y,c=t[o].x,l=t[o].y;s>r!=l>r&&n<(c-i)*(r-s)/(l-s)+i&&(a=!a)}return a}function dde(e,t){if(!t)return!1;return ude({x:e.clientX,y:e.clientY},t)}function Ky(e){return t=>"mouse"===t.pointerType?e(t):void 0}const pde=que,hde=Hue,mde=Que,gde=_A,yde=Yue,_de=ede,vde=nde,bde=rde,wde=ode,kde=sde,xB="DropdownMenu",[xde,OZe]=Zo(xB,[pB]),Fl=pB(),[zZe,Sde]=xde(xB),Ede=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Fl(t);return v.createElement(pde,Ie({},r,n))},Cde="DropdownMenuContent",Rde=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Sde(Cde,n),o=Fl(n),i=v.useRef(!1);return v.createElement(hde,Ie({id:a.contentId,"aria-labelledby":a.triggerId},o,r,{ref:t,onCloseAutoFocus:st(e.onCloseAutoFocus,(e=>{var t;i.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),i.current=!1,e.preventDefault()})),onInteractOutside:st(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(i.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),Tde=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(mde,Ie({},a,r,{ref:t}))})),Ade=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(gde,Ie({},a,r,{ref:t}))})),Ide=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(yde,Ie({},a,r,{ref:t}))})),$de=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(_de,Ie({},a,r,{ref:t}))})),Pde=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(vde,Ie({},a,r,{ref:t}))})),Ode=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(bde,Ie({},a,r,{ref:t}))})),zde=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(wde,Ie({},a,r,{ref:t}))})),Mde=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return v.createElement(kde,Ie({},a,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),Dde=Ede,SB=Rde,EB=Tde,CB=Ade,RB=Ide,TB=$de,Nde=Pde,bA=Ode,AB=zde,IB=Mde,Lde=v.forwardRef((({className:e,inset:t,children:n,...r},a)=>B.jsxs(AB,{ref:a,className:xe("flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,B.jsx(d5,{className:"ml-auto h-4 w-4"})]})));Lde.displayName=AB.displayName;const jde=v.forwardRef((({className:e,...t},n)=>B.jsx(IB,{ref:n,className:xe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})));jde.displayName=IB.displayName;const Bde=v.forwardRef((({className:e,sideOffset:t=4,...n},r)=>B.jsx(Dde,{children:B.jsx(SB,{ref:r,sideOffset:t,className:xe("z-[101] flex max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] flex-col gap-xxxs overflow-y-auto rounded-lg border border-slate-200 bg-white p-xxs text-popover-foreground ","shadow-[0px_0px_12px_0px_rgba(0,0,0,0.08)] ","data-[state=open]:animate-in data-[state=closed]:animate-out ","data-[state=open]:fade-in data-[state=open]:slide-in-from-top-2 ","data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-2 ","data-[state=closed]:duration-150 data-[state=open]:duration-150 ","data-[state=closed]:[animation-timing-function:ease-in] data-[state=open]:[animation-timing-function:ease-out]",e),...n})})));Bde.displayName=SB.displayName;const Fde=v.forwardRef((({className:e,inset:t,...n},r)=>B.jsx(CB,{ref:r,className:xe("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-slate-900 outline-none transition-colors hover:bg-slate-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-xl",e),...n})));Fde.displayName=CB.displayName;const Ude=v.forwardRef((({className:e,children:t,checked:n,checkboxPosition:r="right",...a},o)=>{const i=B.jsx(QT,{size:"default",variant:"default",checked:n});return B.jsxs(RB,{ref:o,className:xe("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-slate-900"," outline-none transition-colors hover:bg-slate-100 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,onSelect:e=>e.preventDefault(),...a,children:["left"===r&&i,B.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===r&&i]})}));Ude.displayName=RB.displayName;const Vde=v.forwardRef((({className:e,children:t,radioPosition:n="right",...r},a)=>{const o=B.jsx("div",{className:"flex h-xxs items-center justify-center",children:B.jsx(Nde,{children:B.jsx(fT,{size:20})})});return B.jsxs(TB,{ref:a,className:xe("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-slate-900"," outline-none transition-colors hover:bg-slate-100 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),onSelect:e=>e.preventDefault(),...r,children:["left"===n&&o,B.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===n&&o]})}));Vde.displayName=TB.displayName;const qde=v.forwardRef((({className:e,inset:t,...n},r)=>B.jsx(EB,{ref:r,className:xe("text-sm font-semibold",t&&"pl-xl",e),...n})));qde.displayName=EB.displayName;const Wde=v.forwardRef((({className:e,...t},n)=>B.jsx(bA,{ref:n,className:xe("-mx-1 my-1 h-px bg-muted",e),...t})));Wde.displayName=bA.displayName;const Hde=ze.createContext(null),Gde=()=>ze.useContext(Hde),Kde=v.forwardRef(((e,t)=>v.createElement(wt.label,Ie({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))),$B=Kde,Qde=jl("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),PB=v.forwardRef((({className:e,...t},n)=>B.jsx($B,{ref:n,className:xe(Qde(),e),...t})));function kM(e,[t,n]){return Math.min(n,Math.max(t,e))}PB.displayName=$B.displayName;const OB=v.forwardRef(((e,t)=>v.createElement(wt.span,Ie({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),Yde=OB,Zde=[" ","Enter","ArrowUp","ArrowDown"],Xde=[" ","Enter"],gk="Select",[yk,_k,Jde]=rA(gk),[D1,MZe]=Zo(gk,[Jde,z1]),wA=z1(),[epe,ym]=D1(gk),[tpe,npe]=D1(gk),rpe=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:i,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:f,disabled:d,required:p}=e,h=wA(t),[m,g]=v.useState(null),[y,b]=v.useState(null),[_,w]=v.useState(!1),k=aA(l),[x=!1,S]=ip({prop:r,defaultProp:a,onChange:o}),[E,A]=ip({prop:i,defaultProp:s,onChange:c}),C=v.useRef(null),z=!m||!!m.closest("form"),[I,T]=v.useState(new Set),R=Array.from(I).map((e=>e.props.value)).join(";");return v.createElement(lB,h,v.createElement(epe,{required:p,scope:t,trigger:m,onTriggerChange:g,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:_,onValueNodeHasChildrenChange:w,contentId:tp(),value:E,onValueChange:A,open:x,onOpenChange:S,dir:k,triggerPointerDownPosRef:C,disabled:d},v.createElement(yk.Provider,{scope:t},v.createElement(tpe,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback((e=>{T((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:v.useCallback((e=>{T((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),z?v.createElement(LB,{key:R,"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:f,value:E,onChange:e=>A(e.target.value),disabled:d},void 0===E?v.createElement("option",{value:""}):null,Array.from(I)):null))},ape="SelectTrigger",ope=v.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=wA(n),i=ym(ape,n),s=i.disabled||r,c=un(t,i.onTriggerChange),l=_k(n),[u,f,d]=jB((e=>{const t=l().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=BB(t,e,n);void 0!==r&&i.onValueChange(r.value)})),p=()=>{s||(i.onOpenChange(!0),d())};return v.createElement(uA,Ie({asChild:!0},o),v.createElement(wt.button,Ie({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":NB(i.value)?"":void 0},a,{ref:c,onClick:st(a.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:st(a.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(p(),i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:st(a.onKeyDown,(e=>{const t=""!==u.current;!(e.ctrlKey||e.altKey||e.metaKey)&&1===e.key.length&&f(e.key),(!t||" "!==e.key)&&Zde.includes(e.key)&&(p(),e.preventDefault())}))})))})),ipe="SelectValue",spe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:i="",...s}=e,c=ym(ipe,n),{onValueNodeHasChildrenChange:l}=c,u=void 0!==o,f=un(t,c.onValueNodeChange);return Ro((()=>{l(u)}),[l,u]),v.createElement(wt.span,Ie({},s,{ref:f,style:{pointerEvents:"none"}}),NB(c.value)?v.createElement(v.Fragment,null,i):o)})),cpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return v.createElement(wt.span,Ie({"aria-hidden":!0},a,{ref:t}),r||"▼")})),lpe=e=>v.createElement(yT,Ie({asChild:!0},e)),y1="SelectContent",fpe=v.forwardRef(((e,t)=>{const n=ym(y1,e.__scopeSelect),[r,a]=v.useState();if(Ro((()=>{a(new DocumentFragment)}),[]),!n.open){const t=r;return t?Ll.createPortal(v.createElement(zB,{scope:e.__scopeSelect},v.createElement(yk.Slot,{scope:e.__scopeSelect},v.createElement("div",null,e.children))),t):null}return v.createElement(upe,Ie({},e,{ref:t}))})),Yf=10,[zB,_m]=D1(y1),upe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:g,...y}=e,b=ym(y1,n),[_,w]=v.useState(null),[k,x]=v.useState(null),S=un(t,(e=>w(e))),[E,A]=v.useState(null),[C,z]=v.useState(null),I=_k(n),[T,R]=v.useState(!1),j=v.useRef(!1);v.useEffect((()=>{if(_)return Kw(_)}),[_]),_T();const P=v.useCallback((e=>{const[t,...n]=I().map((e=>e.ref.current)),[r]=n.slice(-1),a=document.activeElement;for(const n of e)if(n===a||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&k&&(k.scrollTop=0),n===r&&k&&(k.scrollTop=k.scrollHeight),null==n||n.focus(),document.activeElement!==a))return}),[I,k]),O=v.useCallback((()=>P([E,_])),[P,E,_]);v.useEffect((()=>{T&&O()}),[T,O]);const{onOpenChange:N,triggerPointerDownPosRef:M}=b;v.useEffect((()=>{if(_){let e={x:0,y:0};const t=t=>{var n,r,a,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=M.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(a=null===(o=M.current)||void 0===o?void 0:o.y)&&void 0!==a?a:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():_.contains(n.target)||N(!1),document.removeEventListener("pointermove",t),M.current=null};return null!==M.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[_,N,M]),v.useEffect((()=>{const e=()=>N(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[N]);const[D,B]=jB((e=>{const t=I().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=BB(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),L=v.useCallback(((e,t,n)=>{const r=!j.current&&!n;(void 0!==b.value&&b.value===t||r)&&(A(e),r&&(j.current=!0))}),[b.value]),q=v.useCallback((()=>null==_?void 0:_.focus()),[_]),V=v.useCallback(((e,t,n)=>{const r=!j.current&&!n;(void 0!==b.value&&b.value===t||r)&&z(e)}),[b.value]),F="popper"===r?xM:dpe,U=F===xM?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:g}:{};return v.createElement(zB,{scope:n,content:_,viewport:k,onViewportChange:x,itemRefCallback:L,selectedItem:E,onItemLeave:q,itemTextRefCallback:V,focusSelectedItem:O,selectedItemText:C,position:r,isPositioned:T,searchRef:D},v.createElement(Gw,{as:em,allowPinchZoom:!0},v.createElement(gT,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:st(a,(e=>{var t;null===(t=b.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},v.createElement(Ww,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},v.createElement(F,Ie({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault()},y,U,{onPlaced:()=>R(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:st(y.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),!t&&1===e.key.length&&B(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=I().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>P(t))),e.preventDefault()}}))}))))))})),dpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=ym(y1,n),i=_m(y1,n),[s,c]=v.useState(null),[l,u]=v.useState(null),f=un(t,(e=>u(e))),d=_k(n),p=v.useRef(!1),h=v.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:y,focusSelectedItem:b}=i,_=v.useCallback((()=>{if(o.trigger&&o.valueNode&&s&&l&&m&&g&&y){const e=o.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),a=y.getBoundingClientRect();if("rtl"!==o.dir){const r=a.left-t.left,o=n.left-r,i=e.left-o,c=e.width+i,l=Math.max(c,t.width),u=window.innerWidth-Yf,f=kM(o,[Yf,u-l]);s.style.minWidth=c+"px",s.style.left=f+"px"}else{const r=t.right-a.right,o=window.innerWidth-n.right-r,i=window.innerWidth-e.right-o,c=e.width+i,l=Math.max(c,t.width),u=window.innerWidth-Yf,f=kM(o,[Yf,u-l]);s.style.minWidth=c+"px",s.style.right=f+"px"}const i=d(),c=window.innerHeight-2*Yf,u=m.scrollHeight,f=window.getComputedStyle(l),h=parseInt(f.borderTopWidth,10),v=parseInt(f.paddingTop,10),b=parseInt(f.borderBottomWidth,10),_=h+v+u+parseInt(f.paddingBottom,10)+b,w=Math.min(5*g.offsetHeight,_),k=window.getComputedStyle(m),x=parseInt(k.paddingTop,10),S=parseInt(k.paddingBottom,10),E=e.top+e.height/2-Yf,A=c-E,C=g.offsetHeight/2,z=h+v+(g.offsetTop+C),I=_-z;if(z<=E){const e=g===i[i.length-1].ref.current;s.style.bottom="0px";const t=l.clientHeight-m.offsetTop-m.offsetHeight,n=z+Math.max(A,C+(e?S:0)+t+b);s.style.height=n+"px"}else{const e=g===i[0].ref.current;s.style.top="0px";const t=Math.max(E,h+m.offsetTop+(e?x:0)+C)+I;s.style.height=t+"px",m.scrollTop=z-E+m.offsetTop}s.style.margin=`${Yf}px 0`,s.style.minHeight=w+"px",s.style.maxHeight=c+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[d,o.trigger,o.valueNode,s,l,m,g,y,o.dir,r]);Ro((()=>_()),[_]);const[w,k]=v.useState();Ro((()=>{l&&k(window.getComputedStyle(l).zIndex)}),[l]);const x=v.useCallback((e=>{e&&!0===h.current&&(_(),null==b||b(),h.current=!1)}),[_,b]);return v.createElement(ppe,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:x},v.createElement("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},v.createElement(wt.div,Ie({},a,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}}))))})),xM=v.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=Yf,...o}=e,i=wA(n);return v.createElement(dA,Ie({},i,o,{ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[ppe,kA]=D1(y1,{}),SM="SelectViewport",hpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=_m(SM,n),o=kA(SM,n),i=un(t,a.onViewportChange),s=v.useRef(0);return v.createElement(v.Fragment,null,v.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),v.createElement(yk.Slot,{scope:n},v.createElement(wt.div,Ie({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:st(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(null!=r&&r.current&&n){const e=Math.abs(s.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Yf,a=parseFloat(n.style.minHeight),o=parseFloat(n.style.height),i=Math.max(a,o);if(i<r){const a=i+e,o=Math.min(r,a),s=a-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop}))}))))})),mpe="SelectGroup",[gpe,ype]=D1(mpe),_pe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=tp();return v.createElement(gpe,{scope:n,id:a},v.createElement(wt.div,Ie({role:"group","aria-labelledby":a},r,{ref:t})))})),vpe="SelectLabel",bpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=ype(vpe,n);return v.createElement(wt.div,Ie({id:a.id},r,{ref:t}))})),MC="SelectItem",[wpe,MB]=D1(MC),kpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...i}=e,s=ym(MC,n),c=_m(MC,n),l=s.value===r,[u,f]=v.useState(o??""),[d,p]=v.useState(!1),h=un(t,(e=>{var t;return null===(t=c.itemRefCallback)||void 0===t?void 0:t.call(c,e,r,a)})),m=tp(),g=()=>{a||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.createElement(wpe,{scope:n,value:r,disabled:a,textId:m,isSelected:l,onItemTextChange:v.useCallback((e=>{f((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},v.createElement(yk.ItemSlot,{scope:n,value:r,disabled:a,textValue:u},v.createElement(wt.div,Ie({role:"option","aria-labelledby":m,"data-highlighted":d?"":void 0,"aria-selected":l&&d,"data-state":l?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1},i,{ref:h,onFocus:st(i.onFocus,(()=>p(!0))),onBlur:st(i.onBlur,(()=>p(!1))),onPointerUp:st(i.onPointerUp,g),onPointerMove:st(i.onPointerMove,(e=>{var t;a?null===(t=c.onItemLeave)||void 0===t||t.call(c):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:st(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=c.onItemLeave)||void 0===t||t.call(c))})),onKeyDown:st(i.onKeyDown,(e=>{var t;""!==(null===(t=c.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(Xde.includes(e.key)&&g()," "===e.key&&e.preventDefault())}))}))))})),Xv="SelectItemText",xpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,i=ym(Xv,n),s=_m(Xv,n),c=MB(Xv,n),l=npe(Xv,n),[u,f]=v.useState(null),d=un(t,(e=>f(e)),c.onItemTextChange,(e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,c.value,c.disabled)})),p=null==u?void 0:u.textContent,h=v.useMemo((()=>v.createElement("option",{key:c.value,value:c.value,disabled:c.disabled},p)),[c.disabled,c.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=l;return Ro((()=>(m(h),()=>g(h))),[m,g,h]),v.createElement(v.Fragment,null,v.createElement(wt.span,Ie({id:c.textId},o,{ref:d})),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Ll.createPortal(o.children,i.valueNode):null)})),Spe="SelectItemIndicator",Epe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return MB(Spe,n).isSelected?v.createElement(wt.span,Ie({"aria-hidden":!0},r,{ref:t})):null})),EM="SelectScrollUpButton",Cpe=v.forwardRef(((e,t)=>{const n=_m(EM,e.__scopeSelect),r=kA(EM,e.__scopeSelect),[a,o]=v.useState(!1),i=un(t,r.onScrollButtonChange);return Ro((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;o(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?v.createElement(DB,Ie({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),CM="SelectScrollDownButton",Rpe=v.forwardRef(((e,t)=>{const n=_m(CM,e.__scopeSelect),r=kA(CM,e.__scopeSelect),[a,o]=v.useState(!1),i=un(t,r.onScrollButtonChange);return Ro((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;o(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?v.createElement(DB,Ie({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),DB=v.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=_m("SelectScrollButton",n),i=v.useRef(null),s=_k(n),c=v.useCallback((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return v.useEffect((()=>()=>c()),[c]),Ro((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[s]),v.createElement(wt.div,Ie({"aria-hidden":!0},a,{ref:t,style:{flexShrink:0,...a.style},onPointerDown:st(a.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:st(a.onPointerMove,(()=>{var e;null===(e=o.onItemLeave)||void 0===e||e.call(o),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:st(a.onPointerLeave,(()=>{c()}))}))})),Tpe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return v.createElement(wt.div,Ie({"aria-hidden":!0},r,{ref:t}))}));function NB(e){return""===e||void 0===e}const LB=v.forwardRef(((e,t)=>{const{value:n,...r}=e,a=v.useRef(null),o=un(t,a),i=sk(n);return v.useEffect((()=>{const e=a.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(i!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[i,n]),v.createElement(OB,{asChild:!0},v.createElement("select",Ie({},r,{ref:o,defaultValue:n})))}));function jB(e){const t=Ac(e),n=v.useRef(""),r=v.useRef(0),a=v.useCallback((e=>{const a=n.current+e;t(a),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(a)}),[t]),o=v.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return v.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,a,o]}function BB(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,a=n?e.indexOf(n):-1;let o=Ape(e,Math.max(a,0));1===r.length&&(o=o.filter((e=>e!==n)));const i=o.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return i!==n?i:void 0}function Ape(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}LB.displayName="BubbleSelect";const FB=rpe,UB=ope,VB=spe,Ipe=cpe,$pe=lpe,qB=fpe,Ppe=hpe,WB=_pe,HB=bpe,GB=kpe,Ope=xpe,zpe=Epe,KB=Cpe,QB=Rpe,YB=Tpe,Mpe=FB,ZB=v.forwardRef((({...e},t)=>B.jsx(Mpe,{ref:t,...e})));ZB.displayName=FB.displayName;const XB=v.forwardRef(((e,t)=>B.jsx(WB,{ref:t,...e})));XB.displayName=WB.displayName;const JB=v.forwardRef(((e,t)=>B.jsx(VB,{ref:t,...e})));JB.displayName=VB.displayName;const xA=v.forwardRef((({className:e,children:t,caption:n,error:r,icon:a,...o},i)=>B.jsxs("div",{className:"w-full",children:[B.jsxs(UB,{ref:i,className:xe("flex h-l w-full items-center justify-between rounded-m border bg-background p-xxs text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50",r?"border-red-500":"border-input",e),...o,children:[B.jsxs("div",{className:"flex flex-1 items-center gap-xxs",children:[a&&B.jsx("span",{className:xe("text-muted-foreground",{"text-red-dark":r}),children:a}),t]}),B.jsx(Ipe,{asChild:!0,children:B.jsx(f5,{size:20})})]}),n||r?r?B.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-red-600",children:[B.jsx(p5,{size:16}),r]}):B.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-muted-foreground",children:[B.jsx(jte,{size:16}),n]}):null]})));xA.displayName="SelectTriggerWrapper";const eF=v.forwardRef((({className:e,children:t,caption:n,error:r,icon:a,...o},i)=>B.jsx(xA,{ref:i,className:xe("[&>span]:line-clamp-1 [&>span]:text-left",e),caption:n,error:r,icon:a,...o,children:t})));eF.displayName=UB.displayName;const tF=v.forwardRef((({className:e,children:t,position:n="popper",...r},a)=>{const o=v.useMemo((()=>{const e=t=>{var n,r;if(!t)return!1;if(Array.isArray(t))return t.some(e);if(v.isValidElement(t)){const a=null==(n=t.type)?void 0:n.displayName;return"SelectActions"===a||"SelectFooter"===a||e(null==(r=t.props)?void 0:r.children)}return!1};return e(t)}),[t]);return B.jsx($pe,{children:B.jsx(qB,{ref:a,className:xe("z-[101] flex max-h-[var(--radix-select-content-available-height)] min-w-[8rem] flex-col rounded-lg border border-slate-200 bg-white text-popover-foreground","shadow-[0px_0px_12px_0px_rgba(0,0,0,0.08)]","data-[state=open]:animate-in data-[state=closed]:animate-out ","data-[state=open]:fade-in data-[state=open]:slide-in-from-top-2 ","data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-2 ","data-[state=closed]:duration-150 data-[state=open]:duration-150 ","data-[state=closed]:[animation-timing-function:ease-in] data-[state=open]:[animation-timing-function:ease-out]","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:B.jsx(Ppe,{className:xe("flex flex-col gap-xxxs overflow-y-auto px-xxs",{"py-xxs":!o},"popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})})}));tF.displayName=qB.displayName;const nF=v.forwardRef((({className:e,...t},n)=>B.jsx(HB,{ref:n,className:xe("text-sm font-medium text-slate-900",e),...t})));nF.displayName=HB.displayName;const rF=v.forwardRef((({className:e,showCheck:t=!0,checkPosition:n="right",children:r,...a},o)=>{const i=B.jsx(zpe,{children:B.jsx(fT,{size:20})});return B.jsxs(GB,{ref:o,className:xe("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs","text-base font-medium text-slate-900 outline-none transition-colors hover:bg-slate-100","focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[t&&"left"===n&&i,B.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:B.jsx(Ope,{children:r})}),t&&"right"===n&&i]})}));rF.displayName=GB.displayName;const aF=v.forwardRef((({className:e,...t},n)=>B.jsx(YB,{ref:n,className:xe("-mx-1 my-1 h-px bg-slate-200",e),...t})));aF.displayName=YB.displayName;const Dpe=(e,t)=>{const n=v.useRef(null),[r,a]=v.useState(e.length);return v.useLayoutEffect((()=>{if(!n.current||0===e.length)return void a(e.length);const r=n.current.offsetWidth-60,o=document.createElement("div");Object.assign(o.style,{position:"absolute",visibility:"hidden",whiteSpace:"nowrap",display:"flex",gap:"4px",top:"-9999px",left:"-9999px"}),document.body.appendChild(o);let i=0,s=0;for(const n of e){const e=document.createElement("div");e.className="gap-xxxs p-xxs flex cursor-pointer items-center rounded-sm bg-slate-100 text-sm font-medium text-slate-900";const a=document.createElement("span");if(a.textContent="string"==typeof n?n:n.value,e.appendChild(a),"string"!=typeof n&&n.avatar){const t=document.createElement("div");t.className="w-6 h-6 rounded-full bg-slate-300 flex-shrink-0",e.insertBefore(t,a)}if(t){const t=document.createElement("button");t.innerHTML="×",t.className="ml-1 rounded-full outline-none",e.appendChild(t)}o.appendChild(e);const c=e.offsetWidth+4;if(!(i+c<=r))break;i+=c,s++}document.body.removeChild(o),a(Math.max(1,s))}),[e,t]),{containerRef:n,visibleCount:r}},Npe=v.forwardRef((({className:e,selectedValues:t=[],placeholder:n,onRemoveValue:r,icon:a,caption:o,error:i,...s},c)=>{const{containerRef:l,visibleCount:u}=Dpe(t,r),f=t.length-u;return B.jsx(xA,{ref:c,className:e,caption:o,error:i,icon:a,...s,children:B.jsx("div",{ref:l,className:"flex w-full flex-1 flex-nowrap overflow-hidden",children:0===t.length?B.jsx("span",{children:n||"Select options..."}):B.jsxs(Nse,{children:[t.slice(0,u).map((e=>{const t="string"==typeof e?e:e.value;return B.jsx(Kz,{avatarSrc:"string"==typeof e?void 0:e.avatar,text:t,onRemove:()=>null==r?void 0:r(t)},t)})),f>0&&B.jsx(Kz,{text:`+${f}`})]})})})}));Npe.displayName="SelectMultiTrigger";const Lpe=v.forwardRef((({value:e,isSelected:t=!1,checkboxPosition:n="right",onSelect:r,className:a,children:o,...i},s)=>{const c=B.jsx(QT,{size:"default",variant:"default",checked:t}),l=()=>{null==r||r(e)};return B.jsxs("div",{ref:s,className:xe("relative flex cursor-pointer select-none items-center gap-xxs rounded-m","p-xxs text-base font-medium text-slate-900 outline-none transition-colors hover:bg-slate-100","focus:bg-accent focus:text-accent-foreground",a),onClick:l,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),l())},...i,children:["left"===n&&c,B.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:o}),"right"===n&&c]})}));Lpe.displayName="SelectCheckboxItem";const jpe=v.forwardRef((({className:e,...t},n)=>B.jsx(KB,{ref:n,className:xe("flex cursor-default items-center justify-center py-xxs",e),...t,children:B.jsx(Ate,{size:16})})));jpe.displayName=KB.displayName;const Bpe=v.forwardRef((({className:e,...t},n)=>B.jsx(QB,{ref:n,className:xe("flex cursor-default items-center justify-center p-xxs",e),...t,children:B.jsx(f5,{size:16})})));Bpe.displayName=QB.displayName;const Fpe=v.forwardRef((({className:e,children:t,...n},r)=>B.jsx("div",{ref:r,className:xe("sticky top-0 z-20 bg-white p-xxs",e),...n,children:t})));Fpe.displayName="SelectActions";const Upe=v.forwardRef((({className:e,children:t,...n},r)=>B.jsx("div",{ref:r,className:xe("sticky bottom-0 z-20 bg-white p-xxs",e),...n,children:t})));Upe.displayName="SelectFooter";const Vpe=v.createContext({}),vp=()=>{const e=v.useContext(Vpe),t=v.useContext(oF),n=Gde();e||console.error("useFormContext must be used within a FormProvider");const{getFieldState:r,formState:a}=n,o=r(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...o}},oF=v.createContext({}),qpe=v.forwardRef((({className:e,...t},n)=>{const r=v.useId();return B.jsx(oF.Provider,{value:{id:r},children:B.jsx("div",{ref:n,className:xe("mt-[8px]",e),...t})})}));qpe.displayName="FormItem";const Wpe=v.forwardRef((({className:e,isRequired:t,...n},r)=>{var a;const{formItemId:o}=vp();return B.jsx(PB,{ref:r,className:xe("mb-2 text-sm font-medium",e),htmlFor:o,...n,children:t?`*${null==(a=n.children)?void 0:a.toString()}`:n.children})}));Wpe.displayName="FormLabel";const Hpe=v.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:a,formMessageId:o}=vp();return B.jsx(yp,{ref:t,id:r,"aria-describedby":n?`${a} ${o}`:`${a}`,"aria-invalid":!!n,...e})}));Hpe.displayName="FormControl";const Gpe=v.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=vp();return B.jsx("p",{ref:n,id:r,className:xe("text-sm text-muted-foreground",e),...t})}));Gpe.displayName="FormDescription";const Kpe=v.forwardRef((({className:e,children:t,...n},r)=>{const{error:a,formMessageId:o}=vp(),i=a?String(null==a?void 0:a.message):t;return i?B.jsxs("p",{ref:r,id:o,className:xe("flex items-center gap-1 pt-xxs text-sm text-red-dark",e),...n,children:[B.jsx(p5,{size:16,className:"text-red-dark"})," ",i]}):null}));Kpe.displayName="FormMessage";const Qpe=v.forwardRef((({...e},t)=>{const{name:n}=vp();return B.jsx(ZB,{ref:t,name:n,...e})}));Qpe.displayName="FormSelect";const Ype=v.forwardRef((({className:e,children:t,...n},r)=>{const{formItemId:a}=vp();return B.jsx(eF,{ref:r,id:a,className:e,...n,children:t})}));Ype.displayName="FormSelectTrigger";const Zpe=v.forwardRef(((e,t)=>B.jsx(tF,{ref:t,...e})));Zpe.displayName="FormSelectContent";const Xpe=v.forwardRef(((e,t)=>B.jsx(rF,{ref:t,...e})));Xpe.displayName="FormSelectItem";const Jpe=v.forwardRef(((e,t)=>B.jsx(XB,{ref:t,...e})));Jpe.displayName="FormSelectGroup";const ehe=v.forwardRef(((e,t)=>B.jsx(nF,{ref:t,...e})));ehe.displayName="FormSelectLabel";const the=v.forwardRef(((e,t)=>B.jsx(aF,{ref:t,...e})));the.displayName="FormSelectSeparator";const nhe=v.forwardRef(((e,t)=>B.jsx(JB,{ref:t,...e})));function Wh(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function iF(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>v.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return v.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=v.createContext(r),o=n.length;function i(t){const{scope:n,children:r,...i}=t,s=(null==n?void 0:n[e][o])||a,c=v.useMemo((()=>i),Object.values(i));return v.createElement(s.Provider,{value:c},r)}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const s=(null==i?void 0:i[e][o])||a,c=v.useContext(s);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},rhe(r,...t)]}function rhe(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return v.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function vk(e){const t=v.useRef(e);return v.useEffect((()=>{t.current=e})),v.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function ahe(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function ohe(...e){return t=>e.forEach((e=>ahe(e,t)))}function ihe(...e){return v.useCallback(ohe(...e),e)}function vm(e){return e.split("-")[0]}function D_(e){return e.split("-")[1]}function N1(e){return["top","bottom"].includes(vm(e))?"x":"y"}function SA(e){return"y"===e?"height":"width"}function RM(e,t,n){let{reference:r,floating:a}=e;const o=r.x+r.width/2-a.width/2,i=r.y+r.height/2-a.height/2,s=N1(t),c=SA(s),l=r[c]/2-a[c]/2,u="x"===s;let f;switch(vm(t)){case"top":f={x:o,y:r.y-a.height};break;case"bottom":f={x:o,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:i};break;case"left":f={x:r.x-a.width,y:i};break;default:f={x:r.x,y:r.y}}switch(D_(t)){case"start":f[s]-=l*(n&&u?-1:1);break;case"end":f[s]+=l*(n&&u?-1:1)}return f}nhe.displayName="FormSelectValue";const she=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:l,y:u}=RM(c,r,s),f=r,d={},p=0;for(let n=0;n<o.length;n++){const{name:h,fn:m}=o[n],{x:g,y:y,data:v,reset:b}=await m({x:l,y:u,initialPlacement:r,placement:f,strategy:a,middlewareData:d,rects:c,platform:i,elements:{reference:e,floating:t}});l=g??l,u=y??u,d={...d,[h]:{...d[h],...v}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:l,y:u}=RM(c,f,s))),n=-1)}return{x:l,y:u,placement:f,strategy:a,middlewareData:d}};function sF(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function Jb(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Qy(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,h=sF(p),m=s[d?"floating"===f?"reference":"floating":f],g=Jb(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),y=Jb(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...i.floating,x:r,y:a}:i.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),strategy:c}):i[f]);return{top:g.top-y.top+h.top,bottom:y.bottom-g.bottom+h.bottom,left:g.left-y.left+h.left,right:y.right-g.right+h.right}}const che=Math.min,Nh=Math.max;function DC(e,t,n){return Nh(e,che(t,n))}const TM=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e??{},{x:a,y:o,placement:i,rects:s,platform:c}=t;if(null==n)return{};const l=sF(r),u={x:a,y:o},f=N1(i),d=D_(i),p=SA(f),h=await c.getDimensions(n),m="y"===f?"top":"left",g="y"===f?"bottom":"right",y=s.reference[p]+s.reference[f]-u[f]-s.floating[p],v=u[f]-s.reference[f],b=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let _=b?"y"===f?b.clientHeight||0:b.clientWidth||0:0;0===_&&(_=s.floating[p]);const w=y/2-v/2,k=l[m],x=_-h[p]-l[g],S=_/2-h[p]/2+w,E=DC(k,S,x),A=("start"===d?l[m]:l[g])>0&&S!==E&&s.reference[p]<=s.floating[p];return{[f]:u[f]-(A?S<k?k-S:x-S:0),data:{[f]:E,centerOffset:S-E}}}}),lhe={left:"right",right:"left",bottom:"top",top:"bottom"};function ew(e){return e.replace(/left|right|bottom|top/g,(e=>lhe[e]))}function fhe(e,t,n){void 0===n&&(n=!1);const r=D_(e),a=N1(e),o=SA(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=ew(i)),{main:i,cross:ew(i)}}const uhe={start:"end",end:"start"};function AM(e){return e.replace(/start|end/g,(e=>uhe[e]))}const cF=["top","right","bottom","left"];cF.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const dhe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:a,rects:o,initialPlacement:i,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...h}=e,m=vm(r),g=[i,...f||(m!==i&&p?function(e){const t=ew(e);return[AM(e),t,AM(t)]}(i):[ew(i)])],y=await Qy(t,h),v=[];let b=(null==(n=a.flip)?void 0:n.overflows)||[];if(l&&v.push(y[m]),u){const{main:e,cross:t}=fhe(r,o,await(null==s.isRTL?void 0:s.isRTL(c.floating)));v.push(y[e],y[t])}if(b=[...b,{placement:r,overflows:v}],!v.every((e=>e<=0))){var _,w;const e=(null!=(_=null==(w=a.flip)?void 0:w.index)?_:0)+1,t=g[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var k;const e=null==(k=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:k[0].placement;e&&(n=e);break}case"initialPlacement":n=i}if(r!==n)return{reset:{placement:n}}}return{}}}};function IM(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $M(e){return cF.some((t=>e[t]>=0))}const phe=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=IM(await Qy(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:$M(t)}}}case"escaped":{const t=IM(await Qy(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:$M(t)}}}default:return{}}}}},hhe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,a=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=vm(n),s=D_(n),c="x"===N1(n),l=["left","top"].includes(i)?-1:1,u=o&&c?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}(t,e);return{x:n+a.x,y:r+a.y,data:a}}}};function lF(e){return"x"===e?"y":"x"}const mhe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,l={x:n,y:r},u=await Qy(t,c),f=N1(vm(a)),d=lF(f);let p=l[f],h=l[d];if(o){const e="y"===f?"bottom":"right";p=DC(p+u["y"===f?"top":"left"],p,p-u[e])}if(i){const e="y"===d?"bottom":"right";h=DC(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},ghe=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=e,u={x:n,y:r},f=N1(a),d=lF(f);let p=u[f],h=u[d];const m="function"==typeof s?s({...o,placement:a}):s,g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+g.mainAxis,n=o.reference[f]+o.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var y,v,b,_;const e="y"===f?"width":"height",t=["top","left"].includes(vm(a)),n=o.reference[d]-o.floating[e]+(t&&null!=(y=null==(v=i.offset)?void 0:v[d])?y:0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:null!=(b=null==(_=i.offset)?void 0:_[d])?b:0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},yhe=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:a,elements:o}=t,{apply:i,...s}=e,c=await Qy(t,s),l=vm(n),u=D_(n);let f,d;"top"===l||"bottom"===l?(f=l,d=u===(await(null==a.isRTL?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(d=l,f="end"===u?"top":"bottom");const p=Nh(c.left,0),h=Nh(c.right,0),m=Nh(c.top,0),g=Nh(c.bottom,0),y={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==m||0!==g?m+g:Nh(c.top,c.bottom)):c[f]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==h?p+h:Nh(c.left,c.right)):c[d])},v=await a.getDimensions(o.floating);null==i||i({...t,...y});const b=await a.getDimensions(o.floating);return v.width!==b.width||v.height!==b.height?{reset:{rects:!0}}:{}}}};function fF(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function uu(e){if(null==e)return window;if(!fF(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function N_(e){return uu(e).getComputedStyle(e)}function tu(e){return fF(e)?"":e?(e.nodeName||"").toLowerCase():""}function uF(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Ol(e){return e instanceof uu(e).HTMLElement}function up(e){return e instanceof uu(e).Element}function EA(e){return!(typeof ShadowRoot>"u")&&(e instanceof uu(e).ShadowRoot||e instanceof ShadowRoot)}function bk(e){const{overflow:t,overflowX:n,overflowY:r}=N_(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function _he(e){return["table","td","th"].includes(tu(e))}function PM(e){const t=/firefox/i.test(uF()),n=N_(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function dF(){return!/^((?!chrome|android).)*safari/i.test(uF())}const OM=Math.min,xy=Math.max,tw=Math.round;function nu(e,t,n){var r,a,o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,l=1;t&&Ol(e)&&(c=e.offsetWidth>0&&tw(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&tw(s.height)/e.offsetHeight||1);const u=up(e)?uu(e):window,f=!dF()&&n,d=(s.left+(f&&null!=(r=null==(a=u.visualViewport)?void 0:a.offsetLeft)?r:0))/c,p=(s.top+(f&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetTop)?o:0))/l,h=s.width/c,m=s.height/l;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function rp(e){return(t=e,(t instanceof uu(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function wk(e){return up(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function pF(e){return nu(rp(e)).left+wk(e).scrollLeft}function vhe(e,t,n){const r=Ol(t),a=rp(t),o=nu(e,r&&function(e){const t=nu(e);return tw(t.width)!==e.offsetWidth||tw(t.height)!==e.offsetHeight}(t),"fixed"===n);let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==tu(t)||bk(a))&&(i=wk(t)),Ol(t)){const e=nu(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=pF(a));return{x:o.left+i.scrollLeft-s.x,y:o.top+i.scrollTop-s.y,width:o.width,height:o.height}}function hF(e){return"html"===tu(e)?e:e.assignedSlot||e.parentNode||(EA(e)?e.host:null)||rp(e)}function zM(e){return Ol(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function NC(e){const t=uu(e);let n=zM(e);for(;n&&_he(n)&&"static"===getComputedStyle(n).position;)n=zM(n);return n&&("html"===tu(n)||"body"===tu(n)&&"static"===getComputedStyle(n).position&&!PM(n))?t:n||function(e){let t=hF(e);for(EA(t)&&(t=t.host);Ol(t)&&!["html","body"].includes(tu(t));){if(PM(t))return t;t=t.parentNode}return null}(e)||t}function MM(e){if(Ol(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=nu(e);return{width:t.width,height:t.height}}function mF(e){const t=hF(e);return["html","body","#document"].includes(tu(t))?e.ownerDocument.body:Ol(t)&&bk(t)?t:mF(t)}function nw(e,t){var n;void 0===t&&(t=[]);const r=mF(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=uu(r),i=a?[o].concat(o.visualViewport||[],bk(r)?r:[]):r,s=t.concat(i);return a?s:s.concat(nw(i))}function DM(e,t,n){return"viewport"===t?Jb(function(e,t){const n=uu(e),r=rp(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,c=0;if(a){o=a.width,i=a.height;const e=dF();(e||!e&&"fixed"===t)&&(s=a.offsetLeft,c=a.offsetTop)}return{width:o,height:i,x:s,y:c}}(e,n)):up(t)?function(e,t){const n=nu(e,!1,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft;return{top:r,left:a,x:a,y:r,right:a+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):Jb(function(e){var t;const n=rp(e),r=wk(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=xy(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=xy(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let s=-r.scrollLeft+pF(e);const c=-r.scrollTop;return"rtl"===N_(a||n).direction&&(s+=xy(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:c}}(rp(e)))}function bhe(e){const t=nw(e),n=["absolute","fixed"].includes(N_(e).position)&&Ol(e)?NC(e):e;return up(n)?t.filter((e=>up(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&EA(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==tu(e))):[]}const whe={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?bhe(t):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=DM(t,n,a);return e.top=xy(r.top,e.top),e.right=OM(r.right,e.right),e.bottom=OM(r.bottom,e.bottom),e.left=xy(r.left,e.left),e}),DM(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const a=Ol(n),o=rp(n);if(n===o)return t;let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((a||!a&&"fixed"!==r)&&(("body"!==tu(n)||bk(o))&&(i=wk(n)),Ol(n))){const e=nu(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-i.scrollLeft+s.x,y:t.y-i.scrollTop+s.y}},isElement:up,getDimensions:MM,getOffsetParent:NC,getDocumentElement:rp,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:vhe(t,NC(n),r),floating:{...MM(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===N_(e).direction};function khe(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=!0,animationFrame:s=!1}=r,c=a&&!s,l=o&&!s,u=c||l?[...up(e)?nw(e):[],...nw(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));let f,d=null;if(i){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),up(e)&&!s&&d.observe(e),d.observe(t)}let p=s?nu(e):null;return s&&function t(){const r=nu(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(f)}}const xhe=(e,t,n)=>she(e,t,{platform:whe,...n});var LC=typeof document<"u"?v.useLayoutEffect:v.useEffect;function jC(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!jC(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(!("_owner"===n&&e.$$typeof||jC(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function She(e){const t=v.useRef(e);return LC((()=>{t.current=e})),t}function Ehe(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:a}=void 0===e?{}:e;const o=v.useRef(null),i=v.useRef(null),s=She(a),c=v.useRef(null),[l,u]=v.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[f,d]=v.useState(t);jC(null==f?void 0:f.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||d(t);const p=v.useCallback((()=>{!o.current||!i.current||xhe(o.current,i.current,{middleware:f,placement:n,strategy:r}).then((e=>{h.current&&Ll.flushSync((()=>{u(e)}))}))}),[f,n,r]);LC((()=>{h.current&&p()}),[p]);const h=v.useRef(!1);LC((()=>(h.current=!0,()=>{h.current=!1})),[]);const m=v.useCallback((()=>{if("function"==typeof c.current&&(c.current(),c.current=null),o.current&&i.current)if(s.current){const e=s.current(o.current,i.current,p);c.current=e}else p()}),[p,s]),g=v.useCallback((e=>{o.current=e,m()}),[m]),y=v.useCallback((e=>{i.current=e,m()}),[m]),b=v.useMemo((()=>({reference:o,floating:i})),[]);return v.useMemo((()=>({...l,update:p,refs:b,reference:g,floating:y})),[l,p,b,g,y])}const Che=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn:e=>function(e){return Object.prototype.hasOwnProperty.call(e,"current")}(t)?null!=t.current?TM({element:t.current,padding:n}).fn(e):{}:t?TM({element:t,padding:n}).fn(e):{}}};function Rhe(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function The(...e){return t=>e.forEach((e=>Rhe(e,t)))}const gF=v.forwardRef(((e,t)=>{const{children:n,...r}=e,a=v.Children.toArray(n),o=a.find(Ihe);if(o){const e=o.props.children,n=a.map((t=>t===o?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t));return v.createElement(BC,Ie({},r,{ref:t}),v.isValidElement(e)?v.cloneElement(e,void 0,n):null)}return v.createElement(BC,Ie({},r,{ref:t}),n)}));gF.displayName="Slot";const BC=v.forwardRef(((e,t)=>{const{children:n,...r}=e;return v.isValidElement(n)?v.cloneElement(n,{...$he(r,n.props),ref:The(t,n.ref)}):v.Children.count(n)>1?v.Children.only(null):null}));BC.displayName="SlotClone";const Ahe=({children:e})=>v.createElement(v.Fragment,null,e);function Ihe(e){return v.isValidElement(e)&&e.type===Ahe}function $he(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}const Phe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],FC=Phe.reduce(((e,t)=>{const n=v.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?gF:t;return v.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),v.createElement(o,Ie({},a,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Ohe(e,t){e&&Ll.flushSync((()=>e.dispatchEvent(t)))}function zhe(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Mhe(...e){return t=>e.forEach((e=>zhe(e,t)))}function Dhe(...e){return v.useCallback(Mhe(...e),e)}const Vh=null!=globalThis&&globalThis.document?v.useLayoutEffect:()=>{};function Nhe(e){const[t,n]=v.useState(void 0);return Vh((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const yF="Popper",[CA,_F]=iF(yF),[DZe,Lhe]=CA(yF),rw="PopperContent",[jhe,NZe]=CA(rw),[Bhe,Fhe]=CA(rw,{hasParent:!1,positionUpdateFns:new Set}),Uhe=v.forwardRef(((e,t)=>{var n,r,a,o,i,s,c,l;const{__scopePopper:u,side:f="bottom",sideOffset:d=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:_=!1,avoidCollisions:w=!0,onPlaced:k,...x}=e,S=Lhe(rw,u),[E,A]=v.useState(null),C=Dhe(t,(e=>A(e))),[z,I]=v.useState(null),T=Nhe(z),R=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,j=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,P=f+("center"!==p?"-"+p:""),O="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},N=Array.isArray(g)?g:[g],M=N.length>0,D={padding:O,boundary:N.filter(qhe),altBoundary:M},{reference:B,floating:L,strategy:q,x:V,y:F,placement:U,middlewareData:$,update:W}=Ehe({strategy:"fixed",placement:P,whileElementsMounted:khe,middleware:[Whe(),hhe({mainAxis:d+j,alignmentAxis:h}),w?mhe({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?ghe():void 0,...D}):void 0,z?Che({element:z,padding:m}):void 0,w?dhe({...D}):void 0,yhe({...D,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),Hhe({arrowWidth:R,arrowHeight:j}),_?phe({strategy:"referenceHidden"}):void 0].filter(Vhe)});Vh((()=>{B(S.anchor)}),[B,S.anchor]);const H=null!==V&&null!==F,[G,Q]=vF(U),K=vk(k);Vh((()=>{H&&(null==K||K())}),[H,K]);const Y=null===(a=$.arrow)||void 0===a?void 0:a.x,Z=null===(o=$.arrow)||void 0===o?void 0:o.y,X=0!==(null===(i=$.arrow)||void 0===i?void 0:i.centerOffset),[J,ee]=v.useState();Vh((()=>{E&&ee(window.getComputedStyle(E).zIndex)}),[E]);const{hasParent:te,positionUpdateFns:ne}=Fhe(rw,u),re=!te;v.useLayoutEffect((()=>{if(!re)return ne.add(W),()=>{ne.delete(W)}}),[re,ne,W]),Vh((()=>{re&&H&&Array.from(ne).reverse().forEach((e=>requestAnimationFrame(e)))}),[re,H,ne]);const ae={"data-side":G,"data-align":Q,...x,ref:C,style:{...x.style,animation:H?void 0:"none",opacity:null!==(s=$.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return v.createElement("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:q,left:0,top:0,transform:H?`translate3d(${Math.round(V)}px, ${Math.round(F)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(c=$.transformOrigin)||void 0===c?void 0:c.x,null===(l=$.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},v.createElement(jhe,{scope:u,placedSide:G,onArrowChange:I,arrowX:Y,arrowY:Z,shouldHideArrow:X},re?v.createElement(Bhe,{scope:u,hasParent:!0,positionUpdateFns:ne},v.createElement(FC.div,ae)):v.createElement(FC.div,ae)))}));function Vhe(e){return void 0!==e}function qhe(e){return null!==e}const Whe=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:a}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${a}px`),{}}}),Hhe=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a,o,i;const{placement:s,rects:c,middlewareData:l}=t,u=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),f=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[p,h]=vF(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(r=null===(a=l.arrow)||void 0===a?void 0:a.x)&&void 0!==r?r:0)+f/2,y=(null!==(o=null===(i=l.arrow)||void 0===i?void 0:i.y)&&void 0!==o?o:0)+d/2;let v="",b="";return"bottom"===p?(v=u?m:`${g}px`,b=-d+"px"):"top"===p?(v=u?m:`${g}px`,b=`${c.floating.height+d}px`):"right"===p?(v=-d+"px",b=u?m:`${y}px`):"left"===p&&(v=`${c.floating.width+d}px`,b=u?m:`${y}px`),{data:{x:v,y:b}}}});function vF(e){const[t,n="center"]=e.split("-");return[t,n]}const Ghe=Uhe;function Khe(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Qhe(...e){return t=>e.forEach((e=>Khe(e,t)))}function Yhe(...e){return v.useCallback(Qhe(...e),e)}function Zhe(e,t){return v.useReducer(((e,n)=>t[e][n]??e),e)}const bF=e=>{const{present:t,children:n}=e,r=Xhe(t),a="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),o=Yhe(r.ref,a.ref);return"function"==typeof n||r.isPresent?v.cloneElement(a,{ref:o}):null};function Xhe(e){const[t,n]=v.useState(),r=v.useRef({}),a=v.useRef(e),o=v.useRef("none"),i=e?"mounted":"unmounted",[s,c]=Zhe(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect((()=>{const e=Jv(r.current);o.current="mounted"===s?e:"none"}),[s]),Vh((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=Jv(t);e?c("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?c("UNMOUNT"):c(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),a.current=e}}),[e,c]),Vh((()=>{if(t){const e=e=>{const n=Jv(r.current).includes(e.animationName);e.target===t&&n&&Ll.flushSync((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(o.current=Jv(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Jv(e){return(null==e?void 0:e.animationName)||"none"}function Jhe(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function eme(...e){return t=>e.forEach((e=>Jhe(e,t)))}function tme(...e){return v.useCallback(eme(...e),e)}function nme(e,t=(null==globalThis?void 0:globalThis.document)){const n=vk(e);v.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}bF.displayName="Presence";const UC="dismissableLayer.update",rme="dismissableLayer.pointerDownOutside",ame="dismissableLayer.focusOutside";let NM;const ome=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ime=v.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...l}=e,u=v.useContext(ome),[f,d]=v.useState(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,h]=v.useState({}),m=tme(t,(e=>d(e))),g=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),_=f?g.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,k=_>=b,x=sme((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));!k||n||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p),S=cme((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==i||i(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p);return nme((e=>{_===u.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),p),v.useEffect((()=>{if(f)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(NM=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),LM(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=NM)}}),[f,p,r,u]),v.useEffect((()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),LM())}),[f,u]),v.useEffect((()=>{const e=()=>h({});return document.addEventListener(UC,e),()=>document.removeEventListener(UC,e)}),[]),v.createElement(FC.div,Ie({},l,{ref:m,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Wh(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Wh(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Wh(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function sme(e,t=(null==globalThis?void 0:globalThis.document)){const n=vk(e),r=v.useRef(!1),a=v.useRef((()=>{}));return v.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){wF(rme,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function cme(e,t=(null==globalThis?void 0:globalThis.document)){const n=vk(e),r=v.useRef(!1);return v.useEffect((()=>{const e=e=>{e.target&&!r.current&&wF(ame,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function LM(){const e=new CustomEvent(UC);document.dispatchEvent(e)}function wF(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Ohe(a,o):a.dispatchEvent(o)}let $E;const kF="HoverCard",[xF,LZe]=iF(kF,[_F]),lme=_F(),[jZe,SF]=xF(kF),fme="HoverCardPortal",[BZe,ume]=xF(fme,{forceMount:void 0}),VC="HoverCardContent",dme=v.forwardRef(((e,t)=>{const n=ume(VC,e.__scopeHoverCard),{forceMount:r=n.forceMount,...a}=e,o=SF(VC,e.__scopeHoverCard);return v.createElement(bF,{present:r||o.open},v.createElement(pme,Ie({"data-state":o.open?"open":"closed"},a,{onPointerEnter:Wh(e.onPointerEnter,jM(o.onOpen)),onPointerLeave:Wh(e.onPointerLeave,jM(o.onClose)),ref:t})))})),pme=v.forwardRef(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,...s}=e,c=SF(VC,n),l=lme(n),u=v.useRef(null),f=ihe(t,u),[d,p]=v.useState(!1);return v.useEffect((()=>{if(d){const e=document.body;return $E=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=$E,e.style.webkitUserSelect=$E}}}),[d]),v.useEffect((()=>{if(u.current){const e=()=>{p(!1),c.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&(c.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}}),[c.isPointerDownOnContentRef,c.hasSelectionRef]),v.useEffect((()=>{u.current&&hme(u.current).forEach((e=>e.setAttribute("tabindex","-1")))})),v.createElement(ime,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:Wh(o,(e=>{e.preventDefault()})),onDismiss:c.onDismiss},v.createElement(Ghe,Ie({},l,s,{onPointerDown:Wh(s.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&p(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0})),ref:f,style:{...s.style,userSelect:d?"text":void 0,WebkitUserSelect:d?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}));function jM(e){return t=>"touch"===t.pointerType?void 0:e()}function hme(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}const EF=dme,mme=v.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},a)=>B.jsx(EF,{ref:a,align:t,sideOffset:n,className:xe("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})));mme.displayName=EF.displayName;const CF=v.forwardRef((({className:e,type:t,...n},r)=>{const{error:a}=vp();return B.jsx("input",{type:t,className:xe("flex w-full rounded-m px-4 py-3.5 text-base text-slate-900 outline outline-1 outline-input ring-offset-background transition-all duration-200 ease-in-out file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-base placeholder:text-muted-foreground placeholder:text-slate-400 hover:outline-2 hover:outline-slate-400 focus-visible:bg-slate-50 focus-visible:text-slate-900 focus-visible:outline-2 focus-visible:outline-blue_120 disabled:cursor-not-allowed disabled:text-slate-300 disabled:outline-slate-200",{"bg-red_30_17 outline-red-dark":!!a},e),ref:r,...n})}));CF.displayName="Input";const RF="Radio",[gme,TF]=Zo(RF),[yme,_me]=gme(RF),vme=v.forwardRef(((e,t)=>{const{__scopeRadio:n,name:r,checked:a=!1,required:o,disabled:i,value:s="on",onCheck:c,...l}=e,[u,f]=v.useState(null),d=un(t,(e=>f(e))),p=v.useRef(!1),h=!u||!!u.closest("form");return v.createElement(yme,{scope:n,checked:a,disabled:i},v.createElement(wt.button,Ie({type:"button",role:"radio","aria-checked":a,"data-state":AF(a),"data-disabled":i?"":void 0,disabled:i,value:s},l,{ref:d,onClick:st(e.onClick,(e=>{a||null==c||c(),h&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),h&&v.createElement(kme,{control:u,bubbles:!p.current,name:r,value:s,checked:a,required:o,disabled:i,style:{transform:"translateX(-100%)"}}))})),bme="RadioIndicator",wme=v.forwardRef(((e,t)=>{const{__scopeRadio:n,forceMount:r,...a}=e,o=_me(bme,n);return v.createElement(zs,{present:r||o.checked},v.createElement(wt.span,Ie({"data-state":AF(o.checked),"data-disabled":o.disabled?"":void 0},a,{ref:t})))})),kme=e=>{const{control:t,checked:n,bubbles:r=!0,...a}=e,o=v.useRef(null),i=sk(n),s=ck(t);return v.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&a){const t=new Event("click",{bubbles:r});a.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),v.createElement("input",Ie({type:"radio","aria-hidden":!0,defaultChecked:n},a,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function AF(e){return e?"checked":"unchecked"}const xme=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],IF="RadioGroup",[Sme,FZe]=Zo(IF,[M1,TF]),$F=M1(),PF=TF(),[Eme,Cme]=Sme(IF),Rme=v.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:a,value:o,required:i=!1,disabled:s=!1,orientation:c,dir:l,loop:u=!0,onValueChange:f,...d}=e,p=$F(n),h=aA(l),[m,g]=ip({prop:o,defaultProp:a,onChange:f});return v.createElement(Eme,{scope:n,name:r,required:i,disabled:s,value:m,onValueChange:g},v.createElement(hA,Ie({asChild:!0},p,{orientation:c,dir:h,loop:u}),v.createElement(wt.div,Ie({role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":s?"":void 0,dir:h},d,{ref:t}))))})),Tme="RadioGroupItem",Ame=v.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...a}=e,o=Cme(Tme,n),i=o.disabled||r,s=$F(n),c=PF(n),l=v.useRef(null),u=un(t,l),f=o.value===a.value,d=v.useRef(!1);return v.useEffect((()=>{const e=e=>{xme.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),v.createElement(mA,Ie({asChild:!0},s,{focusable:!i,active:f}),v.createElement(vme,Ie({disabled:i,required:o.required,checked:f},c,a,{name:o.name,ref:u,onCheck:()=>o.onValueChange(a.value),onKeyDown:st((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:st(a.onFocus,(()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())}))})))})),Ime=v.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,a=PF(n);return v.createElement(wme,Ie({},a,r,{ref:t}))})),OF=Rme,zF=Ame,$me=Ime,Pme=v.forwardRef((({className:e,...t},n)=>B.jsx(OF,{className:xe("grid gap-2",e),...t,ref:n})));Pme.displayName=OF.displayName;const Ome=v.forwardRef((({className:e,...t},n)=>B.jsx(zF,{ref:n,className:xe("aspect-square size-6 rounded-full border border-slate-300 disabled:cursor-not-allowed disabled:border-slate-100 disabled:bg-slate-100 data-[state=checked]:border-blue_100 data-[state=checked]:bg-blue_100 md:hover:border-2",e),...t,children:B.jsx($me,{className:"flex items-center justify-center",children:B.jsx($te,{className:"stack-animate size-2 border-none",style:{fill:t.disabled?"var(--slate-300)":"white",color:t.disabled?"var(--slate-300)":"white"}})})})));Ome.displayName=zF.displayName;const zme=U5,Mme=Qw,MF=v.forwardRef((({className:e,...t},n)=>B.jsx(A1,{className:xe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));MF.displayName=A1.displayName;const Dme=jl("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),DF=v.forwardRef((({side:e="right",className:t,overlayClassName:n,children:r,...a},o)=>B.jsxs(Mme,{children:[B.jsx(MF,{className:xe("bg-slate-900/70",n)}),B.jsxs(I1,{ref:o,className:xe(Dme({side:e}),t),...a,children:[r,B.jsxs(Yw,{className:"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[B.jsx(uT,{className:"h-4 w-4"}),B.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));DF.displayName=I1.displayName;const NF=({className:e,...t})=>B.jsx("div",{className:xe("flex flex-col space-y-2 text-center sm:text-left",e),...t});NF.displayName="SheetHeader";const LF=v.forwardRef((({className:e,...t},n)=>B.jsx(R_,{ref:n,className:xe("text-lg font-semibold text-foreground",e),...t})));LF.displayName=R_.displayName;const jF=v.forwardRef((({className:e,...t},n)=>B.jsx(T_,{ref:n,className:xe("text-sm text-muted-foreground",e),...t})));jF.displayName=T_.displayName;const[kk,UZe]=Zo("Tooltip",[z1]),RA=z1(),Nme="TooltipProvider",Lme=700,qC="tooltip.open",[jme,TA]=kk(Nme),Bme=e=>{const{__scopeTooltip:t,delayDuration:n=Lme,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,[i,s]=v.useState(!0),c=v.useRef(!1),l=v.useRef(0);return v.useEffect((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),v.createElement(jme,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:v.useCallback((()=>{window.clearTimeout(l.current),s(!1)}),[]),onClose:v.useCallback((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:c,onPointerInTransitChange:v.useCallback((e=>{c.current=e}),[]),disableHoverableContent:a},o)},AA="Tooltip",[Fme,xk]=kk(AA),BF=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:s}=e,c=TA(AA,e.__scopeTooltip),l=RA(t),[u,f]=v.useState(null),d=tp(),p=v.useRef(0),h=i??c.disableHoverableContent,m=s??c.delayDuration,g=v.useRef(!1),[y=!1,b]=ip({prop:r,defaultProp:a,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(qC))):c.onClose(),null==o||o(e)}}),_=v.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),w=v.useCallback((()=>{window.clearTimeout(p.current),g.current=!1,b(!0)}),[b]),k=v.useCallback((()=>{window.clearTimeout(p.current),b(!1)}),[b]),x=v.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{g.current=!0,b(!0)}),m)}),[m,b]);return v.useEffect((()=>()=>window.clearTimeout(p.current)),[]),v.createElement(lB,l,v.createElement(Fme,{scope:t,contentId:d,open:y,stateAttribute:_,trigger:u,onTriggerChange:f,onTriggerEnter:v.useCallback((()=>{c.isOpenDelayed?x():w()}),[c.isOpenDelayed,x,w]),onTriggerLeave:v.useCallback((()=>{h?k():window.clearTimeout(p.current)}),[k,h]),onOpen:w,onClose:k,disableHoverableContent:h},n))},BM="TooltipTrigger",FF=v.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=xk(BM,n),o=TA(BM,n),i=RA(n),s=un(t,v.useRef(null),a.onTriggerChange),c=v.useRef(!1),l=v.useRef(!1),u=v.useCallback((()=>c.current=!1),[]);return v.useEffect((()=>()=>document.removeEventListener("pointerup",u)),[u]),v.createElement(uA,Ie({asChild:!0},i),v.createElement(wt.button,Ie({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},r,{ref:s,onPointerMove:st(e.onPointerMove,(e=>{"touch"!==e.pointerType&&!l.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),l.current=!0)})),onPointerLeave:st(e.onPointerLeave,(()=>{a.onTriggerLeave(),l.current=!1})),onPointerDown:st(e.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",u,{once:!0})})),onFocus:st(e.onFocus,(()=>{c.current||a.onOpen()})),onBlur:st(e.onBlur,a.onClose),onClick:st(e.onClick,a.onClose)})))})),Ume="TooltipPortal",[VZe,Vme]=kk(Ume,{forceMount:void 0}),Yy="TooltipContent",UF=v.forwardRef(((e,t)=>{const n=Vme(Yy,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,i=xk(Yy,e.__scopeTooltip);return v.createElement(zs,{present:r||i.open},i.disableHoverableContent?v.createElement(VF,Ie({side:a},o,{ref:t})):v.createElement(qme,Ie({side:a},o,{ref:t})))})),qme=v.forwardRef(((e,t)=>{const n=xk(Yy,e.__scopeTooltip),r=TA(Yy,e.__scopeTooltip),a=v.useRef(null),o=un(t,a),[i,s]=v.useState(null),{trigger:c,onClose:l}=n,u=a.current,{onPointerInTransitChange:f}=r,d=v.useCallback((()=>{s(null),f(!1)}),[f]),p=v.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},a=Yme([...Gme(r,Hme(r,n.getBoundingClientRect())),...Kme(t.getBoundingClientRect())]);s(a),f(!0)}),[f]);return v.useEffect((()=>()=>d()),[d]),v.useEffect((()=>{if(c&&u){const e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}}),[c,u,p,d]),v.useEffect((()=>{if(i){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==u?void 0:u.contains(t)),a=!Qme(n,i);r?d():a&&(d(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,u,i,l,d]),v.createElement(VF,Ie({},e,{ref:o}))})),[Wme,qZe]=kk(AA,{isInside:!1}),VF=v.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...s}=e,c=xk(Yy,n),l=RA(n),{onClose:u}=c;return v.useEffect((()=>(document.addEventListener(qC,u),()=>document.removeEventListener(qC,u))),[u]),v.useEffect((()=>{if(c.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(c.trigger)&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,u]),v.createElement(Ww,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:u},v.createElement(dA,Ie({"data-state":c.stateAttribute},l,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),v.createElement(mT,null,r),v.createElement(Wme,{scope:n,isInside:!0},v.createElement(Yde,{id:c.contentId,role:"tooltip"},a||r))))}));function Hme(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Gme(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function Kme(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function Qme(e,t){const{x:n,y:r}=e;let a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const i=t[e].x,s=t[e].y,c=t[o].x,l=t[o].y;s>r!=l>r&&n<(c-i)*(r-s)/(l-s)+i&&(a=!a)}return a}function Yme(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),Zme(t)}function Zme(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const Xme=BF,Jme=FF,qF=UF;var PE,FM,OE,UM,zE,VM,ME,qM,DE,WM,NE,HM,LE,GM,jE,KM,BE,QM,FE,YM,UE,ZM,VE,XM,qE,JM,WE,eD,HE,tD,GE,nD,KE,rD,QE,aD,YE,oD,ZE,iD,XE,sD,JE,cD,e4,lD,t4,fD,n4,uD,r4,dD,a4,pD,o4,hD,i4,mD,s4,gD,c4,yD,l4,_D,f4,vD,u4,bD,d4,wD,p4,kD,h4,xD,m4,SD,g4,ED,y4,CD,_4,RD;function WF(){if(FM)return PE;FM=1;var e=TL(),t=e&&new e;return PE=t}function HF(){if(UM)return OE;UM=1;var e=VT(),t=WF();return OE=t?function(e,n){return t.set(e,n),e}:e}function Sk(){if(VM)return zE;VM=1;var e=ik(),t=$c();return zE=function(n){return function(){var r=arguments;switch(r.length){case 0:return new n;case 1:return new n(r[0]);case 2:return new n(r[0],r[1]);case 3:return new n(r[0],r[1],r[2]);case 4:return new n(r[0],r[1],r[2],r[3]);case 5:return new n(r[0],r[1],r[2],r[3],r[4]);case 6:return new n(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new n(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var a=e(n.prototype),o=n.apply(a,r);return t(o)?o:a}},zE}function ege(){if(qM)return ME;qM=1;var e=Sk(),t=Xo();return ME=function(n,r,a){var o=1&r,i=e(n);return function e(){return(this&&this!==t&&this instanceof e?i:n).apply(o?a:this,arguments)}},ME}function GF(){if(WM)return DE;WM=1;var e=Math.max;return DE=function(t,n,r,a){for(var o=-1,i=t.length,s=r.length,c=-1,l=n.length,u=e(i-s,0),f=Array(l+u),d=!a;++c<l;)f[c]=n[c];for(;++o<s;)(d||o<i)&&(f[r[o]]=t[o]);for(;u--;)f[c++]=t[o++];return f}}function KF(){if(HM)return NE;HM=1;var e=Math.max;return NE=function(t,n,r,a){for(var o=-1,i=t.length,s=-1,c=r.length,l=-1,u=n.length,f=e(i-c,0),d=Array(f+u),p=!a;++o<f;)d[o]=t[o];for(var h=o;++l<u;)d[h+l]=n[l];for(;++s<c;)(p||o<i)&&(d[h+r[s]]=t[o++]);return d}}function tge(){if(GM)return LE;return GM=1,LE=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}}function IA(){if(KM)return jE;return KM=1,jE=function(){}}function $A(){if(QM)return BE;QM=1;var e=ik(),t=IA();function n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}return n.prototype=e(t.prototype),n.prototype.constructor=n,BE=n}function QF(){if(YM)return FE;YM=1;var e=WF(),t=PL();return FE=e?function(t){return e.get(t)}:t}function nge(){if(ZM)return UE;ZM=1;return UE={}}function rge(){if(XM)return VE;XM=1;var e=nge(),t=Object.prototype.hasOwnProperty;return VE=function(n){for(var r=n.name+"",a=e[r],o=t.call(e,r)?a.length:0;o--;){var i=a[o],s=i.func;if(null==s||s==n)return i.name}return r}}function YF(){if(JM)return qE;JM=1;var e=ik(),t=IA();function n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}return n.prototype=e(t.prototype),n.prototype.constructor=n,qE=n}function age(){if(eD)return WE;eD=1;var e=$A(),t=YF(),n=ok();return WE=function(r){if(r instanceof e)return r.clone();var a=new t(r.__wrapped__,r.__chain__);return a.__actions__=n(r.__actions__),a.__index__=r.__index__,a.__values__=r.__values__,a}}function oge(){if(tD)return HE;tD=1;var e=$A(),t=YF(),n=IA(),r=vi(),a=Yi(),o=age(),i=Object.prototype.hasOwnProperty;function s(n){if(a(n)&&!r(n)&&!(n instanceof e)){if(n instanceof t)return n;if(i.call(n,"__wrapped__"))return o(n)}return new t(n)}return s.prototype=n.prototype,s.prototype.constructor=s,HE=s}function ige(){if(nD)return GE;nD=1;var e=$A(),t=QF(),n=rge(),r=oge();return GE=function(a){var o=n(a),i=r[o];if("function"!=typeof i||!(o in e.prototype))return!1;if(a===i)return!0;var s=t(i);return!!s&&a===s[0]}}function ZF(){if(rD)return KE;rD=1;var e=HF(),t=zL()(e);return KE=t}function sge(){if(aD)return QE;aD=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;return QE=function(n){var r=n.match(e);return r?r[1].split(t):[]}}function cge(){if(oD)return YE;oD=1;var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;return YE=function(t,n){var r=n.length;if(!r)return t;var a=r-1;return n[a]=(r>1?"& ":"")+n[a],n=n.join(r>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+n+"] */\n")}}function lge(){if(iD)return ZE;iD=1;var e=HT(),t=Vie(),n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];return ZE=function(r,a){return e(n,(function(e){var n="_."+e[0];a&e[1]&&!t(r,n)&&r.push(n)})),r.sort()}}function XF(){if(sD)return XE;sD=1;var e=sge(),t=cge(),n=ML(),r=lge();return XE=function(a,o,i){var s=o+"";return n(a,t(s,r(e(s),i)))}}function JF(){if(cD)return JE;cD=1;var e=ige(),t=ZF(),n=XF();return JE=function(r,a,o,i,s,c,l,u,f,d){var p=8&a;a|=p?32:64,4&(a&=~(p?64:32))||(a&=-4);var h=[r,a,s,p?c:void 0,p?l:void 0,p?void 0:c,p?void 0:l,u,f,d],m=o.apply(void 0,h);return e(r)&&t(m,h),m.placeholder=i,n(m,r,a)}}function eU(){if(lD)return e4;return lD=1,e4=function(e){return e.placeholder}}function fge(){if(fD)return t4;fD=1;var e=ok(),t=LT(),n=Math.min;return t4=function(r,a){for(var o=r.length,i=n(a.length,o),s=e(r);i--;){var c=a[i];r[i]=t(c,o)?s[c]:void 0}return r}}function PA(){if(uD)return n4;uD=1;var e="__lodash_placeholder__";return n4=function(t,n){for(var r=-1,a=t.length,o=0,i=[];++r<a;){var s=t[r];(s===n||s===e)&&(t[r]=e,i[o++]=r)}return i}}function tU(){if(dD)return r4;dD=1;var e=GF(),t=KF(),n=tge(),r=Sk(),a=JF(),o=eU(),i=fge(),s=PA(),c=Xo();return r4=function l(u,f,d,p,h,m,g,y,v,b){var _=128&f,w=1&f,k=2&f,x=24&f,S=512&f,E=k?void 0:r(u);return function A(){for(var C=arguments.length,z=Array(C),I=C;I--;)z[I]=arguments[I];if(x)var T=o(A),R=n(z,T);if(p&&(z=e(z,p,h,x)),m&&(z=t(z,m,g,x)),C-=R,x&&C<b){var j=s(z,T);return a(u,f,l,A.placeholder,d,z,j,y,v,b-C)}var P=w?d:this,O=k?P[u]:u;return C=z.length,y?z=i(z,y):S&&C>1&&z.reverse(),_&&v<C&&(z.length=v),this&&this!==c&&this instanceof A&&(O=E||r(O)),O.apply(P,z)}},r4}function uge(){if(pD)return a4;pD=1;var e=qT(),t=Sk(),n=tU(),r=JF(),a=eU(),o=PA(),i=Xo();return a4=function(s,c,l){var u=t(s);return function t(){for(var f=arguments.length,d=Array(f),p=f,h=a(t);p--;)d[p]=arguments[p];var m=f<3&&d[0]!==h&&d[f-1]!==h?[]:o(d,h);return(f-=m.length)<l?r(s,c,n,t.placeholder,void 0,d,m,void 0,void 0,l-f):e(this&&this!==i&&this instanceof t?u:s,this,d)}},a4}function dge(){if(hD)return o4;hD=1;var e=qT(),t=Sk(),n=Xo();return o4=function(r,a,o,i){var s=1&a,c=t(r);return function t(){for(var a=-1,l=arguments.length,u=-1,f=i.length,d=Array(f+l),p=this&&this!==n&&this instanceof t?c:r;++u<f;)d[u]=i[u];for(;l--;)d[u++]=arguments[++a];return e(p,s?o:this,d)}},o4}function pge(){if(mD)return i4;mD=1;var e=GF(),t=KF(),n=PA(),r="__lodash_placeholder__",a=128,o=Math.min;return i4=function(i,s){var c=i[1],l=s[1],u=c|l,f=u<131,d=l==a&&8==c||l==a&&256==c&&i[7].length<=s[8]||384==l&&s[7].length<=s[8]&&8==c;if(!f&&!d)return i;1&l&&(i[2]=s[2],u|=1&c?0:4);var p=s[3];if(p){var h=i[3];i[3]=h?e(h,p,s[4]):p,i[4]=h?n(i[3],r):s[4]}return(p=s[5])&&(h=i[5],i[5]=h?t(h,p,s[6]):p,i[6]=h?n(i[5],r):s[6]),(p=s[7])&&(i[7]=p),l&a&&(i[8]=null==i[8]?s[8]:o(i[8],s[8])),null==i[9]&&(i[9]=s[9]),i[0]=s[0],i[1]=u,i}}function OA(){if(gD)return s4;gD=1;var e=HF(),t=ege(),n=uge(),r=tU(),a=dge(),o=QF(),i=pge(),s=ZF(),c=XF(),l=jL(),u=Math.max;return s4=function(f,d,p,h,m,g,y,v){var b=2&d;if(!b&&"function"!=typeof f)throw new TypeError("Expected a function");var _=h?h.length:0;if(_||(d&=-97,h=m=void 0),y=void 0===y?y:u(l(y),0),v=void 0===v?v:l(v),_-=m?m.length:0,64&d){var w=h,k=m;h=m=void 0}var x=b?void 0:o(f),S=[f,d,p,h,m,w,k,g,y,v];if(x&&i(S,x),f=S[0],d=S[1],p=S[2],h=S[3],m=S[4],!(v=S[9]=void 0===S[9]?b?0:f.length:u(S[9]-_,0))&&24&d&&(d&=-25),d&&1!=d)E=8==d||16==d?n(f,d,v):32!=d&&33!=d||m.length?r.apply(void 0,S):a(f,d,p,h);else var E=t(f,d,p);return c((x?e:s)(E,S),f,d)}}function hge(){if(yD)return c4;yD=1;var e=OA();return c4=function(t,n,r){return n=r?void 0:n,n=t&&null==n?t.length:n,e(t,128,void 0,void 0,void 0,void 0,n)}}function mge(){if(_D)return l4;_D=1;var e=VL();return l4=function(t){return e(t,4)}}function gge(){if(vD)return f4;vD=1;var e=OA();function t(n,r,a){var o=e(n,8,void 0,void 0,void 0,void 0,void 0,r=a?void 0:r);return o.placeholder=t.placeholder,o}return t.placeholder={},f4=t}function yge(){if(bD)return u4;bD=1;var e=cu(),t=Yi(),n=fse();return u4=function(r){if(!t(r))return!1;var a=e(r);return"[object Error]"==a||"[object DOMException]"==a||"string"==typeof r.message&&"string"==typeof r.name&&!n(r)}}function _ge(){if(wD)return d4;wD=1;var e=P_(),t=Yi();return d4=function(n){return t(n)&&"[object WeakMap]"==e(n)}}function vge(){if(kD)return p4;kD=1;var e=VL(),t=Lie();return p4=function(n){return t("function"==typeof n?n:e(n,1))}}function bge(){if(xD)return h4;xD=1;var e=OA(),t=$se(),n=t((function(t,n){return e(t,256,void 0,void 0,void 0,n)}));return h4=n}function wge(){if(SD)return m4;SD=1;var e=dL(),t=ok(),n=vi(),r=I_(),a=uL(),o=$_(),i=pL();return m4=function(s){return n(s)?e(s,o):r(s)?[s]:t(a(i(s)))}}function kge(){return ED||(ED=1,g4={ary:hge(),assign:FL(),clone:mge(),curry:gge(),forEach:HT(),isArray:vi(),isError:yge(),isFunction:Xw(),isWeakMap:_ge(),iteratee:vge(),keys:EL(),rearg:bge(),toInteger:jL(),toPath:wge()}),g4}function nU(){if(CD)return y4;CD=1;var e=FN(),t=kge();return y4=function(n,r,a){return e(t,n,r,a)}}function xge(){if(RD)return _4;RD=1;var e=nU()("debounce",NL());return e.placeholder=mR(),_4=e}function Sge(e,t,n=window){const r=v.useRef(t);v.useEffect((()=>{r.current=t}),[t]),v.useEffect((()=>{if(!n)return;const t=e=>r.current(e);return n.addEventListener(e,t),()=>{n.removeEventListener(e,t)}}),[e,n])}xge();const Ege=()=>Tc(iT.selectors.selectIsMobile);function TD({className:e,...t}){return B.jsx("div",{className:xe("animate-pulse rounded-md bg-muted",e),...t})}const Cge="sidebar_state",Rge=604800,Tge="14rem",Age="18rem",Ige="3rem",$ge="b",rU=v.createContext(null);function Ek(){const e=v.useContext(rU);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Pge=v.forwardRef((({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...i},s)=>{const c=Ege(),[l,u]=v.useState(!1),[f,d]=v.useState(e),p=t??f,h=v.useCallback((e=>{const t="function"==typeof e?e(p):e;n?n(t):d(t),document.cookie=`${Cge}=${t}; path=/; max-age=604800`}),[n,p]),m=v.useCallback((()=>c?u((e=>!e)):h((e=>!e))),[c,h,u]);v.useEffect((()=>{const e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[m]);const g=p?"expanded":"collapsed",y=v.useMemo((()=>({state:g,open:p,setOpen:h,isMobile:c,openMobile:l,setOpenMobile:u,toggleSidebar:m})),[g,p,h,c,l,u,m]);return B.jsx(rU.Provider,{value:y,children:B.jsx(Bme,{delayDuration:0,children:B.jsx("div",{style:{"--sidebar-width":Tge,"--sidebar-width-icon":Ige,...a},className:xe("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...i,children:o})})})}));Pge.displayName="SidebarProvider";const Oge=v.forwardRef((({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:a,...o},i)=>{const{isMobile:s,state:c,openMobile:l,setOpenMobile:u}=Ek();return"none"===n?B.jsx("div",{className:xe("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:i,...o,children:a}):s?B.jsx(zme,{open:l,onOpenChange:u,children:B.jsxs(DF,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Age},side:e,children:[B.jsxs(NF,{className:"sr-only",children:[B.jsx(LF,{children:"Sidebar"}),B.jsx(jF,{children:"Displays the mobile sidebar."})]}),B.jsx("div",{className:"flex h-full w-full flex-col",children:a})]})}):B.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":"collapsed"===c?n:"","data-variant":t,"data-side":e,children:[B.jsx("div",{className:xe("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),B.jsx("div",{className:xe("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...o,children:B.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-sm group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})})]})}));Oge.displayName="Sidebar";const zge=v.forwardRef((({className:e,onClick:t,...n},r)=>{const{toggleSidebar:a,open:o}=Ek();return B.jsx(qw,{ref:r,"data-sidebar":"trigger",variant:"tertiary",size:"icon_m",className:xe("size-6 text-slate-900",e),onClick:e=>{null==t||t(e),a()},...n,children:o?B.jsx(Qte,{size:16}):B.jsx(Gte,{size:16})})}));zge.displayName="SidebarTrigger";const Mge=v.forwardRef((({className:e,...t},n)=>{const{toggleSidebar:r}=Ek();return B.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:xe("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}));Mge.displayName="SidebarRail";const Dge=v.forwardRef((({className:e,...t},n)=>B.jsx("main",{ref:n,className:xe("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-m md:peer-data-[variant=inset]:shadow",e),...t})));Dge.displayName="SidebarInset";const Nge=v.forwardRef((({className:e,...t},n)=>B.jsx(CF,{ref:n,"data-sidebar":"input",className:xe("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t})));Nge.displayName="SidebarInput";const Lge=v.forwardRef((({className:e,...t},n)=>B.jsx("div",{ref:n,"data-sidebar":"header",className:xe("flex flex-col gap-2 p-2",e),...t})));Lge.displayName="SidebarHeader";const jge=v.forwardRef((({className:e,...t},n)=>B.jsx("div",{ref:n,"data-sidebar":"footer",className:xe("flex flex-col gap-2 p-2",e),...t})));jge.displayName="SidebarFooter";const Bge=v.forwardRef((({className:e,...t},n)=>B.jsx(bA,{ref:n,"data-sidebar":"separator",className:xe("mx-2 w-auto bg-sidebar-border",e),...t})));Bge.displayName="SidebarSeparator";const Fge=v.forwardRef((({className:e,...t},n)=>B.jsx("div",{ref:n,"data-sidebar":"content",className:xe("flex min-h-0 flex-1 flex-col gap-xxxs overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})));Fge.displayName="SidebarContent";const Uge=v.forwardRef((({className:e,...t},n)=>B.jsx("div",{ref:n,"data-sidebar":"group",className:xe("relative flex w-full min-w-0 flex-col px-xxs pt-xs",e),...t})));Uge.displayName="SidebarGroup";const Vge=v.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const a=t?yp:"div";return B.jsx(a,{ref:r,"data-sidebar":"group-label",className:xe("flex h-s shrink-0 items-center rounded-md px-xxs py-xxs text-xs font-semibold text-slate-700 opacity-60 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-xl group-data-[collapsible=icon]:opacity-0",e),...n})}));Vge.displayName="SidebarGroupLabel";const qge=v.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const a=t?yp:"button";return B.jsx(a,{ref:r,"data-sidebar":"group-action",className:xe("absolute right-xs top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})}));qge.displayName="SidebarGroupAction";const Wge=v.forwardRef((({className:e,...t},n)=>B.jsx("div",{ref:n,"data-sidebar":"group-content",className:xe("w-full text-sm",e),...t})));Wge.displayName="SidebarGroupContent";const Hge=v.forwardRef((({className:e,...t},n)=>B.jsx("ul",{ref:n,"data-sidebar":"menu",className:xe("flex w-full min-w-0 flex-col p-xs font-semibold text-slate-700 [&_svg]:size-4",e),...t})));Hge.displayName="SidebarMenu";const Gge=v.forwardRef((({className:e,...t},n)=>B.jsx("li",{ref:n,"data-sidebar":"menu-item",className:xe("group/menu-item relative",e),...t})));Gge.displayName="SidebarMenuItem";const Kge=jl("peer/menu-button flex w-full items-center gap-xxs overflow-hidden rounded-sm p-xxs text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:text-blue_100 hover:bg-white focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-white data-[active=true]:font-medium data-[active=true]:text-blue_100 data-[state=open]:hover:bg-white data-[state=open]:hover:text-blue_100 group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:text-blue_100 hover:bg-white",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-white hover:text-blue_100 hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-s text-sm",sm:"h-m text-xs",lg:"h-l text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Qge=v.forwardRef((({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:a,className:o,...i},s)=>{const c=e?yp:"button",{isMobile:l,state:u}=Ek(),f=B.jsx(c,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:xe(Kge({variant:n,size:r}),o),...i});return a?("string"==typeof a&&(a={children:a}),B.jsxs(BF,{children:[B.jsx(FF,{asChild:!0,children:f}),B.jsx(UF,{side:"right",align:"center",hidden:"collapsed"!==u||l,...a})]})):f}));Qge.displayName="SidebarMenuButton";const Yge=v.forwardRef((({className:e,asChild:t=!1,showOnHover:n=!1,...r},a)=>{const o=t?yp:"button";return B.jsx(o,{ref:a,"data-sidebar":"menu-action",className:xe("absolute right-xxxs top-xxs flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})}));Yge.displayName="SidebarMenuAction";const Zge=v.forwardRef((({className:e,...t},n)=>B.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:xe("pointer-events-none absolute right-xxxs flex h-m min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",e),...t})));Zge.displayName="SidebarMenuBadge";const Xge=v.forwardRef((({className:e,showIcon:t=!1,...n},r)=>{const a=v.useMemo((()=>`${Math.floor(40*Math.random())+50}%`),[]);return B.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:xe("flex h-8 items-center gap-xxs rounded-md px-xxs",e),...n,children:[t&&B.jsx(TD,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),B.jsx(TD,{className:"h-xxxs max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})}));Xge.displayName="SidebarMenuSkeleton";const Jge=v.forwardRef((({className:e,...t},n)=>B.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:xe("flex min-w-0 translate-x-px flex-col gap-xxxs border-l border-sidebar-border","group-data-[collapsible=icon]:hidden",e),...t})));Jge.displayName="SidebarMenuSub";const e1e=v.forwardRef((({...e},t)=>B.jsx("li",{ref:t,...e})));e1e.displayName="SidebarMenuSubItem";const t1e=v.forwardRef((({asChild:e=!1,size:t="md",isActive:n,className:r,...a},o)=>{const i=e?yp:"a";return B.jsx(i,{ref:o,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:xe("flex h-s min-w-0 -translate-x-px items-center gap-xxs overflow-hidden rounded-sm px-xxs text-sm text-slate-700 outline-none ring-sidebar-ring hover:bg-white hover:text-blue_100 focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-blue_100","data-[active=true]:bg-white data-[active=true]:text-blue_100","sm"===t&&"text-xs","md"===t&&"text-sm","group-data-[collapsible=icon]:hidden",r),...a})}));t1e.displayName="SidebarMenuSubButton";const aU="Switch",[n1e,WZe]=Zo(aU),[r1e,a1e]=n1e(aU),o1e=v.forwardRef(((e,t)=>{const{__scopeSwitch:n,name:r,checked:a,defaultChecked:o,required:i,disabled:s,value:c="on",onCheckedChange:l,...u}=e,[f,d]=v.useState(null),p=un(t,(e=>d(e))),h=v.useRef(!1),m=!f||!!f.closest("form"),[g=!1,y]=ip({prop:a,defaultProp:o,onChange:l});return v.createElement(r1e,{scope:n,checked:g,disabled:s},v.createElement(wt.button,Ie({type:"button",role:"switch","aria-checked":g,"aria-required":i,"data-state":oU(g),"data-disabled":s?"":void 0,disabled:s,value:c},u,{ref:p,onClick:st(e.onClick,(e=>{y((e=>!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&v.createElement(c1e,{control:f,bubbles:!h.current,name:r,value:c,checked:g,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))})),i1e="SwitchThumb",s1e=v.forwardRef(((e,t)=>{const{__scopeSwitch:n,...r}=e,a=a1e(i1e,n);return v.createElement(wt.span,Ie({"data-state":oU(a.checked),"data-disabled":a.disabled?"":void 0},r,{ref:t}))})),c1e=e=>{const{control:t,checked:n,bubbles:r=!0,...a}=e,o=v.useRef(null),i=sk(n),s=ck(t);return v.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&a){const t=new Event("click",{bubbles:r});a.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),v.createElement("input",Ie({type:"checkbox","aria-hidden":!0,defaultChecked:n},a,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function oU(e){return e?"checked":"unchecked"}const iU=o1e,l1e=s1e,f1e=v.forwardRef((({className:e,...t},n)=>B.jsx(iU,{className:xe("group peer inline-flex h-xs w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=checked]:bg-blue_100 data-[state=unchecked]:bg-slate-200","disabled:cursor-not-allowed disabled:!bg-slate-100 md:hover:data-[state=checked]:bg-blue_120 md:hover:data-[state=unchecked]:!bg-slate-300",e),...t,ref:n,children:B.jsx(l1e,{className:xe("pointer-events-none block size-xxs rounded-full bg-background shadow-lg ring-0 transition-[transform,width] data-[state=checked]:translate-x-[20px] data-[state=unchecked]:translate-x-0",{"md:group-hover:w-[26px] md:group-hover:data-[state=checked]:translate-x-[14px]":!t.disabled,"bg-slate-300":t.disabled})})})));f1e.displayName=iU.displayName;const sU="Tabs",[u1e,HZe]=Zo(sU,[M1]),cU=M1(),[GZe,zA]=u1e(sU),d1e="TabsList",p1e=v.forwardRef(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,o=zA(d1e,n),i=cU(n);return v.createElement(hA,Ie({asChild:!0},i,{orientation:o.orientation,dir:o.dir,loop:r}),v.createElement(wt.div,Ie({role:"tablist","aria-orientation":o.orientation},a,{ref:t})))})),h1e="TabsTrigger",m1e=v.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...o}=e,i=zA(h1e,n),s=cU(n),c=lU(i.baseId,r),l=fU(i.baseId,r),u=r===i.value;return v.createElement(mA,Ie({asChild:!0},s,{focusable:!a,active:u}),v.createElement(wt.button,Ie({type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c},o,{ref:t,onMouseDown:st(e.onMouseDown,(e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(r)})),onKeyDown:st(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&i.onValueChange(r)})),onFocus:st(e.onFocus,(()=>{const e="manual"!==i.activationMode;!u&&!a&&e&&i.onValueChange(r)}))})))})),g1e="TabsContent",y1e=v.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:o,...i}=e,s=zA(g1e,n),c=lU(s.baseId,r),l=fU(s.baseId,r),u=r===s.value,f=v.useRef(u);return v.useEffect((()=>{const e=requestAnimationFrame((()=>f.current=!1));return()=>cancelAnimationFrame(e)}),[]),v.createElement(zs,{present:a||u},(({present:n})=>v.createElement(wt.div,Ie({"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:l,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),n&&o)))}));function lU(e,t){return`${e}-trigger-${t}`}function fU(e,t){return`${e}-content-${t}`}const uU=p1e,dU=m1e,pU=y1e,_1e=v.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>B.jsx(uU,{ref:r,"data-testid":"tabsList",className:t?xe("inline-flex items-center justify-center gap-xxs border-b border-slate-200 p-none text-muted-foreground",e):e,...n})));_1e.displayName=uU.displayName;const v1e=v.forwardRef((({className:e,useDefaults:t=!0,children:n,...r},a)=>B.jsx(dU,{ref:a,className:t?xe("inline-flex items-center justify-center whitespace-nowrap p-xxs pb-[calc(theme(spacing.xxs)-2px)] pt-xxs text-basering-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring border-b-2 border-transparent font-semibold focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-slate-900","group relative before:absolute before:inset-xxxs before:rounded-sm before:bg-transparent before:transition-colors hover:before:bg-slate-50",e):e,...r,children:B.jsx("span",{className:"relative text-slate-500 group-hover:text-slate-900 group-data-[state=active]:text-slate-900",children:n})})));v1e.displayName=dU.displayName;const b1e=v.forwardRef((({className:e,...t},n)=>B.jsx(pU,{ref:n,className:xe("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})));b1e.displayName=pU.displayName;const w1e=v.forwardRef((({className:e,...t},n)=>B.jsx("table",{ref:n,className:xe("w-full caption-bottom text-sm",e),...t})));w1e.displayName="Table";const k1e=v.forwardRef((({className:e,...t},n)=>B.jsx("thead",{ref:n,className:xe("[&_tr]:border-b",e),...t})));k1e.displayName="TableHeader";const x1e=v.forwardRef((({className:e,...t},n)=>B.jsx("tbody",{ref:n,className:xe("[&_tr:last-child]:border-0",e),...t})));x1e.displayName="TableBody";const S1e=v.forwardRef((({className:e,...t},n)=>B.jsx("tfoot",{ref:n,className:xe("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})));S1e.displayName="TableFooter";const E1e=v.forwardRef((({className:e,...t},n)=>B.jsx("tr",{ref:n,className:xe("border-b bg-background transition-colors hover:bg-gray-100 data-[state=selected]:bg-gray-200 dark:hover:bg-muted dark:data-[state=selected]:bg-muted",e),...t})));E1e.displayName="TableRow";const C1e=v.forwardRef((({className:e,...t},n)=>B.jsx("th",{ref:n,className:xe("h-m bg-inherit px-xs py-xxs text-left align-middle font-normal text-muted-foreground","whitespace-nowrap border-slate-200 text-sm text-slate-500 [&:not(:last-child)]:border-r",e),...t})));C1e.displayName="TableHead";const R1e=v.forwardRef((({className:e,...t},n)=>B.jsx("td",{ref:n,className:xe("bg-inherit p-xs py-xxs align-middle","overflow-hidden truncate text-ellipsis border-slate-200 text-base text-slate-700 [&:not(:last-child)]:border-r",e),...t})));R1e.displayName="TableCell";const T1e=v.forwardRef((({className:e,...t},n)=>B.jsx("caption",{ref:n,className:xe("mt-s text-sm text-muted-foreground",e),...t})));T1e.displayName="TableCaption";const hU=(e,t)=>xe("flex w-full rounded-m px-4 py-3.5 text-base text-slate-900 outline outline-1 outline-input ring-offset-background transition-all duration-200 ease-in-out placeholder:text-base placeholder:text-muted-foreground placeholder:text-slate-400 hover:outline-2 hover:outline-slate-400 focus-visible:bg-slate-50 focus-visible:text-slate-900 focus-visible:outline-2 focus-visible:outline-blue_120 disabled:cursor-not-allowed disabled:select-none disabled:text-slate-300 disabled:outline-slate-200",{"bg-red_30_17 outline-red-dark":!!e},t),mU=v.forwardRef((({className:e,...t},n)=>{const{error:r}=vp();return B.jsx("textarea",{className:hU(!!r,e),ref:n,...t})}));mU.displayName="Textarea";const AD=Xme,ID=Jme,A1e=jl("z-50 overflow-hidden shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{size:{default:"rounded-md border text-sm px-3 py-1.5",small:"rounded-md border px-[11px] py-[3px] text-base leading-[16px]"},theme:{default:"bg-popover text-popover-foreground",dark:"bg-slate-900_90 text-slate-50"},defaultVariants:{size:"small",theme:"dark"}}}),WC=v.forwardRef((({className:e,sideOffset:t=1,size:n,theme:r,...a},o)=>B.jsx(qF,{ref:o,sideOffset:t,className:xe(A1e({size:n,theme:r,className:e})),...a})));WC.displayName=qF.displayName,ar.enhanceEndpoints({endpoints:{getApiV1Settings:{providesTags:["Settings"],async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){t(yy.actions.setPending(!0));try{const e=await Dt(n);e&&t(yy.actions.setSettings(e.data))}catch(e){au.error("Platform settings error:",e)}finally{t(yy.actions.setPending(!1))}}},getApiV1SettingsUser:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const e=await Dt(n);null!=e&&e.data&&t(Vb.actions.setSettings(e.data))}catch(e){au.error("Get profile settings error:",e)}}},putApiV1Settings:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n,getState:r}){const a=ar.util.selectCachedArgsForQuery(r(),"getApiV1Settings")[0],o=t(ar.util.updateQueryData("getApiV1Settings",a||{keys:[]},(t=>{Object.assign(t,Xd.merge(t,e.platformSettings))})));try{await n,Lt.success("Updated")}catch{o.undo(),Lt.error("Failed to update settings")}}},putApiV1SettingsUser:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n,getState:r}){var a;const o=ar.util.selectCachedArgsForQuery(r(),"getApiV1SettingsUser")[0],i=t(ar.util.updateQueryData("getApiV1SettingsUser",o||{keys:[]},(t=>{Object.assign(t,Xd.merge(t,e.userSettings))}))),s=null==(a=r().openapi.queries[`getApiV1SettingsUser(${JSON.stringify(o)})`])?void 0:a.data;t(Vb.actions.setSettings(s));try{await n,Lt.success("Updated")}catch{i.undo()}}},getApiV1Rules:{providesTags:[Ib.SERVER_RULES],async onQueryStarted(e,{queryFulfilled:t}){await Dt(t)}},postApiV1Rules:{invalidatesTags:[Ib.SERVER_RULES],async onQueryStarted(e,{queryFulfilled:t}){try{await t,Lt.success("Rule created")}catch(e){Lt.error(`Failed to create rule ${Tl(e)}`)}}},putApiV1Rules:{async onQueryStarted({rule:e},{dispatch:t,queryFulfilled:n,getState:r}){const a=ar.util.selectCachedArgsForQuery(r(),"getApiV1Rules")[0],o=t(ar.util.updateQueryData("getApiV1Rules",a,(t=>{const n=t.findIndex((t=>t.id===e.id));-1!==n&&(t[n]={...t[n],...e})})));try{await n,Lt.success("Rule updated")}catch(e){o.undo(),Lt.error(`Failed to update rule ${Tl(e)}`)}}},postApiV1RulesReorder:{async onQueryStarted({orderedRules:e},{dispatch:t,queryFulfilled:n,getState:r}){const a=ar.util.selectCachedArgsForQuery(r(),"getApiV1Rules")[0],o=t(ar.util.updateQueryData("getApiV1Rules",a,(()=>e)));try{await n}catch(e){o.undo(),Lt.error(`Failed to reorder rules ${Tl(e)}`)}}},deleteApiV1RulesById:{async onQueryStarted({id:e},{dispatch:t,queryFulfilled:n,getState:r}){const a=ar.util.selectCachedArgsForQuery(r(),"getApiV1Rules")[0],o=t(ar.util.updateQueryData("getApiV1Rules",a,(t=>{const n=t.findIndex((t=>t.id===e));-1!==n&&t.splice(n,1)})));try{await n,Lt.success("Rule deleted")}catch(e){o.undo(),Lt.error(`Failed to delete rule ${Tl(e)}`)}}}}});var $D,ry={exports:{}},I1e=ry.exports;
|
|
119
119
|
/**
|
|
120
120
|
* @license
|
|
121
121
|
* Lodash <https://lodash.com/>
|