📄 main.714a03ca.js
/home/palash/git/site/build/static/js/main.714a03ca.js
Language: js • Lines: 3
/*! For license information please see main.714a03ca.js.LICENSE.txt */
(()=>{var e={266(e,t,n){"use strict";n.d(t,{sG:()=>g,r8:()=>p,P$:()=>v,UK:()=>m});var r=n(5544),i=n(9379),s=n(5043);const a={name:"Palash Kanti Kundu",shortName:"Palash",labels:{contents:"Blogs",projects:"Projects",swe:"Software Engineering",music:"Music",contentNotExists:"Content does not exist",publishedOn:"Published on: ",lastUpdated:"Last updated on: "},pages:{contents:{header:"Blogs",techHeader:"Tech Blogs",musicHeader:"Music Blogs",intro:"Software Engineering is what I do for a living, music is what I do to live. Here you can find both.",techIntro:"Code, Insights, and the Art of Problem-Solving.",musicIntro:"Exploring the World of Music, One Post at a Time.",itemsPerPage:50,techBlogClass:"tech-blog-content markdown-color",musicBlogClass:"blog-content markdown-color",genericBlogClass:"blog-content markdown-color",sweHeadColor:"",musicHeadColor:"",h1Color:"",pColor:"",linkClass:""},home:{tag:"Crafting code, creating harmony.",greeting:"Hi, I'm ",moto:"My moto: ",motos:["Code","Create","Inspire"],desc:'Senior Technologist with 14+ years of experience building scalable systems, cloud architectures, and distributed applications. Currently at Infosys, specializing in React.js, Python, and Rust with deep expertise in system design and machine learning.\n\nAuthor of "Build Your Own Neural Network" \u2014 a published book guiding readers through building neural networks from scratch. Passionate about open source, continuous learning, and sharing knowledge through technical blogs.\n\n',profilePicUrl:"/assets/profile.jpg",mainStyle:"main-app-lora custom-theme",secondaryStyle:"content-body-opensans",class:"",techBlogHeader:"Recent Tech Blogs | ",techBlogTag:"Things I learned or implemented recently",techBlogShowAll:"Show All",musicBlogHeader:"Recent Music Blogs | ",musicBlogShowAll:"Show All",musicBlogTag:"Things I explored recently",h1Color:"",pColor:""},projects:{intro:"If any idea catches my attention, I try to implement the same.",techStack:"Technology: ",h1Color:"",pColor:"",titleColor:"",bodyColor:""},about:{mdUrl:"/assets/ME.md",resume:"/assets/Palash_Kanti_Kundu_14YOE_BackEnd_AI.pdf",resumeName:"Palash_Kanti_Kundu_14YOE_BackEnd_AI.pdf",blogClass:"blog-content markdown-color"}},techStack:{iconColor:{rust:"#B7410E",java:"blue",javascript:"red",react:"teal"},title:{rust:"Rust",java:"Java",javascript:"JavaScript",react:"React.js"}},navLinks:[{label:"Home",link:"/"},{label:"Tech Blogs",link:"/contents/tech"},{label:"Music Blogs",link:"/contents/music"},{label:"Projects",link:"/projects"},{label:"About",link:"/about"}],projects:[{id:"iron-learn",name:"Iron Learn",desc:"A pure Rust Machine Learning Library",type:"rust",githubUrl:"https://github.com/Palash90/iron_learn",mdUrl:"https://raw.githubusercontent.com/Palash90/iron_learn/refs/heads/main/README.md"},{id:"hdl-emulator",name:"HDL Emulator",desc:"An online Web Based HDL Emulator for Teaching Purpose",type:"javascript",playUrl:"https://emulator.palashkantikundu.in/",githubUrl:"https://github.com/Palash90/emulator",mdUrl:"https://raw.githubusercontent.com/Palash90/emulator/refs/heads/main/README.md"},{id:"dist-fs",name:"Distributed File System",desc:"A simple distributed file system implementation",type:"java",githubUrl:"https://github.com/Palash90/dist-fs",mdUrl:"https://raw.githubusercontent.com/Palash90/dist-fs/refs/heads/main/README.md"},{id:"tic-tac-slide",name:"Tic Tac Slide",desc:"An innovation over simple tic tac toe for added fun",type:"react",playUrl:"/component/tic-tac-slide",githubUrl:""},{id:"study",name:"Quiz App",desc:"A simple quiz game for kids.",type:"react",playUrl:"/component/study",githubUrl:""}],about:{jobs:[{name:"Infosys",start:"November 2024",end:"Present",location:"Bengaluru, India",role:"Senior Technologist"},{name:"GE Renewable Energy",start:"December 2018",end:"November 2022",location:"Hyderabad, India",role:"Senior Software Engineer"},{name:"Oracle India Pvt. Ltd.",start:"January 2016",end:"December 2018",location:"Hyderabad, India",role:"Senior Applications Engineer"},{name:"HCL Technologies",start:"November 2014",end:"November 2015",location:"Kolkata, India",role:"Senior Software Engineer"},{name:"Cognizant Technology Solutions",start:"November 2011",end:"October 2014",location:"Kolkata, India",role:"Programmer Analyst"}],education:[{institution:"College of Engineering and Management, Kolaghat",start:"July 2007",end:"Jun 2011",degree:"Bachelor of Technology"}]},test:"Hello Main committed by github action flow",try:"try once again"};var o=n(579);let l=(0,i.A)({},a),c=null,u=null;const h=new Set,d=(0,s.createContext)({config:l,findProp:()=>{},isContentsLoaded:!1});function f(e,t){if(!e)return;const n=t.split(".");let r=e;for(const i of n){if(null==r||"object"!==typeof r)return;r=r[i]}return void 0!==r?r:void 0}function p(e){return f(l,e)}function m(){return(0,s.useContext)(d)}function g(e){let t=e.children;const n=(0,s.useState)(l),p=(0,r.A)(n,2),m=p[0],g=p[1],v=(0,s.useState)(!1),y=(0,r.A)(v,2),w=y[0],b=y[1];(0,s.useEffect)(()=>{const e=(t=()=>{g((0,i.A)({},l))},h.add(t),()=>h.delete(t));var t;let n=!1;return async function(){return c||(c=(async()=>{const e="https://palash90.github.io/site-assets/data.json",t="https://raw.githubusercontent.com/palash90/site-assets/main/data.json";async function n(e){const t=await fetch(e);if(!t.ok){let e="HTTP ".concat(t.status);try{await t.clone().text()}catch(n){e="CORS blocked (".concat(t.status,")")}throw new Error(e)}return t.json()}try{let o;try{o=await n(e)}catch(r){console.warn("Primary content URL failed, trying fallback:",r.message);try{o=await n(t)}catch(s){throw new Error("Primary: ".concat(r.message," | Fallback: ").concat(s.message))}}return o.contents&&(l=(0,i.A)((0,i.A)((0,i.A)({},a),o),{},{contents:o.contents}),h.forEach(e=>e())),l.contents}catch(o){return u=o.message,console.warn("Failed to load contents from GitHub Pages:",o.message),null}})(),c)}().catch(()=>{}).finally(()=>{n||b(!0)}),()=>{n=!0,e()}},[]);const E=(0,s.useMemo)(()=>({config:m,findProp:e=>f(m,e),isContentsLoaded:w}),[m,w]);return(0,o.jsx)(d.Provider,{value:E,children:t})}function v(){return u}},5016(e,t,n){"use strict";n.d(t,{A:()=>f,O:()=>d});var r=n(5544),i=n(5043),s=n(9372),a=n(3604),o=n(791),l=n(677),c=n(1800),u=n(579);const h=(0,i.createContext)(null);function d(e){let t=e.children;const n=(0,i.useState)(null),d=(0,r.A)(n,2),f=d[0],p=d[1],m=(0,i.useState)(null),g=(0,r.A)(m,2),v=g[0],y=g[1],w=(0,i.useState)(!0),b=(0,r.A)(w,2),E=b[0],_=b[1],A=(0,i.useState)(!1),S=(0,r.A)(A,2),C=S[0],T=S[1];(0,i.useEffect)(()=>{const e=(0,s.hg)(o.j,async e=>{if(p(e),e){await async function(e){if(e)try{const n=(0,a.H9)(o.db,(0,c.n)("profiles"),e.uid),r=await(0,a.x7)(n);var t;r.exists()?r.data().emailVerified!==e.emailVerified&&await(0,a.mZ)(n,{emailVerified:e.emailVerified}):await(0,a.BN)(n,{displayName:e.displayName||(null===(t=e.email)||void 0===t?void 0:t.split("@")[0])||"Anonymous",photoURL:e.photoURL||(0,l.A)(e.email),email:e.email,emailVerified:e.emailVerified,username:"",website:"",birthday:"",createdAt:(0,a.O5)()})}catch(n){console.warn("Profile sync skipped:",n.message)}}(e);const t=(await(0,a.x7)((0,a.H9)(o.db,"profiles",e.uid))).data()||null;y(t),T(!(null!==t&&void 0!==t&&t.username))}else y(null),T(!1);_(!1)});return e},[]);return(0,u.jsx)(h.Provider,{value:{user:f,profile:v,loading:E,needsUsername:C,setNeedsUsername:T,refreshProfile:async()=>{if(!f)return;const e=await(0,a.x7)((0,a.H9)(o.db,(0,c.n)("profiles"),f.uid));y(e.data()||null)},signInWithGoogle:()=>(0,s.df)(o.j,o.h),signUpWithEmail:async(e,t)=>{const n=await(0,s.eJ)(o.j,e,t);return await(0,s.gA)(n.user),n},signInWithEmail:(e,t)=>(0,s.x9)(o.j,e,t),logout:()=>(0,s.CI)(o.j)},children:t})}function f(){const e=(0,i.useContext)(h);if(!e)throw new Error("useAuth must be used within AuthProvider");return e}},791(e,t,n){"use strict";n.d(t,{j:()=>o,db:()=>l,h:()=>c});var r=n(9232);(0,r.KO)("firebase","12.15.0","app");var i=n(9372),s=n(3604);const a=(0,r.Wp)({apiKey:"AIzaSyDzZxO2e-zW_QfU9RZEFy-vZ4PrjennqEU",authDomain:"palashkantikundu.in",projectId:"site-e4669",storageBucket:"site-e4669.firebasestorage.app",messagingSenderId:"579970439825",appId:"G-7BPQKTD1TT"}),o=(0,i.xI)(a),l=(0,s.aU)(a),c=new i.HF},1800(e,t,n){"use strict";n.d(t,{n:()=>r});const r=e=>""+e},677(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;const n=function(e){function t(e,t){let n="";for(let r=0;r<4;r++)n+="0123456789abcdef".charAt(e>>8*r+4&15)+"0123456789abcdef".charAt(e>>8*r&15);return n}function n(e,t){return e<<t|e>>>32-t}function r(e,t,r,i,s,a,o){return n(e+function(e,t,n){return e&t|~e&n}(t,r,i)+s+o|0,a)+t|0}function i(e,t,r,i,s,a,o){return n(e+function(e,t,n){return e&n|t&~n}(t,r,i)+s+o|0,a)+t|0}function s(e,t,r,i,s,a,o){return n(e+function(e,t,n){return e^t^n}(t,r,i)+s+o|0,a)+t|0}function a(e,t,r,i,s,a,o){return n(e+function(e,t,n){return t^(e|~n)}(t,r,i)+s+o|0,a)+t|0}let o=unescape(encodeURIComponent(e)).split("").map(e=>e.charCodeAt(0));for(o.push(128);o.length%64!==56;)o.push(0);let l=8*e.length>>>0;o.push(255&l,l>>8&255,l>>16&255,l>>24&255),o.push(0,0,0,0);let c=1732584193,u=4023233417,h=2562383102,d=271733878;for(let f=0;f<o.length;f+=64){let e=[];for(let r=0;r<16;r++)e[r]=o[f+4*r]|o[f+4*r+1]<<8|o[f+4*r+2]<<16|o[f+4*r+3]<<24;let t=c,n=u,l=h,p=d;t=r(t,n,l,p,e[0],7,3614090360),p=r(p,t,n,l,e[1],12,3905402710),l=r(l,p,t,n,e[2],17,606105819),n=r(n,l,p,t,e[3],22,3250441966),t=r(t,n,l,p,e[4],7,4118548399),p=r(p,t,n,l,e[5],12,1200080426),l=r(l,p,t,n,e[6],17,2821735955),n=r(n,l,p,t,e[7],22,4249261313),t=r(t,n,l,p,e[8],7,1770035416),p=r(p,t,n,l,e[9],12,2336552879),l=r(l,p,t,n,e[10],17,4294925233),n=r(n,l,p,t,e[11],22,2304563134),t=r(t,n,l,p,e[12],7,1804603682),p=r(p,t,n,l,e[13],12,4254626195),l=r(l,p,t,n,e[14],17,2792965006),n=r(n,l,p,t,e[15],22,1236535329),t=i(t,n,l,p,e[1],5,4129170786),p=i(p,t,n,l,e[6],9,3225465664),l=i(l,p,t,n,e[11],14,643717713),n=i(n,l,p,t,e[0],20,3921069994),t=i(t,n,l,p,e[5],5,3593408605),p=i(p,t,n,l,e[10],9,38016083),l=i(l,p,t,n,e[15],14,3634488961),n=i(n,l,p,t,e[4],20,3889429448),t=i(t,n,l,p,e[9],5,568446438),p=i(p,t,n,l,e[14],9,3275163606),l=i(l,p,t,n,e[3],14,4107603335),n=i(n,l,p,t,e[8],20,1163531501),t=i(t,n,l,p,e[13],5,2850285829),p=i(p,t,n,l,e[2],9,4243563512),l=i(l,p,t,n,e[7],14,1735328473),n=i(n,l,p,t,e[12],20,2368359562),t=s(t,n,l,p,e[5],4,4294588738),p=s(p,t,n,l,e[8],11,2272392833),l=s(l,p,t,n,e[11],16,1839030562),n=s(n,l,p,t,e[14],23,4259657740),t=s(t,n,l,p,e[1],4,2763975236),p=s(p,t,n,l,e[4],11,1272893353),l=s(l,p,t,n,e[7],16,4139469664),n=s(n,l,p,t,e[10],23,3200236656),t=s(t,n,l,p,e[13],4,681279174),p=s(p,t,n,l,e[0],11,3936430074),l=s(l,p,t,n,e[3],16,3572445317),n=s(n,l,p,t,e[6],23,76029189),t=s(t,n,l,p,e[9],4,3654602809),p=s(p,t,n,l,e[12],11,3873151461),l=s(l,p,t,n,e[15],16,530742520),n=s(n,l,p,t,e[2],23,3299628645),t=a(t,n,l,p,e[0],6,4096336452),p=a(p,t,n,l,e[7],10,1126891415),l=a(l,p,t,n,e[14],15,2878612391),n=a(n,l,p,t,e[5],21,4237533241),t=a(t,n,l,p,e[12],6,1700485571),p=a(p,t,n,l,e[3],10,2399980690),l=a(l,p,t,n,e[10],15,4293915773),n=a(n,l,p,t,e[1],21,2240044497),t=a(t,n,l,p,e[8],6,1873313359),p=a(p,t,n,l,e[15],10,4264355552),l=a(l,p,t,n,e[6],15,2734768916),n=a(n,l,p,t,e[13],21,1309151649),t=a(t,n,l,p,e[4],6,4149444226),p=a(p,t,n,l,e[11],10,3174756917),l=a(l,p,t,n,e[2],15,718787259),n=a(n,l,p,t,e[9],21,3951481745),c=c+t>>>0,u=u+n>>>0,h=h+l>>>0,d=d+p>>>0}return t(c)+t(u)+t(h)+t(d)}((e||"").trim().toLowerCase());return"https://www.gravatar.com/avatar/".concat(n,"?s=").concat(t,"&d=mp")}n.d(t,{A:()=>r})},1776(e,t,n){"use strict";n.d(t,{cY:()=>g,FA:()=>I,g:()=>N,u:()=>c,Uj:()=>l,Fy:()=>v,tD:()=>V,bD:()=>P,hp:()=>U,T9:()=>p,Tj:()=>d,yU:()=>f,XA:()=>m,mS:()=>u,Ku:()=>z,ZQ:()=>y,sr:()=>_,zJ:()=>B,c1:()=>E,Im:()=>R,lT:()=>S,zW:()=>k,jZ:()=>w,lV:()=>A,nr:()=>C,Ov:()=>T,gE:()=>H,Am:()=>L,I9:()=>M,eX:()=>x});var r=n(5544),i=n(9379);const s=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},a={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const t=e[i],s=i+1<e.length,a=s?e[i+1]:0,o=i+2<e.length,l=o?e[i+2]:0,c=t>>2,u=(3&t)<<4|a>>4;let h=(15&a)<<2|l>>6,d=63&l;o||(d=64,s||(h=64)),r.push(n[c],n[u],n[h],n[d])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(s(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const s=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){const s=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(s>>10)),t[r++]=String.fromCharCode(56320+(1023&s))}else{const s=e[n++],a=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const t=n[e.charAt(i++)],s=i<e.length?n[e.charAt(i)]:0;++i;const a=i<e.length?n[e.charAt(i)]:64;++i;const l=i<e.length?n[e.charAt(i)]:64;if(++i,null==t||null==s||null==a||null==l)throw new o;const c=t<<2|s>>4;if(r.push(c),64!==a){const e=s<<4&240|a>>2;if(r.push(e),64!==l){const e=a<<6&192|l;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class o extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const l=function(e){return function(e){const t=s(e);return a.encodeByteArray(t,!0)}(e).replace(/\./g,"")},c=function(e){try{return a.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function u(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}const h=()=>{try{return u().__FIREBASE_DEFAULTS__||(()=>{if("undefined"===typeof process)return;const e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FIREBASE_API_KEY:"AIzaSyDzZxO2e-zW_QfU9RZEFy-vZ4PrjennqEU",REACT_APP_FIREBASE_AUTH_DOMAIN:"palashkantikundu.in",REACT_APP_FIREBASE_PROJECT_ID:"site-e4669",REACT_APP_FIREBASE_STORAGE_BUCKET:"site-e4669.firebasestorage.app",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"579970439825",REACT_APP_FIREBASE_APP_ID:"G-7BPQKTD1TT",REACT_APP_ENV:""}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}const t=e&&c(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(e))}},d=e=>{var t;return null===(t=h())||void 0===t||null===(t=t.emulatorHosts)||void 0===t?void 0:t[e]},f=e=>{const t=d(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error("Invalid host ".concat(t," with no separate hostname and port!"));const r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]},p=()=>{var e;return null===(e=h())||void 0===e?void 0:e.config},m=e=>{var t;return null===(t=h())||void 0===t?void 0:t["_".concat(e)]};class g{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"===typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,n))}}}function v(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n=t||"demo-project",r=e.iat||0,s=e.sub||e.user_id;if(!s)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const a=(0,i.A)({iss:"https://securetoken.google.com/".concat(n),aud:n,iat:r,exp:r+3600,auth_time:r,sub:s,user_id:s,firebase:{sign_in_provider:"custom",identities:{}}},e);return[l(JSON.stringify({alg:"none",type:"JWT"})),l(JSON.stringify(a)),""].join(".")}function y(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function w(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(y())}function b(){var e;const t=null===(e=h())||void 0===e?void 0:e.forceEnvironment;if("node"===t)return!0;if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(n.g.process)}catch(r){return!1}}function E(){return"undefined"!==typeof navigator&&"Cloudflare-Workers"===navigator.userAgent}function _(){const e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}function A(){return"object"===typeof navigator&&"ReactNative"===navigator.product}function S(){const e=y();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function C(){return!b()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function T(){return!b()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}function k(){try{return"object"===typeof indexedDB}catch(e){return!1}}function x(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(n){t(n)}})}class N extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,N.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,I.prototype.create)}}class I{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e){const t=(arguments.length<=1?void 0:arguments[1])||{},n="".concat(this.service,"/").concat(e),r=this.errors[e],i=r?function(e,t){return e.replace(O,(e,n)=>{const r=t[n];return null!=r?String(r):"<".concat(n,"?>")})}(r,t):"Error",s="".concat(this.serviceName,": ").concat(i," (").concat(n,").");return new N(n,s,t)}}const O=/\{\$([^}]+)}/g;function R(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function P(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],s=t[i];if(D(n)&&D(s)){if(!P(n,s))return!1}else if(n!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function D(e){return null!==e&&"object"===typeof e}function L(e){const t=[];for(const i of Object.entries(e)){var n=(0,r.A)(i,2);const e=n[0],s=n[1];Array.isArray(s)?s.forEach(n=>{t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}):t.push(encodeURIComponent(e)+"="+encodeURIComponent(s))}return t.length?"&"+t.join("&"):""}function M(e){const t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){const n=e.split("="),i=(0,r.A)(n,2),s=i[0],a=i[1];t[decodeURIComponent(s)]=decodeURIComponent(a)}}),t}function U(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function V(e,t){const n=new F(e,t);return n.subscribe.bind(n)}class F{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e,t){if("object"!==typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"===typeof e[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=j),void 0===r.error&&(r.error=j),void 0===r.complete&&(r.complete=j);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(e){}}),this.observers.push(r),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(n){"undefined"!==typeof console&&console.error&&console.error(n)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function j(){}function z(e){return e&&e._delegate?e._delegate:e}function B(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch(t){return!1}}async function H(e){return(await fetch(e,{credentials:"include"})).ok}},6618(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5043);const i=function(e){const t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e},[e]),t};function s(e){const t=i(e);return(0,r.useCallback)(function(){return t.current&&t.current(...arguments)},[t])}},8293(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5043);const i=e=>e&&"function"!==typeof e?t=>{e.current=t}:e;const s=function(e,t){return(0,r.useMemo)(()=>function(e,t){const n=i(e),r=i(t);return e=>{n&&n(e),r&&r(e)}}(e,t),[e,t])}},7071(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(5544),i=n(5043),s=(n(8457),n(6218),n(8894));n(9753);n(2665),n(4696);n(2677);new WeakMap;var a=n(4140),o=n(579);const l=["onKeyDown"];const c=i.forwardRef((e,t)=>{let n=e.onKeyDown,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,l);const c=(0,a.Am)(Object.assign({tagName:"a"},i)),u=(0,r.A)(c,1)[0],h=(0,s.A)(e=>{u.onKeyDown(e),null==n||n(e)});return(d=i.href)&&"#"!==d.trim()&&"button"!==i.role?(0,o.jsx)("a",Object.assign({ref:t},i,{onKeyDown:n})):(0,o.jsx)("a",Object.assign({ref:t},i,u,{onKeyDown:h}));var d});c.displayName="Anchor";const u=c},4140(e,t,n){"use strict";n.d(t,{Am:()=>o,Ay:()=>c});var r=n(5544),i=n(5043),s=n(579);const a=["as","disabled"];function o(e){let t=e.tagName,n=e.disabled,r=e.href,i=e.target,s=e.rel,a=e.role,o=e.onClick,l=e.tabIndex,c=void 0===l?0:l,u=e.type;t||(t=null!=r||null!=i||null!=s?"a":"button");const h={tagName:t};if("button"===t)return[{type:u||"button",disabled:n},h];const d=e=>{(n||"a"===t&&function(e){return!e||"#"===e.trim()}(r))&&e.preventDefault(),n?e.stopPropagation():null==o||o(e)};return"a"===t&&(r||(r="#"),n&&(r=void 0)),[{role:null!=a?a:"button",disabled:void 0,tabIndex:n?void 0:c,href:r,target:"a"===t?i:void 0,"aria-disabled":n||void 0,rel:"a"===t?s:void 0,onClick:d,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),d(e))}},h]}const l=i.forwardRef((e,t)=>{let n=e.as,i=e.disabled,l=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,a);const c=o(Object.assign({tagName:n,disabled:i},l)),u=(0,r.A)(c,2),h=u[0],d=u[1].tagName;return(0,s.jsx)(d,Object.assign({},l,h,{ref:t}))});l.displayName="Button";const c=l},5425(e,t,n){"use strict";n.d(t,{sE:()=>r,y:()=>i});function r(e){return"".concat("data-rr-ui-").concat(e)}function i(e){return"".concat("rrUi").concat(e)}},3655(e,t,n){"use strict";n.d(t,{A:()=>R});var r=n(5544),i=n(182);function s(e){void 0===e&&(e=(0,i.A)());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(n){return e.body}}var a=n(2631),o=n(8279),l=n(753),c=n(5043),u=n(7950),h=n(2665);function d(e){const t=function(e){const t=(0,c.useRef)(e);return t.current=e,t}(e);(0,c.useEffect)(()=>()=>t.current(),[])}var f=n(4696),p=n(8894),m=n(7832),g=n(1701);const v=(e,t)=>o.A?null==e?(t||(0,i.A)()).body:("function"===typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;var y=n(3539),w=n(2677),b=n(9791);const E=function(e){let t=e.children,n=e.in,r=e.onExited,i=e.mountOnEnter,s=e.unmountOnExit;const a=(0,c.useRef)(null),o=(0,c.useRef)(n),l=(0,p.A)(r);(0,c.useEffect)(()=>{n?o.current=!0:l(a.current)},[n,l]);const u=(0,y.A)(a,(0,b.am)(t)),h=(0,c.cloneElement)(t,{ref:u});return n?h:s||!o.current&&i?null:h},_=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];var A=n(579);const S=["component"];const C=c.forwardRef((e,t)=>{let n=e.component;const r=function(e){let t=e.onEnter,n=e.onEntering,r=e.onEntered,i=e.onExit,s=e.onExiting,a=e.onExited,o=e.addEndListener,l=e.children,u=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,_);const h=(0,c.useRef)(null),d=(0,y.A)(h,(0,b.am)(l)),f=e=>t=>{e&&h.current&&e(h.current,t)},p=(0,c.useCallback)(f(t),[t]),m=(0,c.useCallback)(f(n),[n]),g=(0,c.useCallback)(f(r),[r]),v=(0,c.useCallback)(f(i),[i]),w=(0,c.useCallback)(f(s),[s]),E=(0,c.useCallback)(f(a),[a]),A=(0,c.useCallback)(f(o),[o]);return Object.assign({},u,{nodeRef:h},t&&{onEnter:p},n&&{onEntering:m},r&&{onEntered:g},i&&{onExit:v},s&&{onExiting:w},a&&{onExited:E},o&&{addEndListener:A},{children:"function"===typeof l?(e,t)=>l(e,Object.assign({},t,{ref:d})):(0,c.cloneElement)(l,{ref:d})})}(function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,S));return(0,A.jsx)(n,Object.assign({ref:t},r))});function T(e){let t=e.children,n=e.in,i=e.onExited,s=e.onEntered,a=e.transition;const o=(0,c.useState)(!n),l=(0,r.A)(o,2),u=l[0],h=l[1];n&&u&&h(!1);const d=function(e){let t=e.in,n=e.onTransition;const r=(0,c.useRef)(null),i=(0,c.useRef)(!0),s=(0,p.A)(n);return(0,w.A)(()=>{if(!r.current)return;let e=!1;return s({in:t,element:r.current,initial:i.current,isStale:()=>e}),()=>{e=!0}},[t,s]),(0,w.A)(()=>(i.current=!1,()=>{i.current=!0}),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(a(e)).then(()=>{e.isStale()||(e.in?null==s||s(e.element,e.initial):(h(!0),null==i||i(e.element)))},t=>{throw e.in||h(!0),t})}}),f=(0,y.A)(d,(0,b.am)(t));return u&&!n?null:(0,c.cloneElement)(t,{ref:f})}function k(e,t,n){return e?(0,A.jsx)(C,Object.assign({},n,{component:e})):t?(0,A.jsx)(T,Object.assign({},n,{transition:t})):(0,A.jsx)(E,Object.assign({},n))}const x=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let N;function I(e){const t=(0,g.A)(),n=e||function(e){return N||(N=new m.A({ownerDocument:null==e?void 0:e.document})),N}(t),r=(0,c.useRef)({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:(0,c.useCallback)(e=>{r.current.dialog=e},[]),setBackdropRef:(0,c.useCallback)(e=>{r.current.backdrop=e},[])})}const O=(0,c.forwardRef)((e,t)=>{let n=e.show,i=void 0!==n&&n,m=e.role,y=void 0===m?"dialog":m,w=e.className,E=e.style,_=e.children,S=e.backdrop,C=void 0===S||S,T=e.keyboard,N=void 0===T||T,O=e.onBackdropClick,R=e.onEscapeKeyDown,P=e.transition,D=e.runTransition,L=e.backdropTransition,M=e.runBackdropTransition,U=e.autoFocus,V=void 0===U||U,F=e.enforceFocus,j=void 0===F||F,z=e.restoreFocus,B=void 0===z||z,H=e.restoreFocusOptions,q=e.renderDialog,G=e.renderBackdrop,W=void 0===G?e=>(0,A.jsx)("div",Object.assign({},e)):G,K=e.manager,Q=e.container,Y=e.onShow,$=e.onHide,X=void 0===$?()=>{}:$,J=e.onExit,Z=e.onExited,ee=e.onExiting,te=e.onEnter,ne=e.onEntering,re=e.onEntered,ie=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,x);const se=(0,g.A)(),ae=function(e,t){const n=(0,g.A)(),i=(0,c.useState)(()=>v(e,null==n?void 0:n.document)),s=(0,r.A)(i,2),a=s[0],o=s[1];if(!a){const t=v(e);t&&o(t)}return(0,c.useEffect)(()=>{t&&a&&t(a)},[t,a]),(0,c.useEffect)(()=>{const t=v(e);t!==a&&o(t)},[e,a]),a}(Q),oe=I(K),le=(0,h.A)(),ce=(0,f.A)(i),ue=(0,c.useState)(!i),he=(0,r.A)(ue,2),de=he[0],fe=he[1],pe=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,()=>oe,[oe]),o.A&&!ce&&i&&(pe.current=s(null==se?void 0:se.document)),i&&de&&fe(!1);const me=(0,p.A)(()=>{if(oe.add(),Ee.current=(0,l.A)(document,"keydown",we),be.current=(0,l.A)(document,"focus",()=>setTimeout(ve),!0),Y&&Y(),V){var e,t;const n=s(null!=(e=null==(t=oe.dialog)?void 0:t.ownerDocument)?e:null==se?void 0:se.document);oe.dialog&&n&&!(0,a.A)(oe.dialog,n)&&(pe.current=n,oe.dialog.focus())}}),ge=(0,p.A)(()=>{var e;(oe.remove(),null==Ee.current||Ee.current(),null==be.current||be.current(),B)&&(null==(e=pe.current)||null==e.focus||e.focus(H),pe.current=null)});(0,c.useEffect)(()=>{i&&ae&&me()},[i,ae,me]),(0,c.useEffect)(()=>{de&&ge()},[de,ge]),d(()=>{ge()});const ve=(0,p.A)(()=>{if(!j||!le()||!oe.isTopModal())return;const e=s(null==se?void 0:se.document);oe.dialog&&e&&!(0,a.A)(oe.dialog,e)&&oe.dialog.focus()}),ye=(0,p.A)(e=>{e.target===e.currentTarget&&(null==O||O(e),!0===C&&X())}),we=(0,p.A)(e=>{N&&(0,b.v$)(e)&&oe.isTopModal()&&(null==R||R(e),e.defaultPrevented||X())}),be=(0,c.useRef)(),Ee=(0,c.useRef)();if(!ae)return null;const _e=Object.assign({role:y,ref:oe.setDialogRef,"aria-modal":"dialog"===y||void 0},ie,{style:E,className:w,tabIndex:-1});let Ae=q?q(_e):(0,A.jsx)("div",Object.assign({},_e,{children:c.cloneElement(_,{role:"document"})}));Ae=k(P,D,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!i,onExit:J,onExiting:ee,onExited:function(){fe(!0),null==Z||Z(...arguments)},onEnter:te,onEntering:ne,onEntered:re,children:Ae});let Se=null;return C&&(Se=W({ref:oe.setBackdropRef,onClick:ye}),Se=k(L,M,{in:!!i,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Se})),(0,A.jsx)(A.Fragment,{children:u.createPortal((0,A.jsxs)(A.Fragment,{children:[Se,Ae]}),ae)})});O.displayName="Modal";const R=Object.assign(O,{Manager:m.A})},7832(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(8747);const i=(0,n(5425).sE)("modal-open");const s=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ownerDocument,n=e.handleContainerOverflow,r=void 0===n||n,i=e.isRTL,s=void 0!==i&&i;this.handleContainerOverflow=r,this.isRTL=s,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",s=this.getElement();e.style={overflow:s.style.overflow,[n]:s.style[n]},e.scrollBarWidth&&(t[n]="".concat(parseInt((0,r.A)(s,n)||"0",10)+e.scrollBarWidth,"px")),s.setAttribute(i,""),(0,r.A)(s,t)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(i),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t?t:(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),t)}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}},1701(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5043),i=n(8279);const s=(0,r.createContext)(i.A?window:void 0);s.Provider;function a(){return(0,r.useContext)(s)}},9791(e,t,n){"use strict";n.d(t,{am:()=>s,v$:()=>i});var r=n(5043);function i(e){return"Escape"===e.code||27===e.keyCode}function s(e){if(!e||"function"===typeof e)return null;return function(){const e=r.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}().major>=19?e.props.ref:e.ref}},8457(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5043);function i(){return(0,r.useState)(null)}},6218(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5043);const i=function(e){const t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e},[e]),t}},8894(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5043),i=n(6218);function s(e){const t=(0,i.A)(e);return(0,r.useCallback)(function(){return t.current&&t.current(...arguments)},[t])}},9753(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5043),i=n(8894);function s(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const a=(0,i.A)(n);(0,r.useEffect)(()=>{const n="function"===typeof e?e():e;return n.addEventListener(t,a,s),()=>n.removeEventListener(t,a,s)},[e])}},2677(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5043);const i="undefined"!==typeof n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,s="undefined"!==typeof document||i?r.useLayoutEffect:r.useEffect},3539(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5043);const i=e=>e&&"function"!==typeof e?t=>{e.current=t}:e;const s=function(e,t){return(0,r.useMemo)(()=>function(e,t){const n=i(e),r=i(t);return e=>{n&&n(e),r&&r(e)}}(e,t),[e,t])}},2665(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5043);function i(){const e=(0,r.useRef)(!0),t=(0,r.useRef)(()=>e.current);return(0,r.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}},4696(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5043);function i(e){const t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{t.current=e}),t.current}},3043(e,t,n){"use strict";n.d(t,{Ay:()=>o});var r=n(8279),i=!1,s=!1;try{var a={get passive(){return i=!0},get once(){return s=i=!0}};r.A&&(window.addEventListener("test",a,a),window.removeEventListener("test",a,!0))}catch(l){}const o=function(e,t,n,r){if(r&&"boolean"!==typeof r&&!s){var a=r.once,o=r.capture,l=n;!s&&a&&(l=n.__once||function e(r){this.removeEventListener(t,e,o),n.call(this,r)},n.__once=l),e.addEventListener(t,l,i?r:o)}e.addEventListener(t,n,r)}},8279(e,t,n){"use strict";n.d(t,{A:()=>r});const r=!("undefined"===typeof window||!window.document||!window.document.createElement)},2631(e,t,n){"use strict";function r(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}n.d(t,{A:()=>r})},8747(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(182);function i(e,t){return function(e){var t=(0,r.A)(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}var s=/([A-Z])/g;var a=/^ms-/;function o(e){return function(e){return e.replace(s,"-$1").toLowerCase()}(e).replace(a,"-ms-")}var l=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const c=function(e,t){var n="",r="";if("string"===typeof t)return e.style.getPropertyValue(o(t))||i(e).getPropertyValue(o(t));Object.keys(t).forEach(function(i){var s=t[i];s||0===s?!function(e){return!(!e||!l.test(e))}(i)?n+=o(i)+": "+s+";":r+=i+"("+s+") ":e.style.removeProperty(o(i))}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}},753(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(3043),i=n(8260);const s=function(e,t,n,s){return(0,r.Ay)(e,t,n,s),function(){(0,i.A)(e,t,n,s)}}},182(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},3818(e,t,n){"use strict";n.d(t,{A:()=>i});var r=Function.prototype.bind.call(Function.prototype.call,[].slice);function i(e,t){return r(e.querySelectorAll(t))}},8260(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e,t,n,r){var i=r&&"boolean"!==typeof r?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}},4232(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(8747),i=n(753);function s(e,t,n){void 0===n&&(n=5);var r=!1,s=setTimeout(function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}(e,"transitionend",!0)},t+n),a=(0,i.A)(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(s),a()}}function a(e,t,n,a){null==n&&(n=function(e){var t=(0,r.A)(e,"transitionDuration")||"",n=-1===t.indexOf("ms")?1e3:1;return parseFloat(t)*n}(e)||0);var o=s(e,n,a),l=(0,i.A)(e,"transitionend",t);return function(){o(),l()}}},2740(e){"use strict";e.exports=function(e,t,n,r,i,s,a,o){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,s,a,o],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},1497(e,t,n){"use strict";var r=n(3218);function i(){}function s(){}s.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,s,a){if(a!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:i};return n.PropTypes=n,n}},5173(e,t,n){e.exports=n(1497)()},3218(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2258(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(9379),i=n(45),s=n(5043),a=n(6618),o=n(5632),l=n(1602),c=n(579);const u=["closeLabel","closeVariant","closeButton","onHide","children"],h=s.forwardRef((e,t)=>{let n=e.closeLabel,h=void 0===n?"Close":n,d=e.closeVariant,f=e.closeButton,p=void 0!==f&&f,m=e.onHide,g=e.children,v=(0,i.A)(e,u);const y=(0,s.useContext)(l.A),w=(0,a.A)(()=>{null==y||y.onHide(),null==m||m()});return(0,c.jsxs)("div",(0,r.A)((0,r.A)({ref:t},v),{},{children:[g,p&&(0,c.jsx)(o.A,{"aria-label":h,variant:d,onClick:w})]}))});h.displayName="AbstractModalHeader";const d=h},1719(e,t,n){"use strict";n.d(t,{A:()=>C});var r=n(9379),i=n(45),s=n(8139),a=n.n(s),o=n(5043),l=n(1969),c=n(6618),u=n(7852),h=n(4488),d=n(579);const f=["className","bsPrefix","as"],p=(0,h.A)("h4");p.displayName="DivStyledAsH4";const m=o.forwardRef((e,t)=>{let n=e.className,s=e.bsPrefix,o=e.as,l=void 0===o?p:o,c=(0,i.A)(e,f);return s=(0,u.oU)(s,"alert-heading"),(0,d.jsx)(l,(0,r.A)({ref:t,className:a()(n,s)},c))});m.displayName="AlertHeading";const g=m;var v=n(7071);const y=["className","bsPrefix","as"],w=o.forwardRef((e,t)=>{let n=e.className,s=e.bsPrefix,o=e.as,l=void 0===o?v.A:o,c=(0,i.A)(e,y);return s=(0,u.oU)(s,"alert-link"),(0,d.jsx)(l,(0,r.A)({ref:t,className:a()(n,s)},c))});w.displayName="AlertLink";const b=w;var E=n(8072),_=n(5632);const A=["bsPrefix","show","closeLabel","closeVariant","className","children","variant","onClose","dismissible","transition"],S=o.forwardRef((e,t)=>{const n=(0,l.Zw)(e,{show:"onClose"}),s=n.bsPrefix,o=n.show,h=void 0===o||o,f=n.closeLabel,p=void 0===f?"Close alert":f,m=n.closeVariant,g=n.className,v=n.children,y=n.variant,w=void 0===y?"primary":y,b=n.onClose,S=n.dismissible,C=n.transition,T=void 0===C?E.A:C,k=(0,i.A)(n,A),x=(0,u.oU)(s,"alert"),N=(0,c.A)(e=>{b&&b(!1,e)}),I=!0===T?E.A:T,O=(0,d.jsxs)("div",(0,r.A)((0,r.A)({role:"alert"},I?void 0:k),{},{ref:t,className:a()(g,x,w&&"".concat(x,"-").concat(w),S&&"".concat(x,"-dismissible")),children:[S&&(0,d.jsx)(_.A,{onClick:N,"aria-label":p,variant:m}),v]}));return I?(0,d.jsx)(I,(0,r.A)((0,r.A)({unmountOnExit:!0},k),{},{ref:void 0,in:h,children:O})):h?O:null});S.displayName="Alert";const C=Object.assign(S,{Link:b,Heading:g})},5675(e,t,n){"use strict";n.d(t,{A:()=>f,R:()=>d});var r=n(8747),i=n(3818);function s(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var a=n(7832);const o=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",l=".sticky-top",c=".navbar-toggler";class u extends a.A{adjustAndStore(e,t,n){const i=t.style[e];t.dataset[e]=i,(0,r.A)(t,{[e]:"".concat(parseFloat((0,r.A)(t,e))+n,"px")})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],(0,r.A)(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const s=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";(0,i.A)(t,o).forEach(t=>this.adjustAndStore(s,t,e.scrollBarWidth)),(0,i.A)(t,l).forEach(t=>this.adjustAndStore(a,t,-e.scrollBarWidth)),(0,i.A)(t,c).forEach(t=>this.adjustAndStore(a,t,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"===typeof n.className?n.className=s(n.className,r):n.setAttribute("class",s(n.className&&n.className.baseVal||"",r));const a=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";(0,i.A)(t,o).forEach(e=>this.restore(a,e)),(0,i.A)(t,l).forEach(e=>this.restore(u,e)),(0,i.A)(t,c).forEach(e=>this.restore(u,e))}}let h;function d(e){return h||(h=new u(e)),h}const f=u},4282(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(9379),i=n(5544),s=n(45),a=n(8139),o=n.n(a),l=n(5043),c=n(4140),u=n(7852),h=n(579);const d=["as","bsPrefix","variant","size","active","disabled","className"],f=l.forwardRef((e,t)=>{let n=e.as,a=e.bsPrefix,l=e.variant,f=void 0===l?"primary":l,p=e.size,m=e.active,g=void 0!==m&&m,v=e.disabled,y=void 0!==v&&v,w=e.className,b=(0,s.A)(e,d);const E=(0,u.oU)(a,"btn"),_=(0,c.Am)((0,r.A)({tagName:n,disabled:y},b)),A=(0,i.A)(_,2),S=A[0],C=A[1].tagName;return(0,h.jsx)(C,(0,r.A)((0,r.A)((0,r.A)({},S),b),{},{ref:t,disabled:y,className:o()(w,E,g&&"active",f&&"".concat(E,"-").concat(f),p&&"".concat(E,"-").concat(p),b.href&&y&&"disabled")}))});f.displayName="Button";const p=f},1778(e,t,n){"use strict";n.d(t,{A:()=>i});const r=n(5043).createContext(null);r.displayName="CardHeaderContext";const i=r},5632(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(9379),i=n(45),s=n(5173),a=n.n(s),o=n(5043),l=n(8139),c=n.n(l),u=n(579);const h=["className","variant","aria-label"],d={"aria-label":a().string,onClick:a().func,variant:a().oneOf(["white"])},f=o.forwardRef((e,t)=>{let n=e.className,s=e.variant,a=e["aria-label"],o=void 0===a?"Close":a,l=(0,i.A)(e,h);return(0,u.jsx)("button",(0,r.A)({ref:t,type:"button",className:c()("btn-close",s&&"btn-close-".concat(s),n),"aria-label":o},l))});f.displayName="CloseButton",f.propTypes=d;const p=f},3519(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(9379),i=n(45),s=n(8139),a=n.n(s),o=n(5043),l=n(7852),c=n(579);const u=["bsPrefix","fluid","as","className"],h=o.forwardRef((e,t)=>{let n=e.bsPrefix,s=e.fluid,o=void 0!==s&&s,h=e.as,d=void 0===h?"div":h,f=e.className,p=(0,i.A)(e,u);const m=(0,l.oU)(n,"container"),g="string"===typeof o?"-".concat(o):"-fluid";return(0,c.jsx)(d,(0,r.A)((0,r.A)({ref:t},p),{},{className:a()(f,o?"".concat(m).concat(g):m)}))});h.displayName="Container";const d=h},8072(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(9379),i=n(45),s=n(8139),a=n.n(s),o=n(5043),l=n(8062),c=n(9791),u=n(3492),h=n(2643),d=n(865),f=n(579);const p=["className","children","transitionClasses","onEnter"],m={[l.ns]:"show",[l._K]:"show"},g=o.forwardRef((e,t)=>{let n=e.className,s=e.children,l=e.transitionClasses,g=void 0===l?{}:l,v=e.onEnter,y=(0,i.A)(e,p);const w=(0,r.A)({in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},y),b=(0,o.useCallback)((e,t)=>{(0,h.A)(e),null==v||v(e,t)},[v]);return(0,f.jsx)(d.A,(0,r.A)((0,r.A)({ref:t,addEndListener:u.A},w),{},{onEnter:b,childRef:(0,c.am)(s),children:(e,t)=>o.cloneElement(s,(0,r.A)((0,r.A)({},t),{},{className:a()("fade",n,s.props.className,m[e],g[e])}))}))});g.displayName="Fade";const v=g},9334(e,t,n){"use strict";n.d(t,{A:()=>i});const r=n(5043).createContext(null);r.displayName="InputGroupContext";const i=r},1602(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(5043).createContext({onHide(){}})},7417(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(9379),i=n(45),s=n(8139),a=n.n(s),o=n(5043),l=n(7852),c=n(579);const u=["bsPrefix","variant","animation","size","as","className"],h=o.forwardRef((e,t)=>{let n=e.bsPrefix,s=e.variant,o=e.animation,h=void 0===o?"border":o,d=e.size,f=e.as,p=void 0===f?"div":f,m=e.className,g=(0,i.A)(e,u);n=(0,l.oU)(n,"spinner");const v="".concat(n,"-").concat(h);return(0,c.jsx)(p,(0,r.A)((0,r.A)({ref:t},g),{},{className:a()(m,v,d&&"".concat(v,"-").concat(d),s&&"text-".concat(s))}))});h.displayName="Spinner";const d=h},7852(e,t,n){"use strict";n.d(t,{Jm:()=>c,Jy:()=>i,Wz:()=>u,ff:()=>s,gy:()=>l,oU:()=>o});var r=n(5043);n(579);const i=["xxl","xl","lg","md","sm","xs"],s="xs",a=r.createContext({prefixes:{},breakpoints:i,minBreakpoint:s});a.Consumer,a.Provider;function o(e,t){const n=(0,r.useContext)(a).prefixes;return e||n[t]||t}function l(){return(0,r.useContext)(a).breakpoints}function c(){return(0,r.useContext)(a).minBreakpoint}function u(){return"rtl"===(0,r.useContext)(a).dir}},865(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(9379),i=n(45),s=n(5043),a=n(8062),o=n(8293),l=n(7950);var c=n(579);const u=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children","childRef"],h=s.forwardRef((e,t)=>{let n=e.onEnter,h=e.onEntering,d=e.onEntered,f=e.onExit,p=e.onExiting,m=e.onExited,g=e.addEndListener,v=e.children,y=e.childRef,w=(0,i.A)(e,u);const b=(0,s.useRef)(null),E=(0,o.A)(b,y),_=e=>{var t;E((t=e)&&"setState"in t?l.findDOMNode(t):null!=t?t:null)},A=e=>t=>{e&&b.current&&e(b.current,t)},S=(0,s.useCallback)(A(n),[n]),C=(0,s.useCallback)(A(h),[h]),T=(0,s.useCallback)(A(d),[d]),k=(0,s.useCallback)(A(f),[f]),x=(0,s.useCallback)(A(p),[p]),N=(0,s.useCallback)(A(m),[m]),I=(0,s.useCallback)(A(g),[g]);return(0,c.jsx)(a.Ay,(0,r.A)((0,r.A)({ref:t},w),{},{onEnter:S,onEntered:T,onEntering:C,onExit:k,onExited:N,onExiting:x,addEndListener:I,nodeRef:b,children:"function"===typeof v?(e,t)=>v(e,(0,r.A)((0,r.A)({},t),{},{ref:_})):s.cloneElement(v,{ref:_})}))});h.displayName="TransitionWrapper";const d=h},4488(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(9379),i=n(5043),s=n(8139),a=n.n(s),o=n(579);const l=e=>i.forwardRef((t,n)=>(0,o.jsx)("div",(0,r.A)((0,r.A)({},t),{},{ref:n,className:a()(t.className,e)})));n.dn(l)},3492(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(8747),i=n(4232);function s(e,t){const n=(0,r.A)(e,t)||"",i=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*i}function a(e,t){const n=s(e,"transitionDuration"),r=s(e,"transitionDelay"),a=(0,i.A)(e,n=>{n.target===e&&(a(),t(n))},n+r)}},2643(e,t,n){"use strict";function r(e){e.offsetHeight}n.d(t,{A:()=>r})},7004(e,t,n){"use strict";var r=n(8853),i=n(5043),s=n(7950);function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function c(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function u(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function h(e){if(l(e)!==e)throw Error(a(188))}function d(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=d(e)))return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),E=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope");var k=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var x=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var N=Symbol.iterator;function I(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=N&&e[N]||e["@@iterator"])?e:null}var O=Symbol.for("react.client.reference");function R(e){if(null==e)return null;if("function"===typeof e)return e.$$typeof===O?null:e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case v:return"Fragment";case w:return"Profiler";case y:return"StrictMode";case A:return"Suspense";case S:return"SuspenseList";case k:return"Activity"}if("object"===typeof e)switch(e.$$typeof){case g:return"Portal";case E:return e.displayName||"Context";case b:return(e._context.displayName||"Context")+".Consumer";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case C:return null!==(t=e.displayName||null)?t:R(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return R(e(t))}catch(n){}}return null}var P=Array.isArray,D=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M={pending:!1,data:null,method:null,action:null},U=[],V=-1;function F(e){return{current:e}}function j(e){0>V||(e.current=U[V],U[V]=null,V--)}function z(e,t){V++,U[V]=e.current,e.current=t}var B,H,q=F(null),G=F(null),W=F(null),K=F(null);function Q(e,t){switch(z(W,t),z(G,e),z(q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=yh(t=vh(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j(q),z(q,e)}function Y(){j(q),j(G),j(W)}function $(e){null!==e.memoizedState&&z(K,e);var t=q.current,n=yh(t,e.type);t!==n&&(z(G,e),z(q,n))}function X(e){G.current===e&&(j(q),j(G)),K.current===e&&(j(K),ud._currentValue=M)}function J(e){if(void 0===B)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||"",H=-1<n.stack.indexOf("\n    at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+B+e+H}var Z=!1;function ee(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(i){var r=i}Reflect.construct(e,[],n)}else{try{n.call()}catch(s){r=s}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"===typeof n.catch&&n.catch(function(){})}}catch(o){if(o&&r&&"string"===typeof o.stack)return[o.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=r.DetermineComponentFrameRoot(),a=s[0],o=s[1];if(a&&o){var l=a.split("\n"),c=o.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===c.length)for(r=l.length-1,i=c.length-1;1<=r&&0<=i&&l[r]!==c[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==c[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==c[i]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=i);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?J(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return J(e.type);case 16:return J("Lazy");case 13:return e.child!==t&&null!==t?J("Suspense Fallback"):J("Suspense");case 19:return J("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return J("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var re=Object.prototype.hasOwnProperty,ie=r.unstable_scheduleCallback,se=r.unstable_cancelCallback,ae=r.unstable_shouldYield,oe=r.unstable_requestPaint,le=r.unstable_now,ce=r.unstable_getCurrentPriorityLevel,ue=r.unstable_ImmediatePriority,he=r.unstable_UserBlockingPriority,de=r.unstable_NormalPriority,fe=r.unstable_LowPriority,pe=r.unstable_IdlePriority,me=r.log,ge=r.unstable_setDisableYieldValue,ve=null,ye=null;function we(e){if("function"===typeof me&&ge(e),ye&&"function"===typeof ye.setStrictMode)try{ye.setStrictMode(ve,e)}catch(t){}}var be=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Ee(e)/_e|0)|0},Ee=Math.log,_e=Math.LN2;var Ae=256,Se=262144,Ce=4194304;function Te(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ke(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var i=0,s=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var o=134217727&r;return 0!==o?0!==(r=o&~s)?i=Te(r):0!==(a&=o)?i=Te(a):n||0!==(n=o&~e)&&(i=Te(n)):0!==(o=r&~s)?i=Te(o):0!==a?i=Te(a):n||0!==(n=r&~e)&&(i=Te(n)),0===i?0:0!==t&&t!==i&&0===(t&s)&&((s=i&-i)>=(n=t&-t)||32===s&&0!==(4194048&n))?t:i}function xe(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ne(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ie(){var e=Ce;return 0===(62914560&(Ce<<=1))&&(Ce=4194304),e}function Oe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Re(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Pe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-be(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function De(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-be(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Le(e,t){var n=t&-t;return 0!==((n=0!==(42&n)?1:Me(n))&(e.suspendedLanes|t))?0:n}function Me(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ue(e){return 2<(e&=-e)?8<e?0!==(134217727&e)?32:268435456:8:2}function Ve(){var e=L.p;return 0!==e?e:void 0===(e=window.event)?32:Td(e.type)}function Fe(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var je=Math.random().toString(36).slice(2),ze="__reactFiber$"+je,Be="__reactProps$"+je,He="__reactContainer$"+je,qe="__reactEvents$"+je,Ge="__reactListeners$"+je,We="__reactHandles$"+je,Ke="__reactResources$"+je,Qe="__reactMarker$"+je;function Ye(e){delete e[ze],delete e[Be],delete e[qe],delete e[Ge],delete e[We]}function $e(e){var t=e[ze];if(t)return t;for(var n=e.parentNode;n;){if(t=n[He]||n[ze]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Mh(e);null!==e;){if(n=e[ze])return n;e=Mh(e)}return t}n=(e=n).parentNode}return null}function Xe(e){if(e=e[ze]||e[He]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Je(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(a(33))}function Ze(e){var t=e[Ke];return t||(t=e[Ke]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Qe]=!0}var tt=new Set,nt={};function rt(e,t){it(e,t),it(e+"Capture",t)}function it(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var st=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),at={},ot={};function lt(e,t,n){if(i=t,re.call(ot,i)||!re.call(at,i)&&(st.test(i)?ot[i]=!0:(at[i]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var i}function ct(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ut(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function dt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ft(e){if(!e._valueTracker){var t=dt(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,s.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function mt(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function vt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yt(e,t,n,r,i,s,a,o){e.name="",null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&"boolean"!==typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ht(t)):e.value!==""+ht(t)&&(e.value=""+ht(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?bt(e,a,ht(t)):null!=n?bt(e,a,ht(n)):null!=r&&e.removeAttribute("value"),null==i&&null!=s&&(e.defaultChecked=!!s),null!=i&&(e.checked=i&&"function"!==typeof i&&"symbol"!==typeof i),null!=o&&"function"!==typeof o&&"symbol"!==typeof o&&"boolean"!==typeof o?e.name=""+ht(o):e.removeAttribute("name")}function wt(e,t,n,r,i,s,a,o){if(null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s&&(e.type=s),null!=t||null!=n){if(!("submit"!==s&&"reset"!==s||void 0!==t&&null!==t))return void ft(e);n=null!=n?""+ht(n):"",t=null!=t?""+ht(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r="function"!==typeof(r=null!=r?r:i)&&"symbol"!==typeof r&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&"boolean"!==typeof a&&(e.name=a),ft(e)}function bt(e,t,n){"number"===t&&mt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Et(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ht(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function _t(e,t,n){null==t||((t=""+ht(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ht(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function At(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(a(92));if(P(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=ht(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),ft(e)}function St(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ct=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Tt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"===typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!==typeof n||0===n||Ct.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function kt(e,t,n){if(null!=t&&"object"!==typeof t)throw Error(a(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Tt(e,i,r)}else for(var s in t)t.hasOwnProperty(s)&&Tt(e,s,t[s])}function xt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Nt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),It=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ot(e){return It.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rt(){}var Pt=null;function Dt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Lt=null,Mt=null;function Ut(e){var t=Xe(e);if(t&&(e=t.stateNode)){var n=e[Be]||null;e:switch(e=t.stateNode,t.type){case"input":if(yt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Be]||null;if(!i)throw Error(a(90));yt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&pt(r)}break e;case"textarea":_t(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&Et(e,!!n.multiple,t,!1)}}}var Vt=!1;function Ft(e,t,n){if(Vt)return e(t,n);Vt=!0;try{return e(t)}finally{if(Vt=!1,(null!==Lt||null!==Mt)&&(Zc(),Lt&&(t=Lt,e=Mt,Mt=Lt=null,Ut(t),e)))for(t=0;t<e.length;t++)Ut(e[t])}}function jt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Be]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var zt=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),Bt=!1;if(zt)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){Bt=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(Xd){Bt=!1}var qt=null,Gt=null,Wt=null;function Kt(){if(Wt)return Wt;var e,t,n=Gt,r=n.length,i="value"in qt?qt.value:qt.textContent,s=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[s-t];t++);return Wt=i.slice(e,1<t?1-t:void 0)}function Qt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Yt(){return!0}function $t(){return!1}function Xt(e){function t(t,n,r,i,s){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=s,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Yt:$t,this.isPropagationStopped=$t,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Yt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Yt)},persist:function(){},isPersistent:Yt}),t}var Jt,Zt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Xt(tn),rn=f({},tn,{view:0,detail:0}),sn=Xt(rn),an=f({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Jt=e.screenX-en.screenX,Zt=e.screenY-en.screenY):Zt=Jt=0,en=e),Jt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),on=Xt(an),ln=Xt(f({},an,{dataTransfer:0})),cn=Xt(f({},rn,{relatedTarget:0})),un=Xt(f({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),hn=Xt(f({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),dn=Xt(f({},tn,{data:0})),fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=mn[e])&&!!t[e]}function vn(){return gn}var yn=Xt(f({},rn,{key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vn,charCode:function(e){return"keypress"===e.type?Qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),wn=Xt(f({},an,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),bn=Xt(f({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vn})),En=Xt(f({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),_n=Xt(f({},an,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),An=Xt(f({},tn,{newState:0,oldState:0})),Sn=[9,13,27,32],Cn=zt&&"CompositionEvent"in window,Tn=null;zt&&"documentMode"in document&&(Tn=document.documentMode);var kn=zt&&"TextEvent"in window&&!Tn,xn=zt&&(!Cn||Tn&&8<Tn&&11>=Tn),Nn=String.fromCharCode(32),In=!1;function On(e,t){switch(e){case"keyup":return-1!==Sn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Pn=!1;var Dn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ln(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Dn[e.type]:"textarea"===t}function Mn(e,t,n,r){Lt?Mt?Mt.push(r):Mt=[r]:Lt=r,0<(t=rh(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,Vn=null;function Fn(e){Yu(e,0)}function jn(e){if(pt(Je(e)))return e}function zn(e,t){if("change"===e)return t}var Bn=!1;if(zt){var Hn;if(zt){var qn="oninput"in document;if(!qn){var Gn=document.createElement("div");Gn.setAttribute("oninput","return;"),qn="function"===typeof Gn.oninput}Hn=qn}else Hn=!1;Bn=Hn&&(!document.documentMode||9<document.documentMode)}function Wn(){Un&&(Un.detachEvent("onpropertychange",Kn),Vn=Un=null)}function Kn(e){if("value"===e.propertyName&&jn(Vn)){var t=[];Mn(t,Vn,e,Dt(e)),Ft(Fn,t)}}function Qn(e,t,n){"focusin"===e?(Wn(),Vn=n,(Un=t).attachEvent("onpropertychange",Kn)):"focusout"===e&&Wn()}function Yn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return jn(Vn)}function $n(e,t){if("click"===e)return jn(t)}function Xn(e,t){if("input"===e||"change"===e)return jn(t)}var Jn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function Zn(e,t){if(Jn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!re.call(t,i)||!Jn(e[i],t[i]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var n,r=er(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=mt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var sr=zt&&"documentMode"in document&&11>=document.documentMode,ar=null,or=null,lr=null,cr=!1;function ur(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;cr||null==ar||ar!==mt(r)||("selectionStart"in(r=ar)&&ir(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lr&&Zn(lr,r)||(lr=r,0<(r=rh(or,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ar)))}function hr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dr={animationend:hr("Animation","AnimationEnd"),animationiteration:hr("Animation","AnimationIteration"),animationstart:hr("Animation","AnimationStart"),transitionrun:hr("Transition","TransitionRun"),transitionstart:hr("Transition","TransitionStart"),transitioncancel:hr("Transition","TransitionCancel"),transitionend:hr("Transition","TransitionEnd")},fr={},pr={};function mr(e){if(fr[e])return fr[e];if(!dr[e])return e;var t,n=dr[e];for(t in n)if(n.hasOwnProperty(t)&&t in pr)return fr[e]=n[t];return e}zt&&(pr=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);var gr=mr("animationend"),vr=mr("animationiteration"),yr=mr("animationstart"),wr=mr("transitionrun"),br=mr("transitionstart"),Er=mr("transitioncancel"),_r=mr("transitionend"),Ar=new Map,Sr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Cr(e,t){Ar.set(e,t),rt(t,[e])}Sr.push("scrollEnd");var Tr="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},kr=[],xr=0,Nr=0;function Ir(){for(var e=xr,t=Nr=xr=0;t<e;){var n=kr[t];kr[t++]=null;var r=kr[t];kr[t++]=null;var i=kr[t];kr[t++]=null;var s=kr[t];if(kr[t++]=null,null!==r&&null!==i){var a=r.pending;null===a?i.next=i:(i.next=a.next,a.next=i),r.pending=i}0!==s&&Dr(n,i,s)}}function Or(e,t,n,r){kr[xr++]=e,kr[xr++]=t,kr[xr++]=n,kr[xr++]=r,Nr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Rr(e,t,n,r){return Or(e,t,n,r),Lr(e)}function Pr(e,t){return Or(e,null,null,t),Lr(e)}function Dr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var i=!1,s=e.return;null!==s;)s.childLanes|=n,null!==(r=s.alternate)&&(r.childLanes|=n),22===s.tag&&(null===(e=s.stateNode)||1&e._visibility||(i=!0)),e=s,s=s.return;return 3===e.tag?(s=e.stateNode,i&&null!==t&&(i=31-be(n),null===(r=(e=s.hiddenUpdates)[i])?e[i]=[t]:r.push(t),t.lane=536870912|n),s):null}function Lr(e){if(50<qc)throw qc=0,Gc=null,Error(a(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Mr={};function Ur(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vr(e,t,n,r){return new Ur(e,t,n,r)}function Fr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function jr(e,t){var n=e.alternate;return null===n?((n=Vr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function zr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Br(e,t,n,r,i,s){var o=0;if(r=e,"function"===typeof e)Fr(e)&&(o=1);else if("string"===typeof e)o=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!==typeof t.precedence||"string"!==typeof t.href||""===t.href)break;return!0;case"link":if("string"!==typeof t.rel||"string"!==typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"===typeof t.precedence&&null==e);case"script":if(t.async&&"function"!==typeof t.async&&"symbol"!==typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"===typeof t.src)return!0}return!1}(e,n,q.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case k:return(e=Vr(31,n,t,i)).elementType=k,e.lanes=s,e;case v:return Hr(n.children,i,s,t);case y:o=8,i|=24;break;case w:return(e=Vr(12,n,t,2|i)).elementType=w,e.lanes=s,e;case A:return(e=Vr(13,n,t,i)).elementType=A,e.lanes=s,e;case S:return(e=Vr(19,n,t,i)).elementType=S,e.lanes=s,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:o=10;break e;case b:o=9;break e;case _:o=11;break e;case C:o=14;break e;case T:o=16,r=null;break e}o=29,n=Error(a(130,null===e?"null":typeof e,"")),r=null}return(t=Vr(o,n,t,i)).elementType=e,t.type=r,t.lanes=s,t}function Hr(e,t,n,r){return(e=Vr(7,e,r,t)).lanes=n,e}function qr(e,t,n){return(e=Vr(6,e,null,t)).lanes=n,e}function Gr(e){var t=Vr(18,null,null,0);return t.stateNode=e,t}function Wr(e,t,n){return(t=Vr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kr=new WeakMap;function Qr(e,t){if("object"===typeof e&&null!==e){var n=Kr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},Kr.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Yr=[],$r=0,Xr=null,Jr=0,Zr=[],ei=0,ti=null,ni=1,ri="";function ii(e,t){Yr[$r++]=Jr,Yr[$r++]=Xr,Xr=e,Jr=t}function si(e,t,n){Zr[ei++]=ni,Zr[ei++]=ri,Zr[ei++]=ti,ti=e;var r=ni;e=ri;var i=32-be(r)-1;r&=~(1<<i),n+=1;var s=32-be(t)+i;if(30<s){var a=i-i%5;s=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ni=1<<32-be(t)+i|n<<i|r,ri=s+e}else ni=1<<s|n<<i|r,ri=e}function ai(e){null!==e.return&&(ii(e,1),si(e,1,0))}function oi(e){for(;e===Xr;)Xr=Yr[--$r],Yr[$r]=null,Jr=Yr[--$r],Yr[$r]=null;for(;e===ti;)ti=Zr[--ei],Zr[ei]=null,ri=Zr[--ei],Zr[ei]=null,ni=Zr[--ei],Zr[ei]=null}function li(e,t){Zr[ei++]=ni,Zr[ei++]=ri,Zr[ei++]=ti,ni=t.id,ri=t.overflow,ti=e}var ci=null,ui=null,hi=!1,di=null,fi=!1,pi=Error(a(519));function mi(e){throw Ei(Qr(Error(a(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),pi}function gi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ze]=e,t[Be]=r,n){case"dialog":$u("cancel",t),$u("close",t);break;case"iframe":case"object":case"embed":$u("load",t);break;case"video":case"audio":for(n=0;n<Ku.length;n++)$u(Ku[n],t);break;case"source":$u("error",t);break;case"img":case"image":case"link":$u("error",t),$u("load",t);break;case"details":$u("toggle",t);break;case"input":$u("invalid",t),wt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":$u("invalid",t);break;case"textarea":$u("invalid",t),At(t,r.value,r.defaultValue,r.children)}"string"!==typeof(n=r.children)&&"number"!==typeof n&&"bigint"!==typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||ch(t.textContent,n)?(null!=r.popover&&($u("beforetoggle",t),$u("toggle",t)),null!=r.onScroll&&$u("scroll",t),null!=r.onScrollEnd&&$u("scrollend",t),null!=r.onClick&&(t.onclick=Rt),t=!0):t=!1,t||mi(e,!0)}function vi(e){for(ci=e.return;ci;)switch(ci.tag){case 5:case 31:case 13:return void(fi=!1);case 27:case 3:return void(fi=!0);default:ci=ci.return}}function yi(e){if(e!==ci)return!1;if(!hi)return vi(e),hi=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||wh(e.type,e.memoizedProps)),t=!t),t&&ui&&mi(e),vi(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));ui=Lh(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));ui=Lh(e)}else 27===n?(n=ui,Th(e.type)?(e=Dh,Dh=null,ui=e):ui=n):ui=ci?Ph(e.stateNode.nextSibling):null;return!0}function wi(){ui=ci=null,hi=!1}function bi(){var e=di;return null!==e&&(null===Ic?Ic=e:Ic.push.apply(Ic,e),di=null),e}function Ei(e){null===di?di=[e]:di.push(e)}var _i=F(null),Ai=null,Si=null;function Ci(e,t,n){z(_i,t._currentValue),t._currentValue=n}function Ti(e){e._currentValue=_i.current,j(_i)}function ki(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xi(e,t,n,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var s=i.dependencies;if(null!==s){var o=i.child;s=s.firstContext;e:for(;null!==s;){var l=s;s=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),ki(s.return,n,e),r||(o=null);break e}s=l.next}}else if(18===i.tag){if(null===(o=i.return))throw Error(a(341));o.lanes|=n,null!==(s=o.alternate)&&(s.lanes|=n),ki(o,n,e),o=null}else o=i.child;if(null!==o)o.return=i;else for(o=i;null!==o;){if(o===e){o=null;break}if(null!==(i=o.sibling)){i.return=o.return,o=i;break}o=o.return}i=o}}function Ni(e,t,n,r){e=null;for(var i=t,s=!1;null!==i;){if(!s)if(0!==(524288&i.flags))s=!0;else if(0!==(262144&i.flags))break;if(10===i.tag){var o=i.alternate;if(null===o)throw Error(a(387));if(null!==(o=o.memoizedProps)){var l=i.type;Jn(i.pendingProps.value,o.value)||(null!==e?e.push(l):e=[l])}}else if(i===K.current){if(null===(o=i.alternate))throw Error(a(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(ud):e=[ud])}i=i.return}null!==e&&xi(t,e,n,r),t.flags|=262144}function Ii(e){for(e=e.firstContext;null!==e;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Oi(e){Ai=e,Si=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Ri(e){return Di(Ai,e)}function Pi(e,t){return null===Ai&&Oi(e),Di(e,t)}function Di(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Si){if(null===e)throw Error(a(308));Si=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Si=Si.next=t;return n}var Li="undefined"!==typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Mi=r.unstable_scheduleCallback,Ui=r.unstable_NormalPriority,Vi={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fi(){return{controller:new Li,data:new Map,refCount:0}}function ji(e){e.refCount--,0===e.refCount&&Mi(Ui,function(){e.controller.abort()})}var zi=null,Bi=0,Hi=0,qi=null;function Gi(){if(0===--Bi&&null!==zi){null!==qi&&(qi.status="fulfilled");var e=zi;zi=null,Hi=0,qi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Wi=D.S;D.S=function(e,t){Pc=le(),"object"===typeof t&&null!==t&&"function"===typeof t.then&&function(e,t){if(null===zi){var n=zi=[];Bi=0,Hi=Bu(),qi={status:"pending",value:void 0,then:function(e){n.push(e)}}}Bi++,t.then(Gi,Gi)}(0,t),null!==Wi&&Wi(e,t)};var Ki=F(null);function Qi(){var e=Ki.current;return null!==e?e:pc.pooledCache}function Yi(e,t){z(Ki,null===t?Ki.current:t.pool)}function $i(){var e=Qi();return null===e?null:{parent:Vi._currentValue,pool:e}}var Xi=Error(a(460)),Ji=Error(a(474)),Zi=Error(a(542)),es={then:function(){}};function ts(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ns(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Rt,Rt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw as(e=t.reason),e;default:if("string"===typeof t.status)t.then(Rt,Rt);else{if(null!==(e=pc)&&100<e.shellSuspendCounter)throw Error(a(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw as(e=t.reason),e}throw is=t,Xi}}function rs(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"===typeof t&&"function"===typeof t.then)throw is=t,Xi;throw t}}var is=null;function ss(){if(null===is)throw Error(a(459));var e=is;return is=null,e}function as(e){if(e===Xi||e===Zi)throw Error(a(483))}var os=null,ls=0;function cs(e){var t=ls;return ls+=1,null===os&&(os=[]),ns(os,e,t)}function us(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function hs(e,t){if(t.$$typeof===p)throw Error(a(525));throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ds(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=jr(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=qr(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var s=n.type;return s===v?h(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===s||"object"===typeof s&&null!==s&&s.$$typeof===T&&rs(s)===t.type)?(us(t=i(t,n.props),n),t.return=e,t):(us(t=Br(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wr(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function h(e,t,n,r,s){return null===t||7!==t.tag?((t=Hr(n,e.mode,r,s)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t||"bigint"===typeof t)return(t=qr(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case m:return us(n=Br(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case g:return(t=Wr(t,e.mode,n)).return=e,t;case T:return d(e,t=rs(t),n)}if(P(t)||I(t))return(t=Hr(t,e.mode,n,null)).return=e,t;if("function"===typeof t.then)return d(e,cs(t),n);if(t.$$typeof===E)return d(e,Pi(e,t),n);hs(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n||"bigint"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case m:return n.key===i?c(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case T:return f(e,t,n=rs(n),r)}if(P(n)||I(n))return null!==i?null:h(e,t,n,r,null);if("function"===typeof n.then)return f(e,t,cs(n),r);if(n.$$typeof===E)return f(e,t,Pi(e,n),r);hs(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r||"bigint"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case m:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case g:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case T:return p(e,t,n,r=rs(r),i)}if(P(r)||I(r))return h(t,e=e.get(n)||null,r,i,null);if("function"===typeof r.then)return p(e,t,n,cs(r),i);if(r.$$typeof===E)return p(e,t,n,Pi(t,r),i);hs(t,r)}return null}function y(l,c,u,h){if("object"===typeof u&&null!==u&&u.type===v&&null===u.key&&(u=u.props.children),"object"===typeof u&&null!==u){switch(u.$$typeof){case m:e:{for(var w=u.key;null!==c;){if(c.key===w){if((w=u.type)===v){if(7===c.tag){n(l,c.sibling),(h=i(c,u.props.children)).return=l,l=h;break e}}else if(c.elementType===w||"object"===typeof w&&null!==w&&w.$$typeof===T&&rs(w)===c.type){n(l,c.sibling),us(h=i(c,u.props),u),h.return=l,l=h;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===v?((h=Hr(u.props.children,l.mode,h,u.key)).return=l,l=h):(us(h=Br(u.type,u.key,u.props,null,l.mode,h),u),h.return=l,l=h)}return o(l);case g:e:{for(w=u.key;null!==c;){if(c.key===w){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(h=i(c,u.children||[])).return=l,l=h;break e}n(l,c);break}t(l,c),c=c.sibling}(h=Wr(u,l.mode,h)).return=l,l=h}return o(l);case T:return y(l,c,u=rs(u),h)}if(P(u))return function(i,a,o,l){for(var c=null,u=null,h=a,m=a=0,g=null;null!==h&&m<o.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=f(i,h,o[m],l);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(i,h),a=s(v,a,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===o.length)return n(i,h),hi&&ii(i,m),c;if(null===h){for(;m<o.length;m++)null!==(h=d(i,o[m],l))&&(a=s(h,a,m),null===u?c=h:u.sibling=h,u=h);return hi&&ii(i,m),c}for(h=r(h);m<o.length;m++)null!==(g=p(h,i,m,o[m],l))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),a=s(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach(function(e){return t(i,e)}),hi&&ii(i,m),c}(l,c,u,h);if(I(u)){if("function"!==typeof(w=I(u)))throw Error(a(150));return function(i,o,l,c){if(null==l)throw Error(a(151));for(var u=null,h=null,m=o,g=o=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var w=f(i,m,y.value,c);if(null===w){null===m&&(m=v);break}e&&m&&null===w.alternate&&t(i,m),o=s(w,o,g),null===h?u=w:h.sibling=w,h=w,m=v}if(y.done)return n(i,m),hi&&ii(i,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=d(i,y.value,c))&&(o=s(y,o,g),null===h?u=y:h.sibling=y,h=y);return hi&&ii(i,g),u}for(m=r(m);!y.done;g++,y=l.next())null!==(y=p(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),o=s(y,o,g),null===h?u=y:h.sibling=y,h=y);return e&&m.forEach(function(e){return t(i,e)}),hi&&ii(i,g),u}(l,c,u=w.call(u),h)}if("function"===typeof u.then)return y(l,c,cs(u),h);if(u.$$typeof===E)return y(l,c,Pi(l,u),h);hs(l,u)}return"string"===typeof u&&""!==u||"number"===typeof u||"bigint"===typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(h=i(c,u)).return=l,l=h):(n(l,c),(h=qr(u,l.mode,h)).return=l,l=h),o(l)):n(l,c)}return function(e,t,n,r){try{ls=0;var i=y(e,t,n,r);return os=null,i}catch(a){if(a===Xi||a===Zi)throw a;var s=Vr(29,a,null,e.mode);return s.lanes=r,s.return=e,s}}}var fs=ds(!0),ps=ds(!1),ms=!1;function gs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ys(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ws(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&fc)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Lr(e),Dr(e,null,n),t}return Or(e,r,t,n),Lr(e)}function bs(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194048&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,De(e,n)}}function Es(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,s=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===s?i=s=a:s=s.next=a,n=n.next}while(null!==n);null===s?i=s=t:s=s.next=t}else i=s=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var _s=!1;function As(){if(_s){if(null!==qi)throw qi}}function Ss(e,t,n,r){_s=!1;var i=e.updateQueue;ms=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,o=i.shared.pending;if(null!==o){i.shared.pending=null;var l=o,c=l.next;l.next=null,null===a?s=c:a.next=c,a=l;var u=e.alternate;null!==u&&((o=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===o?u.firstBaseUpdate=c:o.next=c,u.lastBaseUpdate=l))}if(null!==s){var h=i.baseState;for(a=0,u=c=l=null,o=s;;){var d=-536870913&o.lane,p=d!==o.lane;if(p?(gc&d)===d:(r&d)===d){0!==d&&d===Hi&&(_s=!0),null!==u&&(u=u.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var m=e,g=o;d=t;var v=n;switch(g.tag){case 1:if("function"===typeof(m=g.payload)){h=m.call(v,h,d);break e}h=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null===(d="function"===typeof(m=g.payload)?m.call(v,h,d):m)||void 0===d)break e;h=f({},h,d);break e;case 2:ms=!0}}null!==(d=o.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=i.callbacks)?i.callbacks=[d]:p.push(d))}else p={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===u?(c=u=p,l=h):u=u.next=p,a|=d;if(null===(o=o.next)){if(null===(o=i.shared.pending))break;o=(p=o).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}null===u&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null===s&&(i.shared.lanes=0),Sc|=a,e.lanes=a,e.memoizedState=h}}function Cs(e,t){if("function"!==typeof e)throw Error(a(191,e));e.call(t)}function Ts(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Cs(n[e],t)}var ks=F(null),xs=F(0);function Ns(e,t){z(xs,e=_c),z(ks,t),_c=e|t.baseLanes}function Is(){z(xs,_c),z(ks,ks.current)}function Os(){_c=xs.current,j(ks),j(xs)}var Rs=F(null),Ps=null;function Ds(e){var t=e.alternate;z(Fs,1&Fs.current),z(Rs,e),null===Ps&&(null===t||null!==ks.current||null!==t.memoizedState)&&(Ps=e)}function Ls(e){z(Fs,Fs.current),z(Rs,e),null===Ps&&(Ps=e)}function Ms(e){22===e.tag?(z(Fs,Fs.current),z(Rs,e),null===Ps&&(Ps=e)):Us()}function Us(){z(Fs,Fs.current),z(Rs,Rs.current)}function Vs(e){j(Rs),Ps===e&&(Ps=null),j(Fs)}var Fs=F(0);function js(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Oh(n)||Rh(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(0!==(128&t.flags))return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zs=0,Bs=null,Hs=null,qs=null,Gs=!1,Ws=!1,Ks=!1,Qs=0,Ys=0,$s=null,Xs=0;function Js(){throw Error(a(321))}function Zs(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function ea(e,t,n,r,i,s){return zs=s,Bs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=null===e||null===e.memoizedState?go:vo,Ks=!1,s=n(r,i),Ks=!1,Ws&&(s=na(t,n,r,i)),ta(e),s}function ta(e){D.H=mo;var t=null!==Hs&&null!==Hs.next;if(zs=0,qs=Hs=Bs=null,Gs=!1,Ys=0,$s=null,t)throw Error(a(300));null===e||Po||null!==(e=e.dependencies)&&Ii(e)&&(Po=!0)}function na(e,t,n,r){Bs=e;var i=0;do{if(Ws&&($s=null),Ys=0,Ws=!1,25<=i)throw Error(a(301));if(i+=1,qs=Hs=null,null!=e.updateQueue){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,null!=s.memoCache&&(s.memoCache.index=0)}D.H=yo,s=t(n,r)}while(Ws);return s}function ra(){var e=D.H,t=e.useState()[0];return t="function"===typeof t.then?ca(t):t,e=e.useState()[0],(null!==Hs?Hs.memoizedState:null)!==e&&(Bs.flags|=1024),t}function ia(){var e=0!==Qs;return Qs=0,e}function sa(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function aa(e){if(Gs){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Gs=!1}zs=0,qs=Hs=Bs=null,Ws=!1,Ys=Qs=0,$s=null}function oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qs?Bs.memoizedState=qs=e:qs=qs.next=e,qs}function la(){if(null===Hs){var e=Bs.alternate;e=null!==e?e.memoizedState:null}else e=Hs.next;var t=null===qs?Bs.memoizedState:qs.next;if(null!==t)qs=t,Hs=e;else{if(null===e){if(null===Bs.alternate)throw Error(a(467));throw Error(a(310))}e={memoizedState:(Hs=e).memoizedState,baseState:Hs.baseState,baseQueue:Hs.baseQueue,queue:Hs.queue,next:null},null===qs?Bs.memoizedState=qs=e:qs=qs.next=e}return qs}function ca(e){var t=Ys;return Ys+=1,null===$s&&($s=[]),e=ns($s,e,t),t=Bs,null===(null===qs?t.memoizedState:qs.next)&&(t=t.alternate,D.H=null===t||null===t.memoizedState?go:vo),e}function ua(e){if(null!==e&&"object"===typeof e){if("function"===typeof e.then)return ca(e);if(e.$$typeof===E)return Ri(e)}throw Error(a(438,String(e)))}function ha(e){var t=null,n=Bs.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Bs.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Bs.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=x;return t.index++,n}function da(e,t){return"function"===typeof t?t(e):t}function fa(e){return pa(la(),Hs,e)}function pa(e,t,n){var r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,s=r.pending;if(null!==s){if(null!==i){var o=i.next;i.next=s.next,s.next=o}t.baseQueue=i=s,r.pending=null}if(s=e.baseState,null===i)e.memoizedState=s;else{var l=o=null,c=null,u=t=i.next,h=!1;do{var d=-536870913&u.lane;if(d!==u.lane?(gc&d)===d:(zs&d)===d){var f=u.revertLane;if(0===f)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===Hi&&(h=!0);else{if((zs&f)===f){u=u.next,f===Hi&&(h=!0);continue}d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=d,o=s):c=c.next=d,Bs.lanes|=f,Sc|=f}d=u.action,Ks&&n(s,d),s=u.hasEagerState?u.eagerState:n(s,d)}else f={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,o=s):c=c.next=f,Bs.lanes|=d,Sc|=d;u=u.next}while(null!==u&&u!==t);if(null===c?o=s:c.next=l,!Jn(s,e.memoizedState)&&(Po=!0,h&&null!==(n=qi)))throw n;e.memoizedState=s,e.baseState=o,e.baseQueue=c,r.lastRenderedState=s}return null===i&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ma(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{s=e(s,o.action),o=o.next}while(o!==i);Jn(s,t.memoizedState)||(Po=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function ga(e,t,n){var r=Bs,i=la(),s=hi;if(s){if(void 0===n)throw Error(a(407));n=n()}else n=t();var o=!Jn((Hs||i).memoizedState,n);if(o&&(i.memoizedState=n,Po=!0),i=i.queue,za(wa.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||null!==qs&&1&qs.memoizedState.tag){if(r.flags|=2048,Ma(9,{destroy:void 0},ya.bind(null,r,i,n,t),null),null===pc)throw Error(a(349));s||0!==(127&zs)||va(r,t,n)}return n}function va(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Bs.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Bs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ya(e,t,n,r){t.value=n,t.getSnapshot=r,ba(t)&&Ea(e)}function wa(e,t,n){return n(function(){ba(t)&&Ea(e)})}function ba(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch(r){return!0}}function Ea(e){var t=Pr(e,2);null!==t&&Qc(t,e,2)}function _a(e){var t=oa();if("function"===typeof e){var n=e;if(e=n(),Ks){we(!0);try{n()}finally{we(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:e},t}function Aa(e,t,n,r){return e.baseState=n,pa(e,Hs,"function"===typeof r?r:da)}function Sa(e,t,n,r,i){if(ho(e))throw Error(a(485));if(null!==(e=t.action)){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){s.listeners.push(e)}};null!==D.T?n(!0):s.isTransition=!1,r(s),null===(n=t.pending)?(s.next=t.pending=s,Ca(t,s)):(s.next=n.next,t.pending=n.next=s)}}function Ca(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var s=D.T,a={};D.T=a;try{var o=n(i,r),l=D.S;null!==l&&l(a,o),Ta(e,t,o)}catch(c){xa(e,t,c)}finally{null!==s&&null!==a.types&&(s.types=a.types),D.T=s}}else try{Ta(e,t,s=n(i,r))}catch(u){xa(e,t,u)}}function Ta(e,t,n){null!==n&&"object"===typeof n&&"function"===typeof n.then?n.then(function(n){ka(e,t,n)},function(n){return xa(e,t,n)}):ka(e,t,n)}function ka(e,t,n){t.status="fulfilled",t.value=n,Na(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Ca(e,n)))}function xa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Na(t),t=t.next}while(t!==r)}e.action=null}function Na(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ia(e,t){return t}function Oa(e,t){if(hi){var n=pc.formState;if(null!==n){e:{var r=Bs;if(hi){if(ui){t:{for(var i=ui,s=fi;8!==i.nodeType;){if(!s){i=null;break t}if(null===(i=Ph(i.nextSibling))){i=null;break t}}i="F!"===(s=i.data)||"F"===s?i:null}if(i){ui=Ph(i.nextSibling),r="F!"===i.data;break e}}mi(r)}r=!1}r&&(t=n[0])}}return(n=oa()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ia,lastRenderedState:t},n.queue=r,n=lo.bind(null,Bs,r),r.dispatch=n,r=_a(!1),s=uo.bind(null,Bs,!1,r.queue),i={state:t,dispatch:null,action:e,pending:null},(r=oa()).queue=i,n=Sa.bind(null,Bs,i,s,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ra(e){return Pa(la(),Hs,e)}function Pa(e,t,n){if(t=pa(e,t,Ia)[0],e=fa(da)[0],"object"===typeof t&&null!==t&&"function"===typeof t.then)try{var r=ca(t)}catch(a){if(a===Xi)throw Zi;throw a}else r=t;var i=(t=la()).queue,s=i.dispatch;return n!==t.memoizedState&&(Bs.flags|=2048,Ma(9,{destroy:void 0},Da.bind(null,i,n),null)),[r,s,e]}function Da(e,t){e.action=t}function La(e){var t=la(),n=Hs;if(null!==n)return Pa(t,n,e);la(),t=t.memoizedState;var r=(n=la()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ma(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Bs.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Bs.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ua(){return la().memoizedState}function Va(e,t,n,r){var i=oa();Bs.flags|=e,i.memoizedState=Ma(1|t,{destroy:void 0},n,void 0===r?null:r)}function Fa(e,t,n,r){var i=la();r=void 0===r?null:r;var s=i.memoizedState.inst;null!==Hs&&null!==r&&Zs(r,Hs.memoizedState.deps)?i.memoizedState=Ma(t,s,n,r):(Bs.flags|=e,i.memoizedState=Ma(1|t,s,n,r))}function ja(e,t){Va(8390656,8,e,t)}function za(e,t){Fa(2048,8,e,t)}function Ba(e){var t=la().memoizedState;return function(e){Bs.flags|=4;var t=Bs.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Bs.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(0!==(2&fc))throw Error(a(440));return t.impl.apply(void 0,arguments)}}function Ha(e,t){return Fa(4,2,e,t)}function qa(e,t){return Fa(4,4,e,t)}function Ga(e,t){if("function"===typeof t){e=e();var n=t(e);return function(){"function"===typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function Wa(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Fa(4,4,Ga.bind(null,t,e),n)}function Ka(){}function Qa(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Zs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ya(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Zs(t,r[1]))return r[0];if(r=e(),Ks){we(!0);try{e()}finally{we(!1)}}return n.memoizedState=[r,t],r}function $a(e,t,n){return void 0===n||0!==(1073741824&zs)&&0===(261930&gc)?e.memoizedState=t:(e.memoizedState=n,e=Kc(),Bs.lanes|=e,Sc|=e,n)}function Xa(e,t,n,r){return Jn(n,t)?n:null!==ks.current?(e=$a(e,n,r),Jn(e,t)||(Po=!0),e):0===(42&zs)||0!==(1073741824&zs)&&0===(261930&gc)?(Po=!0,e.memoizedState=n):(e=Kc(),Bs.lanes|=e,Sc|=e,t)}function Ja(e,t,n,r,i){var s=L.p;L.p=0!==s&&8>s?s:8;var a=D.T,o={};D.T=o,uo(e,!1,t,n);try{var l=i(),c=D.S;if(null!==c&&c(o,l),null!==l&&"object"===typeof l&&"function"===typeof l.then)co(e,t,function(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status="rejected",r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}(l,r),Wc());else co(e,t,r,Wc())}catch(u){co(e,t,{then:function(){},status:"rejected",reason:u},Wc())}finally{L.p=s,null!==a&&null!==o.types&&(a.types=o.types),D.T=a}}function Za(){}function eo(e,t,n,r){if(5!==e.tag)throw Error(a(476));var i=to(e).queue;Ja(e,i,t,M,null===n?Za:function(){return no(e),n(r)})}function to(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:M,baseState:M,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:M},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function no(e){var t=to(e);null===t.next&&(t=e.alternate.memoizedState),co(e,t.next.queue,{},Wc())}function ro(){return Ri(ud)}function io(){return la().memoizedState}function so(){return la().memoizedState}function ao(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Wc(),r=ws(t,e=ys(n),n);return null!==r&&(Qc(r,t,n),bs(r,t,n)),t={cache:Fi()},void(e.payload=t)}t=t.return}}function oo(e,t,n){var r=Wc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ho(e)?fo(t,n):null!==(n=Rr(e,t,n,r))&&(Qc(n,e,r),po(n,t,r))}function lo(e,t,n){co(e,t,n,Wc())}function co(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ho(e))fo(t,i);else{var s=e.alternate;if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var a=t.lastRenderedState,o=s(a,n);if(i.hasEagerState=!0,i.eagerState=o,Jn(o,a))return Or(e,t,i,0),null===pc&&Ir(),!1}catch(l){}if(null!==(n=Rr(e,t,i,r)))return Qc(n,e,r),po(n,t,r),!0}return!1}function uo(e,t,n,r){if(r={lane:2,revertLane:Bu(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ho(e)){if(t)throw Error(a(479))}else null!==(t=Rr(e,n,r,2))&&Qc(t,e,2)}function ho(e){var t=e.alternate;return e===Bs||null!==t&&t===Bs}function fo(e,t){Ws=Gs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function po(e,t,n){if(0!==(4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,De(e,n)}}var mo={readContext:Ri,use:ua,useCallback:Js,useContext:Js,useEffect:Js,useImperativeHandle:Js,useLayoutEffect:Js,useInsertionEffect:Js,useMemo:Js,useReducer:Js,useRef:Js,useState:Js,useDebugValue:Js,useDeferredValue:Js,useTransition:Js,useSyncExternalStore:Js,useId:Js,useHostTransitionStatus:Js,useFormState:Js,useActionState:Js,useOptimistic:Js,useMemoCache:Js,useCacheRefresh:Js};mo.useEffectEvent=Js;var go={readContext:Ri,use:ua,useCallback:function(e,t){return oa().memoizedState=[e,void 0===t?null:t],e},useContext:Ri,useEffect:ja,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Va(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Va(4194308,4,e,t)},useInsertionEffect:function(e,t){Va(4,2,e,t)},useMemo:function(e,t){var n=oa();t=void 0===t?null:t;var r=e();if(Ks){we(!0);try{e()}finally{we(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=oa();if(void 0!==n){var i=n(t);if(Ks){we(!0);try{n(t)}finally{we(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=oo.bind(null,Bs,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},oa().memoizedState=e},useState:function(e){var t=(e=_a(e)).queue,n=lo.bind(null,Bs,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ka,useDeferredValue:function(e,t){return $a(oa(),e,t)},useTransition:function(){var e=_a(!1);return e=Ja.bind(null,Bs,e.queue,!0,!1),oa().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Bs,i=oa();if(hi){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===pc)throw Error(a(349));0!==(127&gc)||va(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,ja(wa.bind(null,r,s,e),[e]),r.flags|=2048,Ma(9,{destroy:void 0},ya.bind(null,r,s,n,t),null),n},useId:function(){var e=oa(),t=pc.identifierPrefix;if(hi){var n=ri;t="_"+t+"R_"+(n=(ni&~(1<<32-be(ni)-1)).toString(32)+n),0<(n=Qs++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Xs++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ro,useFormState:Oa,useActionState:Oa,useOptimistic:function(e){var t=oa();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=uo.bind(null,Bs,!0,n),n.dispatch=t,[e,t]},useMemoCache:ha,useCacheRefresh:function(){return oa().memoizedState=ao.bind(null,Bs)},useEffectEvent:function(e){var t=oa(),n={impl:e};return t.memoizedState=n,function(){if(0!==(2&fc))throw Error(a(440));return n.impl.apply(void 0,arguments)}}},vo={readContext:Ri,use:ua,useCallback:Qa,useContext:Ri,useEffect:za,useImperativeHandle:Wa,useInsertionEffect:Ha,useLayoutEffect:qa,useMemo:Ya,useReducer:fa,useRef:Ua,useState:function(){return fa(da)},useDebugValue:Ka,useDeferredValue:function(e,t){return Xa(la(),Hs.memoizedState,e,t)},useTransition:function(){var e=fa(da)[0],t=la().memoizedState;return["boolean"===typeof e?e:ca(e),t]},useSyncExternalStore:ga,useId:io,useHostTransitionStatus:ro,useFormState:Ra,useActionState:Ra,useOptimistic:function(e,t){return Aa(la(),0,e,t)},useMemoCache:ha,useCacheRefresh:so};vo.useEffectEvent=Ba;var yo={readContext:Ri,use:ua,useCallback:Qa,useContext:Ri,useEffect:za,useImperativeHandle:Wa,useInsertionEffect:Ha,useLayoutEffect:qa,useMemo:Ya,useReducer:ma,useRef:Ua,useState:function(){return ma(da)},useDebugValue:Ka,useDeferredValue:function(e,t){var n=la();return null===Hs?$a(n,e,t):Xa(n,Hs.memoizedState,e,t)},useTransition:function(){var e=ma(da)[0],t=la().memoizedState;return["boolean"===typeof e?e:ca(e),t]},useSyncExternalStore:ga,useId:io,useHostTransitionStatus:ro,useFormState:La,useActionState:La,useOptimistic:function(e,t){var n=la();return null!==Hs?Aa(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ha,useCacheRefresh:so};function wo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:f({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}yo.useEffectEvent=Ba;var bo={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Wc(),i=ys(r);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=ws(e,i,r))&&(Qc(t,e,r),bs(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Wc(),i=ys(r);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=ws(e,i,r))&&(Qc(t,e,r),bs(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Wc(),r=ys(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=ws(e,r,n))&&(Qc(t,e,n),bs(t,e,n))}};function Eo(e,t,n,r,i,s,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,s,a):!t.prototype||!t.prototype.isPureReactComponent||(!Zn(n,r)||!Zn(i,s))}function _o(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bo.enqueueReplaceState(t,t.state,null)}function Ao(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}function So(e){Tr(e)}function Co(e){console.error(e)}function To(e){Tr(e)}function ko(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function xo(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function No(e,t,n){return(n=ys(n)).tag=3,n.payload={element:null},n.callback=function(){ko(e,t)},n}function Io(e){return(e=ys(e)).tag=3,e}function Oo(e,t,n,r){var i=n.type.getDerivedStateFromError;if("function"===typeof i){var s=r.value;e.payload=function(){return i(s)},e.callback=function(){xo(t,n,r)}}var a=n.stateNode;null!==a&&"function"===typeof a.componentDidCatch&&(e.callback=function(){xo(t,n,r),"function"!==typeof i&&(null===Mc?Mc=new Set([this]):Mc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ro=Error(a(461)),Po=!1;function Do(e,t,n,r){t.child=null===e?ps(t,null,n,r):fs(t,e.child,n,r)}function Lo(e,t,n,r,i){n=n.render;var s=t.ref;if("ref"in r){var a={};for(var o in r)"ref"!==o&&(a[o]=r[o])}else a=r;return Oi(t),r=ea(e,t,n,a,s,i),o=ia(),null===e||Po?(hi&&o&&ai(t),t.flags|=1,Do(e,t,r,i),t.child):(sa(e,t,i),il(e,t,i))}function Mo(e,t,n,r,i){if(null===e){var s=n.type;return"function"!==typeof s||Fr(s)||void 0!==s.defaultProps||null!==n.compare?((e=Br(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Uo(e,t,s,r,i))}if(s=e.child,!sl(e,i)){var a=s.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(a,r)&&e.ref===t.ref)return il(e,t,i)}return t.flags|=1,(e=jr(s,r)).ref=t.ref,e.return=t,t.child=e}function Uo(e,t,n,r,i){if(null!==e){var s=e.memoizedProps;if(Zn(s,r)&&e.ref===t.ref){if(Po=!1,t.pendingProps=r=s,!sl(e,i))return t.lanes=e.lanes,il(e,t,i);0!==(131072&e.flags)&&(Po=!0)}}return qo(e,t,n,r,i)}function Vo(e,t,n,r){var i=r.children,s=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(0!==(128&t.flags)){if(s=null!==s?s.baseLanes|n:n,null!==e){for(r=t.child=e.child,i=0;null!==r;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~s}else r=0,t.child=null;return jo(e,t,s,n,r)}if(0===(536870912&n))return r=t.lanes=536870912,jo(e,t,null!==s?s.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Yi(0,null!==s?s.cachePool:null),null!==s?Ns(t,s):Is(),Ms(t)}else null!==s?(Yi(0,s.cachePool),Ns(t,s),Us(),t.memoizedState=null):(null!==e&&Yi(0,null),Is(),Us());return Do(e,t,i,n),t.child}function Fo(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function jo(e,t,n,r,i){var s=Qi();return s=null===s?null:{parent:Vi._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},null!==e&&Yi(0,null),Is(),Ms(t),null!==e&&Ni(e,t,r,!0),t.childLanes=i,null}function zo(e,t){return(t=Zo({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Bo(e,t,n){return fs(t,e.child,null,n),(e=zo(t,t.pendingProps)).flags|=2,Vs(t),t.memoizedState=null,e}function Ho(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!==typeof n&&"object"!==typeof n)throw Error(a(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function qo(e,t,n,r,i){return Oi(t),n=ea(e,t,n,r,void 0,i),r=ia(),null===e||Po?(hi&&r&&ai(t),t.flags|=1,Do(e,t,n,i),t.child):(sa(e,t,i),il(e,t,i))}function Go(e,t,n,r,i,s){return Oi(t),t.updateQueue=null,n=na(t,r,n,i),ta(e),r=ia(),null===e||Po?(hi&&r&&ai(t),t.flags|=1,Do(e,t,n,s),t.child):(sa(e,t,s),il(e,t,s))}function Wo(e,t,n,r,i){if(Oi(t),null===t.stateNode){var s=Mr,a=n.contextType;"object"===typeof a&&null!==a&&(s=Ri(a)),s=new n(r,s),t.memoizedState=null!==s.state&&void 0!==s.state?s.state:null,s.updater=bo,t.stateNode=s,s._reactInternals=t,(s=t.stateNode).props=r,s.state=t.memoizedState,s.refs={},gs(t),a=n.contextType,s.context="object"===typeof a&&null!==a?Ri(a):Mr,s.state=t.memoizedState,"function"===typeof(a=n.getDerivedStateFromProps)&&(wo(t,n,a,r),s.state=t.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof s.getSnapshotBeforeUpdate||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||(a=s.state,"function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount(),a!==s.state&&bo.enqueueReplaceState(s,s.state,null),Ss(t,r,s,i),As(),s.state=t.memoizedState),"function"===typeof s.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){s=t.stateNode;var o=t.memoizedProps,l=Ao(n,o);s.props=l;var c=s.context,u=n.contextType;a=Mr,"object"===typeof u&&null!==u&&(a=Ri(u));var h=n.getDerivedStateFromProps;u="function"===typeof h||"function"===typeof s.getSnapshotBeforeUpdate,o=t.pendingProps!==o,u||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(o||c!==a)&&_o(t,s,r,a),ms=!1;var d=t.memoizedState;s.state=d,Ss(t,r,s,i),As(),c=t.memoizedState,o||d!==c||ms?("function"===typeof h&&(wo(t,n,h,r),c=t.memoizedState),(l=ms||Eo(t,n,l,r,d,c,a))?(u||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||("function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"===typeof s.componentDidMount&&(t.flags|=4194308)):("function"===typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=a,r=l):("function"===typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,vs(e,t),u=Ao(n,a=t.memoizedProps),s.props=u,h=t.pendingProps,d=s.context,c=n.contextType,l=Mr,"object"===typeof c&&null!==c&&(l=Ri(c)),(c="function"===typeof(o=n.getDerivedStateFromProps)||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==h||d!==l)&&_o(t,s,r,l),ms=!1,d=t.memoizedState,s.state=d,Ss(t,r,s,i),As();var f=t.memoizedState;a!==h||d!==f||ms||null!==e&&null!==e.dependencies&&Ii(e.dependencies)?("function"===typeof o&&(wo(t,n,o,r),f=t.memoizedState),(u=ms||Eo(t,n,u,r,d,f,l)||null!==e&&null!==e.dependencies&&Ii(e.dependencies))?(c||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(r,f,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof s.componentDidUpdate&&(t.flags|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),s.props=r,s.state=f,s.context=l,r=u):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return s=r,Ho(e,t),r=0!==(128&t.flags),s||r?(s=t.stateNode,n=r&&"function"!==typeof n.getDerivedStateFromError?null:s.render(),t.flags|=1,null!==e&&r?(t.child=fs(t,e.child,null,i),t.child=fs(t,null,n,i)):Do(e,t,n,i),t.memoizedState=s.state,e=t.child):e=il(e,t,i),e}function Ko(e,t,n,r){return wi(),t.flags|=256,Do(e,t,n,r),t.child}var Qo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yo(e){return{baseLanes:e,cachePool:$i()}}function $o(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=kc),e}function Xo(e,t,n){var r,i=t.pendingProps,s=!1,o=0!==(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!==(2&Fs.current)),r&&(s=!0,t.flags&=-129),r=0!==(32&t.flags),t.flags&=-33,null===e){if(hi){if(s?Ds(t):Us(),(e=ui)?null!==(e=null!==(e=Ih(e,fi))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ti?{id:ni,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},(n=Gr(e)).return=t,t.child=n,ci=t,ui=null):e=null,null===e)throw mi(t);return Rh(e)?t.lanes=32:t.lanes=536870912,null}var l=i.children;return i=i.fallback,s?(Us(),l=Zo({mode:"hidden",children:l},s=t.mode),i=Hr(i,s,n,null),l.return=t,i.return=t,l.sibling=i,t.child=l,(i=t.child).memoizedState=Yo(n),i.childLanes=$o(e,r,n),t.memoizedState=Qo,Fo(null,i)):(Ds(t),Jo(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(o)256&t.flags?(Ds(t),t.flags&=-257,t=el(e,t,n)):null!==t.memoizedState?(Us(),t.child=e.child,t.flags|=128,t=null):(Us(),l=i.fallback,s=t.mode,i=Zo({mode:"visible",children:i.children},s),(l=Hr(l,s,n,null)).flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,fs(t,e.child,null,n),(i=t.child).memoizedState=Yo(n),i.childLanes=$o(e,r,n),t.memoizedState=Qo,t=Fo(null,i));else if(Ds(t),Rh(l)){if(r=l.nextSibling&&l.nextSibling.dataset)var u=r.dgst;r=u,(i=Error(a(419))).stack="",i.digest=r,Ei({value:i,source:null,stack:null}),t=el(e,t,n)}else if(Po||Ni(e,t,n,!1),r=0!==(n&e.childLanes),Po||r){if(null!==(r=pc)&&(0!==(i=Le(r,n))&&i!==c.retryLane))throw c.retryLane=i,Pr(e,i),Qc(r,e,i),Ro;Oh(l)||au(),t=el(e,t,n)}else Oh(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,ui=Ph(l.nextSibling),ci=t,hi=!0,di=null,fi=!1,null!==e&&li(t,e),(t=Jo(t,i.children)).flags|=4096);return t}return s?(Us(),l=i.fallback,s=t.mode,u=(c=e.child).sibling,(i=jr(c,{mode:"hidden",children:i.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?l=jr(u,l):(l=Hr(l,s,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,Fo(null,i),i=t.child,null===(l=e.child.memoizedState)?l=Yo(n):(null!==(s=l.cachePool)?(c=Vi._currentValue,s=s.parent!==c?{parent:c,pool:c}:s):s=$i(),l={baseLanes:l.baseLanes|n,cachePool:s}),i.memoizedState=l,i.childLanes=$o(e,r,n),t.memoizedState=Qo,Fo(e.child,i)):(Ds(t),e=(n=e.child).sibling,(n=jr(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Jo(e,t){return(t=Zo({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Zo(e,t){return(e=Vr(22,e,null,t)).lanes=0,e}function el(e,t,n){return fs(t,e.child,null,n),(e=Jo(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ki(e.return,t,n)}function nl(e,t,n,r,i,s){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:s}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.treeForkCount=s)}function rl(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;r=r.children;var a=Fs.current,o=0!==(2&a);if(o?(a=1&a|2,t.flags|=128):a&=1,z(Fs,a),Do(e,t,r,n),r=hi?Jr:0,!o&&null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tl(e,n,t);else if(19===e.tag)tl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===js(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),nl(t,!1,i,n,s,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===js(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}nl(t,!0,n,null,s,r);break;case"together":nl(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function il(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Sc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ni(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=jr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=jr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function sl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ii(e))}function al(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Po=!0;else{if(!sl(e,n)&&0===(128&t.flags))return Po=!1,function(e,t,n){switch(t.tag){case 3:Q(t,t.stateNode.containerInfo),Ci(0,Vi,e.memoizedState.cache),wi();break;case 27:case 5:$(t);break;case 4:Q(t,t.stateNode.containerInfo);break;case 10:Ci(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Ls(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Ds(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Xo(e,t,n):(Ds(t),null!==(e=il(e,t,n))?e.sibling:null);Ds(t);break;case 19:var i=0!==(128&e.flags);if((r=0!==(n&t.childLanes))||(Ni(e,t,n,!1),r=0!==(n&t.childLanes)),i){if(r)return rl(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),z(Fs,Fs.current),r)break;return null;case 22:return t.lanes=0,Vo(e,t,n,t.pendingProps);case 24:Ci(0,Vi,e.memoizedState.cache)}return il(e,t,n)}(e,t,n);Po=0!==(131072&e.flags)}else Po=!1,hi&&0!==(1048576&t.flags)&&si(t,Jr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=rs(t.elementType),t.type=e,"function"!==typeof e){if(void 0!==e&&null!==e){var i=e.$$typeof;if(i===_){t.tag=11,t=Lo(null,t,e,r,n);break e}if(i===C){t.tag=14,t=Mo(null,t,e,r,n);break e}}throw t=R(e)||e,Error(a(306,t,""))}Fr(e)?(r=Ao(e,r),t.tag=1,t=Wo(null,t,e,r,n)):(t.tag=0,t=qo(null,t,e,r,n))}return t;case 0:return qo(e,t,t.type,t.pendingProps,n);case 1:return Wo(e,t,r=t.type,i=Ao(r,t.pendingProps),n);case 3:e:{if(Q(t,t.stateNode.containerInfo),null===e)throw Error(a(387));r=t.pendingProps;var s=t.memoizedState;i=s.element,vs(e,t),Ss(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Ci(0,Vi,r),r!==s.cache&&xi(t,[Vi],n,!0),As(),r=o.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ko(e,t,r,n);break e}if(r!==i){Ei(i=Qr(Error(a(424)),t)),t=Ko(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(ui=Ph(e.firstChild),ci=t,hi=!0,di=null,fi=!0,n=ps(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(wi(),r===i){t=il(e,t,n);break e}Do(e,t,r,n)}t=t.child}return t;case 26:return Ho(e,t),null===e?(n=Gh(t.type,null,t.pendingProps,null))?t.memoizedState=n:hi||(n=t.type,e=t.pendingProps,(r=gh(W.current).createElement(n))[ze]=t,r[Be]=e,dh(r,n,e),et(r),t.stateNode=r):t.memoizedState=Gh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $(t),null===e&&hi&&(r=t.stateNode=Uh(t.type,t.pendingProps,W.current),ci=t,fi=!0,i=ui,Th(t.type)?(Dh=i,ui=Ph(r.firstChild)):ui=i),Do(e,t,t.pendingProps.children,n),Ho(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&hi&&((i=r=ui)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Qe])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(s=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(s!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((s=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var s=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===s)return e}if(null===(e=Ph(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,fi))?(t.stateNode=r,ci=t,ui=Ph(r.firstChild),fi=!1,i=!0):i=!1),i||mi(t)),$(t),i=t.type,s=t.pendingProps,o=null!==e?e.memoizedProps:null,r=s.children,wh(i,s)?r=null:null!==o&&wh(i,o)&&(t.flags|=32),null!==t.memoizedState&&(i=ea(e,t,ra,null,null,n),ud._currentValue=i),Ho(e,t),Do(e,t,r,n),t.child;case 6:return null===e&&hi&&((e=n=ui)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Ph(e.nextSibling)))return null}return e}(n,t.pendingProps,fi))?(t.stateNode=n,ci=t,ui=null,e=!0):e=!1),e||mi(t)),null;case 13:return Xo(e,t,n);case 4:return Q(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=fs(t,null,r,n):Do(e,t,r,n),t.child;case 11:return Lo(e,t,t.type,t.pendingProps,n);case 7:return Do(e,t,t.pendingProps,n),t.child;case 8:case 12:return Do(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ci(0,t.type,r.value),Do(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Oi(t),r=r(i=Ri(i)),t.flags|=1,Do(e,t,r,n),t.child;case 14:return Mo(e,t,t.type,t.pendingProps,n);case 15:return Uo(e,t,t.type,t.pendingProps,n);case 19:return rl(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,i=0!==(128&t.flags);if(t.flags&=-129,null===e){if(hi){if("hidden"===r.mode)return e=zo(t,r),t.lanes=536870912,Fo(null,e);if(Ls(t),(e=ui)?null!==(e=null!==(e=Ih(e,fi))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ti?{id:ni,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},(n=Gr(e)).return=t,t.child=n,ci=t,ui=null):e=null,null===e)throw mi(t);return t.lanes=536870912,null}return zo(t,r)}var s=e.memoizedState;if(null!==s){var o=s.dehydrated;if(Ls(t),i)if(256&t.flags)t.flags&=-257,t=Bo(e,t,n);else{if(null===t.memoizedState)throw Error(a(558));t.child=e.child,t.flags|=128,t=null}else if(Po||Ni(e,t,n,!1),i=0!==(n&e.childLanes),Po||i){if(null!==(r=pc)&&0!==(o=Le(r,n))&&o!==s.retryLane)throw s.retryLane=o,Pr(e,o),Qc(r,e,o),Ro;au(),t=Bo(e,t,n)}else e=s.treeContext,ui=Ph(o.nextSibling),ci=t,hi=!0,di=null,fi=!1,null!==e&&li(t,e),(t=zo(t,r)).flags|=4096;return t}return(e=jr(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Vo(e,t,n,t.pendingProps);case 24:return Oi(t),r=Ri(Vi),null===e?(null===(i=Qi())&&(i=pc,s=Fi(),i.pooledCache=s,s.refCount++,null!==s&&(i.pooledCacheLanes|=n),i=s),t.memoizedState={parent:r,cache:i},gs(t),Ci(0,Vi,i)):(0!==(e.lanes&n)&&(vs(e,t),Ss(t,null,null,n),As()),i=e.memoizedState,s=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),Ci(0,Vi,r)):(r=s.cache,Ci(0,Vi,r),r!==i.cache&&xi(t,[Vi],n,!0))),Do(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function ol(e){e.flags|=4}function ll(e,t,n,r,i){if((t=0!==(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&i)===i)if(e.stateNode.complete)e.flags|=8192;else{if(!ru())throw is=es,Ji;e.flags|=8192}}else e.flags&=-16777217}function cl(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!id(t)){if(!ru())throw is=es,Ji;e.flags|=8192}}function ul(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ie():536870912,e.lanes|=t,xc|=t)}function hl(e,t){if(!hi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function dl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=65011712&i.subtreeFlags,r|=65011712&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function fl(e,t,n){var r=t.pendingProps;switch(oi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return dl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ti(Vi),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(yi(t)?ol(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,bi())),dl(t),null;case 26:var i=t.type,s=t.memoizedState;return null===e?(ol(t),null!==s?(dl(t),cl(t,s)):(dl(t),ll(t,i,0,0,n))):s?s!==e.memoizedState?(ol(t),dl(t),cl(t,s)):(dl(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&ol(t),dl(t),ll(t,i,0,0,n)),null;case 27:if(X(t),n=W.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ol(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return dl(t),null}e=q.current,yi(t)?gi(t):(e=Uh(i,r,n),t.stateNode=e,ol(t))}return dl(t),null;case 5:if(X(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ol(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return dl(t),null}if(s=q.current,yi(t))gi(t);else{var o=gh(W.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(s=o.createElement("div")).innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s="string"===typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?s.multiple=!0:r.size&&(s.size=r.size);break;default:s="string"===typeof r.is?o.createElement(i,{is:r.is}):o.createElement(i)}}s[ze]=t,s[Be]=r;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)s.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=s;e:switch(dh(s,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&ol(t)}}return dl(t),ll(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ol(t);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(e=W.current,yi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(i=ci))switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ze]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||ch(e.nodeValue,n)))||mi(t,!0)}else(e=gh(e).createTextNode(r))[ze]=t,t.stateNode=e}return dl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=yi(t),null!==n){if(null===e){if(!r)throw Error(a(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(a(557));e[ze]=t}else wi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;dl(t),e=!1}else n=bi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Vs(t),t):(Vs(t),null);if(0!==(128&t.flags))throw Error(a(558))}return dl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=yi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[ze]=t}else wi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;dl(t),i=!1}else i=bi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(Vs(t),t):(Vs(t),null)}return Vs(t),0!==(128&t.flags)?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(i=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(i=r.alternate.memoizedState.cachePool.pool),s=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(s=r.memoizedState.cachePool.pool),s!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ul(t,t.updateQueue),dl(t),null);case 4:return Y(),null===e&&Zu(t.stateNode.containerInfo),dl(t),null;case 10:return Ti(t.type),dl(t),null;case 19:if(j(Fs),null===(r=t.memoizedState))return dl(t),null;if(i=0!==(128&t.flags),null===(s=r.rendering))if(i)hl(r,!1);else{if(0!==Ac||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=js(e))){for(t.flags|=128,hl(r,!1),e=s.updateQueue,t.updateQueue=e,ul(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)zr(n,e),n=n.sibling;return z(Fs,1&Fs.current|2),hi&&ii(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&le()>Dc&&(t.flags|=128,i=!0,hl(r,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=js(s))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ul(t,e),hl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!hi)return dl(t),null}else 2*le()-r.renderingStartTime>Dc&&536870912!==n&&(t.flags|=128,i=!0,hl(r,!1),t.lanes=4194304);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(e=r.last)?e.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=le(),e.sibling=null,n=Fs.current,z(Fs,i?1&n|2:1&n),hi&&ii(t,r.treeForkCount),e):(dl(t),null);case 22:case 23:return Vs(t),Os(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!==(536870912&n)&&0===(128&t.flags)&&(dl(t),6&t.subtreeFlags&&(t.flags|=8192)):dl(t),null!==(n=t.updateQueue)&&ul(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&j(Ki),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ti(Vi),dl(t),null;case 25:case 30:return null}throw Error(a(156,t.tag))}function pl(e,t){switch(oi(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ti(Vi),Y(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 31:if(null!==t.memoizedState){if(Vs(t),null===t.alternate)throw Error(a(340));wi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Vs(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));wi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return j(Fs),null;case 4:return Y(),null;case 10:return Ti(t.type),null;case 22:case 23:return Vs(t),Os(),null!==e&&j(Ki),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ti(Vi),null;default:return null}}function ml(e,t){switch(oi(t),t.tag){case 3:Ti(Vi),Y();break;case 26:case 27:case 5:X(t);break;case 4:Y();break;case 31:null!==t.memoizedState&&Vs(t);break;case 13:Vs(t);break;case 19:j(Fs);break;case 10:Ti(t.type);break;case 22:case 23:Vs(t),Os(),null!==e&&j(Ki);break;case 24:Ti(Vi)}}function gl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var s=n.create,a=n.inst;r=s(),a.destroy=r}n=n.next}while(n!==i)}}catch(o){Au(t,t.return,o)}}function vl(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var s=i.next;r=s;do{if((r.tag&e)===e){var a=r.inst,o=a.destroy;if(void 0!==o){a.destroy=void 0,i=t;var l=n,c=o;try{c()}catch(u){Au(i,l,u)}}}r=r.next}while(r!==s)}}catch(u){Au(t,t.return,u)}}function yl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Ts(t,n)}catch(r){Au(e,e.return,r)}}}function wl(e,t,n){n.props=Ao(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Au(e,t,r)}}function bl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"===typeof n?e.refCleanup=n(r):n.current=r}}catch(i){Au(e,t,i)}}function El(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"===typeof r)try{r()}catch(i){Au(e,t,i)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(s){Au(e,t,s)}else n.current=null}function _l(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){Au(e,e.return,i)}}function Al(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,o=null,l=null,c=null,u=null,h=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&null!=d)switch(p){case"checked":case"value":break;case"defaultValue":c=d;default:r.hasOwnProperty(p)||uh(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(null!=p||null!=d))switch(f){case"type":s=p;break;case"name":i=p;break;case"checked":u=p;break;case"defaultChecked":h=p;break;case"value":o=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(a(137,t));break;default:p!==d&&uh(e,t,f,p,r,d)}}return void yt(e,o,l,c,u,h,s,i);case"select":for(s in p=o=l=f=null,n)if(c=n[s],n.hasOwnProperty(s)&&null!=c)switch(s){case"value":break;case"multiple":p=c;default:r.hasOwnProperty(s)||uh(e,t,s,null,r,c)}for(i in r)if(s=r[i],c=n[i],r.hasOwnProperty(i)&&(null!=s||null!=c))switch(i){case"value":f=s;break;case"defaultValue":l=s;break;case"multiple":o=s;default:s!==c&&uh(e,t,i,s,r,c)}return t=l,n=o,r=p,void(null!=f?Et(e,!!n,f,!1):!!r!==!!n&&(null!=t?Et(e,!!n,t,!0):Et(e,!!n,n?[]:"",!1)));case"textarea":for(l in p=f=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:uh(e,t,l,null,r,i)}for(o in r)if(i=r[o],s=n[o],r.hasOwnProperty(o)&&(null!=i||null!=s))switch(o){case"value":f=i;break;case"defaultValue":p=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(a(91));break;default:i!==s&&uh(e,t,o,i,r,s)}return void _t(e,f,p);case"option":for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&null!=f&&!r.hasOwnProperty(m))if("selected"===m)e.selected=!1;else uh(e,t,m,null,r,f);for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(null!=f||null!=p))if("selected"===c)e.selected=f&&"function"!==typeof f&&"symbol"!==typeof f;else uh(e,t,c,f,r,p);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)f=n[g],n.hasOwnProperty(g)&&null!=f&&!r.hasOwnProperty(g)&&uh(e,t,g,null,r,f);for(u in r)if(f=r[u],p=n[u],r.hasOwnProperty(u)&&f!==p&&(null!=f||null!=p))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(a(137,t));break;default:uh(e,t,u,f,r,p)}return;default:if(xt(t)){for(var v in n)f=n[v],n.hasOwnProperty(v)&&void 0!==f&&!r.hasOwnProperty(v)&&hh(e,t,v,void 0,r,f);for(h in r)f=r[h],p=n[h],!r.hasOwnProperty(h)||f===p||void 0===f&&void 0===p||hh(e,t,h,f,r,p);return}}for(var y in n)f=n[y],n.hasOwnProperty(y)&&null!=f&&!r.hasOwnProperty(y)&&uh(e,t,y,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||null==f&&null==p||uh(e,t,d,f,r,p)}(r,e.type,n,t),r[Be]=t}catch(i){Au(e,e.return,i)}}function Sl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Th(e.type)||4===e.tag}function Cl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Th(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Tl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Rt));else if(4!==r&&(27===r&&Th(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Tl(e,t,n),e=e.sibling;null!==e;)Tl(e,t,n),e=e.sibling}function kl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&Th(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(kl(e,t,n),e=e.sibling;null!==e;)kl(e,t,n),e=e.sibling}function xl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dh(t,r,n),t[ze]=e,t[Be]=n}catch(s){Au(e,e.return,s)}}var Nl=!1,Il=!1,Ol=!1,Rl="function"===typeof WeakSet?WeakSet:Set,Pl=null;function Dl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ql(e,n),4&r&&gl(5,n);break;case 1:if(Ql(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(a){Au(n,n.return,a)}else{var i=Ao(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Au(n,n.return,o)}}64&r&&yl(n),512&r&&bl(n,n.return);break;case 3:if(Ql(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Ts(e,t)}catch(a){Au(n,n.return,a)}}break;case 27:null===t&&4&r&&xl(n);case 26:case 5:Ql(e,n),null===t&&4&r&&_l(n),512&r&&bl(n,n.return);break;case 12:Ql(e,n);break;case 31:Ql(e,n),4&r&&jl(e,n);break;case 13:Ql(e,n),4&r&&zl(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=ku.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Nl)){t=null!==t&&null!==t.memoizedState||Il,i=Nl;var s=Il;Nl=r,(Il=t)&&!s?$l(e,n,0!==(8772&n.subtreeFlags)):Ql(e,n),Nl=i,Il=s}break;case 30:break;default:Ql(e,n)}}function Ll(e){var t=e.alternate;null!==t&&(e.alternate=null,Ll(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ye(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ml=null,Ul=!1;function Vl(e,t,n){for(n=n.child;null!==n;)Fl(e,t,n),n=n.sibling}function Fl(e,t,n){if(ye&&"function"===typeof ye.onCommitFiberUnmount)try{ye.onCommitFiberUnmount(ve,n)}catch(s){}switch(n.tag){case 26:Il||El(n,t),Vl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Il||El(n,t);var r=Ml,i=Ul;Th(n.type)&&(Ml=n.stateNode,Ul=!1),Vl(e,t,n),Vh(n.stateNode),Ml=r,Ul=i;break;case 5:Il||El(n,t);case 6:if(r=Ml,i=Ul,Ml=null,Vl(e,t,n),Ul=i,null!==(Ml=r))if(Ul)try{(9===Ml.nodeType?Ml.body:"HTML"===Ml.nodeName?Ml.ownerDocument.body:Ml).removeChild(n.stateNode)}catch(a){Au(n,t,a)}else try{Ml.removeChild(n.stateNode)}catch(a){Au(n,t,a)}break;case 18:null!==Ml&&(Ul?(kh(9===(e=Ml).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),qd(e)):kh(Ml,n.stateNode));break;case 4:r=Ml,i=Ul,Ml=n.stateNode.containerInfo,Ul=!0,Vl(e,t,n),Ml=r,Ul=i;break;case 0:case 11:case 14:case 15:vl(2,n,t),Il||vl(4,n,t),Vl(e,t,n);break;case 1:Il||(El(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount&&wl(n,t,r)),Vl(e,t,n);break;case 21:Vl(e,t,n);break;case 22:Il=(r=Il)||null!==n.memoizedState,Vl(e,t,n),Il=r;break;default:Vl(e,t,n)}}function jl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{qd(e)}catch(n){Au(t,t.return,n)}}}function zl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{qd(e)}catch(n){Au(t,t.return,n)}}function Bl(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Rl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Rl),t;default:throw Error(a(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=xu.bind(null,e,t);t.then(r,r)}})}function Hl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r],s=e,o=t,l=o;e:for(;null!==l;){switch(l.tag){case 27:if(Th(l.type)){Ml=l.stateNode,Ul=!1;break e}break;case 5:Ml=l.stateNode,Ul=!1;break e;case 3:case 4:Ml=l.stateNode.containerInfo,Ul=!0;break e}l=l.return}if(null===Ml)throw Error(a(160));Fl(s,o,i),Ml=null,Ul=!1,null!==(s=i.alternate)&&(s.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Gl(t,e),t=t.sibling}var ql=null;function Gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Hl(t,e),Wl(e),4&r&&(vl(3,e,e.return),gl(3,e),vl(5,e,e.return));break;case 1:Hl(t,e),Wl(e),512&r&&(Il||null===n||El(n,n.return)),64&r&&Nl&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var i=ql;if(Hl(t,e),Wl(e),512&r&&(Il||null===n||El(n,n.return)),4&r){var s=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":(!(s=i.getElementsByTagName("title")[0])||s[Qe]||s[ze]||"http://www.w3.org/2000/svg"===s.namespaceURI||s.hasAttribute("itemprop"))&&(s=i.createElement(r),i.head.insertBefore(s,i.querySelector("head > title"))),dh(s,r,n),s[ze]=e,et(s),r=s;break e;case"link":var o=nd("link","href",i).get(r+(n.href||""));if(o)for(var l=0;l<o.length;l++)if((s=o[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&s.getAttribute("rel")===(null==n.rel?null:n.rel)&&s.getAttribute("title")===(null==n.title?null:n.title)&&s.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){o.splice(l,1);break t}dh(s=i.createElement(r),r,n),i.head.appendChild(s);break;case"meta":if(o=nd("meta","content",i).get(r+(n.content||"")))for(l=0;l<o.length;l++)if((s=o[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&s.getAttribute("name")===(null==n.name?null:n.name)&&s.getAttribute("property")===(null==n.property?null:n.property)&&s.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&s.getAttribute("charset")===(null==n.charSet?null:n.charSet)){o.splice(l,1);break t}dh(s=i.createElement(r),r,n),i.head.appendChild(s);break;default:throw Error(a(468,r))}s[ze]=e,et(s),r=s}e.stateNode=r}else rd(i,e.type,e.stateNode);else e.stateNode=Xh(i,r,e.memoizedProps);else s!==r?(null===s?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):s.count--,null===r?rd(i,e.type,e.stateNode):Xh(i,r,e.memoizedProps)):null===r&&null!==e.stateNode&&Al(e,e.memoizedProps,n.memoizedProps)}break;case 27:Hl(t,e),Wl(e),512&r&&(Il||null===n||El(n,n.return)),null!==n&&4&r&&Al(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Hl(t,e),Wl(e),512&r&&(Il||null===n||El(n,n.return)),32&e.flags){i=e.stateNode;try{St(i,"")}catch(m){Au(e,e.return,m)}}4&r&&null!=e.stateNode&&Al(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&r&&(Ol=!0);break;case 6:if(Hl(t,e),Wl(e),4&r){if(null===e.stateNode)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){Au(e,e.return,m)}}break;case 3:if(td=null,i=ql,ql=zh(t.containerInfo),Hl(t,e),ql=i,Wl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qd(t.containerInfo)}catch(m){Au(e,e.return,m)}Ol&&(Ol=!1,Kl(e));break;case 4:r=ql,ql=zh(e.stateNode.containerInfo),Hl(t,e),Wl(e),ql=r;break;case 12:default:Hl(t,e),Wl(e);break;case 31:case 19:Hl(t,e),Wl(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Bl(e,r)));break;case 13:Hl(t,e),Wl(e),8192&e.child.flags&&null!==e.memoizedState!==(null!==n&&null!==n.memoizedState)&&(Rc=le()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Bl(e,r)));break;case 22:i=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Nl,h=Il;if(Nl=u||i,Il=h||c,Hl(t,e),Il=h,Nl=u,Wl(e),8192&r)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||c||Nl||Il||Yl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(s=c.stateNode,i)"function"===typeof(o=s.style).setProperty?o.setProperty("display","none","important"):o.display="none";else{l=c.stateNode;var d=c.memoizedProps.style,f=void 0!==d&&null!==d&&d.hasOwnProperty("display")?d.display:null;l.style.display=null==f||"boolean"===typeof f?"":(""+f).trim()}}catch(m){Au(c,c.return,m)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(m){Au(c,c.return,m)}}}else if(18===t.tag){if(null===n){c=t;try{var p=c.stateNode;i?xh(p,!0):xh(c.stateNode,!1)}catch(m){Au(c,c.return,m)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,Bl(e,n))));case 30:case 21:}}function Wl(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(Sl(r)){n=r;break}r=r.return}if(null==n)throw Error(a(160));switch(n.tag){case 27:var i=n.stateNode;kl(e,Cl(e),i);break;case 5:var s=n.stateNode;32&n.flags&&(St(s,""),n.flags&=-33),kl(e,Cl(e),s);break;case 3:case 4:var o=n.stateNode.containerInfo;Tl(e,Cl(e),o);break;default:throw Error(a(161))}}catch(l){Au(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Kl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Kl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Ql(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Dl(e,t.alternate,t),t=t.sibling}function Yl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vl(4,t,t.return),Yl(t);break;case 1:El(t,t.return);var n=t.stateNode;"function"===typeof n.componentWillUnmount&&wl(t,t.return,n),Yl(t);break;case 27:Vh(t.stateNode);case 26:case 5:El(t,t.return),Yl(t);break;case 22:null===t.memoizedState&&Yl(t);break;default:Yl(t)}e=e.sibling}}function $l(e,t,n){for(n=n&&0!==(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,i=e,s=t,a=s.flags;switch(s.tag){case 0:case 11:case 15:$l(i,s,n),gl(4,s);break;case 1:if($l(i,s,n),"function"===typeof(i=(r=s).stateNode).componentDidMount)try{i.componentDidMount()}catch(c){Au(r,r.return,c)}if(null!==(i=(r=s).updateQueue)){var o=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Cs(l[i],o)}catch(c){Au(r,r.return,c)}}n&&64&a&&yl(s),bl(s,s.return);break;case 27:xl(s);case 26:case 5:$l(i,s,n),n&&null===r&&4&a&&_l(s),bl(s,s.return);break;case 12:$l(i,s,n);break;case 31:$l(i,s,n),n&&4&a&&jl(i,s);break;case 13:$l(i,s,n),n&&4&a&&zl(i,s);break;case 22:null===s.memoizedState&&$l(i,s,n),bl(s,s.return);break;case 30:break;default:$l(i,s,n)}t=t.sibling}}function Xl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&ji(n))}function Jl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&ji(e))}function Zl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)ec(e,t,n,r),t=t.sibling}function ec(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Zl(e,t,n,r),2048&i&&gl(9,t);break;case 1:case 31:case 13:default:Zl(e,t,n,r);break;case 3:Zl(e,t,n,r),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&ji(e)));break;case 12:if(2048&i){Zl(e,t,n,r),e=t.stateNode;try{var s=t.memoizedProps,a=s.id,o=s.onPostCommit;"function"===typeof o&&o(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Au(t,t.return,l)}}else Zl(e,t,n,r);break;case 23:break;case 22:s=t.stateNode,a=t.alternate,null!==t.memoizedState?2&s._visibility?Zl(e,t,n,r):nc(e,t):2&s._visibility?Zl(e,t,n,r):(s._visibility|=2,tc(e,t,n,r,0!==(10256&t.subtreeFlags)||!1)),2048&i&&Xl(a,t);break;case 24:Zl(e,t,n,r),2048&i&&Jl(t.alternate,t)}}function tc(e,t,n,r,i){for(i=i&&(0!==(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var s=e,a=t,o=n,l=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:tc(s,a,o,l,i),gl(8,a);break;case 23:break;case 22:var u=a.stateNode;null!==a.memoizedState?2&u._visibility?tc(s,a,o,l,i):nc(s,a):(u._visibility|=2,tc(s,a,o,l,i)),i&&2048&c&&Xl(a.alternate,a);break;case 24:tc(s,a,o,l,i),i&&2048&c&&Jl(a.alternate,a);break;default:tc(s,a,o,l,i)}t=t.sibling}}function nc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:nc(n,r),2048&i&&Xl(r.alternate,r);break;case 24:nc(n,r),2048&i&&Jl(r.alternate,r);break;default:nc(n,r)}t=t.sibling}}var rc=8192;function ic(e,t,n){if(e.subtreeFlags&rc)for(e=e.child;null!==e;)sc(e,t,n),e=e.sibling}function sc(e,t,n){switch(e.tag){case 26:ic(e,t,n),e.flags&rc&&null!==e.memoizedState&&function(e,t,n,r){if("stylesheet"===n.type&&("string"!==typeof r.media||!1!==matchMedia(r.media).matches)&&0===(4&n.state.loading)){if(null===n.instance){var i=Wh(r.href),s=t.querySelector(Kh(i));if(s)return null!==(t=s._p)&&"object"===typeof t&&"function"===typeof t.then&&(e.count++,e=ad.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,void et(s);s=t.ownerDocument||t,r=Qh(r),(i=Fh.get(i))&&Zh(r,i),et(s=s.createElement("link"));var a=s;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),dh(s,"link",r),n.instance=s}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&0===(3&n.state.loading)&&(e.count++,n=ad.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,ql,e.memoizedState,e.memoizedProps);break;case 5:default:ic(e,t,n);break;case 3:case 4:var r=ql;ql=zh(e.stateNode.containerInfo),ic(e,t,n),ql=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=rc,rc=16777216,ic(e,t,n),rc=r):ic(e,t,n))}}function ac(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function oc(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Pl=r,uc(r,e)}ac(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)lc(e),e=e.sibling}function lc(e){switch(e.tag){case 0:case 11:case 15:oc(e),2048&e.flags&&vl(9,e,e.return);break;case 3:case 12:default:oc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,cc(e)):oc(e)}}function cc(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Pl=r,uc(r,e)}ac(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:vl(8,t,t.return),cc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,cc(t));break;default:cc(t)}e=e.sibling}}function uc(e,t){for(;null!==Pl;){var n=Pl;switch(n.tag){case 0:case 11:case 15:vl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:ji(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Pl=r;else e:for(n=e;null!==Pl;){var i=(r=Pl).sibling,s=r.return;if(Ll(r),r===n){Pl=null;break e}if(null!==i){i.return=s,Pl=i;break e}Pl=s}}}var hc={getCacheForType:function(e){var t=Ri(Vi),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ri(Vi).controller.signal}},dc="function"===typeof WeakMap?WeakMap:Map,fc=0,pc=null,mc=null,gc=0,vc=0,yc=null,wc=!1,bc=!1,Ec=!1,_c=0,Ac=0,Sc=0,Cc=0,Tc=0,kc=0,xc=0,Nc=null,Ic=null,Oc=!1,Rc=0,Pc=0,Dc=1/0,Lc=null,Mc=null,Uc=0,Vc=null,Fc=null,jc=0,zc=0,Bc=null,Hc=null,qc=0,Gc=null;function Wc(){return 0!==(2&fc)&&0!==gc?gc&-gc:null!==D.T?Bu():Ve()}function Kc(){if(0===kc)if(0===(536870912&gc)||hi){var e=Se;0===(3932160&(Se<<=1))&&(Se=262144),kc=e}else kc=536870912;return null!==(e=Rs.current)&&(e.flags|=32),kc}function Qc(e,t,n){(e!==pc||2!==vc&&9!==vc)&&null===e.cancelPendingCommit||(tu(e,0),Jc(e,gc,kc,!1)),Re(e,n),0!==(2&fc)&&e===pc||(e===pc&&(0===(2&fc)&&(Cc|=n),4===Ac&&Jc(e,gc,kc,!1)),Lu(e))}function Yc(e,t,n){if(0!==(6&fc))throw Error(a(327));for(var r=!n&&0===(127&t)&&0===(t&e.expiredLanes)||xe(e,t),i=r?function(e,t){var n=fc;fc|=2;var r=iu(),i=su();pc!==e||gc!==t?(Lc=null,Dc=le()+500,tu(e,t)):bc=xe(e,t);e:for(;;)try{if(0!==vc&&null!==mc){t=mc;var s=yc;t:switch(vc){case 1:vc=0,yc=null,du(e,t,s,1);break;case 2:case 9:if(ts(s)){vc=0,yc=null,hu(t);break}t=function(){2!==vc&&9!==vc||pc!==e||(vc=7),Lu(e)},s.then(t,t);break e;case 3:vc=7;break e;case 4:vc=5;break e;case 7:ts(s)?(vc=0,yc=null,hu(t)):(vc=0,yc=null,du(e,t,s,7));break;case 5:var o=null;switch(mc.tag){case 26:o=mc.memoizedState;case 5:case 27:var l=mc;if(o?id(o):l.stateNode.complete){vc=0,yc=null;var c=l.sibling;if(null!==c)mc=c;else{var u=l.return;null!==u?(mc=u,fu(u)):mc=null}break t}}vc=0,yc=null,du(e,t,s,5);break;case 6:vc=0,yc=null,du(e,t,s,6);break;case 8:eu(),Ac=6;break e;default:throw Error(a(462))}}cu();break}catch(h){nu(e,h)}return Si=Ai=null,D.H=r,D.A=i,fc=n,null!==mc?0:(pc=null,gc=0,Ir(),Ac)}(e,t):ou(e,t,!0),s=r;;){if(0===i){bc&&!r&&Jc(e,t,0,!1);break}if(n=e.current.alternate,!s||Xc(n)){if(2===i){if(s=t,e.errorRecoveryDisabledLanes&s)var o=0;else o=0!==(o=-536870913&e.pendingLanes)?o:536870912&o?536870912:0;if(0!==o){t=o;e:{var l=e;i=Nc;var c=l.current.memoizedState.isDehydrated;if(c&&(tu(l,o).flags|=256),2!==(o=ou(l,o,!1))){if(Ec&&!c){l.errorRecoveryDisabledLanes|=s,Cc|=s,i=4;break e}s=Ic,Ic=i,null!==s&&(null===Ic?Ic=s:Ic.push.apply(Ic,s))}i=o}if(s=!1,2!==i)continue}}if(1===i){tu(e,0),Jc(e,t,0,!0);break}e:{switch(r=e,s=i){case 0:case 1:throw Error(a(345));case 4:if((4194048&t)!==t)break;case 6:Jc(r,t,kc,!wc);break e;case 2:Ic=null;break;case 3:case 5:break;default:throw Error(a(329))}if((62914560&t)===t&&10<(i=Rc+300-le())){if(Jc(r,t,kc,!wc),0!==ke(r,0,!0))break e;jc=t,r.timeoutHandle=Eh($c.bind(null,r,n,Ic,Lc,Oc,t,kc,Cc,xc,wc,s,"Throttled",-0,0),i)}else $c(r,n,Ic,Lc,Oc,t,kc,Cc,xc,wc,s,null,-0,0)}break}i=ou(e,t,!1),s=!1}Lu(e)}function $c(e,t,n,r,i,s,a,o,l,c,u,h,d,f){if(e.timeoutHandle=-1,8192&(h=t.subtreeFlags)||16785408===(16785408&h)){sc(t,s,h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rt});var p=(62914560&s)===s?Rc-le():(4194048&s)===s?Pc-le():0;if(null!==(p=function(e,t){return e.stylesheets&&0===e.count&&ld(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ld(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===sd&&(sd=62500*function(){if("function"===typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],s=i.transferSize,a=i.initiatorType,o=i.duration;if(s&&o&&fh(a)){for(a=0,o=i.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>o)break;var u=l.transferSize,h=l.initiatorType;u&&fh(h)&&(a+=u*((l=l.responseEnd)<o?1:(o-c)/(l-c)))}if(--r,t+=8*(s+a)/(i.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"===typeof(e=navigator.connection.downlink)?e:5}());var i=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&ld(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>sd?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}(h,p)))return jc=s,e.cancelPendingCommit=p(mu.bind(null,e,t,s,n,r,i,a,o,l,u,h,null,d,f)),void Jc(e,s,a,!c)}mu(e,t,s,n,r,i,a,o,l)}function Xc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Jn(s(),i))return!1}catch(a){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jc(e,t,n,r){t&=~Tc,t&=~Cc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var s=31-be(i),a=1<<s;r[s]=-1,i&=~a}0!==n&&Pe(e,n,t)}function Zc(){return 0!==(6&fc)||(Mu(0,!1),!1)}function eu(){if(null!==mc){if(0===vc)var e=mc.return;else Si=Ai=null,aa(e=mc),os=null,ls=0,e=mc;for(;null!==e;)ml(e.alternate,e),e=e.return;mc=null}}function tu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,_h(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),jc=0,eu(),pc=e,mc=n=jr(e.current,null),gc=t,vc=0,yc=null,wc=!1,bc=xe(e,t),Ec=!1,xc=kc=Tc=Cc=Sc=Ac=0,Ic=Nc=null,Oc=!1,0!==(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var i=31-be(r),s=1<<i;t|=e[i],r&=~s}return _c=t,Ir(),n}function nu(e,t){Bs=null,D.H=mo,t===Xi||t===Zi?(t=ss(),vc=3):t===Ji?(t=ss(),vc=4):vc=t===Ro?8:null!==t&&"object"===typeof t&&"function"===typeof t.then?6:1,yc=t,null===mc&&(Ac=1,ko(e,Qr(t,e.current)))}function ru(){var e=Rs.current;return null===e||((4194048&gc)===gc?null===Ps:((62914560&gc)===gc||0!==(536870912&gc))&&e===Ps)}function iu(){var e=D.H;return D.H=mo,null===e?mo:e}function su(){var e=D.A;return D.A=hc,e}function au(){Ac=4,wc||(4194048&gc)!==gc&&null!==Rs.current||(bc=!0),0===(134217727&Sc)&&0===(134217727&Cc)||null===pc||Jc(pc,gc,kc,!1)}function ou(e,t,n){var r=fc;fc|=2;var i=iu(),s=su();pc===e&&gc===t||(Lc=null,tu(e,t)),t=!1;var a=Ac;e:for(;;)try{if(0!==vc&&null!==mc){var o=mc,l=yc;switch(vc){case 8:eu(),a=6;break e;case 3:case 2:case 9:case 6:null===Rs.current&&(t=!0);var c=vc;if(vc=0,yc=null,du(e,o,l,c),n&&bc){a=0;break e}break;default:c=vc,vc=0,yc=null,du(e,o,l,c)}}lu(),a=Ac;break}catch(u){nu(e,u)}return t&&e.shellSuspendCounter++,Si=Ai=null,fc=r,D.H=i,D.A=s,null===mc&&(pc=null,gc=0,Ir()),a}function lu(){for(;null!==mc;)uu(mc)}function cu(){for(;null!==mc&&!ae();)uu(mc)}function uu(e){var t=al(e.alternate,e,_c);e.memoizedProps=e.pendingProps,null===t?fu(e):mc=t}function hu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Go(n,t,t.pendingProps,t.type,void 0,gc);break;case 11:t=Go(n,t,t.pendingProps,t.type.render,t.ref,gc);break;case 5:aa(t);default:ml(n,t),t=al(n,t=mc=zr(t,_c),_c)}e.memoizedProps=e.pendingProps,null===t?fu(e):mc=t}function du(e,t,n,r){Si=Ai=null,aa(t),os=null,ls=0;var i=t.return;try{if(function(e,t,n,r,i){if(n.flags|=32768,null!==r&&"object"===typeof r&&"function"===typeof r.then){if(null!==(t=n.alternate)&&Ni(t,n,i,!0),null!==(n=Rs.current)){switch(n.tag){case 31:case 13:return null===Ps?au():null===n.alternate&&0===Ac&&(Ac=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===es?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),Su(e,r,i)),!1;case 22:return n.flags|=65536,r===es?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),Su(e,r,i)),!1}throw Error(a(435,n.tag))}return Su(e,r,i),au(),!1}if(hi)return null!==(t=Rs.current)?(0===(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==pi&&Ei(Qr(e=Error(a(422),{cause:r}),n))):(r!==pi&&Ei(Qr(t=Error(a(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,r=Qr(r,n),Es(e,i=No(e.stateNode,r,i)),4!==Ac&&(Ac=2)),!1;var s=Error(a(520),{cause:r});if(s=Qr(s,n),null===Nc?Nc=[s]:Nc.push(s),4!==Ac&&(Ac=2),null===t)return!0;r=Qr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,Es(n,e=No(n.stateNode,r,e)),!1;case 1:if(t=n.type,s=n.stateNode,0===(128&n.flags)&&("function"===typeof t.getDerivedStateFromError||null!==s&&"function"===typeof s.componentDidCatch&&(null===Mc||!Mc.has(s))))return n.flags|=65536,i&=-i,n.lanes|=i,Oo(i=Io(i),e,n,r),Es(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,gc))return Ac=1,ko(e,Qr(n,e.current)),void(mc=null)}catch(s){if(null!==i)throw mc=i,s;return Ac=1,ko(e,Qr(n,e.current)),void(mc=null)}32768&t.flags?(hi||1===r?e=!0:bc||0!==(536870912&gc)?e=!1:(wc=e=!0,(2===r||9===r||3===r||6===r)&&(null!==(r=Rs.current)&&13===r.tag&&(r.flags|=16384))),pu(t,e)):fu(t)}function fu(e){var t=e;do{if(0!==(32768&t.flags))return void pu(t,wc);e=t.return;var n=fl(t.alternate,t,_c);if(null!==n)return void(mc=n);if(null!==(t=t.sibling))return void(mc=t);mc=t=e}while(null!==t);0===Ac&&(Ac=5)}function pu(e,t){do{var n=pl(e.alternate,e);if(null!==n)return n.flags&=32767,void(mc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(mc=e);mc=e=n}while(null!==e);Ac=6,mc=null}function mu(e,t,n,r,i,s,o,l,c){e.cancelPendingCommit=null;do{bu()}while(0!==Uc);if(0!==(6&fc))throw Error(a(327));if(null!==t){if(t===e.current)throw Error(a(177));if(s=t.lanes|t.childLanes,function(e,t,n,r,i,s){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-be(n),h=1<<u;o[u]=0,l[u]=-1;var d=c[u];if(null!==d)for(c[u]=null,u=0;u<d.length;u++){var f=d[u];null!==f&&(f.lane&=-536870913)}n&=~h}0!==r&&Pe(e,r,0),0!==s&&0===i&&0!==e.tag&&(e.suspendedLanes|=s&~(a&~t))}(e,n,s|=Nr,o,l,c),e===pc&&(mc=pc=null,gc=0),Fc=t,Vc=e,jc=n,zc=s,Bc=i,Hc=r,0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?(e.callbackNode=null,e.callbackPriority=0,ie(de,function(){return Eu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=0!==(13878&t.flags),0!==(13878&t.subtreeFlags)||r){r=D.T,D.T=null,i=L.p,L.p=2,o=fc,fc|=4;try{!function(e,t){if(e=e.containerInfo,ph=wd,ir(e=rr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(g){n=null;break e}var o=0,l=-1,c=-1,u=0,h=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==i&&3!==d.nodeType||(l=o+i),d!==s||0!==r&&3!==d.nodeType||(c=o+r),3===d.nodeType&&(o+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===i&&(l=o),f===s&&++h===r&&(c=o),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(mh={focusedElem:e,selectionRange:n},wd=!1,Pl=t;null!==Pl;)if(e=(t=Pl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Pl=e;else for(;null!==Pl;){switch(s=(t=Pl).alternate,e=t.flags,t.tag){case 0:if(0!==(4&e)&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(i=e[n]).ref.impl=i.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!==(1024&e)&&null!==s){e=void 0,n=t,i=s.memoizedProps,s=s.memoizedState,r=n.stateNode;try{var m=Ao(n.type,i);e=r.getSnapshotBeforeUpdate(m,s),r.__reactInternalSnapshotBeforeUpdate=e}catch(v){Au(n,n.return,v)}}break;case 3:if(0!==(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))Nh(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Nh(e);break;default:e.textContent=""}break;default:if(0!==(1024&e))throw Error(a(163))}if(null!==(e=t.sibling)){e.return=t.return,Pl=e;break}Pl=t.return}}(e,t)}finally{fc=o,L.p=i,D.T=r}}Uc=1,gu(),vu(),yu()}}function gu(){if(1===Uc){Uc=0;var e=Vc,t=Fc,n=0!==(13878&t.flags);if(0!==(13878&t.subtreeFlags)||n){n=D.T,D.T=null;var r=L.p;L.p=2;var i=fc;fc|=4;try{Gl(t,e);var s=mh,a=rr(e.containerInfo),o=s.focusedElem,l=s.selectionRange;if(a!==o&&o&&o.ownerDocument&&nr(o.ownerDocument.documentElement,o)){if(null!==l&&ir(o)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in o)o.selectionStart=c,o.selectionEnd=Math.min(u,o.value.length);else{var h=o.ownerDocument||document,d=h&&h.defaultView||window;if(d.getSelection){var f=d.getSelection(),p=o.textContent.length,m=Math.min(l.start,p),g=void 0===l.end?m:Math.min(l.end,p);!f.extend&&m>g&&(a=g,g=m,m=a);var v=tr(o,m),y=tr(o,g);if(v&&y&&(1!==f.rangeCount||f.anchorNode!==v.node||f.anchorOffset!==v.offset||f.focusNode!==y.node||f.focusOffset!==y.offset)){var w=h.createRange();w.setStart(v.node,v.offset),f.removeAllRanges(),m>g?(f.addRange(w),f.extend(y.node,y.offset)):(w.setEnd(y.node,y.offset),f.addRange(w))}}}}for(h=[],f=o;f=f.parentNode;)1===f.nodeType&&h.push({element:f,left:f.scrollLeft,top:f.scrollTop});for("function"===typeof o.focus&&o.focus(),o=0;o<h.length;o++){var b=h[o];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}wd=!!ph,mh=ph=null}finally{fc=i,L.p=r,D.T=n}}e.current=t,Uc=2}}function vu(){if(2===Uc){Uc=0;var e=Vc,t=Fc,n=0!==(8772&t.flags);if(0!==(8772&t.subtreeFlags)||n){n=D.T,D.T=null;var r=L.p;L.p=2;var i=fc;fc|=4;try{Dl(e,t.alternate,t)}finally{fc=i,L.p=r,D.T=n}}Uc=3}}function yu(){if(4===Uc||3===Uc){Uc=0,oe();var e=Vc,t=Fc,n=jc,r=Hc;0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?Uc=5:(Uc=0,Fc=Vc=null,wu(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(Mc=null),Ue(n),t=t.stateNode,ye&&"function"===typeof ye.onCommitFiberRoot)try{ye.onCommitFiberRoot(ve,t,void 0,128===(128&t.current.flags))}catch(l){}if(null!==r){t=D.T,i=L.p,L.p=2,D.T=null;try{for(var s=e.onRecoverableError,a=0;a<r.length;a++){var o=r[a];s(o.value,{componentStack:o.stack})}}finally{D.T=t,L.p=i}}0!==(3&jc)&&bu(),Lu(e),i=e.pendingLanes,0!==(261930&n)&&0!==(42&i)?e===Gc?qc++:(qc=0,Gc=e):qc=0,Mu(0,!1)}}function wu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,ji(t)))}function bu(){return gu(),vu(),yu(),Eu()}function Eu(){if(5!==Uc)return!1;var e=Vc,t=zc;zc=0;var n=Ue(jc),r=D.T,i=L.p;try{L.p=32>n?32:n,D.T=null,n=Bc,Bc=null;var s=Vc,o=jc;if(Uc=0,Fc=Vc=null,jc=0,0!==(6&fc))throw Error(a(331));var l=fc;if(fc|=4,lc(s.current),ec(s,s.current,o,n),fc=l,Mu(0,!1),ye&&"function"===typeof ye.onPostCommitFiberRoot)try{ye.onPostCommitFiberRoot(ve,s)}catch(c){}return!0}finally{L.p=i,D.T=r,wu(e,t)}}function _u(e,t,n){t=Qr(n,t),null!==(e=ws(e,t=No(e.stateNode,t,2),2))&&(Re(e,2),Lu(e))}function Au(e,t,n){if(3===e.tag)_u(e,e,n);else for(;null!==t;){if(3===t.tag){_u(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Mc||!Mc.has(r))){e=Qr(n,e),null!==(r=ws(t,n=Io(2),2))&&(Oo(n,r,t,e),Re(r,2),Lu(r));break}}t=t.return}}function Su(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new dc;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(Ec=!0,i.add(n),e=Cu.bind(null,e,t,n),t.then(e,e))}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,pc===e&&(gc&n)===n&&(4===Ac||3===Ac&&(62914560&gc)===gc&&300>le()-Rc?0===(2&fc)&&tu(e,0):Tc|=n,xc===gc&&(xc=0)),Lu(e)}function Tu(e,t){0===t&&(t=Ie()),null!==(e=Pr(e,t))&&(Re(e,t),Lu(e))}function ku(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tu(e,n)}function xu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}null!==r&&r.delete(t),Tu(e,n)}var Nu=null,Iu=null,Ou=!1,Ru=!1,Pu=!1,Du=0;function Lu(e){e!==Iu&&null===e.next&&(null===Iu?Nu=Iu=e:Iu=Iu.next=e),Ru=!0,Ou||(Ou=!0,Sh(function(){0!==(6&fc)?ie(ue,Uu):Vu()}))}function Mu(e,t){if(!Pu&&Ru){Pu=!0;do{for(var n=!1,r=Nu;null!==r;){if(!t)if(0!==e){var i=r.pendingLanes;if(0===i)var s=0;else{var a=r.suspendedLanes,o=r.pingedLanes;s=(1<<31-be(42|e)+1)-1,s=201326741&(s&=i&~(a&~o))?201326741&s|1:s?2|s:0}0!==s&&(n=!0,zu(r,s))}else s=gc,0===(3&(s=ke(r,r===pc?s:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||xe(r,s)||(n=!0,zu(r,s));r=r.next}}while(n);Pu=!1}}function Uu(){Vu()}function Vu(){Ru=Ou=!1;var e=0;0!==Du&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==bh&&(bh=e,!0);return bh=null,!1}()&&(e=Du);for(var t=le(),n=null,r=Nu;null!==r;){var i=r.next,s=Fu(r,t);0===s?(r.next=null,null===n?Nu=i:n.next=i,null===i&&(Iu=n)):(n=r,(0!==e||0!==(3&s))&&(Ru=!0)),r=i}0!==Uc&&5!==Uc||Mu(e,!1),0!==Du&&(Du=0)}function Fu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=-62914561&e.pendingLanes;0<s;){var a=31-be(s),o=1<<a,l=i[a];-1===l?0!==(o&n)&&0===(o&r)||(i[a]=Ne(o,t)):l<=t&&(e.expiredLanes|=o),s&=~o}if(n=gc,n=ke(e,e===(t=pc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===vc||9===vc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&se(r),e.callbackNode=null,e.callbackPriority=0;if(0===(3&n)||xe(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),Ue(n)){case 2:case 8:n=he;break;case 32:default:n=de;break;case 268435456:n=pe}return r=ju.bind(null,e),n=ie(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&se(r),e.callbackPriority=2,e.callbackNode=null,2}function ju(e,t){if(0!==Uc&&5!==Uc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bu()&&e.callbackNode!==n)return null;var r=gc;return 0===(r=ke(e,e===pc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Yc(e,r,t),Fu(e,le()),null!=e.callbackNode&&e.callbackNode===n?ju.bind(null,e):null)}function zu(e,t){if(bu())return null;Yc(e,t,!0)}function Bu(){if(0===Du){var e=Hi;0===e&&(e=Ae,0===(261888&(Ae<<=1))&&(Ae=256)),Du=e}return Du}function Hu(e){return null==e||"symbol"===typeof e||"boolean"===typeof e?null:"function"===typeof e?e:Ot(""+e)}function qu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Gu=0;Gu<Sr.length;Gu++){var Wu=Sr[Gu];Cr(Wu.toLowerCase(),"on"+(Wu[0].toUpperCase()+Wu.slice(1)))}Cr(gr,"onAnimationEnd"),Cr(vr,"onAnimationIteration"),Cr(yr,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(wr,"onTransitionRun"),Cr(br,"onTransitionStart"),Cr(Er,"onTransitionCancel"),Cr(_r,"onTransitionEnd"),it("onMouseEnter",["mouseout","mouseover"]),it("onMouseLeave",["mouseout","mouseover"]),it("onPointerEnter",["pointerout","pointerover"]),it("onPointerLeave",["pointerout","pointerover"]),rt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rt("onBeforeInput",["compositionend","keypress","textInput","paste"]),rt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ku="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ku));function Yu(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var a=r.length-1;0<=a;a--){var o=r[a],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==s&&i.isPropagationStopped())break e;s=o,i.currentTarget=c;try{s(i)}catch(u){Tr(u)}i.currentTarget=null,s=l}else for(a=0;a<r.length;a++){if(l=(o=r[a]).instance,c=o.currentTarget,o=o.listener,l!==s&&i.isPropagationStopped())break e;s=o,i.currentTarget=c;try{s(i)}catch(u){Tr(u)}i.currentTarget=null,s=l}}}}function $u(e,t){var n=t[qe];void 0===n&&(n=t[qe]=new Set);var r=e+"__bubble";n.has(r)||(eh(t,e,2,!1),n.add(r))}function Xu(e,t,n){var r=0;t&&(r|=4),eh(n,e,r,t)}var Ju="_reactListening"+Math.random().toString(36).slice(2);function Zu(e){if(!e[Ju]){e[Ju]=!0,tt.forEach(function(t){"selectionchange"!==t&&(Qu.has(t)||Xu(t,!1,e),Xu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ju]||(t[Ju]=!0,Xu("selectionchange",!1,t))}}function eh(e,t,n,r){switch(Td(t)){case 2:var i=bd;break;case 8:i=Ed;break;default:i=_d}n=i.bind(null,t,n,e),i=void 0,!Bt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function th(e,t,n,r,i){var s=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var o=r.stateNode.containerInfo;if(o===i)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&a.stateNode.containerInfo===i)return;a=a.return}for(;null!==o;){if(null===(a=$e(o)))return;if(5===(c=a.tag)||6===c||26===c||27===c){r=s=a;continue e}o=o.parentNode}}r=r.return}Ft(function(){var r=s,i=Dt(n),a=[];e:{var o=Ar.get(e);if(void 0!==o){var c=nn,u=e;switch(e){case"keypress":if(0===Qt(n))break e;case"keydown":case"keyup":c=yn;break;case"focusin":u="focus",c=cn;break;case"focusout":u="blur",c=cn;break;case"beforeblur":case"afterblur":c=cn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=on;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=bn;break;case gr:case vr:case yr:c=un;break;case _r:c=En;break;case"scroll":case"scrollend":c=sn;break;case"wheel":c=_n;break;case"copy":case"cut":case"paste":c=hn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=wn;break;case"toggle":case"beforetoggle":c=An}var h=0!==(4&t),d=!h&&("scroll"===e||"scrollend"===e),f=h?null!==o?o+"Capture":null:o;h=[];for(var p,m=r;null!==m;){var g=m;if(p=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===p||null===f||null!=(g=jt(m,f))&&h.push(nh(m,g,p)),d)break;m=m.return}0<h.length&&(o=new c(o,u,null,n,i),a.push({event:o,listeners:h}))}}if(0===(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||n===Pt||!(u=n.relatedTarget||n.fromElement)||!$e(u)&&!u[He])&&(c||o)&&(o=i.window===i?i:(o=i.ownerDocument)?o.defaultView||o.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?$e(u):null)&&(d=l(u),h=u.tag,u!==d||5!==h&&27!==h&&6!==h)&&(u=null)):(c=null,u=r),c!==u)){if(h=on,g="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(h=wn,g="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==c?o:Je(c),p=null==u?o:Je(u),(o=new h(g,m+"leave",c,n,i)).target=d,o.relatedTarget=p,g=null,$e(i)===r&&((h=new h(f,m+"enter",u,n,i)).target=p,h.relatedTarget=d,g=h),d=g,c&&u)e:{for(h=ih,m=u,p=0,g=f=c;g;g=h(g))p++;g=0;for(var v=m;v;v=h(v))g++;for(;0<p-g;)f=h(f),p--;for(;0<g-p;)m=h(m),g--;for(;p--;){if(f===m||null!==m&&f===m.alternate){h=f;break e}f=h(f),m=h(m)}h=null}else h=null;null!==c&&sh(a,o,c,h,!1),null!==u&&null!==d&&sh(a,d,u,h,!0)}if("select"===(c=(o=r?Je(r):window).nodeName&&o.nodeName.toLowerCase())||"input"===c&&"file"===o.type)var y=zn;else if(Ln(o))if(Bn)y=Xn;else{y=Yn;var w=Qn}else!(c=o.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==o.type&&"radio"!==o.type?r&&xt(r.elementType)&&(y=zn):y=$n;switch(y&&(y=y(e,r))?Mn(a,y,n,i):(w&&w(e,o,r),"focusout"===e&&r&&"number"===o.type&&null!=r.memoizedProps.value&&bt(o,"number",o.value)),w=r?Je(r):window,e){case"focusin":(Ln(w)||"true"===w.contentEditable)&&(ar=w,or=r,lr=null);break;case"focusout":lr=or=ar=null;break;case"mousedown":cr=!0;break;case"contextmenu":case"mouseup":case"dragend":cr=!1,ur(a,n,i);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":ur(a,n,i)}var b;if(Cn)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Pn?On(e,n)&&(E="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(E="onCompositionStart");E&&(xn&&"ko"!==n.locale&&(Pn||"onCompositionStart"!==E?"onCompositionEnd"===E&&Pn&&(b=Kt()):(Gt="value"in(qt=i)?qt.value:qt.textContent,Pn=!0)),0<(w=rh(r,E)).length&&(E=new dn(E,e,null,n,i),a.push({event:E,listeners:w}),b?E.data=b:null!==(b=Rn(n))&&(E.data=b))),(b=kn?function(e,t){switch(e){case"compositionend":return Rn(t);case"keypress":return 32!==t.which?null:(In=!0,Nn);case"textInput":return(e=t.data)===Nn&&In?null:e;default:return null}}(e,n):function(e,t){if(Pn)return"compositionend"===e||!Cn&&On(e,t)?(e=Kt(),Wt=Gt=qt=null,Pn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return xn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(E=rh(r,"onBeforeInput")).length&&(w=new dn("onBeforeInput","beforeinput",null,n,i),a.push({event:w,listeners:E}),w.data=b)),function(e,t,n,r,i){if("submit"===t&&n&&n.stateNode===i){var s=Hu((i[Be]||null).action),a=r.submitter;a&&null!==(t=(t=a[Be]||null)?Hu(t.formAction):a.getAttribute("formAction"))&&(s=t,a=null);var o=new nn("action","action",null,r,i);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Du){var e=a?qu(i,a):new FormData(i);eo(n,{pending:!0,data:e,method:i.method,action:s},null,e)}}else"function"===typeof s&&(o.preventDefault(),e=a?qu(i,a):new FormData(i),eo(n,{pending:!0,data:e,method:i.method,action:s},s,e))},currentTarget:i}]})}}(a,e,r,n,i)}Yu(a,t)})}function nh(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rh(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,s=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===s||(null!=(i=jt(e,n))&&r.unshift(nh(e,i,s)),null!=(i=jt(e,t))&&r.push(nh(e,i,s))),3===e.tag)return r;e=e.return}return[]}function ih(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function sh(e,t,n,r,i){for(var s=t._reactName,a=[];null!==n&&n!==r;){var o=n,l=o.alternate,c=o.stateNode;if(o=o.tag,null!==l&&l===r)break;5!==o&&26!==o&&27!==o||null===c||(l=c,i?null!=(c=jt(n,s))&&a.unshift(nh(n,c,l)):i||null!=(c=jt(n,s))&&a.push(nh(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ah=/\r\n?/g,oh=/\u0000|\uFFFD/g;function lh(e){return("string"===typeof e?e:""+e).replace(ah,"\n").replace(oh,"")}function ch(e,t){return t=lh(t),lh(e)===t}function uh(e,t,n,r,i,s){switch(n){case"children":"string"===typeof r?"body"===t||"textarea"===t&&""===r||St(e,r):("number"===typeof r||"bigint"===typeof r)&&"body"!==t&&St(e,""+r);break;case"className":ct(e,"class",r);break;case"tabIndex":ct(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ct(e,n,r);break;case"style":kt(e,r,s);break;case"data":if("object"!==t){ct(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"===typeof r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=Ot(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"===typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"===typeof s&&("formAction"===n?("input"!==t&&uh(e,t,"name",i.name,i,null),uh(e,t,"formEncType",i.formEncType,i,null),uh(e,t,"formMethod",i.formMethod,i,null),uh(e,t,"formTarget",i.formTarget,i,null)):(uh(e,t,"encType",i.encType,i,null),uh(e,t,"method",i.method,i,null),uh(e,t,"target",i.target,i,null))),null==r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=Ot(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Rt);break;case"onScroll":null!=r&&$u("scroll",e);break;case"onScrollEnd":null!=r&&$u("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(a(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"muted":e.muted=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"===typeof r||"boolean"===typeof r||"symbol"===typeof r){e.removeAttribute("xlink:href");break}n=Ot(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!==typeof r&&"symbol"!==typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"===typeof r||"symbol"===typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":$u("beforetoggle",e),$u("toggle",e),lt(e,"popover",r);break;case"xlinkActuate":ut(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ut(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ut(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ut(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ut(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ut(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ut(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ut(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ut(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":lt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&lt(e,n=Nt.get(n)||n,r)}}function hh(e,t,n,r,i,s){switch(n){case"style":kt(e,r,s);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(a(60));e.innerHTML=n}}break;case"children":"string"===typeof r?St(e,r):("number"===typeof r||"bigint"===typeof r)&&St(e,""+r);break;case"onScroll":null!=r&&$u("scroll",e);break;case"onScrollEnd":null!=r&&$u("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Rt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"===typeof(s=null!=(s=e[Be]||null)?s[n]:null)&&e.removeEventListener(t,s,i),"function"!==typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):lt(e,n,r):("function"!==typeof s&&null!==s&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i)))}}function dh(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$u("error",e),$u("load",e);var r,i=!1,s=!1;for(r in n)if(n.hasOwnProperty(r)){var o=n[r];if(null!=o)switch(r){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:uh(e,t,r,o,n,null)}}return s&&uh(e,t,"srcSet",n.srcSet,n,null),void(i&&uh(e,t,"src",n.src,n,null));case"input":$u("invalid",e);var l=r=o=s=null,c=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var h=n[i];if(null!=h)switch(i){case"name":s=h;break;case"type":o=h;break;case"checked":c=h;break;case"defaultChecked":u=h;break;case"value":r=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(a(137,t));break;default:uh(e,t,i,h,n,null)}}return void wt(e,r,l,c,u,o,s,!1);case"select":for(s in $u("invalid",e),i=o=r=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":r=l;break;case"defaultValue":o=l;break;case"multiple":i=l;default:uh(e,t,s,l,n,null)}return t=r,n=o,e.multiple=!!i,void(null!=t?Et(e,!!i,t,!1):null!=n&&Et(e,!!i,n,!0));case"textarea":for(o in $u("invalid",e),r=s=i=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":i=l;break;case"defaultValue":s=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(a(91));break;default:uh(e,t,o,l,n,null)}return void At(e,i,s,r);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))if("selected"===c)e.selected=i&&"function"!==typeof i&&"symbol"!==typeof i;else uh(e,t,c,i,n,null);return;case"dialog":$u("beforetoggle",e),$u("toggle",e),$u("cancel",e),$u("close",e);break;case"iframe":case"object":$u("load",e);break;case"video":case"audio":for(i=0;i<Ku.length;i++)$u(Ku[i],e);break;case"image":$u("error",e),$u("load",e);break;case"details":$u("toggle",e);break;case"embed":case"source":case"link":$u("error",e),$u("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(i=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:uh(e,t,u,i,n,null)}return;default:if(xt(t)){for(h in n)n.hasOwnProperty(h)&&(void 0!==(i=n[h])&&hh(e,t,h,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(i=n[l])&&uh(e,t,l,i,n,null))}function fh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var ph=null,mh=null;function gh(e){return 9===e.nodeType?e:e.ownerDocument}function vh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yh(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function wh(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"bigint"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bh=null;var Eh="function"===typeof setTimeout?setTimeout:void 0,_h="function"===typeof clearTimeout?clearTimeout:void 0,Ah="function"===typeof Promise?Promise:void 0,Sh="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof Ah?function(e){return Ah.resolve(null).then(e).catch(Ch)}:Eh;function Ch(e){setTimeout(function(){throw e})}function Th(e){return"head"===e}function kh(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)||"/&"===n){if(0===r)return e.removeChild(i),void qd(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)Vh(e.ownerDocument.documentElement);else if("head"===n){Vh(n=e.ownerDocument.head);for(var s=n.firstChild;s;){var a=s.nextSibling,o=s.nodeName;s[Qe]||"SCRIPT"===o||"STYLE"===o||"LINK"===o&&"stylesheet"===s.rel.toLowerCase()||n.removeChild(s),s=a}}else"body"===n&&Vh(e.ownerDocument.body);n=i}while(n);qd(t)}function xh(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Nh(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Nh(n),Ye(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Ih(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Ph(e.nextSibling)))return null}return e}function Oh(e){return"$?"===e.data||"$~"===e.data}function Rh(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Ph(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Dh=null;function Lh(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Ph(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Mh(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Uh(e,t,n){switch(t=gh(n),e){case"html":if(!(e=t.documentElement))throw Error(a(452));return e;case"head":if(!(e=t.head))throw Error(a(453));return e;case"body":if(!(e=t.body))throw Error(a(454));return e;default:throw Error(a(451))}}function Vh(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ye(e)}var Fh=new Map,jh=new Set;function zh(e){return"function"===typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Bh=L.d;L.d={f:function(){var e=Bh.f(),t=Zc();return e||t},r:function(e){var t=Xe(e);null!==t&&5===t.tag&&"form"===t.type?no(t):Bh.r(e)},D:function(e){Bh.D(e),qh("dns-prefetch",e,null)},C:function(e,t){Bh.C(e,t),qh("preconnect",e,t)},L:function(e,t,n){Bh.L(e,t,n);var r=Hh;if(r&&e&&t){var i='link[rel="preload"][as="'+vt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(i+='[imagesrcset="'+vt(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(i+='[imagesizes="'+vt(n.imageSizes)+'"]')):i+='[href="'+vt(e)+'"]';var s=i;switch(t){case"style":s=Wh(e);break;case"script":s=Yh(e)}Fh.has(s)||(e=f({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Fh.set(s,e),null!==r.querySelector(i)||"style"===t&&r.querySelector(Kh(s))||"script"===t&&r.querySelector($h(s))||(dh(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}},m:function(e,t){Bh.m(e,t);var n=Hh;if(n&&e){var r=t&&"string"===typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+vt(r)+'"][href="'+vt(e)+'"]',s=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Yh(e)}if(!Fh.has(s)&&(e=f({rel:"modulepreload",href:e},t),Fh.set(s,e),null===n.querySelector(i))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($h(s)))return}dh(r=n.createElement("link"),"link",e),et(r),n.head.appendChild(r)}}},X:function(e,t){Bh.X(e,t);var n=Hh;if(n&&e){var r=Ze(n).hoistableScripts,i=Yh(e),s=r.get(i);s||((s=n.querySelector($h(i)))||(e=f({src:e,async:!0},t),(t=Fh.get(i))&&ed(e,t),et(s=n.createElement("script")),dh(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},r.set(i,s))}},S:function(e,t,n){Bh.S(e,t,n);var r=Hh;if(r&&e){var i=Ze(r).hoistableStyles,s=Wh(e);t=t||"default";var a=i.get(s);if(!a){var o={loading:0,preload:null};if(a=r.querySelector(Kh(s)))o.loading=5;else{e=f({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Fh.get(s))&&Zh(e,n);var l=a=r.createElement("link");et(l),dh(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Jh(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:o},i.set(s,a)}}},M:function(e,t){Bh.M(e,t);var n=Hh;if(n&&e){var r=Ze(n).hoistableScripts,i=Yh(e),s=r.get(i);s||((s=n.querySelector($h(i)))||(e=f({src:e,async:!0,type:"module"},t),(t=Fh.get(i))&&ed(e,t),et(s=n.createElement("script")),dh(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},r.set(i,s))}}};var Hh="undefined"===typeof document?null:document;function qh(e,t,n){var r=Hh;if(r&&"string"===typeof t&&t){var i=vt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"===typeof n&&(i+='[crossorigin="'+n+'"]'),jh.has(i)||(jh.add(i),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(i)&&(dh(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}}function Gh(e,t,n,r){var i,s,o,l,c=(c=W.current)?zh(c):null;if(!c)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return"string"===typeof n.precedence&&"string"===typeof n.href?(t=Wh(n.href),(r=(n=Ze(c).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"===typeof n.href&&"string"===typeof n.precedence){e=Wh(n.href);var u=Ze(c).hoistableStyles,h=u.get(e);if(h||(c=c.ownerDocument||c,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,h),(u=c.querySelector(Kh(e)))&&!u._p&&(h.instance=u,h.state.loading=5),Fh.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Fh.set(e,n),u||(i=c,s=e,o=n,l=h.state,i.querySelector('link[rel="preload"][as="style"]['+s+"]")?l.loading=1:(s=i.createElement("link"),l.preload=s,s.addEventListener("load",function(){return l.loading|=1}),s.addEventListener("error",function(){return l.loading|=2}),dh(s,"link",o),et(s),i.head.appendChild(s))))),t&&null===r)throw Error(a(528,""));return h}if(t&&null!==r)throw Error(a(529,""));return null;case"script":return t=n.async,"string"===typeof(n=n.src)&&t&&"function"!==typeof t&&"symbol"!==typeof t?(t=Yh(n),(r=(n=Ze(c).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Wh(e){return'href="'+vt(e)+'"'}function Kh(e){return'link[rel="stylesheet"]['+e+"]"}function Qh(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Yh(e){return'[src="'+vt(e)+'"]'}function $h(e){return"script[async]"+e}function Xh(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+vt(n.href)+'"]');if(r)return t.instance=r,et(r),r;var i=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(r=(e.ownerDocument||e).createElement("style")),dh(r,"style",i),Jh(r,n.precedence,e),t.instance=r;case"stylesheet":i=Wh(n.href);var s=e.querySelector(Kh(i));if(s)return t.state.loading|=4,t.instance=s,et(s),s;r=Qh(n),(i=Fh.get(i))&&Zh(r,i),et(s=(e.ownerDocument||e).createElement("link"));var o=s;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),dh(s,"link",r),t.state.loading|=4,Jh(s,n.precedence,e),t.instance=s;case"script":return s=Yh(n.src),(i=e.querySelector($h(s)))?(t.instance=i,et(i),i):(r=n,(i=Fh.get(s))&&ed(r=f({},n),i),et(i=(e=e.ownerDocument||e).createElement("script")),dh(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(a(443,t.type))}else"stylesheet"===t.type&&0===(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Jh(r,n.precedence,e));return t.instance}function Jh(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,s=i,a=0;a<r.length;a++){var o=r[a];if(o.dataset.precedence===t)s=o;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Zh(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function ed(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var td=null;function nd(e,t,n){if(null===td){var r=new Map,i=td=new Map;i.set(n,r)}else(r=(i=td).get(n))||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var s=n[i];if(!(s[Qe]||s[ze]||"link"===e&&"stylesheet"===s.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==s.namespaceURI){var a=s.getAttribute(t)||"";a=e+a;var o=r.get(a);o?o.push(s):r.set(a,[s])}}return r}function rd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function id(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var sd=0;function ad(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)ld(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var od=null;function ld(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,od=new Map,t.forEach(cd,e),od=null,ad.call(e))}function cd(e,t){if(!(4&t.state.loading)){var n=od.get(e);if(n)var r=n.get(null);else{n=new Map,od.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var a=i[s];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(i=t.instance).getAttribute("data-precedence"),(s=n.get(a)||r)===r&&n.set(null,i),n.set(a,i),this.count++,r=ad.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),s?s.parentNode.insertBefore(i,s.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var ud={$$typeof:E,Provider:null,Consumer:null,_currentValue:M,_currentValue2:M,_threadCount:0};function hd(e,t,n,r,i,s,a,o,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Oe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oe(0),this.hiddenUpdates=Oe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function dd(e,t,n,r,i,s,a,o,l,c,u,h){return e=new hd(e,t,n,a,l,c,u,h,o),t=1,!0===s&&(t|=24),s=Vr(3,null,null,t),e.current=s,s.stateNode=e,(t=Fi()).refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:r,isDehydrated:n,cache:t},gs(s),e}function fd(e){return e?e=Mr:Mr}function pd(e,t,n,r,i,s){i=fd(i),null===r.context?r.context=i:r.pendingContext=i,(r=ys(t)).payload={element:n},null!==(s=void 0===s?null:s)&&(r.callback=s),null!==(n=ws(e,r,t))&&(Qc(n,0,t),bs(n,e,t))}function md(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function gd(e,t){md(e,t),(e=e.alternate)&&md(e,t)}function vd(e){if(13===e.tag||31===e.tag){var t=Pr(e,67108864);null!==t&&Qc(t,0,67108864),gd(e,67108864)}}function yd(e){if(13===e.tag||31===e.tag){var t=Wc(),n=Pr(e,t=Me(t));null!==n&&Qc(n,0,t),gd(e,t)}}var wd=!0;function bd(e,t,n,r){var i=D.T;D.T=null;var s=L.p;try{L.p=2,_d(e,t,n,r)}finally{L.p=s,D.T=i}}function Ed(e,t,n,r){var i=D.T;D.T=null;var s=L.p;try{L.p=8,_d(e,t,n,r)}finally{L.p=s,D.T=i}}function _d(e,t,n,r){if(wd){var i=Ad(r);if(null===i)th(e,t,r,Sd,n),Ld(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return xd=Md(xd,e,t,n,r,i),!0;case"dragenter":return Nd=Md(Nd,e,t,n,r,i),!0;case"mouseover":return Id=Md(Id,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Od.set(s,Md(Od.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Rd.set(s,Md(Rd.get(s)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Ld(e,r),4&t&&-1<Dd.indexOf(e)){for(;null!==i;){var s=Xe(i);if(null!==s)switch(s.tag){case 3:if((s=s.stateNode).current.memoizedState.isDehydrated){var a=Te(s.pendingLanes);if(0!==a){var o=s;for(o.pendingLanes|=2,o.entangledLanes|=2;a;){var l=1<<31-be(a);o.entanglements[1]|=l,a&=~l}Lu(s),0===(6&fc)&&(Dc=le()+500,Mu(0,!1))}}break;case 31:case 13:null!==(o=Pr(s,2))&&Qc(o,0,2),Zc(),gd(s,2)}if(null===(s=Ad(r))&&th(e,t,r,Sd,n),s===i)break;i=s}null!==i&&r.stopPropagation()}else th(e,t,r,null,n)}}function Ad(e){return Cd(e=Dt(e))}var Sd=null;function Cd(e){if(Sd=null,null!==(e=$e(e))){var t=l(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=c(t)))return e;e=null}else if(31===n){if(null!==(e=u(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Sd=e,null}function Td(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ce()){case ue:return 2;case he:return 8;case de:case fe:return 32;case pe:return 268435456;default:return 32}default:return 32}}var kd=!1,xd=null,Nd=null,Id=null,Od=new Map,Rd=new Map,Pd=[],Dd="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ld(e,t){switch(e){case"focusin":case"focusout":xd=null;break;case"dragenter":case"dragleave":Nd=null;break;case"mouseover":case"mouseout":Id=null;break;case"pointerover":case"pointerout":Od.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rd.delete(t.pointerId)}}function Md(e,t,n,r,i,s){return null===e||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},null!==t&&(null!==(t=Xe(t))&&vd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ud(e){var t=$e(e.target);if(null!==t){var n=l(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=c(n)))return e.blockedOn=t,void Fe(e.priority,function(){yd(n)})}else if(31===t){if(null!==(t=u(n)))return e.blockedOn=t,void Fe(e.priority,function(){yd(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Vd(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ad(e.nativeEvent);if(null!==n)return null!==(t=Xe(n))&&vd(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Pt=r,n.target.dispatchEvent(r),Pt=null,t.shift()}return!0}function Fd(e,t,n){Vd(e)&&n.delete(t)}function jd(){kd=!1,null!==xd&&Vd(xd)&&(xd=null),null!==Nd&&Vd(Nd)&&(Nd=null),null!==Id&&Vd(Id)&&(Id=null),Od.forEach(Fd),Rd.forEach(Fd)}function zd(e,t){e.blockedOn===t&&(e.blockedOn=null,kd||(kd=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,jd)))}var Bd=null;function Hd(e){Bd!==e&&(Bd=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Bd===e&&(Bd=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if("function"!==typeof r){if(null===Cd(r||n))continue;break}var s=Xe(n);null!==s&&(e.splice(t,3),t-=3,eo(s,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function qd(e){function t(t){return zd(t,e)}null!==xd&&zd(xd,e),null!==Nd&&zd(Nd,e),null!==Id&&zd(Id,e),Od.forEach(t),Rd.forEach(t);for(var n=0;n<Pd.length;n++){var r=Pd[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Pd.length&&null===(n=Pd[0]).blockedOn;)Ud(n),null===n.blockedOn&&Pd.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var i=n[r],s=n[r+1],a=i[Be]||null;if("function"===typeof s)a||Hd(n);else if(a){var o=null;if(s&&s.hasAttribute("formAction")){if(i=s,a=s[Be]||null)o=a.formAction;else if(null!==Cd(i))continue}else o=a.action;"function"===typeof o?n[r+1]=o:(n.splice(r,3),r-=3),Hd(n)}}}function Gd(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==i&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"===typeof navigation){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==i&&(i(),i=null)}}}function Wd(e){this._internalRoot=e}function Kd(e){this._internalRoot=e}Kd.prototype.render=Wd.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));pd(t.current,Wc(),e,t,null,null)},Kd.prototype.unmount=Wd.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;pd(e.current,2,null,e,null,null),Zc(),t[He]=null}},Kd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ve();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pd.length&&0!==t&&t<Pd[n].priority;n++);Pd.splice(n,0,e),0===n&&Ud(e)}};var Qd=i.version;if("19.2.7"!==Qd)throw Error(a(527,Qd,"19.2.7"));L.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=l(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var s=i.alternate;if(null===s){if(null!==(r=i.return)){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return h(i),e;if(s===r)return h(i),t;s=s.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,c=i.child;c;){if(c===n){o=!0,n=i,r=s;break}if(c===r){o=!0,r=i,n=s;break}c=c.sibling}if(!o){for(c=s.child;c;){if(c===n){o=!0,n=s,r=i;break}if(c===r){o=!0,r=s,n=i;break}c=c.sibling}if(!o)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?d(e):null)?null:e.stateNode};var Yd={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.7"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var $d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$d.isDisabled&&$d.supportsFiber)try{ve=$d.inject(Yd),ye=$d}catch(Jd){}}t.createRoot=function(e,t){if(!o(e))throw Error(a(299));var n=!1,r="",i=So,s=Co,l=To;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=dd(e,1,!1,null,0,n,r,null,i,s,l,Gd),e[He]=t.current,Zu(e),new Wd(t)},t.hydrateRoot=function(e,t,n){if(!o(e))throw Error(a(299));var r=!1,i="",s=So,l=Co,c=To,u=null;return null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=dd(e,1,!0,t,0,r,i,u,s,l,c,Gd)).context=fd(null),n=t.current,(i=ys(r=Me(r=Wc()))).callback=null,ws(n,i,r),n=r,t.current.lanes=n,Re(t,n),Lu(t),e[He]=t.current,Zu(e),new Kd(t)},t.version="19.2.7"},6672(e,t,n){"use strict";var r=n(5043);function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var a={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");var l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"===typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(i(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=a.p;try{if(l.T=null,a.p=2,e)return e()}finally{l.T=t,a.p=n,a.d.f()}},t.preconnect=function(e,t){"string"===typeof e&&(t?t="string"===typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,a.d.C(e,t))},t.prefetchDNS=function(e){"string"===typeof e&&a.d.D(e)},t.preinit=function(e,t){if("string"===typeof e&&t&&"string"===typeof t.as){var n=t.as,r=c(n,t.crossOrigin),i="string"===typeof t.integrity?t.integrity:void 0,s="string"===typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?a.d.S(e,"string"===typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:s}):"script"===n&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:s,nonce:"string"===typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"===typeof e)if("object"===typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=c(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0})}}else null==t&&a.d.M(e)},t.preload=function(e,t){if("string"===typeof e&&"object"===typeof t&&null!==t&&"string"===typeof t.as){var n=t.as,r=c(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0,type:"string"===typeof t.type?t.type:void 0,fetchPriority:"string"===typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"===typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"===typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"===typeof t.imageSizes?t.imageSizes:void 0,media:"string"===typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"===typeof e)if(t){var n=c(t.as,t.crossOrigin);a.d.m(e,{as:"string"===typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0})}else a.d.m(e)},t.requestFormReset=function(e){a.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.2.7"},4391(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(7004)},7950(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(6672)},8062(e,t,n){"use strict";n.d(t,{_K:()=>d,ns:()=>h,kp:()=>u,ze:()=>f,Ay:()=>g});var r=n(8587);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var s=n(5043),a=n(7950);const o=!1,l=s.createContext(null);var c="unmounted",u="exited",h="entering",d="entered",f="exiting",p=function(e){var t,n;function p(t,n){var r;r=e.call(this,t,n)||this;var i,s=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?s?(i=u,r.appearStatus=h):i=d:i=t.unmountOnExit||t.mountOnEnter?c:u,r.state={status:i},r.nextCallback=null,r}n=e,(t=p).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),p.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:u}:null};var m=p.prototype;return m.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},m.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==d&&(t=h):n!==h&&n!==d||(t=f)}this.updateStatus(!1,t)},m.componentWillUnmount=function(){this.cancelNextCallback()},m.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},m.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:c})},m.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[a.findDOMNode(this),r],s=i[0],l=i[1],c=this.getTimeouts(),u=r?c.appear:c.enter;!e&&!n||o?this.safeSetState({status:d},function(){t.props.onEntered(s)}):(this.props.onEnter(s,l),this.safeSetState({status:h},function(){t.props.onEntering(s,l),t.onTransitionEnd(u,function(){t.safeSetState({status:d},function(){t.props.onEntered(s,l)})})}))},m.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!o?(this.props.onExit(r),this.safeSetState({status:f},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:u},function(){e.props.onExited(r)})})})):this.safeSetState({status:u},function(){e.props.onExited(r)})},m.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},m.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},m.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},m.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],s=i[0],o=i[1];this.props.addEndListener(s,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},m.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(l.Provider,{value:null},"function"===typeof n?n(e,i):s.cloneElement(s.Children.only(n),i))},p}(s.Component);function m(){}p.contextType=l,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},p.UNMOUNTED=c,p.EXITED=u,p.ENTERING=h,p.ENTERED=d,p.EXITING=f;const g=p},2799(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var s in r={},t)"key"!==s&&(r[s]=t[s]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:i,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=i,t.jsxs=i},4288(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),p=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}function w(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=y.prototype;var E=b.prototype=new w;E.constructor=b,g(E,y.prototype),E.isPureReactComponent=!0;var _=Array.isArray;function A(){}var S={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function T(e,t,r){var i=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==i?i:null,props:r}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var x=/\/+/g;function N(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function I(e,t,i,s,a){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l,c,u=!1;if(null===e)u=!0;else switch(o){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0;break;case d:return I((u=e._init)(e._payload),t,i,s,a)}}if(u)return a=a(e),u=""===s?"."+N(e,0):s,_(a)?(i="",null!=u&&(i=u.replace(x,"$&/")+"/"),I(a,t,i,"",function(e){return e})):null!=a&&(k(a)&&(l=a,c=i+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+u,a=T(l.type,c,l.props)),t.push(a)),1;u=0;var h,f=""===s?".":s+":";if(_(e))for(var m=0;m<e.length;m++)u+=I(s=e[m],t,i,o=f+N(s,m),a);else if("function"===typeof(m=null===(h=e)||"object"!==typeof h?null:"function"===typeof(h=p&&h[p]||h["@@iterator"])?h:null))for(e=m.call(e),m=0;!(s=e.next()).done;)u+=I(s=s.value,t,i,o=f+N(s,m++),a);else if("object"===o){if("function"===typeof e.then)return I(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"===typeof e.status?e.then(A,A):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,i,s,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function O(e,t,n){if(null==e)return e;var r=[],i=0;return I(e,r,"","",function(e){return t.call(n,e,i++)}),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},D={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=f,t.Children=D,t.Component=y,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=s,t.Suspense=u,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),i=e.key;if(null!=t)for(s in void 0!==t.key&&(i=""+t.key),t)!C.call(t,s)||"key"===s||"__self"===s||"__source"===s||"ref"===s&&void 0===t.ref||(r[s]=t[s]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var a=Array(s),o=0;o<s;o++)a[o]=arguments[o+2];r.children=a}return T(e.type,i,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:o,_context:e},e},t.createElement=function(e,t,n){var r,i={},s=null;if(null!=t)for(r in void 0!==t.key&&(s=""+t.key),t)C.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var a=arguments.length-2;if(1===a)i.children=n;else if(1<a){for(var o=Array(a),l=0;l<a;l++)o[l]=arguments[l+2];i.children=o}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===i[r]&&(i[r]=a[r]);return T(e,s,i)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),i=S.S;null!==i&&i(n,r),"object"===typeof r&&null!==r&&"function"===typeof r.then&&r.then(A,P)}catch(s){P(s)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},t.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},t.use=function(e){return S.H.use(e)},t.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},t.useCallback=function(e,t){return S.H.useCallback(e,t)},t.useContext=function(e){return S.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return S.H.useEffect(e,t)},t.useEffectEvent=function(e){return S.H.useEffectEvent(e)},t.useId=function(){return S.H.useId()},t.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return S.H.useMemo(e,t)},t.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},t.useRef=function(e){return S.H.useRef(e)},t.useState=function(e){return S.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return S.H.useTransition()},t.version="19.2.7"},5043(e,t,n){"use strict";e.exports=n(4288)},579(e,t,n){"use strict";e.exports=n(2799)},5896(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<s(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var o=2*(r+1)-1,l=e[o],c=o+1,u=e[c];if(0>s(l,n))c<i&&0>s(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[o]=n,r=o);else{if(!(c<i&&0>s(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function s(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],h=1,d=null,f=3,p=!1,m=!1,g=!1,v=!1,y="function"===typeof setTimeout?setTimeout:null,w="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function E(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function _(e){if(g=!1,E(e),!m)if(null!==r(c))m=!0,S||(S=!0,A());else{var t=r(u);null!==t&&R(_,t.startTime-e)}}var A,S=!1,C=-1,T=5,k=-1;function x(){return!!v||!(t.unstable_now()-k<T)}function N(){if(v=!1,S){var e=t.unstable_now();k=e;var n=!0;try{e:{m=!1,g&&(g=!1,w(C),C=-1),p=!0;var s=f;try{t:{for(E(e),d=r(c);null!==d&&!(d.expirationTime>e&&x());){var a=d.callback;if("function"===typeof a){d.callback=null,f=d.priorityLevel;var o=a(d.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof o){d.callback=o,E(e),n=!0;break t}d===r(c)&&i(c),E(e)}else i(c);d=r(c)}if(null!==d)n=!0;else{var l=r(u);null!==l&&R(_,l.startTime-e),n=!1}}break e}finally{d=null,f=s,p=!1}n=void 0}}finally{n?A():S=!1}}}if("function"===typeof b)A=function(){b(N)};else if("undefined"!==typeof MessageChannel){var I=new MessageChannel,O=I.port2;I.port1.onmessage=N,A=function(){O.postMessage(null)}}else A=function(){y(N,0)};function R(e,n){C=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_requestPaint=function(){v=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,s){var a=t.unstable_now();switch("object"===typeof s&&null!==s?s="number"===typeof(s=s.delay)&&0<s?a+s:a:s=a,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:h++,callback:i,priorityLevel:e,startTime:s,expirationTime:o=s+o,sortIndex:-1},s>a?(e.sortIndex=s,n(u,e),null===r(c)&&e===r(u)&&(g?(w(C),C=-1):g=!0,R(_,s-a))):(e.sortIndex=o,n(c,e),m||p||(m=!0,S||(S=!0,A()))),e},t.unstable_shouldYield=x,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},8853(e,t,n){"use strict";e.exports=n(5896)},1969(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{Zw:()=>l});var i=n(8587),s=n(5043);n(2740);function a(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function o(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}function l(e,t){return Object.keys(t).reduce(function(n,l){var c,u=n,h=u[a(l)],d=u[l],f=(0,i.A)(u,[a(l),l].map(o)),p=t[l],m=function(e,t,n){var r=(0,s.useRef)(void 0!==e),i=(0,s.useState)(t),a=i[0],o=i[1],l=void 0!==e,c=r.current;return r.current=l,!l&&c&&a!==t&&o(t),[l?e:a,(0,s.useCallback)(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n&&n.apply(void 0,[e].concat(r)),o(e)},[n])]}(d,h,e[p]),g=m[0],v=m[1];return r({},f,((c={})[l]=g,c[p]=v,c))},e)}function c(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function u(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function h(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}c.__suppressDeprecationWarning=!0,u.__suppressDeprecationWarning=!0,h.__suppressDeprecationWarning=!0},6440(e){"use strict";var t=function(){};e.exports=t},8139(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,s(n)))}return e}function s(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},3145(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},6369(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},4705(e,t,n){"use strict";function r(e){return r="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},r(e)}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>s})},6562(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},9379(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(4705);function i(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},45(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(8587);function i(e,t){if(null==e)return{};var n,i,s=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}},8587(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},5544(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(6369);var i=n(7800),s=n(6562);function a(e,t){return(0,r.A)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,s,a,o=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(e,t)||(0,i.A)(e,t)||(0,s.A)()}},5763(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(6369);var i=n(7800),s=n(6562);function a(e){return(0,r.A)(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.A)(e)||(0,s.A)()}},7800(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(3145);function i(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},9232(e,t,n){"use strict";n.d(t,{MF:()=>he,j6:()=>ae,xZ:()=>oe,om:()=>se,Sx:()=>fe,Wp:()=>de,KO:()=>pe});var r=n(9379),i=n(9606),s=n(2965),a=n(1776);let o,l;const c=new WeakMap,u=new WeakMap,h=new WeakMap,d=new WeakMap,f=new WeakMap;let p={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return u.get(e);if("objectStoreNames"===t)return e.objectStoreNames||h.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return v(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function m(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(l||(l=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(y(this),n),v(c.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(e.apply(y(this),n))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];const s=e.call(y(this),t,...r);return h.set(s,t.sort?t.sort():[t]),v(s)}}function g(e){return"function"===typeof e?m(e):(e instanceof IDBTransaction&&function(e){if(u.has(e))return;const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{t(),r()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});u.set(e,t)}(e),t=e,(o||(o=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(e=>t instanceof e)?new Proxy(e,p):e);var t}function v(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{t(v(e.result)),r()},s=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",s)});return t.then(t=>{t instanceof IDBCursor&&c.set(t,e)}).catch(()=>{}),f.set(t,e),t}(e);if(d.has(e))return d.get(e);const t=g(e);return t!==e&&(d.set(e,t),f.set(t,e)),t}const y=e=>f.get(e);const w=["get","getKey","getAll","getAllKeys","count"],b=["put","add","delete","clear"],E=new Map;function _(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(E.get(t))return E.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=b.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!w.includes(n))return;const s=async function(e){const t=this.transaction(e,i?"readwrite":"readonly");let s=t.store;for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];return r&&(s=s.index(o.shift())),(await Promise.all([s[n](...o),i&&t.done]))[0]};return E.set(t,s),s}p=(e=>(0,r.A)((0,r.A)({},e),{},{get:(t,n,r)=>_(t,n)||e.get(t,n,r),has:(t,n)=>!!_(t,n)||e.has(t,n)}))(p);class A{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){const t=e.getImmediate();return"".concat(t.library,"/").concat(t.version)}return null}).filter(e=>e).join(" ")}}const S="@firebase/app",C="0.15.0",T=new s.Vy("@firebase/app"),k="@firebase/app-compat",x="@firebase/analytics-compat",N="@firebase/analytics",I="@firebase/app-check-compat",O="@firebase/app-check",R="@firebase/auth",P="@firebase/auth-compat",D="@firebase/database",L="@firebase/data-connect",M="@firebase/database-compat",U="@firebase/functions",V="@firebase/functions-compat",F="@firebase/installations",j="@firebase/installations-compat",z="@firebase/messaging",B="@firebase/messaging-compat",H="@firebase/performance",q="@firebase/performance-compat",G="@firebase/remote-config",W="@firebase/remote-config-compat",K="@firebase/storage",Q="@firebase/storage-compat",Y="@firebase/firestore",$="@firebase/ai",X="@firebase/firestore-compat",J="firebase",Z="[DEFAULT]",ee={[S]:"fire-core",[k]:"fire-core-compat",[N]:"fire-analytics",[x]:"fire-analytics-compat",[O]:"fire-app-check",[I]:"fire-app-check-compat",[R]:"fire-auth",[P]:"fire-auth-compat",[D]:"fire-rtdb",[L]:"fire-data-connect",[M]:"fire-rtdb-compat",[U]:"fire-fn",[V]:"fire-fn-compat",[F]:"fire-iid",[j]:"fire-iid-compat",[z]:"fire-fcm",[B]:"fire-fcm-compat",[H]:"fire-perf",[q]:"fire-perf-compat",[G]:"fire-rc",[W]:"fire-rc-compat",[K]:"fire-gcs",[Q]:"fire-gcs-compat",[Y]:"fire-fst",[X]:"fire-fst-compat",[$]:"fire-vertex","fire-js":"fire-js",[J]:"fire-js-all"},te=new Map,ne=new Map,re=new Map;function ie(e,t){try{e.container.addComponent(t)}catch(n){T.debug("Component ".concat(t.name," failed to register with FirebaseApp ").concat(e.name),n)}}function se(e){const t=e.name;if(re.has(t))return T.debug("There were multiple attempts to register component ".concat(t,".")),!1;re.set(t,e);for(const n of te.values())ie(n,e);for(const n of ne.values())ie(n,e);return!0}function ae(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function oe(e){return null!==e&&void 0!==e&&void 0!==e.settings}const le={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},ce=new a.FA("app","Firebase",le);class ue{constructor(e,t,n){this._isDeleted=!1,this._options=(0,r.A)({},e),this._config=(0,r.A)({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new i.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw ce.create("app-deleted",{appName:this._name})}}const he="12.15.0";function de(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("object"!==typeof t){t={name:t}}const s=(0,r.A)({name:Z,automaticDataCollectionEnabled:!0},t),o=s.name;if("string"!==typeof o||!o)throw ce.create("bad-app-name",{appName:String(o)});if(n||(n=(0,a.T9)()),!n)throw ce.create("no-options");const l=te.get(o);if(l){if((0,a.bD)(n,l.options)&&(0,a.bD)(s,l.config))return l;throw ce.create("duplicate-app",{appName:o})}const c=new i.h1(o);for(const r of re.values())c.addComponent(r);const u=new ue(n,s,c);return te.set(o,u),u}function fe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z;const t=te.get(e);if(!t&&e===Z&&(0,a.T9)())return de();if(!t)throw ce.create("no-app",{appName:e});return t}function pe(e,t,n){var r;let s=null!==(r=ee[e])&&void 0!==r?r:e;n&&(s+="-".concat(n));const a=s.match(/\s|\//),o=t.match(/\s|\//);if(a||o){const e=['Unable to register library "'.concat(s,'" with version "').concat(t,'":')];return a&&e.push('library name "'.concat(s,'" contains illegal characters (whitespace or "/")')),a&&o&&e.push("and"),o&&e.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),void T.warn(e.join(" "))}se(new i.uA("".concat(s,"-version"),()=>({library:s,version:t}),"VERSION"))}const me="firebase-heartbeat-store";let ge=null;function ve(){return ge||(ge=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.blocked,i=n.upgrade,s=n.blocking,a=n.terminated;const o=indexedDB.open(e,t),l=v(o);return i&&o.addEventListener("upgradeneeded",e=>{i(v(o.result),e.oldVersion,e.newVersion,v(o.transaction),e)}),r&&o.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),l.then(e=>{a&&e.addEventListener("close",()=>a()),s&&e.addEventListener("versionchange",e=>s(e.oldVersion,e.newVersion,e))}).catch(()=>{}),l}("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(me)}catch(n){console.warn(n)}}}).catch(e=>{throw ce.create("idb-open",{originalErrorMessage:e.message})})),ge}async function ye(e,t){try{const n=(await ve()).transaction(me,"readwrite"),r=n.objectStore(me);await r.put(t,we(e)),await n.done}catch(n){if(n instanceof a.g)T.warn(n.message);else{const e=ce.create("idb-set",{originalErrorMessage:null===n||void 0===n?void 0:n.message});T.warn(e.message)}}}function we(e){return"".concat(e.name,"!").concat(e.options.appId)}class be{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new _e(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){try{var e;const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=Ee();var t;if(null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats))if(this._heartbeatsCache=await this._heartbeatsCachePromise,null==(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats))return;if(this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(e=>e.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats.length>30){const e=function(e){if(0===e.length)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(n){T.warn(n)}}async getHeartbeatsHeader(){try{var e;if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=Ee(),n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024;const n=[];let r=e.slice();for(const i of e){const e=n.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),Ae(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Ae(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),r=n.heartbeatsToSend,i=n.unsentEntries,s=(0,a.Uj)(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=t,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s}catch(t){return T.warn(t),""}}}function Ee(){return(new Date).toISOString().substring(0,10)}class _e{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,a.zW)()&&(0,a.eX)().then(()=>!0).catch(()=>!1)}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await ve()).transaction(me),n=await t.objectStore(me).get(we(e));return await t.done,n}catch(t){if(t instanceof a.g)T.warn(t.message);else{const e=ce.create("idb-get",{originalErrorMessage:null===t||void 0===t?void 0:t.message});T.warn(e.message)}}}(this.app);return null!==e&&void 0!==e&&e.heartbeats?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){var t;const n=await this.read();return ye(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){if(await this._canUseIndexedDBPromise){var t;const n=await this.read();return ye(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function Ae(e){return(0,a.Uj)(JSON.stringify({version:2,heartbeats:e})).length}var Se;Se="",se(new i.uA("platform-logger",e=>new A(e),"PRIVATE")),se(new i.uA("heartbeat",e=>new be(e),"PRIVATE")),pe(S,C,Se),pe(S,C,"esm2020"),pe("fire-js","")},9606(e,t,n){"use strict";n.d(t,{h1:()=>l,uA:()=>s});var r=n(5544),i=n(1776);class s{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const a="[DEFAULT]";class o{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new i.cY;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(n){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service ".concat(this.name," is not available"))}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error("Mismatching Component ".concat(e.name," for Provider ").concat(this.name,"."));if(this.component)throw Error("Component for ".concat(this.name," has already been provided"));if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:a})}catch(n){}for(const e of this.instancesDeferred.entries()){var t=(0,r.A)(e,2);const i=t[0],s=t[1],a=this.normalizeInstanceIdentifier(i);try{const e=this.getOrInitializeService({instanceIdentifier:a});s.resolve(e)}catch(n){}}}}clearInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return this.instances.has(e)}getOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return this.instancesOptions.get(e)||{}}initialize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.options,n=void 0===t?{}:t,i=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(i))throw Error("".concat(this.name,"(").concat(i,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));const s=this.getOrInitializeService({instanceIdentifier:i,options:n});for(const o of this.instancesDeferred.entries()){var a=(0,r.A)(o,2);const e=a[0],t=a[1];i===this.normalizeInstanceIdentifier(e)&&t.resolve(s)}return s}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);const s=this.instances.get(r);return s&&e(s,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const i of n)try{i(e,t)}catch(r){}}getOrInitializeService(e){let t=e.instanceIdentifier,n=e.options,r=void 0===n?{}:n,i=this.instances.get(t);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:(s=t,s===a?void 0:s),options:r}),this.instances.set(t,i),this.instancesOptions.set(t,r),this.invokeOnInitCallbacks(i,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,i)}catch(o){}var s;return i||null}normalizeInstanceIdentifier(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return this.component?this.component.multipleInstances?e:a:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class l{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component ".concat(e.name," has already been registered with ").concat(this.name));t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new o(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},2965(e,t,n){"use strict";n.d(t,{$b:()=>i,Vy:()=>c});const r=[];var i;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(i||(i={}));const s={debug:i.DEBUG,verbose:i.VERBOSE,info:i.INFO,warn:i.WARN,error:i.ERROR,silent:i.SILENT},a=i.INFO,o={[i.DEBUG]:"log",[i.VERBOSE]:"log",[i.INFO]:"info",[i.WARN]:"warn",[i.ERROR]:"error"},l=function(e,t){if(t<e.logLevel)return;const n=(new Date).toISOString(),r=o[t];if(!r)throw new Error("Attempted to log a message with an invalid logType (value: ".concat(t,")"));for(var i=arguments.length,s=new Array(i>2?i-2:0),a=2;a<i;a++)s[a-2]=arguments[a];console[r]("[".concat(n,"]  ").concat(e.name,":"),...s)};class c{constructor(e){this.name=e,this._logLevel=a,this._logHandler=l,this._userLogHandler=null,r.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in i))throw new TypeError('Invalid value "'.concat(e,'" assigned to `logLevel`'));this._logLevel=e}setLogLevel(e){this._logLevel="string"===typeof e?s[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.DEBUG,...t),this._logHandler(this,i.DEBUG,...t)}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.VERBOSE,...t),this._logHandler(this,i.VERBOSE,...t)}info(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.INFO,...t),this._logHandler(this,i.INFO,...t)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.WARN,...t),this._logHandler(this,i.WARN,...t)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.ERROR,...t),this._logHandler(this,i.ERROR,...t)}}},9372(e,t,n){"use strict";n.d(t,{HF:()=>rt,eJ:()=>vt,xI:()=>qn,hg:()=>bt,gA:()=>wt,x9:()=>yt,df:()=>an,CI:()=>Et});var r=n(45),i=n(5544),s=n(9379),a=n(9232),o=n(1776),l=n(2965),c=n(9606);const u=["providerId"],h=["uid","auth","stsTokenManager"],d=["providerId","signInMethod"];function f(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const p=f,m=new o.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),g=new l.Vy("@firebase/auth");function v(e){if(g.logLevel<=l.$b.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];g.error("Auth (".concat(a.MF,"): ").concat(e),...n)}}function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw A(e,...n)}function w(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(e,...n)}function b(e,t,n){const r=(0,s.A)((0,s.A)({},p()),{},{[t]:n});return new o.FA("auth","Firebase",r).create(t,{appName:e.name})}function E(e){return b(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function _(e,t,n){if(!(t instanceof n))throw n.name!==t.constructor.name&&y(e,"argument-error"),b(e,"argument-error","Type of ".concat(t.constructor.name," does not match expected instance.")+"Did you pass a reference from a different Auth SDK?")}function A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("string"!==typeof e){const t=n[0],r=[...n.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(t,...r)}return m.create(e,...n)}function S(e,t){if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];throw A(t,...r)}}function C(e){const t="INTERNAL ASSERTION FAILED: "+e;throw v(t),new Error(t)}function T(e,t){e||C(t)}function k(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function x(){return"http:"===N()||"https:"===N()}function N(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}class I{constructor(e,t){this.shortDelay=e,this.longDelay=t,T(t>e,"Short delay should be less than long delay!"),this.isMobile=(0,o.jZ)()||(0,o.lV)()}get(){return"undefined"!==typeof navigator&&navigator&&"onLine"in navigator&&"boolean"===typeof navigator.onLine&&(x()||(0,o.sr)()||"connection"in navigator)&&!navigator.onLine?Math.min(5e3,this.shortDelay):this.isMobile?this.longDelay:this.shortDelay}}function O(e,t){T(e.emulator,"Emulator should always be set here");const n=e.emulator.url;return t?"".concat(n).concat(t.startsWith("/")?t.slice(1):t):n}class R{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!==typeof self&&"fetch"in self?self.fetch:"undefined"!==typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!==typeof fetch?fetch:void C("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!==typeof self&&"Headers"in self?self.Headers:"undefined"!==typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!==typeof Headers?Headers:void C("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!==typeof self&&"Response"in self?self.Response:"undefined"!==typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!==typeof Response?Response:void C("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const P={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},D=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],L=new I(3e4,6e4);function M(e,t){return e.tenantId&&!t.tenantId?(0,s.A)((0,s.A)({},t),{},{tenantId:e.tenantId}):t}async function U(e,t,n,r){return V(e,arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},async()=>{let i={},a={};r&&("GET"===t?a=r:i={body:JSON.stringify(r)});const l=(0,o.Am)((0,s.A)((0,s.A)({},a),{},{key:e.config.apiKey})).slice(1),c=await e._getAdditionalHeaders();c["Content-Type"]="application/json",e.languageCode&&(c["X-Firebase-Locale"]=e.languageCode);const u=(0,s.A)({method:t,headers:c},i);return(0,o.c1)()||(u.referrerPolicy="strict-origin-when-cross-origin"),e.emulatorConfig&&(0,o.zJ)(e.emulatorConfig.host)&&(u.credentials="include"),R.fetch()(await j(e,e.config.apiHost,n,l),u)})}async function V(e,t,n){e._canInitEmulator=!1;const r=(0,s.A)((0,s.A)({},P),t);try{const t=new B(e),s=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const a=await s.json();if("needConfirmation"in a)throw H(e,"account-exists-with-different-credential",a);if(s.ok&&!("errorMessage"in a))return a;{const t=(s.ok?a.errorMessage:a.error.message).split(" : "),n=(0,i.A)(t,2),o=n[0],l=n[1];if("FEDERATED_USER_ID_ALREADY_LINKED"===o)throw H(e,"credential-already-in-use",a);if("EMAIL_EXISTS"===o)throw H(e,"email-already-in-use",a);if("USER_DISABLED"===o)throw H(e,"user-disabled",a);const c=r[o]||o.toLowerCase().replace(/[_\s]+/g,"-");if(l)throw b(e,c,l);y(e,c)}}catch(a){if(a instanceof o.g)throw a;y(e,"network-request-failed",{message:String(a)})}}async function F(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const s=await U(e,t,n,r,i);return"mfaPendingCredential"in s&&y(e,"multi-factor-auth-required",{_serverResponse:s}),s}async function j(e,t,n,r){const i="".concat(t).concat(n,"?").concat(r),s=e,a=s.config.emulator?O(e.config,i):"".concat(e.config.apiScheme,"://").concat(i);if(D.includes(n)&&(await s._persistenceManagerAvailable,"COOKIE"===s._getPersistenceType())){return s._getPersistence()._getFinalTarget(a).toString()}return a}function z(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class B{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>{this.timer=setTimeout(()=>t(w(this.auth,"network-request-failed")),L.get())})}}function H(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=w(e,t,r);return i.customData._tokenResponse=n,i}function q(e){return void 0!==e&&void 0!==e.enterprise}class G{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return z(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}async function W(e,t){return U(e,"GET","/v2/recaptchaConfig",M(e,t))}async function K(e,t){return U(e,"POST","/v1/accounts:lookup",t)}function Q(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(t){}}function Y(e){return 1e3*Number(e)}function $(e){const t=e.split("."),n=(0,i.A)(t,3),r=n[0],s=n[1],a=n[2];if(void 0===r||void 0===s||void 0===a)return v("JWT malformed, contained fewer than 3 sections"),null;try{const e=(0,o.u)(s);return e?JSON.parse(e):(v("Failed to decode base64 JWT payload"),null)}catch(l){return v("Caught error parsing JWT payload as JSON",null===l||void 0===l?void 0:l.toString()),null}}function X(e){const t=$(e);return S(t,"internal-error"),S("undefined"!==typeof t.exp,"internal-error"),S("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}async function J(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return t;try{return await t}catch(n){throw n instanceof o.g&&function(e){let t=e.code;return t==="auth/".concat("user-disabled")||t==="auth/".concat("user-token-expired")}(n)&&e.auth.currentUser===e&&await e.auth.signOut(),n}}class Z{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{var t;this.errorBackoff=3e4;const e=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,e)}}schedule(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){return void((null===e||void 0===e?void 0:e.code)==="auth/".concat("network-request-failed")&&this.schedule(!0))}this.schedule()}}class ee{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=Q(this.lastLoginAt),this.creationTime=Q(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function te(e){var t;const n=e.auth,r=await e.getIdToken(),i=await J(e,K(n,{idToken:r}));S(null===i||void 0===i?void 0:i.users.length,n,"internal-error");const s=i.users[0];e._notifyReloadListener(s);const a=null!==(t=s.providerUserInfo)&&void 0!==t&&t.length?ne(s.providerUserInfo):[],o=(l=e.providerData,c=a,[...l.filter(e=>!c.some(t=>t.providerId===e.providerId)),...c]);var l,c;const u=e.isAnonymous,h=!(e.email&&s.passwordHash)&&!(null!==o&&void 0!==o&&o.length),d=!!u&&h,f={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:o,metadata:new ee(s.createdAt,s.lastLoginAt),isAnonymous:d};Object.assign(e,f)}function ne(e){return e.map(e=>{let t=e.providerId,n=(0,r.A)(e,u);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})}class re{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){S(e.idToken,"internal-error"),S("undefined"!==typeof e.idToken,"internal-error"),S("undefined"!==typeof e.refreshToken,"internal-error");const t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):X(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){S(0!==e.length,"internal-error");const t=X(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!this.accessToken||this.isExpired?(S(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null):this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const n=await async function(e,t){const n=await V(e,{},async()=>{const n=(0,o.Am)({grant_type:"refresh_token",refresh_token:t}).slice(1),r=e.config,i=r.tokenApiHost,s=r.apiKey,a=await j(e,i,"/v1/token","key=".concat(s)),l=await e._getAdditionalHeaders();l["Content-Type"]="application/x-www-form-urlencoded";const c={method:"POST",headers:l,body:n};return e.emulatorConfig&&(0,o.zJ)(e.emulatorConfig.host)&&(c.credentials="include"),R.fetch()(a,c)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t),r=n.accessToken,i=n.refreshToken,s=n.expiresIn;this.updateTokensAndExpiration(r,i,Number(s))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const n=t.refreshToken,r=t.accessToken,i=t.expirationTime,s=new re;return n&&(S("string"===typeof n,"internal-error",{appName:e}),s.refreshToken=n),r&&(S("string"===typeof r,"internal-error",{appName:e}),s.accessToken=r),i&&(S("number"===typeof i,"internal-error",{appName:e}),s.expirationTime=i),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new re,this.toJSON())}_performRefresh(){return C("not implemented")}}function ie(e,t){S("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}class se{constructor(e){let t=e.uid,n=e.auth,i=e.stsTokenManager,s=(0,r.A)(e,h);this.providerId="firebase",this.proactiveRefresh=new Z(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=s.displayName||null,this.email=s.email||null,this.emailVerified=s.emailVerified||!1,this.phoneNumber=s.phoneNumber||null,this.photoURL=s.photoURL||null,this.isAnonymous=s.isAnonymous||!1,this.tenantId=s.tenantId||null,this.providerData=s.providerData?[...s.providerData]:[],this.metadata=new ee(s.createdAt||void 0,s.lastLoginAt||void 0)}async getIdToken(e){const t=await J(this,this.stsTokenManager.getToken(this.auth,e));return S(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,o.Ku)(e),r=await n.getIdToken(t),i=$(r);S(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const s="object"===typeof i.firebase?i.firebase:void 0,a=null===s||void 0===s?void 0:s.sign_in_provider;return{claims:i,token:r,authTime:Q(Y(i.auth_time)),issuedAtTime:Q(Y(i.iat)),expirationTime:Q(Y(i.exp)),signInProvider:a||null,signInSecondFactor:(null===s||void 0===s?void 0:s.sign_in_second_factor)||null}}(this,e)}reload(){return async function(e){const t=(0,o.Ku)(e);await te(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(S(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(e=>(0,s.A)({},e)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new se((0,s.A)((0,s.A)({},this),{},{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){S(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await te(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if((0,a.xZ)(this.auth.app))return Promise.reject(E(this.auth));const e=await this.getIdToken();return await J(this,async function(e,t){return U(e,"POST","/v1/accounts:delete",t)}(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return(0,s.A)((0,s.A)({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>(0,s.A)({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{},{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,r,i,a,o,l,c,u;const h=null!==(n=t.displayName)&&void 0!==n?n:void 0,d=null!==(r=t.email)&&void 0!==r?r:void 0,f=null!==(i=t.phoneNumber)&&void 0!==i?i:void 0,p=null!==(a=t.photoURL)&&void 0!==a?a:void 0,m=null!==(o=t.tenantId)&&void 0!==o?o:void 0,g=null!==(l=t._redirectEventId)&&void 0!==l?l:void 0,v=null!==(c=t.createdAt)&&void 0!==c?c:void 0,y=null!==(u=t.lastLoginAt)&&void 0!==u?u:void 0,w=t.uid,b=t.emailVerified,E=t.isAnonymous,_=t.providerData,A=t.stsTokenManager;S(w&&A,e,"internal-error");const C=re.fromJSON(this.name,A);S("string"===typeof w,e,"internal-error"),ie(h,e.name),ie(d,e.name),S("boolean"===typeof b,e,"internal-error"),S("boolean"===typeof E,e,"internal-error"),ie(f,e.name),ie(p,e.name),ie(m,e.name),ie(g,e.name),ie(v,e.name),ie(y,e.name);const T=new se({uid:w,auth:e,email:d,emailVerified:b,displayName:h,isAnonymous:E,photoURL:p,phoneNumber:f,tenantId:m,stsTokenManager:C,createdAt:v,lastLoginAt:y});return _&&Array.isArray(_)&&(T.providerData=_.map(e=>(0,s.A)({},e))),g&&(T._redirectEventId=g),T}static async _fromIdTokenResponse(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=new re;r.updateFromServerResponse(t);const i=new se({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await te(i),i}static async _fromGetAccountInfoResponse(e,t,n){const r=t.users[0];S(void 0!==r.localId,"internal-error");const i=void 0!==r.providerUserInfo?ne(r.providerUserInfo):[],s=!(r.email&&r.passwordHash)&&!(null!==i&&void 0!==i&&i.length),a=new re;a.updateFromIdToken(n);const o=new se({uid:r.localId,auth:e,stsTokenManager:a,isAnonymous:s}),l={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:i,metadata:new ee(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash)&&!(null!==i&&void 0!==i&&i.length)};return Object.assign(o,l),o}}const ae=new Map;function oe(e){T(e instanceof Function,"Expected a class definition");let t=ae.get(e);return t?(T(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,ae.set(e,t),t)}class le{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}le.type="NONE";const ce=le;function ue(e,t,n){return"firebase".concat(":",e,":").concat(t,":").concat(n)}class he{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const r=this.auth,i=r.config,s=r.name;this.fullUserKey=ue(this.userKey,i.apiKey,s),this.fullPersistenceKey=ue("persistence",i.apiKey,s),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if("string"===typeof e){const t=await K(this.auth,{idToken:e}).catch(()=>{});return t?se._fromGetAccountInfoResponse(this.auth,t,e):null}return se._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"authUser";if(!t.length)return new he(oe(ce),e,n);const r=(await Promise.all(t.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e);let i=r[0]||oe(ce);const s=ue(n,e.config.apiKey,e.name);let a=null;for(const c of t)try{const t=await c._get(s);if(t){let n;if("string"===typeof t){const r=await K(e,{idToken:t}).catch(()=>{});if(!r)break;n=await se._fromGetAccountInfoResponse(e,r,t)}else n=se._fromJSON(e,t);c!==i&&(a=n),i=c;break}}catch(l){}const o=r.filter(e=>e._shouldAllowMigration);return i._shouldAllowMigration&&o.length?(i=o[0],a&&await i._set(s,a.toJSON()),await Promise.all(t.map(async e=>{if(e!==i)try{await e._remove(s)}catch(t){}})),new he(i,e,n)):new he(i,e,n)}}function de(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(ge(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(fe(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(ye(t))return"Blackberry";if(we(t))return"Webos";if(pe(t))return"Safari";if((t.includes("chrome/")||me(t))&&!t.includes("edge/"))return"Chrome";if(ve(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===(null===n||void 0===n?void 0:n.length))return n[1]}return"Other"}function fe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return/firefox\//i.test(e)}function pe(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)()).toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function me(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return/crios\//i.test(e)}function ge(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return/iemobile/i.test(e)}function ve(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return/android/i.test(e)}function ye(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return/blackberry/i.test(e)}function we(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return/webos/i.test(e)}function be(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function Ee(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)();return be(e)||ve(e)||we(e)||ye(e)||/windows phone/i.test(e)||ge(e)}function _e(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=de((0,o.ZQ)());break;case"Worker":t="".concat(de((0,o.ZQ)()),"-").concat(e);break;default:t=e}const r=n.length?n.join(","):"FirebaseCore-web";return"".concat(t,"/","JsCore","/").concat(a.MF,"/").concat(r)}class Ae{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise((n,r)=>{try{n(e(t))}catch(i){r(i)}});n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(n){t.reverse();for(const e of t)try{e()}catch(r){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null===n||void 0===n?void 0:n.message})}}}class Se{constructor(e){var t,n,r,i;const s=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=s.minPasswordLength)&&void 0!==t?t:6,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),void 0!==s.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),void 0!==s.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),void 0!==s.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),void 0!==s.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(n=null===(r=e.allowedNonAlphanumericCharacters)||void 0===r?void 0:r.join(""))&&void 0!==n?n:"",this.forceUpgradeOnSignin=null!==(i=e.forceUpgradeOnSignin)&&void 0!==i&&i,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,n,r,i,s,a;const o={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,o),this.validatePasswordCharacterOptions(e,o),o.isValid&&(o.isValid=null===(t=o.meetsMinPasswordLength)||void 0===t||t),o.isValid&&(o.isValid=null===(n=o.meetsMaxPasswordLength)||void 0===n||n),o.isValid&&(o.isValid=null===(r=o.containsLowercaseLetter)||void 0===r||r),o.isValid&&(o.isValid=null===(i=o.containsUppercaseLetter)||void 0===i||i),o.isValid&&(o.isValid=null===(s=o.containsNumericCharacter)||void 0===s||s),o.isValid&&(o.isValid=null===(a=o.containsNonAlphanumericCharacter)||void 0===a||a),o}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}class Ce{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new ke(this),this.idTokenSubscription=new ke(this),this.beforeStateQueue=new Ae(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=m,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion,this._persistenceManagerAvailable=new Promise(e=>this._resolvePersistenceManagerAvailable=e)}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=oe(t)),this._initializationPromise=this.queue(async()=>{var n,r,i;if(!this._deleted&&(this.persistenceManager=await he.create(this,e),null===(n=this._resolvePersistenceManagerAvailable)||void 0===n||n.call(this),!this._deleted)){if(null!==(r=this._popupRedirectResolver)&&void 0!==r&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(s){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(i=this.currentUser)||void 0===i?void 0:i.uid)||null,this._deleted||(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void await this.currentUser.getIdToken()):void await this._updateCurrentUser(e,!0):void 0}async initializeCurrentUserFromIdToken(e){try{const t=await K(this,{idToken:e}),n=await se._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(n)}catch(t){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",t),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){if((0,a.xZ)(this.app)){const e=this.app.settings.authIdToken;return e?new Promise(t=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(e).then(t,t))}):this.directlySetCurrentUser(null)}const t=await this.assertedPersistence.getCurrentUser();let n=t,r=!1;if(e&&this.config.authDomain){var i,s;await this.getOrInitRedirectPersistenceManager();const t=null===(i=this.redirectUser)||void 0===i?void 0:i._redirectEventId,a=null===(s=n)||void 0===s?void 0:s._redirectEventId,o=await this.tryRedirectSignIn(e);t&&t!==a||null===o||void 0===o||!o.user||(n=o.user,r=!0)}if(!n)return this.directlySetCurrentUser(null);if(!n._redirectEventId){if(r)try{await this.beforeStateQueue.runMiddleware(n)}catch(o){n=t,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(o))}return n?this.reloadAndSetCurrentUserOrClear(n):this.directlySetCurrentUser(null)}return S(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===n._redirectEventId?this.directlySetCurrentUser(n):this.reloadAndSetCurrentUserOrClear(n)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(n){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await te(e)}catch(t){if((null===t||void 0===t?void 0:t.code)!=="auth/".concat("network-request-failed"))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"===typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if((0,a.xZ)(this.app))return Promise.reject(E(this));const t=e?(0,o.Ku)(e):null;return t&&S(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._deleted)return e&&S(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return(0,a.xZ)(this.app)?Promise.reject(E(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return(0,a.xZ)(this.app)?Promise.reject(E(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(oe(e))})}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await async function(e){return U(e,"GET","/v2/passwordPolicy",M(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}(this),t=new Se(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new o.FA("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise((e,t)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged(()=>{n(),e()},t)}})}async revokeAccessToken(e){if(this.currentUser){const t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await async function(e,t){return U(e,"POST","/v2/accounts:revokeToken",M(e,t))}(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&oe(e)||this._popupRedirectResolver;S(t,this,"argument-error"),this.redirectPersistenceManager=await he.create(this,[oe(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return this._isInitialized&&await this.queue(async()=>{}),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e?this._currentUser:(null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(this.name)}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const n=null!==(e=null===(t=this.currentUser)||void 0===t?void 0:t.uid)&&void 0!==e?e:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const i="function"===typeof t?t:t.next.bind(t);let s=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(S(a,this,"internal-error"),a.then(()=>{s||i(this.currentUser)}),"function"===typeof t){const i=e.addObserver(t,n,r);return()=>{s=!0,i()}}{const n=e.addObserver(t);return()=>{s=!0,n()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return S(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=_e(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await(null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){var e;if((0,a.xZ)(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const t=await(null===(e=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getToken());return null!==t&&void 0!==t&&t.error&&function(e){if(g.logLevel<=l.$b.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];g.warn("Auth (".concat(a.MF,"): ").concat(e),...n)}}("Error while retrieving App Check token: ".concat(t.error)),null===t||void 0===t?void 0:t.token}}function Te(e){return(0,o.Ku)(e)}class ke{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,o.tD)(e=>this.observer=e)}get next(){return S(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let xe={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Ne(e){return xe.loadJS(e)}function Ie(e){return"__".concat(e).concat(Math.floor(1e6*Math.random()))}class Oe{constructor(){this.enterprise=new Re}ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}class Re{ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}const Pe="NO_RECAPTCHA",De="onFirebaseAuthREInstanceReady";class Le{constructor(e){this.type="recaptcha-enterprise",this.auth=Te(e)}async verify(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"verify",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(t,n,r){const i=window.grecaptcha;q(i)?i.enterprise.ready(()=>{i.enterprise.execute(t,{action:e}).then(e=>{n(e)}).catch(()=>{n(Pe)})}):r(Error("No reCAPTCHA enterprise script loaded."))}if(this.auth.settings.appVerificationDisabledForTesting){return(new Oe).execute("siteKey",{action:"verify"})}return new Promise((e,r)=>{(async function(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise(async(t,n)=>{W(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(r=>{if(void 0!==r.recaptchaKey){const n=new G(r);return null==e.tenantId?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}n(new Error("recaptcha Enterprise site key undefined"))}).catch(e=>{n(e)})})})(this.auth).then(async i=>{if(!t&&q(window.grecaptcha)&&Le.scriptInjectionDeferred)await Le.scriptInjectionDeferred.promise,n(i,e,r);else{if("undefined"===typeof window)return void r(new Error("RecaptchaVerifier is only supported in browser"));let t=xe.recaptchaEnterpriseScript;0!==t.length&&(t+=i+"&onload=".concat(De)),Le.scriptInjectionDeferred=new o.cY,window[De]=()=>{var e;null===(e=Le.scriptInjectionDeferred)||void 0===e||e.resolve()},Ne(t).then(()=>{var e;return null===(e=Le.scriptInjectionDeferred)||void 0===e?void 0:e.promise}).then(()=>{n(i,e,r)}).catch(e=>{r(e)})}}).catch(e=>{r(e)})})}}async function Me(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const a=new Le(e);let o;if(i)o=Pe;else try{o=await a.verify(n)}catch(c){o=await a.verify(n,!0)}const l=(0,s.A)({},t);if("mfaSmsEnrollment"===n||"mfaSmsSignIn"===n){if("phoneEnrollmentInfo"in l){const e=l.phoneEnrollmentInfo.phoneNumber,t=l.phoneEnrollmentInfo.recaptchaToken;Object.assign(l,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:t,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in l){const e=l.phoneSignInInfo.recaptchaToken;Object.assign(l,{phoneSignInInfo:{recaptchaToken:e,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return l}return r?Object.assign(l,{captchaResp:o}):Object.assign(l,{captchaResponse:o}),Object.assign(l,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(l,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),l}async function Ue(e,t,n,r,i){if("EMAIL_PASSWORD_PROVIDER"===i){var s;if(null!==(s=e._getRecaptchaConfig())&&void 0!==s&&s.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await Me(e,t,n,"getOobCode"===n);return r(e,i)}return r(e,t).catch(async i=>{if(i.code==="auth/".concat("missing-recaptcha-token")){console.log("".concat(n," is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow."));const i=await Me(e,t,n,"getOobCode"===n);return r(e,i)}return Promise.reject(i)})}if("PHONE_PROVIDER"===i){var a;if(null!==(a=e._getRecaptchaConfig())&&void 0!==a&&a.isProviderEnabled("PHONE_PROVIDER")){const i=await Me(e,t,n);return r(e,i).catch(async i=>{var s;if("AUDIT"===(null===(s=e._getRecaptchaConfig())||void 0===s?void 0:s.getProviderEnforcementState("PHONE_PROVIDER"))&&(i.code==="auth/".concat("missing-recaptcha-token")||i.code==="auth/".concat("invalid-app-credential"))){console.log("Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ".concat(n," flow."));const i=await Me(e,t,n,!1,!0);return r(e,i)}return Promise.reject(i)})}{const i=await Me(e,t,n,!1,!0);return r(e,i)}}return Promise.reject(i+" provider is not supported.")}async function Ve(e){const t=Te(e),n=await W(t,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),r=new G(n);if(null==t.tenantId?t._agentRecaptchaConfig=r:t._tenantRecaptchaConfigs[t.tenantId]=r,r.isAnyProviderEnabled()){new Le(t).verify()}}function Fe(e,t,n){const r=Te(e);S(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const s=!(null===n||void 0===n||!n.disableWarnings),a=je(t),l=function(e){const t=je(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",s=/^(\[[^\]]+\])(:|$)/.exec(r);if(s){const e=s[1];return{host:e,port:ze(r.substr(e.length+1))}}{const e=r.split(":"),t=(0,i.A)(e,2);return{host:t[0],port:ze(t[1])}}}(t),c=l.host,u=l.port,h=null===u?"":":".concat(u),d={url:"".concat(a,"//").concat(c).concat(h,"/")},f=Object.freeze({host:c,port:u,protocol:a.replace(":",""),options:Object.freeze({disableWarnings:s})});if(!r._canInitEmulator)return S(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),void S((0,o.bD)(d,r.config.emulator)&&(0,o.bD)(f,r.emulatorConfig),r,"emulator-config-failed");r.config.emulator=d,r.emulatorConfig=f,r.settings.appVerificationDisabledForTesting=!0,(0,o.zJ)(c)?(0,o.gE)("".concat(a,"//").concat(c).concat(h)):s||function(){function e(){const e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!==typeof console&&"function"===typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials.");"undefined"!==typeof window&&"undefined"!==typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}function je(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function ze(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}Le.scriptInjectionDeferred=null;class Be{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return C("not implemented")}_getIdTokenResponse(e){return C("not implemented")}_linkToIdToken(e,t){return C("not implemented")}_getReauthenticationResolver(e){return C("not implemented")}}async function He(e,t){return U(e,"POST","/v1/accounts:signUp",t)}async function qe(e,t){return F(e,"POST","/v1/accounts:signInWithPassword",M(e,t))}async function Ge(e,t){return U(e,"POST","/v1/accounts:sendOobCode",M(e,t))}class We extends Be{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new We(e,t,"password")}static _fromEmailAndCode(e,t){return new We(e,t,"emailLink",arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e;if(null!==t&&void 0!==t&&t.email&&null!==t&&void 0!==t&&t.password){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return Ue(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",qe,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return async function(e,t){return F(e,"POST","/v1/accounts:signInWithEmailLink",M(e,t))}(e,{email:this._email,oobCode:this._password});default:y(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return Ue(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",He,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return async function(e,t){return F(e,"POST","/v1/accounts:signInWithEmailLink",M(e,t))}(e,{idToken:t,email:this._email,oobCode:this._password});default:y(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function Ke(e,t){return F(e,"POST","/v1/accounts:signInWithIdp",M(e,t))}class Qe extends Be{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new Qe(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):y("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,n=t.providerId,i=t.signInMethod,s=(0,r.A)(t,d);if(!n||!i)return null;const a=new Qe(n,i);return a.idToken=s.idToken||void 0,a.accessToken=s.accessToken||void 0,a.secret=s.secret,a.nonce=s.nonce,a.pendingToken=s.pendingToken||null,a}_getIdTokenResponse(e){return Ke(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Ke(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Ke(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=(0,o.Am)(t)}return e}}async function Ye(e,t){return U(e,"POST","/v1/accounts:sendVerificationCode",M(e,t))}const $e={USER_NOT_FOUND:"user-not-found"};class Xe extends Be{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new Xe({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new Xe({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return async function(e,t){return F(e,"POST","/v1/accounts:signInWithPhoneNumber",M(e,t))}(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return async function(e,t){const n=await F(e,"POST","/v1/accounts:signInWithPhoneNumber",M(e,t));if(n.temporaryProof)throw H(e,"account-exists-with-different-credential",n);return n}(e,(0,s.A)({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return async function(e,t){return F(e,"POST","/v1/accounts:signInWithPhoneNumber",M(e,(0,s.A)((0,s.A)({},t),{},{operation:"REAUTH"})),$e)}(e,this._makeVerificationRequest())}_makeVerificationRequest(){const e=this.params,t=e.temporaryProof,n=e.phoneNumber,r=e.verificationId,i=e.verificationCode;return t&&n?{temporaryProof:t,phoneNumber:n}:{sessionInfo:r,code:i}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"===typeof e&&(e=JSON.parse(e));const t=e,n=t.verificationId,r=t.verificationCode,i=t.phoneNumber,s=t.temporaryProof;return r||n||i||s?new Xe({verificationId:n,verificationCode:r,phoneNumber:i,temporaryProof:s}):null}}class Je{constructor(e){var t,n,r,i,s,a;const l=(0,o.I9)((0,o.hp)(e)),c=null!==(t=l.apiKey)&&void 0!==t?t:null,u=null!==(n=l.oobCode)&&void 0!==n?n:null,h=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(r=l.mode)&&void 0!==r?r:null);S(c&&u&&h,"argument-error"),this.apiKey=c,this.operation=h,this.code=u,this.continueUrl=null!==(i=l.continueUrl)&&void 0!==i?i:null,this.languageCode=null!==(s=l.lang)&&void 0!==s?s:null,this.tenantId=null!==(a=l.tenantId)&&void 0!==a?a:null}static parseLink(e){const t=function(e){const t=(0,o.I9)((0,o.hp)(e)).link,n=t?(0,o.I9)((0,o.hp)(t)).deep_link_id:null,r=(0,o.I9)((0,o.hp)(e)).deep_link_id;return(r?(0,o.I9)((0,o.hp)(r)).link:null)||r||n||t||e}(e);try{return new Je(t)}catch(n){return null}}}class Ze{constructor(){this.providerId=Ze.PROVIDER_ID}static credential(e,t){return We._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){const n=Je.parseLink(t);return S(n,"argument-error"),We._fromEmailAndCode(e,n.code,n.tenantId)}}Ze.PROVIDER_ID="password",Ze.EMAIL_PASSWORD_SIGN_IN_METHOD="password",Ze.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class et{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class tt extends et{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class nt extends tt{constructor(){super("facebook.com")}static credential(e){return Qe._fromParams({providerId:nt.PROVIDER_ID,signInMethod:nt.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return nt.credentialFromTaggedObject(e)}static credentialFromError(e){return nt.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let t=e._tokenResponse;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return nt.credential(t.oauthAccessToken)}catch(n){return null}}}nt.FACEBOOK_SIGN_IN_METHOD="facebook.com",nt.PROVIDER_ID="facebook.com";class rt extends tt{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return Qe._fromParams({providerId:rt.PROVIDER_ID,signInMethod:rt.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return rt.credentialFromTaggedObject(e)}static credentialFromError(e){return rt.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let t=e._tokenResponse;if(!t)return null;const n=t.oauthIdToken,r=t.oauthAccessToken;if(!n&&!r)return null;try{return rt.credential(n,r)}catch(i){return null}}}rt.GOOGLE_SIGN_IN_METHOD="google.com",rt.PROVIDER_ID="google.com";class it extends tt{constructor(){super("github.com")}static credential(e){return Qe._fromParams({providerId:it.PROVIDER_ID,signInMethod:it.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return it.credentialFromTaggedObject(e)}static credentialFromError(e){return it.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let t=e._tokenResponse;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return it.credential(t.oauthAccessToken)}catch(n){return null}}}it.GITHUB_SIGN_IN_METHOD="github.com",it.PROVIDER_ID="github.com";class st extends tt{constructor(){super("twitter.com")}static credential(e,t){return Qe._fromParams({providerId:st.PROVIDER_ID,signInMethod:st.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return st.credentialFromTaggedObject(e)}static credentialFromError(e){return st.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let t=e._tokenResponse;if(!t)return null;const n=t.oauthAccessToken,r=t.oauthTokenSecret;if(!n||!r)return null;try{return st.credential(n,r)}catch(i){return null}}}async function at(e,t){return F(e,"POST","/v1/accounts:signUp",M(e,t))}st.TWITTER_SIGN_IN_METHOD="twitter.com",st.PROVIDER_ID="twitter.com";class ot{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=await se._fromIdTokenResponse(e,n,r),s=lt(n);return new ot({user:i,providerId:s,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=lt(n);return new ot({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function lt(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}class ct extends o.g{constructor(e,t,n,r){var i;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,ct.prototype),this.customData={appName:e.name,tenantId:null!==(i=e.tenantId)&&void 0!==i?i:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new ct(e,t,n,r)}}function ut(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(n=>{if(n.code==="auth/".concat("multi-factor-auth-required"))throw ct._fromErrorAndOperation(e,n,t,r);throw n})}async function ht(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=await J(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return ot._forOperation(e,"link",r)}async function dt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.auth;if((0,a.xZ)(r.app))return Promise.reject(E(r));const i="reauthenticate";try{const s=await J(e,ut(r,i,t,e),n);S(s.idToken,r,"internal-error");const a=$(s.idToken);S(a,r,"internal-error");const o=a.sub;return S(e.uid===o,r,"user-mismatch"),ot._forOperation(e,i,s)}catch(s){throw(null===s||void 0===s?void 0:s.code)==="auth/".concat("user-not-found")&&y(r,"user-mismatch"),s}}async function ft(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,a.xZ)(e.app))return Promise.reject(E(e));const r="signIn",i=await ut(e,r,t),s=await ot._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(s.user),s}async function pt(e,t){return ft(Te(e),t)}function mt(e,t,n){var r;S((null===(r=n.url)||void 0===r?void 0:r.length)>0,e,"invalid-continue-uri"),S("undefined"===typeof n.dynamicLinkDomain||n.dynamicLinkDomain.length>0,e,"invalid-dynamic-link-domain"),S("undefined"===typeof n.linkDomain||n.linkDomain.length>0,e,"invalid-hosting-link-domain"),t.continueUrl=n.url,t.dynamicLinkDomain=n.dynamicLinkDomain,t.linkDomain=n.linkDomain,t.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(S(n.iOS.bundleId.length>0,e,"missing-ios-bundle-id"),t.iOSBundleId=n.iOS.bundleId),n.android&&(S(n.android.packageName.length>0,e,"missing-android-pkg-name"),t.androidInstallApp=n.android.installApp,t.androidMinimumVersionCode=n.android.minimumVersion,t.androidPackageName=n.android.packageName)}async function gt(e){const t=Te(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function vt(e,t,n){if((0,a.xZ)(e.app))return Promise.reject(E(e));const r=Te(e),i=Ue(r,{returnSecureToken:!0,email:t,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",at,"EMAIL_PASSWORD_PROVIDER"),s=await i.catch(t=>{throw t.code==="auth/".concat("password-does-not-meet-requirements")&&gt(e),t}),o=await ot._fromIdTokenResponse(r,"signIn",s);return await r._updateCurrentUser(o.user),o}function yt(e,t,n){return(0,a.xZ)(e.app)?Promise.reject(E(e)):pt((0,o.Ku)(e),Ze.credential(t,n)).catch(async t=>{throw t.code==="auth/".concat("password-does-not-meet-requirements")&&gt(e),t})}async function wt(e,t){const n=(0,o.Ku)(e),r={requestType:"VERIFY_EMAIL",idToken:await e.getIdToken()};t&&mt(n.auth,r,t);const i=await async function(e,t){return Ge(e,t)}(n.auth,r);i.email!==e.email&&await e.reload()}function bt(e,t,n,r){return(0,o.Ku)(e).onAuthStateChanged(t,n,r)}function Et(e){return(0,o.Ku)(e).signOut()}function _t(e,t){return U(e,"POST","/v2/accounts/mfaEnrollment:start",M(e,t))}new WeakMap;const At="__sak";class St{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(At,"1"),this.storage.removeItem(At),Promise.resolve(!0)):Promise.resolve(!1)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class Ct extends St{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=Ee(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.key)return void this.forAllChangedKeys((e,t,n)=>{this.notifyListeners(e,n)});const n=e.key;t?this.detachListener():this.stopPolling();const r=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);(0,o.lT)()&&10===document.documentMode&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,10):r()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}Ct.type="LOCAL";const Tt=Ct;function kt(e){var t,n;const r=e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),i=RegExp("".concat(r,"=([^;]+)"));return null!==(t=null===(n=document.cookie.match(i))||void 0===n?void 0:n[1])&&void 0!==t?t:null}function xt(e){const t="http:"===window.location.protocol;return"".concat(t?"__dev_":"__HOST-","FIREBASE_").concat(e.split(":")[3])}class Nt{constructor(){this.type="COOKIE",this.listenerUnsubscribes=new Map}_getFinalTarget(e){if(void 0===typeof window)return e;const t=new URL("".concat(window.location.origin,"/__cookies__"));return t.searchParams.set("finalTarget",e),t}async _isAvailable(){var e;return!("boolean"===typeof isSecureContext&&!isSecureContext)&&("undefined"!==typeof navigator&&"undefined"!==typeof document&&(null===(e=navigator.cookieEnabled)||void 0===e||e))}async _set(e,t){}async _get(e){if(!this._isAvailable())return null;const t=xt(e);if(window.cookieStore){const e=await window.cookieStore.get(t);return null===e||void 0===e?void 0:e.value}return kt(t)}async _remove(e){if(!this._isAvailable())return;if(!await this._get(e))return;const t=xt(e);document.cookie="".concat(t,"=;Max-Age=34560000;Partitioned;Secure;SameSite=Strict;Path=/;Priority=High"),await fetch("/__cookies__",{method:"DELETE"}).catch(()=>{})}_addListener(e,t){if(!this._isAvailable())return;const n=xt(e);if(window.cookieStore){const e=e=>{const r=e.changed.find(e=>e.name===n);r&&t(r.value);e.deleted.find(e=>e.name===n)&&t(null)},r=()=>window.cookieStore.removeEventListener("change",e);return this.listenerUnsubscribes.set(t,r),window.cookieStore.addEventListener("change",e)}let r=kt(n);const i=setInterval(()=>{const e=kt(n);e!==r&&(t(e),r=e)},1e3);this.listenerUnsubscribes.set(t,()=>clearInterval(i))}_removeListener(e,t){const n=this.listenerUnsubscribes.get(t);n&&(n(),this.listenerUnsubscribes.delete(t))}}Nt.type="COOKIE";class It extends St{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,t){}_removeListener(e,t){}}It.type="SESSION";const Ot=It;class Rt{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find(t=>t.isListeningto(e));if(t)return t;const n=new Rt(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,n=t.data,r=n.eventId,i=n.eventType,s=n.data,a=this.handlersMap[i];if(null===a||void 0===a||!a.size)return;t.ports[0].postMessage({status:"ack",eventId:r,eventType:i});const o=Array.from(a).map(async e=>e(t.origin,s)),l=await function(e){return Promise.all(e.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(t){return{fulfilled:!1,reason:t}}}))}(o);t.ports[0].postMessage({status:"done",eventId:r,eventType:i,response:l})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}function Pt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n="";for(let r=0;r<t;r++)n+=Math.floor(10*Math.random());return e+n}Rt.receivers=[];class Dt{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50;const r="undefined"!==typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let i,s;return new Promise((a,o)=>{const l=Pt("",20);r.port1.start();const c=setTimeout(()=>{o(new Error("unsupported_event"))},n);s={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===l)switch(t.data.status){case"ack":clearTimeout(c),i=setTimeout(()=>{o(new Error("timeout"))},3e3);break;case"done":clearTimeout(i),a(t.data.response);break;default:clearTimeout(c),clearTimeout(i),o(new Error("invalid_response"))}}},this.handlers.add(s),r.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[r.port2])}).finally(()=>{s&&this.removeMessageHandler(s)})}}function Lt(){return window}function Mt(){return"undefined"!==typeof Lt().WorkerGlobalScope&&"function"===typeof Lt().importScripts}const Ut="firebaseLocalStorageDb",Vt="firebaseLocalStorage",Ft="fbase_key";class jt{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{t(this.request.error)})})}}function zt(e,t){return e.transaction([Vt],t?"readwrite":"readonly").objectStore(Vt)}function Bt(){const e=indexedDB.open(Ut,1);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const t=e.result;try{t.createObjectStore(Vt,{keyPath:Ft})}catch(r){n(r)}}),e.addEventListener("success",async()=>{const n=e.result;n.objectStoreNames.contains(Vt)?t(n):(n.close(),await function(){const e=indexedDB.deleteDatabase(Ut);return new jt(e).toPromise()}(),t(await Bt()))})})}async function Ht(e,t,n){const r=zt(e,!0).put({[Ft]:t,value:n});return new jt(r).toPromise()}function qt(e,t){const n=zt(e,!0).delete(t);return new jt(n).toPromise()}class Gt{constructor(){this.type="LOCAL",this.dbPromise=null,this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.dbPromise||(this.dbPromise=Bt(),this.dbPromise.catch(()=>{this.dbPromise=null})),this.dbPromise}async _withRetries(e){let t=0;for(;;)try{const t=await this._openDb();return await e(t)}catch(n){if(t++>3)throw n;if(this.dbPromise){(await this.dbPromise).close(),this.dbPromise=null}}}async initializeServiceWorkerMessaging(){return Mt()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Rt._getInstance(Mt()?self:null),this.receiver._subscribe("keyChanged",async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)})),this.receiver._subscribe("ping",async(e,t)=>["keyChanged"])}async initializeSender(){var e,t;if(this.activeServiceWorker=await async function(){var e;if(null===(e=navigator)||void 0===e||!e.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch(t){return null}}(),!this.activeServiceWorker)return;this.sender=new Dt(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&null!==(e=n[0])&&void 0!==e&&e.fulfilled&&null!==(t=n[0])&&void 0!==t&&t.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(this.sender&&this.activeServiceWorker&&function(){var e;return(null===(e=navigator)||void 0===e||null===(e=e.serviceWorker)||void 0===e?void 0:e.controller)||null}()===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(t){}}async _isAvailable(){try{return!!indexedDB&&(await this._withRetries(async e=>{await Ht(e,At,"1"),await qt(e,At)}),!0)}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite(async()=>(await this._withRetries(n=>Ht(n,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){const t=await this._withRetries(t=>async function(e,t){const n=zt(e,!1).get(t),r=await new jt(n).toPromise();return void 0===r?null:r.value}(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>qt(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(e=>{const t=zt(e,!1).getAll();return new jt(t).toPromise()});if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const r of e){const e=r.fbase_key,i=r.value;n.add(e),JSON.stringify(this.localCache[e])!==JSON.stringify(i)&&(this.notifyListeners(e,i),t.push(e))}for(const r of Object.keys(this.localCache))this.localCache[r]&&!n.has(r)&&(this.notifyListeners(r,null),t.push(r));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}Gt.type="LOCAL";const Wt=Gt;function Kt(e,t){return U(e,"POST","/v2/accounts/mfaSignIn:start",M(e,t))}Ie("rcb"),new I(3e4,6e4);const Qt="recaptcha";async function Yt(e,t,n){if(!e._getRecaptchaConfig())try{await Ve(e)}catch(i){console.log("Failed to initialize reCAPTCHA Enterprise config. Triggering the reCAPTCHA v2 verification.")}try{let i;if(i="string"===typeof t?{phoneNumber:t}:t,"session"in i){const t=i.session;if("phoneNumber"in i){S("enroll"===t.type,e,"internal-error");const r={idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:i.phoneNumber,clientType:"CLIENT_TYPE_WEB"}},s=Ue(e,r,"mfaSmsEnrollment",async(e,t)=>{if(t.phoneEnrollmentInfo.captchaResponse===Pe){S((null===n||void 0===n?void 0:n.type)===Qt,e,"argument-error");return _t(e,await $t(e,t,n))}return _t(e,t)},"PHONE_PROVIDER");return(await s.catch(e=>Promise.reject(e))).phoneSessionInfo.sessionInfo}{var r;S("signin"===t.type,e,"internal-error");const s=(null===(r=i.multiFactorHint)||void 0===r?void 0:r.uid)||i.multiFactorUid;S(s,e,"missing-multi-factor-info");const a={mfaPendingCredential:t.credential,mfaEnrollmentId:s,phoneSignInInfo:{clientType:"CLIENT_TYPE_WEB"}},o=Ue(e,a,"mfaSmsSignIn",async(e,t)=>{if(t.phoneSignInInfo.captchaResponse===Pe){S((null===n||void 0===n?void 0:n.type)===Qt,e,"argument-error");return Kt(e,await $t(e,t,n))}return Kt(e,t)},"PHONE_PROVIDER");return(await o.catch(e=>Promise.reject(e))).phoneResponseInfo.sessionInfo}}{const t={phoneNumber:i.phoneNumber,clientType:"CLIENT_TYPE_WEB"},r=Ue(e,t,"sendVerificationCode",async(e,t)=>{if(t.captchaResponse===Pe){S((null===n||void 0===n?void 0:n.type)===Qt,e,"argument-error");return Ye(e,await $t(e,t,n))}return Ye(e,t)},"PHONE_PROVIDER");return(await r.catch(e=>Promise.reject(e))).sessionInfo}}finally{null===n||void 0===n||n._reset()}}async function $t(e,t,n){S(n.type===Qt,e,"argument-error");const r=await n.verify();S("string"===typeof r,e,"argument-error");const i=(0,s.A)({},t);if("phoneEnrollmentInfo"in i){const e=i.phoneEnrollmentInfo.phoneNumber,t=i.phoneEnrollmentInfo.captchaResponse,n=i.phoneEnrollmentInfo.clientType,s=i.phoneEnrollmentInfo.recaptchaVersion;return Object.assign(i,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:r,captchaResponse:t,clientType:n,recaptchaVersion:s}}),i}if("phoneSignInInfo"in i){const e=i.phoneSignInInfo.captchaResponse,t=i.phoneSignInInfo.clientType,n=i.phoneSignInInfo.recaptchaVersion;return Object.assign(i,{phoneSignInInfo:{recaptchaToken:r,captchaResponse:e,clientType:t,recaptchaVersion:n}}),i}return Object.assign(i,{recaptchaToken:r}),i}class Xt{constructor(e){this.providerId=Xt.PROVIDER_ID,this.auth=Te(e)}verifyPhoneNumber(e,t){return Yt(this.auth,e,(0,o.Ku)(t))}static credential(e,t){return Xe._fromVerification(e,t)}static credentialFromResult(e){const t=e;return Xt.credentialFromTaggedObject(t)}static credentialFromError(e){return Xt.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let t=e._tokenResponse;if(!t)return null;const n=t.phoneNumber,r=t.temporaryProof;return n&&r?Xe._fromTokenResponse(n,r):null}}function Jt(e,t){return t?oe(t):(S(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}Xt.PROVIDER_ID="phone",Xt.PHONE_SIGN_IN_METHOD="phone";class Zt extends Be{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Ke(e,this._buildIdpRequest())}_linkToIdToken(e,t){return Ke(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return Ke(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function en(e){return ft(e.auth,new Zt(e),e.bypassAuthState)}function tn(e){const t=e.auth,n=e.user;return S(n,t,"internal-error"),dt(n,new Zt(e),e.bypassAuthState)}async function nn(e){const t=e.auth,n=e.user;return S(n,t,"internal-error"),ht(n,new Zt(e),e.bypassAuthState)}class rn{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}})}async onAuthEvent(e){const t=e.urlResponse,n=e.sessionId,r=e.postBody,i=e.tenantId,s=e.error,a=e.type;if(s)return void this.reject(s);const o={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(o))}catch(l){this.reject(l)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return en;case"linkViaPopup":case"linkViaRedirect":return nn;case"reauthViaPopup":case"reauthViaRedirect":return tn;default:y(this.auth,"internal-error")}}resolve(e){T(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){T(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const sn=new I(2e3,1e4);async function an(e,t,n){if((0,a.xZ)(e.app))return Promise.reject(w(e,"operation-not-supported-in-this-environment"));const r=Te(e);_(e,t,et);const i=Jt(r,n);return new on(r,"signInViaPopup",t,i).executeNotNull()}class on extends rn{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,on.currentPopupAction&&on.currentPopupAction.cancel(),on.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return S(e,this.auth,"internal-error"),e}async onExecution(){T(1===this.filter.length,"Popup operations only handle one event");const e=Pt();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(e=>{this.reject(e)}),this.resolver._isIframeWebStorageSupported(this.auth,e=>{e||this.reject(w(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(w(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,on.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t;null!==(t=this.authWindow)&&void 0!==t&&null!==(t=t.window)&&void 0!==t&&t.closed?this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(w(this.auth,"popup-closed-by-user"))},8e3):this.pollId=window.setTimeout(e,sn.get())};e()}}on.currentPopupAction=null;const ln=new Map;class cn extends rn{constructor(e,t){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,arguments.length>2&&void 0!==arguments[2]&&arguments[2]),this.eventId=null}async execute(){let e=ln.get(this.auth._key());if(!e){try{const t=await async function(e,t){const n=dn(t),r=hn(e);if(!await r._isAvailable())return!1;const i="true"===await r._get(n);return await r._remove(n),i}(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}ln.set(this.auth._key(),e)}return this.bypassAuthState||ln.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}function un(e,t){ln.set(e._key(),t)}function hn(e){return oe(e._redirectPersistence)}function dn(e){return ue("pendingRedirect",e.config.apiKey,e.name)}async function fn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,a.xZ)(e.app))return Promise.reject(E(e));const r=Te(e),i=Jt(r,t),s=new cn(r,i,n),o=await s.execute();return o&&!n&&(delete o.user._redirectEventId,await r._persistUserIfCurrent(o.user),await r._setRedirectUser(null,t)),o}class pn{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return gn(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){if(e.error&&!gn(e)){var n;const r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(w(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(mn(e))}saveEventToCache(e){this.cachedEventUids.add(mn(e)),this.lastProcessedEventTime=Date.now()}}function mn(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join("-")}function gn(e){let t=e.type,n=e.error;return"unknown"===t&&(null===n||void 0===n?void 0:n.code)==="auth/".concat("no-auth-event")}const vn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,yn=/^https?/;async function wn(e){if(e.config.emulator)return;const t=await async function(e){return U(e,"GET","/v1/projects",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}(e),n=t.authorizedDomains;for(const i of n)try{if(bn(i))return}catch(r){}y(e,"unauthorized-domain")}function bn(e){const t=k(),n=new URL(t),r=n.protocol,i=n.hostname;if(e.startsWith("chrome-extension://")){const n=new URL(e);return""===n.hostname&&""===i?"chrome-extension:"===r&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===r&&n.hostname===i}if(!yn.test(r))return!1;if(vn.test(e))return i===e;const s=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+s+"|"+s+")$","i").test(i)}const En=new I(3e4,6e4);function _n(){const e=Lt().___jsl;if(null!==e&&void 0!==e&&e.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}function An(e){return new Promise((t,n)=>{var r,i;function s(){_n(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{_n(),n(w(e,"network-request-failed"))},timeout:En.get()})}if(null!==(r=Lt().gapi)&&void 0!==r&&null!==(r=r.iframes)&&void 0!==r&&r.Iframe)t(gapi.iframes.getContext());else{if(null===(i=Lt().gapi)||void 0===i||!i.load){const t=Ie("iframefcb");return Lt()[t]=()=>{gapi.load?s():n(w(e,"network-request-failed"))},Ne("".concat(xe.gapiScript,"?onload=").concat(t)).catch(e=>n(e))}s()}}).catch(e=>{throw Sn=null,e})}let Sn=null;const Cn=new I(5e3,15e3),Tn={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},kn=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function xn(e){const t=e.config;S(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?O(t,"emulator/auth/iframe"):"https://".concat(e.config.authDomain,"/").concat("__/auth/iframe"),r={apiKey:t.apiKey,appName:e.name,v:a.MF},i=kn.get(e.config.apiHost);i&&(r.eid=i);const s=e._getFrameworks();return s.length&&(r.fw=s.join(",")),"".concat(n,"?").concat((0,o.Am)(r).slice(1))}async function Nn(e){const t=await function(e){return Sn=Sn||An(e),Sn}(e),n=Lt().gapi;return S(n,e,"internal-error"),t.open({where:document.body,url:xn(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Tn,dontclear:!0},t=>new Promise(async(n,r)=>{await t.restyle({setHideOnLeave:!1});const i=w(e,"network-request-failed"),s=Lt().setTimeout(()=>{r(i)},Cn.get());function a(){Lt().clearTimeout(s),n(t)}t.ping(a).then(a,()=>{r(i)})}))}const In={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class On{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}function Rn(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:600;const l=Math.max((window.screen.availHeight-a)/2,0).toString(),c=Math.max((window.screen.availWidth-r)/2,0).toString();let u="";const h=(0,s.A)((0,s.A)({},In),{},{width:r.toString(),height:a.toString(),top:l,left:c}),d=(0,o.ZQ)().toLowerCase();n&&(u=me(d)?"_blank":n),fe(d)&&(t=t||"http://localhost",h.scrollbars="yes");const f=Object.entries(h).reduce((e,t)=>{let n=(0,i.A)(t,2),r=n[0],s=n[1];return"".concat(e).concat(r,"=").concat(s,",")},"");if(function(){var e;return be(arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.ZQ)())&&!(null===(e=window.navigator)||void 0===e||!e.standalone)}(d)&&"_self"!==u)return function(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}(t||"",u),new On(null);const p=window.open(t||"",u,f);S(p,e,"popup-blocked");try{p.focus()}catch(m){}return new On(p)}const Pn="__/auth/handler",Dn="emulator/auth/handler",Ln=encodeURIComponent("fac");async function Mn(e,t,n,r,s,l){S(e.config.authDomain,e,"auth-domain-config-required"),S(e.config.apiKey,e,"invalid-api-key");const c={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:a.MF,eventId:s};if(t instanceof et){t.setDefaultLanguage(e.languageCode),c.providerId=t.providerId||"",(0,o.Im)(t.getCustomParameters())||(c.customParameters=JSON.stringify(t.getCustomParameters()));for(const e of Object.entries(l||{})){var u=(0,i.A)(e,2);const t=u[0],n=u[1];c[t]=n}}if(t instanceof tt){const e=t.getScopes().filter(e=>""!==e);e.length>0&&(c.scopes=e.join(","))}e.tenantId&&(c.tid=e.tenantId);const h=c;for(const i of Object.keys(h))void 0===h[i]&&delete h[i];const d=await e._getAppCheckToken(),f=d?"#".concat(Ln,"=").concat(encodeURIComponent(d)):"";return"".concat(function(e){let t=e.config;if(!t.emulator)return"https://".concat(t.authDomain,"/").concat(Pn);return O(t,Dn)}(e),"?").concat((0,o.Am)(h).slice(1)).concat(f)}const Un="webStorageSupport";const Vn=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Ot,this._completeRedirectFn=fn,this._overrideRedirectResult=un}async _openPopup(e,t,n,r){var i;T(null===(i=this.eventManagers[e._key()])||void 0===i?void 0:i.manager,"_initialize() not called before _openPopup()");return Rn(e,await Mn(e,t,n,k(),r),Pt())}async _openRedirect(e,t,n,r){await this._originValidation(e);return function(e){Lt().location.href=e}(await Mn(e,t,n,k(),r)),new Promise(()=>{})}_initialize(e){const t=e._key();if(this.eventManagers[t]){const e=this.eventManagers[t],n=e.manager,r=e.promise;return n?Promise.resolve(n):(T(r,"If manager is not set, promise should be"),r)}const n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch(()=>{delete this.eventManagers[t]}),n}async initAndGetManager(e){const t=await Nn(e),n=new pn(e);return t.register("authEvent",t=>{S(null===t||void 0===t?void 0:t.authEvent,e,"invalid-auth-event");return{status:n.onEvent(t.authEvent)?"ACK":"ERROR"}},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(Un,{type:Un},n=>{var r;const i=null===n||void 0===n||null===(r=n[0])||void 0===r?void 0:r[Un];void 0!==i&&t(!!i),y(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=wn(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return Ee()||pe()||be()}};var Fn="@firebase/auth",jn="1.13.3";class zn{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(e)}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged(t=>{e((null===t||void 0===t?void 0:t.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){S(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const Bn=(0,o.XA)("authIdTokenMaxAge")||300;let Hn=null;function qn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,a.Sx)();const t=(0,a.j6)(e,"auth");if(t.isInitialized())return t.getImmediate();const n=function(e,t){const n=(0,a.j6)(e,"auth");if(n.isInitialized()){const e=n.getImmediate(),r=n.getOptions();if((0,o.bD)(r,null!==t&&void 0!==t?t:{}))return e;y(e,"already-initialized")}return n.initialize({options:t})}(e,{popupRedirectResolver:Vn,persistence:[Wt,Tt,Ot]}),r=(0,o.XA)("authTokenSyncURL");if(r&&"boolean"===typeof isSecureContext&&isSecureContext){const e=new URL(r,location.origin);if(location.origin===e.origin){const t=(i=e.toString(),async e=>{const t=e&&await e.getIdTokenResult(),n=t&&((new Date).getTime()-Date.parse(t.issuedAtTime))/1e3;if(n&&n>Bn)return;const r=null===t||void 0===t?void 0:t.token;Hn!==r&&(Hn=r,await fetch(i,{method:r?"POST":"DELETE",headers:r?{Authorization:"Bearer ".concat(r)}:{}}))});!function(e,t,n){(0,o.Ku)(e).beforeAuthStateChanged(t,n)}(n,t,()=>t(n.currentUser)),function(e,t,n,r){(0,o.Ku)(e).onIdTokenChanged(t,n,r)}(n,e=>t(e))}}var i;const s=(0,o.Tj)("auth");return s&&Fe(n,"http://".concat(s)),n}var Gn;xe={loadJS:e=>new Promise((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=e=>{const t=w("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",function(){var e,t;return null!==(e=null===(t=document.getElementsByTagName("head"))||void 0===t?void 0:t[0])&&void 0!==e?e:document}().appendChild(r)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="},Gn="Browser",(0,a.om)(new c.uA("auth",(e,t)=>{let n=t.options;const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),s=e.getProvider("app-check-internal"),a=r.options,o=a.apiKey,l=a.authDomain;S(o&&!o.includes(":"),"invalid-api-key",{appName:r.name});const c={apiKey:o,authDomain:l,clientPlatform:Gn,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:_e(Gn)},u=new Ce(r,i,s,c);return function(e,t){const n=(null===t||void 0===t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(oe);null!==t&&void 0!==t&&t.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null===t||void 0===t?void 0:t.popupRedirectResolver)}(u,n),u},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,n)=>{e.getProvider("auth-internal").initialize()})),(0,a.om)(new c.uA("auth-internal",e=>(e=>new zn(e))(Te(e.getProvider("auth").getImmediate())),"PRIVATE").setInstantiationMode("EXPLICIT")),(0,a.KO)(Fn,jn,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(Gn)),(0,a.KO)(Fn,jn,"esm2020")},3604(e,t,n){"use strict";n.d(t,{gS:()=>Kf,C3:()=>Uo,hq:()=>Mo,rJ:()=>ro,kd:()=>Wf,H9:()=>io,x7:()=>Bf,GG:()=>Hf,aU:()=>lf,GV:()=>Vo,AB:()=>kf,My:()=>Cf,P:()=>bf,O5:()=>Lo,BN:()=>qf,HM:()=>Nf,mZ:()=>Gf,_M:()=>_f,wP:()=>$f});var r,i,s=n(9379),a=n(9232),o=n(9606),l=n(45),c=n(5544),u=n(1776),h="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},d={};(function(){var e;function t(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.C=Array(this.blockSize),this.o=this.h=0,this.u()}function n(e,t,n){n||(n=0);const r=Array(16);if("string"===typeof t)for(var i=0;i<16;++i)r[i]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(i=0;i<16;++i)r[i]=t[n++]|t[n++]<<8|t[n++]<<16|t[n++]<<24;t=e.g[0],n=e.g[1],i=e.g[2];let s,a=e.g[3];s=t+(a^n&(i^a))+r[0]+3614090360&4294967295,s=a+(i^(t=n+(s<<7&4294967295|s>>>25))&(n^i))+r[1]+3905402710&4294967295,a=t+(s<<12&4294967295|s>>>20),s=i+(n^a&(t^n))+r[2]+606105819&4294967295,s=n+(t^(i=a+(s<<17&4294967295|s>>>15))&(a^t))+r[3]+3250441966&4294967295,s=t+(a^(n=i+(s<<22&4294967295|s>>>10))&(i^a))+r[4]+4118548399&4294967295,s=a+(i^(t=n+(s<<7&4294967295|s>>>25))&(n^i))+r[5]+1200080426&4294967295,a=t+(s<<12&4294967295|s>>>20),s=i+(n^a&(t^n))+r[6]+2821735955&4294967295,s=n+(t^(i=a+(s<<17&4294967295|s>>>15))&(a^t))+r[7]+4249261313&4294967295,s=t+(a^(n=i+(s<<22&4294967295|s>>>10))&(i^a))+r[8]+1770035416&4294967295,s=a+(i^(t=n+(s<<7&4294967295|s>>>25))&(n^i))+r[9]+2336552879&4294967295,a=t+(s<<12&4294967295|s>>>20),s=i+(n^a&(t^n))+r[10]+4294925233&4294967295,s=n+(t^(i=a+(s<<17&4294967295|s>>>15))&(a^t))+r[11]+2304563134&4294967295,s=t+(a^(n=i+(s<<22&4294967295|s>>>10))&(i^a))+r[12]+1804603682&4294967295,s=a+(i^(t=n+(s<<7&4294967295|s>>>25))&(n^i))+r[13]+4254626195&4294967295,a=t+(s<<12&4294967295|s>>>20),s=i+(n^a&(t^n))+r[14]+2792965006&4294967295,s=n+(t^(i=a+(s<<17&4294967295|s>>>15))&(a^t))+r[15]+1236535329&4294967295,s=t+(i^a&((n=i+(s<<22&4294967295|s>>>10))^i))+r[1]+4129170786&4294967295,s=a+(n^i&((t=n+(s<<5&4294967295|s>>>27))^n))+r[6]+3225465664&4294967295,a=t+(s<<9&4294967295|s>>>23),s=i+(t^n&(a^t))+r[11]+643717713&4294967295,s=n+(a^t&((i=a+(s<<14&4294967295|s>>>18))^a))+r[0]+3921069994&4294967295,s=t+(i^a&((n=i+(s<<20&4294967295|s>>>12))^i))+r[5]+3593408605&4294967295,s=a+(n^i&((t=n+(s<<5&4294967295|s>>>27))^n))+r[10]+38016083&4294967295,a=t+(s<<9&4294967295|s>>>23),s=i+(t^n&(a^t))+r[15]+3634488961&4294967295,s=n+(a^t&((i=a+(s<<14&4294967295|s>>>18))^a))+r[4]+3889429448&4294967295,s=t+(i^a&((n=i+(s<<20&4294967295|s>>>12))^i))+r[9]+568446438&4294967295,s=a+(n^i&((t=n+(s<<5&4294967295|s>>>27))^n))+r[14]+3275163606&4294967295,a=t+(s<<9&4294967295|s>>>23),s=i+(t^n&(a^t))+r[3]+4107603335&4294967295,s=n+(a^t&((i=a+(s<<14&4294967295|s>>>18))^a))+r[8]+1163531501&4294967295,s=t+(i^a&((n=i+(s<<20&4294967295|s>>>12))^i))+r[13]+2850285829&4294967295,s=a+(n^i&((t=n+(s<<5&4294967295|s>>>27))^n))+r[2]+4243563512&4294967295,a=t+(s<<9&4294967295|s>>>23),s=i+(t^n&(a^t))+r[7]+1735328473&4294967295,s=n+(a^t&((i=a+(s<<14&4294967295|s>>>18))^a))+r[12]+2368359562&4294967295,s=t+((n=i+(s<<20&4294967295|s>>>12))^i^a)+r[5]+4294588738&4294967295,s=a+((t=n+(s<<4&4294967295|s>>>28))^n^i)+r[8]+2272392833&4294967295,a=t+(s<<11&4294967295|s>>>21),s=i+(a^t^n)+r[11]+1839030562&4294967295,s=n+((i=a+(s<<16&4294967295|s>>>16))^a^t)+r[14]+4259657740&4294967295,s=t+((n=i+(s<<23&4294967295|s>>>9))^i^a)+r[1]+2763975236&4294967295,s=a+((t=n+(s<<4&4294967295|s>>>28))^n^i)+r[4]+1272893353&4294967295,a=t+(s<<11&4294967295|s>>>21),s=i+(a^t^n)+r[7]+4139469664&4294967295,s=n+((i=a+(s<<16&4294967295|s>>>16))^a^t)+r[10]+3200236656&4294967295,s=t+((n=i+(s<<23&4294967295|s>>>9))^i^a)+r[13]+681279174&4294967295,s=a+((t=n+(s<<4&4294967295|s>>>28))^n^i)+r[0]+3936430074&4294967295,a=t+(s<<11&4294967295|s>>>21),s=i+(a^t^n)+r[3]+3572445317&4294967295,s=n+((i=a+(s<<16&4294967295|s>>>16))^a^t)+r[6]+76029189&4294967295,s=t+((n=i+(s<<23&4294967295|s>>>9))^i^a)+r[9]+3654602809&4294967295,s=a+((t=n+(s<<4&4294967295|s>>>28))^n^i)+r[12]+3873151461&4294967295,a=t+(s<<11&4294967295|s>>>21),s=i+(a^t^n)+r[15]+530742520&4294967295,s=n+((i=a+(s<<16&4294967295|s>>>16))^a^t)+r[2]+3299628645&4294967295,s=t+(i^((n=i+(s<<23&4294967295|s>>>9))|~a))+r[0]+4096336452&4294967295,s=a+(n^((t=n+(s<<6&4294967295|s>>>26))|~i))+r[7]+1126891415&4294967295,a=t+(s<<10&4294967295|s>>>22),s=i+(t^(a|~n))+r[14]+2878612391&4294967295,s=n+(a^((i=a+(s<<15&4294967295|s>>>17))|~t))+r[5]+4237533241&4294967295,s=t+(i^((n=i+(s<<21&4294967295|s>>>11))|~a))+r[12]+1700485571&4294967295,s=a+(n^((t=n+(s<<6&4294967295|s>>>26))|~i))+r[3]+2399980690&4294967295,a=t+(s<<10&4294967295|s>>>22),s=i+(t^(a|~n))+r[10]+4293915773&4294967295,s=n+(a^((i=a+(s<<15&4294967295|s>>>17))|~t))+r[1]+2240044497&4294967295,s=t+(i^((n=i+(s<<21&4294967295|s>>>11))|~a))+r[8]+1873313359&4294967295,s=a+(n^((t=n+(s<<6&4294967295|s>>>26))|~i))+r[15]+4264355552&4294967295,a=t+(s<<10&4294967295|s>>>22),s=i+(t^(a|~n))+r[6]+2734768916&4294967295,s=n+(a^((i=a+(s<<15&4294967295|s>>>17))|~t))+r[13]+1309151649&4294967295,s=t+(i^((n=i+(s<<21&4294967295|s>>>11))|~a))+r[4]+4149444226&4294967295,s=a+(n^((t=n+(s<<6&4294967295|s>>>26))|~i))+r[11]+3174756917&4294967295,a=t+(s<<10&4294967295|s>>>22),s=i+(t^(a|~n))+r[2]+718787259&4294967295,s=n+(a^((i=a+(s<<15&4294967295|s>>>17))|~t))+r[9]+3951481745&4294967295,e.g[0]=e.g[0]+t&4294967295,e.g[1]=e.g[1]+(i+(s<<21&4294967295|s>>>11))&4294967295,e.g[2]=e.g[2]+i&4294967295,e.g[3]=e.g[3]+a&4294967295}function s(e,t){this.h=t;const n=[];let r=!0;for(let i=e.length-1;i>=0;i--){const s=0|e[i];r&&s==t||(n[i]=s,r=!1)}this.g=n}!function(e,t){function n(){}n.prototype=t.prototype,e.F=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.D=function(e,n,r){for(var i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];return t.prototype[n].apply(e,i)}}(t,function(){this.blockSize=-1}),t.prototype.u=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},t.prototype.v=function(e,t){void 0===t&&(t=e.length);const r=t-this.blockSize,i=this.C;let s=this.h,a=0;for(;a<t;){if(0==s)for(;a<=r;)n(this,e,a),a+=this.blockSize;if("string"===typeof e){for(;a<t;)if(i[s++]=e.charCodeAt(a++),s==this.blockSize){n(this,i),s=0;break}}else for(;a<t;)if(i[s++]=e[a++],s==this.blockSize){n(this,i),s=0;break}}this.h=s,this.o+=t},t.prototype.A=function(){var e=Array((this.h<56?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;t=8*this.o;for(var n=e.length-8;n<e.length;++n)e[n]=255&t,t/=256;for(this.v(e),e=Array(16),t=0,n=0;n<4;++n)for(let r=0;r<32;r+=8)e[t++]=this.g[n]>>>r&255;return e};var a={};function o(e){return-128<=e&&e<128?function(e,t){var n=a;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,function(e){return new s([0|e],e<0?-1:0)}):new s([0|e],e<0?-1:0)}function l(e){if(isNaN(e)||!isFinite(e))return c;if(e<0)return m(l(-e));const t=[];let n=1;for(let r=0;e>=n;r++)t[r]=e/n|0,n*=4294967296;return new s(t,0)}var c=o(0),u=o(1),h=o(16777216);function f(e){if(0!=e.h)return!1;for(let t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function p(e){return-1==e.h}function m(e){const t=e.g.length,n=[];for(let r=0;r<t;r++)n[r]=~e.g[r];return new s(n,~e.h).add(u)}function g(e,t){return e.add(m(t))}function v(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function y(e,t){this.g=e,this.h=t}function w(e,t){if(f(t))throw Error("division by zero");if(f(e))return new y(c,c);if(p(e))return t=w(m(e),t),new y(m(t.g),m(t.h));if(p(t))return t=w(e,m(t)),new y(m(t.g),t.h);if(e.g.length>30){if(p(e)||p(t))throw Error("slowDivide_ only works with positive integers.");for(var n=u,r=t;r.l(e)<=0;)n=b(n),r=b(r);var i=E(n,1),s=E(r,1);for(r=E(r,2),n=E(n,2);!f(r);){var a=s.add(r);a.l(e)<=0&&(i=i.add(n),s=a),r=E(r,1),n=E(n,1)}return t=g(e,i.j(t)),new y(i,t)}for(i=c;e.l(t)>=0;){for(n=Math.max(1,Math.floor(e.m()/t.m())),r=(r=Math.ceil(Math.log(n)/Math.LN2))<=48?1:Math.pow(2,r-48),a=(s=l(n)).j(t);p(a)||a.l(e)>0;)a=(s=l(n-=r)).j(t);f(s)&&(s=u),i=i.add(s),e=g(e,a)}return new y(i,e)}function b(e){const t=e.g.length+1,n=[];for(let r=0;r<t;r++)n[r]=e.i(r)<<1|e.i(r-1)>>>31;return new s(n,e.h)}function E(e,t){const n=t>>5;t%=32;const r=e.g.length-n,i=[];for(let s=0;s<r;s++)i[s]=t>0?e.i(s+n)>>>t|e.i(s+n+1)<<32-t:e.i(s+n);return new s(i,e.h)}(e=s.prototype).m=function(){if(p(this))return-m(this).m();let e=0,t=1;for(let n=0;n<this.g.length;n++){const r=this.i(n);e+=(r>=0?r:4294967296+r)*t,t*=4294967296}return e},e.toString=function(e){if((e=e||10)<2||36<e)throw Error("radix out of range: "+e);if(f(this))return"0";if(p(this))return"-"+m(this).toString(e);const t=l(Math.pow(e,6));var n=this;let r="";for(;;){const i=w(n,t).g;let s=(((n=g(n,i.j(t))).g.length>0?n.g[0]:n.h)>>>0).toString(e);if(f(n=i))return s+r;for(;s.length<6;)s="0"+s;r=s+r}},e.i=function(e){return e<0?0:e<this.g.length?this.g[e]:this.h},e.l=function(e){return p(e=g(this,e))?-1:f(e)?0:1},e.abs=function(){return p(this)?m(this):this},e.add=function(e){const t=Math.max(this.g.length,e.g.length),n=[];let r=0;for(let i=0;i<=t;i++){let t=r+(65535&this.i(i))+(65535&e.i(i)),s=(t>>>16)+(this.i(i)>>>16)+(e.i(i)>>>16);r=s>>>16,t&=65535,s&=65535,n[i]=s<<16|t}return new s(n,-2147483648&n[n.length-1]?-1:0)},e.j=function(e){if(f(this)||f(e))return c;if(p(this))return p(e)?m(this).j(m(e)):m(m(this).j(e));if(p(e))return m(this.j(m(e)));if(this.l(h)<0&&e.l(h)<0)return l(this.m()*e.m());const t=this.g.length+e.g.length,n=[];for(var r=0;r<2*t;r++)n[r]=0;for(r=0;r<this.g.length;r++)for(let t=0;t<e.g.length;t++){const i=this.i(r)>>>16,s=65535&this.i(r),a=e.i(t)>>>16,o=65535&e.i(t);n[2*r+2*t]+=s*o,v(n,2*r+2*t),n[2*r+2*t+1]+=i*o,v(n,2*r+2*t+1),n[2*r+2*t+1]+=s*a,v(n,2*r+2*t+1),n[2*r+2*t+2]+=i*a,v(n,2*r+2*t+2)}for(e=0;e<t;e++)n[e]=n[2*e+1]<<16|n[2*e];for(e=t;e<2*t;e++)n[e]=0;return new s(n,0)},e.B=function(e){return w(this,e).h},e.and=function(e){const t=Math.max(this.g.length,e.g.length),n=[];for(let r=0;r<t;r++)n[r]=this.i(r)&e.i(r);return new s(n,this.h&e.h)},e.or=function(e){const t=Math.max(this.g.length,e.g.length),n=[];for(let r=0;r<t;r++)n[r]=this.i(r)|e.i(r);return new s(n,this.h|e.h)},e.xor=function(e){const t=Math.max(this.g.length,e.g.length),n=[];for(let r=0;r<t;r++)n[r]=this.i(r)^e.i(r);return new s(n,this.h^e.h)},t.prototype.digest=t.prototype.A,t.prototype.reset=t.prototype.u,t.prototype.update=t.prototype.v,i=d.Md5=t,s.prototype.add=s.prototype.add,s.prototype.multiply=s.prototype.j,s.prototype.modulo=s.prototype.B,s.prototype.compare=s.prototype.l,s.prototype.toNumber=s.prototype.m,s.prototype.toString=s.prototype.toString,s.prototype.getBits=s.prototype.i,s.fromNumber=l,s.fromString=function e(t,n){if(0==t.length)throw Error("number format error: empty string");if((n=n||10)<2||36<n)throw Error("radix out of range: "+n);if("-"==t.charAt(0))return m(e(t.substring(1),n));if(t.indexOf("-")>=0)throw Error('number format error: interior "-" character');const r=l(Math.pow(n,8));let i=c;for(let a=0;a<t.length;a+=8){var s=Math.min(8,t.length-a);const e=parseInt(t.substring(a,a+s),n);s<8?(s=l(Math.pow(n,s)),i=i.j(s).add(l(e))):(i=i.j(r),i=i.add(l(e)))}return i},r=d.Integer=s}).apply("undefined"!==typeof h?h:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{});var f,p,m,g,v,y,w,b,E=n(2965),_="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},A={};(function(){var e,t=Object.defineProperty;var n=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof _&&_];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);function r(e,r){if(r)e:{var i=n;e=e.split(".");for(var s=0;s<e.length-1;s++){var a=e[s];if(!(a in i))break e;i=i[a]}(r=r(s=i[e=e[e.length-1]]))!=s&&null!=r&&t(i,e,{configurable:!0,writable:!0,value:r})}}r("Symbol.dispose",function(e){return e||Symbol("Symbol.dispose")}),r("Array.prototype.values",function(e){return e||function(){return this[Symbol.iterator]()}}),r("Object.entries",function(e){return e||function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push([t,e[t]]);return n}});var i=i||{},s=this||self;function a(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function o(e,t,n){return e.call.apply(e.bind,arguments)}function l(e,t,n){return(l=o).apply(null,arguments)}function u(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function h(e,t){function n(){}n.prototype=t.prototype,e.Z=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Ob=function(e,n,r){for(var i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];return t.prototype[n].apply(e,i)}}var d="undefined"!==typeof AsyncContext&&"function"===typeof AsyncContext.Snapshot?e=>e&&AsyncContext.Snapshot.wrap(e):e=>e;function E(e){const t=e.length;if(t>0){const n=Array(t);for(let r=0;r<t;r++)n[r]=e[r];return n}return[]}function S(e,t){for(let r=1;r<arguments.length;r++){const t=arguments[r];var n=typeof t;if("array"==(n="object"!=n?n:t?Array.isArray(t)?"array":n:"null")||"object"==n&&"number"==typeof t.length){n=e.length||0;const r=t.length||0;e.length=n+r;for(let i=0;i<r;i++)e[n+i]=t[i]}else e.push(t)}}function C(e){s.setTimeout(()=>{throw e},0)}function T(){var e=O;let t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var k=new class{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return this.h>0?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}(()=>new x,e=>e.reset());class x{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}let N,I=!1,O=new class{constructor(){this.h=this.g=null}add(e,t){const n=k.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}},R=()=>{const e=Promise.resolve(void 0);N=()=>{e.then(P)}};function P(){for(var e;e=T();){try{e.h.call(e.g)}catch(n){C(n)}var t=k;t.j(e),t.h<100&&(t.h++,e.next=t.g,t.g=e)}I=!1}function D(){this.u=this.u,this.C=this.C}function L(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}D.prototype.u=!1,D.prototype.dispose=function(){this.u||(this.u=!0,this.N())},D.prototype[Symbol.dispose]=function(){this.dispose()},D.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},L.prototype.h=function(){this.defaultPrevented=!0};var M=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{const e=()=>{};s.addEventListener("test",e,t),s.removeEventListener("test",e,t)}catch(n){}return e}();function U(e){return/^[\s\xa0]*$/.test(e)}function V(e,t){L.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e&&this.init(e,t)}h(V,L),V.prototype.init=function(e,t){const n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;this.target=e.target||e.srcElement,this.g=t,(t=e.relatedTarget)||("mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement)),this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=e.pointerType,this.state=e.state,this.i=e,e.defaultPrevented&&V.Z.h.call(this)},V.prototype.h=function(){V.Z.h.call(this);const e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var F="closure_listenable_"+(1e6*Math.random()|0),j=0;function z(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ha=i,this.key=++j,this.da=this.fa=!1}function B(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function H(e,t,n){for(const r in e)t.call(n,e[r],r,e)}function q(e){const t={};for(const n in e)t[n]=e[n];return t}const G="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function W(e,t){let n,r;for(let i=1;i<arguments.length;i++){for(n in r=arguments[i],r)e[n]=r[n];for(let t=0;t<G.length;t++)n=G[t],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function K(e){this.src=e,this.g={},this.h=0}function Q(e,t){const n=t.type;if(n in e.g){var r,i=e.g[n],s=Array.prototype.indexOf.call(i,t,void 0);(r=s>=0)&&Array.prototype.splice.call(i,s,1),r&&(B(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function Y(e,t,n,r){for(let i=0;i<e.length;++i){const s=e[i];if(!s.da&&s.listener==t&&s.capture==!!n&&s.ha==r)return i}return-1}K.prototype.add=function(e,t,n,r,i){const s=e.toString();(e=this.g[s])||(e=this.g[s]=[],this.h++);const a=Y(e,t,r,i);return a>-1?(t=e[a],n||(t.fa=!1)):((t=new z(t,this.src,s,!!r,i)).fa=n,e.push(t)),t};var $="closure_lm_"+(1e6*Math.random()|0),X={};function J(e,t,n,r,i){if(r&&r.once)return ee(e,t,n,r,i);if(Array.isArray(t)){for(let s=0;s<t.length;s++)J(e,t[s],n,r,i);return null}return n=oe(n),e&&e[F]?e.J(t,n,a(r)?!!r.capture:!!r,i):Z(e,t,n,!1,r,i)}function Z(e,t,n,r,i,s){if(!t)throw Error("Invalid event type");const o=a(i)?!!i.capture:!!i;let l=se(e);if(l||(e[$]=l=new K(e)),(n=l.add(t,n,r,o,s)).proxy)return n;if(r=function(){function e(n){return t.call(e.src,e.listener,n)}const t=ie;return e}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)M||(i=o),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(re(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function ee(e,t,n,r,i){if(Array.isArray(t)){for(let s=0;s<t.length;s++)ee(e,t[s],n,r,i);return null}return n=oe(n),e&&e[F]?e.K(t,n,a(r)?!!r.capture:!!r,i):Z(e,t,n,!0,r,i)}function te(e,t,n,r,i){if(Array.isArray(t))for(var s=0;s<t.length;s++)te(e,t[s],n,r,i);else r=a(r)?!!r.capture:!!r,n=oe(n),e&&e[F]?(e=e.i,(s=String(t).toString())in e.g&&((n=Y(t=e.g[s],n,r,i))>-1&&(B(t[n]),Array.prototype.splice.call(t,n,1),0==t.length&&(delete e.g[s],e.h--)))):e&&(e=se(e))&&(t=e.g[t.toString()],e=-1,t&&(e=Y(t,n,r,i)),(n=e>-1?t[e]:null)&&ne(n))}function ne(e){if("number"!==typeof e&&e&&!e.da){var t=e.src;if(t&&t[F])Q(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(re(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=se(t))?(Q(n,e),0==n.h&&(n.src=null,t[$]=null)):B(e)}}}function re(e){return e in X?X[e]:X[e]="on"+e}function ie(e,t){if(e.da)e=!0;else{t=new V(t,this);const n=e.listener,r=e.ha||e.src;e.fa&&ne(e),e=n.call(r,t)}return e}function se(e){return(e=e[$])instanceof K?e:null}var ae="__closure_events_fn_"+(1e9*Math.random()>>>0);function oe(e){return"function"===typeof e?e:(e[ae]||(e[ae]=function(t){return e.handleEvent(t)}),e[ae])}function le(){D.call(this),this.i=new K(this),this.M=this,this.G=null}function ce(e,t){var n,r=e.G;if(r)for(n=[];r;r=r.G)n.push(r);if(e=e.M,r=t.type||t,"string"===typeof t)t=new L(t,e);else if(t instanceof L)t.target=t.target||e;else{var i=t;W(t=new L(r,e),i)}let s,a;if(i=!0,n)for(a=n.length-1;a>=0;a--)s=t.g=n[a],i=ue(s,r,!0,t)&&i;if(s=t.g=e,i=ue(s,r,!0,t)&&i,i=ue(s,r,!1,t)&&i,n)for(a=0;a<n.length;a++)s=t.g=n[a],i=ue(s,r,!1,t)&&i}function ue(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();let i=!0;for(let s=0;s<t.length;++s){const a=t[s];if(a&&!a.da&&a.capture==n){const t=a.listener,n=a.ha||a.src;a.fa&&Q(e.i,a),i=!1!==t.call(n,r)&&i}}return i&&!r.defaultPrevented}function he(e){e.g=function(e,t){if("function"!==typeof e){if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=l(e.handleEvent,e)}return Number(t)>2147483647?-1:s.setTimeout(e,t||0)}(()=>{e.g=null,e.i&&(e.i=!1,he(e))},e.l);const t=e.h;e.h=null,e.m.apply(null,t)}h(le,D),le.prototype[F]=!0,le.prototype.removeEventListener=function(e,t,n,r){te(this,e,t,n,r)},le.prototype.N=function(){if(le.Z.N.call(this),this.i){var e=this.i;for(const t in e.g){const n=e.g[t];for(let e=0;e<n.length;e++)B(n[e]);delete e.g[t],e.h--}}this.G=null},le.prototype.J=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},le.prototype.K=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};class de extends D{constructor(e,t){super(),this.m=e,this.l=t,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:he(this)}N(){super.N(),this.g&&(s.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function fe(e){D.call(this),this.h=e,this.g={}}h(fe,D);var pe=[];function me(e){H(e.g,function(e,t){this.g.hasOwnProperty(t)&&ne(e)},e),e.g={}}fe.prototype.N=function(){fe.Z.N.call(this),me(this)},fe.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var ge=s.JSON.stringify,ve=s.JSON.parse,ye=class{stringify(e){return s.JSON.stringify(e,void 0)}parse(e){return s.JSON.parse(e,void 0)}};function we(){}function be(){}var Ee={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function _e(){L.call(this,"d")}function Ae(){L.call(this,"c")}h(_e,L),h(Ae,L);var Se={},Ce=null;function Te(){return Ce=Ce||new le}function ke(e){L.call(this,Se.Ia,e)}function xe(e){const t=Te();ce(t,new ke(t))}function Ne(e,t){L.call(this,Se.STAT_EVENT,e),this.stat=t}function Ie(e){const t=Te();ce(t,new Ne(t,e))}function Oe(e,t){L.call(this,Se.Ja,e),this.size=t}function Re(e,t){if("function"!==typeof e)throw Error("Fn must not be null and must be a function");return s.setTimeout(function(){e()},t)}function Pe(){this.g=!0}function De(e,t,n,r){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{const s=JSON.parse(t);if(s)for(e=0;e<s.length;e++)if(Array.isArray(s[e])){var n=s[e];if(!(n.length<2)){var r=n[1];if(Array.isArray(r)&&!(r.length<1)){var i=r[0];if("noop"!=i&&"stop"!=i&&"close"!=i)for(let e=1;e<r.length;e++)r[e]=""}}}return ge(s)}catch(s){return t}}(e,n)+(r?" "+r:"")})}Se.Ia="serverreachability",h(ke,L),Se.STAT_EVENT="statevent",h(Ne,L),Se.Ja="timingevent",h(Oe,L),Pe.prototype.ua=function(){this.g=!1},Pe.prototype.info=function(){};var Le,Me={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},Ue={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"};function Ve(){}function Fe(e){return encodeURIComponent(String(e))}function je(e){var t=1;e=e.split(":");const n=[];for(;t>0&&e.length;)n.push(e.shift()),t--;return e.length&&n.push(e.join(":")),n}function ze(e,t,n,r){this.j=e,this.i=t,this.l=n,this.S=r||1,this.V=new fe(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new Be}function Be(){this.i=null,this.g="",this.h=!1}h(Ve,we),Ve.prototype.g=function(){return new XMLHttpRequest},Le=new Ve;var He={},qe={};function Ge(e,t,n){e.M=1,e.A=gt(ht(t)),e.u=n,e.R=!0,We(e,null)}function We(e,t){e.F=Date.now(),Ye(e),e.B=ht(e.A);var n=e.B,r=e.S;Array.isArray(r)||(r=[String(r)]),Ot(n.i,"t",r),e.C=0,n=e.j.L,e.h=new Be,e.g=yn(e.j,n?t:null,!e.u),e.P>0&&(e.O=new de(l(e.Y,e,e.g),e.P)),t=e.V,n=e.g,r=e.ba;var i="readystatechange";Array.isArray(i)||(i&&(pe[0]=i.toString()),i=pe);for(let s=0;s<i.length;s++){const e=J(n,i[s],r||t.handleEvent,!1,t.h||t);if(!e)break;t.g[e.key]=e}t=e.J?q(e.J):{},e.u?(e.v||(e.v="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.B,e.v,e.u,t)):(e.v="GET",e.g.ea(e.B,e.v,null,t)),xe(),function(e,t,n,r,i,s){e.info(function(){if(e.g)if(s){var a="",o=s.split("&");for(let e=0;e<o.length;e++){var l=o[e].split("=");if(l.length>1){const e=l[0];l=l[1];const t=e.split("_");a=t.length>=2&&"type"==t[1]?a+(e+"=")+l+"&":a+(e+"=redacted&")}}}else a=null;else a=s;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+a})}(e.i,e.v,e.B,e.l,e.S,e.u)}function Ke(e){return!!e.g&&("GET"==e.v&&2!=e.M&&e.j.Aa)}function Qe(e,t){var n=e.C,r=t.indexOf("\n",n);return-1==r?qe:(n=Number(t.substring(n,r)),isNaN(n)?He:(r+=1)+n>t.length?qe:(t=t.slice(r,r+n),e.C=r+n,t))}function Ye(e){e.T=Date.now()+e.H,$e(e,e.H)}function $e(e,t){if(null!=e.D)throw Error("WatchDog timer not null");e.D=Re(l(e.aa,e),t)}function Xe(e){e.D&&(s.clearTimeout(e.D),e.D=null)}function Je(e){0==e.j.I||e.K||fn(e.j,e)}function Ze(e){Xe(e);var t=e.O;t&&"function"==typeof t.dispose&&t.dispose(),e.O=null,me(e.V),e.g&&(t=e.g,e.g=null,t.abort(),t.dispose())}function et(e,t){try{var n=e.j;if(0!=n.I&&(n.g==e||st(n.h,e)))if(!e.L&&st(n.h,e)&&3==n.I){try{var r=n.Ba.g.parse(t)}catch(u){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!n.v){if(n.g){if(!(n.g.F+3e3<e.F))break e;dn(n),tn(n)}cn(n),Ie(18)}}else n.xa=i[1],0<n.xa-n.K&&i[2]<37500&&n.F&&0==n.A&&!n.C&&(n.C=Re(l(n.Va,n),6e3));it(n.h)<=1&&n.ta&&(n.ta=void 0)}else mn(n,11)}else if((e.L||n.g==e)&&dn(n),!U(t))for(i=n.Ba.g.parse(t),t=0;t<i.length;t++){let l=i[t];const u=l[0];if(!(u<=n.K))if(n.K=u,l=l[1],2==n.I)if("c"==l[0]){n.M=l[1],n.ba=l[2];const t=l[3];null!=t&&(n.ka=t,n.j.info("VER="+n.ka));const i=l[4];null!=i&&(n.za=i,n.j.info("SVER="+n.za));const u=l[5];null!=u&&"number"===typeof u&&u>0&&(r=1.5*u,n.O=r,n.j.info("backChannelRequestTimeoutMs_="+r)),r=n;const h=e.g;if(h){const e=h.g?h.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var s=r.h;s.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(s.j=s.l,s.g=new Set,s.h&&(at(s,s.h),s.h=null))}if(r.G){const e=h.g?h.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(r.wa=e,mt(r.J,r.G,e))}}n.I=3,n.l&&n.l.ra(),n.aa&&(n.T=Date.now()-e.F,n.j.info("Handshake RTT: "+n.T+"ms"));var a=e;if((r=n).na=vn(r,r.L?r.ba:null,r.W),a.L){ot(r.h,a);var o=a,c=r.O;c&&(o.H=c),o.D&&(Xe(o),Ye(o)),r.g=a}else ln(r);n.i.length>0&&rn(n)}else"stop"!=l[0]&&"close"!=l[0]||mn(n,7);else 3==n.I&&("stop"==l[0]||"close"==l[0]?"stop"==l[0]?mn(n,7):en(n):"noop"!=l[0]&&n.l&&n.l.qa(l),n.A=0)}xe()}catch(u){}}ze.prototype.ba=function(e){e=e.target;const t=this.O;t&&3==$t(e)?t.j():this.Y(e)},ze.prototype.Y=function(e){try{if(e==this.g)e:{const l=$t(this.g),c=this.g.ya();this.g.ca();if(!(l<3)&&(3!=l||this.g&&(this.h.h||this.g.la()||Xt(this.g)))){this.K||4!=l||7==c||xe(),Xe(this);var t=this.g.ca();this.X=t;var n=function(e){if(!Ke(e))return e.g.la();const t=Xt(e.g);if(""===t)return"";let n="";const r=t.length,i=4==$t(e.g);if(!e.h.i){if("undefined"===typeof TextDecoder)return Ze(e),Je(e),"";e.h.i=new s.TextDecoder}for(let s=0;s<r;s++)e.h.h=!0,n+=e.h.i.decode(t[s],{stream:!(i&&s==r-1)});return t.length=0,e.h.g+=n,e.C=0,e.h.g}(this);if(this.o=200==t,function(e,t,n,r,i,s,a){e.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+s+" "+a})}(this.i,this.v,this.B,this.l,this.S,l,t),this.o){if(this.U&&!this.L){t:{if(this.g){var r,i=this.g;if((r=i.g?i.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!U(r)){var a=r;break t}}a=null}if(!(e=a)){this.o=!1,this.m=3,Ie(12),Ze(this),Je(this);break e}De(this.i,this.l,e,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,et(this,e)}if(this.R){let t;for(e=!0;!this.K&&this.C<n.length;){if(t=Qe(this,n),t==qe){4==l&&(this.m=4,Ie(14),e=!1),De(this.i,this.l,null,"[Incomplete Response]");break}if(t==He){this.m=4,Ie(15),De(this.i,this.l,n,"[Invalid Chunk]"),e=!1;break}De(this.i,this.l,t,null),et(this,t)}if(Ke(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=l||0!=n.length||this.h.h||(this.m=1,Ie(16),e=!1),this.o=this.o&&e,e){if(n.length>0&&!this.W){this.W=!0;var o=this.j;o.g==this&&o.aa&&!o.P&&(o.j.info("Great, no buffering proxy detected. Bytes received: "+n.length),un(o),o.P=!0,Ie(11))}}else De(this.i,this.l,n,"[Invalid Chunked Response]"),Ze(this),Je(this)}else De(this.i,this.l,n,null),et(this,n);4==l&&Ze(this),this.o&&!this.K&&(4==l?fn(this.j,this):(this.o=!1,Ye(this)))}else(function(e){const t={};e=(e.g&&$t(e)>=2&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let r=0;r<e.length;r++){if(U(e[r]))continue;var n=je(e[r]);const i=n[0];if("string"!==typeof(n=n[1]))continue;n=n.trim();const s=t[i]||[];t[i]=s,s.push(n)}!function(e,t){for(const n in e)t.call(void 0,e[n],n,e)}(t,function(e){return e.join(", ")})})(this.g),400==t&&n.indexOf("Unknown SID")>0?(this.m=3,Ie(12)):(this.m=0,Ie(13)),Ze(this),Je(this)}}}catch(l){}},ze.prototype.cancel=function(){this.K=!0,Ze(this)},ze.prototype.aa=function(){this.D=null;const e=Date.now();e-this.T>=0?(function(e,t){e.info(function(){return"TIMEOUT: "+t})}(this.i,this.B),2!=this.M&&(xe(),Ie(17)),Ze(this),this.m=2,Je(this)):$e(this,this.T-e)};var tt=class{constructor(e,t){this.g=e,this.map=t}};function nt(e){this.l=e||10,s.PerformanceNavigationTiming?e=(e=s.performance.getEntriesByType("navigation")).length>0&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(s.chrome&&s.chrome.loadTimes&&s.chrome.loadTimes()&&s.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function rt(e){return!!e.h||!!e.g&&e.g.size>=e.j}function it(e){return e.h?1:e.g?e.g.size:0}function st(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function at(e,t){e.g?e.g.add(t):e.h=t}function ot(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function lt(e){if(null!=e.h)return e.i.concat(e.h.G);if(null!=e.g&&0!==e.g.size){let t=e.i;for(const n of e.g.values())t=t.concat(n.G);return t}return E(e.i)}nt.prototype.cancel=function(){if(this.i=lt(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const e of this.g.values())e.cancel();this.g.clear()}};var ct=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function ut(e){let t;this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1,e instanceof ut?(this.l=e.l,dt(this,e.j),this.o=e.o,this.g=e.g,ft(this,e.u),this.h=e.h,pt(this,Rt(e.i)),this.m=e.m):e&&(t=String(e).match(ct))?(this.l=!1,dt(this,t[1]||"",!0),this.o=vt(t[2]||""),this.g=vt(t[3]||"",!0),ft(this,t[4]),this.h=vt(t[5]||"",!0),pt(this,t[6]||"",!0),this.m=vt(t[7]||"")):(this.l=!1,this.i=new Tt(null,this.l))}function ht(e){return new ut(e)}function dt(e,t,n){e.j=n?vt(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function ft(e,t){if(t){if(t=Number(t),isNaN(t)||t<0)throw Error("Bad port number "+t);e.u=t}else e.u=null}function pt(e,t,n){t instanceof Tt?(e.i=t,function(e,t){t&&!e.j&&(kt(e),e.i=null,e.g.forEach(function(e,t){const n=t.toLowerCase();t!=n&&(xt(this,t),Ot(this,n,e))},e)),e.j=t}(e.i,e.l)):(n||(t=yt(t,St)),e.i=new Tt(t,e.l))}function mt(e,t,n){e.i.set(t,n)}function gt(e){return mt(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function vt(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function yt(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,bt),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function bt(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}ut.prototype.toString=function(){const e=[];var t=this.j;t&&e.push(yt(t,Et,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.o)&&e.push(yt(t,Et,!0),"@"),e.push(Fe(n).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.u)&&e.push(":",String(n))),(n=this.h)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(yt(n,"/"==n.charAt(0)?At:_t,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.m)&&e.push("#",yt(n,Ct)),e.join("")},ut.prototype.resolve=function(e){const t=ht(this);let n=!!e.j;n?dt(t,e.j):n=!!e.o,n?t.o=e.o:n=!!e.g,n?t.g=e.g:n=null!=e.u;var r=e.h;if(n)ft(t,e.u);else if(n=!!e.h){if("/"!=r.charAt(0))if(this.g&&!this.h)r="/"+r;else{var i=t.h.lastIndexOf("/");-1!=i&&(r=t.h.slice(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");const e=[];for(let t=0;t<i.length;){const n=i[t++];"."==n?r&&t==i.length&&e.push(""):".."==n?((e.length>1||1==e.length&&""!=e[0])&&e.pop(),r&&t==i.length&&e.push("")):(e.push(n),r=!0)}r=e.join("/")}else r=i}return n?t.h=r:n=""!==e.i.toString(),n?pt(t,Rt(e.i)):n=!!e.m,n&&(t.m=e.m),t};var Et=/[#\/\?@]/g,_t=/[#\?:]/g,At=/[#\?]/g,St=/[#\?@]/g,Ct=/#/g;function Tt(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function kt(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(let n=0;n<e.length;n++){const r=e[n].indexOf("=");let i,s=null;r>=0?(i=e[n].substring(0,r),s=e[n].substring(r+1)):i=e[n],t(i,s?decodeURIComponent(s.replace(/\+/g," ")):"")}}}(e.i,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function xt(e,t){kt(e),t=Pt(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function Nt(e,t){return kt(e),t=Pt(e,t),e.g.has(t)}function It(e,t){kt(e);let n=[];if("string"===typeof t)Nt(e,t)&&(n=n.concat(e.g.get(Pt(e,t))));else for(e=Array.from(e.g.values()),t=0;t<e.length;t++)n=n.concat(e[t]);return n}function Ot(e,t,n){xt(e,t),n.length>0&&(e.i=null,e.g.set(Pt(e,t),E(n)),e.h+=n.length)}function Rt(e){const t=new Tt;return t.i=e.i,e.g&&(t.g=new Map(e.g),t.h=e.h),t}function Pt(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function Dt(e,t,n,r,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),r(n)}catch(s){}}function Lt(){this.g=new ye}function Mt(e){this.i=e.Sb||null,this.h=e.ab||!1}function Ut(e,t){le.call(this),this.H=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}function Vt(e){e.j.read().then(e.Ma.bind(e)).catch(e.ga.bind(e))}function Ft(e){e.readyState=4,e.l=null,e.j=null,e.B=null,jt(e)}function jt(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function zt(e){let t="";return H(e,function(e,n){t+=n,t+=":",t+=e,t+="\r\n"}),t}function Bt(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=zt(n),"string"===typeof e?null!=n&&Fe(n):mt(e,t,n))}function Ht(e){le.call(this),this.headers=new Map,this.L=e||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}(e=Tt.prototype).add=function(e,t){kt(this),this.i=null,e=Pt(this,e);let n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},e.forEach=function(e,t){kt(this),this.g.forEach(function(n,r){n.forEach(function(n){e.call(t,n,r,this)},this)},this)},e.set=function(e,t){return kt(this),this.i=null,Nt(this,e=Pt(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},e.get=function(e,t){return e&&(e=It(this,e)).length>0?String(e[0]):t},e.toString=function(){if(this.i)return this.i;if(!this.g)return"";const e=[],t=Array.from(this.g.keys());for(let r=0;r<t.length;r++){var n=t[r];const i=Fe(n);n=It(this,n);for(let t=0;t<n.length;t++){let r=i;""!==n[t]&&(r+="="+Fe(n[t])),e.push(r)}}return this.i=e.join("&")},h(Mt,we),Mt.prototype.g=function(){return new Ut(this.i,this.h)},h(Ut,le),(e=Ut.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.F=e,this.D=t,this.readyState=1,jt(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;const t={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};e&&(t.body=e),(this.H||s).fetch(new Request(this.D,t)).then(this.Pa.bind(this),this.ga.bind(this))},e.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),this.readyState>=1&&this.g&&4!=this.readyState&&(this.g=!1,Ft(this)),this.readyState=0},e.Pa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,jt(this)),this.g&&(this.readyState=3,jt(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if("undefined"!==typeof s.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;Vt(this)}else e.text().then(this.Oa.bind(this),this.ga.bind(this))},e.Ma=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var t=e.value?e.value:new Uint8Array(0);(t=this.B.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?Ft(this):jt(this),3==this.readyState&&Vt(this)}},e.Oa=function(e){this.g&&(this.response=this.responseText=e,Ft(this))},e.Na=function(e){this.g&&(this.response=e,Ft(this))},e.ga=function(){this.g&&Ft(this)},e.setRequestHeader=function(e,t){this.A.append(e,t)},e.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},e.getAllResponseHeaders=function(){if(!this.h)return"";const e=[],t=this.h.entries();for(var n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(Ut.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),h(Ht,le);var qt=/^https?$/i,Gt=["POST","PUT"];function Wt(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.o=5,Kt(e),Yt(e)}function Kt(e){e.A||(e.A=!0,ce(e,"complete"),ce(e,"error"))}function Qt(e){if(e.h&&"undefined"!=typeof i)if(e.v&&4==$t(e))setTimeout(e.Ca.bind(e),0);else if(ce(e,"readystatechange"),4==$t(e)){e.h=!1;try{const i=e.ca();e:switch(i){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t=!0;break e;default:t=!1}var n;if(!(n=t)){var r;if(r=0===i){let t=String(e.D).match(ct)[1]||null;!t&&s.self&&s.self.location&&(t=s.self.location.protocol.slice(0,-1)),r=!qt.test(t?t.toLowerCase():"")}n=r}if(n)ce(e,"complete"),ce(e,"success");else{e.o=6;try{var a=$t(e)>2?e.g.statusText:""}catch(o){a=""}e.l=a+" ["+e.ca()+"]",Kt(e)}}finally{Yt(e)}}}function Yt(e,t){if(e.g){e.m&&(clearTimeout(e.m),e.m=null);const r=e.g;e.g=null,t||ce(e,"ready");try{r.onreadystatechange=null}catch(n){}}}function $t(e){return e.g?e.g.readyState:0}function Xt(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.F){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(t){return null}}function Jt(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function Zt(e){this.za=0,this.i=[],this.j=new Pe,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=Jt("failFast",!1,e),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=Jt("baseRetryDelayMs",5e3,e),this.Za=Jt("retryDelaySeedMs",1e4,e),this.Ta=Jt("forwardChannelMaxRetries",2,e),this.va=Jt("forwardChannelRequestTimeoutMs",2e4,e),this.ma=e&&e.xmlHttpFactory||void 0,this.Ua=e&&e.Rb||void 0,this.Aa=e&&e.useFetchStreams||!1,this.O=void 0,this.L=e&&e.supportsCrossDomainXhr||!1,this.M="",this.h=new nt(e&&e.concurrentRequestLimit),this.Ba=new Lt,this.S=e&&e.fastHandshake||!1,this.R=e&&e.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=e&&e.Pb||!1,e&&e.ua&&this.j.ua(),e&&e.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&e&&e.detectBufferingProxy||!1,this.ia=void 0,e&&e.longPollingTimeout&&e.longPollingTimeout>0&&(this.ia=e.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}function en(e){if(nn(e),3==e.I){var t=e.V++,n=ht(e.J);if(mt(n,"SID",e.M),mt(n,"RID",t),mt(n,"TYPE","terminate"),an(e,n),(t=new ze(e,e.j,t)).M=2,t.A=gt(ht(n)),n=!1,s.navigator&&s.navigator.sendBeacon)try{n=s.navigator.sendBeacon(t.A.toString(),"")}catch(r){}!n&&s.Image&&((new Image).src=t.A,n=!0),n||(t.g=yn(t.j,null),t.g.ea(t.A)),t.F=Date.now(),Ye(t)}gn(e)}function tn(e){e.g&&(un(e),e.g.cancel(),e.g=null)}function nn(e){tn(e),e.v&&(s.clearTimeout(e.v),e.v=null),dn(e),e.h.cancel(),e.m&&("number"===typeof e.m&&s.clearTimeout(e.m),e.m=null)}function rn(e){if(!rt(e.h)&&!e.m){e.m=!0;var t=e.Ea;N||R(),I||(N(),I=!0),O.add(t,e),e.D=0}}function sn(e,t){var n;n=t?t.l:e.V++;const r=ht(e.J);mt(r,"SID",e.M),mt(r,"RID",n),mt(r,"AID",e.K),an(e,r),e.u&&e.o&&Bt(r,e.u,e.o),n=new ze(e,e.j,n,e.D+1),null===e.u&&(n.J=e.o),t&&(e.i=t.G.concat(e.i)),t=on(e,n,1e3),n.H=Math.round(.5*e.va)+Math.round(.5*e.va*Math.random()),at(e.h,n),Ge(n,r,t)}function an(e,t){e.H&&H(e.H,function(e,n){mt(t,n,e)}),e.l&&H({},function(e,n){mt(t,n,e)})}function on(e,t,n){n=Math.min(e.i.length,n);const r=e.l?l(e.l.Ka,e.l,e):null;e:{var i=e.i;let t=-1;for(;;){const e=["count="+n];-1==t?n>0?(t=i[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let l=!0;for(let h=0;h<n;h++){var s=i[h].g;const n=i[h].map;if((s-=t)<0)t=Math.max(0,i[h].g-100),l=!1;else try{s="req"+s+"_"||0;try{var o=n instanceof Map?n:Object.entries(n);for(const t of o){var u=(0,c.A)(t,2);const n=u[0],r=u[1];let i=r;a(r)&&(i=ge(r)),e.push(s+n+"="+encodeURIComponent(i))}}catch(wt){throw e.push(s+"type="+encodeURIComponent("_badmap")),wt}}catch(wt){r&&r(n)}}if(l){o=e.join("&");break e}}o=void 0}return e=e.i.splice(0,n),t.G=e,o}function ln(e){if(!e.g&&!e.v){e.Y=1;var t=e.Da;N||R(),I||(N(),I=!0),O.add(t,e),e.A=0}}function cn(e){return!(e.g||e.v||e.A>=3)&&(e.Y++,e.v=Re(l(e.Da,e),pn(e,e.A)),e.A++,!0)}function un(e){null!=e.B&&(s.clearTimeout(e.B),e.B=null)}function hn(e){e.g=new ze(e,e.j,"rpc",e.Y),null===e.u&&(e.g.J=e.o),e.g.P=0;var t=ht(e.na);mt(t,"RID","rpc"),mt(t,"SID",e.M),mt(t,"AID",e.K),mt(t,"CI",e.F?"0":"1"),!e.F&&e.ia&&mt(t,"TO",e.ia),mt(t,"TYPE","xmlhttp"),an(e,t),e.u&&e.o&&Bt(t,e.u,e.o),e.O&&(e.g.H=e.O);var n=e.g;e=e.ba,n.M=1,n.A=gt(ht(t)),n.u=null,n.R=!0,We(n,e)}function dn(e){null!=e.C&&(s.clearTimeout(e.C),e.C=null)}function fn(e,t){var n=null;if(e.g==t){dn(e),un(e),e.g=null;var r=2}else{if(!st(e.h,t))return;n=t.G,ot(e.h,t),r=1}if(0!=e.I)if(t.o)if(1==r){n=t.u?t.u.length:0,t=Date.now()-t.F;var i=e.D;ce(r=Te(),new Oe(r,n)),rn(e)}else ln(e);else if(3==(i=t.m)||0==i&&t.X>0||!(1==r&&function(e,t){return!(it(e.h)>=e.h.j-(e.m?1:0))&&(e.m?(e.i=t.G.concat(e.i),!0):!(1==e.I||2==e.I||e.D>=(e.Sa?0:e.Ta))&&(e.m=Re(l(e.Ea,e,t),pn(e,e.D)),e.D++,!0))}(e,t)||2==r&&cn(e)))switch(n&&n.length>0&&(t=e.h,t.i=t.i.concat(n)),i){case 1:mn(e,5);break;case 4:mn(e,10);break;case 3:mn(e,6);break;default:mn(e,2)}}function pn(e,t){let n=e.Qa+Math.floor(Math.random()*e.Za);return e.isActive()||(n*=2),n*t}function mn(e,t){if(e.j.info("Error code "+t),2==t){var n=l(e.bb,e),r=e.Ua;const t=!r;r=new ut(r||"//www.google.com/images/cleardot.gif"),s.location&&"http"==s.location.protocol||dt(r,"https"),gt(r),t?function(e,t){const n=new Pe;if(s.Image){const r=new Image;r.onload=u(Dt,n,"TestLoadImage: loaded",!0,t,r),r.onerror=u(Dt,n,"TestLoadImage: error",!1,t,r),r.onabort=u(Dt,n,"TestLoadImage: abort",!1,t,r),r.ontimeout=u(Dt,n,"TestLoadImage: timeout",!1,t,r),s.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=e}else t(!1)}(r.toString(),n):function(e,t){new Pe;const n=new AbortController,r=setTimeout(()=>{n.abort(),Dt(0,0,!1,t)},1e4);fetch(e,{signal:n.signal}).then(e=>{clearTimeout(r),e.ok?Dt(0,0,!0,t):Dt(0,0,!1,t)}).catch(()=>{clearTimeout(r),Dt(0,0,!1,t)})}(r.toString(),n)}else Ie(2);e.I=0,e.l&&e.l.pa(t),gn(e),nn(e)}function gn(e){if(e.I=0,e.ja=[],e.l){const t=lt(e.h);0==t.length&&0==e.i.length||(S(e.ja,t),S(e.ja,e.i),e.h.i.length=0,E(e.i),e.i.length=0),e.l.oa()}}function vn(e,t,n){var r=n instanceof ut?ht(n):new ut(n);if(""!=r.g)t&&(r.g=t+"."+r.g),ft(r,r.u);else{var i=s.location;r=i.protocol,t=t?t+"."+i.hostname:i.hostname,i=+i.port;const e=new ut(null);r&&dt(e,r),t&&(e.g=t),i&&ft(e,i),n&&(e.h=n),r=e}return n=e.G,t=e.wa,n&&t&&mt(r,n,t),mt(r,"VER",e.ka),an(e,r),r}function yn(e,t,n){if(t&&!e.L)throw Error("Can't create secondary domain capable XhrIo object.");return(t=e.Aa&&!e.ma?new Ht(new Mt({ab:n})):new Ht(e.ma)).Fa(e.L),t}function wn(){}function bn(){}function En(e,t){le.call(this),this.g=new Zt(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.o=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.sa&&(e?e["X-WebChannel-Client-Profile"]=t.sa:e={"X-WebChannel-Client-Profile":t.sa}),this.g.U=e,(e=t&&t.Qb)&&!U(e)&&(this.g.u=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!U(t)&&(this.g.G=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new Sn(this)}function _n(e){_e.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){e:{for(const n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function An(){Ae.call(this),this.status=1}function Sn(e){this.g=e}(e=Ht.prototype).Fa=function(e){this.H=e},e.ea=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+e);t=t?t.toUpperCase():"GET",this.D=e,this.l="",this.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():Le.g(),this.g.onreadystatechange=d(l(this.Ca,this));try{this.B=!0,this.g.open(t,String(e),!0),this.B=!1}catch(o){return void Wt(this,o)}if(e=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var i in r)n.set(i,r[i]);else{if("function"!==typeof r.keys||"function"!==typeof r.get)throw Error("Unknown input type for opt_headers: "+String(r));for(const e of r.keys())n.set(e,r.get(e))}r=Array.from(n.keys()).find(e=>"content-type"==e.toLowerCase()),i=s.FormData&&e instanceof s.FormData,!(Array.prototype.indexOf.call(Gt,t,void 0)>=0)||r||i||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const s of n){var a=(0,c.A)(s,2);const e=a[0],t=a[1];this.g.setRequestHeader(e,t)}this.F&&(this.g.responseType=this.F),"withCredentials"in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&(clearTimeout(this.m),this.m=null),this.v=!0,this.g.send(e),this.v=!1}catch(o){Wt(this,o)}},e.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=e||7,ce(this,"complete"),ce(this,"abort"),Yt(this))},e.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Yt(this,!0)),Ht.Z.N.call(this)},e.Ca=function(){this.u||(this.B||this.v||this.j?Qt(this):this.Xa())},e.Xa=function(){Qt(this)},e.isActive=function(){return!!this.g},e.ca=function(){try{return $t(this)>2?this.g.status:-1}catch(e){return-1}},e.la=function(){try{return this.g?this.g.responseText:""}catch(e){return""}},e.La=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),ve(t)}},e.ya=function(){return this.o},e.Ha=function(){return"string"===typeof this.l?this.l:String(this.l)},(e=Zt.prototype).ka=8,e.I=1,e.connect=function(e,t,n,r){Ie(0),this.W=e,this.H=t||{},n&&void 0!==r&&(this.H.OSID=n,this.H.OAID=r),this.F=this.X,this.J=vn(this,null,this.W),rn(this)},e.Ea=function(e){if(this.m)if(this.m=null,1==this.I){if(!e){this.V=Math.floor(1e5*Math.random()),e=this.V++;const i=new ze(this,this.j,e);let s=this.o;if(this.U&&(s?(s=q(s),W(s,this.U)):s=this.U),null!==this.u||this.R||(i.J=s,s=null),this.S)e:{for(var t=0,n=0;n<this.i.length;n++){var r=this.i[n];if(void 0===(r="__data__"in r.map&&"string"===typeof(r=r.map.__data__)?r.length:void 0))break;if((t+=r)>4096){t=n;break e}if(4096===t||n===this.i.length-1){t=n+1;break e}}t=1e3}else t=1e3;t=on(this,i,t),mt(n=ht(this.J),"RID",e),mt(n,"CVER",22),this.G&&mt(n,"X-HTTP-Session-Id",this.G),an(this,n),s&&(this.R?t="headers="+Fe(zt(s))+"&"+t:this.u&&Bt(n,this.u,s)),at(this.h,i),this.Ra&&mt(n,"TYPE","init"),this.S?(mt(n,"$req",t),mt(n,"SID","null"),i.U=!0,Ge(i,n,null)):Ge(i,n,t),this.I=2}}else 3==this.I&&(e?sn(this,e):0==this.i.length||rt(this.h)||sn(this))},e.Da=function(){if(this.v=null,hn(this),this.aa&&!(this.P||null==this.g||this.T<=0)){var e=4*this.T;this.j.info("BP detection timer enabled: "+e),this.B=Re(l(this.Wa,this),e)}},e.Wa=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.P=!0,Ie(10),tn(this),hn(this))},e.Va=function(){null!=this.C&&(this.C=null,tn(this),cn(this),Ie(19))},e.bb=function(e){e?(this.j.info("Successfully pinged google.com"),Ie(2)):(this.j.info("Failed to ping google.com"),Ie(1))},e.isActive=function(){return!!this.l&&this.l.isActive(this)},(e=wn.prototype).ra=function(){},e.qa=function(){},e.pa=function(){},e.oa=function(){},e.isActive=function(){return!0},e.Ka=function(){},bn.prototype.g=function(e,t){return new En(e,t)},h(En,le),En.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},En.prototype.close=function(){en(this.g)},En.prototype.o=function(e){var t=this.g;if("string"===typeof e){var n={};n.__data__=e,e=n}else this.v&&((n={}).__data__=ge(e),e=n);t.i.push(new tt(t.Ya++,e)),3==t.I&&rn(t)},En.prototype.N=function(){this.g.l=null,delete this.j,en(this.g),delete this.g,En.Z.N.call(this)},h(_n,_e),h(An,Ae),h(Sn,wn),Sn.prototype.ra=function(){ce(this.g,"a")},Sn.prototype.qa=function(e){ce(this.g,new _n(e))},Sn.prototype.pa=function(e){ce(this.g,new An)},Sn.prototype.oa=function(){ce(this.g,"b")},bn.prototype.createWebChannel=bn.prototype.g,En.prototype.send=En.prototype.o,En.prototype.open=En.prototype.m,En.prototype.close=En.prototype.close,b=A.createWebChannelTransport=function(){return new bn},w=A.getStatEventTarget=function(){return Te()},y=A.Event=Se,v=A.Stat={jb:0,mb:1,nb:2,Hb:3,Mb:4,Jb:5,Kb:6,Ib:7,Gb:8,Lb:9,PROXY:10,NOPROXY:11,Eb:12,Ab:13,Bb:14,zb:15,Cb:16,Db:17,fb:18,eb:19,gb:20},Me.NO_ERROR=0,Me.TIMEOUT=8,Me.HTTP_ERROR=6,g=A.ErrorCode=Me,Ue.COMPLETE="complete",m=A.EventType=Ue,be.EventType=Ee,Ee.OPEN="a",Ee.CLOSE="b",Ee.ERROR="c",Ee.MESSAGE="d",le.prototype.listen=le.prototype.J,p=A.WebChannel=be,A.FetchXmlHttpFactory=Mt,Ht.prototype.listenOnce=Ht.prototype.K,Ht.prototype.getLastError=Ht.prototype.Ha,Ht.prototype.getLastErrorCode=Ht.prototype.ya,Ht.prototype.getStatus=Ht.prototype.ca,Ht.prototype.getResponseJson=Ht.prototype.La,Ht.prototype.getResponseText=Ht.prototype.la,Ht.prototype.send=Ht.prototype.ea,Ht.prototype.setWithCredentials=Ht.prototype.Fa,f=A.XhrIo=Ht}).apply("undefined"!==typeof _?_:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{});var S,C,T=n(4705);class k{}S=k,(0,T.A)(k,"FOLD_CASE",1),(0,T.A)(k,"LITERAL",2),(0,T.A)(k,"CLASS_NL",4),(0,T.A)(k,"DOT_NL",8),(0,T.A)(k,"ONE_LINE",16),(0,T.A)(k,"NON_GREEDY",32),(0,T.A)(k,"PERL_X",64),(0,T.A)(k,"UNICODE_GROUPS",128),(0,T.A)(k,"WAS_DOLLAR",256),(0,T.A)(k,"MATCH_NL",S.CLASS_NL|S.DOT_NL),(0,T.A)(k,"PERL",S.CLASS_NL|S.ONE_LINE|S.PERL_X|S.UNICODE_GROUPS),(0,T.A)(k,"POSIX",0),(0,T.A)(k,"UNANCHORED",0),(0,T.A)(k,"ANCHOR_START",1),(0,T.A)(k,"ANCHOR_BOTH",2);class x{static toUpperCase(e){const t=String.fromCodePoint(e).toUpperCase();if(t.length>1)return e;const n=String.fromCodePoint(t.codePointAt(0)).toLowerCase();return n.length>1||n.codePointAt(0)!==e?e:t.codePointAt(0)}static toLowerCase(e){const t=String.fromCodePoint(e).toLowerCase();if(t.length>1)return e;const n=String.fromCodePoint(t.codePointAt(0)).toUpperCase();return n.length>1||n.codePointAt(0)!==e?e:t.codePointAt(0)}}(0,T.A)(x,"CODES",new Map([["\x07",7],["\b",8],["\t",9],["\n",10],["\v",11],["\f",12],["\r",13],[" ",32],['"',34],["$",36],["&",38],["(",40],[")",41],["*",42],["+",43],["-",45],[".",46],["0",48],["1",49],["2",50],["3",51],["4",52],["5",53],["6",54],["7",55],["8",56],["9",57],[":",58],["<",60],[">",62],["?",63],["A",65],["B",66],["C",67],["F",70],["P",80],["Q",81],["U",85],["Z",90],["[",91],["\\",92],["]",93],["^",94],["_",95],["a",97],["b",98],["f",102],["i",105],["m",109],["n",110],["r",114],["s",115],["t",116],["v",118],["x",120],["z",122],["{",123],["|",124],["}",125]]));class N{}C=N,(0,T.A)(N,"CASE_ORBIT",new Map([[75,107],[107,8490],[8490,75],[83,115],[115,383],[383,83],[181,924],[924,956],[956,181],[197,229],[229,8491],[8491,197],[452,453],[453,454],[454,452],[455,456],[456,457],[457,455],[458,459],[459,460],[460,458],[497,498],[498,499],[499,497],[837,921],[921,953],[953,8126],[8126,837],[914,946],[946,976],[976,914],[917,949],[949,1013],[1013,917],[920,952],[952,977],[977,1012],[1012,920],[922,954],[954,1008],[1008,922],[928,960],[960,982],[982,928],[929,961],[961,1009],[1009,929],[931,962],[962,963],[963,931],[934,966],[966,981],[981,934],[937,969],[969,8486],[8486,937],[1042,1074],[1074,7296],[7296,1042],[1044,1076],[1076,7297],[7297,1044],[1054,1086],[1086,7298],[7298,1054],[1057,1089],[1089,7299],[7299,1057],[1058,1090],[1090,7300],[7300,7301],[7301,1058],[1066,1098],[1098,7302],[7302,1066],[1122,1123],[1123,7303],[7303,1122],[7304,42570],[42570,42571],[42571,7304],[7776,7777],[7777,7835],[7835,7776],[223,7838],[7838,223],[8064,8072],[8072,8064],[8065,8073],[8073,8065],[8066,8074],[8074,8066],[8067,8075],[8075,8067],[8068,8076],[8076,8068],[8069,8077],[8077,8069],[8070,8078],[8078,8070],[8071,8079],[8079,8071],[8080,8088],[8088,8080],[8081,8089],[8089,8081],[8082,8090],[8090,8082],[8083,8091],[8091,8083],[8084,8092],[8092,8084],[8085,8093],[8093,8085],[8086,8094],[8094,8086],[8087,8095],[8095,8087],[8096,8104],[8104,8096],[8097,8105],[8105,8097],[8098,8106],[8106,8098],[8099,8107],[8107,8099],[8100,8108],[8108,8100],[8101,8109],[8109,8101],[8102,8110],[8110,8102],[8103,8111],[8111,8103],[8115,8124],[8124,8115],[8131,8140],[8140,8131],[912,8147],[8147,912],[944,8163],[8163,944],[8179,8188],[8188,8179],[64261,64262],[64262,64261],[66560,66600],[66600,66560],[66561,66601],[66601,66561],[66562,66602],[66602,66562],[66563,66603],[66603,66563],[66564,66604],[66604,66564],[66565,66605],[66605,66565],[66566,66606],[66606,66566],[66567,66607],[66607,66567],[66568,66608],[66608,66568],[66569,66609],[66609,66569],[66570,66610],[66610,66570],[66571,66611],[66611,66571],[66572,66612],[66612,66572],[66573,66613],[66613,66573],[66574,66614],[66614,66574],[66575,66615],[66615,66575],[66576,66616],[66616,66576],[66577,66617],[66617,66577],[66578,66618],[66618,66578],[66579,66619],[66619,66579],[66580,66620],[66620,66580],[66581,66621],[66621,66581],[66582,66622],[66622,66582],[66583,66623],[66623,66583],[66584,66624],[66624,66584],[66585,66625],[66625,66585],[66586,66626],[66626,66586],[66587,66627],[66627,66587],[66588,66628],[66628,66588],[66589,66629],[66629,66589],[66590,66630],[66630,66590],[66591,66631],[66631,66591],[66592,66632],[66632,66592],[66593,66633],[66633,66593],[66594,66634],[66634,66594],[66595,66635],[66635,66595],[66596,66636],[66636,66596],[66597,66637],[66637,66597],[66598,66638],[66638,66598],[66599,66639],[66639,66599],[66736,66776],[66776,66736],[66737,66777],[66777,66737],[66738,66778],[66778,66738],[66739,66779],[66779,66739],[66740,66780],[66780,66740],[66741,66781],[66781,66741],[66742,66782],[66782,66742],[66743,66783],[66783,66743],[66744,66784],[66784,66744],[66745,66785],[66785,66745],[66746,66786],[66786,66746],[66747,66787],[66787,66747],[66748,66788],[66788,66748],[66749,66789],[66789,66749],[66750,66790],[66790,66750],[66751,66791],[66791,66751],[66752,66792],[66792,66752],[66753,66793],[66793,66753],[66754,66794],[66794,66754],[66755,66795],[66795,66755],[66756,66796],[66796,66756],[66757,66797],[66797,66757],[66758,66798],[66798,66758],[66759,66799],[66799,66759],[66760,66800],[66800,66760],[66761,66801],[66801,66761],[66762,66802],[66802,66762],[66763,66803],[66803,66763],[66764,66804],[66804,66764],[66765,66805],[66805,66765],[66766,66806],[66806,66766],[66767,66807],[66807,66767],[66768,66808],[66808,66768],[66769,66809],[66809,66769],[66770,66810],[66810,66770],[66771,66811],[66811,66771],[66928,66967],[66967,66928],[66929,66968],[66968,66929],[66930,66969],[66969,66930],[66931,66970],[66970,66931],[66932,66971],[66971,66932],[66933,66972],[66972,66933],[66934,66973],[66973,66934],[66935,66974],[66974,66935],[66936,66975],[66975,66936],[66937,66976],[66976,66937],[66938,66977],[66977,66938],[66940,66979],[66979,66940],[66941,66980],[66980,66941],[66942,66981],[66981,66942],[66943,66982],[66982,66943],[66944,66983],[66983,66944],[66945,66984],[66984,66945],[66946,66985],[66985,66946],[66947,66986],[66986,66947],[66948,66987],[66987,66948],[66949,66988],[66988,66949],[66950,66989],[66989,66950],[66951,66990],[66990,66951],[66952,66991],[66991,66952],[66953,66992],[66992,66953],[66954,66993],[66993,66954],[66956,66995],[66995,66956],[66957,66996],[66996,66957],[66958,66997],[66997,66958],[66959,66998],[66998,66959],[66960,66999],[66999,66960],[66961,67e3],[67e3,66961],[66962,67001],[67001,66962],[66964,67003],[67003,66964],[66965,67004],[67004,66965],[68736,68800],[68800,68736],[68737,68801],[68801,68737],[68738,68802],[68802,68738],[68739,68803],[68803,68739],[68740,68804],[68804,68740],[68741,68805],[68805,68741],[68742,68806],[68806,68742],[68743,68807],[68807,68743],[68744,68808],[68808,68744],[68745,68809],[68809,68745],[68746,68810],[68810,68746],[68747,68811],[68811,68747],[68748,68812],[68812,68748],[68749,68813],[68813,68749],[68750,68814],[68814,68750],[68751,68815],[68815,68751],[68752,68816],[68816,68752],[68753,68817],[68817,68753],[68754,68818],[68818,68754],[68755,68819],[68819,68755],[68756,68820],[68820,68756],[68757,68821],[68821,68757],[68758,68822],[68822,68758],[68759,68823],[68823,68759],[68760,68824],[68824,68760],[68761,68825],[68825,68761],[68762,68826],[68826,68762],[68763,68827],[68827,68763],[68764,68828],[68828,68764],[68765,68829],[68829,68765],[68766,68830],[68830,68766],[68767,68831],[68831,68767],[68768,68832],[68832,68768],[68769,68833],[68833,68769],[68770,68834],[68834,68770],[68771,68835],[68835,68771],[68772,68836],[68836,68772],[68773,68837],[68837,68773],[68774,68838],[68838,68774],[68775,68839],[68839,68775],[68776,68840],[68840,68776],[68777,68841],[68841,68777],[68778,68842],[68842,68778],[68779,68843],[68843,68779],[68780,68844],[68844,68780],[68781,68845],[68845,68781],[68782,68846],[68846,68782],[68783,68847],[68847,68783],[68784,68848],[68848,68784],[68785,68849],[68849,68785],[68786,68850],[68850,68786],[71840,71872],[71872,71840],[71841,71873],[71873,71841],[71842,71874],[71874,71842],[71843,71875],[71875,71843],[71844,71876],[71876,71844],[71845,71877],[71877,71845],[71846,71878],[71878,71846],[71847,71879],[71879,71847],[71848,71880],[71880,71848],[71849,71881],[71881,71849],[71850,71882],[71882,71850],[71851,71883],[71883,71851],[71852,71884],[71884,71852],[71853,71885],[71885,71853],[71854,71886],[71886,71854],[71855,71887],[71887,71855],[71856,71888],[71888,71856],[71857,71889],[71889,71857],[71858,71890],[71890,71858],[71859,71891],[71891,71859],[71860,71892],[71892,71860],[71861,71893],[71893,71861],[71862,71894],[71894,71862],[71863,71895],[71895,71863],[71864,71896],[71896,71864],[71865,71897],[71897,71865],[71866,71898],[71898,71866],[71867,71899],[71899,71867],[71868,71900],[71900,71868],[71869,71901],[71901,71869],[71870,71902],[71902,71870],[71871,71903],[71903,71871],[93760,93792],[93792,93760],[93761,93793],[93793,93761],[93762,93794],[93794,93762],[93763,93795],[93795,93763],[93764,93796],[93796,93764],[93765,93797],[93797,93765],[93766,93798],[93798,93766],[93767,93799],[93799,93767],[93768,93800],[93800,93768],[93769,93801],[93801,93769],[93770,93802],[93802,93770],[93771,93803],[93803,93771],[93772,93804],[93804,93772],[93773,93805],[93805,93773],[93774,93806],[93806,93774],[93775,93807],[93807,93775],[93776,93808],[93808,93776],[93777,93809],[93809,93777],[93778,93810],[93810,93778],[93779,93811],[93811,93779],[93780,93812],[93812,93780],[93781,93813],[93813,93781],[93782,93814],[93814,93782],[93783,93815],[93815,93783],[93784,93816],[93816,93784],[93785,93817],[93817,93785],[93786,93818],[93818,93786],[93787,93819],[93819,93787],[93788,93820],[93820,93788],[93789,93821],[93821,93789],[93790,93822],[93822,93790],[93791,93823],[93823,93791],[125184,125218],[125218,125184],[125185,125219],[125219,125185],[125186,125220],[125220,125186],[125187,125221],[125221,125187],[125188,125222],[125222,125188],[125189,125223],[125223,125189],[125190,125224],[125224,125190],[125191,125225],[125225,125191],[125192,125226],[125226,125192],[125193,125227],[125227,125193],[125194,125228],[125228,125194],[125195,125229],[125229,125195],[125196,125230],[125230,125196],[125197,125231],[125231,125197],[125198,125232],[125232,125198],[125199,125233],[125233,125199],[125200,125234],[125234,125200],[125201,125235],[125235,125201],[125202,125236],[125236,125202],[125203,125237],[125237,125203],[125204,125238],[125238,125204],[125205,125239],[125239,125205],[125206,125240],[125240,125206],[125207,125241],[125241,125207],[125208,125242],[125242,125208],[125209,125243],[125243,125209],[125210,125244],[125244,125210],[125211,125245],[125245,125211],[125212,125246],[125246,125212],[125213,125247],[125247,125213],[125214,125248],[125248,125214],[125215,125249],[125249,125215],[125216,125250],[125250,125216],[125217,125251],[125251,125217]])),(0,T.A)(N,"C",[[0,31,1],[127,159,1],[173,888,715],[889,896,7],[897,899,1],[907,909,2],[930,1328,398],[1367,1368,1],[1419,1420,1],[1424,1480,56],[1481,1487,1],[1515,1518,1],[1525,1541,1],[1564,1757,193],[1806,1807,1],[1867,1868,1],[1970,1983,1],[2043,2044,1],[2094,2095,1],[2111,2140,29],[2141,2143,2],[2155,2159,1],[2191,2199,1],[2274,2436,162],[2445,2446,1],[2449,2450,1],[2473,2481,8],[2483,2485,1],[2490,2491,1],[2501,2502,1],[2505,2506,1],[2511,2518,1],[2520,2523,1],[2526,2532,6],[2533,2559,26],[2560,2564,4],[2571,2574,1],[2577,2578,1],[2601,2609,8],[2612,2618,3],[2619,2621,2],[2627,2630,1],[2633,2634,1],[2638,2640,1],[2642,2648,1],[2653,2655,2],[2656,2661,1],[2679,2688,1],[2692,2702,10],[2706,2729,23],[2737,2740,3],[2746,2747,1],[2758,2766,4],[2767,2769,2],[2770,2783,1],[2788,2789,1],[2802,2808,1],[2816,2820,4],[2829,2830,1],[2833,2834,1],[2857,2865,8],[2868,2874,6],[2875,2885,10],[2886,2889,3],[2890,2894,4],[2895,2900,1],[2904,2907,1],[2910,2916,6],[2917,2936,19],[2937,2945,1],[2948,2955,7],[2956,2957,1],[2961,2966,5],[2967,2968,1],[2971,2973,2],[2976,2978,1],[2981,2983,1],[2987,2989,1],[3002,3005,1],[3011,3013,1],[3017,3022,5],[3023,3025,2],[3026,3030,1],[3032,3045,1],[3067,3071,1],[3085,3089,4],[3113,3130,17],[3131,3141,10],[3145,3150,5],[3151,3156,1],[3159,3163,4],[3164,3166,2],[3167,3172,5],[3173,3184,11],[3185,3190,1],[3213,3217,4],[3241,3252,11],[3258,3259,1],[3269,3273,4],[3278,3284,1],[3287,3292,1],[3295,3300,5],[3301,3312,11],[3316,3327,1],[3341,3345,4],[3397,3401,4],[3408,3411,1],[3428,3429,1],[3456,3460,4],[3479,3481,1],[3506,3516,10],[3518,3519,1],[3527,3529,1],[3531,3534,1],[3541,3543,2],[3552,3557,1],[3568,3569,1],[3573,3584,1],[3643,3646,1],[3676,3712,1],[3715,3717,2],[3723,3748,25],[3750,3774,24],[3775,3781,6],[3783,3791,8],[3802,3803,1],[3808,3839,1],[3912,3949,37],[3950,3952,1],[3992,4029,37],[4045,4059,14],[4060,4095,1],[4294,4296,2],[4297,4300,1],[4302,4303,1],[4681,4686,5],[4687,4695,8],[4697,4702,5],[4703,4745,42],[4750,4751,1],[4785,4790,5],[4791,4799,8],[4801,4806,5],[4807,4823,16],[4881,4886,5],[4887,4955,68],[4956,4989,33],[4990,4991,1],[5018,5023,1],[5110,5111,1],[5118,5119,1],[5789,5791,1],[5881,5887,1],[5910,5918,1],[5943,5951,1],[5972,5983,1],[5997,6001,4],[6004,6015,1],[6110,6111,1],[6122,6127,1],[6138,6143,1],[6158,6170,12],[6171,6175,1],[6265,6271,1],[6315,6319,1],[6390,6399,1],[6431,6444,13],[6445,6447,1],[6460,6463,1],[6465,6467,1],[6510,6511,1],[6517,6527,1],[6572,6575,1],[6602,6607,1],[6619,6621,1],[6684,6685,1],[6751,6781,30],[6782,6794,12],[6795,6799,1],[6810,6815,1],[6830,6831,1],[6863,6911,1],[6989,6991,1],[7039,7156,117],[7157,7163,1],[7224,7226,1],[7242,7244,1],[7305,7311,1],[7355,7356,1],[7368,7375,1],[7419,7423,1],[7958,7959,1],[7966,7967,1],[8006,8007,1],[8014,8015,1],[8024,8030,2],[8062,8063,1],[8117,8133,16],[8148,8149,1],[8156,8176,20],[8177,8181,4],[8191,8203,12],[8204,8207,1],[8234,8238,1],[8288,8303,1],[8306,8307,1],[8335,8349,14],[8350,8351,1],[8385,8399,1],[8433,8447,1],[8588,8591,1],[9255,9279,1],[9291,9311,1],[11124,11125,1],[11158,11508,350],[11509,11512,1],[11558,11560,2],[11561,11564,1],[11566,11567,1],[11624,11630,1],[11633,11646,1],[11671,11679,1],[11687,11743,8],[11870,11903,1],[11930,12020,90],[12021,12031,1],[12246,12271,1],[12352,12439,87],[12440,12544,104],[12545,12548,1],[12592,12687,95],[12772,12782,1],[12831,42125,29294],[42126,42127,1],[42183,42191,1],[42540,42559,1],[42744,42751,1],[42955,42959,1],[42962,42964,2],[42970,42993,1],[43053,43055,1],[43066,43071,1],[43128,43135,1],[43206,43213,1],[43226,43231,1],[43348,43358,1],[43389,43391,1],[43470,43482,12],[43483,43485,1],[43519,43575,56],[43576,43583,1],[43598,43599,1],[43610,43611,1],[43715,43738,1],[43767,43776,1],[43783,43784,1],[43791,43792,1],[43799,43807,1],[43815,43823,8],[43884,43887,1],[44014,44015,1],[44026,44031,1],[55204,55215,1],[55239,55242,1],[55292,63743,1],[64110,64111,1],[64218,64255,1],[64263,64274,1],[64280,64284,1],[64311,64317,6],[64319,64325,3],[64451,64466,1],[64912,64913,1],[64968,64974,1],[64976,65007,1],[65050,65055,1],[65107,65127,20],[65132,65135,1],[65141,65277,136],[65278,65280,1],[65471,65473,1],[65480,65481,1],[65488,65489,1],[65496,65497,1],[65501,65503,1],[65511,65519,8],[65520,65531,1],[65534,65535,1],[65548,65575,27],[65595,65598,3],[65614,65615,1],[65630,65663,1],[65787,65791,1],[65795,65798,1],[65844,65846,1],[65935,65949,14],[65950,65951,1],[65953,65999,1],[66046,66175,1],[66205,66207,1],[66257,66271,1],[66300,66303,1],[66340,66348,1],[66379,66383,1],[66427,66431,1],[66462,66500,38],[66501,66503,1],[66518,66559,1],[66718,66719,1],[66730,66735,1],[66772,66775,1],[66812,66815,1],[66856,66863,1],[66916,66926,1],[66939,66955,16],[66963,66966,3],[66978,66994,16],[67002,67005,3],[67006,67071,1],[67383,67391,1],[67414,67423,1],[67432,67455,1],[67462,67505,43],[67515,67583,1],[67590,67591,1],[67593,67638,45],[67641,67643,1],[67645,67646,1],[67670,67743,73],[67744,67750,1],[67760,67807,1],[67827,67830,3],[67831,67834,1],[67868,67870,1],[67898,67902,1],[67904,67967,1],[68024,68027,1],[68048,68049,1],[68100,68103,3],[68104,68107,1],[68116,68120,4],[68150,68151,1],[68155,68158,1],[68169,68175,1],[68185,68191,1],[68256,68287,1],[68327,68330,1],[68343,68351,1],[68406,68408,1],[68438,68439,1],[68467,68471,1],[68498,68504,1],[68509,68520,1],[68528,68607,1],[68681,68735,1],[68787,68799,1],[68851,68857,1],[68904,68911,1],[68922,69215,1],[69247,69290,43],[69294,69295,1],[69298,69372,1],[69416,69423,1],[69466,69487,1],[69514,69551,1],[69580,69599,1],[69623,69631,1],[69710,69713,1],[69750,69758,1],[69821,69827,6],[69828,69839,1],[69865,69871,1],[69882,69887,1],[69941,69960,19],[69961,69967,1],[70007,70015,1],[70112,70133,21],[70134,70143,1],[70162,70210,48],[70211,70271,1],[70279,70281,2],[70286,70302,16],[70314,70319,1],[70379,70383,1],[70394,70399,1],[70404,70413,9],[70414,70417,3],[70418,70441,23],[70449,70452,3],[70458,70469,11],[70470,70473,3],[70474,70478,4],[70479,70481,2],[70482,70486,1],[70488,70492,1],[70500,70501,1],[70509,70511,1],[70517,70655,1],[70748,70754,6],[70755,70783,1],[70856,70863,1],[70874,71039,1],[71094,71095,1],[71134,71167,1],[71237,71247,1],[71258,71263,1],[71277,71295,1],[71354,71359,1],[71370,71423,1],[71451,71452,1],[71468,71471,1],[71495,71679,1],[71740,71839,1],[71923,71934,1],[71943,71944,1],[71946,71947,1],[71956,71959,3],[71990,71993,3],[71994,72007,13],[72008,72015,1],[72026,72095,1],[72104,72105,1],[72152,72153,1],[72165,72191,1],[72264,72271,1],[72355,72367,1],[72441,72447,1],[72458,72703,1],[72713,72759,46],[72774,72783,1],[72813,72815,1],[72848,72849,1],[72872,72887,15],[72888,72959,1],[72967,72970,3],[73015,73017,1],[73019,73022,3],[73032,73039,1],[73050,73055,1],[73062,73065,3],[73103,73106,3],[73113,73119,1],[73130,73439,1],[73465,73471,1],[73489,73531,42],[73532,73533,1],[73562,73647,1],[73649,73663,1],[73714,73726,1],[74650,74751,1],[74863,74869,6],[74870,74879,1],[75076,77711,1],[77811,77823,1],[78896,78911,1],[78934,82943,1],[83527,92159,1],[92729,92735,1],[92767,92778,11],[92779,92781,1],[92863,92874,11],[92875,92879,1],[92910,92911,1],[92918,92927,1],[92998,93007,1],[93018,93026,8],[93048,93052,1],[93072,93759,1],[93851,93951,1],[94027,94030,1],[94088,94094,1],[94112,94175,1],[94181,94191,1],[94194,94207,1],[100344,100351,1],[101590,101631,1],[101641,110575,1],[110580,110588,8],[110591,110883,292],[110884,110897,1],[110899,110927,1],[110931,110932,1],[110934,110947,1],[110952,110959,1],[111356,113663,1],[113771,113775,1],[113789,113791,1],[113801,113807,1],[113818,113819,1],[113824,118527,1],[118574,118575,1],[118599,118607,1],[118724,118783,1],[119030,119039,1],[119079,119080,1],[119155,119162,1],[119275,119295,1],[119366,119487,1],[119508,119519,1],[119540,119551,1],[119639,119647,1],[119673,119807,1],[119893,119965,72],[119968,119969,1],[119971,119972,1],[119975,119976,1],[119981,119994,13],[119996,120004,8],[120070,120075,5],[120076,120085,9],[120093,120122,29],[120127,120133,6],[120135,120137,1],[120145,120486,341],[120487,120780,293],[120781,121484,703],[121485,121498,1],[121504,121520,16],[121521,122623,1],[122655,122660,1],[122667,122879,1],[122887,122905,18],[122906,122914,8],[122917,122923,6],[122924,122927,1],[122990,123022,1],[123024,123135,1],[123181,123183,1],[123198,123199,1],[123210,123213,1],[123216,123535,1],[123567,123583,1],[123642,123646,1],[123648,124111,1],[124154,124895,1],[124903,124908,5],[124911,124927,16],[125125,125126,1],[125143,125183,1],[125260,125263,1],[125274,125277,1],[125280,126064,1],[126133,126208,1],[126270,126463,1],[126468,126496,28],[126499,126501,2],[126502,126504,2],[126515,126520,5],[126522,126524,2],[126525,126529,1],[126531,126534,1],[126536,126540,2],[126544,126547,3],[126549,126550,1],[126552,126560,2],[126563,126565,2],[126566,126571,5],[126579,126589,5],[126591,126602,11],[126620,126624,1],[126628,126634,6],[126652,126703,1],[126706,126975,1],[127020,127023,1],[127124,127135,1],[127151,127152,1],[127168,127184,16],[127222,127231,1],[127406,127461,1],[127491,127503,1],[127548,127551,1],[127561,127567,1],[127570,127583,1],[127590,127743,1],[128728,128731,1],[128749,128751,1],[128765,128767,1],[128887,128890,1],[128986,128991,1],[129004,129007,1],[129009,129023,1],[129036,129039,1],[129096,129103,1],[129114,129119,1],[129160,129167,1],[129198,129199,1],[129202,129279,1],[129620,129631,1],[129646,129647,1],[129661,129663,1],[129673,129679,1],[129726,129734,8],[129735,129741,1],[129756,129759,1],[129769,129775,1],[129785,129791,1],[129939,129995,56],[129996,130031,1],[130042,131071,1],[173792,173823,1],[177978,177983,1],[178206,178207,1],[183970,183983,1],[191457,191471,1],[192094,194559,1],[195102,196607,1],[201547,201551,1],[205744,917759,1],[918e3,1114111,1]]),(0,T.A)(N,"Cc",[[0,31,1],[127,159,1]]),(0,T.A)(N,"Cf",[[173,1536,1363],[1537,1541,1],[1564,1757,193],[1807,2192,385],[2193,2274,81],[6158,8203,2045],[8204,8207,1],[8234,8238,1],[8288,8292,1],[8294,8303,1],[65279,65529,250],[65530,65531,1],[69821,69837,16],[78896,78911,1],[113824,113827,1],[119155,119162,1],[917505,917536,31],[917537,917631,1]]),(0,T.A)(N,"Co",[[57344,63743,1],[983040,1048573,1],[1048576,1114109,1]]),(0,T.A)(N,"Cs",[[55296,57343,1]]),(0,T.A)(N,"L",[[65,90,1],[97,122,1],[170,181,11],[186,192,6],[193,214,1],[216,246,1],[248,705,1],[710,721,1],[736,740,1],[748,750,2],[880,884,1],[886,887,1],[890,893,1],[895,902,7],[904,906,1],[908,910,2],[911,929,1],[931,1013,1],[1015,1153,1],[1162,1327,1],[1329,1366,1],[1369,1376,7],[1377,1416,1],[1488,1514,1],[1519,1522,1],[1568,1610,1],[1646,1647,1],[1649,1747,1],[1749,1765,16],[1766,1774,8],[1775,1786,11],[1787,1788,1],[1791,1808,17],[1810,1839,1],[1869,1957,1],[1969,1994,25],[1995,2026,1],[2036,2037,1],[2042,2048,6],[2049,2069,1],[2074,2084,10],[2088,2112,24],[2113,2136,1],[2144,2154,1],[2160,2183,1],[2185,2190,1],[2208,2249,1],[2308,2361,1],[2365,2384,19],[2392,2401,1],[2417,2432,1],[2437,2444,1],[2447,2448,1],[2451,2472,1],[2474,2480,1],[2482,2486,4],[2487,2489,1],[2493,2510,17],[2524,2525,1],[2527,2529,1],[2544,2545,1],[2556,2565,9],[2566,2570,1],[2575,2576,1],[2579,2600,1],[2602,2608,1],[2610,2611,1],[2613,2614,1],[2616,2617,1],[2649,2652,1],[2654,2674,20],[2675,2676,1],[2693,2701,1],[2703,2705,1],[2707,2728,1],[2730,2736,1],[2738,2739,1],[2741,2745,1],[2749,2768,19],[2784,2785,1],[2809,2821,12],[2822,2828,1],[2831,2832,1],[2835,2856,1],[2858,2864,1],[2866,2867,1],[2869,2873,1],[2877,2908,31],[2909,2911,2],[2912,2913,1],[2929,2947,18],[2949,2954,1],[2958,2960,1],[2962,2965,1],[2969,2970,1],[2972,2974,2],[2975,2979,4],[2980,2984,4],[2985,2986,1],[2990,3001,1],[3024,3077,53],[3078,3084,1],[3086,3088,1],[3090,3112,1],[3114,3129,1],[3133,3160,27],[3161,3162,1],[3165,3168,3],[3169,3200,31],[3205,3212,1],[3214,3216,1],[3218,3240,1],[3242,3251,1],[3253,3257,1],[3261,3293,32],[3294,3296,2],[3297,3313,16],[3314,3332,18],[3333,3340,1],[3342,3344,1],[3346,3386,1],[3389,3406,17],[3412,3414,1],[3423,3425,1],[3450,3455,1],[3461,3478,1],[3482,3505,1],[3507,3515,1],[3517,3520,3],[3521,3526,1],[3585,3632,1],[3634,3635,1],[3648,3654,1],[3713,3714,1],[3716,3718,2],[3719,3722,1],[3724,3747,1],[3749,3751,2],[3752,3760,1],[3762,3763,1],[3773,3776,3],[3777,3780,1],[3782,3804,22],[3805,3807,1],[3840,3904,64],[3905,3911,1],[3913,3948,1],[3976,3980,1],[4096,4138,1],[4159,4176,17],[4177,4181,1],[4186,4189,1],[4193,4197,4],[4198,4206,8],[4207,4208,1],[4213,4225,1],[4238,4256,18],[4257,4293,1],[4295,4301,6],[4304,4346,1],[4348,4680,1],[4682,4685,1],[4688,4694,1],[4696,4698,2],[4699,4701,1],[4704,4744,1],[4746,4749,1],[4752,4784,1],[4786,4789,1],[4792,4798,1],[4800,4802,2],[4803,4805,1],[4808,4822,1],[4824,4880,1],[4882,4885,1],[4888,4954,1],[4992,5007,1],[5024,5109,1],[5112,5117,1],[5121,5740,1],[5743,5759,1],[5761,5786,1],[5792,5866,1],[5873,5880,1],[5888,5905,1],[5919,5937,1],[5952,5969,1],[5984,5996,1],[5998,6e3,1],[6016,6067,1],[6103,6108,5],[6176,6264,1],[6272,6276,1],[6279,6312,1],[6314,6320,6],[6321,6389,1],[6400,6430,1],[6480,6509,1],[6512,6516,1],[6528,6571,1],[6576,6601,1],[6656,6678,1],[6688,6740,1],[6823,6917,94],[6918,6963,1],[6981,6988,1],[7043,7072,1],[7086,7087,1],[7098,7141,1],[7168,7203,1],[7245,7247,1],[7258,7293,1],[7296,7304,1],[7312,7354,1],[7357,7359,1],[7401,7404,1],[7406,7411,1],[7413,7414,1],[7418,7424,6],[7425,7615,1],[7680,7957,1],[7960,7965,1],[7968,8005,1],[8008,8013,1],[8016,8023,1],[8025,8031,2],[8032,8061,1],[8064,8116,1],[8118,8124,1],[8126,8130,4],[8131,8132,1],[8134,8140,1],[8144,8147,1],[8150,8155,1],[8160,8172,1],[8178,8180,1],[8182,8188,1],[8305,8319,14],[8336,8348,1],[8450,8455,5],[8458,8467,1],[8469,8473,4],[8474,8477,1],[8484,8490,2],[8491,8493,1],[8495,8505,1],[8508,8511,1],[8517,8521,1],[8526,8579,53],[8580,11264,2684],[11265,11492,1],[11499,11502,1],[11506,11507,1],[11520,11557,1],[11559,11565,6],[11568,11623,1],[11631,11648,17],[11649,11670,1],[11680,11686,1],[11688,11694,1],[11696,11702,1],[11704,11710,1],[11712,11718,1],[11720,11726,1],[11728,11734,1],[11736,11742,1],[11823,12293,470],[12294,12337,43],[12338,12341,1],[12347,12348,1],[12353,12438,1],[12445,12447,1],[12449,12538,1],[12540,12543,1],[12549,12591,1],[12593,12686,1],[12704,12735,1],[12784,12799,1],[13312,19903,1],[19968,42124,1],[42192,42237,1],[42240,42508,1],[42512,42527,1],[42538,42539,1],[42560,42606,1],[42623,42653,1],[42656,42725,1],[42775,42783,1],[42786,42888,1],[42891,42954,1],[42960,42961,1],[42963,42965,2],[42966,42969,1],[42994,43009,1],[43011,43013,1],[43015,43018,1],[43020,43042,1],[43072,43123,1],[43138,43187,1],[43250,43255,1],[43259,43261,2],[43262,43274,12],[43275,43301,1],[43312,43334,1],[43360,43388,1],[43396,43442,1],[43471,43488,17],[43489,43492,1],[43494,43503,1],[43514,43518,1],[43520,43560,1],[43584,43586,1],[43588,43595,1],[43616,43638,1],[43642,43646,4],[43647,43695,1],[43697,43701,4],[43702,43705,3],[43706,43709,1],[43712,43714,2],[43739,43741,1],[43744,43754,1],[43762,43764,1],[43777,43782,1],[43785,43790,1],[43793,43798,1],[43808,43814,1],[43816,43822,1],[43824,43866,1],[43868,43881,1],[43888,44002,1],[44032,55203,1],[55216,55238,1],[55243,55291,1],[63744,64109,1],[64112,64217,1],[64256,64262,1],[64275,64279,1],[64285,64287,2],[64288,64296,1],[64298,64310,1],[64312,64316,1],[64318,64320,2],[64321,64323,2],[64324,64326,2],[64327,64433,1],[64467,64829,1],[64848,64911,1],[64914,64967,1],[65008,65019,1],[65136,65140,1],[65142,65276,1],[65313,65338,1],[65345,65370,1],[65382,65470,1],[65474,65479,1],[65482,65487,1],[65490,65495,1],[65498,65500,1],[65536,65547,1],[65549,65574,1],[65576,65594,1],[65596,65597,1],[65599,65613,1],[65616,65629,1],[65664,65786,1],[66176,66204,1],[66208,66256,1],[66304,66335,1],[66349,66368,1],[66370,66377,1],[66384,66421,1],[66432,66461,1],[66464,66499,1],[66504,66511,1],[66560,66717,1],[66736,66771,1],[66776,66811,1],[66816,66855,1],[66864,66915,1],[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1],[67072,67382,1],[67392,67413,1],[67424,67431,1],[67456,67461,1],[67463,67504,1],[67506,67514,1],[67584,67589,1],[67592,67594,2],[67595,67637,1],[67639,67640,1],[67644,67647,3],[67648,67669,1],[67680,67702,1],[67712,67742,1],[67808,67826,1],[67828,67829,1],[67840,67861,1],[67872,67897,1],[67968,68023,1],[68030,68031,1],[68096,68112,16],[68113,68115,1],[68117,68119,1],[68121,68149,1],[68192,68220,1],[68224,68252,1],[68288,68295,1],[68297,68324,1],[68352,68405,1],[68416,68437,1],[68448,68466,1],[68480,68497,1],[68608,68680,1],[68736,68786,1],[68800,68850,1],[68864,68899,1],[69248,69289,1],[69296,69297,1],[69376,69404,1],[69415,69424,9],[69425,69445,1],[69488,69505,1],[69552,69572,1],[69600,69622,1],[69635,69687,1],[69745,69746,1],[69749,69763,14],[69764,69807,1],[69840,69864,1],[69891,69926,1],[69956,69959,3],[69968,70002,1],[70006,70019,13],[70020,70066,1],[70081,70084,1],[70106,70108,2],[70144,70161,1],[70163,70187,1],[70207,70208,1],[70272,70278,1],[70280,70282,2],[70283,70285,1],[70287,70301,1],[70303,70312,1],[70320,70366,1],[70405,70412,1],[70415,70416,1],[70419,70440,1],[70442,70448,1],[70450,70451,1],[70453,70457,1],[70461,70480,19],[70493,70497,1],[70656,70708,1],[70727,70730,1],[70751,70753,1],[70784,70831,1],[70852,70853,1],[70855,71040,185],[71041,71086,1],[71128,71131,1],[71168,71215,1],[71236,71296,60],[71297,71338,1],[71352,71424,72],[71425,71450,1],[71488,71494,1],[71680,71723,1],[71840,71903,1],[71935,71942,1],[71945,71948,3],[71949,71955,1],[71957,71958,1],[71960,71983,1],[71999,72001,2],[72096,72103,1],[72106,72144,1],[72161,72163,2],[72192,72203,11],[72204,72242,1],[72250,72272,22],[72284,72329,1],[72349,72368,19],[72369,72440,1],[72704,72712,1],[72714,72750,1],[72768,72818,50],[72819,72847,1],[72960,72966,1],[72968,72969,1],[72971,73008,1],[73030,73056,26],[73057,73061,1],[73063,73064,1],[73066,73097,1],[73112,73440,328],[73441,73458,1],[73474,73476,2],[73477,73488,1],[73490,73523,1],[73648,73728,80],[73729,74649,1],[74880,75075,1],[77712,77808,1],[77824,78895,1],[78913,78918,1],[82944,83526,1],[92160,92728,1],[92736,92766,1],[92784,92862,1],[92880,92909,1],[92928,92975,1],[92992,92995,1],[93027,93047,1],[93053,93071,1],[93760,93823,1],[93952,94026,1],[94032,94099,67],[94100,94111,1],[94176,94177,1],[94179,94208,29],[94209,100343,1],[100352,101589,1],[101632,101640,1],[110576,110579,1],[110581,110587,1],[110589,110590,1],[110592,110882,1],[110898,110928,30],[110929,110930,1],[110933,110948,15],[110949,110951,1],[110960,111355,1],[113664,113770,1],[113776,113788,1],[113792,113800,1],[113808,113817,1],[119808,119892,1],[119894,119964,1],[119966,119967,1],[119970,119973,3],[119974,119977,3],[119978,119980,1],[119982,119993,1],[119995,119997,2],[119998,120003,1],[120005,120069,1],[120071,120074,1],[120077,120084,1],[120086,120092,1],[120094,120121,1],[120123,120126,1],[120128,120132,1],[120134,120138,4],[120139,120144,1],[120146,120485,1],[120488,120512,1],[120514,120538,1],[120540,120570,1],[120572,120596,1],[120598,120628,1],[120630,120654,1],[120656,120686,1],[120688,120712,1],[120714,120744,1],[120746,120770,1],[120772,120779,1],[122624,122654,1],[122661,122666,1],[122928,122989,1],[123136,123180,1],[123191,123197,1],[123214,123536,322],[123537,123565,1],[123584,123627,1],[124112,124139,1],[124896,124902,1],[124904,124907,1],[124909,124910,1],[124912,124926,1],[124928,125124,1],[125184,125251,1],[125259,126464,1205],[126465,126467,1],[126469,126495,1],[126497,126498,1],[126500,126503,3],[126505,126514,1],[126516,126519,1],[126521,126523,2],[126530,126535,5],[126537,126541,2],[126542,126543,1],[126545,126546,1],[126548,126551,3],[126553,126561,2],[126562,126564,2],[126567,126570,1],[126572,126578,1],[126580,126583,1],[126585,126588,1],[126590,126592,2],[126593,126601,1],[126603,126619,1],[126625,126627,1],[126629,126633,1],[126635,126651,1],[131072,173791,1],[173824,177977,1],[177984,178205,1],[178208,183969,1],[183984,191456,1],[191472,192093,1],[194560,195101,1],[196608,201546,1],[201552,205743,1]]),(0,T.A)(N,"foldL",[[837,837,1]]),(0,T.A)(N,"Ll",[[97,122,1],[181,223,42],[224,246,1],[248,255,1],[257,311,2],[312,328,2],[329,375,2],[378,382,2],[383,384,1],[387,389,2],[392,396,4],[397,402,5],[405,409,4],[410,411,1],[414,417,3],[419,421,2],[424,426,2],[427,429,2],[432,436,4],[438,441,3],[442,445,3],[446,447,1],[454,460,3],[462,476,2],[477,495,2],[496,499,3],[501,505,4],[507,563,2],[564,569,1],[572,575,3],[576,578,2],[583,591,2],[592,659,1],[661,687,1],[881,883,2],[887,891,4],[892,893,1],[912,940,28],[941,974,1],[976,977,1],[981,983,1],[985,1007,2],[1008,1011,1],[1013,1019,3],[1020,1072,52],[1073,1119,1],[1121,1153,2],[1163,1215,2],[1218,1230,2],[1231,1327,2],[1376,1416,1],[4304,4346,1],[4349,4351,1],[5112,5117,1],[7296,7304,1],[7424,7467,1],[7531,7543,1],[7545,7578,1],[7681,7829,2],[7830,7837,1],[7839,7935,2],[7936,7943,1],[7952,7957,1],[7968,7975,1],[7984,7991,1],[8e3,8005,1],[8016,8023,1],[8032,8039,1],[8048,8061,1],[8064,8071,1],[8080,8087,1],[8096,8103,1],[8112,8116,1],[8118,8119,1],[8126,8130,4],[8131,8132,1],[8134,8135,1],[8144,8147,1],[8150,8151,1],[8160,8167,1],[8178,8180,1],[8182,8183,1],[8458,8462,4],[8463,8467,4],[8495,8505,5],[8508,8509,1],[8518,8521,1],[8526,8580,54],[11312,11359,1],[11361,11365,4],[11366,11372,2],[11377,11379,2],[11380,11382,2],[11383,11387,1],[11393,11491,2],[11492,11500,8],[11502,11507,5],[11520,11557,1],[11559,11565,6],[42561,42605,2],[42625,42651,2],[42787,42799,2],[42800,42801,1],[42803,42865,2],[42866,42872,1],[42874,42876,2],[42879,42887,2],[42892,42894,2],[42897,42899,2],[42900,42901,1],[42903,42921,2],[42927,42933,6],[42935,42947,2],[42952,42954,2],[42961,42969,2],[42998,43002,4],[43824,43866,1],[43872,43880,1],[43888,43967,1],[64256,64262,1],[64275,64279,1],[65345,65370,1],[66600,66639,1],[66776,66811,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1],[68800,68850,1],[71872,71903,1],[93792,93823,1],[119834,119859,1],[119886,119892,1],[119894,119911,1],[119938,119963,1],[119990,119993,1],[119995,119997,2],[119998,120003,1],[120005,120015,1],[120042,120067,1],[120094,120119,1],[120146,120171,1],[120198,120223,1],[120250,120275,1],[120302,120327,1],[120354,120379,1],[120406,120431,1],[120458,120485,1],[120514,120538,1],[120540,120545,1],[120572,120596,1],[120598,120603,1],[120630,120654,1],[120656,120661,1],[120688,120712,1],[120714,120719,1],[120746,120770,1],[120772,120777,1],[120779,122624,1845],[122625,122633,1],[122635,122654,1],[122661,122666,1],[125218,125251,1]]),(0,T.A)(N,"foldLl",[[65,90,1],[192,214,1],[216,222,1],[256,302,2],[306,310,2],[313,327,2],[330,376,2],[377,381,2],[385,386,1],[388,390,2],[391,393,2],[394,395,1],[398,401,1],[403,404,1],[406,408,1],[412,413,1],[415,416,1],[418,422,2],[423,425,2],[428,430,2],[431,433,2],[434,435,1],[437,439,2],[440,444,4],[452,453,1],[455,456,1],[458,459,1],[461,475,2],[478,494,2],[497,498,1],[500,502,2],[503,504,1],[506,562,2],[570,571,1],[573,574,1],[577,579,2],[580,582,1],[584,590,2],[837,880,43],[882,886,4],[895,902,7],[904,906,1],[908,910,2],[911,913,2],[914,929,1],[931,939,1],[975,984,9],[986,1006,2],[1012,1015,3],[1017,1018,1],[1021,1071,1],[1120,1152,2],[1162,1216,2],[1217,1229,2],[1232,1326,2],[1329,1366,1],[4256,4293,1],[4295,4301,6],[5024,5109,1],[7312,7354,1],[7357,7359,1],[7680,7828,2],[7838,7934,2],[7944,7951,1],[7960,7965,1],[7976,7983,1],[7992,7999,1],[8008,8013,1],[8025,8031,2],[8040,8047,1],[8072,8079,1],[8088,8095,1],[8104,8111,1],[8120,8124,1],[8136,8140,1],[8152,8155,1],[8168,8172,1],[8184,8188,1],[8486,8490,4],[8491,8498,7],[8579,11264,2685],[11265,11311,1],[11360,11362,2],[11363,11364,1],[11367,11373,2],[11374,11376,1],[11378,11381,3],[11390,11392,1],[11394,11490,2],[11499,11501,2],[11506,42560,31054],[42562,42604,2],[42624,42650,2],[42786,42798,2],[42802,42862,2],[42873,42877,2],[42878,42886,2],[42891,42893,2],[42896,42898,2],[42902,42922,2],[42923,42926,1],[42928,42932,1],[42934,42948,2],[42949,42951,1],[42953,42960,7],[42966,42968,2],[42997,65313,22316],[65314,65338,1],[66560,66599,1],[66736,66771,1],[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[68736,68786,1],[71840,71871,1],[93760,93791,1],[125184,125217,1]]),(0,T.A)(N,"Lm",[[688,705,1],[710,721,1],[736,740,1],[748,750,2],[884,890,6],[1369,1600,231],[1765,1766,1],[2036,2037,1],[2042,2074,32],[2084,2088,4],[2249,2417,168],[3654,3782,128],[4348,6103,1755],[6211,6823,612],[7288,7293,1],[7468,7530,1],[7544,7579,35],[7580,7615,1],[8305,8319,14],[8336,8348,1],[11388,11389,1],[11631,11823,192],[12293,12337,44],[12338,12341,1],[12347,12445,98],[12446,12540,94],[12541,12542,1],[40981,42232,1251],[42233,42237,1],[42508,42623,115],[42652,42653,1],[42775,42783,1],[42864,42888,24],[42994,42996,1],[43e3,43001,1],[43471,43494,23],[43632,43741,109],[43763,43764,1],[43868,43871,1],[43881,65392,21511],[65438,65439,1],[67456,67461,1],[67463,67504,1],[67506,67514,1],[92992,92995,1],[94099,94111,1],[94176,94177,1],[94179,110576,16397],[110577,110579,1],[110581,110587,1],[110589,110590,1],[122928,122989,1],[123191,123197,1],[124139,125259,1120]]),(0,T.A)(N,"Lo",[[170,186,16],[443,448,5],[449,451,1],[660,1488,828],[1489,1514,1],[1519,1522,1],[1568,1599,1],[1601,1610,1],[1646,1647,1],[1649,1747,1],[1749,1774,25],[1775,1786,11],[1787,1788,1],[1791,1808,17],[1810,1839,1],[1869,1957,1],[1969,1994,25],[1995,2026,1],[2048,2069,1],[2112,2136,1],[2144,2154,1],[2160,2183,1],[2185,2190,1],[2208,2248,1],[2308,2361,1],[2365,2384,19],[2392,2401,1],[2418,2432,1],[2437,2444,1],[2447,2448,1],[2451,2472,1],[2474,2480,1],[2482,2486,4],[2487,2489,1],[2493,2510,17],[2524,2525,1],[2527,2529,1],[2544,2545,1],[2556,2565,9],[2566,2570,1],[2575,2576,1],[2579,2600,1],[2602,2608,1],[2610,2611,1],[2613,2614,1],[2616,2617,1],[2649,2652,1],[2654,2674,20],[2675,2676,1],[2693,2701,1],[2703,2705,1],[2707,2728,1],[2730,2736,1],[2738,2739,1],[2741,2745,1],[2749,2768,19],[2784,2785,1],[2809,2821,12],[2822,2828,1],[2831,2832,1],[2835,2856,1],[2858,2864,1],[2866,2867,1],[2869,2873,1],[2877,2908,31],[2909,2911,2],[2912,2913,1],[2929,2947,18],[2949,2954,1],[2958,2960,1],[2962,2965,1],[2969,2970,1],[2972,2974,2],[2975,2979,4],[2980,2984,4],[2985,2986,1],[2990,3001,1],[3024,3077,53],[3078,3084,1],[3086,3088,1],[3090,3112,1],[3114,3129,1],[3133,3160,27],[3161,3162,1],[3165,3168,3],[3169,3200,31],[3205,3212,1],[3214,3216,1],[3218,3240,1],[3242,3251,1],[3253,3257,1],[3261,3293,32],[3294,3296,2],[3297,3313,16],[3314,3332,18],[3333,3340,1],[3342,3344,1],[3346,3386,1],[3389,3406,17],[3412,3414,1],[3423,3425,1],[3450,3455,1],[3461,3478,1],[3482,3505,1],[3507,3515,1],[3517,3520,3],[3521,3526,1],[3585,3632,1],[3634,3635,1],[3648,3653,1],[3713,3714,1],[3716,3718,2],[3719,3722,1],[3724,3747,1],[3749,3751,2],[3752,3760,1],[3762,3763,1],[3773,3776,3],[3777,3780,1],[3804,3807,1],[3840,3904,64],[3905,3911,1],[3913,3948,1],[3976,3980,1],[4096,4138,1],[4159,4176,17],[4177,4181,1],[4186,4189,1],[4193,4197,4],[4198,4206,8],[4207,4208,1],[4213,4225,1],[4238,4352,114],[4353,4680,1],[4682,4685,1],[4688,4694,1],[4696,4698,2],[4699,4701,1],[4704,4744,1],[4746,4749,1],[4752,4784,1],[4786,4789,1],[4792,4798,1],[4800,4802,2],[4803,4805,1],[4808,4822,1],[4824,4880,1],[4882,4885,1],[4888,4954,1],[4992,5007,1],[5121,5740,1],[5743,5759,1],[5761,5786,1],[5792,5866,1],[5873,5880,1],[5888,5905,1],[5919,5937,1],[5952,5969,1],[5984,5996,1],[5998,6e3,1],[6016,6067,1],[6108,6176,68],[6177,6210,1],[6212,6264,1],[6272,6276,1],[6279,6312,1],[6314,6320,6],[6321,6389,1],[6400,6430,1],[6480,6509,1],[6512,6516,1],[6528,6571,1],[6576,6601,1],[6656,6678,1],[6688,6740,1],[6917,6963,1],[6981,6988,1],[7043,7072,1],[7086,7087,1],[7098,7141,1],[7168,7203,1],[7245,7247,1],[7258,7287,1],[7401,7404,1],[7406,7411,1],[7413,7414,1],[7418,8501,1083],[8502,8504,1],[11568,11623,1],[11648,11670,1],[11680,11686,1],[11688,11694,1],[11696,11702,1],[11704,11710,1],[11712,11718,1],[11720,11726,1],[11728,11734,1],[11736,11742,1],[12294,12348,54],[12353,12438,1],[12447,12449,2],[12450,12538,1],[12543,12549,6],[12550,12591,1],[12593,12686,1],[12704,12735,1],[12784,12799,1],[13312,19903,1],[19968,40980,1],[40982,42124,1],[42192,42231,1],[42240,42507,1],[42512,42527,1],[42538,42539,1],[42606,42656,50],[42657,42725,1],[42895,42999,104],[43003,43009,1],[43011,43013,1],[43015,43018,1],[43020,43042,1],[43072,43123,1],[43138,43187,1],[43250,43255,1],[43259,43261,2],[43262,43274,12],[43275,43301,1],[43312,43334,1],[43360,43388,1],[43396,43442,1],[43488,43492,1],[43495,43503,1],[43514,43518,1],[43520,43560,1],[43584,43586,1],[43588,43595,1],[43616,43631,1],[43633,43638,1],[43642,43646,4],[43647,43695,1],[43697,43701,4],[43702,43705,3],[43706,43709,1],[43712,43714,2],[43739,43740,1],[43744,43754,1],[43762,43777,15],[43778,43782,1],[43785,43790,1],[43793,43798,1],[43808,43814,1],[43816,43822,1],[43968,44002,1],[44032,55203,1],[55216,55238,1],[55243,55291,1],[63744,64109,1],[64112,64217,1],[64285,64287,2],[64288,64296,1],[64298,64310,1],[64312,64316,1],[64318,64320,2],[64321,64323,2],[64324,64326,2],[64327,64433,1],[64467,64829,1],[64848,64911,1],[64914,64967,1],[65008,65019,1],[65136,65140,1],[65142,65276,1],[65382,65391,1],[65393,65437,1],[65440,65470,1],[65474,65479,1],[65482,65487,1],[65490,65495,1],[65498,65500,1],[65536,65547,1],[65549,65574,1],[65576,65594,1],[65596,65597,1],[65599,65613,1],[65616,65629,1],[65664,65786,1],[66176,66204,1],[66208,66256,1],[66304,66335,1],[66349,66368,1],[66370,66377,1],[66384,66421,1],[66432,66461,1],[66464,66499,1],[66504,66511,1],[66640,66717,1],[66816,66855,1],[66864,66915,1],[67072,67382,1],[67392,67413,1],[67424,67431,1],[67584,67589,1],[67592,67594,2],[67595,67637,1],[67639,67640,1],[67644,67647,3],[67648,67669,1],[67680,67702,1],[67712,67742,1],[67808,67826,1],[67828,67829,1],[67840,67861,1],[67872,67897,1],[67968,68023,1],[68030,68031,1],[68096,68112,16],[68113,68115,1],[68117,68119,1],[68121,68149,1],[68192,68220,1],[68224,68252,1],[68288,68295,1],[68297,68324,1],[68352,68405,1],[68416,68437,1],[68448,68466,1],[68480,68497,1],[68608,68680,1],[68864,68899,1],[69248,69289,1],[69296,69297,1],[69376,69404,1],[69415,69424,9],[69425,69445,1],[69488,69505,1],[69552,69572,1],[69600,69622,1],[69635,69687,1],[69745,69746,1],[69749,69763,14],[69764,69807,1],[69840,69864,1],[69891,69926,1],[69956,69959,3],[69968,70002,1],[70006,70019,13],[70020,70066,1],[70081,70084,1],[70106,70108,2],[70144,70161,1],[70163,70187,1],[70207,70208,1],[70272,70278,1],[70280,70282,2],[70283,70285,1],[70287,70301,1],[70303,70312,1],[70320,70366,1],[70405,70412,1],[70415,70416,1],[70419,70440,1],[70442,70448,1],[70450,70451,1],[70453,70457,1],[70461,70480,19],[70493,70497,1],[70656,70708,1],[70727,70730,1],[70751,70753,1],[70784,70831,1],[70852,70853,1],[70855,71040,185],[71041,71086,1],[71128,71131,1],[71168,71215,1],[71236,71296,60],[71297,71338,1],[71352,71424,72],[71425,71450,1],[71488,71494,1],[71680,71723,1],[71935,71942,1],[71945,71948,3],[71949,71955,1],[71957,71958,1],[71960,71983,1],[71999,72001,2],[72096,72103,1],[72106,72144,1],[72161,72163,2],[72192,72203,11],[72204,72242,1],[72250,72272,22],[72284,72329,1],[72349,72368,19],[72369,72440,1],[72704,72712,1],[72714,72750,1],[72768,72818,50],[72819,72847,1],[72960,72966,1],[72968,72969,1],[72971,73008,1],[73030,73056,26],[73057,73061,1],[73063,73064,1],[73066,73097,1],[73112,73440,328],[73441,73458,1],[73474,73476,2],[73477,73488,1],[73490,73523,1],[73648,73728,80],[73729,74649,1],[74880,75075,1],[77712,77808,1],[77824,78895,1],[78913,78918,1],[82944,83526,1],[92160,92728,1],[92736,92766,1],[92784,92862,1],[92880,92909,1],[92928,92975,1],[93027,93047,1],[93053,93071,1],[93952,94026,1],[94032,94208,176],[94209,100343,1],[100352,101589,1],[101632,101640,1],[110592,110882,1],[110898,110928,30],[110929,110930,1],[110933,110948,15],[110949,110951,1],[110960,111355,1],[113664,113770,1],[113776,113788,1],[113792,113800,1],[113808,113817,1],[122634,123136,502],[123137,123180,1],[123214,123536,322],[123537,123565,1],[123584,123627,1],[124112,124138,1],[124896,124902,1],[124904,124907,1],[124909,124910,1],[124912,124926,1],[124928,125124,1],[126464,126467,1],[126469,126495,1],[126497,126498,1],[126500,126503,3],[126505,126514,1],[126516,126519,1],[126521,126523,2],[126530,126535,5],[126537,126541,2],[126542,126543,1],[126545,126546,1],[126548,126551,3],[126553,126561,2],[126562,126564,2],[126567,126570,1],[126572,126578,1],[126580,126583,1],[126585,126588,1],[126590,126592,2],[126593,126601,1],[126603,126619,1],[126625,126627,1],[126629,126633,1],[126635,126651,1],[131072,173791,1],[173824,177977,1],[177984,178205,1],[178208,183969,1],[183984,191456,1],[191472,192093,1],[194560,195101,1],[196608,201546,1],[201552,205743,1]]),(0,T.A)(N,"Lt",[[453,459,3],[498,8072,7574],[8073,8079,1],[8088,8095,1],[8104,8111,1],[8124,8140,16],[8188,8188,1]]),(0,T.A)(N,"foldLt",[[452,454,2],[455,457,2],[458,460,2],[497,499,2],[8064,8071,1],[8080,8087,1],[8096,8103,1],[8115,8131,16],[8179,8179,1]]),(0,T.A)(N,"Lu",[[65,90,1],[192,214,1],[216,222,1],[256,310,2],[313,327,2],[330,376,2],[377,381,2],[385,386,1],[388,390,2],[391,393,2],[394,395,1],[398,401,1],[403,404,1],[406,408,1],[412,413,1],[415,416,1],[418,422,2],[423,425,2],[428,430,2],[431,433,2],[434,435,1],[437,439,2],[440,444,4],[452,461,3],[463,475,2],[478,494,2],[497,500,3],[502,504,1],[506,562,2],[570,571,1],[573,574,1],[577,579,2],[580,582,1],[584,590,2],[880,882,2],[886,895,9],[902,904,2],[905,906,1],[908,910,2],[911,913,2],[914,929,1],[931,939,1],[975,978,3],[979,980,1],[984,1006,2],[1012,1015,3],[1017,1018,1],[1021,1071,1],[1120,1152,2],[1162,1216,2],[1217,1229,2],[1232,1326,2],[1329,1366,1],[4256,4293,1],[4295,4301,6],[5024,5109,1],[7312,7354,1],[7357,7359,1],[7680,7828,2],[7838,7934,2],[7944,7951,1],[7960,7965,1],[7976,7983,1],[7992,7999,1],[8008,8013,1],[8025,8031,2],[8040,8047,1],[8120,8123,1],[8136,8139,1],[8152,8155,1],[8168,8172,1],[8184,8187,1],[8450,8455,5],[8459,8461,1],[8464,8466,1],[8469,8473,4],[8474,8477,1],[8484,8490,2],[8491,8493,1],[8496,8499,1],[8510,8511,1],[8517,8579,62],[11264,11311,1],[11360,11362,2],[11363,11364,1],[11367,11373,2],[11374,11376,1],[11378,11381,3],[11390,11392,1],[11394,11490,2],[11499,11501,2],[11506,42560,31054],[42562,42604,2],[42624,42650,2],[42786,42798,2],[42802,42862,2],[42873,42877,2],[42878,42886,2],[42891,42893,2],[42896,42898,2],[42902,42922,2],[42923,42926,1],[42928,42932,1],[42934,42948,2],[42949,42951,1],[42953,42960,7],[42966,42968,2],[42997,65313,22316],[65314,65338,1],[66560,66599,1],[66736,66771,1],[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[68736,68786,1],[71840,71871,1],[93760,93791,1],[119808,119833,1],[119860,119885,1],[119912,119937,1],[119964,119966,2],[119967,119973,3],[119974,119977,3],[119978,119980,1],[119982,119989,1],[120016,120041,1],[120068,120069,1],[120071,120074,1],[120077,120084,1],[120086,120092,1],[120120,120121,1],[120123,120126,1],[120128,120132,1],[120134,120138,4],[120139,120144,1],[120172,120197,1],[120224,120249,1],[120276,120301,1],[120328,120353,1],[120380,120405,1],[120432,120457,1],[120488,120512,1],[120546,120570,1],[120604,120628,1],[120662,120686,1],[120720,120744,1],[120778,125184,4406],[125185,125217,1]]),(0,T.A)(N,"Upper",C.Lu),(0,T.A)(N,"foldLu",[[97,122,1],[181,223,42],[224,246,1],[248,255,1],[257,303,2],[307,311,2],[314,328,2],[331,375,2],[378,382,2],[383,384,1],[387,389,2],[392,396,4],[402,405,3],[409,410,1],[414,417,3],[419,421,2],[424,429,5],[432,436,4],[438,441,3],[445,447,2],[453,454,1],[456,457,1],[459,460,1],[462,476,2],[477,495,2],[498,499,1],[501,505,4],[507,543,2],[547,563,2],[572,575,3],[576,578,2],[583,591,2],[592,596,1],[598,599,1],[601,603,2],[604,608,4],[609,613,2],[614,616,2],[617,620,1],[623,625,2],[626,629,3],[637,640,3],[642,643,1],[647,652,1],[658,669,11],[670,837,167],[881,883,2],[887,891,4],[892,893,1],[940,943,1],[945,974,1],[976,977,1],[981,983,1],[985,1007,2],[1008,1011,1],[1013,1019,3],[1072,1119,1],[1121,1153,2],[1163,1215,2],[1218,1230,2],[1231,1327,2],[1377,1414,1],[4304,4346,1],[4349,4351,1],[5112,5117,1],[7296,7304,1],[7545,7549,4],[7566,7681,115],[7683,7829,2],[7835,7841,6],[7843,7935,2],[7936,7943,1],[7952,7957,1],[7968,7975,1],[7984,7991,1],[8e3,8005,1],[8017,8023,2],[8032,8039,1],[8048,8061,1],[8112,8113,1],[8126,8144,18],[8145,8160,15],[8161,8165,4],[8526,8580,54],[11312,11359,1],[11361,11365,4],[11366,11372,2],[11379,11382,3],[11393,11491,2],[11500,11502,2],[11507,11520,13],[11521,11557,1],[11559,11565,6],[42561,42605,2],[42625,42651,2],[42787,42799,2],[42803,42863,2],[42874,42876,2],[42879,42887,2],[42892,42897,5],[42899,42900,1],[42903,42921,2],[42933,42947,2],[42952,42954,2],[42961,42967,6],[42969,42998,29],[43859,43888,29],[43889,43967,1],[65345,65370,1],[66600,66639,1],[66776,66811,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1],[68800,68850,1],[71872,71903,1],[93792,93823,1],[125218,125251,1]]),(0,T.A)(N,"M",[[768,879,1],[1155,1161,1],[1425,1469,1],[1471,1473,2],[1474,1476,2],[1477,1479,2],[1552,1562,1],[1611,1631,1],[1648,1750,102],[1751,1756,1],[1759,1764,1],[1767,1768,1],[1770,1773,1],[1809,1840,31],[1841,1866,1],[1958,1968,1],[2027,2035,1],[2045,2070,25],[2071,2073,1],[2075,2083,1],[2085,2087,1],[2089,2093,1],[2137,2139,1],[2200,2207,1],[2250,2273,1],[2275,2307,1],[2362,2364,1],[2366,2383,1],[2385,2391,1],[2402,2403,1],[2433,2435,1],[2492,2494,2],[2495,2500,1],[2503,2504,1],[2507,2509,1],[2519,2530,11],[2531,2558,27],[2561,2563,1],[2620,2622,2],[2623,2626,1],[2631,2632,1],[2635,2637,1],[2641,2672,31],[2673,2677,4],[2689,2691,1],[2748,2750,2],[2751,2757,1],[2759,2761,1],[2763,2765,1],[2786,2787,1],[2810,2815,1],[2817,2819,1],[2876,2878,2],[2879,2884,1],[2887,2888,1],[2891,2893,1],[2901,2903,1],[2914,2915,1],[2946,3006,60],[3007,3010,1],[3014,3016,1],[3018,3021,1],[3031,3072,41],[3073,3076,1],[3132,3134,2],[3135,3140,1],[3142,3144,1],[3146,3149,1],[3157,3158,1],[3170,3171,1],[3201,3203,1],[3260,3262,2],[3263,3268,1],[3270,3272,1],[3274,3277,1],[3285,3286,1],[3298,3299,1],[3315,3328,13],[3329,3331,1],[3387,3388,1],[3390,3396,1],[3398,3400,1],[3402,3405,1],[3415,3426,11],[3427,3457,30],[3458,3459,1],[3530,3535,5],[3536,3540,1],[3542,3544,2],[3545,3551,1],[3570,3571,1],[3633,3636,3],[3637,3642,1],[3655,3662,1],[3761,3764,3],[3765,3772,1],[3784,3790,1],[3864,3865,1],[3893,3897,2],[3902,3903,1],[3953,3972,1],[3974,3975,1],[3981,3991,1],[3993,4028,1],[4038,4139,101],[4140,4158,1],[4182,4185,1],[4190,4192,1],[4194,4196,1],[4199,4205,1],[4209,4212,1],[4226,4237,1],[4239,4250,11],[4251,4253,1],[4957,4959,1],[5906,5909,1],[5938,5940,1],[5970,5971,1],[6002,6003,1],[6068,6099,1],[6109,6155,46],[6156,6157,1],[6159,6277,118],[6278,6313,35],[6432,6443,1],[6448,6459,1],[6679,6683,1],[6741,6750,1],[6752,6780,1],[6783,6832,49],[6833,6862,1],[6912,6916,1],[6964,6980,1],[7019,7027,1],[7040,7042,1],[7073,7085,1],[7142,7155,1],[7204,7223,1],[7376,7378,1],[7380,7400,1],[7405,7412,7],[7415,7417,1],[7616,7679,1],[8400,8432,1],[11503,11505,1],[11647,11744,97],[11745,11775,1],[12330,12335,1],[12441,12442,1],[42607,42610,1],[42612,42621,1],[42654,42655,1],[42736,42737,1],[43010,43014,4],[43019,43043,24],[43044,43047,1],[43052,43136,84],[43137,43188,51],[43189,43205,1],[43232,43249,1],[43263,43302,39],[43303,43309,1],[43335,43347,1],[43392,43395,1],[43443,43456,1],[43493,43561,68],[43562,43574,1],[43587,43596,9],[43597,43643,46],[43644,43645,1],[43696,43698,2],[43699,43700,1],[43703,43704,1],[43710,43711,1],[43713,43755,42],[43756,43759,1],[43765,43766,1],[44003,44010,1],[44012,44013,1],[64286,65024,738],[65025,65039,1],[65056,65071,1],[66045,66272,227],[66422,66426,1],[68097,68099,1],[68101,68102,1],[68108,68111,1],[68152,68154,1],[68159,68325,166],[68326,68900,574],[68901,68903,1],[69291,69292,1],[69373,69375,1],[69446,69456,1],[69506,69509,1],[69632,69634,1],[69688,69702,1],[69744,69747,3],[69748,69759,11],[69760,69762,1],[69808,69818,1],[69826,69888,62],[69889,69890,1],[69927,69940,1],[69957,69958,1],[70003,70016,13],[70017,70018,1],[70067,70080,1],[70089,70092,1],[70094,70095,1],[70188,70199,1],[70206,70209,3],[70367,70378,1],[70400,70403,1],[70459,70460,1],[70462,70468,1],[70471,70472,1],[70475,70477,1],[70487,70498,11],[70499,70502,3],[70503,70508,1],[70512,70516,1],[70709,70726,1],[70750,70832,82],[70833,70851,1],[71087,71093,1],[71096,71104,1],[71132,71133,1],[71216,71232,1],[71339,71351,1],[71453,71467,1],[71724,71738,1],[71984,71989,1],[71991,71992,1],[71995,71998,1],[72e3,72002,2],[72003,72145,142],[72146,72151,1],[72154,72160,1],[72164,72193,29],[72194,72202,1],[72243,72249,1],[72251,72254,1],[72263,72273,10],[72274,72283,1],[72330,72345,1],[72751,72758,1],[72760,72767,1],[72850,72871,1],[72873,72886,1],[73009,73014,1],[73018,73020,2],[73021,73023,2],[73024,73029,1],[73031,73098,67],[73099,73102,1],[73104,73105,1],[73107,73111,1],[73459,73462,1],[73472,73473,1],[73475,73524,49],[73525,73530,1],[73534,73538,1],[78912,78919,7],[78920,78933,1],[92912,92916,1],[92976,92982,1],[94031,94033,2],[94034,94087,1],[94095,94098,1],[94180,94192,12],[94193,113821,19628],[113822,118528,4706],[118529,118573,1],[118576,118598,1],[119141,119145,1],[119149,119154,1],[119163,119170,1],[119173,119179,1],[119210,119213,1],[119362,119364,1],[121344,121398,1],[121403,121452,1],[121461,121476,15],[121499,121503,1],[121505,121519,1],[122880,122886,1],[122888,122904,1],[122907,122913,1],[122915,122916,1],[122918,122922,1],[123023,123184,161],[123185,123190,1],[123566,123628,62],[123629,123631,1],[124140,124143,1],[125136,125142,1],[125252,125258,1],[917760,917999,1]]),(0,T.A)(N,"foldM",[[921,953,32],[8126,8126,1]]),(0,T.A)(N,"Mc",[[2307,2363,56],[2366,2368,1],[2377,2380,1],[2382,2383,1],[2434,2435,1],[2494,2496,1],[2503,2504,1],[2507,2508,1],[2519,2563,44],[2622,2624,1],[2691,2750,59],[2751,2752,1],[2761,2763,2],[2764,2818,54],[2819,2878,59],[2880,2887,7],[2888,2891,3],[2892,2903,11],[3006,3007,1],[3009,3010,1],[3014,3016,1],[3018,3020,1],[3031,3073,42],[3074,3075,1],[3137,3140,1],[3202,3203,1],[3262,3264,2],[3265,3268,1],[3271,3272,1],[3274,3275,1],[3285,3286,1],[3315,3330,15],[3331,3390,59],[3391,3392,1],[3398,3400,1],[3402,3404,1],[3415,3458,43],[3459,3535,76],[3536,3537,1],[3544,3551,1],[3570,3571,1],[3902,3903,1],[3967,4139,172],[4140,4145,5],[4152,4155,3],[4156,4182,26],[4183,4194,11],[4195,4196,1],[4199,4205,1],[4227,4228,1],[4231,4236,1],[4239,4250,11],[4251,4252,1],[5909,5940,31],[6070,6078,8],[6079,6085,1],[6087,6088,1],[6435,6438,1],[6441,6443,1],[6448,6449,1],[6451,6456,1],[6681,6682,1],[6741,6743,2],[6753,6755,2],[6756,6765,9],[6766,6770,1],[6916,6965,49],[6971,6973,2],[6974,6977,1],[6979,6980,1],[7042,7073,31],[7078,7079,1],[7082,7143,61],[7146,7148,1],[7150,7154,4],[7155,7204,49],[7205,7211,1],[7220,7221,1],[7393,7415,22],[12334,12335,1],[43043,43044,1],[43047,43136,89],[43137,43188,51],[43189,43203,1],[43346,43347,1],[43395,43444,49],[43445,43450,5],[43451,43454,3],[43455,43456,1],[43567,43568,1],[43571,43572,1],[43597,43643,46],[43645,43755,110],[43758,43759,1],[43765,44003,238],[44004,44006,2],[44007,44009,2],[44010,44012,2],[69632,69634,2],[69762,69808,46],[69809,69810,1],[69815,69816,1],[69932,69957,25],[69958,70018,60],[70067,70069,1],[70079,70080,1],[70094,70188,94],[70189,70190,1],[70194,70195,1],[70197,70368,171],[70369,70370,1],[70402,70403,1],[70462,70463,1],[70465,70468,1],[70471,70472,1],[70475,70477,1],[70487,70498,11],[70499,70709,210],[70710,70711,1],[70720,70721,1],[70725,70832,107],[70833,70834,1],[70841,70843,2],[70844,70846,1],[70849,71087,238],[71088,71089,1],[71096,71099,1],[71102,71216,114],[71217,71218,1],[71227,71228,1],[71230,71340,110],[71342,71343,1],[71350,71456,106],[71457,71462,5],[71724,71726,1],[71736,71984,248],[71985,71989,1],[71991,71992,1],[71997,72e3,3],[72002,72145,143],[72146,72147,1],[72156,72159,1],[72164,72249,85],[72279,72280,1],[72343,72751,408],[72766,72873,107],[72881,72884,3],[73098,73102,1],[73107,73108,1],[73110,73461,351],[73462,73475,13],[73524,73525,1],[73534,73535,1],[73537,94033,20496],[94034,94087,1],[94192,94193,1],[119141,119142,1],[119149,119154,1]]),(0,T.A)(N,"Me",[[1160,1161,1],[6846,8413,1567],[8414,8416,1],[8418,8420,1],[42608,42610,1]]),(0,T.A)(N,"Mn",[[768,879,1],[1155,1159,1],[1425,1469,1],[1471,1473,2],[1474,1476,2],[1477,1479,2],[1552,1562,1],[1611,1631,1],[1648,1750,102],[1751,1756,1],[1759,1764,1],[1767,1768,1],[1770,1773,1],[1809,1840,31],[1841,1866,1],[1958,1968,1],[2027,2035,1],[2045,2070,25],[2071,2073,1],[2075,2083,1],[2085,2087,1],[2089,2093,1],[2137,2139,1],[2200,2207,1],[2250,2273,1],[2275,2306,1],[2362,2364,2],[2369,2376,1],[2381,2385,4],[2386,2391,1],[2402,2403,1],[2433,2492,59],[2497,2500,1],[2509,2530,21],[2531,2558,27],[2561,2562,1],[2620,2625,5],[2626,2631,5],[2632,2635,3],[2636,2637,1],[2641,2672,31],[2673,2677,4],[2689,2690,1],[2748,2753,5],[2754,2757,1],[2759,2760,1],[2765,2786,21],[2787,2810,23],[2811,2815,1],[2817,2876,59],[2879,2881,2],[2882,2884,1],[2893,2901,8],[2902,2914,12],[2915,2946,31],[3008,3021,13],[3072,3076,4],[3132,3134,2],[3135,3136,1],[3142,3144,1],[3146,3149,1],[3157,3158,1],[3170,3171,1],[3201,3260,59],[3263,3270,7],[3276,3277,1],[3298,3299,1],[3328,3329,1],[3387,3388,1],[3393,3396,1],[3405,3426,21],[3427,3457,30],[3530,3538,8],[3539,3540,1],[3542,3633,91],[3636,3642,1],[3655,3662,1],[3761,3764,3],[3765,3772,1],[3784,3790,1],[3864,3865,1],[3893,3897,2],[3953,3966,1],[3968,3972,1],[3974,3975,1],[3981,3991,1],[3993,4028,1],[4038,4141,103],[4142,4144,1],[4146,4151,1],[4153,4154,1],[4157,4158,1],[4184,4185,1],[4190,4192,1],[4209,4212,1],[4226,4229,3],[4230,4237,7],[4253,4957,704],[4958,4959,1],[5906,5908,1],[5938,5939,1],[5970,5971,1],[6002,6003,1],[6068,6069,1],[6071,6077,1],[6086,6089,3],[6090,6099,1],[6109,6155,46],[6156,6157,1],[6159,6277,118],[6278,6313,35],[6432,6434,1],[6439,6440,1],[6450,6457,7],[6458,6459,1],[6679,6680,1],[6683,6742,59],[6744,6750,1],[6752,6754,2],[6757,6764,1],[6771,6780,1],[6783,6832,49],[6833,6845,1],[6847,6862,1],[6912,6915,1],[6964,6966,2],[6967,6970,1],[6972,6978,6],[7019,7027,1],[7040,7041,1],[7074,7077,1],[7080,7081,1],[7083,7085,1],[7142,7144,2],[7145,7149,4],[7151,7153,1],[7212,7219,1],[7222,7223,1],[7376,7378,1],[7380,7392,1],[7394,7400,1],[7405,7412,7],[7416,7417,1],[7616,7679,1],[8400,8412,1],[8417,8421,4],[8422,8432,1],[11503,11505,1],[11647,11744,97],[11745,11775,1],[12330,12333,1],[12441,12442,1],[42607,42612,5],[42613,42621,1],[42654,42655,1],[42736,42737,1],[43010,43014,4],[43019,43045,26],[43046,43052,6],[43204,43205,1],[43232,43249,1],[43263,43302,39],[43303,43309,1],[43335,43345,1],[43392,43394,1],[43443,43446,3],[43447,43449,1],[43452,43453,1],[43493,43561,68],[43562,43566,1],[43569,43570,1],[43573,43574,1],[43587,43596,9],[43644,43696,52],[43698,43700,1],[43703,43704,1],[43710,43711,1],[43713,43756,43],[43757,43766,9],[44005,44008,3],[44013,64286,20273],[65024,65039,1],[65056,65071,1],[66045,66272,227],[66422,66426,1],[68097,68099,1],[68101,68102,1],[68108,68111,1],[68152,68154,1],[68159,68325,166],[68326,68900,574],[68901,68903,1],[69291,69292,1],[69373,69375,1],[69446,69456,1],[69506,69509,1],[69633,69688,55],[69689,69702,1],[69744,69747,3],[69748,69759,11],[69760,69761,1],[69811,69814,1],[69817,69818,1],[69826,69888,62],[69889,69890,1],[69927,69931,1],[69933,69940,1],[70003,70016,13],[70017,70070,53],[70071,70078,1],[70089,70092,1],[70095,70191,96],[70192,70193,1],[70196,70198,2],[70199,70206,7],[70209,70367,158],[70371,70378,1],[70400,70401,1],[70459,70460,1],[70464,70502,38],[70503,70508,1],[70512,70516,1],[70712,70719,1],[70722,70724,1],[70726,70750,24],[70835,70840,1],[70842,70847,5],[70848,70850,2],[70851,71090,239],[71091,71093,1],[71100,71101,1],[71103,71104,1],[71132,71133,1],[71219,71226,1],[71229,71231,2],[71232,71339,107],[71341,71344,3],[71345,71349,1],[71351,71453,102],[71454,71455,1],[71458,71461,1],[71463,71467,1],[71727,71735,1],[71737,71738,1],[71995,71996,1],[71998,72003,5],[72148,72151,1],[72154,72155,1],[72160,72193,33],[72194,72202,1],[72243,72248,1],[72251,72254,1],[72263,72273,10],[72274,72278,1],[72281,72283,1],[72330,72342,1],[72344,72345,1],[72752,72758,1],[72760,72765,1],[72767,72850,83],[72851,72871,1],[72874,72880,1],[72882,72883,1],[72885,72886,1],[73009,73014,1],[73018,73020,2],[73021,73023,2],[73024,73029,1],[73031,73104,73],[73105,73109,4],[73111,73459,348],[73460,73472,12],[73473,73526,53],[73527,73530,1],[73536,73538,2],[78912,78919,7],[78920,78933,1],[92912,92916,1],[92976,92982,1],[94031,94095,64],[94096,94098,1],[94180,113821,19641],[113822,118528,4706],[118529,118573,1],[118576,118598,1],[119143,119145,1],[119163,119170,1],[119173,119179,1],[119210,119213,1],[119362,119364,1],[121344,121398,1],[121403,121452,1],[121461,121476,15],[121499,121503,1],[121505,121519,1],[122880,122886,1],[122888,122904,1],[122907,122913,1],[122915,122916,1],[122918,122922,1],[123023,123184,161],[123185,123190,1],[123566,123628,62],[123629,123631,1],[124140,124143,1],[125136,125142,1],[125252,125258,1],[917760,917999,1]]),(0,T.A)(N,"foldMn",[[921,953,32],[8126,8126,1]]),(0,T.A)(N,"N",[[48,57,1],[178,179,1],[185,188,3],[189,190,1],[1632,1641,1],[1776,1785,1],[1984,1993,1],[2406,2415,1],[2534,2543,1],[2548,2553,1],[2662,2671,1],[2790,2799,1],[2918,2927,1],[2930,2935,1],[3046,3058,1],[3174,3183,1],[3192,3198,1],[3302,3311,1],[3416,3422,1],[3430,3448,1],[3558,3567,1],[3664,3673,1],[3792,3801,1],[3872,3891,1],[4160,4169,1],[4240,4249,1],[4969,4988,1],[5870,5872,1],[6112,6121,1],[6128,6137,1],[6160,6169,1],[6470,6479,1],[6608,6618,1],[6784,6793,1],[6800,6809,1],[6992,7001,1],[7088,7097,1],[7232,7241,1],[7248,7257,1],[8304,8308,4],[8309,8313,1],[8320,8329,1],[8528,8578,1],[8581,8585,1],[9312,9371,1],[9450,9471,1],[10102,10131,1],[11517,12295,778],[12321,12329,1],[12344,12346,1],[12690,12693,1],[12832,12841,1],[12872,12879,1],[12881,12895,1],[12928,12937,1],[12977,12991,1],[42528,42537,1],[42726,42735,1],[43056,43061,1],[43216,43225,1],[43264,43273,1],[43472,43481,1],[43504,43513,1],[43600,43609,1],[44016,44025,1],[65296,65305,1],[65799,65843,1],[65856,65912,1],[65930,65931,1],[66273,66299,1],[66336,66339,1],[66369,66378,9],[66513,66517,1],[66720,66729,1],[67672,67679,1],[67705,67711,1],[67751,67759,1],[67835,67839,1],[67862,67867,1],[68028,68029,1],[68032,68047,1],[68050,68095,1],[68160,68168,1],[68221,68222,1],[68253,68255,1],[68331,68335,1],[68440,68447,1],[68472,68479,1],[68521,68527,1],[68858,68863,1],[68912,68921,1],[69216,69246,1],[69405,69414,1],[69457,69460,1],[69573,69579,1],[69714,69743,1],[69872,69881,1],[69942,69951,1],[70096,70105,1],[70113,70132,1],[70384,70393,1],[70736,70745,1],[70864,70873,1],[71248,71257,1],[71360,71369,1],[71472,71483,1],[71904,71922,1],[72016,72025,1],[72784,72812,1],[73040,73049,1],[73120,73129,1],[73552,73561,1],[73664,73684,1],[74752,74862,1],[92768,92777,1],[92864,92873,1],[93008,93017,1],[93019,93025,1],[93824,93846,1],[119488,119507,1],[119520,119539,1],[119648,119672,1],[120782,120831,1],[123200,123209,1],[123632,123641,1],[124144,124153,1],[125127,125135,1],[125264,125273,1],[126065,126123,1],[126125,126127,1],[126129,126132,1],[126209,126253,1],[126255,126269,1],[127232,127244,1],[130032,130041,1]]),(0,T.A)(N,"Nd",[[48,57,1],[1632,1641,1],[1776,1785,1],[1984,1993,1],[2406,2415,1],[2534,2543,1],[2662,2671,1],[2790,2799,1],[2918,2927,1],[3046,3055,1],[3174,3183,1],[3302,3311,1],[3430,3439,1],[3558,3567,1],[3664,3673,1],[3792,3801,1],[3872,3881,1],[4160,4169,1],[4240,4249,1],[6112,6121,1],[6160,6169,1],[6470,6479,1],[6608,6617,1],[6784,6793,1],[6800,6809,1],[6992,7001,1],[7088,7097,1],[7232,7241,1],[7248,7257,1],[42528,42537,1],[43216,43225,1],[43264,43273,1],[43472,43481,1],[43504,43513,1],[43600,43609,1],[44016,44025,1],[65296,65305,1],[66720,66729,1],[68912,68921,1],[69734,69743,1],[69872,69881,1],[69942,69951,1],[70096,70105,1],[70384,70393,1],[70736,70745,1],[70864,70873,1],[71248,71257,1],[71360,71369,1],[71472,71481,1],[71904,71913,1],[72016,72025,1],[72784,72793,1],[73040,73049,1],[73120,73129,1],[73552,73561,1],[92768,92777,1],[92864,92873,1],[93008,93017,1],[120782,120831,1],[123200,123209,1],[123632,123641,1],[124144,124153,1],[125264,125273,1],[130032,130041,1]]),(0,T.A)(N,"Nl",[[5870,5872,1],[8544,8578,1],[8581,8584,1],[12295,12321,26],[12322,12329,1],[12344,12346,1],[42726,42735,1],[65856,65908,1],[66369,66378,9],[66513,66517,1],[74752,74862,1]]),(0,T.A)(N,"No",[[178,179,1],[185,188,3],[189,190,1],[2548,2553,1],[2930,2935,1],[3056,3058,1],[3192,3198,1],[3416,3422,1],[3440,3448,1],[3882,3891,1],[4969,4988,1],[6128,6137,1],[6618,8304,1686],[8308,8313,1],[8320,8329,1],[8528,8543,1],[8585,9312,727],[9313,9371,1],[9450,9471,1],[10102,10131,1],[11517,12690,1173],[12691,12693,1],[12832,12841,1],[12872,12879,1],[12881,12895,1],[12928,12937,1],[12977,12991,1],[43056,43061,1],[65799,65843,1],[65909,65912,1],[65930,65931,1],[66273,66299,1],[66336,66339,1],[67672,67679,1],[67705,67711,1],[67751,67759,1],[67835,67839,1],[67862,67867,1],[68028,68029,1],[68032,68047,1],[68050,68095,1],[68160,68168,1],[68221,68222,1],[68253,68255,1],[68331,68335,1],[68440,68447,1],[68472,68479,1],[68521,68527,1],[68858,68863,1],[69216,69246,1],[69405,69414,1],[69457,69460,1],[69573,69579,1],[69714,69733,1],[70113,70132,1],[71482,71483,1],[71914,71922,1],[72794,72812,1],[73664,73684,1],[93019,93025,1],[93824,93846,1],[119488,119507,1],[119520,119539,1],[119648,119672,1],[125127,125135,1],[126065,126123,1],[126125,126127,1],[126129,126132,1],[126209,126253,1],[126255,126269,1],[127232,127244,1]]),(0,T.A)(N,"P",[[33,35,1],[37,42,1],[44,47,1],[58,59,1],[63,64,1],[91,93,1],[95,123,28],[125,161,36],[167,171,4],[182,183,1],[187,191,4],[894,903,9],[1370,1375,1],[1417,1418,1],[1470,1472,2],[1475,1478,3],[1523,1524,1],[1545,1546,1],[1548,1549,1],[1563,1565,2],[1566,1567,1],[1642,1645,1],[1748,1792,44],[1793,1805,1],[2039,2041,1],[2096,2110,1],[2142,2404,262],[2405,2416,11],[2557,2678,121],[2800,3191,391],[3204,3572,368],[3663,3674,11],[3675,3844,169],[3845,3858,1],[3860,3898,38],[3899,3901,1],[3973,4048,75],[4049,4052,1],[4057,4058,1],[4170,4175,1],[4347,4960,613],[4961,4968,1],[5120,5742,622],[5787,5788,1],[5867,5869,1],[5941,5942,1],[6100,6102,1],[6104,6106,1],[6144,6154,1],[6468,6469,1],[6686,6687,1],[6816,6822,1],[6824,6829,1],[7002,7008,1],[7037,7038,1],[7164,7167,1],[7227,7231,1],[7294,7295,1],[7360,7367,1],[7379,8208,829],[8209,8231,1],[8240,8259,1],[8261,8273,1],[8275,8286,1],[8317,8318,1],[8333,8334,1],[8968,8971,1],[9001,9002,1],[10088,10101,1],[10181,10182,1],[10214,10223,1],[10627,10648,1],[10712,10715,1],[10748,10749,1],[11513,11516,1],[11518,11519,1],[11632,11776,144],[11777,11822,1],[11824,11855,1],[11858,11869,1],[12289,12291,1],[12296,12305,1],[12308,12319,1],[12336,12349,13],[12448,12539,91],[42238,42239,1],[42509,42511,1],[42611,42622,11],[42738,42743,1],[43124,43127,1],[43214,43215,1],[43256,43258,1],[43260,43310,50],[43311,43359,48],[43457,43469,1],[43486,43487,1],[43612,43615,1],[43742,43743,1],[43760,43761,1],[44011,64830,20819],[64831,65040,209],[65041,65049,1],[65072,65106,1],[65108,65121,1],[65123,65128,5],[65130,65131,1],[65281,65283,1],[65285,65290,1],[65292,65295,1],[65306,65307,1],[65311,65312,1],[65339,65341,1],[65343,65371,28],[65373,65375,2],[65376,65381,1],[65792,65794,1],[66463,66512,49],[66927,67671,744],[67871,67903,32],[68176,68184,1],[68223,68336,113],[68337,68342,1],[68409,68415,1],[68505,68508,1],[69293,69461,168],[69462,69465,1],[69510,69513,1],[69703,69709,1],[69819,69820,1],[69822,69825,1],[69952,69955,1],[70004,70005,1],[70085,70088,1],[70093,70107,14],[70109,70111,1],[70200,70205,1],[70313,70731,418],[70732,70735,1],[70746,70747,1],[70749,70854,105],[71105,71127,1],[71233,71235,1],[71264,71276,1],[71353,71484,131],[71485,71486,1],[71739,72004,265],[72005,72006,1],[72162,72255,93],[72256,72262,1],[72346,72348,1],[72350,72354,1],[72448,72457,1],[72769,72773,1],[72816,72817,1],[73463,73464,1],[73539,73551,1],[73727,74864,1137],[74865,74868,1],[77809,77810,1],[92782,92783,1],[92917,92983,66],[92984,92987,1],[92996,93847,851],[93848,93850,1],[94178,113823,19645],[121479,121483,1],[125278,125279,1]]),(0,T.A)(N,"Pc",[[95,8255,8160],[8256,8276,20],[65075,65076,1],[65101,65103,1],[65343,65343,1]]),(0,T.A)(N,"Pd",[[45,1418,1373],[1470,5120,3650],[6150,8208,2058],[8209,8213,1],[11799,11802,3],[11834,11835,1],[11840,11869,29],[12316,12336,20],[12448,65073,52625],[65074,65112,38],[65123,65293,170],[69293,69293,1]]),(0,T.A)(N,"Pe",[[41,93,52],[125,3899,3774],[3901,5788,1887],[8262,8318,56],[8334,8969,635],[8971,9002,31],[10089,10101,2],[10182,10215,33],[10217,10223,2],[10628,10648,2],[10713,10715,2],[10749,11811,1062],[11813,11817,2],[11862,11868,2],[12297,12305,2],[12309,12315,2],[12318,12319,1],[64830,65048,218],[65078,65092,2],[65096,65114,18],[65116,65118,2],[65289,65341,52],[65373,65379,3]]),(0,T.A)(N,"Pf",[[187,8217,8030],[8221,8250,29],[11779,11781,2],[11786,11789,3],[11805,11809,4]]),(0,T.A)(N,"Pi",[[171,8216,8045],[8219,8220,1],[8223,8249,26],[11778,11780,2],[11785,11788,3],[11804,11808,4]]),(0,T.A)(N,"Po",[[33,35,1],[37,39,1],[42,46,2],[47,58,11],[59,63,4],[64,92,28],[161,167,6],[182,183,1],[191,894,703],[903,1370,467],[1371,1375,1],[1417,1472,55],[1475,1478,3],[1523,1524,1],[1545,1546,1],[1548,1549,1],[1563,1565,2],[1566,1567,1],[1642,1645,1],[1748,1792,44],[1793,1805,1],[2039,2041,1],[2096,2110,1],[2142,2404,262],[2405,2416,11],[2557,2678,121],[2800,3191,391],[3204,3572,368],[3663,3674,11],[3675,3844,169],[3845,3858,1],[3860,3973,113],[4048,4052,1],[4057,4058,1],[4170,4175,1],[4347,4960,613],[4961,4968,1],[5742,5867,125],[5868,5869,1],[5941,5942,1],[6100,6102,1],[6104,6106,1],[6144,6149,1],[6151,6154,1],[6468,6469,1],[6686,6687,1],[6816,6822,1],[6824,6829,1],[7002,7008,1],[7037,7038,1],[7164,7167,1],[7227,7231,1],[7294,7295,1],[7360,7367,1],[7379,8214,835],[8215,8224,9],[8225,8231,1],[8240,8248,1],[8251,8254,1],[8257,8259,1],[8263,8273,1],[8275,8277,2],[8278,8286,1],[11513,11516,1],[11518,11519,1],[11632,11776,144],[11777,11782,5],[11783,11784,1],[11787,11790,3],[11791,11798,1],[11800,11801,1],[11803,11806,3],[11807,11818,11],[11819,11822,1],[11824,11833,1],[11836,11839,1],[11841,11843,2],[11844,11855,1],[11858,11860,1],[12289,12291,1],[12349,12539,190],[42238,42239,1],[42509,42511,1],[42611,42622,11],[42738,42743,1],[43124,43127,1],[43214,43215,1],[43256,43258,1],[43260,43310,50],[43311,43359,48],[43457,43469,1],[43486,43487,1],[43612,43615,1],[43742,43743,1],[43760,43761,1],[44011,65040,21029],[65041,65046,1],[65049,65072,23],[65093,65094,1],[65097,65100,1],[65104,65106,1],[65108,65111,1],[65119,65121,1],[65128,65130,2],[65131,65281,150],[65282,65283,1],[65285,65287,1],[65290,65294,2],[65295,65306,11],[65307,65311,4],[65312,65340,28],[65377,65380,3],[65381,65792,411],[65793,65794,1],[66463,66512,49],[66927,67671,744],[67871,67903,32],[68176,68184,1],[68223,68336,113],[68337,68342,1],[68409,68415,1],[68505,68508,1],[69461,69465,1],[69510,69513,1],[69703,69709,1],[69819,69820,1],[69822,69825,1],[69952,69955,1],[70004,70005,1],[70085,70088,1],[70093,70107,14],[70109,70111,1],[70200,70205,1],[70313,70731,418],[70732,70735,1],[70746,70747,1],[70749,70854,105],[71105,71127,1],[71233,71235,1],[71264,71276,1],[71353,71484,131],[71485,71486,1],[71739,72004,265],[72005,72006,1],[72162,72255,93],[72256,72262,1],[72346,72348,1],[72350,72354,1],[72448,72457,1],[72769,72773,1],[72816,72817,1],[73463,73464,1],[73539,73551,1],[73727,74864,1137],[74865,74868,1],[77809,77810,1],[92782,92783,1],[92917,92983,66],[92984,92987,1],[92996,93847,851],[93848,93850,1],[94178,113823,19645],[121479,121483,1],[125278,125279,1]]),(0,T.A)(N,"Ps",[[40,91,51],[123,3898,3775],[3900,5787,1887],[8218,8222,4],[8261,8317,56],[8333,8968,635],[8970,9001,31],[10088,10100,2],[10181,10214,33],[10216,10222,2],[10627,10647,2],[10712,10714,2],[10748,11810,1062],[11812,11816,2],[11842,11861,19],[11863,11867,2],[12296,12304,2],[12308,12314,2],[12317,64831,52514],[65047,65077,30],[65079,65091,2],[65095,65113,18],[65115,65117,2],[65288,65339,51],[65371,65375,4],[65378,65378,1]]),(0,T.A)(N,"S",[[36,43,7],[60,62,1],[94,96,2],[124,126,2],[162,166,1],[168,169,1],[172,174,2],[175,177,1],[180,184,4],[215,247,32],[706,709,1],[722,735,1],[741,747,1],[749,751,2],[752,767,1],[885,900,15],[901,1014,113],[1154,1421,267],[1422,1423,1],[1542,1544,1],[1547,1550,3],[1551,1758,207],[1769,1789,20],[1790,2038,248],[2046,2047,1],[2184,2546,362],[2547,2554,7],[2555,2801,246],[2928,3059,131],[3060,3066,1],[3199,3407,208],[3449,3647,198],[3841,3843,1],[3859,3861,2],[3862,3863,1],[3866,3871,1],[3892,3896,2],[4030,4037,1],[4039,4044,1],[4046,4047,1],[4053,4056,1],[4254,4255,1],[5008,5017,1],[5741,6107,366],[6464,6622,158],[6623,6655,1],[7009,7018,1],[7028,7036,1],[8125,8127,2],[8128,8129,1],[8141,8143,1],[8157,8159,1],[8173,8175,1],[8189,8190,1],[8260,8274,14],[8314,8316,1],[8330,8332,1],[8352,8384,1],[8448,8449,1],[8451,8454,1],[8456,8457,1],[8468,8470,2],[8471,8472,1],[8478,8483,1],[8485,8489,2],[8494,8506,12],[8507,8512,5],[8513,8516,1],[8522,8525,1],[8527,8586,59],[8587,8592,5],[8593,8967,1],[8972,9e3,1],[9003,9254,1],[9280,9290,1],[9372,9449,1],[9472,10087,1],[10132,10180,1],[10183,10213,1],[10224,10626,1],[10649,10711,1],[10716,10747,1],[10750,11123,1],[11126,11157,1],[11159,11263,1],[11493,11498,1],[11856,11857,1],[11904,11929,1],[11931,12019,1],[12032,12245,1],[12272,12287,1],[12292,12306,14],[12307,12320,13],[12342,12343,1],[12350,12351,1],[12443,12444,1],[12688,12689,1],[12694,12703,1],[12736,12771,1],[12783,12800,17],[12801,12830,1],[12842,12871,1],[12880,12896,16],[12897,12927,1],[12938,12976,1],[12992,13311,1],[19904,19967,1],[42128,42182,1],[42752,42774,1],[42784,42785,1],[42889,42890,1],[43048,43051,1],[43062,43065,1],[43639,43641,1],[43867,43882,15],[43883,64297,20414],[64434,64450,1],[64832,64847,1],[64975,65020,45],[65021,65023,1],[65122,65124,2],[65125,65126,1],[65129,65284,155],[65291,65308,17],[65309,65310,1],[65342,65344,2],[65372,65374,2],[65504,65510,1],[65512,65518,1],[65532,65533,1],[65847,65855,1],[65913,65929,1],[65932,65934,1],[65936,65948,1],[65952,66e3,48],[66001,66044,1],[67703,67704,1],[68296,71487,3191],[73685,73713,1],[92988,92991,1],[92997,113820,20823],[118608,118723,1],[118784,119029,1],[119040,119078,1],[119081,119140,1],[119146,119148,1],[119171,119172,1],[119180,119209,1],[119214,119274,1],[119296,119361,1],[119365,119552,187],[119553,119638,1],[120513,120539,26],[120571,120597,26],[120629,120655,26],[120687,120713,26],[120745,120771,26],[120832,121343,1],[121399,121402,1],[121453,121460,1],[121462,121475,1],[121477,121478,1],[123215,123647,432],[126124,126128,4],[126254,126704,450],[126705,126976,271],[126977,127019,1],[127024,127123,1],[127136,127150,1],[127153,127167,1],[127169,127183,1],[127185,127221,1],[127245,127405,1],[127462,127490,1],[127504,127547,1],[127552,127560,1],[127568,127569,1],[127584,127589,1],[127744,128727,1],[128732,128748,1],[128752,128764,1],[128768,128886,1],[128891,128985,1],[128992,129003,1],[129008,129024,16],[129025,129035,1],[129040,129095,1],[129104,129113,1],[129120,129159,1],[129168,129197,1],[129200,129201,1],[129280,129619,1],[129632,129645,1],[129648,129660,1],[129664,129672,1],[129680,129725,1],[129727,129733,1],[129742,129755,1],[129760,129768,1],[129776,129784,1],[129792,129938,1],[129940,129994,1]]),(0,T.A)(N,"Sc",[[36,162,126],[163,165,1],[1423,1547,124],[2046,2047,1],[2546,2547,1],[2555,2801,246],[3065,3647,582],[6107,8352,2245],[8353,8384,1],[43064,65020,21956],[65129,65284,155],[65504,65505,1],[65509,65510,1],[73693,73696,1],[123647,126128,2481]]),(0,T.A)(N,"Sk",[[94,96,2],[168,175,7],[180,184,4],[706,709,1],[722,735,1],[741,747,1],[749,751,2],[752,767,1],[885,900,15],[901,2184,1283],[8125,8127,2],[8128,8129,1],[8141,8143,1],[8157,8159,1],[8173,8175,1],[8189,8190,1],[12443,12444,1],[42752,42774,1],[42784,42785,1],[42889,42890,1],[43867,43882,15],[43883,64434,20551],[64435,64450,1],[65342,65344,2],[65507,127995,62488],[127996,127999,1]]),(0,T.A)(N,"Sm",[[43,60,17],[61,62,1],[124,126,2],[172,177,5],[215,247,32],[1014,1542,528],[1543,1544,1],[8260,8274,14],[8314,8316,1],[8330,8332,1],[8472,8512,40],[8513,8516,1],[8523,8592,69],[8593,8596,1],[8602,8603,1],[8608,8614,3],[8622,8654,32],[8655,8658,3],[8660,8692,32],[8693,8959,1],[8992,8993,1],[9084,9115,31],[9116,9139,1],[9180,9185,1],[9655,9665,10],[9720,9727,1],[9839,10176,337],[10177,10180,1],[10183,10213,1],[10224,10239,1],[10496,10626,1],[10649,10711,1],[10716,10747,1],[10750,11007,1],[11056,11076,1],[11079,11084,1],[64297,65122,825],[65124,65126,1],[65291,65308,17],[65309,65310,1],[65372,65374,2],[65506,65513,7],[65514,65516,1],[120513,120539,26],[120571,120597,26],[120629,120655,26],[120687,120713,26],[120745,120771,26],[126704,126705,1]]),(0,T.A)(N,"So",[[166,169,3],[174,176,2],[1154,1421,267],[1422,1550,128],[1551,1758,207],[1769,1789,20],[1790,2038,248],[2554,2928,374],[3059,3064,1],[3066,3199,133],[3407,3449,42],[3841,3843,1],[3859,3861,2],[3862,3863,1],[3866,3871,1],[3892,3896,2],[4030,4037,1],[4039,4044,1],[4046,4047,1],[4053,4056,1],[4254,4255,1],[5008,5017,1],[5741,6464,723],[6622,6655,1],[7009,7018,1],[7028,7036,1],[8448,8449,1],[8451,8454,1],[8456,8457,1],[8468,8470,2],[8471,8478,7],[8479,8483,1],[8485,8489,2],[8494,8506,12],[8507,8522,15],[8524,8525,1],[8527,8586,59],[8587,8597,10],[8598,8601,1],[8604,8607,1],[8609,8610,1],[8612,8613,1],[8615,8621,1],[8623,8653,1],[8656,8657,1],[8659,8661,2],[8662,8691,1],[8960,8967,1],[8972,8991,1],[8994,9e3,1],[9003,9083,1],[9085,9114,1],[9140,9179,1],[9186,9254,1],[9280,9290,1],[9372,9449,1],[9472,9654,1],[9656,9664,1],[9666,9719,1],[9728,9838,1],[9840,10087,1],[10132,10175,1],[10240,10495,1],[11008,11055,1],[11077,11078,1],[11085,11123,1],[11126,11157,1],[11159,11263,1],[11493,11498,1],[11856,11857,1],[11904,11929,1],[11931,12019,1],[12032,12245,1],[12272,12287,1],[12292,12306,14],[12307,12320,13],[12342,12343,1],[12350,12351,1],[12688,12689,1],[12694,12703,1],[12736,12771,1],[12783,12800,17],[12801,12830,1],[12842,12871,1],[12880,12896,16],[12897,12927,1],[12938,12976,1],[12992,13311,1],[19904,19967,1],[42128,42182,1],[43048,43051,1],[43062,43063,1],[43065,43639,574],[43640,43641,1],[64832,64847,1],[64975,65021,46],[65022,65023,1],[65508,65512,4],[65517,65518,1],[65532,65533,1],[65847,65855,1],[65913,65929,1],[65932,65934,1],[65936,65948,1],[65952,66e3,48],[66001,66044,1],[67703,67704,1],[68296,71487,3191],[73685,73692,1],[73697,73713,1],[92988,92991,1],[92997,113820,20823],[118608,118723,1],[118784,119029,1],[119040,119078,1],[119081,119140,1],[119146,119148,1],[119171,119172,1],[119180,119209,1],[119214,119274,1],[119296,119361,1],[119365,119552,187],[119553,119638,1],[120832,121343,1],[121399,121402,1],[121453,121460,1],[121462,121475,1],[121477,121478,1],[123215,126124,2909],[126254,126976,722],[126977,127019,1],[127024,127123,1],[127136,127150,1],[127153,127167,1],[127169,127183,1],[127185,127221,1],[127245,127405,1],[127462,127490,1],[127504,127547,1],[127552,127560,1],[127568,127569,1],[127584,127589,1],[127744,127994,1],[128e3,128727,1],[128732,128748,1],[128752,128764,1],[128768,128886,1],[128891,128985,1],[128992,129003,1],[129008,129024,16],[129025,129035,1],[129040,129095,1],[129104,129113,1],[129120,129159,1],[129168,129197,1],[129200,129201,1],[129280,129619,1],[129632,129645,1],[129648,129660,1],[129664,129672,1],[129680,129725,1],[129727,129733,1],[129742,129755,1],[129760,129768,1],[129776,129784,1],[129792,129938,1],[129940,129994,1]]),(0,T.A)(N,"Z",[[32,160,128],[5760,8192,2432],[8193,8202,1],[8232,8233,1],[8239,8287,48],[12288,12288,1]]),(0,T.A)(N,"Zl",[[8232,8232,1]]),(0,T.A)(N,"Zp",[[8233,8233,1]]),(0,T.A)(N,"Zs",[[32,160,128],[5760,8192,2432],[8193,8202,1],[8239,8287,48],[12288,12288,1]]),(0,T.A)(N,"Adlam",[[125184,125259,1],[125264,125273,1],[125278,125279,1]]),(0,T.A)(N,"Ahom",[[71424,71450,1],[71453,71467,1],[71472,71494,1]]),(0,T.A)(N,"Anatolian_Hieroglyphs",[[82944,83526,1]]),(0,T.A)(N,"Arabic",[[1536,1540,1],[1542,1547,1],[1549,1562,1],[1564,1566,1],[1568,1599,1],[1601,1610,1],[1622,1647,1],[1649,1756,1],[1758,1791,1],[1872,1919,1],[2160,2190,1],[2192,2193,1],[2200,2273,1],[2275,2303,1],[64336,64450,1],[64467,64829,1],[64832,64911,1],[64914,64967,1],[64975,65008,33],[65009,65023,1],[65136,65140,1],[65142,65276,1],[69216,69246,1],[69373,69375,1],[126464,126467,1],[126469,126495,1],[126497,126498,1],[126500,126503,3],[126505,126514,1],[126516,126519,1],[126521,126523,2],[126530,126535,5],[126537,126541,2],[126542,126543,1],[126545,126546,1],[126548,126551,3],[126553,126561,2],[126562,126564,2],[126567,126570,1],[126572,126578,1],[126580,126583,1],[126585,126588,1],[126590,126592,2],[126593,126601,1],[126603,126619,1],[126625,126627,1],[126629,126633,1],[126635,126651,1],[126704,126705,1]]),(0,T.A)(N,"Armenian",[[1329,1366,1],[1369,1418,1],[1421,1423,1],[64275,64279,1]]),(0,T.A)(N,"Avestan",[[68352,68405,1],[68409,68415,1]]),(0,T.A)(N,"Balinese",[[6912,6988,1],[6992,7038,1]]),(0,T.A)(N,"Bamum",[[42656,42743,1],[92160,92728,1]]),(0,T.A)(N,"Bassa_Vah",[[92880,92909,1],[92912,92917,1]]),(0,T.A)(N,"Batak",[[7104,7155,1],[7164,7167,1]]),(0,T.A)(N,"Bengali",[[2432,2435,1],[2437,2444,1],[2447,2448,1],[2451,2472,1],[2474,2480,1],[2482,2486,4],[2487,2489,1],[2492,2500,1],[2503,2504,1],[2507,2510,1],[2519,2524,5],[2525,2527,2],[2528,2531,1],[2534,2558,1]]),(0,T.A)(N,"Bhaiksuki",[[72704,72712,1],[72714,72758,1],[72760,72773,1],[72784,72812,1]]),(0,T.A)(N,"Bopomofo",[[746,747,1],[12549,12591,1],[12704,12735,1]]),(0,T.A)(N,"Brahmi",[[69632,69709,1],[69714,69749,1],[69759,69759,1]]),(0,T.A)(N,"Braille",[[10240,10495,1]]),(0,T.A)(N,"Buginese",[[6656,6683,1],[6686,6687,1]]),(0,T.A)(N,"Buhid",[[5952,5971,1]]),(0,T.A)(N,"Canadian_Aboriginal",[[5120,5759,1],[6320,6389,1],[72368,72383,1]]),(0,T.A)(N,"Carian",[[66208,66256,1]]),(0,T.A)(N,"Caucasian_Albanian",[[66864,66915,1],[66927,66927,1]]),(0,T.A)(N,"Chakma",[[69888,69940,1],[69942,69959,1]]),(0,T.A)(N,"Cham",[[43520,43574,1],[43584,43597,1],[43600,43609,1],[43612,43615,1]]),(0,T.A)(N,"Cherokee",[[5024,5109,1],[5112,5117,1],[43888,43967,1]]),(0,T.A)(N,"Chorasmian",[[69552,69579,1]]),(0,T.A)(N,"Common",[[0,64,1],[91,96,1],[123,169,1],[171,185,1],[187,191,1],[215,247,32],[697,735,1],[741,745,1],[748,767,1],[884,894,10],[901,903,2],[1541,1548,7],[1563,1567,4],[1600,1757,157],[2274,2404,130],[2405,3647,1242],[4053,4056,1],[4347,5867,1520],[5868,5869,1],[5941,5942,1],[6146,6147,1],[6149,7379,1230],[7393,7401,8],[7402,7404,1],[7406,7411,1],[7413,7415,1],[7418,8192,774],[8193,8203,1],[8206,8292,1],[8294,8304,1],[8308,8318,1],[8320,8334,1],[8352,8384,1],[8448,8485,1],[8487,8489,1],[8492,8497,1],[8499,8525,1],[8527,8543,1],[8585,8587,1],[8592,9254,1],[9280,9290,1],[9312,10239,1],[10496,11123,1],[11126,11157,1],[11159,11263,1],[11776,11869,1],[12272,12292,1],[12294,12296,2],[12297,12320,1],[12336,12343,1],[12348,12351,1],[12443,12444,1],[12448,12539,91],[12540,12688,148],[12689,12703,1],[12736,12771,1],[12783,12832,49],[12833,12895,1],[12927,13007,1],[13055,13144,89],[13145,13311,1],[19904,19967,1],[42752,42785,1],[42888,42890,1],[43056,43065,1],[43310,43471,161],[43867,43882,15],[43883,64830,20947],[64831,65040,209],[65041,65049,1],[65072,65106,1],[65108,65126,1],[65128,65131,1],[65279,65281,2],[65282,65312,1],[65339,65344,1],[65371,65381,1],[65392,65438,46],[65439,65504,65],[65505,65510,1],[65512,65518,1],[65529,65533,1],[65792,65794,1],[65799,65843,1],[65847,65855,1],[65936,65948,1],[66e3,66044,1],[66273,66299,1],[113824,113827,1],[118608,118723,1],[118784,119029,1],[119040,119078,1],[119081,119142,1],[119146,119162,1],[119171,119172,1],[119180,119209,1],[119214,119274,1],[119488,119507,1],[119520,119539,1],[119552,119638,1],[119648,119672,1],[119808,119892,1],[119894,119964,1],[119966,119967,1],[119970,119973,3],[119974,119977,3],[119978,119980,1],[119982,119993,1],[119995,119997,2],[119998,120003,1],[120005,120069,1],[120071,120074,1],[120077,120084,1],[120086,120092,1],[120094,120121,1],[120123,120126,1],[120128,120132,1],[120134,120138,4],[120139,120144,1],[120146,120485,1],[120488,120779,1],[120782,120831,1],[126065,126132,1],[126209,126269,1],[126976,127019,1],[127024,127123,1],[127136,127150,1],[127153,127167,1],[127169,127183,1],[127185,127221,1],[127232,127405,1],[127462,127487,1],[127489,127490,1],[127504,127547,1],[127552,127560,1],[127568,127569,1],[127584,127589,1],[127744,128727,1],[128732,128748,1],[128752,128764,1],[128768,128886,1],[128891,128985,1],[128992,129003,1],[129008,129024,16],[129025,129035,1],[129040,129095,1],[129104,129113,1],[129120,129159,1],[129168,129197,1],[129200,129201,1],[129280,129619,1],[129632,129645,1],[129648,129660,1],[129664,129672,1],[129680,129725,1],[129727,129733,1],[129742,129755,1],[129760,129768,1],[129776,129784,1],[129792,129938,1],[129940,129994,1],[130032,130041,1],[917505,917536,31],[917537,917631,1]]),(0,T.A)(N,"foldCommon",[[924,956,32]]),(0,T.A)(N,"Coptic",[[994,1007,1],[11392,11507,1],[11513,11519,1]]),(0,T.A)(N,"Cuneiform",[[73728,74649,1],[74752,74862,1],[74864,74868,1],[74880,75075,1]]),(0,T.A)(N,"Cypriot",[[67584,67589,1],[67592,67594,2],[67595,67637,1],[67639,67640,1],[67644,67647,3]]),(0,T.A)(N,"Cypro_Minoan",[[77712,77810,1]]),(0,T.A)(N,"Cyrillic",[[1024,1156,1],[1159,1327,1],[7296,7304,1],[7467,7544,77],[11744,11775,1],[42560,42655,1],[65070,65071,1],[122928,122989,1],[123023,123023,1]]),(0,T.A)(N,"Deseret",[[66560,66639,1]]),(0,T.A)(N,"Devanagari",[[2304,2384,1],[2389,2403,1],[2406,2431,1],[43232,43263,1],[72448,72457,1]]),(0,T.A)(N,"Dives_Akuru",[[71936,71942,1],[71945,71948,3],[71949,71955,1],[71957,71958,1],[71960,71989,1],[71991,71992,1],[71995,72006,1],[72016,72025,1]]),(0,T.A)(N,"Dogra",[[71680,71739,1]]),(0,T.A)(N,"Duployan",[[113664,113770,1],[113776,113788,1],[113792,113800,1],[113808,113817,1],[113820,113823,1]]),(0,T.A)(N,"Egyptian_Hieroglyphs",[[77824,78933,1]]),(0,T.A)(N,"Elbasan",[[66816,66855,1]]),(0,T.A)(N,"Elymaic",[[69600,69622,1]]),(0,T.A)(N,"Ethiopic",[[4608,4680,1],[4682,4685,1],[4688,4694,1],[4696,4698,2],[4699,4701,1],[4704,4744,1],[4746,4749,1],[4752,4784,1],[4786,4789,1],[4792,4798,1],[4800,4802,2],[4803,4805,1],[4808,4822,1],[4824,4880,1],[4882,4885,1],[4888,4954,1],[4957,4988,1],[4992,5017,1],[11648,11670,1],[11680,11686,1],[11688,11694,1],[11696,11702,1],[11704,11710,1],[11712,11718,1],[11720,11726,1],[11728,11734,1],[11736,11742,1],[43777,43782,1],[43785,43790,1],[43793,43798,1],[43808,43814,1],[43816,43822,1],[124896,124902,1],[124904,124907,1],[124909,124910,1],[124912,124926,1]]),(0,T.A)(N,"Georgian",[[4256,4293,1],[4295,4301,6],[4304,4346,1],[4348,4351,1],[7312,7354,1],[7357,7359,1],[11520,11557,1],[11559,11565,6]]),(0,T.A)(N,"Glagolitic",[[11264,11359,1],[122880,122886,1],[122888,122904,1],[122907,122913,1],[122915,122916,1],[122918,122922,1]]),(0,T.A)(N,"Gothic",[[66352,66378,1]]),(0,T.A)(N,"Grantha",[[70400,70403,1],[70405,70412,1],[70415,70416,1],[70419,70440,1],[70442,70448,1],[70450,70451,1],[70453,70457,1],[70460,70468,1],[70471,70472,1],[70475,70477,1],[70480,70487,7],[70493,70499,1],[70502,70508,1],[70512,70516,1]]),(0,T.A)(N,"Greek",[[880,883,1],[885,887,1],[890,893,1],[895,900,5],[902,904,2],[905,906,1],[908,910,2],[911,929,1],[931,993,1],[1008,1023,1],[7462,7466,1],[7517,7521,1],[7526,7530,1],[7615,7936,321],[7937,7957,1],[7960,7965,1],[7968,8005,1],[8008,8013,1],[8016,8023,1],[8025,8031,2],[8032,8061,1],[8064,8116,1],[8118,8132,1],[8134,8147,1],[8150,8155,1],[8157,8175,1],[8178,8180,1],[8182,8190,1],[8486,43877,35391],[65856,65934,1],[65952,119296,53344],[119297,119365,1]]),(0,T.A)(N,"foldGreek",[[181,837,656]]),(0,T.A)(N,"Gujarati",[[2689,2691,1],[2693,2701,1],[2703,2705,1],[2707,2728,1],[2730,2736,1],[2738,2739,1],[2741,2745,1],[2748,2757,1],[2759,2761,1],[2763,2765,1],[2768,2784,16],[2785,2787,1],[2790,2801,1],[2809,2815,1]]),(0,T.A)(N,"Gunjala_Gondi",[[73056,73061,1],[73063,73064,1],[73066,73102,1],[73104,73105,1],[73107,73112,1],[73120,73129,1]]),(0,T.A)(N,"Gurmukhi",[[2561,2563,1],[2565,2570,1],[2575,2576,1],[2579,2600,1],[2602,2608,1],[2610,2611,1],[2613,2614,1],[2616,2617,1],[2620,2622,2],[2623,2626,1],[2631,2632,1],[2635,2637,1],[2641,2649,8],[2650,2652,1],[2654,2662,8],[2663,2678,1]]),(0,T.A)(N,"Han",[[11904,11929,1],[11931,12019,1],[12032,12245,1],[12293,12295,2],[12321,12329,1],[12344,12347,1],[13312,19903,1],[19968,40959,1],[63744,64109,1],[64112,64217,1],[94178,94179,1],[94192,94193,1],[131072,173791,1],[173824,177977,1],[177984,178205,1],[178208,183969,1],[183984,191456,1],[191472,192093,1],[194560,195101,1],[196608,201546,1],[201552,205743,1]]),(0,T.A)(N,"Hangul",[[4352,4607,1],[12334,12335,1],[12593,12686,1],[12800,12830,1],[12896,12926,1],[43360,43388,1],[44032,55203,1],[55216,55238,1],[55243,55291,1],[65440,65470,1],[65474,65479,1],[65482,65487,1],[65490,65495,1],[65498,65500,1]]),(0,T.A)(N,"Hanifi_Rohingya",[[68864,68903,1],[68912,68921,1]]),(0,T.A)(N,"Hanunoo",[[5920,5940,1]]),(0,T.A)(N,"Hatran",[[67808,67826,1],[67828,67829,1],[67835,67839,1]]),(0,T.A)(N,"Hebrew",[[1425,1479,1],[1488,1514,1],[1519,1524,1],[64285,64310,1],[64312,64316,1],[64318,64320,2],[64321,64323,2],[64324,64326,2],[64327,64335,1]]),(0,T.A)(N,"Hiragana",[[12353,12438,1],[12445,12447,1],[110593,110879,1],[110898,110928,30],[110929,110930,1],[127488,127488,1]]),(0,T.A)(N,"Imperial_Aramaic",[[67648,67669,1],[67671,67679,1]]),(0,T.A)(N,"Inherited",[[768,879,1],[1157,1158,1],[1611,1621,1],[1648,2385,737],[2386,2388,1],[6832,6862,1],[7376,7378,1],[7380,7392,1],[7394,7400,1],[7405,7412,7],[7416,7417,1],[7616,7679,1],[8204,8205,1],[8400,8432,1],[12330,12333,1],[12441,12442,1],[65024,65039,1],[65056,65069,1],[66045,66272,227],[70459,118528,48069],[118529,118573,1],[118576,118598,1],[119143,119145,1],[119163,119170,1],[119173,119179,1],[119210,119213,1],[917760,917999,1]]),(0,T.A)(N,"foldInherited",[[921,953,32],[8126,8126,1]]),(0,T.A)(N,"Inscriptional_Pahlavi",[[68448,68466,1],[68472,68479,1]]),(0,T.A)(N,"Inscriptional_Parthian",[[68416,68437,1],[68440,68447,1]]),(0,T.A)(N,"Javanese",[[43392,43469,1],[43472,43481,1],[43486,43487,1]]),(0,T.A)(N,"Kaithi",[[69760,69826,1],[69837,69837,1]]),(0,T.A)(N,"Kannada",[[3200,3212,1],[3214,3216,1],[3218,3240,1],[3242,3251,1],[3253,3257,1],[3260,3268,1],[3270,3272,1],[3274,3277,1],[3285,3286,1],[3293,3294,1],[3296,3299,1],[3302,3311,1],[3313,3315,1]]),(0,T.A)(N,"Katakana",[[12449,12538,1],[12541,12543,1],[12784,12799,1],[13008,13054,1],[13056,13143,1],[65382,65391,1],[65393,65437,1],[110576,110579,1],[110581,110587,1],[110589,110590,1],[110592,110880,288],[110881,110882,1],[110933,110948,15],[110949,110951,1]]),(0,T.A)(N,"Kawi",[[73472,73488,1],[73490,73530,1],[73534,73561,1]]),(0,T.A)(N,"Kayah_Li",[[43264,43309,1],[43311,43311,1]]),(0,T.A)(N,"Kharoshthi",[[68096,68099,1],[68101,68102,1],[68108,68115,1],[68117,68119,1],[68121,68149,1],[68152,68154,1],[68159,68168,1],[68176,68184,1]]),(0,T.A)(N,"Khitan_Small_Script",[[94180,101120,6940],[101121,101589,1]]),(0,T.A)(N,"Khmer",[[6016,6109,1],[6112,6121,1],[6128,6137,1],[6624,6655,1]]),(0,T.A)(N,"Khojki",[[70144,70161,1],[70163,70209,1]]),(0,T.A)(N,"Khudawadi",[[70320,70378,1],[70384,70393,1]]),(0,T.A)(N,"Lao",[[3713,3714,1],[3716,3718,2],[3719,3722,1],[3724,3747,1],[3749,3751,2],[3752,3773,1],[3776,3780,1],[3782,3784,2],[3785,3790,1],[3792,3801,1],[3804,3807,1]]),(0,T.A)(N,"Latin",[[65,90,1],[97,122,1],[170,186,16],[192,214,1],[216,246,1],[248,696,1],[736,740,1],[7424,7461,1],[7468,7516,1],[7522,7525,1],[7531,7543,1],[7545,7614,1],[7680,7935,1],[8305,8319,14],[8336,8348,1],[8490,8491,1],[8498,8526,28],[8544,8584,1],[11360,11391,1],[42786,42887,1],[42891,42954,1],[42960,42961,1],[42963,42965,2],[42966,42969,1],[42994,43007,1],[43824,43866,1],[43868,43876,1],[43878,43881,1],[64256,64262,1],[65313,65338,1],[65345,65370,1],[67456,67461,1],[67463,67504,1],[67506,67514,1],[122624,122654,1],[122661,122666,1]]),(0,T.A)(N,"Lepcha",[[7168,7223,1],[7227,7241,1],[7245,7247,1]]),(0,T.A)(N,"Limbu",[[6400,6430,1],[6432,6443,1],[6448,6459,1],[6464,6468,4],[6469,6479,1]]),(0,T.A)(N,"Linear_A",[[67072,67382,1],[67392,67413,1],[67424,67431,1]]),(0,T.A)(N,"Linear_B",[[65536,65547,1],[65549,65574,1],[65576,65594,1],[65596,65597,1],[65599,65613,1],[65616,65629,1],[65664,65786,1]]),(0,T.A)(N,"Lisu",[[42192,42239,1],[73648,73648,1]]),(0,T.A)(N,"Lycian",[[66176,66204,1]]),(0,T.A)(N,"Lydian",[[67872,67897,1],[67903,67903,1]]),(0,T.A)(N,"Mahajani",[[69968,70006,1]]),(0,T.A)(N,"Makasar",[[73440,73464,1]]),(0,T.A)(N,"Malayalam",[[3328,3340,1],[3342,3344,1],[3346,3396,1],[3398,3400,1],[3402,3407,1],[3412,3427,1],[3430,3455,1]]),(0,T.A)(N,"Mandaic",[[2112,2139,1],[2142,2142,1]]),(0,T.A)(N,"Manichaean",[[68288,68326,1],[68331,68342,1]]),(0,T.A)(N,"Marchen",[[72816,72847,1],[72850,72871,1],[72873,72886,1]]),(0,T.A)(N,"Masaram_Gondi",[[72960,72966,1],[72968,72969,1],[72971,73014,1],[73018,73020,2],[73021,73023,2],[73024,73031,1],[73040,73049,1]]),(0,T.A)(N,"Medefaidrin",[[93760,93850,1]]),(0,T.A)(N,"Meetei_Mayek",[[43744,43766,1],[43968,44013,1],[44016,44025,1]]),(0,T.A)(N,"Mende_Kikakui",[[124928,125124,1],[125127,125142,1]]),(0,T.A)(N,"Meroitic_Cursive",[[68e3,68023,1],[68028,68047,1],[68050,68095,1]]),(0,T.A)(N,"Meroitic_Hieroglyphs",[[67968,67999,1]]),(0,T.A)(N,"Miao",[[93952,94026,1],[94031,94087,1],[94095,94111,1]]),(0,T.A)(N,"Modi",[[71168,71236,1],[71248,71257,1]]),(0,T.A)(N,"Mongolian",[[6144,6145,1],[6148,6150,2],[6151,6169,1],[6176,6264,1],[6272,6314,1],[71264,71276,1]]),(0,T.A)(N,"Mro",[[92736,92766,1],[92768,92777,1],[92782,92783,1]]),(0,T.A)(N,"Multani",[[70272,70278,1],[70280,70282,2],[70283,70285,1],[70287,70301,1],[70303,70313,1]]),(0,T.A)(N,"Myanmar",[[4096,4255,1],[43488,43518,1],[43616,43647,1]]),(0,T.A)(N,"Nabataean",[[67712,67742,1],[67751,67759,1]]),(0,T.A)(N,"Nag_Mundari",[[124112,124153,1]]),(0,T.A)(N,"Nandinagari",[[72096,72103,1],[72106,72151,1],[72154,72164,1]]),(0,T.A)(N,"New_Tai_Lue",[[6528,6571,1],[6576,6601,1],[6608,6618,1],[6622,6623,1]]),(0,T.A)(N,"Newa",[[70656,70747,1],[70749,70753,1]]),(0,T.A)(N,"Nko",[[1984,2042,1],[2045,2047,1]]),(0,T.A)(N,"Nushu",[[94177,110960,16783],[110961,111355,1]]),(0,T.A)(N,"Nyiakeng_Puachue_Hmong",[[123136,123180,1],[123184,123197,1],[123200,123209,1],[123214,123215,1]]),(0,T.A)(N,"Ogham",[[5760,5788,1]]),(0,T.A)(N,"Ol_Chiki",[[7248,7295,1]]),(0,T.A)(N,"Old_Hungarian",[[68736,68786,1],[68800,68850,1],[68858,68863,1]]),(0,T.A)(N,"Old_Italic",[[66304,66339,1],[66349,66351,1]]),(0,T.A)(N,"Old_North_Arabian",[[68224,68255,1]]),(0,T.A)(N,"Old_Permic",[[66384,66426,1]]),(0,T.A)(N,"Old_Persian",[[66464,66499,1],[66504,66517,1]]),(0,T.A)(N,"Old_Sogdian",[[69376,69415,1]]),(0,T.A)(N,"Old_South_Arabian",[[68192,68223,1]]),(0,T.A)(N,"Old_Turkic",[[68608,68680,1]]),(0,T.A)(N,"Old_Uyghur",[[69488,69513,1]]),(0,T.A)(N,"Oriya",[[2817,2819,1],[2821,2828,1],[2831,2832,1],[2835,2856,1],[2858,2864,1],[2866,2867,1],[2869,2873,1],[2876,2884,1],[2887,2888,1],[2891,2893,1],[2901,2903,1],[2908,2909,1],[2911,2915,1],[2918,2935,1]]),(0,T.A)(N,"Osage",[[66736,66771,1],[66776,66811,1]]),(0,T.A)(N,"Osmanya",[[66688,66717,1],[66720,66729,1]]),(0,T.A)(N,"Pahawh_Hmong",[[92928,92997,1],[93008,93017,1],[93019,93025,1],[93027,93047,1],[93053,93071,1]]),(0,T.A)(N,"Palmyrene",[[67680,67711,1]]),(0,T.A)(N,"Pau_Cin_Hau",[[72384,72440,1]]),(0,T.A)(N,"Phags_Pa",[[43072,43127,1]]),(0,T.A)(N,"Phoenician",[[67840,67867,1],[67871,67871,1]]),(0,T.A)(N,"Psalter_Pahlavi",[[68480,68497,1],[68505,68508,1],[68521,68527,1]]),(0,T.A)(N,"Rejang",[[43312,43347,1],[43359,43359,1]]),(0,T.A)(N,"Runic",[[5792,5866,1],[5870,5880,1]]),(0,T.A)(N,"Samaritan",[[2048,2093,1],[2096,2110,1]]),(0,T.A)(N,"Saurashtra",[[43136,43205,1],[43214,43225,1]]),(0,T.A)(N,"Sharada",[[70016,70111,1]]),(0,T.A)(N,"Shavian",[[66640,66687,1]]),(0,T.A)(N,"Siddham",[[71040,71093,1],[71096,71133,1]]),(0,T.A)(N,"SignWriting",[[120832,121483,1],[121499,121503,1],[121505,121519,1]]),(0,T.A)(N,"Sinhala",[[3457,3459,1],[3461,3478,1],[3482,3505,1],[3507,3515,1],[3517,3520,3],[3521,3526,1],[3530,3535,5],[3536,3540,1],[3542,3544,2],[3545,3551,1],[3558,3567,1],[3570,3572,1],[70113,70132,1]]),(0,T.A)(N,"Sogdian",[[69424,69465,1]]),(0,T.A)(N,"Sora_Sompeng",[[69840,69864,1],[69872,69881,1]]),(0,T.A)(N,"Soyombo",[[72272,72354,1]]),(0,T.A)(N,"Sundanese",[[7040,7103,1],[7360,7367,1]]),(0,T.A)(N,"Syloti_Nagri",[[43008,43052,1]]),(0,T.A)(N,"Syriac",[[1792,1805,1],[1807,1866,1],[1869,1871,1],[2144,2154,1]]),(0,T.A)(N,"Tagalog",[[5888,5909,1],[5919,5919,1]]),(0,T.A)(N,"Tagbanwa",[[5984,5996,1],[5998,6e3,1],[6002,6003,1]]),(0,T.A)(N,"Tai_Le",[[6480,6509,1],[6512,6516,1]]),(0,T.A)(N,"Tai_Tham",[[6688,6750,1],[6752,6780,1],[6783,6793,1],[6800,6809,1],[6816,6829,1]]),(0,T.A)(N,"Tai_Viet",[[43648,43714,1],[43739,43743,1]]),(0,T.A)(N,"Takri",[[71296,71353,1],[71360,71369,1]]),(0,T.A)(N,"Tamil",[[2946,2947,1],[2949,2954,1],[2958,2960,1],[2962,2965,1],[2969,2970,1],[2972,2974,2],[2975,2979,4],[2980,2984,4],[2985,2986,1],[2990,3001,1],[3006,3010,1],[3014,3016,1],[3018,3021,1],[3024,3031,7],[3046,3066,1],[73664,73713,1],[73727,73727,1]]),(0,T.A)(N,"Tangsa",[[92784,92862,1],[92864,92873,1]]),(0,T.A)(N,"Tangut",[[94176,94208,32],[94209,100343,1],[100352,101119,1],[101632,101640,1]]),(0,T.A)(N,"Telugu",[[3072,3084,1],[3086,3088,1],[3090,3112,1],[3114,3129,1],[3132,3140,1],[3142,3144,1],[3146,3149,1],[3157,3158,1],[3160,3162,1],[3165,3168,3],[3169,3171,1],[3174,3183,1],[3191,3199,1]]),(0,T.A)(N,"Thaana",[[1920,1969,1]]),(0,T.A)(N,"Thai",[[3585,3642,1],[3648,3675,1]]),(0,T.A)(N,"Tibetan",[[3840,3911,1],[3913,3948,1],[3953,3991,1],[3993,4028,1],[4030,4044,1],[4046,4052,1],[4057,4058,1]]),(0,T.A)(N,"Tifinagh",[[11568,11623,1],[11631,11632,1],[11647,11647,1]]),(0,T.A)(N,"Tirhuta",[[70784,70855,1],[70864,70873,1]]),(0,T.A)(N,"Toto",[[123536,123566,1]]),(0,T.A)(N,"Ugaritic",[[66432,66461,1],[66463,66463,1]]),(0,T.A)(N,"Vai",[[42240,42539,1]]),(0,T.A)(N,"Vithkuqi",[[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1]]),(0,T.A)(N,"Wancho",[[123584,123641,1],[123647,123647,1]]),(0,T.A)(N,"Warang_Citi",[[71840,71922,1],[71935,71935,1]]),(0,T.A)(N,"Yezidi",[[69248,69289,1],[69291,69293,1],[69296,69297,1]]),(0,T.A)(N,"Yi",[[40960,42124,1],[42128,42182,1]]),(0,T.A)(N,"Zanabazar_Square",[[72192,72263,1]]),(0,T.A)(N,"CATEGORIES",new Map([["C",C.C],["Cc",C.Cc],["Cf",C.Cf],["Co",C.Co],["Cs",C.Cs],["L",C.L],["Ll",C.Ll],["Lm",C.Lm],["Lo",C.Lo],["Lt",C.Lt],["Lu",C.Lu],["M",C.M],["Mc",C.Mc],["Me",C.Me],["Mn",C.Mn],["N",C.N],["Nd",C.Nd],["Nl",C.Nl],["No",C.No],["P",C.P],["Pc",C.Pc],["Pd",C.Pd],["Pe",C.Pe],["Pf",C.Pf],["Pi",C.Pi],["Po",C.Po],["Ps",C.Ps],["S",C.S],["Sc",C.Sc],["Sk",C.Sk],["Sm",C.Sm],["So",C.So],["Z",C.Z],["Zl",C.Zl],["Zp",C.Zp],["Zs",C.Zs]])),(0,T.A)(N,"SCRIPTS",new Map([["Adlam",C.Adlam],["Ahom",C.Ahom],["Anatolian_Hieroglyphs",C.Anatolian_Hieroglyphs],["Arabic",C.Arabic],["Armenian",C.Armenian],["Avestan",C.Avestan],["Balinese",C.Balinese],["Bamum",C.Bamum],["Bassa_Vah",C.Bassa_Vah],["Batak",C.Batak],["Bengali",C.Bengali],["Bhaiksuki",C.Bhaiksuki],["Bopomofo",C.Bopomofo],["Brahmi",C.Brahmi],["Braille",C.Braille],["Buginese",C.Buginese],["Buhid",C.Buhid],["Canadian_Aboriginal",C.Canadian_Aboriginal],["Carian",C.Carian],["Caucasian_Albanian",C.Caucasian_Albanian],["Chakma",C.Chakma],["Cham",C.Cham],["Cherokee",C.Cherokee],["Chorasmian",C.Chorasmian],["Common",C.Common],["Coptic",C.Coptic],["Cuneiform",C.Cuneiform],["Cypriot",C.Cypriot],["Cypro_Minoan",C.Cypro_Minoan],["Cyrillic",C.Cyrillic],["Deseret",C.Deseret],["Devanagari",C.Devanagari],["Dives_Akuru",C.Dives_Akuru],["Dogra",C.Dogra],["Duployan",C.Duployan],["Egyptian_Hieroglyphs",C.Egyptian_Hieroglyphs],["Elbasan",C.Elbasan],["Elymaic",C.Elymaic],["Ethiopic",C.Ethiopic],["Georgian",C.Georgian],["Glagolitic",C.Glagolitic],["Gothic",C.Gothic],["Grantha",C.Grantha],["Greek",C.Greek],["Gujarati",C.Gujarati],["Gunjala_Gondi",C.Gunjala_Gondi],["Gurmukhi",C.Gurmukhi],["Han",C.Han],["Hangul",C.Hangul],["Hanifi_Rohingya",C.Hanifi_Rohingya],["Hanunoo",C.Hanunoo],["Hatran",C.Hatran],["Hebrew",C.Hebrew],["Hiragana",C.Hiragana],["Imperial_Aramaic",C.Imperial_Aramaic],["Inherited",C.Inherited],["Inscriptional_Pahlavi",C.Inscriptional_Pahlavi],["Inscriptional_Parthian",C.Inscriptional_Parthian],["Javanese",C.Javanese],["Kaithi",C.Kaithi],["Kannada",C.Kannada],["Katakana",C.Katakana],["Kawi",C.Kawi],["Kayah_Li",C.Kayah_Li],["Kharoshthi",C.Kharoshthi],["Khitan_Small_Script",C.Khitan_Small_Script],["Khmer",C.Khmer],["Khojki",C.Khojki],["Khudawadi",C.Khudawadi],["Lao",C.Lao],["Latin",C.Latin],["Lepcha",C.Lepcha],["Limbu",C.Limbu],["Linear_A",C.Linear_A],["Linear_B",C.Linear_B],["Lisu",C.Lisu],["Lycian",C.Lycian],["Lydian",C.Lydian],["Mahajani",C.Mahajani],["Makasar",C.Makasar],["Malayalam",C.Malayalam],["Mandaic",C.Mandaic],["Manichaean",C.Manichaean],["Marchen",C.Marchen],["Masaram_Gondi",C.Masaram_Gondi],["Medefaidrin",C.Medefaidrin],["Meetei_Mayek",C.Meetei_Mayek],["Mende_Kikakui",C.Mende_Kikakui],["Meroitic_Cursive",C.Meroitic_Cursive],["Meroitic_Hieroglyphs",C.Meroitic_Hieroglyphs],["Miao",C.Miao],["Modi",C.Modi],["Mongolian",C.Mongolian],["Mro",C.Mro],["Multani",C.Multani],["Myanmar",C.Myanmar],["Nabataean",C.Nabataean],["Nag_Mundari",C.Nag_Mundari],["Nandinagari",C.Nandinagari],["New_Tai_Lue",C.New_Tai_Lue],["Newa",C.Newa],["Nko",C.Nko],["Nushu",C.Nushu],["Nyiakeng_Puachue_Hmong",C.Nyiakeng_Puachue_Hmong],["Ogham",C.Ogham],["Ol_Chiki",C.Ol_Chiki],["Old_Hungarian",C.Old_Hungarian],["Old_Italic",C.Old_Italic],["Old_North_Arabian",C.Old_North_Arabian],["Old_Permic",C.Old_Permic],["Old_Persian",C.Old_Persian],["Old_Sogdian",C.Old_Sogdian],["Old_South_Arabian",C.Old_South_Arabian],["Old_Turkic",C.Old_Turkic],["Old_Uyghur",C.Old_Uyghur],["Oriya",C.Oriya],["Osage",C.Osage],["Osmanya",C.Osmanya],["Pahawh_Hmong",C.Pahawh_Hmong],["Palmyrene",C.Palmyrene],["Pau_Cin_Hau",C.Pau_Cin_Hau],["Phags_Pa",C.Phags_Pa],["Phoenician",C.Phoenician],["Psalter_Pahlavi",C.Psalter_Pahlavi],["Rejang",C.Rejang],["Runic",C.Runic],["Samaritan",C.Samaritan],["Saurashtra",C.Saurashtra],["Sharada",C.Sharada],["Shavian",C.Shavian],["Siddham",C.Siddham],["SignWriting",C.SignWriting],["Sinhala",C.Sinhala],["Sogdian",C.Sogdian],["Sora_Sompeng",C.Sora_Sompeng],["Soyombo",C.Soyombo],["Sundanese",C.Sundanese],["Syloti_Nagri",C.Syloti_Nagri],["Syriac",C.Syriac],["Tagalog",C.Tagalog],["Tagbanwa",C.Tagbanwa],["Tai_Le",C.Tai_Le],["Tai_Tham",C.Tai_Tham],["Tai_Viet",C.Tai_Viet],["Takri",C.Takri],["Tamil",C.Tamil],["Tangsa",C.Tangsa],["Tangut",C.Tangut],["Telugu",C.Telugu],["Thaana",C.Thaana],["Thai",C.Thai],["Tibetan",C.Tibetan],["Tifinagh",C.Tifinagh],["Tirhuta",C.Tirhuta],["Toto",C.Toto],["Ugaritic",C.Ugaritic],["Vai",C.Vai],["Vithkuqi",C.Vithkuqi],["Wancho",C.Wancho],["Warang_Citi",C.Warang_Citi],["Yezidi",C.Yezidi],["Yi",C.Yi],["Zanabazar_Square",C.Zanabazar_Square]])),(0,T.A)(N,"FOLD_CATEGORIES",new Map([["L",C.foldL],["Ll",C.foldLl],["Lt",C.foldLt],["Lu",C.foldLu],["M",C.foldM],["Mn",C.foldMn]])),(0,T.A)(N,"FOLD_SCRIPT",new Map([["Common",C.foldCommon],["Greek",C.foldGreek],["Inherited",C.foldInherited]]));class I{static is32(e,t){let n=0,r=e.length;for(;n<r;){let i=n+Math.floor((r-n)/2),s=e[i];if(s[0]<=t&&t<=s[1])return(t-s[0])%s[2]===0;t<s[0]?r=i:n=i+1}return!1}static is(e,t){if(t<=this.MAX_LATIN1){for(let n of e)if(!(t>n[1]))return!(t<n[0])&&(t-n[0])%n[2]===0;return!1}return e.length>0&&t>=e[0][0]&&this.is32(e,t)}static isUpper(e){if(e<=this.MAX_LATIN1){const t=String.fromCodePoint(e);return t.toUpperCase()===t&&t.toLowerCase()!==t}return this.is(N.Upper,e)}static isPrint(e){return e<=this.MAX_LATIN1?e>=32&&e<127||e>=161&&173!==e:this.is(N.L,e)||this.is(N.M,e)||this.is(N.N,e)||this.is(N.P,e)||this.is(N.S,e)}static simpleFold(e){if(N.CASE_ORBIT.has(e))return N.CASE_ORBIT.get(e);const t=x.toLowerCase(e);return t!==e?t:x.toUpperCase(e)}static equalsIgnoreCase(e,t){if(e<0||t<0||e===t)return!0;if(e<=this.MAX_ASCII&&t<=this.MAX_ASCII)return x.CODES.get("A")<=e&&e<=x.CODES.get("Z")&&(e|=32),x.CODES.get("A")<=t&&t<=x.CODES.get("Z")&&(t|=32),e===t;for(let n=this.simpleFold(e);n!==e;n=this.simpleFold(n))if(n===t)return!0;return!1}}(0,T.A)(I,"MAX_RUNE",1114111),(0,T.A)(I,"MAX_ASCII",127),(0,T.A)(I,"MAX_LATIN1",255),(0,T.A)(I,"MAX_BMP",65535),(0,T.A)(I,"MIN_FOLD",65),(0,T.A)(I,"MAX_FOLD",125251);class O{static emptyInts(){return[]}static isalnum(e){return x.CODES.get("0")<=e&&e<=x.CODES.get("9")||x.CODES.get("a")<=e&&e<=x.CODES.get("z")||x.CODES.get("A")<=e&&e<=x.CODES.get("Z")}static unhex(e){return x.CODES.get("0")<=e&&e<=x.CODES.get("9")?e-x.CODES.get("0"):x.CODES.get("a")<=e&&e<=x.CODES.get("f")?e-x.CODES.get("a")+10:x.CODES.get("A")<=e&&e<=x.CODES.get("F")?e-x.CODES.get("A")+10:-1}static escapeRune(e){let t="";if(I.isPrint(e))this.METACHARACTERS.indexOf(String.fromCodePoint(e))>=0&&(t+="\\"),t+=String.fromCodePoint(e);else switch(e){case x.CODES.get('"'):t+='\\"';break;case x.CODES.get("\\"):t+="\\\\";break;case x.CODES.get("\t"):t+="\\t";break;case x.CODES.get("\n"):t+="\\n";break;case x.CODES.get("\r"):t+="\\r";break;case x.CODES.get("\b"):t+="\\b";break;case x.CODES.get("\f"):t+="\\f";break;default:{let n=e.toString(16);e<256?(t+="\\x",1===n.length&&(t+="0"),t+=n):t+="\\x{".concat(n,"}");break}}return t}static stringToRunes(e){return String(e).split("").map(e=>e.codePointAt(0))}static runeToString(e){return String.fromCodePoint(e)}static isWordRune(e){return x.CODES.get("a")<=e&&e<=x.CODES.get("z")||x.CODES.get("A")<=e&&e<=x.CODES.get("Z")||x.CODES.get("0")<=e&&e<=x.CODES.get("9")||e===x.CODES.get("_")}static emptyOpContext(e,t){let n=0;return e<0&&(n|=this.EMPTY_BEGIN_TEXT|this.EMPTY_BEGIN_LINE),e===x.CODES.get("\n")&&(n|=this.EMPTY_BEGIN_LINE),t<0&&(n|=this.EMPTY_END_TEXT|this.EMPTY_END_LINE),t===x.CODES.get("\n")&&(n|=this.EMPTY_END_LINE),this.isWordRune(e)!==this.isWordRune(t)?n|=this.EMPTY_WORD_BOUNDARY:n|=this.EMPTY_NO_WORD_BOUNDARY,n}static quoteMeta(e){return e.split("").map(e=>this.METACHARACTERS.indexOf(e)>=0?"\\".concat(e):e).join("")}static charCount(e){return e>I.MAX_BMP?2:1}static stringToUtf8ByteArray(e){if(globalThis.TextEncoder)return Array.from((new TextEncoder).encode(e));{let t=[],n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t}}static utf8ByteArrayToString(e){if(globalThis.TextDecoder)return new TextDecoder("utf-8").decode(new Uint8Array(e));{let t=[],n=0,r=0;for(;n<e.length;){let i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){let s=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){let s=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(s>>10)),t[r++]=String.fromCharCode(56320+(1023&s))}else{let s=e[n++],a=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&a)}}return t.join("")}}}(0,T.A)(O,"METACHARACTERS","\\.+*?()|[]{}^$"),(0,T.A)(O,"EMPTY_BEGIN_LINE",1),(0,T.A)(O,"EMPTY_END_LINE",2),(0,T.A)(O,"EMPTY_BEGIN_TEXT",4),(0,T.A)(O,"EMPTY_END_TEXT",8),(0,T.A)(O,"EMPTY_WORD_BOUNDARY",16),(0,T.A)(O,"EMPTY_NO_WORD_BOUNDARY",32),(0,T.A)(O,"EMPTY_ALL",-1);const R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n={};for(let r=0;r<e.length;r++){const i=e[r],s=t+r;n[i]=s,n[s]=i}return Object.freeze(n)};class P{getEncoding(){throw Error("not implemented")}isUTF8Encoding(){return this.getEncoding()===P.Encoding.UTF_8}isUTF16Encoding(){return this.getEncoding()===P.Encoding.UTF_16}}(0,T.A)(P,"Encoding",R(["UTF_16","UTF_8"]));class D extends P{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;super(),this.bytes=e}getEncoding(){return P.Encoding.UTF_8}asCharSequence(){return O.utf8ByteArrayToString(this.bytes)}asBytes(){return this.bytes}length(){return this.bytes.length}}class L extends P{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;super(),this.charSequence=e}getEncoding(){return P.Encoding.UTF_16}asCharSequence(){return this.charSequence}asBytes(){return this.charSequence.toString().split("").map(e=>e.codePointAt(0))}length(){return this.charSequence.length}}class M{static utf16(e){return new L(e)}static utf8(e){return Array.isArray(e)?new D(e):new D(O.stringToUtf8ByteArray(e))}}class U extends Error{constructor(e){super(e),this.name="RE2JSException"}}class V extends U{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n="error parsing regexp: ".concat(e);t&&(n+=": `".concat(t,"`")),super(n),this.name="RE2JSSyntaxException",this.message=n,this.error=e,this.input=t}getDescription(){return this.error}getPattern(){return this.input}}class F extends U{constructor(e){super(e),this.name="RE2JSCompileException"}}class j extends U{constructor(e){super(e),this.name="RE2JSGroupException"}}class z extends U{constructor(e){super(e),this.name="RE2JSFlagsException"}}class B{static quoteReplacement(e){return e.indexOf("\\")<0&&e.indexOf("$")<0?e:e.split("").map(e=>{const t=e.codePointAt(0);return t===x.CODES["\\"]||t===x.CODES.$?"\\".concat(e):e}).join("")}constructor(e,t){if(null===e)throw new Error("pattern is null");this.patternInput=e;const n=this.patternInput.re2();this.patternGroupCount=n.numberOfCapturingGroups(),this.groups=[],this.namedGroups=n.namedGroups,t instanceof P?this.resetMatcherInput(t):Array.isArray(t)?this.resetMatcherInput(M.utf8(t)):this.resetMatcherInput(M.utf16(t))}pattern(){return this.patternInput}reset(){return this.matcherInputLength=this.matcherInput.length(),this.appendPos=0,this.hasMatch=!1,this.hasGroups=!1,this.anchorFlag=0,this}resetMatcherInput(e){if(null===e)throw new Error("input is null");return this.matcherInput=e,this.reset(),this}start(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("string"===typeof e){const t=this.namedGroups[e];if(!Number.isFinite(t))throw new j("group '".concat(e,"' not found"));e=t}return this.loadGroup(e),this.groups[2*e]}end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("string"===typeof e){const t=this.namedGroups[e];if(!Number.isFinite(t))throw new j("group '".concat(e,"' not found"));e=t}return this.loadGroup(e),this.groups[2*e+1]}group(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("string"===typeof e){const t=this.namedGroups[e];if(!Number.isFinite(t))throw new j("group '".concat(e,"' not found"));e=t}const t=this.start(e),n=this.end(e);return t<0&&n<0?null:this.substring(t,n)}groupCount(){return this.patternGroupCount}loadGroup(e){if(e<0||e>this.patternGroupCount)throw new j("Group index out of bounds: ".concat(e));if(!this.hasMatch)throw new j("perhaps no match attempted");if(0===e||this.hasGroups)return;let t=this.groups[1]+1;t>this.matcherInputLength&&(t=this.matcherInputLength);const n=this.patternInput.re2().matchMachineInput(this.matcherInput,this.groups[0],t,this.anchorFlag,1+this.patternGroupCount);if(!n[0])throw new j("inconsistency in matching group data");this.groups=n[1],this.hasGroups=!0}matches(){return this.genMatch(0,k.ANCHOR_BOTH)}lookingAt(){return this.genMatch(0,k.ANCHOR_START)}find(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null!==e){if(e<0||e>this.matcherInputLength)throw new j("start index out of bounds: ".concat(e));return this.reset(),this.genMatch(e,0)}return e=0,this.hasMatch&&(e=this.groups[1],this.groups[0]===this.groups[1]&&e++),this.genMatch(e,k.UNANCHORED)}genMatch(e,t){const n=this.patternInput.re2().matchMachineInput(this.matcherInput,e,this.matcherInputLength,t,1);return!!n[0]&&(this.groups=n[1],this.hasMatch=!0,this.hasGroups=!1,this.anchorFlag=t,!0)}substring(e,t){return this.matcherInput.isUTF8Encoding()?O.utf8ByteArrayToString(this.matcherInput.asBytes().slice(e,t)):this.matcherInput.asCharSequence().substring(e,t).toString()}inputLength(){return this.matcherInputLength}appendReplacement(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="";const r=this.start(),i=this.end();return this.appendPos<r&&(n+=this.substring(this.appendPos,r)),this.appendPos=i,n+=t?this.appendReplacementInternalPerl(e):this.appendReplacementInternal(e),n}appendReplacementInternal(e){let t="",n=0;const r=e.length;for(let i=0;i<r-1;i++)if(e.codePointAt(i)!==x.CODES.get("\\")){if(e.codePointAt(i)===x.CODES.get("$")){let s=e.codePointAt(i+1);if(x.CODES.get("0")<=s&&s<=x.CODES.get("9")){let a=s-x.CODES.get("0");for(n<i&&(t+=e.substring(n,i)),i+=2;i<r&&(s=e.codePointAt(i),!(s<x.CODES.get("0")||s>x.CODES.get("9")||10*a+s-x.CODES.get("0")>this.patternGroupCount));i++)a=10*a+s-x.CODES.get("0");if(a>this.patternGroupCount)throw new j("n > number of groups: ".concat(a));const o=this.group(a);null!==o&&(t+=o),n=i,i--;continue}if(s===x.CODES.get("{")){n<i&&(t+=e.substring(n,i)),i++;let r=i+1;for(;r<e.length&&e.codePointAt(r)!==x.CODES.get("}")&&e.codePointAt(r)!==x.CODES.get(" ");)r++;if(r===e.length||e.codePointAt(r)!==x.CODES.get("}"))throw new j("named capture group is missing trailing '}'");const s=e.substring(i+1,r);t+=this.group(s),n=r+1}}}else n<i&&(t+=e.substring(n,i)),i++,n=i;return n<r&&(t+=e.substring(n,r)),t}appendReplacementInternalPerl(e){let t="",n=0;const r=e.length;for(let i=0;i<r-1;i++)if(e.codePointAt(i)===x.CODES.get("$")){let s=e.codePointAt(i+1);if(x.CODES.get("$")===s){n<i&&(t+=e.substring(n,i)),t+="$",i++,n=i+1;continue}if(x.CODES.get("&")===s){n<i&&(t+=e.substring(n,i));const r=this.group(0);t+=null!==r?r:"$&",i++,n=i+1;continue}if(x.CODES.get("1")<=s&&s<=x.CODES.get("9")){let a=s-x.CODES.get("0");for(n<i&&(t+=e.substring(n,i)),i+=2;i<r&&(s=e.codePointAt(i),!(s<x.CODES.get("0")||s>x.CODES.get("9")||10*a+s-x.CODES.get("0")>this.patternGroupCount));i++)a=10*a+s-x.CODES.get("0");if(a>this.patternGroupCount){t+="$".concat(a),n=i,i--;continue}const o=this.group(a);null!==o&&(t+=o),n=i,i--;continue}if(s===x.CODES.get("<")){n<i&&(t+=e.substring(n,i)),i++;let r=i+1;for(;r<e.length&&e.codePointAt(r)!==x.CODES.get(">")&&e.codePointAt(r)!==x.CODES.get(" ");)r++;if(r===e.length||e.codePointAt(r)!==x.CODES.get(">")){t+=e.substring(i-1,r+1),n=r+1;continue}const s=e.substring(i+1,r);Object.prototype.hasOwnProperty.call(this.namedGroups,s)?t+=this.group(s):t+="$<".concat(s,">"),n=r+1}}return n<r&&(t+=e.substring(n,r)),t}appendTail(){return this.substring(this.appendPos,this.matcherInputLength)}replaceAll(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.replace(e,!0,t)}replaceFirst(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.replace(e,!1,t)}replace(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="";for(this.reset();this.find()&&(r+=this.appendReplacement(e,n),t););return r+=this.appendTail(),r}}class H{static EOF(){return-8}canCheckPrefix(){return!0}endPos(){return this.end}}class q extends H{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;super(),this.bytes=e,this.start=t,this.end=n}step(e){if((e+=this.start)>=this.end)return H.EOF();let t=255&this.bytes[e++];return 0===(128&t)?t<<3|1:192===(224&t)?(t&=31,e>=this.end?H.EOF():(t=t<<6|63&this.bytes[e++],t<<3|2)):224===(240&t)?(t&=15,e+1>=this.end?H.EOF():(t=t<<6|63&this.bytes[e++],t=t<<6|63&this.bytes[e++],t<<3|3)):(t&=7,e+2>=this.end?H.EOF():(t=t<<6|63&this.bytes[e++],t=t<<6|63&this.bytes[e++],t=t<<6|63&this.bytes[e++],t<<3|4))}index(e,t){t+=this.start;const n=this.indexOf(this.bytes,e.prefixUTF8,t);return n<0?n:n-t}context(e){let t=-1;if((e+=this.start)>this.start&&e<=this.end){let n=e-1;if(t=this.bytes[n--],t>=128){let r=e-4;for(r<this.start&&(r=this.start);n>=r&&128===(192&this.bytes[n]);)n--;n<this.start&&(n=this.start),t=this.step(n)>>3}}const n=e<this.end?this.step(e)>>3:-1;return O.emptyOpContext(t,n)}indexOf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=t.length;if(0===r)return-1;let i=e.length;for(let s=n;s<=i-r;s++)for(let n=0;n<r&&e[s+n]===t[n];n++)if(n===r-1)return s;return-1}}class G extends H{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;super(),this.charSequence=e,this.start=t,this.end=n}step(e){if((e+=this.start)<this.end){const t=this.charSequence.codePointAt(e);return t<<3|O.charCount(t)}return H.EOF()}index(e,t){t+=this.start;const n=this.charSequence.indexOf(e.prefix,t);return n<0?n:n-t}context(e){const t=(e+=this.start)>0&&e<=this.charSequence.length?this.charSequence.codePointAt(e-1):-1,n=e<this.charSequence.length?this.charSequence.codePointAt(e):-1;return O.emptyOpContext(t,n)}}class W{static fromUTF8(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;return new q(e,t,n)}static fromUTF16(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;return new G(e,t,n)}}class K{static isPseudoOp(e){return e>=K.Op.LEFT_PAREN}static emptySubs(){return[]}static quoteIfHyphen(e){return e===x.CODES.get("-")?"\\":""}static fromRegexp(e){const t=new K(e.op);return t.flags=e.flags,t.subs=e.subs,t.runes=e.runes,t.cap=e.cap,t.min=e.min,t.max=e.max,t.name=e.name,t.namedGroups=e.namedGroups,t}constructor(e){this.op=e,this.flags=0,this.subs=K.emptySubs(),this.runes=null,this.min=0,this.max=0,this.cap=0,this.name=null,this.namedGroups={}}reinit(){this.flags=0,this.subs=K.emptySubs(),this.runes=null,this.cap=0,this.min=0,this.max=0,this.name=null,this.namedGroups={}}toString(){return this.appendTo()}appendTo(){let e="";switch(this.op){case K.Op.NO_MATCH:e+="[^\\x00-\\x{10FFFF}]";break;case K.Op.EMPTY_MATCH:e+="(?:)";break;case K.Op.STAR:case K.Op.PLUS:case K.Op.QUEST:case K.Op.REPEAT:{const t=this.subs[0];switch(t.op>K.Op.CAPTURE||t.op===K.Op.LITERAL&&t.runes.length>1?e+="(?:".concat(t.appendTo(),")"):e+=t.appendTo(),this.op){case K.Op.STAR:e+="*";break;case K.Op.PLUS:e+="+";break;case K.Op.QUEST:e+="?";break;case K.Op.REPEAT:e+="{".concat(this.min),this.min!==this.max&&(e+=",",this.max>=0&&(e+=this.max)),e+="}"}0!==(this.flags&k.NON_GREEDY)&&(e+="?");break}case K.Op.CONCAT:for(let t of this.subs)t.op===K.Op.ALTERNATE?e+="(?:".concat(t.appendTo(),")"):e+=t.appendTo();break;case K.Op.ALTERNATE:{let t="";for(let n of this.subs)e+=t,t="|",e+=n.appendTo();break}case K.Op.LITERAL:0!==(this.flags&k.FOLD_CASE)&&(e+="(?i:");for(let t of this.runes)e+=O.escapeRune(t);0!==(this.flags&k.FOLD_CASE)&&(e+=")");break;case K.Op.ANY_CHAR_NOT_NL:e+="(?-s:.)";break;case K.Op.ANY_CHAR:e+="(?s:.)";break;case K.Op.CAPTURE:null===this.name||0===this.name.length?e+="(":e+="(?P<".concat(this.name,">"),this.subs[0].op!==K.Op.EMPTY_MATCH&&(e+=this.subs[0].appendTo()),e+=")";break;case K.Op.BEGIN_TEXT:e+="\\A";break;case K.Op.END_TEXT:0!==(this.flags&k.WAS_DOLLAR)?e+="(?-m:$)":e+="\\z";break;case K.Op.BEGIN_LINE:e+="^";break;case K.Op.END_LINE:e+="$";break;case K.Op.WORD_BOUNDARY:e+="\\b";break;case K.Op.NO_WORD_BOUNDARY:e+="\\B";break;case K.Op.CHAR_CLASS:if(this.runes.length%2!==0){e+="[invalid char class]";break}if(e+="[",0===this.runes.length)e+="^\\x00-\\x{10FFFF}";else if(0===this.runes[0]&&this.runes[this.runes.length-1]===I.MAX_RUNE){e+="^";for(let t=1;t<this.runes.length-1;t+=2){const n=this.runes[t]+1,r=this.runes[t+1]-1;e+=K.quoteIfHyphen(n),e+=O.escapeRune(n),n!==r&&(e+="-",e+=K.quoteIfHyphen(r),e+=O.escapeRune(r))}}else for(let t=0;t<this.runes.length;t+=2){const n=this.runes[t],r=this.runes[t+1];e+=K.quoteIfHyphen(n),e+=O.escapeRune(n),n!==r&&(e+="-",e+=K.quoteIfHyphen(r),e+=O.escapeRune(r))}e+="]";break;default:e+=this.op}return e}maxCap(){let e=0;if(this.op===K.Op.CAPTURE&&(e=this.cap),null!==this.subs)for(let t of this.subs){const n=t.maxCap();e<n&&(e=n)}return e}equals(e){if(!(null!==e&&e instanceof K))return!1;if(this.op!==e.op)return!1;switch(this.op){case K.Op.END_TEXT:if((this.flags&k.WAS_DOLLAR)!==(e.flags&k.WAS_DOLLAR))return!1;break;case K.Op.LITERAL:case K.Op.CHAR_CLASS:if(null===this.runes&&null===e.runes)break;if(null===this.runes||null===e.runes)return!1;if(this.runes.length!==e.runes.length)return!1;for(let t=0;t<this.runes.length;t++)if(this.runes[t]!==e.runes[t])return!1;break;case K.Op.ALTERNATE:case K.Op.CONCAT:if(this.subs.length!==e.subs.length)return!1;for(let t=0;t<this.subs.length;++t)if(!this.subs[t].equals(e.subs[t]))return!1;break;case K.Op.STAR:case K.Op.PLUS:case K.Op.QUEST:if((this.flags&k.NON_GREEDY)!==(e.flags&k.NON_GREEDY)||!this.subs[0].equals(e.subs[0]))return!1;break;case K.Op.REPEAT:if((this.flags&k.NON_GREEDY)!==(e.flags&k.NON_GREEDY)||this.min!==e.min||this.max!==e.max||!this.subs[0].equals(e.subs[0]))return!1;break;case K.Op.CAPTURE:if(this.cap!==e.cap||(null===this.name?null!==e.name:this.name!==e.name)||!this.subs[0].equals(e.subs[0]))return!1}return!0}}(0,T.A)(K,"Op",R(["NO_MATCH","EMPTY_MATCH","LITERAL","CHAR_CLASS","ANY_CHAR_NOT_NL","ANY_CHAR","BEGIN_LINE","END_LINE","BEGIN_TEXT","END_TEXT","WORD_BOUNDARY","NO_WORD_BOUNDARY","CAPTURE","STAR","PLUS","QUEST","REPEAT","CONCAT","ALTERNATE","LEFT_PAREN","VERTICAL_BAR"]));class Q{static isRuneOp(e){return Q.RUNE<=e&&e<=Q.RUNE_ANY_NOT_NL}static escapeRunes(e){let t='"';for(let n of e)t+=O.escapeRune(n);return t+='"',t}constructor(e){this.op=e,this.out=0,this.arg=0,this.runes=null}matchRune(e){if(1===this.runes.length){const t=this.runes[0];return 0!==(this.arg&k.FOLD_CASE)?I.equalsIgnoreCase(t,e):e===t}for(let r=0;r<this.runes.length&&r<=8;r+=2){if(e<this.runes[r])return!1;if(e<=this.runes[r+1])return!0}let t=0,n=this.runes.length/2|0;for(;t<n;){const r=t+((n-t)/2|0);if(this.runes[2*r]<=e){if(e<=this.runes[2*r+1])return!0;t=r+1}else n=r}return!1}toString(){switch(this.op){case Q.ALT:return"alt -> ".concat(this.out,", ").concat(this.arg);case Q.ALT_MATCH:return"altmatch -> ".concat(this.out,", ").concat(this.arg);case Q.CAPTURE:return"cap ".concat(this.arg," -> ").concat(this.out);case Q.EMPTY_WIDTH:return"empty ".concat(this.arg," -> ").concat(this.out);case Q.MATCH:return"match";case Q.FAIL:return"fail";case Q.NOP:return"nop -> ".concat(this.out);case Q.RUNE:return null===this.runes?"rune <null>":["rune ",Q.escapeRunes(this.runes),0!==(this.arg&k.FOLD_CASE)?"/i":""," -> ",this.out].join("");case Q.RUNE1:return"rune1 ".concat(Q.escapeRunes(this.runes)," -> ").concat(this.out);case Q.RUNE_ANY:return"any -> ".concat(this.out);case Q.RUNE_ANY_NOT_NL:return"anynotnl -> ".concat(this.out);default:throw new Error("unhandled case in Inst.toString")}}}(0,T.A)(Q,"ALT",1),(0,T.A)(Q,"ALT_MATCH",2),(0,T.A)(Q,"CAPTURE",3),(0,T.A)(Q,"EMPTY_WIDTH",4),(0,T.A)(Q,"FAIL",5),(0,T.A)(Q,"MATCH",6),(0,T.A)(Q,"NOP",7),(0,T.A)(Q,"RUNE",8),(0,T.A)(Q,"RUNE1",9),(0,T.A)(Q,"RUNE_ANY",10),(0,T.A)(Q,"RUNE_ANY_NOT_NL",11);class Y{constructor(){this.inst=[],this.start=0,this.numCap=2}getInst(e){return this.inst[e]}numInst(){return this.inst.length}addInst(e){this.inst.push(new Q(e))}skipNop(e){let t=this.inst[e];for(;t.op===Q.NOP||t.op===Q.CAPTURE;)t=this.inst[e],e=t.out;return t}prefix(){let e="",t=this.skipNop(this.start);if(!Q.isRuneOp(t.op)||1!==t.runes.length)return[t.op===Q.MATCH,e];for(;Q.isRuneOp(t.op)&&1===t.runes.length&&0===(t.arg&k.FOLD_CASE);)e+=String.fromCodePoint(t.runes[0]),t=this.skipNop(t.out);return[t.op===Q.MATCH,e]}startCond(){let e=0,t=this.start;e:for(;;){const n=this.inst[t];switch(n.op){case Q.EMPTY_WIDTH:e|=n.arg;break;case Q.FAIL:return-1;case Q.CAPTURE:case Q.NOP:break;default:break e}t=n.out}return e}next(e){const t=this.inst[e>>1];return 0===(1&e)?t.out:t.arg}patch(e,t){for(;0!==e;){const n=this.inst[e>>1];0===(1&e)?(e=n.out,n.out=t):(e=n.arg,n.arg=t)}}append(e,t){if(0===e)return t;if(0===t)return e;let n=e;for(;;){const e=this.next(n);if(0===e)break;n=e}const r=this.inst[n>>1];return 0===(1&n)?r.out=t:r.arg=t,e}toString(){let e="";for(let t=0;t<this.inst.length;t++){const n=e.length;e+=t,t===this.start&&(e+="*"),e+="        ".substring(e.length-n),e+=this.inst[t],e+="\n"}return e}}class ${constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.i=e,this.out=t,this.nullable=n}}class X{static ANY_RUNE_NOT_NL(){return[0,x.CODES.get("\n")-1,x.CODES.get("\n")+1,I.MAX_RUNE]}static ANY_RUNE(){return[0,I.MAX_RUNE]}static compileRegexp(e){const t=new X,n=t.compile(e);return t.prog.patch(n.out,t.newInst(Q.MATCH).i),t.prog.start=n.i,t.prog}constructor(){this.prog=new Y,this.newInst(Q.FAIL)}newInst(e){return this.prog.addInst(e),new $(this.prog.numInst()-1,0,!0)}nop(){const e=this.newInst(Q.NOP);return e.out=e.i<<1,e}fail(){return new $}cap(e){const t=this.newInst(Q.CAPTURE);return t.out=t.i<<1,this.prog.getInst(t.i).arg=e,this.prog.numCap<e+1&&(this.prog.numCap=e+1),t}cat(e,t){return 0===e.i||0===t.i?this.fail():(this.prog.patch(e.out,t.i),new $(e.i,t.out,e.nullable&&t.nullable))}alt(e,t){if(0===e.i)return t;if(0===t.i)return e;const n=this.newInst(Q.ALT),r=this.prog.getInst(n.i);return r.out=e.i,r.arg=t.i,n.out=this.prog.append(e.out,t.out),n.nullable=e.nullable||t.nullable,n}loop(e,t){const n=this.newInst(Q.ALT),r=this.prog.getInst(n.i);return t?(r.arg=e.i,n.out=n.i<<1):(r.out=e.i,n.out=n.i<<1|1),this.prog.patch(e.out,n.i),n}quest(e,t){const n=this.newInst(Q.ALT),r=this.prog.getInst(n.i);return t?(r.arg=e.i,n.out=n.i<<1):(r.out=e.i,n.out=n.i<<1|1),n.out=this.prog.append(n.out,e.out),n}star(e,t){return e.nullable?this.quest(this.plus(e,t),t):this.loop(e,t)}plus(e,t){return new $(e.i,this.loop(e,t).out,e.nullable)}empty(e){const t=this.newInst(Q.EMPTY_WIDTH);return this.prog.getInst(t.i).arg=e,t.out=t.i<<1,t}rune(e,t){const n=this.newInst(Q.RUNE);n.nullable=!1;const r=this.prog.getInst(n.i);return r.runes=e,t&=k.FOLD_CASE,1===e.length&&I.simpleFold(e[0])!==e[0]||(t&=~k.FOLD_CASE),r.arg=t,n.out=n.i<<1,0===(t&k.FOLD_CASE)&&1===e.length||2===e.length&&e[0]===e[1]?r.op=Q.RUNE1:2===e.length&&0===e[0]&&e[1]===I.MAX_RUNE?r.op=Q.RUNE_ANY:4===e.length&&0===e[0]&&e[1]===x.CODES.get("\n")-1&&e[2]===x.CODES.get("\n")+1&&e[3]===I.MAX_RUNE&&(r.op=Q.RUNE_ANY_NOT_NL),n}compile(e){switch(e.op){case K.Op.NO_MATCH:return this.fail();case K.Op.EMPTY_MATCH:return this.nop();case K.Op.LITERAL:if(0===e.runes.length)return this.nop();{let t=null;for(let n of e.runes){const r=this.rune([n],e.flags);t=null===t?r:this.cat(t,r)}return t}case K.Op.CHAR_CLASS:return this.rune(e.runes,e.flags);case K.Op.ANY_CHAR_NOT_NL:return this.rune(X.ANY_RUNE_NOT_NL(),0);case K.Op.ANY_CHAR:return this.rune(X.ANY_RUNE(),0);case K.Op.BEGIN_LINE:return this.empty(O.EMPTY_BEGIN_LINE);case K.Op.END_LINE:return this.empty(O.EMPTY_END_LINE);case K.Op.BEGIN_TEXT:return this.empty(O.EMPTY_BEGIN_TEXT);case K.Op.END_TEXT:return this.empty(O.EMPTY_END_TEXT);case K.Op.WORD_BOUNDARY:return this.empty(O.EMPTY_WORD_BOUNDARY);case K.Op.NO_WORD_BOUNDARY:return this.empty(O.EMPTY_NO_WORD_BOUNDARY);case K.Op.CAPTURE:{const t=this.cap(e.cap<<1),n=this.compile(e.subs[0]),r=this.cap(e.cap<<1|1);return this.cat(this.cat(t,n),r)}case K.Op.STAR:return this.star(this.compile(e.subs[0]),0!==(e.flags&k.NON_GREEDY));case K.Op.PLUS:return this.plus(this.compile(e.subs[0]),0!==(e.flags&k.NON_GREEDY));case K.Op.QUEST:return this.quest(this.compile(e.subs[0]),0!==(e.flags&k.NON_GREEDY));case K.Op.CONCAT:if(0===e.subs.length)return this.nop();{let t=null;for(let n of e.subs){const e=this.compile(n);t=null===t?e:this.cat(t,e)}return t}case K.Op.ALTERNATE:if(0===e.subs.length)return this.nop();{let t=null;for(let n of e.subs){const e=this.compile(n);t=null===t?e:this.alt(t,e)}return t}default:throw new F("regexp: unhandled case in compile")}}}class J{static simplify(e){if(null===e)return null;switch(e.op){case K.Op.CAPTURE:case K.Op.CONCAT:case K.Op.ALTERNATE:{let t=e;for(let n=0;n<e.subs.length;n++){const r=e.subs[n],i=J.simplify(r);t===e&&i!==r&&(t=K.fromRegexp(e),t.runes=null,t.subs=e.subs.slice(0,e.subs.length)),t!==e&&(t.subs[n]=i)}return t}case K.Op.STAR:case K.Op.PLUS:case K.Op.QUEST:{const t=J.simplify(e.subs[0]);return J.simplify1(e.op,e.flags,t,e)}case K.Op.REPEAT:{if(0===e.min&&0===e.max)return new K(K.Op.EMPTY_MATCH);const t=J.simplify(e.subs[0]);if(-1===e.max){if(0===e.min)return J.simplify1(K.Op.STAR,e.flags,t,null);if(1===e.min)return J.simplify1(K.Op.PLUS,e.flags,t,null);const n=new K(K.Op.CONCAT),r=[];for(let i=0;i<e.min-1;i++)r.push(t);return r.push(J.simplify1(K.Op.PLUS,e.flags,t,null)),n.subs=r.slice(0),n}if(1===e.min&&1===e.max)return t;let n=null;if(e.min>0){n=[];for(let r=0;r<e.min;r++)n.push(t)}if(e.max>e.min){let r=J.simplify1(K.Op.QUEST,e.flags,t,null);for(let n=e.min+1;n<e.max;n++){const n=new K(K.Op.CONCAT);n.subs=[t,r],r=J.simplify1(K.Op.QUEST,e.flags,n,null)}if(null===n)return r;n.push(r)}if(null!==n){const e=new K(K.Op.CONCAT);return e.subs=n.slice(0),e}return new K(K.Op.NO_MATCH)}}return e}static simplify1(e,t,n,r){return n.op===K.Op.EMPTY_MATCH||e===n.op&&(t&k.NON_GREEDY)===(n.flags&k.NON_GREEDY)?n:(null!==r&&r.op===e&&(r.flags&k.NON_GREEDY)===(t&k.NON_GREEDY)&&n===r.subs[0]||((r=new K(e)).flags=t,r.subs=[n]),r)}}class Z{constructor(e,t){this.sign=e,this.cls=t}}const ee=[48,57],te=[9,10,12,13,32,32],ne=[48,57,65,90,95,95,97,122],re=new Map([["\\d",new Z(1,ee)],["\\D",new Z(-1,ee)],["\\s",new Z(1,te)],["\\S",new Z(-1,te)],["\\w",new Z(1,ne)],["\\W",new Z(-1,ne)]]),ie=[48,57,65,90,97,122],se=[65,90,97,122],ae=[0,127],oe=[9,9,32,32],le=[0,31,127,127],ce=[48,57],ue=[33,126],he=[97,122],de=[32,126],fe=[33,47,58,64,91,96,123,126],pe=[9,13,32,32],me=[65,90],ge=[48,57,65,90,95,95,97,122],ve=[48,57,65,70,97,102],ye=new Map([["[:alnum:]",new Z(1,ie)],["[:^alnum:]",new Z(-1,ie)],["[:alpha:]",new Z(1,se)],["[:^alpha:]",new Z(-1,se)],["[:ascii:]",new Z(1,ae)],["[:^ascii:]",new Z(-1,ae)],["[:blank:]",new Z(1,oe)],["[:^blank:]",new Z(-1,oe)],["[:cntrl:]",new Z(1,le)],["[:^cntrl:]",new Z(-1,le)],["[:digit:]",new Z(1,ce)],["[:^digit:]",new Z(-1,ce)],["[:graph:]",new Z(1,ue)],["[:^graph:]",new Z(-1,ue)],["[:lower:]",new Z(1,he)],["[:^lower:]",new Z(-1,he)],["[:print:]",new Z(1,de)],["[:^print:]",new Z(-1,de)],["[:punct:]",new Z(1,fe)],["[:^punct:]",new Z(-1,fe)],["[:space:]",new Z(1,pe)],["[:^space:]",new Z(-1,pe)],["[:upper:]",new Z(1,me)],["[:^upper:]",new Z(-1,me)],["[:word:]",new Z(1,ge)],["[:^word:]",new Z(-1,ge)],["[:xdigit:]",new Z(1,ve)],["[:^xdigit:]",new Z(-1,ve)]]);class we{static charClassToString(e,t){let n="[";for(let r=0;r<t;r+=2){r>0&&(n+=" ");const t=e[r],i=e[r+1];n+=t===i?"0x".concat(t.toString(16)):"0x".concat(t.toString(16),"-0x").concat(i.toString(16))}return n+="]",n}static cmp(e,t,n,r){const i=e[t]-n;return 0!==i?i:r-e[t+1]}static qsortIntPair(e,t,n){const r=(t+n)/2&-2,i=e[r],s=e[r+1];let a=t,o=n;for(;a<=o;){for(;a<n&&we.cmp(e,a,i,s)<0;)a+=2;for(;o>t&&we.cmp(e,o,i,s)>0;)o-=2;if(a<=o){if(a!==o){let t=e[a];e[a]=e[o],e[o]=t,t=e[a+1],e[a+1]=e[o+1],e[o+1]=t}a+=2,o-=2}}t<o&&we.qsortIntPair(e,t,o),a<n&&we.qsortIntPair(e,a,n)}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O.emptyInts();this.r=e,this.len=e.length}toArray(){return this.len===this.r.length?this.r:this.r.slice(0,this.len)}cleanClass(){if(this.len<4)return this;we.qsortIntPair(this.r,0,this.len-2);let e=2;for(let t=2;t<this.len;t+=2){const n=this.r[t],r=this.r[t+1];if(n<=this.r[e-1]+1){r>this.r[e-1]&&(this.r[e-1]=r);continue}this.r[e]=n,this.r[e+1]=r,e+=2}return this.len=e,this}appendLiteral(e,t){return 0!==(t&k.FOLD_CASE)?this.appendFoldedRange(e,e):this.appendRange(e,e)}appendRange(e,t){if(this.len>0)for(let n=2;n<=4;n+=2)if(this.len>=n){const r=this.r[this.len-n],i=this.r[this.len-n+1];if(e<=i+1&&r<=t+1)return e<r&&(this.r[this.len-n]=e),t>i&&(this.r[this.len-n+1]=t),this}return this.r[this.len++]=e,this.r[this.len++]=t,this}appendFoldedRange(e,t){if(e<=I.MIN_FOLD&&t>=I.MAX_FOLD)return this.appendRange(e,t);if(t<I.MIN_FOLD||e>I.MAX_FOLD)return this.appendRange(e,t);e<I.MIN_FOLD&&(this.appendRange(e,I.MIN_FOLD-1),e=I.MIN_FOLD),t>I.MAX_FOLD&&(this.appendRange(I.MAX_FOLD+1,t),t=I.MAX_FOLD);for(let n=e;n<=t;n++){this.appendRange(n,n);for(let e=I.simpleFold(n);e!==n;e=I.simpleFold(e))this.appendRange(e,e)}return this}appendClass(e){for(let t=0;t<e.length;t+=2)this.appendRange(e[t],e[t+1]);return this}appendFoldedClass(e){for(let t=0;t<e.length;t+=2)this.appendFoldedRange(e[t],e[t+1]);return this}appendNegatedClass(e){let t=0;for(let n=0;n<e.length;n+=2){const r=e[n],i=e[n+1];t<=r-1&&this.appendRange(t,r-1),t=i+1}return t<=I.MAX_RUNE&&this.appendRange(t,I.MAX_RUNE),this}appendTable(e){for(let t of e){const e=t[0],n=t[1],r=t[2];if(1!==r)for(let t=e;t<=n;t+=r)this.appendRange(t,t);else this.appendRange(e,n)}return this}appendNegatedTable(e){let t=0;for(let n of e){const e=n[0],r=n[1],i=n[2];if(1!==i)for(let n=e;n<=r;n+=i)t<=n-1&&this.appendRange(t,n-1),t=n+1;else t<=e-1&&this.appendRange(t,e-1),t=r+1}return t<=I.MAX_RUNE&&this.appendRange(t,I.MAX_RUNE),this}appendTableWithSign(e,t){return t<0?this.appendNegatedTable(e):this.appendTable(e)}negateClass(){let e=0,t=0;for(let n=0;n<this.len;n+=2){const r=this.r[n],i=this.r[n+1];e<=r-1&&(this.r[t]=e,this.r[t+1]=r-1,t+=2),e=i+1}return this.len=t,e<=I.MAX_RUNE&&(this.r[this.len++]=e,this.r[this.len++]=I.MAX_RUNE),this}appendClassWithSign(e,t){return t<0?this.appendNegatedClass(e):this.appendClass(e)}appendGroup(e,t){let n=e.cls;return t&&(n=(new we).appendFoldedClass(n).cleanClass().toArray()),this.appendClassWithSign(n,e.sign)}toString(){return we.charClassToString(this.r,this.len)}}class be{static of(e,t){return new be(e,t)}constructor(e,t){this.first=e,this.second=t}}class Ee{constructor(e){this.str=e,this.position=0}pos(){return this.position}rewindTo(e){this.position=e}more(){return this.position<this.str.length}peek(){return this.str.codePointAt(this.position)}skip(e){this.position+=e}skipString(e){this.position+=e.length}pop(){const e=this.str.codePointAt(this.position);return this.position+=O.charCount(e),e}lookingAt(e){return this.rest().startsWith(e)}rest(){return this.str.substring(this.position)}from(e){return this.str.substring(e,this.position)}toString(){return this.rest()}}class _e{static ANY_TABLE(){return[[0,I.MAX_RUNE,1]]}static unicodeTable(e){return"Any"===e?be.of(_e.ANY_TABLE(),_e.ANY_TABLE()):N.CATEGORIES.has(e)?be.of(N.CATEGORIES.get(e),N.FOLD_CATEGORIES.get(e)):N.SCRIPTS.has(e)?be.of(N.SCRIPTS.get(e),N.FOLD_SCRIPT.get(e)):null}static minFoldRune(e){if(e<I.MIN_FOLD||e>I.MAX_FOLD)return e;let t=e;const n=e;for(e=I.simpleFold(e);e!==n;e=I.simpleFold(e))t>e&&(t=e);return t}static leadingRegexp(e){if(e.op===K.Op.EMPTY_MATCH)return null;if(e.op===K.Op.CONCAT&&e.subs.length>0){const t=e.subs[0];return t.op===K.Op.EMPTY_MATCH?null:t}return e}static literalRegexp(e,t){const n=new K(K.Op.LITERAL);return n.flags=t,n.runes=O.stringToRunes(e),n}static parse(e,t){return new _e(e,t).parseInternal()}static parseRepeat(e){const t=e.pos();if(!e.more()||!e.lookingAt("{"))return-1;e.skip(1);const n=_e.parseInt(e);if(-1===n)return-1;if(!e.more())return-1;let r;if(e.lookingAt(",")){if(e.skip(1),!e.more())return-1;if(e.lookingAt("}"))r=-1;else if(-1===(r=_e.parseInt(e)))return-1}else r=n;if(!e.more()||!e.lookingAt("}"))return-1;if(e.skip(1),n<0||n>1e3||-2===r||r>1e3||r>=0&&n>r)throw new V(_e.ERR_INVALID_REPEAT_SIZE,e.from(t));return n<<16|r&I.MAX_BMP}static isValidCaptureName(e){if(0===e.length)return!1;for(let t=0;t<e.length;t++){const n=e.codePointAt(t);if(n!==x.CODES.get("_")&&!O.isalnum(n))return!1}return!0}static parseInt(e){const t=e.pos();for(;e.more()&&e.peek()>=x.CODES.get("0")&&e.peek()<=x.CODES.get("9");)e.skip(1);const n=e.from(t);return 0===n.length||n.length>1&&n.codePointAt(0)===x.CODES.get("0")?-1:n.length>8?-2:parseFloat(n,10)}static isCharClass(e){return e.op===K.Op.LITERAL&&1===e.runes.length||e.op===K.Op.CHAR_CLASS||e.op===K.Op.ANY_CHAR_NOT_NL||e.op===K.Op.ANY_CHAR}static matchRune(e,t){switch(e.op){case K.Op.LITERAL:return 1===e.runes.length&&e.runes[0]===t;case K.Op.CHAR_CLASS:for(let n=0;n<e.runes.length;n+=2)if(e.runes[n]<=t&&t<=e.runes[n+1])return!0;return!1;case K.Op.ANY_CHAR_NOT_NL:return t!==x.CODES.get("\n");case K.Op.ANY_CHAR:return!0}return!1}static mergeCharClass(e,t){switch(e.op){case K.Op.ANY_CHAR:break;case K.Op.ANY_CHAR_NOT_NL:_e.matchRune(t,x.CODES.get("\n"))&&(e.op=K.Op.ANY_CHAR);break;case K.Op.CHAR_CLASS:t.op===K.Op.LITERAL?e.runes=new we(e.runes).appendLiteral(t.runes[0],t.flags).toArray():e.runes=new we(e.runes).appendClass(t.runes).toArray();break;case K.Op.LITERAL:if(t.runes[0]===e.runes[0]&&t.flags===e.flags)break;e.op=K.Op.CHAR_CLASS,e.runes=(new we).appendLiteral(e.runes[0],e.flags).appendLiteral(t.runes[0],t.flags).toArray()}}static parseEscape(e){const t=e.pos();if(e.skip(1),!e.more())throw new V(_e.ERR_TRAILING_BACKSLASH);let n=e.pop();e:switch(n){case x.CODES.get("1"):case x.CODES.get("2"):case x.CODES.get("3"):case x.CODES.get("4"):case x.CODES.get("5"):case x.CODES.get("6"):case x.CODES.get("7"):if(!e.more()||e.peek()<x.CODES.get("0")||e.peek()>x.CODES.get("7"))break;case x.CODES.get("0"):{let t=n-x.CODES.get("0");for(let n=1;n<3&&!(!e.more()||e.peek()<x.CODES.get("0")||e.peek()>x.CODES.get("7"));n++)t=8*t+e.peek()-x.CODES.get("0"),e.skip(1);return t}case x.CODES.get("x"):{if(!e.more())break;if(n=e.pop(),n===x.CODES.get("{")){let t=0,r=0;for(;;){if(!e.more())break e;if(n=e.pop(),n===x.CODES.get("}"))break;const i=O.unhex(n);if(i<0)break e;if(r=16*r+i,r>I.MAX_RUNE)break e;t++}if(0===t)break e;return r}const t=O.unhex(n);if(!e.more())break;n=e.pop();const r=O.unhex(n);if(t<0||r<0)break;return 16*t+r}case x.CODES.get("a"):return x.CODES.get("\x07");case x.CODES.get("f"):return x.CODES.get("\f");case x.CODES.get("n"):return x.CODES.get("\n");case x.CODES.get("r"):return x.CODES.get("\r");case x.CODES.get("t"):return x.CODES.get("\t");case x.CODES.get("v"):return x.CODES.get("\v");default:if(!O.isalnum(n))return n}throw new V(_e.ERR_INVALID_ESCAPE,e.from(t))}static parseClassChar(e,t){if(!e.more())throw new V(_e.ERR_MISSING_BRACKET,e.from(t));return e.lookingAt("\\")?_e.parseEscape(e):e.pop()}static concatRunes(e,t){return[...e,...t]}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.wholeRegexp=e,this.flags=t,this.numCap=0,this.namedGroups={},this.stack=[],this.free=null}newRegexp(e){let t=this.free;return null!==t&&null!==t.subs&&t.subs.length>0?(this.free=t.subs[0],t.reinit(),t.op=e):t=new K(e),t}reuse(e){null!==e.subs&&e.subs.length>0&&(e.subs[0]=this.free),this.free=e}pop(){return this.stack.pop()}popToPseudo(){const e=this.stack.length;let t=e;for(;t>0&&!K.isPseudoOp(this.stack[t-1].op);)t--;const n=this.stack.slice(t,e);return this.stack=this.stack.slice(0,t),n}push(e){if(e.op===K.Op.CHAR_CLASS&&2===e.runes.length&&e.runes[0]===e.runes[1]){if(this.maybeConcat(e.runes[0],this.flags&~k.FOLD_CASE))return null;e.op=K.Op.LITERAL,e.runes=[e.runes[0]],e.flags=this.flags&~k.FOLD_CASE}else if(e.op===K.Op.CHAR_CLASS&&4===e.runes.length&&e.runes[0]===e.runes[1]&&e.runes[2]===e.runes[3]&&I.simpleFold(e.runes[0])===e.runes[2]&&I.simpleFold(e.runes[2])===e.runes[0]||e.op===K.Op.CHAR_CLASS&&2===e.runes.length&&e.runes[0]+1===e.runes[1]&&I.simpleFold(e.runes[0])===e.runes[1]&&I.simpleFold(e.runes[1])===e.runes[0]){if(this.maybeConcat(e.runes[0],this.flags|k.FOLD_CASE))return null;e.op=K.Op.LITERAL,e.runes=[e.runes[0]],e.flags=this.flags|k.FOLD_CASE}else this.maybeConcat(-1,0);return this.stack.push(e),e}maybeConcat(e,t){const n=this.stack.length;if(n<2)return!1;const r=this.stack[n-1],i=this.stack[n-2];return r.op===K.Op.LITERAL&&i.op===K.Op.LITERAL&&(r.flags&k.FOLD_CASE)===(i.flags&k.FOLD_CASE)&&(i.runes=_e.concatRunes(i.runes,r.runes),e>=0?(r.runes=[e],r.flags=t,!0):(this.pop(),this.reuse(r),!1))}newLiteral(e,t){const n=this.newRegexp(K.Op.LITERAL);return n.flags=t,0!==(t&k.FOLD_CASE)&&(e=_e.minFoldRune(e)),n.runes=[e],n}literal(e){this.push(this.newLiteral(e,this.flags))}op(e){const t=this.newRegexp(e);return t.flags=this.flags,this.push(t)}repeat(e,t,n,r,i,s){let a=this.flags;if(0!==(a&k.PERL_X)&&(i.more()&&i.lookingAt("?")&&(i.skip(1),a^=k.NON_GREEDY),-1!==s))throw new V(_e.ERR_INVALID_REPEAT_OP,i.from(s));const o=this.stack.length;if(0===o)throw new V(_e.ERR_MISSING_REPEAT_ARGUMENT,i.from(r));const l=this.stack[o-1];if(K.isPseudoOp(l.op))throw new V(_e.ERR_MISSING_REPEAT_ARGUMENT,i.from(r));const c=this.newRegexp(e);c.min=t,c.max=n,c.flags=a,c.subs=[l],this.stack[o-1]=c}concat(){this.maybeConcat(-1,0);const e=this.popToPseudo();return 0===e.length?this.push(this.newRegexp(K.Op.EMPTY_MATCH)):this.push(this.collapse(e,K.Op.CONCAT))}alternate(){const e=this.popToPseudo();return e.length>0&&this.cleanAlt(e[e.length-1]),0===e.length?this.push(this.newRegexp(K.Op.NO_MATCH)):this.push(this.collapse(e,K.Op.ALTERNATE))}cleanAlt(e){e.op===K.Op.CHAR_CLASS&&(e.runes=new we(e.runes).cleanClass().toArray(),2===e.runes.length&&0===e.runes[0]&&e.runes[1]===I.MAX_RUNE?(e.runes=null,e.op=K.Op.ANY_CHAR):4===e.runes.length&&0===e.runes[0]&&e.runes[1]===x.CODES.get("\n")-1&&e.runes[2]===x.CODES.get("\n")+1&&e.runes[3]===I.MAX_RUNE&&(e.runes=null,e.op=K.Op.ANY_CHAR_NOT_NL))}collapse(e,t){if(1===e.length)return e[0];let n=0;for(let a of e)n+=a.op===t?a.subs.length:1;let r=new Array(n).fill(null),i=0;for(let a of e)a.op===t?(r.splice(i,a.subs.length,...a.subs),i+=a.subs.length,this.reuse(a)):r[i++]=a;let s=this.newRegexp(t);if(s.subs=r,t===K.Op.ALTERNATE&&(s.subs=this.factor(s.subs),1===s.subs.length)){const e=s;s=s.subs[0],this.reuse(e)}return s}factor(e){if(e.length<2)return e;let t=0,n=e.length,r=0,i=null,s=0,a=0,o=0;for(let c=0;c<=n;c++){let l=null,u=0,h=0;if(c<n){let n=e[t+c];if(n.op===K.Op.CONCAT&&n.subs.length>0&&(n=n.subs[0]),n.op===K.Op.LITERAL&&(l=n.runes,u=n.runes.length,h=n.flags&k.FOLD_CASE),h===a){let e=0;for(;e<s&&e<u&&i[e]===l[e];)e++;if(e>0){s=e;continue}}}if(c===o);else if(c===o+1)e[r++]=e[t+o];else{const n=this.newRegexp(K.Op.LITERAL);n.flags=a,n.runes=i.slice(0,s);for(let r=o;r<c;r++)e[t+r]=this.removeLeadingString(e[t+r],s);const l=this.collapse(e.slice(t+o,t+c),K.Op.ALTERNATE),u=this.newRegexp(K.Op.CONCAT);u.subs=[n,l],e[r++]=u}o=c,i=l,s=u,a=h}n=r,t=0,o=0,r=0;let l=null;for(let c=0;c<=n;c++){let i=null;if(!(c<n&&(i=_e.leadingRegexp(e[t+c]),null!==l&&l.equals(i)&&(_e.isCharClass(l)||l.op===K.Op.REPEAT&&l.min===l.max&&_e.isCharClass(l.subs[0]))))){if(c===o);else if(c===o+1)e[r++]=e[t+o];else{const n=l;for(let r=o;r<c;r++){const n=r!==o;e[t+r]=this.removeLeadingRegexp(e[t+r],n)}const i=this.collapse(e.slice(t+o,t+c),K.Op.ALTERNATE),s=this.newRegexp(K.Op.CONCAT);s.subs=[n,i],e[r++]=s}o=c,l=i}}n=r,t=0,o=0,r=0;for(let c=0;c<=n;c++)if(!(c<n&&_e.isCharClass(e[t+c]))){if(c===o);else if(c===o+1)e[r++]=e[t+o];else{let n=o;for(let r=o+1;r<c;r++){const i=e[t+n],s=e[t+r];(i.op<s.op||i.op===s.op&&(null!==i.runes?i.runes.length:0)<(null!==s.runes?s.runes.length:0))&&(n=r)}const i=e[t+o];e[t+o]=e[t+n],e[t+n]=i;for(let r=o+1;r<c;r++)_e.mergeCharClass(e[t+o],e[t+r]),this.reuse(e[t+r]);this.cleanAlt(e[t+o]),e[r++]=e[t+o]}c<n&&(e[r++]=e[t+c]),o=c+1}n=r,t=0,o=0,r=0;for(let c=0;c<n;++c)c+1<n&&e[t+c].op===K.Op.EMPTY_MATCH&&e[t+c+1].op===K.Op.EMPTY_MATCH||(e[r++]=e[t+c]);return n=r,t=0,e.slice(t,n)}removeLeadingString(e,t){if(e.op===K.Op.CONCAT&&e.subs.length>0){const n=this.removeLeadingString(e.subs[0],t);if(e.subs[0]=n,n.op===K.Op.EMPTY_MATCH)switch(this.reuse(n),e.subs.length){case 0:case 1:e.op=K.Op.EMPTY_MATCH,e.subs=null;break;case 2:{const t=e;e=e.subs[1],this.reuse(t);break}default:e.subs=e.subs.slice(1,e.subs.length)}return e}return e.op===K.Op.LITERAL&&(e.runes=e.runes.slice(t,e.runes.length),0===e.runes.length&&(e.op=K.Op.EMPTY_MATCH)),e}removeLeadingRegexp(e,t){if(e.op===K.Op.CONCAT&&e.subs.length>0){switch(t&&this.reuse(e.subs[0]),e.subs=e.subs.slice(1,e.subs.length),e.subs.length){case 0:e.op=K.Op.EMPTY_MATCH,e.subs=K.emptySubs();break;case 1:{const t=e;e=e.subs[0],this.reuse(t);break}}return e}return t&&this.reuse(e),this.newRegexp(K.Op.EMPTY_MATCH)}parseInternal(){if(0!==(this.flags&k.LITERAL))return _e.literalRegexp(this.wholeRegexp,this.flags);let e=-1,t=-1,n=-1;const r=new Ee(this.wholeRegexp);for(;r.more();){let i=-1;e:switch(r.peek()){case x.CODES.get("("):if(0!==(this.flags&k.PERL_X)&&r.lookingAt("(?")){this.parsePerlFlags(r);break}this.op(K.Op.LEFT_PAREN).cap=++this.numCap,r.skip(1);break;case x.CODES.get("|"):this.parseVerticalBar(),r.skip(1);break;case x.CODES.get(")"):this.parseRightParen(),r.skip(1);break;case x.CODES.get("^"):0!==(this.flags&k.ONE_LINE)?this.op(K.Op.BEGIN_TEXT):this.op(K.Op.BEGIN_LINE),r.skip(1);break;case x.CODES.get("$"):0!==(this.flags&k.ONE_LINE)?this.op(K.Op.END_TEXT).flags|=k.WAS_DOLLAR:this.op(K.Op.END_LINE),r.skip(1);break;case x.CODES.get("."):0!==(this.flags&k.DOT_NL)?this.op(K.Op.ANY_CHAR):this.op(K.Op.ANY_CHAR_NOT_NL),r.skip(1);break;case x.CODES.get("["):this.parseClass(r);break;case x.CODES.get("*"):case x.CODES.get("+"):case x.CODES.get("?"):{i=r.pos();let s=null;switch(r.pop()){case x.CODES.get("*"):s=K.Op.STAR;break;case x.CODES.get("+"):s=K.Op.PLUS;break;case x.CODES.get("?"):s=K.Op.QUEST}this.repeat(s,t,n,i,r,e);break}case x.CODES.get("{"):{i=r.pos();const s=_e.parseRepeat(r);if(s<0){r.rewindTo(i),this.literal(r.pop());break}t=s>>16,n=(s&I.MAX_BMP)<<16>>16,this.repeat(K.Op.REPEAT,t,n,i,r,e);break}case x.CODES.get("\\"):{const e=r.pos();if(r.skip(1),0!==(this.flags&k.PERL_X)&&r.more()){switch(r.pop()){case x.CODES.get("A"):this.op(K.Op.BEGIN_TEXT);break e;case x.CODES.get("b"):this.op(K.Op.WORD_BOUNDARY);break e;case x.CODES.get("B"):this.op(K.Op.NO_WORD_BOUNDARY);break e;case x.CODES.get("C"):throw new V(_e.ERR_INVALID_ESCAPE,"\\C");case x.CODES.get("Q"):{let e=r.rest();const t=e.indexOf("\\E");t>=0&&(e=e.substring(0,t)),r.skipString(e),r.skipString("\\E");let n=0;for(;n<e.length;){const t=e.codePointAt(n);this.literal(t),n+=O.charCount(t)}break e}case x.CODES.get("z"):this.op(K.Op.END_TEXT);break e;default:r.rewindTo(e)}}const t=this.newRegexp(K.Op.CHAR_CLASS);if(t.flags=this.flags,r.lookingAt("\\p")||r.lookingAt("\\P")){const e=new we;if(this.parseUnicodeClass(r,e)){t.runes=e.toArray(),this.push(t);break e}}const n=new we;if(this.parsePerlClassEscape(r,n)){t.runes=n.toArray(),this.push(t);break e}r.rewindTo(e),this.reuse(t),this.literal(_e.parseEscape(r));break}default:this.literal(r.pop())}e=i}this.concat(),this.swapVerticalBar()&&this.pop(),this.alternate();if(1!==this.stack.length)throw new V(_e.ERR_MISSING_PAREN,this.wholeRegexp);return this.stack[0].namedGroups=this.namedGroups,this.stack[0]}parsePerlFlags(e){const t=e.pos(),n=e.rest();if(n.startsWith("(?P<")||n.startsWith("(?<")){const t="P"===n.charAt(2)?4:3,r=n.indexOf(">");if(r<0)throw new V(_e.ERR_INVALID_NAMED_CAPTURE,n);const i=n.substring(t,r);if(e.skipString(i),e.skip(t+1),!_e.isValidCaptureName(i))throw new V(_e.ERR_INVALID_NAMED_CAPTURE,n.substring(0,r+1));const s=this.op(K.Op.LEFT_PAREN);if(s.cap=++this.numCap,this.namedGroups[i])throw new V(_e.ERR_DUPLICATE_NAMED_CAPTURE,i);return this.namedGroups[i]=this.numCap,void(s.name=i)}e.skip(2);let r=this.flags,i=1,s=!1;e:for(;e.more();){const t=e.pop();switch(t){case x.CODES.get("i"):r|=k.FOLD_CASE,s=!0;break;case x.CODES.get("m"):r&=~k.ONE_LINE,s=!0;break;case x.CODES.get("s"):r|=k.DOT_NL,s=!0;break;case x.CODES.get("U"):r|=k.NON_GREEDY,s=!0;break;case x.CODES.get("-"):if(i<0)break e;i=-1,r=~r,s=!1;break;case x.CODES.get(":"):case x.CODES.get(")"):if(i<0){if(!s)break e;r=~r}return t===x.CODES.get(":")&&this.op(K.Op.LEFT_PAREN),void(this.flags=r);default:break e}}throw new V(_e.ERR_INVALID_PERL_OP,e.from(t))}parseVerticalBar(){this.concat(),this.swapVerticalBar()||this.op(K.Op.VERTICAL_BAR)}swapVerticalBar(){const e=this.stack.length;if(e>=3&&this.stack[e-2].op===K.Op.VERTICAL_BAR&&_e.isCharClass(this.stack[e-1])&&_e.isCharClass(this.stack[e-3])){let t=this.stack[e-1],n=this.stack[e-3];if(t.op>n.op){const r=n;n=t,t=r,this.stack[e-3]=n}return _e.mergeCharClass(n,t),this.reuse(t),this.pop(),!0}if(e>=2){const t=this.stack[e-1],n=this.stack[e-2];if(n.op===K.Op.VERTICAL_BAR)return e>=3&&this.cleanAlt(this.stack[e-3]),this.stack[e-2]=t,this.stack[e-1]=n,!0}return!1}parseRightParen(){this.concat(),this.swapVerticalBar()&&this.pop(),this.alternate();if(this.stack.length<2)throw new V(_e.ERR_INTERNAL_ERROR,"stack underflow");const e=this.pop(),t=this.pop();if(t.op!==K.Op.LEFT_PAREN)throw new V(_e.ERR_MISSING_PAREN,this.wholeRegexp);this.flags=t.flags,0===t.cap?this.push(e):(t.op=K.Op.CAPTURE,t.subs=[e],this.push(t))}parsePerlClassEscape(e,t){const n=e.pos();if(0===(this.flags&k.PERL_X)||!e.more()||e.pop()!==x.CODES.get("\\")||!e.more())return!1;e.pop();const r=e.from(n),i=re.has(r)?re.get(r):null;return null!==i&&(t.appendGroup(i,0!==(this.flags&k.FOLD_CASE)),!0)}parseNamedClass(e,t){const n=e.rest(),r=n.indexOf(":]");if(r<0)return!1;const i=n.substring(0,r+2);e.skipString(i);const s=ye.has(i)?ye.get(i):null;if(null===s)throw new V(_e.ERR_INVALID_CHAR_RANGE,i);return t.appendGroup(s,0!==(this.flags&k.FOLD_CASE)),!0}parseUnicodeClass(e,t){const n=e.pos();if(0===(this.flags&k.UNICODE_GROUPS)||!e.lookingAt("\\p")&&!e.lookingAt("\\P"))return!1;e.skip(1);let r,i=1,s=e.pop();if(s===x.CODES.get("P")&&(i=-1),!e.more())throw e.rewindTo(n),new V(_e.ERR_INVALID_CHAR_RANGE,e.rest());if(s=e.pop(),s!==x.CODES.get("{"))r=O.runeToString(s);else{const t=e.rest(),i=t.indexOf("}");if(i<0)throw e.rewindTo(n),new V(_e.ERR_INVALID_CHAR_RANGE,e.rest());r=t.substring(0,i),e.skipString(r),e.skip(1)}0!==r.length&&r.codePointAt(0)===x.CODES.get("^")&&(i=0-i,r=r.substring(1));const a=_e.unicodeTable(r);if(null===a)throw new V(_e.ERR_INVALID_CHAR_RANGE,e.from(n));const o=a.first,l=a.second;if(0===(this.flags&k.FOLD_CASE)||null===l)t.appendTableWithSign(o,i);else{const e=(new we).appendTable(o).appendTable(l).cleanClass().toArray();t.appendClassWithSign(e,i)}return!0}parseClass(e){const t=e.pos();e.skip(1);const n=this.newRegexp(K.Op.CHAR_CLASS);n.flags=this.flags;const r=new we;let i=1;e.more()&&e.lookingAt("^")&&(i=-1,e.skip(1),0===(this.flags&k.CLASS_NL)&&r.appendRange(x.CODES.get("\n"),x.CODES.get("\n")));let s=!0;for(;!e.more()||e.peek()!==x.CODES.get("]")||s;){if(e.more()&&e.lookingAt("-")&&0===(this.flags&k.PERL_X)&&!s){const n=e.rest();if("-"===n||!n.startsWith("-]"))throw e.rewindTo(t),new V(_e.ERR_INVALID_CHAR_RANGE,e.rest())}s=!1;const n=e.pos();if(e.lookingAt("[:")){if(this.parseNamedClass(e,r))continue;e.rewindTo(n)}if(this.parseUnicodeClass(e,r))continue;if(this.parsePerlClassEscape(e,r))continue;e.rewindTo(n);const i=_e.parseClassChar(e,t);let a=i;if(e.more()&&e.lookingAt("-"))if(e.skip(1),e.more()&&e.lookingAt("]"))e.skip(-1);else if(a=_e.parseClassChar(e,t),a<i)throw new V(_e.ERR_INVALID_CHAR_RANGE,e.from(n));0===(this.flags&k.FOLD_CASE)?r.appendRange(i,a):r.appendFoldedRange(i,a)}e.skip(1),r.cleanClass(),i<0&&r.negateClass(),n.runes=r.toArray(),this.push(n)}}(0,T.A)(_e,"ERR_INTERNAL_ERROR","regexp/syntax: internal error"),(0,T.A)(_e,"ERR_INVALID_CHAR_RANGE","invalid character class range"),(0,T.A)(_e,"ERR_INVALID_ESCAPE","invalid escape sequence"),(0,T.A)(_e,"ERR_INVALID_NAMED_CAPTURE","invalid named capture"),(0,T.A)(_e,"ERR_INVALID_PERL_OP","invalid or unsupported Perl syntax"),(0,T.A)(_e,"ERR_INVALID_REPEAT_OP","invalid nested repetition operator"),(0,T.A)(_e,"ERR_INVALID_REPEAT_SIZE","invalid repeat count"),(0,T.A)(_e,"ERR_MISSING_BRACKET","missing closing ]"),(0,T.A)(_e,"ERR_MISSING_PAREN","missing closing )"),(0,T.A)(_e,"ERR_MISSING_REPEAT_ARGUMENT","missing argument to repetition operator"),(0,T.A)(_e,"ERR_TRAILING_BACKSLASH","trailing backslash at end of expression"),(0,T.A)(_e,"ERR_DUPLICATE_NAMED_CAPTURE","duplicate capture group name");class Ae{constructor(){this.inst=null,this.cap=[]}}class Se{constructor(){this.sparse=[],this.densePcs=[],this.denseThreads=[],this.size=0}contains(e){const t=this.sparse[e];return t<this.size&&this.densePcs[t]===e}isEmpty(){return 0===this.size}add(e){const t=this.size++;return this.sparse[e]=t,this.denseThreads[t]=null,this.densePcs[t]=e,t}clear(){this.sparse=[],this.densePcs=[],this.denseThreads=[],this.size=0}toString(){let e="{";for(let t=0;t<this.size;t++)0!==t&&(e+=", "),e+=this.densePcs[t];return e+="}",e}}class Ce{static fromRE2(e){const t=new Ce;return t.prog=e.prog,t.re2=e,t.q0=new Se(t.prog.numInst()),t.q1=new Se(t.prog.numInst()),t.pool=[],t.poolSize=0,t.matched=!1,t.matchcap=Array(t.prog.numCap<2?2:t.prog.numCap).fill(0),t.ncap=0,t}static fromMachine(e){const t=new Ce;return t.re2=e.re2,t.prog=e.prog,t.q0=e.q0,t.q1=e.q1,t.pool=e.pool,t.poolSize=e.poolSize,t.matched=e.matched,t.matchcap=e.matchcap,t.ncap=e.ncap,t}init(e){this.ncap=e,e>this.matchcap.length?this.initNewCap(e):this.resetCap(e)}resetCap(e){for(let t=0;t<this.poolSize;t++){this.pool[t].cap=Array(e).fill(0)}}initNewCap(e){for(let t=0;t<this.poolSize;t++){this.pool[t].cap=Array(e).fill(0)}this.matchcap=Array(e).fill(0)}submatches(){return 0===this.ncap?O.emptyInts():this.matchcap.slice(0,this.ncap)}alloc(e){let t;return this.poolSize>0?(this.poolSize--,t=this.pool[this.poolSize]):t=new Ae,t.inst=e,t}freeQueue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=e.size-t,r=this.poolSize+n;this.pool.length<r&&(this.pool=this.pool.slice(0,Math.max(2*this.pool.length,r)));for(let i=t;i<e.size;i++){const t=e.denseThreads[i];null!==t&&(this.pool[this.poolSize]=t,this.poolSize++)}e.clear()}freeThread(e){this.pool.length<=this.poolSize&&(this.pool=this.pool.slice(0,2*this.pool.length)),this.pool[this.poolSize]=e,this.poolSize++}match(e,t,n){const r=this.re2.cond;if(r===O.EMPTY_ALL)return!1;if((n===k.ANCHOR_START||n===k.ANCHOR_BOTH)&&0!==t)return!1;this.matched=!1,this.matchcap=Array(this.prog.numCap).fill(-1);let i,s=this.q0,a=this.q1,o=e.step(t),l=o>>3,c=7&o,u=-1,h=0;for(o!==H.EOF()&&(o=e.step(t+c),u=o>>3,h=7&o),i=0===t?O.emptyOpContext(-1,l):e.context(t);;){if(s.isEmpty()){if(0!==(r&O.EMPTY_BEGIN_TEXT)&&0!==t)break;if(this.matched)break;if(0!==this.re2.prefix.length&&u!==this.re2.prefixRune&&e.canCheckPrefix()){const n=e.index(this.re2,t);if(n<0)break;t+=n,o=e.step(t),l=o>>3,c=7&o,o=e.step(t+c),u=o>>3,h=7&o}}this.matched||0!==t&&n!==k.UNANCHORED||(this.ncap>0&&(this.matchcap[0]=t),this.add(s,this.prog.start,t,this.matchcap,i,null));const d=t+c;if(i=e.context(d),this.step(s,a,t,d,l,i,n,t===e.endPos()),0===c)break;if(0===this.ncap&&this.matched)break;t+=c,l=u,c=h,-1!==l&&(o=e.step(t+c),u=o>>3,h=7&o);const f=s;s=a,a=f}return this.freeQueue(a),this.matched}step(e,t,n,r,i,s,a,o){const l=this.re2.longest;for(let c=0;c<e.size;c++){let u=e.denseThreads[c];if(null===u)continue;if(l&&this.matched&&this.ncap>0&&this.matchcap[0]<u.cap[0]){this.freeThread(u);continue}const h=u.inst;let d=!1;switch(h.op){case Q.MATCH:if(a===k.ANCHOR_BOTH&&!o)break;this.ncap>0&&(!l||!this.matched||this.matchcap[1]<n)&&(u.cap[1]=n,this.matchcap=u.cap.slice(0,this.ncap)),l||this.freeQueue(e,c+1),this.matched=!0;break;case Q.RUNE:d=h.matchRune(i);break;case Q.RUNE1:d=i===h.runes[0];break;case Q.RUNE_ANY:d=!0;break;case Q.RUNE_ANY_NOT_NL:d=i!==x.CODES.get("\n");break;default:throw new Error("bad inst")}d&&(u=this.add(t,h.out,r,u.cap,s,u)),null!==u&&(this.freeThread(u),e.denseThreads[c]=null)}e.clear()}add(e,t,n,r,i,s){if(0===t)return s;if(e.contains(t))return s;const a=e.add(t),o=this.prog.inst[t];switch(o.op){case Q.FAIL:break;case Q.ALT:case Q.ALT_MATCH:s=this.add(e,o.out,n,r,i,s),s=this.add(e,o.arg,n,r,i,s);break;case Q.EMPTY_WIDTH:0===(o.arg&~i)&&(s=this.add(e,o.out,n,r,i,s));break;case Q.NOP:s=this.add(e,o.out,n,r,i,s);break;case Q.CAPTURE:if(o.arg<this.ncap){const t=r[o.arg];r[o.arg]=n,this.add(e,o.out,n,r,i,null),r[o.arg]=t}else s=this.add(e,o.out,n,r,i,s);break;case Q.MATCH:case Q.RUNE:case Q.RUNE1:case Q.RUNE_ANY:case Q.RUNE_ANY_NOT_NL:null===s?s=this.alloc(o):s.inst=o,this.ncap>0&&s.cap!==r&&(s.cap=r.slice(0,this.ncap)),e.denseThreads[a]=s,s=null;break;default:throw new Error("unhandled")}return s}}class Te{constructor(e){this.value=e}get(){return this.value}set(e){this.value=e}compareAndSet(e,t){return this.value===e&&(this.value=t,!0)}}class ke{static initTest(e){const t=ke.compile(e),n=new ke(t.expr,t.prog,t.numSubexp,t.longest);return n.cond=t.cond,n.prefix=t.prefix,n.prefixUTF8=t.prefixUTF8,n.prefixComplete=t.prefixComplete,n.prefixRune=t.prefixRune,n}static compile(e){return ke.compileImpl(e,k.PERL,!1)}static compilePOSIX(e){return ke.compileImpl(e,k.POSIX,!0)}static compileImpl(e,t,n){let r=_e.parse(e,t);const i=r.maxCap();r=J.simplify(r);const s=X.compileRegexp(r),a=new ke(e,s,i,n),o=s.prefix(),l=(0,c.A)(o,2),u=l[0],h=l[1];return a.prefixComplete=u,a.prefix=h,a.prefixUTF8=O.stringToUtf8ByteArray(a.prefix),a.prefix.length>0&&(a.prefixRune=a.prefix.codePointAt(0)),a.namedGroups=r.namedGroups,a}static match(e,t){return ke.compile(e).match(t)}constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.expr=e,this.prog=t,this.numSubexp=n,this.longest=r,this.cond=t.startCond(),this.prefix=null,this.prefixUTF8=null,this.prefixComplete=!1,this.prefixRune=0,this.pooled=new Te}numberOfCapturingGroups(){return this.numSubexp}get(){let e;do{e=this.pooled.get()}while(e&&!this.pooled.compareAndSet(e,e.next));return e}reset(){this.pooled.set(null)}put(e,t){let n=this.pooled.get();do{n=this.pooled.get(),!t&&n&&(e=Ce.fromMachine(e),t=!0),e.next!==n&&(e.next=n)}while(!this.pooled.compareAndSet(n,e))}toString(){return this.expr}doExecute(e,t,n,r){let i=this.get(),s=!1;i?null!==i.next&&(i=Ce.fromMachine(i),s=!0):(i=Ce.fromRE2(this),s=!0),i.init(r);const a=i.match(e,t,n)?i.submatches():null;return this.put(i,s),a}match(e){return null!==this.doExecute(W.fromUTF16(e),0,k.UNANCHORED,0)}matchWithGroup(e,t,n,r,i){return e instanceof P||(e=M.utf16(e)),this.matchMachineInput(e,t,n,r,i)}matchMachineInput(e,t,n,r,i){if(t>n)return[!1,null];const s=e.isUTF16Encoding()?W.fromUTF16(e.asCharSequence(),0,n):W.fromUTF8(e.asBytes(),0,n),a=this.doExecute(s,t,r,2*i);return null===a?[!1,null]:[!0,a]}matchUTF8(e){return null!==this.doExecute(W.fromUTF8(e),0,k.UNANCHORED,0)}replaceAll(e,t){return this.replaceAllFunc(e,()=>t,2*e.length+1)}replaceFirst(e,t){return this.replaceAllFunc(e,()=>t,1)}replaceAllFunc(e,t,n){let r=0,i=0,s="";const a=W.fromUTF16(e);let o=0;for(;i<=e.length;){const l=this.doExecute(a,i,k.UNANCHORED,2);if(null===l||0===l.length)break;s+=e.substring(r,l[0]),(l[1]>r||0===l[0])&&(s+=t(e.substring(l[0],l[1])),o++),r=l[1];const c=7&a.step(i);if(i+c>l[1]?i+=c:i+1>l[1]?i++:i=l[1],o>=n)break}return s+=e.substring(r),s}pad(e){if(null===e)return null;let t=2*(1+this.numSubexp);if(e.length<t){let n=new Array(t).fill(-1);for(let t=0;t<e.length;t++)n[t]=e[t];e=n}return e}allMatches(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,r=[];const i=e.endPos();t<0&&(t=i+1);let s=0,a=0,o=-1;for(;a<t&&s<=i;){const t=this.doExecute(e,s,k.UNANCHORED,this.prog.numCap);if(null===t||0===t.length)break;let l=!0;if(t[1]===s){t[0]===o&&(l=!1);const n=e.step(s);n<0?s=i+1:s+=7&n}else s=t[1];o=t[1],l&&(r.push(n(this.pad(t))),a++)}return r}findUTF8(e){const t=this.doExecute(W.fromUTF8(e),0,k.UNANCHORED,2);return null===t?null:e.slice(t[0],t[1])}findUTF8Index(e){const t=this.doExecute(W.fromUTF8(e),0,k.UNANCHORED,2);return null===t?null:t.slice(0,2)}find(e){const t=this.doExecute(W.fromUTF16(e),0,k.UNANCHORED,2);return null===t?"":e.substring(t[0],t[1])}findIndex(e){return this.doExecute(W.fromUTF16(e),0,k.UNANCHORED,2)}findUTF8Submatch(e){const t=this.doExecute(W.fromUTF8(e),0,k.UNANCHORED,this.prog.numCap);if(null===t)return null;const n=new Array(1+this.numSubexp).fill(null);for(let r=0;r<n.length;r++)2*r<t.length&&t[2*r]>=0&&(n[r]=e.slice(t[2*r],t[2*r+1]));return n}findUTF8SubmatchIndex(e){return this.pad(this.doExecute(W.fromUTF8(e),0,k.UNANCHORED,this.prog.numCap))}findSubmatch(e){const t=this.doExecute(W.fromUTF16(e),0,k.UNANCHORED,this.prog.numCap);if(null===t)return null;const n=new Array(1+this.numSubexp).fill(null);for(let r=0;r<n.length;r++)2*r<t.length&&t[2*r]>=0&&(n[r]=e.substring(t[2*r],t[2*r+1]));return n}findSubmatchIndex(e){return this.pad(this.doExecute(W.fromUTF16(e),0,k.UNANCHORED,this.prog.numCap))}findAllUTF8(e,t){const n=this.allMatches(W.fromUTF8(e),t,t=>e.slice(t[0],t[1]));return 0===n.length?null:n}findAllUTF8Index(e,t){const n=this.allMatches(W.fromUTF8(e),t,e=>e.slice(0,2));return 0===n.length?null:n}findAll(e,t){const n=this.allMatches(W.fromUTF16(e),t,t=>e.substring(t[0],t[1]));return 0===n.length?null:n}findAllIndex(e,t){const n=this.allMatches(W.fromUTF16(e),t,e=>e.slice(0,2));return 0===n.length?null:n}findAllUTF8Submatch(e,t){const n=this.allMatches(W.fromUTF8(e),t,t=>{let n=new Array(t.length/2|0).fill(null);for(let r=0;r<n.length;r++)t[2*r]>=0&&(n[r]=e.slice(t[2*r],t[2*r+1]));return n});return 0===n.length?null:n}findAllUTF8SubmatchIndex(e,t){const n=this.allMatches(W.fromUTF8(e),t);return 0===n.length?null:n}findAllSubmatch(e,t){const n=this.allMatches(W.fromUTF16(e),t,t=>{let n=new Array(t.length/2|0).fill(null);for(let r=0;r<n.length;r++)t[2*r]>=0&&(n[r]=e.substring(t[2*r],t[2*r+1]));return n});return 0===n.length?null:n}findAllSubmatchIndex(e,t){const n=this.allMatches(W.fromUTF16(e),t);return 0===n.length?null:n}}class xe{static quote(e){return O.quoteMeta(e)}static compile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;if(0!==(t&xe.CASE_INSENSITIVE)&&(n="(?i)".concat(n)),0!==(t&xe.DOTALL)&&(n="(?s)".concat(n)),0!==(t&xe.MULTILINE)&&(n="(?m)".concat(n)),0!==(t&~(xe.MULTILINE|xe.DOTALL|xe.CASE_INSENSITIVE|xe.DISABLE_UNICODE_GROUPS|xe.LONGEST_MATCH)))throw new z("Flags should only be a combination of MULTILINE, DOTALL, CASE_INSENSITIVE, DISABLE_UNICODE_GROUPS, LONGEST_MATCH");let r=k.PERL;0!==(t&xe.DISABLE_UNICODE_GROUPS)&&(r&=~k.UNICODE_GROUPS);const i=new xe(e,t);return i.re2Input=ke.compileImpl(n,r,0!==(t&xe.LONGEST_MATCH)),i}static matches(e,t){return xe.compile(e).matcher(t).matches()}static initTest(e,t,n){if(null==e)throw new Error("pattern is null");if(null==n)throw new Error("re2 is null");const r=new xe(e,t);return r.re2Input=n,r}constructor(e,t){this.patternInput=e,this.flagsInput=t}reset(){this.re2Input.reset()}flags(){return this.flagsInput}pattern(){return this.patternInput}re2(){return this.re2Input}matches(e){return this.matcher(e).matches()}matcher(e){return Array.isArray(e)&&(e=M.utf8(e)),new B(this,e)}split(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.matcher(e),r=[];let i=0,s=0;for(;n.find();)if(0!==s||0!==n.end()){if(t>0&&r.length===t-1)break;if(s===n.start()){if(0===t){i+=1,s=n.end();continue}}else for(;i>0;)r.push(""),i-=1;r.push(n.substring(s,n.start())),s=n.end()}else s=n.end();if(0===t&&s!==n.inputLength()){for(;i>0;)r.push(""),i-=1;r.push(n.substring(s,n.inputLength()))}return 0===t&&0!==r.length||r.push(n.substring(s,n.inputLength())),r}toString(){return this.patternInput}groupCount(){return this.re2Input.numberOfCapturingGroups()}namedGroups(){return this.re2Input.namedGroups}equals(e){return this===e||null!==e&&this.constructor===e.constructor&&(this.flagsInput===e.flagsInput&&this.patternInput===e.patternInput)}}(0,T.A)(xe,"CASE_INSENSITIVE",1),(0,T.A)(xe,"DOTALL",2),(0,T.A)(xe,"MULTILINE",4),(0,T.A)(xe,"DISABLE_UNICODE_GROUPS",8),(0,T.A)(xe,"LONGEST_MATCH",16);const Ne=["rawOptions"];class Ie{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}Ie.UNAUTHENTICATED=new Ie(null),Ie.GOOGLE_CREDENTIALS=new Ie("google-credentials-uid"),Ie.FIRST_PARTY=new Ie("first-party-uid"),Ie.MOCK_USER=new Ie("mock-user");let Oe="12.15.0";const Re=new E.Vy("@firebase/firestore");function Pe(){return Re.logLevel}function De(e){if(Re.logLevel<=E.$b.DEBUG){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=n.map(Ue);Re.debug("Firestore (".concat(Oe,"): ").concat(e),...i)}}function Le(e){if(Re.logLevel<=E.$b.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=n.map(Ue);Re.error("Firestore (".concat(Oe,"): ").concat(e),...i)}}function Me(e){if(Re.logLevel<=E.$b.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=n.map(Ue);Re.warn("Firestore (".concat(Oe,"): ").concat(e),...i)}}function Ue(e){if("string"==typeof e)return e;try{return function(e){return JSON.stringify(e)}(e)}catch(t){return e}}function Ve(e,t,n){let r="Unexpected state";"string"==typeof t?r=t:n=t,Fe(e,r,n)}function Fe(e,t,n){let r="FIRESTORE (".concat(Oe,") INTERNAL ASSERTION FAILED: ").concat(t," (ID: ").concat(e.toString(16),")");if(void 0!==n)try{r+=" CONTEXT: "+JSON.stringify(n)}catch(e){r+=" CONTEXT: "+n}throw Le(r),new Error(r)}function je(e,t,n,r){let i="Unexpected state";"string"==typeof n?i=n:r=n,e||Fe(t,i,r)}function ze(e,t){return e}const Be={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class He extends u.g{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>"".concat(this.name,": [code=").concat(this.code,"]: ").concat(this.message)}}class qe{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}class Ge{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization","Bearer ".concat(e))}}class We{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(Ie.UNAUTHENTICATED))}shutdown(){}}class Ke{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,t){this.changeListener=t,e.enqueueRetryable(()=>t(this.token.user))}shutdown(){this.changeListener=null}}class Qe{constructor(e){this.t=e,this.currentUser=Ie.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){je(void 0===this.o,42304);let n=this.i;const r=e=>this.i!==n?(n=this.i,t(e)):Promise.resolve();let i=new qe;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new qe,e.enqueueRetryable(()=>r(this.currentUser))};const s=()=>{const t=i;e.enqueueRetryable(async()=>{await t.promise,await r(this.currentUser)})},a=e=>{De("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=e,this.o&&(this.auth.addAuthTokenListener(this.o),s())};this.t.onInit(e=>a(e)),setTimeout(()=>{if(!this.auth){const e=this.t.getImmediate({optional:!0});e?a(e):(De("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new qe)}},0),s()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(t=>this.i!==e?(De("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):t?(je("string"==typeof t.accessToken,31837,{l:t}),new Ge(t.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){const e=this.auth&&this.auth.getUid();return je(null===e||"string"==typeof e,2055,{h:e}),new Ie(e)}}class Ye{constructor(e,t,n){this.T=e,this.P=t,this.R=n,this.type="FirstParty",this.user=Ie.FIRST_PARTY,this.I=new Map}A(){return this.R?this.R():null}get headers(){this.I.set("X-Goog-AuthUser",this.T);const e=this.A();return e&&this.I.set("Authorization",e),this.P&&this.I.set("X-Goog-Iam-Authorization-Token",this.P),this.I}}class $e{constructor(e,t,n){this.T=e,this.P=t,this.R=n}getToken(){return Promise.resolve(new Ye(this.T,this.P,this.R))}start(e,t){e.enqueueRetryable(()=>t(Ie.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class Xe{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class Je{constructor(e,t){this.V=t,this.forceRefresh=!1,this.appCheck=null,this.m=null,this.p=null,(0,a.xZ)(e)&&e.settings.appCheckToken&&(this.p=e.settings.appCheckToken)}start(e,t){je(void 0===this.o,3512);const n=e=>{null!=e.error&&De("FirebaseAppCheckTokenProvider","Error getting App Check token; using placeholder token instead. Error: ".concat(e.error.message));const n=e.token!==this.m;return this.m=e.token,De("FirebaseAppCheckTokenProvider","Received ".concat(n?"new":"existing"," token.")),n?t(e.token):Promise.resolve()};this.o=t=>{e.enqueueRetryable(()=>n(t))};const r=e=>{De("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=e,this.o&&this.appCheck.addTokenListener(this.o)};this.V.onInit(e=>r(e)),setTimeout(()=>{if(!this.appCheck){const e=this.V.getImmediate({optional:!0});e?r(e):De("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){if(this.p)return Promise.resolve(new Xe(this.p));const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(e=>e?(je("string"==typeof e.token,44558,{tokenResult:e}),this.m=e.token,new Xe(e.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}function Ze(e){const t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(let r=0;r<e;r++)n[r]=Math.floor(256*Math.random());return n}class et{static newId(){const e=62*Math.floor(256/62);let t="";for(;t.length<20;){const n=Ze(40);for(let r=0;r<n.length;++r)t.length<20&&n[r]<e&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(n[r]%62))}return t}}function tt(e,t){return e<t?-1:e>t?1:0}function nt(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=e.charAt(r),i=t.charAt(r);if(n!==i)return rt(n)===rt(i)?tt(n,i):rt(n)?1:-1}return tt(e.length,t.length)}function rt(e){const t=e.charCodeAt(0);return t>=55296&&t<=57343}function it(e,t,n){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}const st="__name__";class at{constructor(e,t,n){void 0===t?t=0:t>e.length&&Ve(637,{offset:t,range:e.length}),void 0===n?n=e.length-t:n>e.length-t&&Ve(1746,{length:n,range:e.length-t}),this.segments=e,this.offset=t,this.len=n}get length(){return this.len}isEqual(e){return 0===at.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof at?e.forEach(e=>{t.push(e)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=at.compareSegments(e.get(r),t.get(r));if(0!==n)return n}return tt(e.length,t.length)}static compareSegments(e,t){const n=at.isNumericId(e),r=at.isNumericId(t);return n&&!r?-1:!n&&r?1:n&&r?at.extractNumericId(e).compare(at.extractNumericId(t)):nt(e,t)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return r.fromString(e.substring(4,e.length-2))}}class ot extends at{construct(e,t,n){return new ot(e,t,n)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toStringWithLeadingSlash(){return"/".concat(this.canonicalString())}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(){const e=[];for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n){if(i.indexOf("//")>=0)throw new He(Be.INVALID_ARGUMENT,"Invalid segment (".concat(i,"). Paths must not contain // in them."));e.push(...i.split("/").filter(e=>e.length>0))}return new ot(e)}static emptyPath(){return new ot([])}}const lt=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class ct extends at{construct(e,t,n){return new ct(e,t,n)}static isValidIdentifier(e){return lt.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),ct.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&this.get(0)===st}static keyField(){return new ct([st])}static fromServerFormat(e){const t=[];let n="",r=0;const i=()=>{if(0===n.length)throw new He(Be.INVALID_ARGUMENT,"Invalid field path (".concat(e,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"));t.push(n),n=""};let s=!1;for(;r<e.length;){const t=e[r];if("\\"===t){if(r+1===e.length)throw new He(Be.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const t=e[r+1];if("\\"!==t&&"."!==t&&"`"!==t)throw new He(Be.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);n+=t,r+=2}else"`"===t?(s=!s,r++):"."!==t||s?(n+=t,r++):(i(),r++)}if(i(),s)throw new He(Be.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new ct(t)}static emptyPath(){return new ct([])}}class ut{constructor(e){this.path=e}static fromPath(e){return new ut(ot.fromString(e))}static fromName(e){return new ut(ot.fromString(e).popFirst(5))}static empty(){return new ut(ot.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===ot.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return ot.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new ut(new ot(e.slice()))}}function ht(e,t,n){if(!n)throw new He(Be.INVALID_ARGUMENT,"Function ".concat(e,"() cannot be called with an empty ").concat(t,"."))}function dt(e){if(!ut.isDocumentKey(e))throw new He(Be.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but ".concat(e," has ").concat(e.length,"."))}function ft(e){if(ut.isDocumentKey(e))throw new He(Be.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but ".concat(e," has ").concat(e.length,"."))}function pt(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}function mt(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e="".concat(e.substring(0,20),"...")),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";{const t=function(e){return e.constructor?e.constructor.name:null}(e);return t?"a custom ".concat(t," object"):"an object"}}return"function"==typeof e?"a function":Ve(12329,{type:typeof e})}function gt(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new He(Be.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=mt(e);throw new He(Be.INVALID_ARGUMENT,"Expected type '".concat(t.name,"', but it was: ").concat(n))}}return e}function vt(e,t){const n={typeString:e};return t&&(n.value=t),n}function yt(e,t){if(!pt(e))throw new He(Be.INVALID_ARGUMENT,"JSON must be an object");let n;for(const r in t)if(t[r]){const i=t[r].typeString,s="value"in t[r]?{value:t[r].value}:void 0;if(!(r in e)){n="JSON missing required field: '".concat(r,"'");break}const a=e[r];if(i&&typeof a!==i){n="JSON field '".concat(r,"' must be a ").concat(i,".");break}if(void 0!==s&&a!==s.value){n="Expected '".concat(r,"' field to equal '").concat(s.value,"'");break}}if(n)throw new He(Be.INVALID_ARGUMENT,n);return!0}const wt=-62135596800,bt=1e6;class Et{static now(){return Et.fromMillis(Date.now())}static fromDate(e){return Et.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),n=Math.floor((e-1e3*t)*bt);return new Et(t,n)}constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new He(Be.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new He(Be.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<wt)throw new He(Be.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new He(Be.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/bt}_compareTo(e){return this.seconds===e.seconds?tt(this.nanoseconds,e.nanoseconds):tt(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{type:Et._jsonSchemaVersion,seconds:this.seconds,nanoseconds:this.nanoseconds}}static fromJSON(e){if(yt(e,Et._jsonSchema))return new Et(e.seconds,e.nanoseconds)}valueOf(){const e=this.seconds-wt;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}Et._jsonSchemaVersion="firestore/timestamp/1.0",Et._jsonSchema={type:vt("string",Et._jsonSchemaVersion),seconds:vt("number"),nanoseconds:vt("number")};class _t{static fromTimestamp(e){return new _t(e)}static min(){return new _t(new Et(0,0))}static max(){return new _t(new Et(253402300799,999999999))}constructor(e){this.timestamp=e}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}const At=-1;class St{constructor(e,t,n,r){this.indexId=e,this.collectionGroup=t,this.fields=n,this.indexState=r}}St.UNKNOWN_ID=-1;function Ct(e,t){const n=e.toTimestamp().seconds,r=e.toTimestamp().nanoseconds+1,i=_t.fromTimestamp(1e9===r?new Et(n+1,0):new Et(n,r));return new kt(i,ut.empty(),t)}function Tt(e){return new kt(e.readTime,e.key,At)}class kt{constructor(e,t,n){this.readTime=e,this.documentKey=t,this.largestBatchId=n}static min(){return new kt(_t.min(),ut.empty(),At)}static max(){return new kt(_t.max(),ut.empty(),At)}}function xt(e,t){let n=e.readTime.compareTo(t.readTime);return 0!==n?n:(n=ut.comparator(e.documentKey,t.documentKey),0!==n?n:tt(e.largestBatchId,t.largestBatchId))}const Nt="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class It{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}async function Ot(e){if(e.code!==Be.FAILED_PRECONDITION||e.message!==Nt)throw e;De("LocalStore","Unexpectedly lost primary lease")}class Rt{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)},e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)})}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&Ve(59440),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new Rt((n,r)=>{this.nextCallback=t=>{this.wrapSuccess(e,t).next(n,r)},this.catchCallback=e=>{this.wrapFailure(t,e).next(n,r)}})}toPromise(){return new Promise((e,t)=>{this.next(e,t)})}wrapUserFunction(e){try{const t=e();return t instanceof Rt?t:Rt.resolve(t)}catch(e){return Rt.reject(e)}}wrapSuccess(e,t){return e?this.wrapUserFunction(()=>e(t)):Rt.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction(()=>e(t)):Rt.reject(t)}static resolve(e){return new Rt((t,n)=>{t(e)})}static reject(e){return new Rt((t,n)=>{n(e)})}static waitFor(e){return new Rt((t,n)=>{let r=0,i=0,s=!1;e.forEach(e=>{++r,e.next(()=>{++i,s&&i===r&&t()},e=>n(e))}),s=!0,i===r&&t()})}static or(e){let t=Rt.resolve(!1);for(const n of e)t=t.next(e=>e?Rt.resolve(e):n());return t}static forEach(e,t){const n=[];return e.forEach((e,r)=>{n.push(t.call(this,e,r))}),this.waitFor(n)}static mapArray(e,t){return new Rt((n,r)=>{const i=e.length,s=new Array(i);let a=0;for(let o=0;o<i;o++){const l=o;t(e[l]).next(e=>{s[l]=e,++a,a===i&&n(s)},e=>r(e))}})}static doWhile(e,t){return new Rt((n,r)=>{const i=()=>{!0===e()?t().next(()=>{i()},r):n()};i()})}}function Pt(e){const t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)}function Dt(e){return"IndexedDbTransactionError"===e.name}class Lt{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=e=>this.ae(e),this.ue=e=>t.writeSequenceNumber(e))}ae(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.ue&&this.ue(e),e}}Lt.ce=-1;const Mt=-1;function Ut(e){return null==e}function Vt(e){return 0===e&&1/e==-1/0}function Ft(e){return"number"==typeof e&&Number.isInteger(e)&&!Vt(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}function jt(e){return"string"==typeof e}const zt="\x01";function Bt(e){let t="";for(let n=0;n<e.length;n++)t.length>0&&(t=qt(t)),t=Ht(e.get(n),t);return qt(t)}function Ht(e,t){let n=t;const r=e.length;for(let i=0;i<r;i++){const t=e.charAt(i);switch(t){case"\0":n+="\x01\x10";break;case zt:n+="\x01\x11";break;default:n+=t}}return n}function qt(e){return e+zt+"\x01"}const Gt="remoteDocuments",Wt="owner",Kt="mutationQueues",Qt="mutations";const Yt="documentMutations",$t="remoteDocumentsV14",Xt="remoteDocumentGlobal",Jt="targets",Zt="targetDocuments",en="targetGlobal",tn="collectionParents",nn="clientMetadata",rn="bundles",sn="namedQueries",an="indexConfiguration",on="indexState",ln="indexEntries",cn="documentOverlays",un="globals",hn=[Kt,Qt,Yt,Gt,Jt,Wt,en,Zt,nn,Xt,tn,rn,sn],dn=[Kt,Qt,Yt,$t,Jt,Wt,en,Zt,nn,Xt,tn,rn,sn,cn],fn=dn,pn=[...fn,an,on,ln];class mn{constructor(e,t){this.comparator=e,this.root=t||vn.EMPTY}insert(e,t){return new mn(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,vn.BLACK,null,null))}remove(e){return new mn(this.comparator,this.root.remove(e,this.comparator).copy(null,null,vn.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}indexOf(e){let t=0,n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((t,n)=>(e(t,n),!1))}toString(){const e=[];return this.inorderTraversal((t,n)=>(e.push("".concat(t,":").concat(n)),!1)),"{".concat(e.join(", "),"}")}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new gn(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new gn(this.root,e,this.comparator,!1)}getReverseIterator(){return new gn(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new gn(this.root,e,this.comparator,!0)}}class gn{constructor(e,t,n,r){this.isReverse=r,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=t?n(e.key,t):1,t&&r&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(0===i){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class vn{constructor(e,t,n,r,i){this.key=e,this.value=t,this.color=null!=n?n:vn.RED,this.left=null!=r?r:vn.EMPTY,this.right=null!=i?i:vn.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,n,r,i){return new vn(null!=e?e:this.key,null!=t?t:this.value,null!=n?n:this.color,null!=r?r:this.left,null!=i?i:this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let r=this;const i=n(e,r.key);return r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n)),r.fixUp()}removeMin(){if(this.left.isEmpty())return vn.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,t){let n,r=this;if(t(e,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(e,t),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===t(e,r.key)){if(r.right.isEmpty())return vn.EMPTY;n=r.right.min(),r=r.copy(n.key,n.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(e,t))}return r.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,vn.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,vn.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw Ve(43730,{key:this.key,value:this.value});if(this.right.isRed())throw Ve(14113,{key:this.key,value:this.value});const e=this.left.check();if(e!==this.right.check())throw Ve(27949);return e+(this.isRed()?0:1)}}vn.EMPTY=null,vn.RED=!0,vn.BLACK=!1,vn.EMPTY=new class{constructor(){this.size=0}get key(){throw Ve(57766)}get value(){throw Ve(16141)}get color(){throw Ve(16727)}get left(){throw Ve(29726)}get right(){throw Ve(36894)}copy(e,t,n,r,i){return this}insert(e,t,n){return new vn(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class yn{constructor(e){this.comparator=e,this.data=new mn(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((t,n)=>(e(t),!1))}forEachInRange(e,t){const n=this.data.getIteratorFrom(e[0]);for(;n.hasNext();){const r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}forEachWhile(e,t){let n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new wn(this.data.getIterator())}getIteratorFrom(e){return new wn(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach(e=>{t=t.add(e)}),t}isEqual(e){if(!(e instanceof yn))return!1;if(this.size!==e.size)return!1;const t=this.data.getIterator(),n=e.data.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(0!==this.comparator(e,r))return!1}return!0}toArray(){const e=[];return this.forEach(t=>{e.push(t)}),e}toString(){const e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){const t=new yn(this.comparator);return t.data=e,t}}class wn{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class bn{constructor(e){this.fields=e,e.sort(ct.comparator)}static empty(){return new bn([])}unionWith(e){let t=new yn(ct.comparator);for(const n of this.fields)t=t.add(n);for(const n of e)t=t.add(n);return new bn(t.toArray())}covers(e){for(const t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return it(this.fields,e.fields,(e,t)=>e.isEqual(t))}}function En(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function _n(e,t){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function An(e,t){const n=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.push(t(e[r],r,e));return n}function Sn(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}class Cn extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class Tn{constructor(e){this.binaryString=e}static fromBase64String(e){const t=function(e){try{return atob(e)}catch(e){throw"undefined"!=typeof DOMException&&e instanceof DOMException?new Cn("Invalid base64 string: "+e):e}}(e);return new Tn(t)}static fromUint8Array(e){const t=function(e){let t="";for(let n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(e);return new Tn(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return e=this.binaryString,btoa(e);var e}toUint8Array(){return function(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return tt(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}Tn.EMPTY_BYTE_STRING=new Tn("");const kn=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function xn(e){if(je(!!e,39018),"string"==typeof e){let t=0;const n=kn.exec(e);if(je(!!n,46558,{timestamp:e}),n[1]){let e=n[1];e=(e+"000000000").substr(0,9),t=Number(e)}const r=new Date(e);return{seconds:Math.floor(r.getTime()/1e3),nanos:t}}return{seconds:Nn(e.seconds),nanos:Nn(e.nanos)}}function Nn(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function In(e){return"string"==typeof e?Tn.fromBase64String(e):Tn.fromUint8Array(e)}const On="server_timestamp",Rn="__type__",Pn="__previous_value__",Dn="__local_write_time__";function Ln(e){var t,n;return(null===(t=((null===e||void 0===e||null===(n=e.mapValue)||void 0===n?void 0:n.fields)||{})[Rn])||void 0===t?void 0:t.stringValue)===On}function Mn(e){const t=e.mapValue.fields[Pn];return Ln(t)?Mn(t):t}function Un(e){const t=xn(e.mapValue.fields[Dn].timestampValue);return new Et(t.seconds,t.nanos)}class Vn{constructor(e,t,n,r,i,s,a,o,l,c,u){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=r,this.ssl=i,this.forceLongPolling=s,this.autoDetectLongPolling=a,this.longPollingOptions=o,this.useFetchStreams=l,this.isUsingEmulator=c,this.apiKey=u}}const Fn="(default)";class jn{constructor(e,t){this.projectId=e,this.database=t||Fn}static empty(){return new jn("","")}get isDefaultDatabase(){return this.database===Fn}isEqual(e){return e instanceof jn&&e.projectId===this.projectId&&e.database===this.database}}const zn="__type__",Bn="__max__",Hn={mapValue:{fields:{__type__:{stringValue:Bn}}}},qn="__vector__",Gn="value",Wn={nullValue:"NULL_VALUE"},Kn={booleanValue:!0},Qn={booleanValue:!1};function Yn(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?Ln(e)?4:mr(e)?9007199254740991:dr(e)?10:11:Ve(28295,{value:e})}function $n(e,t,n){if(e===t)return!0;const r=Yn(e);if(r!==Yn(t))return!1;switch(r){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return Un(e).isEqual(Un(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;const n=xn(e.timestampValue),r=xn(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return function(e,t){return In(e.bytesValue).isEqual(In(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return Nn(e.geoPointValue.latitude)===Nn(t.geoPointValue.latitude)&&Nn(e.geoPointValue.longitude)===Nn(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t,n){if("integerValue"in e&&"integerValue"in t)return Nn(e.integerValue)===Nn(t.integerValue);let r,i;if("doubleValue"in e&&"doubleValue"in t)r=Nn(e.doubleValue),i=Nn(t.doubleValue);else{var s,a;if(null===n||void 0===n||!n.Ee)return!1;r=Nn(null!==(s=e.integerValue)&&void 0!==s?s:e.doubleValue),i=Nn(null!==(a=t.integerValue)&&void 0!==a?a:t.doubleValue)}return r===i?!(null===n||void 0===n||!n.he)||Vt(r)===Vt(i):!(void 0!==n&&!n.Te)&&isNaN(r)&&isNaN(i)}(e,t,n);case 9:return it(e.arrayValue.values||[],t.arrayValue.values||[],(e,t)=>$n(e,t,n));case 10:case 11:return function(e,t,n){const r=e.mapValue.fields||{},i=t.mapValue.fields||{};if(En(r)!==En(i))return!1;for(const s in r)if(r.hasOwnProperty(s)&&(void 0===i[s]||!$n(r[s],i[s],n)))return!1;return!0}(e,t,n);default:return Ve(52216,{left:e})}}function Xn(e,t){return void 0!==(e.values||[]).find(e=>$n(e,t))}function Jn(e,t){if(e===t)return 0;const n=Yn(e),r=Yn(t);if(n!==r)return tt(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return tt(e.booleanValue,t.booleanValue);case 2:return function(e,t){const n=Nn(e.integerValue||e.doubleValue),r=Nn(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return Zn(e.timestampValue,t.timestampValue);case 4:return Zn(Un(e),Un(t));case 5:return nt(e.stringValue,t.stringValue);case 6:return function(e,t){const n=In(e),r=In(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){const n=e.split("/"),r=t.split("/");for(let i=0;i<n.length&&i<r.length;i++){const e=tt(n[i],r[i]);if(0!==e)return e}return tt(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){const n=tt(Nn(e.latitude),Nn(t.latitude));return 0!==n?n:tt(Nn(e.longitude),Nn(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return er(e.arrayValue,t.arrayValue);case 10:return function(e,t){var n,r,i,s;const a=e.fields||{},o=t.fields||{},l=null===(n=a[Gn])||void 0===n?void 0:n.arrayValue,c=null===(r=o[Gn])||void 0===r?void 0:r.arrayValue,u=tt((null===l||void 0===l||null===(i=l.values)||void 0===i?void 0:i.length)||0,(null===c||void 0===c||null===(s=c.values)||void 0===s?void 0:s.length)||0);return 0!==u?u:er(l,c)}(e.mapValue,t.mapValue);case 11:return function(e,t){if(e===Hn.mapValue&&t===Hn.mapValue)return 0;if(e===Hn.mapValue)return 1;if(t===Hn.mapValue)return-1;const n=e.fields||{},r=Object.keys(n),i=t.fields||{},s=Object.keys(i);r.sort(),s.sort();for(let a=0;a<r.length&&a<s.length;++a){const e=nt(r[a],s[a]);if(0!==e)return e;const t=Jn(n[r[a]],i[s[a]]);if(0!==t)return t}return tt(r.length,s.length)}(e.mapValue,t.mapValue);default:throw Ve(23264,{Pe:n})}}function Zn(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return tt(e,t);const n=xn(e),r=xn(t),i=tt(n.seconds,r.seconds);return 0!==i?i:tt(n.nanos,r.nanos)}function er(e,t){const n=e.values||[],r=t.values||[];for(let i=0;i<n.length&&i<r.length;++i){const e=Jn(n[i],r[i]);if(void 0!==e&&0!==e)return e}return tt(n.length,r.length)}function tr(e){return nr(e)}function nr(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(e){const t=xn(e);return"time(".concat(t.seconds,",").concat(t.nanos,")")}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?function(e){return In(e).toBase64()}(e.bytesValue):"referenceValue"in e?function(e){return ut.fromName(e).toString()}(e.referenceValue):"geoPointValue"in e?function(e){return"geo(".concat(e.latitude,",").concat(e.longitude,")")}(e.geoPointValue):"arrayValue"in e?function(e){let t="[",n=!0;for(const r of e.values||[])n?n=!1:t+=",",t+=nr(r);return t+"]"}(e.arrayValue):"mapValue"in e?function(e){const t=Object.keys(e.fields||{}).sort();let n="{",r=!0;for(const i of t)r?r=!1:n+=",",n+="".concat(i,":").concat(nr(e.fields[i]));return n+"}"}(e.mapValue):Ve(61005,{value:e})}function rr(e){switch(Yn(e)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:const t=Mn(e);return t?16+rr(t):16;case 5:return 2*e.stringValue.length;case 6:return In(e.bytesValue).approximateByteSize();case 7:return e.referenceValue.length;case 9:return function(e){return(e.values||[]).reduce((e,t)=>e+rr(t),0)}(e.arrayValue);case 10:case 11:return function(e){let t=0;return _n(e.fields,(e,n)=>{t+=e.length+rr(n)}),t}(e.mapValue);default:throw Ve(13486,{value:e})}}function ir(e,t){return{referenceValue:"projects/".concat(e.projectId,"/databases/").concat(e.database,"/documents/").concat(t.path.canonicalString())}}function sr(e){return!!e&&"integerValue"in e}function ar(e){return!!e&&"doubleValue"in e}function or(e){return sr(e)||ar(e)}function lr(e){return!!e&&"arrayValue"in e}function cr(e){return!!e&&"nullValue"in e}function ur(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function hr(e){return!!e&&"mapValue"in e}function dr(e){var t,n;return(null===(t=((null===e||void 0===e||null===(n=e.mapValue)||void 0===n?void 0:n.fields)||{})[zn])||void 0===t?void 0:t.stringValue)===qn}function fr(e){var t,n;return null===(t=((null===e||void 0===e||null===(n=e.mapValue)||void 0===n?void 0:n.fields)||{})[Gn])||void 0===t?void 0:t.arrayValue}function pr(e){if(e.geoPointValue)return{geoPointValue:(0,s.A)({},e.geoPointValue)};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:(0,s.A)({},e.timestampValue)};if(e.mapValue){const t={mapValue:{fields:{}}};return _n(e.mapValue.fields,(e,n)=>t.mapValue.fields[e]=pr(n)),t}if(e.arrayValue){const t={arrayValue:{values:[]}};for(let n=0;n<(e.arrayValue.values||[]).length;++n)t.arrayValue.values[n]=pr(e.arrayValue.values[n]);return t}return(0,s.A)({},e)}function mr(e){return(((e.mapValue||{}).fields||{}).__type__||{}).stringValue===Bn}class gr{constructor(e){this.value=e}static empty(){return new gr({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let n=0;n<e.length-1;++n)if(t=(t.mapValue.fields||{})[e.get(n)],!hr(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=pr(t)}setAll(e){let t=ct.emptyPath(),n={},r=[];e.forEach((e,i)=>{if(!t.isImmediateParentOf(i)){const e=this.getFieldsMap(t);this.applyChanges(e,n,r),n={},r=[],t=i.popLast()}e?n[i.lastSegment()]=pr(e):r.push(i.lastSegment())});const i=this.getFieldsMap(t);this.applyChanges(i,n,r)}delete(e){const t=this.field(e.popLast());hr(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return $n(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let n=0;n<e.length;++n){let r=t.mapValue.fields[e.get(n)];hr(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}applyChanges(e,t,n){_n(t,(t,n)=>e[t]=n);for(const r of n)delete e[r]}clone(){return new gr(pr(this.value))}}function vr(e){const t=[];return _n(e.fields,(e,n)=>{const r=new ct([e]);if(hr(n)){const e=vr(n.mapValue).fields;if(0===e.length)t.push(r);else for(const n of e)t.push(r.child(n))}else t.push(r)}),new bn(t)}function yr(e,t){if(e.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:Vt(t)?"-0":t}}function wr(e){return{integerValue:""+e}}function br(e,t,n){return Number.isInteger(t)&&null!==n&&void 0!==n&&n.preferIntegers||Ft(t)?wr(t):yr(e,t)}class Er{constructor(){this._=void 0}}function _r(e,t,n){return e instanceof Cr?function(e,t){const n={fields:{[Rn]:{stringValue:On},[Dn]:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&Ln(t)&&(t=Mn(t)),t&&(n.fields[Pn]=t),{mapValue:n}}(n,t):e instanceof Tr?kr(e,t):e instanceof xr?Nr(e,t):e instanceof Or?function(e,t){const n=Sr(e,t),r=Lr(n)+Lr(e.Re);return sr(n)&&sr(e.Re)?wr(r):yr(e.serializer,r)}(e,t):e instanceof Rr?function(e,t){return Dr(e,t,Math.min)}(e,t):e instanceof Pr?function(e,t){return Dr(e,t,Math.max)}(e,t):void 0}function Ar(e,t,n){return e instanceof Tr?kr(e,t):e instanceof xr?Nr(e,t):n}function Sr(e,t){return e instanceof Or?or(t)?t:{integerValue:0}:null}class Cr extends Er{}class Tr extends Er{constructor(e){super(),this.elements=e}}function kr(e,t){const n=Mr(t);for(const r of e.elements)n.some(e=>$n(e,r))||n.push(r);return{arrayValue:{values:n}}}class xr extends Er{constructor(e){super(),this.elements=e}}function Nr(e,t){let n=Mr(t);for(const r of e.elements)n=n.filter(e=>!$n(e,r));return{arrayValue:{values:n}}}class Ir extends Er{constructor(e,t){super(),this.serializer=e,this.Re=t}}class Or extends Ir{}class Rr extends Ir{}class Pr extends Ir{}function Dr(e,t,n){if(!or(t))return e.Re;const r=n(Lr(t),Lr(e.Re));return sr(t)&&sr(e.Re)?wr(r):yr(e.serializer,r)}function Lr(e){return Nn(e.integerValue||e.doubleValue)}function Mr(e){return lr(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}class Ur{constructor(e,t){this.field=e,this.transform=t}}class Vr{constructor(e,t){this.version=e,this.transformResults=t}}class Fr{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new Fr}static exists(e){return new Fr(void 0,e)}static updateTime(e){return new Fr(e)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function jr(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}class zr{}function Br(e,t){if(!e.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return e.isNoDocument()?new Jr(e.key,Fr.none()):new Kr(e.key,e.data,Fr.none());{const n=e.data,r=gr.empty();let i=new yn(ct.comparator);for(let e of t.fields)if(!i.has(e)){let t=n.field(e);null===t&&e.length>1&&(e=e.popLast(),t=n.field(e)),null===t?r.delete(e):r.set(e,t),i=i.add(e)}return new Qr(e.key,r,new bn(i.toArray()),Fr.none())}}function Hr(e,t,n){e instanceof Kr?function(e,t,n){const r=e.value.clone(),i=$r(e.fieldTransforms,t,n.transformResults);r.setAll(i),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(e,t,n):e instanceof Qr?function(e,t,n){if(!jr(e.precondition,t))return void t.convertToUnknownDocument(n.version);const r=$r(e.fieldTransforms,t,n.transformResults),i=t.data;i.setAll(Yr(e)),i.setAll(r),t.convertToFoundDocument(n.version,i).setHasCommittedMutations()}(e,t,n):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,t,n)}function qr(e,t,n,r){return e instanceof Kr?function(e,t,n,r){if(!jr(e.precondition,t))return n;const i=e.value.clone(),s=Xr(e.fieldTransforms,r,t);return i.setAll(s),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null}(e,t,n,r):e instanceof Qr?function(e,t,n,r){if(!jr(e.precondition,t))return n;const i=Xr(e.fieldTransforms,r,t),s=t.data;return s.setAll(Yr(e)),s.setAll(i),t.convertToFoundDocument(t.version,s).setHasLocalMutations(),null===n?null:n.unionWith(e.fieldMask.fields).unionWith(e.fieldTransforms.map(e=>e.field))}(e,t,n,r):function(e,t,n){return jr(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):n}(e,t,n)}function Gr(e,t){let n=null;for(const r of e.fieldTransforms){const e=t.data.field(r.field),i=Sr(r.transform,e||null);null!=i&&(null===n&&(n=gr.empty()),n.set(r.field,i))}return n||null}function Wr(e,t){return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&!!function(e,t){return void 0===e&&void 0===t||!(!e||!t)&&it(e,t,(e,t)=>function(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof Tr&&t instanceof Tr||e instanceof xr&&t instanceof xr?it(e.elements,t.elements,$n):e instanceof Or&&t instanceof Or||e instanceof Rr&&t instanceof Rr||e instanceof Pr&&t instanceof Pr?$n(e.Re,t.Re):e instanceof Cr&&t instanceof Cr}(e.transform,t.transform)}(e,t))}(e.fieldTransforms,t.fieldTransforms)&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}class Kr extends zr{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];super(),this.key=e,this.value=t,this.precondition=n,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}}class Qr extends zr{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];super(),this.key=e,this.data=t,this.fieldMask=n,this.precondition=r,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function Yr(e){const t=new Map;return e.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){const r=e.data.field(n);t.set(n,r)}}),t}function $r(e,t,n){const r=new Map;je(e.length===n.length,32656,{Ie:n.length,Ae:e.length});for(let i=0;i<n.length;i++){const s=e[i],a=s.transform,o=t.data.field(s.field);r.set(s.field,Ar(a,o,n[i]))}return r}function Xr(e,t,n){const r=new Map;for(const i of e){const e=i.transform,s=n.data.field(i.field);r.set(i.field,_r(e,s,t))}return r}class Jr extends zr{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class Zr extends zr{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class ei{constructor(e,t){this.position=e,this.inclusive=t}}function ti(e,t,n){let r=0;for(let i=0;i<e.position.length;i++){const s=t[i],a=e.position[i];if(r=s.field.isKeyField()?ut.comparator(ut.fromName(a.referenceValue),n.key):Jn(a,n.data.field(s.field)),"desc"===s.dir&&(r*=-1),0!==r)break}return r}function ni(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.inclusive!==t.inclusive||e.position.length!==t.position.length)return!1;for(let n=0;n<e.position.length;n++)if(!$n(e.position[n],t.position[n]))return!1;return!0}class ri{}class ii extends ri{constructor(e,t,n){super(),this.field=e,this.op=t,this.value=n}static create(e,t,n){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,n):new di(e,t,n):"array-contains"===t?new gi(e,n):"in"===t?new vi(e,n):"not-in"===t?new yi(e,n):"array-contains-any"===t?new wi(e,n):new ii(e,t,n)}static createKeyFieldInFilter(e,t,n){return"in"===t?new fi(e,n):new pi(e,n)}matches(e){const t=e.data.field(this.field);return"!="===this.op?null!==t&&void 0===t.nullValue&&this.matchesComparison(Jn(t,this.value)):null!==t&&Yn(this.value)===Yn(t)&&this.matchesComparison(Jn(t,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return Ve(47266,{operator:this.op})}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class si extends ri{constructor(e,t){super(),this.filters=e,this.op=t,this.Ve=null}static create(e,t){return new si(e,t)}matches(e){return ai(this)?void 0===this.filters.find(t=>!t.matches(e)):void 0!==this.filters.find(t=>t.matches(e))}getFlattenedFilters(){return null!==this.Ve||(this.Ve=this.filters.reduce((e,t)=>e.concat(t.getFlattenedFilters()),[])),this.Ve}getFilters(){return Object.assign([],this.filters)}}function ai(e){return"and"===e.op}function oi(e){return li(e)&&ai(e)}function li(e){for(const t of e.filters)if(t instanceof si)return!1;return!0}function ci(e){if(e instanceof ii)return e.field.canonicalString()+e.op.toString()+tr(e.value);if(oi(e))return e.filters.map(e=>ci(e)).join(",");{const t=e.filters.map(e=>ci(e)).join(",");return"".concat(e.op,"(").concat(t,")")}}function ui(e,t){return e instanceof ii?function(e,t){return t instanceof ii&&e.op===t.op&&e.field.isEqual(t.field)&&$n(e.value,t.value)}(e,t):e instanceof si?function(e,t){return t instanceof si&&e.op===t.op&&e.filters.length===t.filters.length&&e.filters.reduce((e,n,r)=>e&&ui(n,t.filters[r]),!0)}(e,t):void Ve(19439)}function hi(e){return e instanceof ii?function(e){return"".concat(e.field.canonicalString()," ").concat(e.op," ").concat(tr(e.value))}(e):e instanceof si?function(e){return e.op.toString()+" {"+e.getFilters().map(hi).join(" ,")+"}"}(e):"Filter"}class di extends ii{constructor(e,t,n){super(e,t,n),this.key=ut.fromName(n.referenceValue)}matches(e){const t=ut.comparator(e.key,this.key);return this.matchesComparison(t)}}class fi extends ii{constructor(e,t){super(e,"in",t),this.keys=mi("in",t)}matches(e){return this.keys.some(t=>t.isEqual(e.key))}}class pi extends ii{constructor(e,t){super(e,"not-in",t),this.keys=mi("not-in",t)}matches(e){return!this.keys.some(t=>t.isEqual(e.key))}}function mi(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map(e=>ut.fromName(e.referenceValue))}class gi extends ii{constructor(e,t){super(e,"array-contains",t)}matches(e){const t=e.data.field(this.field);return lr(t)&&Xn(t.arrayValue,this.value)}}class vi extends ii{constructor(e,t){super(e,"in",t)}matches(e){const t=e.data.field(this.field);return null!==t&&Xn(this.value.arrayValue,t)}}class yi extends ii{constructor(e,t){super(e,"not-in",t)}matches(e){if(Xn(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const t=e.data.field(this.field);return null!==t&&void 0===t.nullValue&&!Xn(this.value.arrayValue,t)}}class wi extends ii{constructor(e,t){super(e,"array-contains-any",t)}matches(e){const t=e.data.field(this.field);return!(!lr(t)||!t.arrayValue.values)&&t.arrayValue.values.some(e=>Xn(this.value.arrayValue,e))}}class bi{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";this.field=e,this.dir=t}}function Ei(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}class _i{constructor(e,t,n,r,i,s,a){this.key=e,this.documentType=t,this.version=n,this.readTime=r,this.createTime=i,this.data=s,this.documentState=a}static newInvalidDocument(e){return new _i(e,0,_t.min(),_t.min(),_t.min(),gr.empty(),0)}static newFoundDocument(e,t,n,r){return new _i(e,1,t,_t.min(),n,r,0)}static newNoDocument(e,t){return new _i(e,2,t,_t.min(),_t.min(),gr.empty(),0)}static newUnknownDocument(e,t){return new _i(e,3,t,_t.min(),_t.min(),gr.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual(_t.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=gr.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=gr.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=_t.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(e){return e instanceof _i&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new _i(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return"Document(".concat(this.key,", ").concat(this.version,", ").concat(JSON.stringify(this.data.value),", {createTime: ").concat(this.createTime,"}), {documentType: ").concat(this.documentType,"}), {documentState: ").concat(this.documentState,"})")}}class Ai{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=s,this.endAt=a,this.de=null}}function Si(e){return new Ai(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,arguments.length>6&&void 0!==arguments[6]?arguments[6]:null)}function Ci(e){const t=ze(e);if(null===t.de){let e=t.path.canonicalString();null!==t.collectionGroup&&(e+="|cg:"+t.collectionGroup),e+="|f:",e+=t.filters.map(e=>ci(e)).join(","),e+="|ob:",e+=t.orderBy.map(e=>function(e){return e.field.canonicalString()+e.dir}(e)).join(","),Ut(t.limit)||(e+="|l:",e+=t.limit),t.startAt&&(e+="|lb:",e+=t.startAt.inclusive?"b:":"a:",e+=t.startAt.position.map(e=>tr(e)).join(",")),t.endAt&&(e+="|ub:",e+=t.endAt.inclusive?"a:":"b:",e+=t.endAt.position.map(e=>tr(e)).join(",")),t.de=e}return t.de}function Ti(e,t){if(e.limit!==t.limit)return!1;if(e.orderBy.length!==t.orderBy.length)return!1;for(let n=0;n<e.orderBy.length;n++)if(!Ei(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(let n=0;n<e.filters.length;n++)if(!ui(e.filters[n],t.filters[n]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!ni(e.startAt,t.startAt)&&ni(e.endAt,t.endAt)}function ki(e){return!!e.isCorePipeline}function xi(e){return!!e.path&&ut.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}class Ni{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"F",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=r,this.limit=i,this.limitType=s,this.startAt=a,this.endAt=o,this.fe=null,this.me=null,this.pe=null,this.startAt,this.endAt}}function Ii(e,t,n,r,i,s,a,o){return new Ni(e,t,n,r,i,s,a,o)}function Oi(e){return new Ni(e)}function Ri(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}function Pi(e){return ut.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}function Di(e){return null!==e.collectionGroup}function Li(e){const t=ze(e);if(null===t.fe){t.fe=[];const e=new Set;for(const i of t.explicitOrderBy)t.fe.push(i),e.add(i.field.canonicalString());const n=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc",r=function(e){let t=new yn(ct.comparator);return e.filters.forEach(e=>{e.getFlattenedFilters().forEach(e=>{e.isInequality()&&(t=t.add(e.field))})}),t}(t);r.forEach(r=>{e.has(r.canonicalString())||r.isKeyField()||t.fe.push(new bi(r,n))}),e.has(ct.keyField().canonicalString())||t.fe.push(new bi(ct.keyField(),n))}return t.fe}function Mi(e){const t=ze(e);return t.me||(t.me=Ui(t,Li(e))),t.me}function Ui(e,t){if("F"===e.limitType)return Si(e.path,e.collectionGroup,t,e.filters,e.limit,e.startAt,e.endAt);{t=t.map(e=>{const t="desc"===e.dir?"asc":"desc";return new bi(e.field,t)});const n=e.endAt?new ei(e.endAt.position,e.endAt.inclusive):null,r=e.startAt?new ei(e.startAt.position,e.startAt.inclusive):null;return Si(e.path,e.collectionGroup,t,e.filters,e.limit,n,r)}}function Vi(e,t){const n=e.filters.concat([t]);return new Ni(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}function Fi(e,t,n){return new Ni(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function ji(e,t){return Ti(Mi(e),Mi(t))&&e.limitType===t.limitType}function zi(e){return"Query(target=".concat(function(e){let t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=", filters: [".concat(e.filters.map(e=>hi(e)).join(", "),"]")),Ut(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=", orderBy: [".concat(e.orderBy.map(e=>function(e){return"".concat(e.field.canonicalString()," (").concat(e.dir,")")}(e)).join(", "),"]")),e.startAt&&(t+=", startAt: ",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(e=>tr(e)).join(",")),e.endAt&&(t+=", endAt: ",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(e=>tr(e)).join(",")),"Target(".concat(t,")")}(Mi(e)),"; limitType=").concat(e.limitType,")")}function Bi(e,t){return t.isFoundDocument()&&function(e,t){const n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):ut.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){for(const n of Li(e))if(!n.field.isKeyField()&&null===t.data.field(n.field))return!1;return!0}(e,t)&&function(e,t){for(const n of e.filters)if(!n.matches(t))return!1;return!0}(e,t)&&function(e,t){return!(e.startAt&&!function(e,t,n){const r=ti(e,t,n);return e.inclusive?r<=0:r<0}(e.startAt,Li(e),t))&&!(e.endAt&&!function(e,t,n){const r=ti(e,t,n);return e.inclusive?r>=0:r>0}(e.endAt,Li(e),t))}(e,t)}function Hi(e){return(t,n)=>{let r=!1;for(const i of Li(e)){const e=qi(i,t,n);if(0!==e)return e;r=r||i.field.isKeyField()}return 0}}function qi(e,t,n){const r=e.field.isKeyField()?ut.comparator(t.key,n.key):function(e,t,n){const r=t.data.field(e),i=n.data.field(e);return null!==r&&null!==i?Jn(r,i):Ve(42886)}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return Ve(19790,{direction:e.dir})}}class Gi{constructor(e,t){this.count=e,this.unchangedNames=t}}var Wi,Ki;function Qi(e){switch(e){case Be.OK:return Ve(64938);case Be.CANCELLED:case Be.UNKNOWN:case Be.DEADLINE_EXCEEDED:case Be.RESOURCE_EXHAUSTED:case Be.INTERNAL:case Be.UNAVAILABLE:case Be.UNAUTHENTICATED:return!1;case Be.INVALID_ARGUMENT:case Be.NOT_FOUND:case Be.ALREADY_EXISTS:case Be.PERMISSION_DENIED:case Be.FAILED_PRECONDITION:case Be.ABORTED:case Be.OUT_OF_RANGE:case Be.UNIMPLEMENTED:case Be.DATA_LOSS:return!0;default:return Ve(15467,{code:e})}}function Yi(e){if(void 0===e)return Le("GRPC error has no .code"),Be.UNKNOWN;switch(e){case Wi.OK:return Be.OK;case Wi.CANCELLED:return Be.CANCELLED;case Wi.UNKNOWN:return Be.UNKNOWN;case Wi.DEADLINE_EXCEEDED:return Be.DEADLINE_EXCEEDED;case Wi.RESOURCE_EXHAUSTED:return Be.RESOURCE_EXHAUSTED;case Wi.INTERNAL:return Be.INTERNAL;case Wi.UNAVAILABLE:return Be.UNAVAILABLE;case Wi.UNAUTHENTICATED:return Be.UNAUTHENTICATED;case Wi.INVALID_ARGUMENT:return Be.INVALID_ARGUMENT;case Wi.NOT_FOUND:return Be.NOT_FOUND;case Wi.ALREADY_EXISTS:return Be.ALREADY_EXISTS;case Wi.PERMISSION_DENIED:return Be.PERMISSION_DENIED;case Wi.FAILED_PRECONDITION:return Be.FAILED_PRECONDITION;case Wi.ABORTED:return Be.ABORTED;case Wi.OUT_OF_RANGE:return Be.OUT_OF_RANGE;case Wi.UNIMPLEMENTED:return Be.UNIMPLEMENTED;case Wi.DATA_LOSS:return Be.DATA_LOSS;default:return Ve(39323,{code:e})}}(Ki=Wi||(Wi={}))[Ki.OK=0]="OK",Ki[Ki.CANCELLED=1]="CANCELLED",Ki[Ki.UNKNOWN=2]="UNKNOWN",Ki[Ki.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Ki[Ki.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Ki[Ki.NOT_FOUND=5]="NOT_FOUND",Ki[Ki.ALREADY_EXISTS=6]="ALREADY_EXISTS",Ki[Ki.PERMISSION_DENIED=7]="PERMISSION_DENIED",Ki[Ki.UNAUTHENTICATED=16]="UNAUTHENTICATED",Ki[Ki.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Ki[Ki.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Ki[Ki.ABORTED=10]="ABORTED",Ki[Ki.OUT_OF_RANGE=11]="OUT_OF_RANGE",Ki[Ki.UNIMPLEMENTED=12]="UNIMPLEMENTED",Ki[Ki.INTERNAL=13]="INTERNAL",Ki[Ki.UNAVAILABLE=14]="UNAVAILABLE",Ki[Ki.DATA_LOSS=15]="DATA_LOSS";class $i{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n)for(const i of n){var r=(0,c.A)(i,2);const t=r[0],n=r[1];if(this.equalsFn(t,e))return n}}has(e){return void 0!==this.get(e)}set(e,t){const n=this.mapKeyFn(e),r=this.inner[n];if(void 0===r)return this.inner[n]=[[e,t]],void this.innerSize++;for(let i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return void(r[i]=[e,t]);r.push([e,t]),this.innerSize++}delete(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(let r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return 1===n.length?delete this.inner[t]:n.splice(r,1),this.innerSize--,!0;return!1}forEach(e){_n(this.inner,(t,n)=>{for(const i of n){var r=(0,c.A)(i,2);const t=r[0],n=r[1];e(t,n)}})}isEmpty(){return Sn(this.inner)}size(){return this.innerSize}}const Xi=new mn(ut.comparator);function Ji(){return Xi}const Zi=new mn(ut.comparator);function es(){let e=Zi;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n)e=e.insert(i.key,i);return e}function ts(e){let t=Zi;return e.forEach((e,n)=>t=t.insert(e,n.overlayedDocument)),t}function ns(){return is()}function rs(){return is()}function is(){return new $i(e=>e.toString(),(e,t)=>e.isEqual(t))}const ss=new mn(ut.comparator),as=new yn(ut.comparator);function os(){let e=as;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n)e=e.add(i);return e}const ls=new yn(tt);function cs(){return ls}let us=null;function hs(){return new TextEncoder}const ds=new r([4294967295,4294967295],0);function fs(e){const t=hs().encode(e),n=new i;return n.update(t),new Uint8Array(n.digest())}function ps(e){const t=new DataView(e.buffer),n=t.getUint32(0,!0),i=t.getUint32(4,!0),s=t.getUint32(8,!0),a=t.getUint32(12,!0);return[new r([n,i],0),new r([s,a],0)]}class ms{constructor(e,t,n){if(this.bitmap=e,this.padding=t,this.hashCount=n,t<0||t>=8)throw new gs("Invalid padding: ".concat(t));if(n<0)throw new gs("Invalid hash count: ".concat(n));if(e.length>0&&0===this.hashCount)throw new gs("Invalid hash count: ".concat(n));if(0===e.length&&0!==t)throw new gs("Invalid padding when bitmap length is 0: ".concat(t));this.ge=8*e.length-t,this.ye=r.fromNumber(this.ge)}we(e,t,n){let i=e.add(t.multiply(r.fromNumber(n)));return 1===i.compare(ds)&&(i=new r([i.getBits(0),i.getBits(1)],0)),i.modulo(this.ye).toNumber()}be(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(0===this.ge)return!1;const t=ps(fs(e)),n=(0,c.A)(t,2),r=n[0],i=n[1];for(let s=0;s<this.hashCount;s++){const e=this.we(r,i,s);if(!this.be(e))return!1}return!0}static create(e,t,n){const r=e%8==0?0:8-e%8,i=new Uint8Array(Math.ceil(e/8)),s=new ms(i,r,t);return n.forEach(e=>s.insert(e)),s}insert(e){if(0===this.ge)return;const t=ps(fs(e)),n=(0,c.A)(t,2),r=n[0],i=n[1];for(let s=0;s<this.hashCount;s++){const e=this.we(r,i,s);this.ve(e)}}ve(e){const t=Math.floor(e/8),n=e%8;this.bitmap[t]|=1<<n}}class gs extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class vs{constructor(e,t,n,r,i,s){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.augmentedDocumentUpdates=i,this.resolvedLimboDocuments=s}static createSynthesizedRemoteEventForCurrentChange(e,t,n){const r=new Map;return r.set(e,ys.createSynthesizedTargetChangeForCurrentChange(e,t,n)),new vs(_t.min(),r,new mn(tt),Ji(),Ji(),os())}}class ys{constructor(e,t,n,r,i){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}static createSynthesizedTargetChangeForCurrentChange(e,t,n){return new ys(n,t,os(),os(),os())}}class ws{constructor(e,t,n,r){this.Se=e,this.removedTargetIds=t,this.key=n,this.De=r}}class bs{constructor(e,t){this.targetId=e,this.xe=t}}class Es{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tn.EMPTY_BYTE_STRING,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r}}class _s{constructor(e){this.targetId=e,this.Ce=0,this.Fe=Ts(),this.Oe=Tn.EMPTY_BYTE_STRING,this.Me=!1,this.Ne=!0}get current(){return this.Me}get resumeToken(){return this.Oe}get Le(){return 0!==this.Ce}get Be(){return this.Ne}Ue(e){e.approximateByteSize()>0&&(this.Ne=!0,this.Oe=e)}ke(){let e=os(),t=os(),n=os();return this.Fe.forEach((r,i)=>{switch(i){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:Ve(38017,{changeType:i})}}),new ys(this.Oe,this.Me,e,t,n)}qe(){this.Ne=!1,this.Fe=Ts()}$e(e,t){this.Ne=!0,this.Fe=this.Fe.insert(e,t)}Ke(e){this.Ne=!0,this.Fe=this.Fe.remove(e)}We(){this.Ce+=1}Qe(){this.Ce-=1,je(this.Ce>=0,3241,{Ce:this.Ce,targetId:this.targetId})}Ge(){this.Ne=!0,this.Me=!0}}const As="WatchChangeAggregator";class Ss{constructor(e){this.ze=e,this.je=new Map,this.He=Ji(),this.Je=Cs(),this.Ye=Ji(),this.Ze=Cs(),this.Xe=new mn(tt)}et(e){for(const t of e.Se)e.De&&e.De.isFoundDocument()?this.tt(t,e.De):this.nt(t,e.key,e.De);for(const t of e.removedTargetIds)this.nt(t,e.key,e.De)}rt(e){this.forEachTarget(e,t=>{const n=this.je.get(t);if(n)switch(e.state){case 0:this.it(t)&&n.Ue(e.resumeToken);break;case 1:n.Qe(),n.Le||n.qe(),n.Ue(e.resumeToken);break;case 2:n.Qe(),n.Le||this.removeTarget(t);break;case 3:this.it(t)&&(n.Ge(),n.Ue(e.resumeToken));break;case 4:this.it(t)&&(this.st(t),n.Ue(e.resumeToken));break;default:Ve(56790,{state:e.state})}else De(As,"handleTargetChange received targetChange for untracked target ID (".concat(t,") with state (").concat(e.state,")"))})}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.je.forEach((e,n)=>{this.it(n)&&t(n)})}_t(e){var t;return ki(e)?"documents"===e.getPipelineSourceType()&&1===(null===(t=e.getPipelineDocuments())||void 0===t?void 0:t.length):xi(e)}ot(e){const t=e.targetId,n=e.xe.count,r=this.ut(t);if(r){const s=r.target;if(this._t(s))if(0===n){const e=new ut(ki(s)?ot.fromString(s.getPipelineDocuments()[0]):s.path);this.nt(t,e,_i.newNoDocument(e,_t.min()))}else je(1===n,20013,"Single document existence filter with count: "+n);else{const r=this.ct(t);if(r!==n){var i;const n=this.lt(e),s=n?this.Et(n,e,r):1;if(0!==s){this.st(t);const e=2===s?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Xe=this.Xe.insert(t,e)}null===(i=us)||void 0===i||i.u(function(e,t,n,r,i){var s,a,o,l,c;const u={localCacheCount:e,existenceFilterCount:t.count,databaseId:n.database,projectId:n.projectId},h=t.unchangedNames;return h&&(u.bloomFilter={applied:0===i,hashCount:null!==(s=null===h||void 0===h?void 0:h.hashCount)&&void 0!==s?s:0,bitmapLength:null!==(a=null===h||void 0===h||null===(o=h.bits)||void 0===o||null===(o=o.bitmap)||void 0===o?void 0:o.length)&&void 0!==a?a:0,padding:null!==(l=null===h||void 0===h||null===(c=h.bits)||void 0===c?void 0:c.padding)&&void 0!==l?l:0,mightContain:e=>{var t;return null!==(t=null===r||void 0===r?void 0:r.mightContain(e))&&void 0!==t&&t}}),u}(r,e.xe,this.ze.Tt(),n,s))}}}}lt(e){const t=e.xe.unchangedNames;if(!t||!t.bits)return null;const n=t.bits,r=n.bitmap,i=void 0===r?"":r,s=n.padding,a=void 0===s?0:s,o=t.hashCount,l=void 0===o?0:o;let c,u;try{c=In(i).toUint8Array()}catch(e){if(e instanceof Cn)return Me("Decoding the base64 bloom filter in existence filter failed ("+e.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw e}try{u=new ms(c,a,l)}catch(e){return Me(e instanceof gs?"BloomFilter error: ":"Applying bloom filter failed: ",e),null}return 0===u.ge?null:u}Et(e,t,n){return t.xe.count===n-this.Pt(e,t.targetId)?0:2}Pt(e,t){const n=this.ze.getRemoteKeysForTarget(t);let r=0;return n.forEach(n=>{const i=this.ze.Tt(),s="projects/".concat(i.projectId,"/databases/").concat(i.database,"/documents/").concat(n.path.canonicalString());e.mightContain(s)||(this.nt(t,n,null),r++)}),r}Rt(e){const t=new Map;this.je.forEach((n,r)=>{const i=this.ut(r);if(i){if(n.current&&this._t(i.target)){const t=ki(i.target)?ot.fromString(i.target.getPipelineDocuments()[0]):i.target.path,n=new ut(t);this.It(n).has(r)||this.At(r,n)||this.nt(r,n,_i.newNoDocument(n,e))}n.Be&&(t.set(r,n.ke()),n.qe())}});let n=os();this.Ze.forEach((e,t)=>{let r=!0;t.forEachWhile(e=>{const t=this.ut(e);return!t||"TargetPurposeLimboResolution"===t.purpose||(r=!1,!1)}),r&&(n=n.add(e))}),this.He.forEach((t,n)=>n.setReadTime(e)),this.Ye.forEach((t,n)=>n.setReadTime(e));const r=new vs(e,t,this.Xe,this.He,this.Ye,n);return this.He=Ji(),this.Je=Cs(),this.Ye=Ji(),this.Ze=Cs(),this.Xe=new mn(tt),r}tt(e,t){const n=this.je.get(e);if(!n||!this.it(e))return void De(As,"addDocumentToTarget received document for unknown inactive target (".concat(e,")"));const r=this.At(e,t.key)?2:0;n.$e(t.key,r),ki(this.ut(e).target)&&"exact"!==this.ut(e).target.getPipelineFlavor()?this.Ye=this.Ye.insert(t.key,t):this.He=this.He.insert(t.key,t),this.Je=this.Je.insert(t.key,this.It(t.key).add(e)),this.Ze=this.Ze.insert(t.key,this.Vt(t.key).add(e))}nt(e,t,n){const r=this.je.get(e);r&&this.it(e)?(this.At(e,t)?r.$e(t,1):r.Ke(t),this.Ze=this.Ze.insert(t,this.Vt(t).delete(e)),this.Ze=this.Ze.insert(t,this.Vt(t).add(e)),n&&(ki(this.ut(e).target)&&"exact"!==this.ut(e).target.getPipelineFlavor()?this.Ye=this.Ye.insert(t,n):this.He=this.He.insert(t,n))):De(As,"removeDocumentFromTarget received document for unknown or inactive target (".concat(e,")"))}removeTarget(e){this.je.delete(e)}ct(e){const t=this.je.get(e);if(!t)return 0;const n=t.ke();return this.ze.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}We(e){let t=this.je.get(e);t||(De(As,"recordPendingTargetRequest set up tracking for target ID ".concat(e)),t=new _s(e),this.je.set(e,t)),t.We()}Vt(e){let t=this.Ze.get(e);return t||(t=new yn(tt),this.Ze=this.Ze.insert(e,t)),t}It(e){let t=this.Je.get(e);return t||(t=new yn(tt),this.Je=this.Je.insert(e,t)),t}it(e){const t=null!==this.ut(e);return t||De(As,"Detected inactive target",e),t}ut(e){const t=this.je.get(e);return void 0===t||t.Le?null:this.ze.dt(e)}st(e){this.je.set(e,new _s(e)),this.ze.getRemoteKeysForTarget(e).forEach(t=>{this.nt(e,t,null)})}At(e,t){return this.ze.getRemoteKeysForTarget(e).has(t)}}function Cs(){return new mn(ut.comparator)}function Ts(){return new mn(ut.comparator)}const ks={asc:"ASCENDING",desc:"DESCENDING"},xs={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Ns={and:"AND",or:"OR"};class Is{constructor(e,t){this.databaseId=e,this.useProto3Json=t}}function Os(e,t){return e.useProto3Json||Ut(t)?t:{value:t}}function Rs(e,t){return e.useProto3Json?"".concat(new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z",""),".").concat(("000000000"+t.nanoseconds).slice(-9),"Z"):{seconds:""+t.seconds,nanos:t.nanoseconds}}function Ps(e){const t=xn(e);return new Et(t.seconds,t.nanos)}function Ds(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function Ls(e,t){return Rs(e,t.toTimestamp())}function Ms(e){return je(!!e,49232),_t.fromTimestamp(Ps(e))}function Us(e,t){return Vs(e,t).canonicalString()}function Vs(e,t){const n=function(e){return new ot(["projects",e.projectId,"databases",e.database])}(e).child("documents");return void 0===t?n:n.child(t)}function Fs(e){const t=ot.fromString(e);return je(aa(t),10190,{key:t.toString()}),t}function js(e,t){return Us(e.databaseId,t.path)}function zs(e,t){const n=Fs(t);if(n.get(1)!==e.databaseId.projectId)throw new He(Be.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+e.databaseId.projectId);if(n.get(3)!==e.databaseId.database)throw new He(Be.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new ut(Gs(n))}function Bs(e,t){return Us(e.databaseId,t)}function Hs(e){const t=Fs(e);return 4===t.length?ot.emptyPath():Gs(t)}function qs(e){return new ot(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function Gs(e){return je(e.length>4&&"documents"===e.get(4),29091,{key:e.toString()}),e.popFirst(5)}function Ws(e,t,n){return{name:js(e,t),fields:n.value.mapValue.fields}}function Ks(e,t){let n;if(t instanceof Kr)n={update:Ws(e,t.key,t.value)};else if(t instanceof Jr)n={delete:js(e,t.key)};else if(t instanceof Qr)n={update:Ws(e,t.key,t.data),updateMask:sa(t.fieldMask)};else{if(!(t instanceof Zr))return Ve(16599,{gt:t.type});n={verify:js(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map(e=>function(e,t){const n=t.transform;if(n instanceof Cr)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof Tr)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof xr)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof Or)return{fieldPath:t.field.canonicalString(),increment:n.Re};if(n instanceof Rr)return{fieldPath:t.field.canonicalString(),minimum:n.Re};if(n instanceof Pr)return{fieldPath:t.field.canonicalString(),maximum:n.Re};throw Ve(20930,{transform:t.transform})}(0,e))),t.precondition.isNone||(n.currentDocument=function(e,t){return void 0!==t.updateTime?{updateTime:Ls(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:Ve(27497)}(e,t.precondition)),n}function Qs(e,t){return{documents:[Bs(e,t.path)]}}function Ys(e,t){const n={structuredQuery:{}},r=t.path;let i;null!==t.collectionGroup?(i=r,n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(i=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]),n.parent=Bs(e,i);const s=function(e){if(0!==e.length)return ia(si.create(e,"and"))}(t.filters);s&&(n.structuredQuery.where=s);const a=function(e){if(0!==e.length)return e.map(e=>function(e){return{field:na(e.field),direction:Zs(e.dir)}}(e))}(t.orderBy);a&&(n.structuredQuery.orderBy=a);const o=Os(e,t.limit);return null!==o&&(n.structuredQuery.limit=o),t.startAt&&(n.structuredQuery.startAt=function(e){return{before:e.inclusive,values:e.position}}(t.startAt)),t.endAt&&(n.structuredQuery.endAt=function(e){return{before:!e.inclusive,values:e.position}}(t.endAt)),{yt:n,parent:i}}function $s(e){let t=Hs(e.parent);const n=e.structuredQuery,r=n.from?n.from.length:0;let i=null;if(r>0){je(1===r,65062);const e=n.from[0];e.allDescendants?i=e.collectionId:t=t.child(e.collectionId)}let s=[];n.where&&(s=function(e){const t=Js(e);return t instanceof si&&oi(t)?t.getFilters():[t]}(n.where));let a=[];n.orderBy&&(a=function(e){return e.map(e=>function(e){return new bi(ra(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))}(e))}(n.orderBy));let o=null;n.limit&&(o=function(e){let t;return t="object"==typeof e?e.value:e,Ut(t)?null:t}(n.limit));let l=null;n.startAt&&(l=function(e){const t=!!e.before,n=e.values||[];return new ei(n,t)}(n.startAt));let c=null;return n.endAt&&(c=function(e){const t=!e.before,n=e.values||[];return new ei(n,t)}(n.endAt)),Ii(t,i,a,s,o,"F",l,c)}function Xs(e,t){return{structuredPipeline:{pipeline:{stages:t.stages.map(t=>t._toProto(e))}}}}function Js(e){return void 0!==e.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":const t=ra(e.unaryFilter.field);return ii.create(t,"==",{doubleValue:NaN});case"IS_NULL":const n=ra(e.unaryFilter.field);return ii.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const r=ra(e.unaryFilter.field);return ii.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const i=ra(e.unaryFilter.field);return ii.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":return Ve(61313);default:return Ve(60726)}}(e):void 0!==e.fieldFilter?function(e){return ii.create(ra(e.fieldFilter.field),function(e){switch(e){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":return Ve(58110);default:return Ve(50506)}}(e.fieldFilter.op),e.fieldFilter.value)}(e):void 0!==e.compositeFilter?function(e){return si.create(e.compositeFilter.filters.map(e=>Js(e)),function(e){switch(e){case"AND":return"and";case"OR":return"or";default:return Ve(1026)}}(e.compositeFilter.op))}(e):Ve(30097,{filter:e})}function Zs(e){return ks[e]}function ea(e){return xs[e]}function ta(e){return Ns[e]}function na(e){return{fieldPath:e.canonicalString()}}function ra(e){return ct.fromServerFormat(e.fieldPath)}function ia(e){return e instanceof ii?function(e){if("=="===e.op){if(ur(e.value))return{unaryFilter:{field:na(e.field),op:"IS_NAN"}};if(cr(e.value))return{unaryFilter:{field:na(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(ur(e.value))return{unaryFilter:{field:na(e.field),op:"IS_NOT_NAN"}};if(cr(e.value))return{unaryFilter:{field:na(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:na(e.field),op:ea(e.op),value:e.value}}}(e):e instanceof si?function(e){const t=e.getFilters().map(e=>ia(e));return 1===t.length?t[0]:{compositeFilter:{op:ta(e.op),filters:t}}}(e):Ve(54877,{filter:e})}function sa(e){const t=[];return e.fields.forEach(e=>t.push(e.canonicalString())),{fieldPaths:t}}function aa(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}function oa(e){return!!e&&"function"==typeof e._toProto&&"ProtoValue"===e._protoValueType}function la(e,t){const n={fields:{}};return t.forEach((t,r)=>{if("string"!=typeof r)throw new Error("Cannot encode map with non-string key: ".concat(r));n.fields[r]=t._toProto(e)}),{mapValue:n}}function ca(e){return{stringValue:e}}function ua(e){return new Is(e,!0)}class ha{constructor(e){this._byteString=e}static fromBase64String(e){try{return new ha(Tn.fromBase64String(e))}catch(e){throw new He(Be.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(e){return new ha(Tn.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}toJSON(){return{type:ha._jsonSchemaVersion,bytes:this.toBase64()}}static fromJSON(e){if(yt(e,ha._jsonSchema))return ha.fromBase64String(e.bytes)}}ha._jsonSchemaVersion="firestore/bytes/1.0",ha._jsonSchema={type:vt("string",ha._jsonSchemaVersion),bytes:vt("string")};class da{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let r=0;r<t.length;++r)if(0===t[r].length)throw new He(Be.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new ct(t)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class fa{constructor(e){this._methodName=e}}class pa{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new He(Be.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new He(Be.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}_compareTo(e){return tt(this._lat,e._lat)||tt(this._long,e._long)}toJSON(){return{latitude:this._lat,longitude:this._long,type:pa._jsonSchemaVersion}}static fromJSON(e){if(yt(e,pa._jsonSchema))return new pa(e.latitude,e.longitude)}}function ma(e){const t={};return void 0!==e.timeoutSeconds&&(t.timeoutSeconds=e.timeoutSeconds),t}pa._jsonSchemaVersion="firestore/geoPoint/1.0",pa._jsonSchema={type:vt("string",pa._jsonSchemaVersion),latitude:vt("number"),longitude:vt("number")};class ga{bt(e){}shutdown(){}}const va="ConnectivityMonitor";class ya{constructor(){this.vt=()=>this.St(),this.Dt=()=>this.xt(),this.Ct=[],this.Ft()}bt(e){this.Ct.push(e)}shutdown(){window.removeEventListener("online",this.vt),window.removeEventListener("offline",this.Dt)}Ft(){window.addEventListener("online",this.vt),window.addEventListener("offline",this.Dt)}St(){De(va,"Network connectivity changed: AVAILABLE");for(const e of this.Ct)e(0)}xt(){De(va,"Network connectivity changed: UNAVAILABLE");for(const e of this.Ct)e(1)}static C(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let wa=null;function ba(){return null===wa?wa=268435456+Math.round(2147483648*Math.random()):wa++,"0x"+wa.toString(16)}const Ea="RestConnection",_a={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery",ExecutePipeline:"executePipeline"};class Aa{get Ot(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const t=e.ssl?"https":"http",n=encodeURIComponent(this.databaseId.projectId),r=encodeURIComponent(this.databaseId.database);this.Mt=t+"://"+e.host,this.Nt="projects/".concat(n,"/databases/").concat(r),this.Lt=this.databaseId.database===Fn?"project_id=".concat(n):"project_id=".concat(n,"&database_id=").concat(r)}Bt(e,t,n,r,i){const s=ba(),a=this.Ut(e,t.toUriEncodedString());De(Ea,"Sending RPC '".concat(e,"' ").concat(s,":"),a,n);const o={"google-cloud-resource-prefix":this.Nt,"x-goog-request-params":this.Lt};this.kt(o,r,i);const l=new URL(a).host,c=(0,u.zJ)(l);return this.qt(e,a,o,n,c).then(t=>(De(Ea,"Received RPC '".concat(e,"' ").concat(s,": "),t),t),t=>{throw Me(Ea,"RPC '".concat(e,"' ").concat(s," failed with error: "),t,"url: ",a,"request:",n),t})}$t(e,t,n,r,i,s){return this.Bt(e,t,n,r,i)}kt(e,t,n){e["X-Goog-Api-Client"]="gl-js/ fire/"+Oe,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((t,n)=>e[n]=t),n&&n.headers.forEach((t,n)=>e[n]=t)}Ut(e,t){const n=_a[e];let r="".concat(this.Mt,"/v1/").concat(t,":").concat(n);return this.databaseInfo.apiKey&&(r="".concat(r,"?key=").concat(encodeURIComponent(this.databaseInfo.apiKey))),r}terminate(){}}class Sa{constructor(e){this.Kt=e.Kt,this.Wt=e.Wt}Qt(e){this.Gt=e}zt(e){this.jt=e}Ht(e){this.Jt=e}onMessage(e){this.Yt=e}close(){this.Wt()}send(e){this.Kt(e)}Zt(){this.Gt()}Xt(){this.jt()}en(e){this.Jt(e)}tn(e){this.Yt(e)}}const Ca="WebChannelConnection",Ta=(e,t,n)=>{e.listen(t,e=>{try{n(e)}catch(e){setTimeout(()=>{throw e},0)}})};class ka extends Aa{constructor(e){super(e),this.nn=[],this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}static rn(){if(!ka.sn){const e=w();Ta(e,y.STAT_EVENT,e=>{e.stat===v.PROXY?De(Ca,"STAT_EVENT: detected buffering proxy"):e.stat===v.NOPROXY&&De(Ca,"STAT_EVENT: detected no buffering proxy")}),ka.sn=!0}}qt(e,t,n,r,i){const s=ba();return new Promise((i,a)=>{const o=new f;o.setWithCredentials(!0),o.listenOnce(m.COMPLETE,()=>{try{switch(o.getLastErrorCode()){case g.NO_ERROR:const n=o.getResponseJson();De(Ca,"XHR for RPC '".concat(e,"' ").concat(s," received:"),JSON.stringify(n)),i(n);break;case g.TIMEOUT:De(Ca,"RPC '".concat(e,"' ").concat(s," timed out")),a(new He(Be.DEADLINE_EXCEEDED,"Request time out"));break;case g.HTTP_ERROR:const r=o.getStatus();if(De(Ca,"RPC '".concat(e,"' ").concat(s," failed with status:"),r,"response text:",o.getResponseText()),r>0){var t;let e=o.getResponseJson();Array.isArray(e)&&(e=e[0]);const n=null===(t=e)||void 0===t?void 0:t.error;if(n&&n.status&&n.message){const e=function(e){const t=e.toLowerCase().replace(/_/g,"-");return Object.values(Be).indexOf(t)>=0?t:Be.UNKNOWN}(n.status);a(new He(e,n.message))}else a(new He(Be.UNKNOWN,"Server responded with status "+o.getStatus()))}else a(new He(Be.UNAVAILABLE,"Connection failed."));break;default:Ve(9055,{_n:e,streamId:s,an:o.getLastErrorCode(),un:o.getLastError()})}}finally{De(Ca,"RPC '".concat(e,"' ").concat(s," completed."))}});const l=JSON.stringify(r);De(Ca,"RPC '".concat(e,"' ").concat(s," sending request:"),r),o.send(t,"POST",l,n,15)})}cn(e,t,n){const r=ba(),i=[this.Mt,"/","google.firestore.v1.Firestore","/",e,"/channel"],s=this.createWebChannelTransport(),a={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/".concat(this.databaseId.projectId,"/databases/").concat(this.databaseId.database)},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},o=this.longPollingOptions.timeoutSeconds;void 0!==o&&(a.longPollingTimeout=Math.round(1e3*o)),this.useFetchStreams&&(a.useFetchStreams=!0),this.kt(a.initMessageHeaders,t,n),a.encodeInitMessageHeaders=!0;const l=i.join("");De(Ca,"Creating RPC '".concat(e,"' stream ").concat(r,": ").concat(l),a);const c=s.createWebChannel(l,a);this.En(c);let u=!1,h=!1;const d=new Sa({Kt:t=>{h?De(Ca,"Not sending because RPC '".concat(e,"' stream ").concat(r," is closed:"),t):(u||(De(Ca,"Opening RPC '".concat(e,"' stream ").concat(r," transport.")),c.open(),u=!0),De(Ca,"RPC '".concat(e,"' stream ").concat(r," sending:"),t),c.send(t))},Wt:()=>c.close()});return Ta(c,p.EventType.OPEN,()=>{h||(De(Ca,"RPC '".concat(e,"' stream ").concat(r," transport opened.")),d.Zt())}),Ta(c,p.EventType.CLOSE,()=>{h||(h=!0,De(Ca,"RPC '".concat(e,"' stream ").concat(r," transport closed")),d.en(),this.hn(c))}),Ta(c,p.EventType.ERROR,t=>{h||(h=!0,Me(Ca,"RPC '".concat(e,"' stream ").concat(r," transport errored. Name:"),t.name,"Message:",t.message),d.en(new He(Be.UNAVAILABLE,"The operation could not be completed")))}),Ta(c,p.EventType.MESSAGE,t=>{if(!h){var n;const i=t.data[0];je(!!i,16349);const s=i,a=(null===s||void 0===s?void 0:s.error)||(null===(n=s[0])||void 0===n?void 0:n.error);if(a){De(Ca,"RPC '".concat(e,"' stream ").concat(r," received error:"),a);const t=a.status;let n=function(e){const t=Wi[e];if(void 0!==t)return Yi(t)}(t),i=a.message;"NOT_FOUND"===t&&i.includes("database")&&i.includes("does not exist")&&i.includes(this.databaseId.database)&&Me("Database '".concat(this.databaseId.database,"' not found. Please check your project configuration.")),void 0===n&&(n=Be.INTERNAL,i="Unknown error status: "+t+" with message "+a.message),h=!0,d.en(new He(n,i)),c.close()}else De(Ca,"RPC '".concat(e,"' stream ").concat(r," received:"),i),d.tn(i)}}),ka.rn(),setTimeout(()=>{d.Xt()},0),d}terminate(){this.nn.forEach(e=>e.close()),this.nn=[]}En(e){this.nn.push(e)}hn(e){this.nn=this.nn.filter(t=>t===e)}kt(e,t,n){super.kt(e,t,n),this.databaseInfo.apiKey&&(e["x-goog-api-key"]=this.databaseInfo.apiKey)}createWebChannelTransport(){return b()}}function xa(e){return new ka(e)}ka.sn=!1;class Na{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1.5,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:6e4;this.Tn=e,this.timerId=t,this.Pn=n,this.Rn=r,this.In=i,this.An=0,this.Vn=null,this.dn=Date.now(),this.reset()}reset(){this.An=0}fn(){this.An=this.In}mn(e){this.cancel();const t=Math.floor(this.An+this.pn()),n=Math.max(0,Date.now()-this.dn),r=Math.max(0,t-n);r>0&&De("ExponentialBackoff","Backing off for ".concat(r," ms (base delay: ").concat(this.An," ms, delay with jitter: ").concat(t," ms, last attempt: ").concat(n," ms ago)")),this.Vn=this.Tn.enqueueAfterDelay(this.timerId,r,()=>(this.dn=Date.now(),e())),this.An*=this.Rn,this.An<this.Pn&&(this.An=this.Pn),this.An>this.In&&(this.An=this.In)}gn(){null!==this.Vn&&(this.Vn.skipDelay(),this.Vn=null)}cancel(){null!==this.Vn&&(this.Vn.cancel(),this.Vn=null)}pn(){return(Math.random()-.5)*this.An}}const Ia="PersistentStream";class Oa{constructor(e,t,n,r,i,s,a,o){this.Tn=e,this.yn=n,this.wn=r,this.connection=i,this.authCredentialsProvider=s,this.appCheckCredentialsProvider=a,this.listener=o,this.state=0,this.bn=0,this.vn=null,this.Sn=null,this.stream=null,this.Dn=0,this.xn=new Na(e,t)}Cn(){return 1===this.state||5===this.state||this.Fn()}Fn(){return 2===this.state||3===this.state}start(){this.Dn=0,4!==this.state?this.auth():this.On()}async stop(){this.Cn()&&await this.close(0)}Mn(){this.state=0,this.xn.reset()}Nn(){this.Fn()&&null===this.vn&&(this.vn=this.Tn.enqueueAfterDelay(this.yn,6e4,()=>this.Ln()))}Bn(e){this.Un(),this.stream.send(e)}async Ln(){if(this.Fn())return this.close(0)}Un(){this.vn&&(this.vn.cancel(),this.vn=null)}kn(){this.Sn&&(this.Sn.cancel(),this.Sn=null)}async close(e,t){this.Un(),this.kn(),this.xn.cancel(),this.bn++,4!==e?this.xn.reset():t&&t.code===Be.RESOURCE_EXHAUSTED?(Le(t.toString()),Le("Using maximum backoff delay to prevent overloading the backend."),this.xn.fn()):t&&t.code===Be.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.qn(),this.stream.close(),this.stream=null),this.state=e,await this.listener.Ht(t)}qn(){}auth(){this.state=1;const e=this.$n(this.bn),t=this.bn;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(e=>{let n=(0,c.A)(e,2),r=n[0],i=n[1];this.bn===t&&this.Kn(r,i)},t=>{e(()=>{const e=new He(Be.UNKNOWN,"Fetching auth token failed: "+t.message);return this.Wn(e)})})}Kn(e,t){const n=this.$n(this.bn);this.stream=this.Qn(e,t),this.stream.Qt(()=>{n(()=>this.listener.Qt())}),this.stream.zt(()=>{n(()=>(this.state=2,this.Sn=this.Tn.enqueueAfterDelay(this.wn,1e4,()=>(this.Fn()&&(this.state=3),Promise.resolve())),this.listener.zt()))}),this.stream.Ht(e=>{n(()=>this.Wn(e))}),this.stream.onMessage(e=>{n(()=>1==++this.Dn?this.Gn(e):this.onNext(e))})}On(){this.state=5,this.xn.mn(async()=>{this.state=0,this.start()})}Wn(e){return De(Ia,"close with error: ".concat(e)),this.stream=null,this.close(4,e)}$n(e){return t=>{this.Tn.enqueueAndForget(()=>this.bn===e?t():(De(Ia,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class Ra extends Oa{constructor(e,t,n,r,i,s){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,n,r,s),this.serializer=i}Qn(e,t){return this.connection.cn("Listen",e,t)}Gn(e){return this.onNext(e)}onNext(e){this.xn.reset();const t=function(e,t){let n;if("targetChange"in t){t.targetChange;const r=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:Ve(39313,{state:e})}(t.targetChange.targetChangeType||"NO_CHANGE"),i=t.targetChange.targetIds||[],s=function(e,t){return e.useProto3Json?(je(void 0===t||"string"==typeof t,58123),Tn.fromBase64String(t||"")):(je(void 0===t||t instanceof Buffer||t instanceof Uint8Array,16193),Tn.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),a=t.targetChange.cause,o=a&&function(e){const t=void 0===e.code?Be.UNKNOWN:Yi(e.code);return new He(t,e.message||"")}(a);n=new Es(r,i,s,o||null)}else if("documentChange"in t){t.documentChange;const r=t.documentChange;r.document,r.document.name,r.document.updateTime;const i=zs(e,r.document.name),s=Ms(r.document.updateTime),a=r.document.createTime?Ms(r.document.createTime):_t.min(),o=new gr({mapValue:{fields:r.document.fields}}),l=_i.newFoundDocument(i,s,a,o),c=r.targetIds||[],u=r.removedTargetIds||[];n=new ws(c,u,l.key,l)}else if("documentDelete"in t){t.documentDelete;const r=t.documentDelete;r.document;const i=zs(e,r.document),s=r.readTime?Ms(r.readTime):_t.min(),a=_i.newNoDocument(i,s),o=r.removedTargetIds||[];n=new ws([],o,a.key,a)}else if("documentRemove"in t){t.documentRemove;const r=t.documentRemove;r.document;const i=zs(e,r.document),s=r.removedTargetIds||[];n=new ws([],s,i,null)}else{if(!("filter"in t))return Ve(11601,{ft:t});{t.filter;const e=t.filter;e.targetId;const r=e.count,i=void 0===r?0:r,s=e.unchangedNames,a=new Gi(i,s),o=e.targetId;n=new bs(o,a)}}return n}(this.serializer,e),n=function(e){if(!("targetChange"in e))return _t.min();const t=e.targetChange;return t.targetIds&&t.targetIds.length?_t.min():t.readTime?Ms(t.readTime):_t.min()}(e);return this.listener.zn(t,n)}jn(e){const t={};t.database=qs(this.serializer),t.addTarget=function(e,t){let n;const r=t.target;if(n=ki(r)?{pipelineQuery:Xs(e,r)}:xi(r)?{documents:Qs(e,r)}:{query:Ys(e,r).yt},n.targetId=t.targetId,t.resumeToken.approximateByteSize()>0){n.resumeToken=Ds(e,t.resumeToken);const r=Os(e,t.expectedCount);null!==r&&(n.expectedCount=r)}else if(t.snapshotVersion.compareTo(_t.min())>0){n.readTime=Rs(e,t.snapshotVersion.toTimestamp());const r=Os(e,t.expectedCount);null!==r&&(n.expectedCount=r)}return n}(this.serializer,e);const n=function(e,t){const n=function(e){switch(e){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return Ve(28987,{purpose:e})}}(t.purpose);return null==n?null:{"goog-listen-tags":n}}(this.serializer,e);n&&(t.labels=n),this.Bn(t)}Hn(e){const t={};t.database=qs(this.serializer),t.removeTarget=e,this.Bn(t)}}class Pa extends Oa{constructor(e,t,n,r,i,s){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,n,r,s),this.serializer=i}get Jn(){return this.Dn>0}start(){this.lastStreamToken=void 0,super.start()}qn(){this.Jn&&this.Yn([])}Qn(e,t){return this.connection.cn("Write",e,t)}Gn(e){return je(!!e.streamToken,31322),this.lastStreamToken=e.streamToken,je(!e.writeResults||0===e.writeResults.length,55816),this.listener.Zn()}onNext(e){je(!!e.streamToken,12678),this.lastStreamToken=e.streamToken,this.xn.reset();const t=function(e,t){return e&&e.length>0?(je(void 0!==t,14353),e.map(e=>function(e,t){let n=e.updateTime?Ms(e.updateTime):Ms(t);return n.isEqual(_t.min())&&(n=Ms(t)),new Vr(n,e.transformResults||[])}(e,t))):[]}(e.writeResults,e.commitTime),n=Ms(e.commitTime);return this.listener.Xn(n,t)}er(){const e={};e.database=qs(this.serializer),this.Bn(e)}Yn(e){const t={streamToken:this.lastStreamToken,writes:e.map(e=>Ks(this.serializer,e))};this.Bn(t)}}class Da{}class La extends Da{constructor(e,t,n,r){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=n,this.serializer=r,this.tr=!1}nr(){if(this.tr)throw new He(Be.FAILED_PRECONDITION,"The client has already been terminated.")}Bt(e,t,n,r){return this.nr(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(i=>{let s=(0,c.A)(i,2),a=s[0],o=s[1];return this.connection.Bt(e,Vs(t,n),r,a,o)}).catch(e=>{throw"FirebaseError"===e.name?(e.code===Be.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new He(Be.UNKNOWN,e.toString())})}$t(e,t,n,r,i){return this.nr(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(s=>{let a=(0,c.A)(s,2),o=a[0],l=a[1];return this.connection.$t(e,Vs(t,n),r,o,l,i)}).catch(e=>{throw"FirebaseError"===e.name?(e.code===Be.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new He(Be.UNKNOWN,e.toString())})}terminate(){this.tr=!0,this.connection.terminate()}}function Ma(e,t,n,r){return new La(e,t,n,r)}const Ua="ComponentProvider",Va=new Map;function Fa(e,t,n,r,i){return new Vn(e,t,n,i.host,i.ssl,i.experimentalForceLongPolling,i.experimentalAutoDetectLongPolling,ma(i.experimentalLongPollingOptions),i.useFetchStreams,i.isUsingEmulator,r)}const ja={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},za=41943040;class Ba{static withCacheSize(e){return new Ba(e,Ba.DEFAULT_COLLECTION_PERCENTILE,Ba.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}}Ba.DEFAULT_COLLECTION_PERCENTILE=10,Ba.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Ba.DEFAULT=new Ba(za,Ba.DEFAULT_COLLECTION_PERCENTILE,Ba.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Ba.DISABLED=new Ba(-1,0,0);const Ha="LruGarbageCollector",qa=1048576;function Ga(e,t){let n=(0,c.A)(e,2),r=n[0],i=n[1],s=(0,c.A)(t,2),a=s[0],o=s[1];const l=tt(r,a);return 0===l?tt(i,o):l}class Wa{constructor(e){this.rr=e,this.buffer=new yn(Ga),this.ir=0}sr(){return++this.ir}_r(e){const t=[e,this.sr()];if(this.buffer.size<this.rr)this.buffer=this.buffer.add(t);else{const e=this.buffer.last();Ga(t,e)<0&&(this.buffer=this.buffer.delete(e).add(t))}}get maxValue(){return this.buffer.last()[0]}}class Ka{constructor(e,t,n){this.garbageCollector=e,this.asyncQueue=t,this.localStore=n,this.ar=null}start(){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.ur(6e4)}stop(){this.ar&&(this.ar.cancel(),this.ar=null)}get started(){return null!==this.ar}ur(e){De(Ha,"Garbage collection scheduled in ".concat(e,"ms")),this.ar=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,async()=>{this.ar=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(e){Dt(e)?De(Ha,"Ignoring IndexedDB error during garbage collection: ",e):await Ot(e)}await this.ur(3e5)})}}class Qa{constructor(e,t){this.cr=e,this.params=t}calculateTargetCount(e,t){return this.cr.lr(e).next(e=>Math.floor(t/100*e))}nthSequenceNumber(e,t){if(0===t)return Rt.resolve(Lt.ce);const n=new Wa(t);return this.cr.forEachTarget(e,e=>n._r(e.sequenceNumber)).next(()=>this.cr.Er(e,e=>n._r(e))).next(()=>n.maxValue)}removeTargets(e,t,n){return this.cr.removeTargets(e,t,n)}removeOrphanedDocuments(e,t){return this.cr.removeOrphanedDocuments(e,t)}collect(e,t){return-1===this.params.cacheSizeCollectionThreshold?(De("LruGarbageCollector","Garbage collection skipped; disabled"),Rt.resolve(ja)):this.getCacheSize(e).next(n=>n<this.params.cacheSizeCollectionThreshold?(De("LruGarbageCollector","Garbage collection skipped; Cache size ".concat(n," is lower than threshold ").concat(this.params.cacheSizeCollectionThreshold)),ja):this.hr(e,t))}getCacheSize(e){return this.cr.getCacheSize(e)}hr(e,t){let n,r,i,s,a,o,l;const c=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(t=>(t>this.params.maximumSequenceNumbersToCollect?(De("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of ".concat(this.params.maximumSequenceNumbersToCollect," from ").concat(t)),r=this.params.maximumSequenceNumbersToCollect):r=t,s=Date.now(),this.nthSequenceNumber(e,r))).next(r=>(n=r,a=Date.now(),this.removeTargets(e,n,t))).next(t=>(i=t,o=Date.now(),this.removeOrphanedDocuments(e,n))).next(e=>(l=Date.now(),Pe()<=E.$b.DEBUG&&De("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in ".concat(s-c,"ms\n\tDetermined least recently used ").concat(r," in ")+(a-s)+"ms\n"+"\tRemoved ".concat(i," targets in ")+(o-a)+"ms\n"+"\tRemoved ".concat(e," documents in ")+(l-o)+"ms\n"+"Total Duration: ".concat(l-c,"ms")),Rt.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:i,documentsRemoved:e})))}}function Ya(e,t){return new Qa(e,t)}const $a="firestore.googleapis.com",Xa=!0;class Ja{constructor(e){var t,n;if(void 0===e.host){if(void 0!==e.ssl)throw new He(Be.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=$a,this.ssl=Xa}else this.host=e.host,this.ssl=null!==(t=e.ssl)&&void 0!==t?t:Xa;if(this.isUsingEmulator=void 0!==e.emulatorOptions,this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=za;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<qa)throw new He(Be.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}(function(e,t,n,r){if(!0===t&&!0===r)throw new He(Be.INVALID_ARGUMENT,"".concat(e," and ").concat(n," cannot be used together."))})("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:void 0===e.experimentalAutoDetectLongPolling?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=ma(null!==(n=e.experimentalLongPollingOptions)&&void 0!==n?n:{}),function(e){if(void 0!==e.timeoutSeconds){if(isNaN(e.timeoutSeconds))throw new He(Be.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(e.timeoutSeconds," (must not be NaN)"));if(e.timeoutSeconds<5)throw new He(Be.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(e.timeoutSeconds," (minimum allowed value is 5)"));if(e.timeoutSeconds>30)throw new He(Be.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(e.timeoutSeconds," (maximum allowed value is 30)"))}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&function(e,t){return e.timeoutSeconds===t.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class Za{constructor(e,t,n,r){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=n,this._app=r,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Ja({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new He(Be.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return"notTerminated"!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new He(Be.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Ja(e),this._emulatorOptions=e.emulatorOptions||{},void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new We;switch(e.type){case"firstParty":return new $e(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new He(Be.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return"notTerminated"===this._terminateTask&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){"notTerminated"===this._terminateTask?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){const t=Va.get(e);t&&(De(Ua,"Removing Datastore"),Va.delete(e),t.terminate())}(this),Promise.resolve()}}class eo{constructor(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}withConverter(e){return new eo(this.firestore,e,this._query)}}class to{constructor(e,t,n){this.converter=t,this._key=n,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new no(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new to(this.firestore,e,this._key)}toJSON(){return{type:to._jsonSchemaVersion,referencePath:this._key.toString()}}static fromJSON(e,t,n){if(yt(t,to._jsonSchema))return new to(e,n||null,new ut(ot.fromString(t.referencePath)))}}to._jsonSchemaVersion="firestore/documentReference/1.0",to._jsonSchema={type:vt("string",to._jsonSchemaVersion),referencePath:vt("string")};class no extends eo{constructor(e,t,n){super(e,t,Oi(n)),this._path=n,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new to(this.firestore,null,new ut(e))}withConverter(e){return new no(this.firestore,e,this._path)}}function ro(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(e=(0,u.Ku)(e),ht("collection","path",t),e instanceof Za){const n=ot.fromString(t,...r);return ft(n),new no(e,null,n)}{if(!(e instanceof to||e instanceof no))throw new He(Be.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const n=e._path.child(ot.fromString(t,...r));return ft(n),new no(e.firestore,null,n)}}function io(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(e=(0,u.Ku)(e),1===arguments.length&&(t=et.newId()),ht("doc","path",t),e instanceof Za){const n=ot.fromString(t,...r);return dt(n),new to(e,null,new ut(n))}{if(!(e instanceof to||e instanceof no))throw new He(Be.INVALID_ARGUMENT,"Expected first argument to doc() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const n=e._path.child(ot.fromString(t,...r));return dt(n),new to(e.firestore,e instanceof no?e.converter:null,new ut(n))}}class so{constructor(e){this._values=(e||[]).map(e=>e)}toArray(){return this._values.map(e=>e)}isEqual(e){return function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}(this._values,e._values)}toJSON(){return{type:so._jsonSchemaVersion,vectorValues:this._values}}static fromJSON(e){if(yt(e,so._jsonSchema)){if(Array.isArray(e.vectorValues)&&e.vectorValues.every(e=>"number"==typeof e))return new so(e.vectorValues);throw new He(Be.INVALID_ARGUMENT,"Expected 'vectorValues' field to be a number array")}}}so._jsonSchemaVersion="firestore/vectorValue/1.0",so._jsonSchema={type:vt("string",so._jsonSchemaVersion),vectorValues:vt("object")};const ao=/^__.*__$/;class oo{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return null!==this.fieldMask?new Qr(e,this.data,this.fieldMask,t,this.fieldTransforms):new Kr(e,this.data,t,this.fieldTransforms)}}class lo{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return new Qr(e,this.data,this.fieldMask,t,this.fieldTransforms)}}function co(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Ve(40011,{dataSource:e})}}class uo{constructor(e,t,n,r,i,s){this.settings=e,this.databaseId=t,this.serializer=n,this.ignoreUndefinedProperties=r,void 0===i&&this.validatePath(),this.fieldTransforms=i||[],this.fieldMask=s||[]}get path(){return this.settings.path}get dataSource(){return this.settings.dataSource}contextWith(e){return new uo((0,s.A)((0,s.A)({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}childContextForField(e){var t;const n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.contextWith({path:n,arrayElement:!1});return r.validatePathSegment(e),r}childContextForFieldPath(e){var t;const n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.contextWith({path:n,arrayElement:!1});return r.validatePath(),r}childContextForArray(e){return this.contextWith({path:void 0,arrayElement:!0})}createError(e){return Oo(e,this.settings.methodName,this.settings.hasConverter||!1,this.path,this.settings.targetDoc)}contains(e){return void 0!==this.fieldMask.find(t=>e.isPrefixOf(t))||void 0!==this.fieldTransforms.find(t=>e.isPrefixOf(t.field))}validatePath(){if(this.path)for(let e=0;e<this.path.length;e++)this.validatePathSegment(this.path.get(e))}validatePathSegment(e){if(0===e.length)throw this.createError("Document fields must not be empty");if(co(this.dataSource)&&ao.test(e))throw this.createError('Document fields cannot begin and end with "__"')}}class ho{constructor(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer=n||ua(e)}createContext(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new uo({dataSource:e,methodName:t,targetDoc:n,path:ct.emptyPath(),arrayElement:!1,hasConverter:r},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function fo(e){const t=e._freezeSettings(),n=ua(e._databaseId);return new ho(e._databaseId,!!t.ignoreUndefinedProperties,n)}function po(e,t,n,r,i){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const a=e.createContext(s.merge||s.mergeFields?2:0,t,n,i);ko("Data must be an object, but it was:",a,r);const o=Co(r,a);let l,c;if(s.merge)l=new bn(a.fieldMask),c=a.fieldTransforms;else if(s.mergeFields){const e=[];for(const r of s.mergeFields){const i=xo(t,r,n);if(!a.contains(i))throw new He(Be.INVALID_ARGUMENT,"Field '".concat(i,"' is specified in your field mask but missing from your input data."));Ro(e,i)||e.push(i)}l=new bn(e),c=a.fieldTransforms.filter(e=>l.covers(e.field))}else l=null,c=a.fieldTransforms;return new oo(new gr(o),l,c)}class mo extends fa{_toFieldTransform(e){if(2!==e.dataSource)throw 1===e.dataSource?e.createError("".concat(this._methodName,"() can only appear at the top level of your update data")):e.createError("".concat(this._methodName,"() cannot be used with set() unless you pass {merge:true}"));return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof mo}}function go(e,t,n){return new uo({dataSource:3,targetDoc:t.settings.targetDoc,methodName:e._methodName,arrayElement:n},t.databaseId,t.serializer,t.ignoreUndefinedProperties)}class vo extends fa{_toFieldTransform(e){return new Ur(e.path,new Cr)}isEqual(e){return e instanceof vo}}class yo extends fa{constructor(e,t){super(e),this.Tr=t}_toFieldTransform(e){const t=go(this,e,!0),n=this.Tr.map(e=>So(e,t)),r=new Tr(n);return new Ur(e.path,r)}isEqual(e){return e instanceof yo&&(0,u.bD)(this.Tr,e.Tr)}}class wo extends fa{constructor(e,t){super(e),this.Tr=t}_toFieldTransform(e){const t=go(this,e,!0),n=this.Tr.map(e=>So(e,t)),r=new xr(n);return new Ur(e.path,r)}isEqual(e){return e instanceof wo&&(0,u.bD)(this.Tr,e.Tr)}}class bo extends fa{constructor(e,t){super(e),this.Pr=t}_toFieldTransform(e){const t=new Or(e.serializer,br(e.serializer,this.Pr));return new Ur(e.path,t)}isEqual(e){return e instanceof bo&&(this.Pr===e.Pr||Number.isNaN(this.Pr)&&Number.isNaN(e.Pr))}}function Eo(e,t,n,r){const i=e.createContext(1,t,n);ko("Data must be an object, but it was:",i,r);const s=[],a=gr.empty();_n(r,(e,r)=>{const o=Io(t,e,n);r=(0,u.Ku)(r);const l=i.childContextForFieldPath(o);if(r instanceof mo)s.push(o);else{const e=So(r,l);null!=e&&(s.push(o),a.set(o,e))}});const o=new bn(s);return new lo(a,o,i.fieldTransforms)}function _o(e,t,n,r,i,s){const a=e.createContext(1,t,n),o=[xo(t,r,n)],l=[i];if(s.length%2!=0)throw new He(Be.INVALID_ARGUMENT,"Function ".concat(t,"() needs to be called with an even number of arguments that alternate between field names and values."));for(let u=0;u<s.length;u+=2)o.push(xo(t,s[u])),l.push(s[u+1]);const c=[],h=gr.empty();for(let f=o.length-1;f>=0;--f)if(!Ro(c,o[f])){const e=o[f];let t=l[f];t=(0,u.Ku)(t);const n=a.childContextForFieldPath(e);if(t instanceof mo)c.push(e);else{const r=So(t,n);null!=r&&(c.push(e),h.set(e,r))}}const d=new bn(c);return new lo(h,d,a.fieldTransforms)}function Ao(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return So(n,e.createContext(r?4:3,t))}function So(e,t,n){if(To(e=(0,u.Ku)(e)))return ko("Unsupported field value:",t,e),Co(e,t);if(e instanceof fa)return function(e,t){if(!co(t.dataSource))throw t.createError("".concat(e._methodName,"() can only be used with update() and set()"));if(!t.path)throw t.createError("".concat(e._methodName,"() is not currently supported inside arrays"));const n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.arrayElement&&4!==t.dataSource)throw t.createError("Nested arrays are not supported");return function(e,t){const n=[];let r=0;for(const i of e){let e=So(i,t.childContextForArray(r));null==e&&(e={nullValue:"NULL_VALUE"}),n.push(e),r++}return{arrayValue:{values:n}}}(e,t)}return function(e,t,n){if(null===(e=(0,u.Ku)(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return br(t.serializer,e,n);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){const n=Et.fromDate(e);return{timestampValue:Rs(t.serializer,n)}}if(e instanceof Et){const n=new Et(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:Rs(t.serializer,n)}}if(e instanceof pa)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof ha)return{bytesValue:Ds(t.serializer,e._byteString)};if(e instanceof to){const n=t.databaseId,r=e.firestore._databaseId;if(!r.isEqual(n))throw t.createError("Document reference is for database ".concat(r.projectId,"/").concat(r.database," but should be for database ").concat(n.projectId,"/").concat(n.database));return{referenceValue:Us(e.firestore._databaseId||t.databaseId,e._key.path)}}if(e instanceof so)return function(e,t){const n=e instanceof so?e.toArray():e,r={fields:{[zn]:{stringValue:qn},[Gn]:{arrayValue:{values:n.map(e=>{if("number"!=typeof e)throw t.createError("VectorValues must only contain numeric values.");return yr(t.serializer,e)})}}}};return{mapValue:r}}(e,t);if(oa(e))return e._toProto(t.serializer);throw t.createError("Unsupported field value: ".concat(mt(e)))}(e,t,n)}function Co(e,t){const n={};return Sn(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):_n(e,(e,r)=>{const i=So(r,t.childContextForField(e));null!=i&&(n[e]=i)}),{mapValue:{fields:n}}}function To(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof Et||e instanceof pa||e instanceof ha||e instanceof to||e instanceof fa||e instanceof so||oa(e))}function ko(e,t,n){if(!To(n)||!pt(n)){const r=mt(n);throw"an object"===r?t.createError(e+" a custom object"):t.createError(e+" "+r)}}function xo(e,t,n){if((t=(0,u.Ku)(t))instanceof da)return t._internalPath;if("string"==typeof t)return Io(e,t);throw Oo("Field path arguments must be of type string or ",e,!1,void 0,n)}const No=new RegExp("[~\\*/\\[\\]]");function Io(e,t,n){if(t.search(No)>=0)throw Oo("Invalid field path (".concat(t,"). Paths must not contain '~', '*', '/', '[', or ']'"),e,!1,void 0,n);try{return new da(...t.split("."))._internalPath}catch(r){throw Oo("Invalid field path (".concat(t,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"),e,!1,void 0,n)}}function Oo(e,t,n,r,i){const s=r&&!r.isEmpty(),a=void 0!==i;let o="Function ".concat(t,"() called with invalid data");n&&(o+=" (via `toFirestore()`)"),o+=". ";let l="";return(s||a)&&(l+=" (found",s&&(l+=" in field ".concat(r)),a&&(l+=" in document ".concat(i)),l+=")"),new He(Be.INVALID_ARGUMENT,o+e+l)}function Ro(e,t){return e.some(e=>e.isEqual(t))}function Po(e){return"function"==typeof e._readUserData}class Do{constructor(e){this.optionDefinitions=e}_getKnownOptions(e,t){const n=gr.empty();for(const i in this.optionDefinitions)if(this.optionDefinitions.hasOwnProperty(i)){const s=this.optionDefinitions[i];if(i in e){var r;const a=e[i];let o;s.nestedOptions&&pt(a)?o={mapValue:{fields:new Do(s.nestedOptions).getOptionsProto(t,a)}}:a&&(o=null!==(r=So(a,t))&&void 0!==r?r:void 0),o&&n.set(ct.fromServerFormat(s.serverName),o)}}return n}getOptionsProto(e,t,n){var r;const i=this._getKnownOptions(t,e);if(n){const t=new Map(An(n,(t,n)=>[ct.fromServerFormat(n),void 0!==t?So(t,e):null]));i.setAll(t)}return null!==(r=i.value.mapValue.fields)&&void 0!==r?r:{}}}function Lo(){return new vo("serverTimestamp")}function Mo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new yo("arrayUnion",t)}function Uo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new wo("arrayRemove",t)}function Vo(e){return new bo("increment",e)}function Fo(e){let t;return e instanceof Bo?e:(t=pt(e)?rl(e):e instanceof Array?function(e){return function(e,t){return new Jo("array",e.map(e=>Fo(e)),t)}(e,"array")}(e):Xo(e,void 0),t)}function jo(e){if(e instanceof Bo)return e;if(e instanceof so)return $o(e);if(Array.isArray(e))return $o(function(e){return new so(e)}(e));throw new Error("Unsupported value: "+typeof e)}function zo(e){return jt(e)?Qo(e):Fo(e)}class Bo{constructor(){this._protoValueType="ProtoValue"}add(e){return new Jo("add",[this,Fo(e)],"add")}asBoolean(){if(this instanceof Zo)return this;if(this instanceof Yo)return new tl(this);if(this instanceof Ko)return new nl(this);if(this instanceof Jo)return new el(this);throw new He("invalid-argument","Conversion of type ".concat(typeof this," to BooleanExpression not supported."))}subtract(e){return new Jo("subtract",[this,Fo(e)],"subtract")}multiply(e){return new Jo("multiply",[this,Fo(e)],"multiply")}divide(e){return new Jo("divide",[this,Fo(e)],"divide")}mod(e){return new Jo("mod",[this,Fo(e)],"mod")}equal(e){return new Jo("equal",[this,Fo(e)],"equal").asBoolean()}notEqual(e){return new Jo("not_equal",[this,Fo(e)],"notEqual").asBoolean()}lessThan(e){return new Jo("less_than",[this,Fo(e)],"lessThan").asBoolean()}lessThanOrEqual(e){return new Jo("less_than_or_equal",[this,Fo(e)],"lessThanOrEqual").asBoolean()}greaterThan(e){return new Jo("greater_than",[this,Fo(e)],"greaterThan").asBoolean()}greaterThanOrEqual(e){return new Jo("greater_than_or_equal",[this,Fo(e)],"greaterThanOrEqual").asBoolean()}arrayConcat(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=[e,...n].map(e=>Fo(e));return new Jo("array_concat",[this,...i],"arrayConcat")}arrayContains(e){return new Jo("array_contains",[this,Fo(e)],"arrayContains").asBoolean()}arrayContainsAll(e){const t=Array.isArray(e)?new Wo(e.map(Fo),"arrayContainsAll"):e;return new Jo("array_contains_all",[this,t],"arrayContainsAll").asBoolean()}arrayContainsAny(e){const t=Array.isArray(e)?new Wo(e.map(Fo),"arrayContainsAny"):e;return new Jo("array_contains_any",[this,t],"arrayContainsAny").asBoolean()}arrayReverse(){return new Jo("array_reverse",[this])}arrayLength(){return new Jo("array_length",[this],"arrayLength")}equalAny(e){const t=Array.isArray(e)?new Wo(e.map(Fo),"equalAny"):e;return new Jo("equal_any",[this,t],"equalAny").asBoolean()}notEqualAny(e){const t=Array.isArray(e)?new Wo(e.map(Fo),"notEqualAny"):e;return new Jo("not_equal_any",[this,t],"notEqualAny").asBoolean()}exists(){return new Jo("exists",[this],"exists").asBoolean()}charLength(){return new Jo("char_length",[this],"charLength")}like(e){return new Jo("like",[this,Fo(e)],"like").asBoolean()}regexContains(e){return new Jo("regex_contains",[this,Fo(e)],"regexContains").asBoolean()}regexFind(e){return new Jo("regex_find",[this,Fo(e)],"regexFind")}regexFindAll(e){return new Jo("regex_find_all",[this,Fo(e)],"regexFindAll")}regexMatch(e){return new Jo("regex_match",[this,Fo(e)],"regexMatch").asBoolean()}stringContains(e){return new Jo("string_contains",[this,Fo(e)],"stringContains").asBoolean()}startsWith(e){return new Jo("starts_with",[this,Fo(e)],"startsWith").asBoolean()}endsWith(e){return new Jo("ends_with",[this,Fo(e)],"endsWith").asBoolean()}toLower(){return new Jo("to_lower",[this],"toLower")}toUpper(){return new Jo("to_upper",[this],"toUpper")}trim(e){const t=[this];return e&&t.push(Fo(e)),new Jo("trim",t,"trim")}ltrim(e){const t=[this];return e&&t.push(Fo(e)),new Jo("ltrim",t,"ltrim")}rtrim(e){const t=[this];return e&&t.push(Fo(e)),new Jo("rtrim",t,"rtrim")}type(){return new Jo("type",[this])}isType(e){return new Jo("is_type",[this,$o(e)],"isType").asBoolean()}stringConcat(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=[e,...n].map(Fo);return new Jo("string_concat",[this,...i],"stringConcat")}stringIndexOf(e){return new Jo("string_index_of",[this,Fo(e)],"stringIndexOf")}stringRepeat(e){return new Jo("string_repeat",[this,Fo(e)],"stringRepeat")}stringReplaceAll(e,t){return new Jo("string_replace_all",[this,Fo(e),Fo(t)],"stringReplaceAll")}stringReplaceOne(e,t){return new Jo("string_replace_one",[this,Fo(e),Fo(t)],"stringReplaceOne")}concat(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=[e,...n].map(Fo);return new Jo("concat",[this,...i],"concat")}reverse(){return new Jo("reverse",[this],"reverse")}arrayFilter(e,t){return new Jo("array_filter",[this,Fo(e),t],"arrayFilter")}arrayTransform(e,t){return new Jo("array_transform",[this,Fo(e),t],"arrayTransform")}arrayTransformWithIndex(e,t,n){return new Jo("array_transform",[this,Fo(e),Fo(t),n],"arrayTransformWithIndex")}arraySlice(e,t){const n=[this,Fo(e)];return void 0!==t&&n.push(Fo(t)),new Jo("array_slice",n,"arraySlice")}arrayFirst(){return new Jo("array_first",[this],"arrayFirst")}arrayFirstN(e){return new Jo("array_first_n",[this,Fo(e)],"arrayFirstN")}arrayLast(){return new Jo("array_last",[this],"arrayLast")}arrayLastN(e){return new Jo("array_last_n",[this,Fo(e)],"arrayLastN")}arrayMaximum(){return new Jo("maximum",[this],"arrayMaximum")}arrayMaximumN(e){return new Jo("maximum_n",[this,Fo(e)],"arrayMaximumN")}arrayMinimum(){return new Jo("minimum",[this],"arrayMinimum")}arrayMinimumN(e){return new Jo("minimum_n",[this,Fo(e)],"arrayMinimumN")}arrayIndexOf(e){return new Jo("array_index_of",[this,Fo(e),Fo("first")],"arrayIndexOf")}arrayLastIndexOf(e){return new Jo("array_index_of",[this,Fo(e),Fo("last")],"arrayLastIndexOf")}arrayIndexOfAll(e){return new Jo("array_index_of_all",[this,Fo(e)],"arrayIndexOfAll")}byteLength(){return new Jo("byte_length",[this],"byteLength")}ceil(){return new Jo("ceil",[this])}floor(){return new Jo("floor",[this])}abs(){return new Jo("abs",[this])}exp(){return new Jo("exp",[this])}mapGet(e){return new Jo("map_get",[this,$o(e)],"mapGet")}mapSet(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];const s=[this,Fo(e),Fo(t),...r.map(Fo)];return new Jo("map_set",s,"mapSet")}mapKeys(){return new Jo("map_keys",[this],"mapKeys")}mapValues(){return new Jo("map_values",[this],"mapValues")}mapEntries(){return new Jo("map_entries",[this],"mapEntries")}getField(e){return new Jo("get_field",[this,Fo(e)],"get_field")}count(){return Ho._create("count",[this],"count")}sum(){return Ho._create("sum",[this],"sum")}average(){return Ho._create("average",[this],"average")}minimum(){return Ho._create("minimum",[this],"minimum")}maximum(){return Ho._create("maximum",[this],"maximum")}first(){return Ho._create("first",[this],"first")}last(){return Ho._create("last",[this],"last")}arrayAgg(){return Ho._create("array_agg",[this],"arrayAgg")}arrayAggDistinct(){return Ho._create("array_agg_distinct",[this],"arrayAggDistinct")}countDistinct(){return Ho._create("count_distinct",[this],"countDistinct")}logicalMaximum(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=[e,...n];return new Jo("maximum",[this,...i.map(Fo)],"logicalMaximum")}logicalMinimum(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=[e,...n];return new Jo("minimum",[this,...i.map(Fo)],"minimum")}vectorLength(){return new Jo("vector_length",[this],"vectorLength")}cosineDistance(e){return new Jo("cosine_distance",[this,jo(e)],"cosineDistance")}dotProduct(e){return new Jo("dot_product",[this,jo(e)],"dotProduct")}euclideanDistance(e){return new Jo("euclidean_distance",[this,jo(e)],"euclideanDistance")}unixMicrosToTimestamp(){return new Jo("unix_micros_to_timestamp",[this],"unixMicrosToTimestamp")}timestampToUnixMicros(){return new Jo("timestamp_to_unix_micros",[this],"timestampToUnixMicros")}unixMillisToTimestamp(){return new Jo("unix_millis_to_timestamp",[this],"unixMillisToTimestamp")}timestampToUnixMillis(){return new Jo("timestamp_to_unix_millis",[this],"timestampToUnixMillis")}unixSecondsToTimestamp(){return new Jo("unix_seconds_to_timestamp",[this],"unixSecondsToTimestamp")}timestampToUnixSeconds(){return new Jo("timestamp_to_unix_seconds",[this],"timestampToUnixSeconds")}timestampAdd(e,t){return new Jo("timestamp_add",[this,Fo(e),Fo(t)],"timestampAdd")}timestampSubtract(e,t){return new Jo("timestamp_subtract",[this,Fo(e),Fo(t)],"timestampSubtract")}timestampDiff(e,t){return new Jo("timestamp_diff",[this,zo(e),Fo(t)],"timestampDiff")}timestampExtract(e,t){const n=[this,Fo(e)];return t&&n.push(Fo(t)),new Jo("timestamp_extract",n,"timestampExtract")}documentId(){return new Jo("document_id",[this],"documentId")}parent(){return new Jo("parent",[this],"parent")}substring(e,t){const n=Fo(e);return new Jo("substring",void 0===t?[this,n]:[this,n,Fo(t)],"substring")}arrayGet(e){return new Jo("array_get",[this,Fo(e)],"arrayGet")}isError(){return new Jo("is_error",[this],"isError").asBoolean()}ifError(e){const t=new Jo("if_error",[this,Fo(e)],"ifError");return e instanceof Zo?t.asBoolean():t}isAbsent(){return new Jo("is_absent",[this],"isAbsent").asBoolean()}mapRemove(e){return new Jo("map_remove",[this,Fo(e)],"mapRemove")}mapMerge(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=Fo(e),s=n.map(Fo);return new Jo("map_merge",[this,i,...s],"mapMerge")}pow(e){return new Jo("pow",[this,Fo(e)])}trunc(e){return void 0===e?new Jo("trunc",[this]):new Jo("trunc",[this,Fo(e)],"trunc")}round(e){return void 0===e?new Jo("round",[this]):new Jo("round",[this,Fo(e)],"round")}collectionId(){return new Jo("collection_id",[this])}length(){return new Jo("length",[this])}ln(){return new Jo("ln",[this])}sqrt(){return new Jo("sqrt",[this])}stringReverse(){return new Jo("string_reverse",[this])}ifAbsent(e){return new Jo("if_absent",[this,Fo(e)],"ifAbsent")}ifNull(e){return new Jo("if_null",[this,Fo(e)],"ifNull")}coalesce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Jo("coalesce",[this,Fo(e),...n.map(Fo)],"coalesce")}join(e){return new Jo("join",[this,Fo(e)],"join")}log10(){return new Jo("log10",[this])}arraySum(){return new Jo("sum",[this])}split(e){return new Jo("split",[this,Fo(e)])}timestampTruncate(e,t){const n=[this,Fo(e)];return t&&n.push(Fo(t)),new Jo("timestamp_trunc",n)}ascending(){return new il(zo(this),"ascending","ascending")}descending(){return new il(zo(this),"descending","descending")}as(e){return new Go(this,e,"as")}}class Ho{constructor(e,t){this.name=e,this.params=t,this.exprType="AggregateFunction",this._protoValueType="ProtoValue"}static _create(e,t,n){const r=new Ho(e,t);return r._methodName=n,r}as(e){return new qo(this,e,"as")}_toProto(e){return{functionValue:{name:this.name,args:this.params.map(t=>t._toProto(e))}}}_readUserData(e){e=this._methodName?e.contextWith({methodName:this._methodName}):e,this.params.forEach(t=>t._readUserData(e))}}class qo{constructor(e,t,n){this.aggregate=e,this.alias=t,this._methodName=n}_readUserData(e){this.aggregate._readUserData(e)}}class Go{constructor(e,t,n){this.expr=e,this.alias=t,this._methodName=n,this.exprType="AliasedExpression",this.selectable=!0}_readUserData(e){this.expr._readUserData(e)}}class Wo extends Bo{constructor(e,t){super(),this.Rr=e,this._methodName=t,this.expressionType="ListOfExpressions"}_toProto(e){return{arrayValue:{values:this.Rr.map(t=>t._toProto(e))}}}_readUserData(e){this.Rr.forEach(t=>t._readUserData(e))}}class Ko extends Bo{constructor(e,t){super(),this.fieldPath=e,this._methodName=t,this.expressionType="Field",this.selectable=!0}get _fieldPath(){return this.fieldPath}get fieldName(){return this.fieldPath.canonicalString()}get alias(){return this.fieldName}get expr(){return this}geoDistance(e){return new Jo("geo_distance",[this,Fo(e)],"geoDistance")}_toProto(e){return{fieldReferenceValue:this.fieldPath.canonicalString()}}_readUserData(e){}}function Qo(e){return function(e,t){return new Ko("string"==typeof e?st===e?new da(st)._internalPath:xo("field",e):e._internalPath,t)}(e,"field")}class Yo extends Bo{constructor(e,t){super(),this.value=e,this._methodName=t,this.expressionType="Constant"}static _fromProto(e){const t=new Yo(e,void 0);return t._protoValue=e,t}_toProto(e){return je(void 0!==this._protoValue,237),this._protoValue}_getValue(){return this._protoValue}_readUserData(e){e=this._methodName?e.contextWith({methodName:this._methodName}):e,function(e){return"object"==typeof e&&null!==e&&!!("nullValue"in e&&(null===e.nullValue||"NULL_VALUE"===e.nullValue)||"booleanValue"in e&&(null===e.booleanValue||"boolean"==typeof e.booleanValue)||"integerValue"in e&&(null===e.integerValue||"number"==typeof e.integerValue||"string"==typeof e.integerValue)||"doubleValue"in e&&(null===e.doubleValue||"number"==typeof e.doubleValue)||"timestampValue"in e&&(null===e.timestampValue||function(e){return"object"==typeof e&&null!==e&&"seconds"in e&&(null===e.seconds||"number"==typeof e.seconds||"string"==typeof e.seconds)&&"nanos"in e&&(null===e.nanos||"number"==typeof e.nanos)}(e.timestampValue))||"stringValue"in e&&(null===e.stringValue||"string"==typeof e.stringValue)||"bytesValue"in e&&(null===e.bytesValue||e.bytesValue instanceof Uint8Array)||"referenceValue"in e&&(null===e.referenceValue||"string"==typeof e.referenceValue)||"geoPointValue"in e&&(null===e.geoPointValue||function(e){return"object"==typeof e&&null!==e&&"latitude"in e&&(null===e.latitude||"number"==typeof e.latitude)&&"longitude"in e&&(null===e.longitude||"number"==typeof e.longitude)}(e.geoPointValue))||"arrayValue"in e&&(null===e.arrayValue||function(e){return"object"==typeof e&&null!==e&&!(!("values"in e)||null!==e.values&&!Array.isArray(e.values))}(e.arrayValue))||"mapValue"in e&&(null===e.mapValue||function(e){return"object"==typeof e&&null!==e&&!(!("fields"in e)||null!==e.fields&&!pt(e.fields))}(e.mapValue))||"fieldReferenceValue"in e&&(null===e.fieldReferenceValue||"string"==typeof e.fieldReferenceValue)||"functionValue"in e&&(null===e.functionValue||function(e){return"object"==typeof e&&null!==e&&!(!("name"in e)||null!==e.name&&"string"!=typeof e.name||!("args"in e)||null!==e.args&&!Array.isArray(e.args))}(e.functionValue))||"pipelineValue"in e&&(null===e.pipelineValue||function(e){return"object"==typeof e&&null!==e&&!(!("stages"in e)||null!==e.stages&&!Array.isArray(e.stages))}(e.pipelineValue)))}(this._protoValue)||(this._protoValue=So(this.value,e))}}function $o(e,t){return Xo(e,"constant")}function Xo(e,t){const n=new Yo(e,t);return"boolean"==typeof e?new tl(n):n}class Jo extends Bo{constructor(e,t,n,r){super(),this.name=e,this.params=t,this.expressionType="Function",this._optionsProto=void 0,void 0!==n&&(this._methodName=n),void 0!==r&&(this._options=r)}get _optionsUtil(){return new Do({})}_toProto(e){const t={functionValue:{name:this.name,args:this.params.map(t=>t._toProto(e))}};return this._optionsProto&&(t.functionValue.options=this._optionsProto),t}_readUserData(e){e=this._methodName?e.contextWith({methodName:this._methodName}):e,this.params.forEach(t=>t._readUserData(e)),this._options&&(this._optionsProto=this._optionsUtil.getOptionsProto(e,this._options))}}class Zo extends Bo{get _methodName(){return this._expr._methodName}countIf(){return Ho._create("count_if",[this],"countIf")}not(){return new Jo("not",[this],"not").asBoolean()}conditional(e,t){return new Jo("conditional",[this,e,t],"conditional")}ifError(e){const t=Fo(e),n=new Jo("if_error",[this,t],"ifError");return t instanceof Zo?n.asBoolean():n}_toProto(e){return this._expr._toProto(e)}_readUserData(e){this._expr._readUserData(e)}}class el extends Zo{constructor(e){super(),this._expr=e,this.expressionType="Function"}}class tl extends Zo{constructor(e){super(),this._expr=e,this.expressionType="Constant"}_getValue(){return this._expr._getValue()}}class nl extends Zo{constructor(e){super(),this._expr=e,this.expressionType="Field"}}function rl(e,t){const n=[];for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const t=e[r];n.push($o(r)),n.push(Fo(t))}return new Jo("map",n,"map")}class il{constructor(e,t,n){this.expr=e,this.direction=t,this._methodName=n,this._protoValueType="ProtoValue"}_toProto(e){return{mapValue:{fields:{direction:ca(this.direction),expression:this.expr._toProto(e)}}}}_readUserData(e){this.expr._readUserData(e)}}class sl{constructor(e){var t;this.optionsProto=void 0,t=e,this.rawOptions=t.rawOptions,this.knownOptions=(0,l.A)(t,Ne)}_readUserData(e){this.optionsProto=this._optionsUtil.getOptionsProto(e,this.knownOptions,this.rawOptions)}_toProto(e){return{name:this._name,options:this.optionsProto}}}class al extends sl{get _name(){return"add_fields"}get _optionsUtil(){return new Do({})}constructor(e,t){super(t),this.fields=e}_toProto(e){return(0,s.A)((0,s.A)({},super._toProto(e)),{},{args:[la(e,this.fields)]})}_readUserData(e){super._readUserData(e),wl(this.fields,e)}}class ol extends sl{get _name(){return"aggregate"}get _optionsUtil(){return new Do({})}constructor(e,t,n){super(n),this.groups=e,this.accumulators=t}_toProto(e){return(0,s.A)((0,s.A)({},super._toProto(e)),{},{args:[la(e,this.accumulators),la(e,this.groups)]})}_readUserData(e){super._readUserData(e),wl(this.groups,e),wl(this.accumulators,e)}}class ll extends sl{get _name(){return"distinct"}get _optionsUtil(){return new Do({})}constructor(e,t){super(t),this.groups=e}_toProto(e){return(0,s.A)((0,s.A)({},super._toProto(e)),{},{args:[la(e,this.groups)]})}_readUserData(e){super._readUserData(e),wl(this.groups,e)}}class cl extends sl{get _name(){return"collection"}get _optionsUtil(){return new Do({forceIndex:{serverName:"force_index"}})}constructor(e,t){super(t),this.Vr=e.startsWith("/")?e:"/"+e}_toProto(e){return(0,s.A)((0,s.A)({},super._toProto(e)),{},{args:[{referenceValue:this.Vr}]})}_readUserData(e){super._readUserData(e)}}class ul extends sl{get _name(){return"collection_group"}get _optionsUtil(){return new Do({forceIndex:{serverName:"force_index"}})}constructor(e,t){super(t),this.collectionId=e}_toProto(e){return(0,s.A)((0,s.A)({},super._toProto(e)),{},{args:[{referenceValue:""},{stringValue:this.collectionId}]})}_readUserData(e){super._readUserData(e)}}class hl extends sl{get _name(){return"database"}get _optionsUtil(){return new Do({})}_toProto(e){return(0,s.A)({},super._toProto(e))}_readUserData(e){super._readUserData(e)}}class dl extends sl{get _name(){return"documents"}get _optionsUtil(){return new Do({})}constructor(e,t){if(super(t),!e||0===e.length)throw new He(Be.INVALID_ARGUMENT,"Empty document paths are not allowed in DocumentsSource");const n=e.map(e=>e.startsWith("/")?e:"/"+e),r=new Set(n);if(r.size!==n.length)throw new He(Be.INVALID_ARGUMENT,"Duplicate document paths are not allowed in DocumentsSource");this.dr=n,this.mr=r}_toProto(e){return(0,s.A)((0,s.A)({},super._toProto(e)),{},{args:this.dr.map(e=>({referenceValue:e}))})}_readUserData(e){super._readUserData(e)}}class fl extends sl{get _name(){return"where"}get _optionsUtil(){return new Do({})}constructor(e,t){super(t),this.condition=e}_toProto(e){return(0,s.A)((0,s.A)({},super._toProto(e)),{},{args:[this.condition._toProto(e)]})}_readUserData(e){super._readUserData(e),wl(this.condition,e)}}class pl extends sl{get _name(){return"limit"}get _optionsUtil(){return new Do({})}constructor(e,t){je(!isNaN(e)&&e!==1/0&&e!==-1/0,34860),super(t),this.limit=e}_toProto(e){return(0,s.A)((0,s.A)({},super._toProto(e)),{},{args:[br(e,this.limit)]})}}class ml extends sl{get _name(){return"offset"}get _optionsUtil(){return new Do({})}constructor(e,t){super(t),this.offset=e}_toProto(e){return(0,s.A)((0,s.A)({},super._toProto(e)),{},{args:[br(e,this.offset)]})}}class gl extends sl{get _name(){return"select"}get _optionsUtil(){return new Do({})}constructor(e,t){super(t),this.selections=e}_toProto(e){return(0,s.A)((0,s.A)({},super._toProto(e)),{},{args:[la(e,this.selections)]})}_readUserData(e){super._readUserData(e),wl(this.selections,e)}}class vl extends sl{get _name(){return"sort"}get _optionsUtil(){return new Do({})}constructor(e,t){super(t),this.orderings=e}_toProto(e){return(0,s.A)((0,s.A)({},super._toProto(e)),{},{args:this.orderings.map(t=>t._toProto(e))})}_readUserData(e){super._readUserData(e),wl(this.orderings,e)}}class yl extends sl{get _name(){return"replace_with"}get _optionsUtil(){return new Do({})}constructor(e,t){super(t),this.map=e}_toProto(e){return(0,s.A)((0,s.A)({},super._toProto(e)),{},{args:[this.map._toProto(e),ca(yl.pr)]})}_readUserData(e){super._readUserData(e),wl(this.map,e)}}yl.pr="full_replace";function wl(e,t){return Po(e)?e._readUserData(t):Array.isArray(e)||e instanceof Map?e.forEach(e=>e._readUserData(t)):Object.values(e).forEach(e=>e._readUserData(t)),e}class bl{constructor(e,t,n){this.serializer=e,this.stages=t,this.listenOptions=n,this.isCorePipeline=!0}getPipelineCollection(){return _l(this)}getPipelineCollectionGroup(){return Al(this)}getPipelineCollectionId(){return Sl(this)}getPipelineDocuments(){return Cl(this)}getPipelineFlavor(){return function(e){let t="exact";return e.stages.forEach((n,r)=>{n._name!==ll.name&&n._name!==ol.name||(t="keyless"),n._name===gl.name&&"exact"===t&&(t="augmented"),n._name===al.name&&r<e.stages.length-1&&"exact"===t&&(t="augmented")}),t}(this)}getPipelineSourceType(){return El(this)}}function El(e){const t=e.stages[0];return t instanceof cl||t instanceof ul||t instanceof hl||t instanceof dl?t._name:"unknown"}function _l(e){if("collection"===El(e))return e.stages[0].Vr}function Al(e){if("collection_group"===El(e))return e.stages[0].collectionId}function Sl(e){switch(El(e)){case"collection":return ot.fromString(_l(e)).lastSegment();case"collection_group":return Al(e);default:return}}function Cl(e){if("documents"===El(e))return e.stages[0].dr}class Tl{constructor(e,t,n,r){this._db=e,this.userDataReader=t,this._userDataWriter=n,this.stages=r}wr(e,t){const n=this.userDataReader.createContext(3,e);return Po(t)?t._readUserData(n):(Array.isArray(t),t.forEach(e=>e._readUserData(n))),t}where(e){const t=this.stages.map(e=>e);return this.wr("where",e),t.push(new fl(e,{})),new Tl(this._db,this.userDataReader,this._userDataWriter,t)}limit(e){const t=this.stages.map(e=>e);return t.push(new pl(e,{})),new Tl(this._db,this.userDataReader,this._userDataWriter,t)}sort(e){const t=this.stages.map(e=>e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return"orderings"in e?t.push(new vl(this.wr("sort",e.orderings),{})):t.push(new vl(this.wr("sort",[e,...r]),{})),new Tl(this._db,this.userDataReader,this._userDataWriter,t)}br(e){return{pipeline:{stages:this.stages.map(t=>t._toProto(e))}}}}class kl{constructor(e,t){this.type=e,this.value=t}static vr(){return new kl("ERROR",void 0)}static Sr(){return new kl("UNSET",void 0)}static Dr(){return new kl("NULL",Wn)}static newValue(e){return cr(e)?new kl("NULL",Wn):function(e){return!!e&&"booleanValue"in e}(e)?new kl("BOOLEAN",e):sr(e)?new kl("INT",e):ar(e)?new kl("DOUBLE",e):function(e){return!!e&&"timestampValue"in e&&!!e.timestampValue}(e)?new kl("TIMESTAMP",e):function(e){return!!e&&"stringValue"in e}(e)?new kl("STRING",e):function(e){return!!e&&"bytesValue"in e}(e)?new kl("BYTES",e):e.referenceValue?new kl("REFERENCE",e):e.geoPointValue?new kl("GEO_POINT",e):lr(e)?new kl("ARRAY",e):dr(e)?new kl("VECTOR",e):hr(e)?new kl("MAP",e):new kl("ERROR",void 0)}Cr(){return"ERROR"===this.type||"UNSET"===this.type}Fr(){return"NULL"===this.type}}function xl(e){if(!e.Cr())return e.value}function Nl(e){return e instanceof Zo?e._expr:e}function Il(e){if((e=Nl(e))instanceof Ko)return new Ol(e);if(e instanceof Yo)return new Rl(e);if(e instanceof Wo)return new Pl(e);if(e instanceof Jo){if("add"===e.name)return new jl(e);if("subtract"===e.name)return new zl(e);if("multiply"===e.name)return new Bl(e);if("divide"===e.name)return new Hl(e);if("mod"===e.name)return new ql(e);if("and"===e.name)return new Gl(e);if("equal"===e.name)return new oc(e);if("not_equal"===e.name)return new lc(e);if("less_than"===e.name)return new cc(e);if("less_than_or_equal"===e.name)return new uc(e);if("greater_than"===e.name)return new hc(e);if("greater_than_or_equal"===e.name)return new dc(e);if("array_concat"===e.name)return new fc(e);if("array_reverse"===e.name)return new pc(e);if("array_contains"===e.name)return new mc(e);if("array_contains_all"===e.name)return new gc(e);if("array_contains_any"===e.name)return new vc(e);if("array_length"===e.name)return new yc(e);if("array_element"===e.name)return new wc(e);if("equal_any"===e.name)return new Yl(e);if("not_equal_any"===e.name)return new $l(e);if("is_nan"===e.name)return new Xl(e);if("is_not_nan"===e.name)return new Jl(e);if("is_null"===e.name)return new Zl(e);if("is_not_null"===e.name)return new ec(e);if("is_error"===e.name)return new tc(e);if("exists"===e.name)return new nc(e);if("not"===e.name)return new Wl(e);if("or"===e.name)return new Kl(e);if("xor"===e.name)return new Ql(e);if("conditional"===e.name)return new rc(e);if("maximum"===e.name)return new ic(e);if("minimum"===e.name)return new sc(e);if("reverse"===e.name)return new bc(e);if("replace_first"===e.name)return new Ec(e);if("replace_all"===e.name)return new _c(e);if("char_length"===e.name)return new Ac(e);if("byte_length"===e.name)return new Sc(e);if("like"===e.name)return new Tc(e);if("regex_contains"===e.name)return new kc(e);if("regex_match"===e.name)return new xc(e);if("string_contains"===e.name)return new Nc(e);if("starts_with"===e.name)return new Ic(e);if("ends_with"===e.name)return new Oc(e);if("to_lower"===e.name)return new Rc(e);if("to_upper"===e.name)return new Pc(e);if("trim"===e.name)return new Dc(e);if("string_concat"===e.name)return new Lc(e);if("map_get"===e.name)return new Mc(e);if("cosine_distance"===e.name)return new Vc(e);if("dot_product"===e.name)return new Fc(e);if("euclidean_distance"===e.name)return new jc(e);if("vector_length"===e.name)return new zc(e);if("unix_micros_to_timestamp"===e.name)return new nu(e);if("timestamp_to_unix_micros"===e.name)return new au(e);if("unix_millis_to_timestamp"===e.name)return new ru(e);if("timestamp_to_unix_millis"===e.name)return new ou(e);if("unix_seconds_to_timestamp"===e.name)return new iu(e);if("timestamp_to_unix_seconds"===e.name)return new lu(e);if("timestamp_add"===e.name)return new uu(e);if("timestamp_subtract"===e.name)return new hu(e)}throw new Error("Unknown Expr : ".concat(e))}class Ol{constructor(e){this.expr=e}evaluate(e,t){if(this.expr.fieldName===st)return kl.newValue({referenceValue:js(e.serializer,t.key)});if("__update_time__"===this.expr.fieldName)return kl.newValue({timestampValue:Ls(e.serializer,t.version)});if("__create_time__"===this.expr.fieldName)return kl.newValue({timestampValue:Ls(e.serializer,t.createTime)});const n=t.data.field(this.expr._fieldPath);return n?Ln(n)?kl.newValue(function(e,t){if("estimate"===e.serverTimestampBehavior)return{timestampValue:Ls(e.serializer,_t.fromTimestamp(Un(t)))};if("previous"===e.serverTimestampBehavior){const e=Mn(t);if(e)return e}return{nullValue:"NULL_VALUE"}}(e,n)):kl.newValue(n):kl.Sr()}}class Rl{constructor(e){this.expr=e}evaluate(e,t){return kl.newValue(this.expr._getValue())}}class Pl{constructor(e){this.expr=e}evaluate(e,t){const n=this.expr.Rr.map(n=>Il(n).evaluate(e,t));return n.some(e=>e.Cr())?kl.vr():kl.newValue({arrayValue:{values:n.map(e=>e.value)}})}}function Dl(e){return ar(e)?Number(e.doubleValue):Number(e.integerValue)}function Ll(e){return BigInt(e.integerValue)}const Ml=BigInt("0x7fffffffffffffff"),Ul=-BigInt("0x8000000000000000");class Vl{constructor(e){this.expr=e}evaluate(e,t){je(this.expr.params.length>=2,24778);const n=Il(this.expr.params[0]).evaluate(e,t),r=Il(this.expr.params[1]).evaluate(e,t);let i=this.Or(n,r);for(const s of this.expr.params.slice(2)){const n=Il(s).evaluate(e,t);i=this.Or(i,n)}return i}Or(e,t){if(e.Cr()||t.Cr())return kl.vr();if(e.Fr()||t.Fr())return kl.Dr();const n=e.value,r=t.value;if(!ar(n)&&!sr(n)||!ar(r)&&!sr(r))return kl.vr();if(ar(n)||ar(r)){const e=this.Mr(n,r);return e?kl.newValue(e):kl.vr()}if(sr(n)&&sr(r)){const e=this.Nr(n,r);return void 0===e?kl.vr():"number"==typeof e?kl.newValue({doubleValue:e}):e<Ul||e>Ml?kl.vr():kl.newValue({integerValue:"".concat(e)})}return kl.vr()}}function Fl(e,t){return Yn(e)!==Yn(t)?"TYPE_MISMATCH":ur(e)||ur(t)?"NOT_EQ":cr(e)&&cr(t)?"EQ":cr(e)||cr(t)?"NULL":lr(e)&&lr(t)?function(e,t){var n,r;if((null===(n=e.values)||void 0===n?void 0:n.length)!==(null===(r=t.values)||void 0===r?void 0:r.length))return"NOT_EQ";let i=!1;for(let o=0;o<(null!==(s=null===(a=e.values)||void 0===a?void 0:a.length)&&void 0!==s?s:0);o++){var s,a;const n=e.values[o],r=t.values[o];switch(Fl(n,r)){case"EQ":break;case"NOT_EQ":case"TYPE_MISMATCH":return"NOT_EQ";case"NULL":i=!0;break;default:Ve(44609,{Lr:n,Br:r})}}return i?"NULL":"EQ"}(e.arrayValue,t.arrayValue):dr(e)&&dr(t)||hr(e)&&hr(t)?function(e,t){const n=e.fields||{},r=t.fields||{};if(En(n)!==En(r))return"NOT_EQ";let i=!1;for(const s in n)if(n.hasOwnProperty(s)){if(void 0===r[s])return"NOT_EQ";switch(Fl(n[s],r[s])){case"NOT_EQ":case"TYPE_MISMATCH":return"NOT_EQ";case"NULL":i=!0}}return i?"NULL":"EQ"}(e.mapValue,t.mapValue):function(e,t){return $n(e,t,{Te:!1,Ee:!0,he:!0})}(e,t)?"EQ":"NOT_EQ"}class jl extends Vl{Nr(e,t){return Ll(e)+Ll(t)}Mr(e,t){return{doubleValue:Dl(e)+Dl(t)}}}class zl extends Vl{constructor(e){super(e),this.expr=e}Nr(e,t){return Ll(e)-Ll(t)}Mr(e,t){return{doubleValue:Dl(e)-Dl(t)}}}class Bl extends Vl{constructor(e){super(e),this.expr=e}Nr(e,t){return Ll(e)*Ll(t)}Mr(e,t){return{doubleValue:Dl(e)*Dl(t)}}}class Hl extends Vl{constructor(e){super(e),this.expr=e}Nr(e,t){const n=Ll(t);if(n!==BigInt(0))return Ll(e)/n}Mr(e,t){const n=Dl(t);return 0===n?{doubleValue:Vt(n)?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY}:{doubleValue:Dl(e)/n}}}class ql extends Vl{constructor(e){super(e),this.expr=e}Nr(e,t){const n=Ll(t);if(n!==BigInt(0))return Ll(e)%n}Mr(e,t){const n=Dl(t);if(0!==n)return{doubleValue:Dl(e)%n}}}class Gl{constructor(e){this.expr=e}evaluate(e,t){var n;let r=!1,i=!1;for(const s of this.expr.params){const a=Il(s).evaluate(e,t);switch(a.type){case"BOOLEAN":if(null===(n=a.value)||void 0===n||!n.booleanValue)return kl.newValue(Qn);break;case"NULL":i=!0;break;default:r=!0}}return r?kl.vr():i?kl.Dr():kl.newValue(Kn)}}class Wl{constructor(e){this.expr=e}evaluate(e,t){var n;je(1===this.expr.params.length,9634);const r=Il(this.expr.params[0]).evaluate(e,t);switch(r.type){case"BOOLEAN":return kl.newValue({booleanValue:!(null!==(n=r.value)&&void 0!==n&&n.booleanValue)});case"NULL":return kl.Dr();default:return kl.vr()}}}class Kl{constructor(e){this.expr=e}evaluate(e,t){var n;let r=!1,i=!1;for(const s of this.expr.params){const a=Il(s).evaluate(e,t);switch(a.type){case"BOOLEAN":if(null!==(n=a.value)&&void 0!==n&&n.booleanValue)return kl.newValue(Kn);break;case"NULL":i=!0;break;default:r=!0}}return r?kl.vr():i?kl.Dr():kl.newValue(Qn)}}class Ql{constructor(e){this.expr=e}evaluate(e,t){var n;let r=!1,i=!1;for(const s of this.expr.params){const a=Il(s).evaluate(e,t);switch(a.type){case"BOOLEAN":r=Ql.xor(r,!(null===(n=a.value)||void 0===n||!n.booleanValue));break;case"NULL":i=!0;break;default:return kl.vr()}}return i?kl.Dr():kl.newValue({booleanValue:r})}static xor(e,t){return(e||t)&&!(e&&t)}}class Yl{constructor(e){this.expr=e}evaluate(e,t){je(2===this.expr.params.length,55094);let n=!1;const r=Il(this.expr.params[0]).evaluate(e,t);switch(r.type){case"NULL":n=!0;break;case"ERROR":case"UNSET":return kl.vr()}const i=Il(this.expr.params[1]).evaluate(e,t);switch(i.type){case"ARRAY":break;case"NULL":n=!0;break;default:return kl.vr()}if(n)return kl.Dr();for(const o of null!==(s=null===(a=i.value)||void 0===a||null===(a=a.arrayValue)||void 0===a?void 0:a.values)&&void 0!==s?s:[]){var s,a;switch(cr(r.value)&&cr(o)?"EQ":Fl(r.value,o)){case"EQ":return kl.newValue(Kn);case"NOT_EQ":case"TYPE_MISMATCH":break;case"NULL":n=!0;break;default:Ve(44608,{value:r.value,candidate:o})}}return n?kl.Dr():kl.newValue(Qn)}}class $l{constructor(e){this.expr=e}evaluate(e,t){return new Wl(new Jo("not",[new Jo("equal_any",this.expr.params)])).evaluate(e,t)}}class Xl{constructor(e){this.expr=e}evaluate(e,t){je(1===this.expr.params.length,23322);const n=Il(this.expr.params[0]).evaluate(e,t);switch(n.type){case"INT":return kl.newValue(Qn);case"DOUBLE":return kl.newValue({booleanValue:isNaN(Dl(n.value))});case"NULL":return kl.Dr();default:return kl.vr()}}}class Jl{constructor(e){this.expr=e}evaluate(e,t){return je(1===this.expr.params.length,50406),new Wl(new Jo("not",[new Jo("is_nan",this.expr.params)])).evaluate(e,t)}}class Zl{constructor(e){this.expr=e}evaluate(e,t){switch(je(1===this.expr.params.length,23123),Il(this.expr.params[0]).evaluate(e,t).type){case"NULL":return kl.newValue(Kn);case"UNSET":case"ERROR":return kl.vr();default:return kl.newValue(Qn)}}}class ec{constructor(e){this.expr=e}evaluate(e,t){return je(1===this.expr.params.length,23167),new Wl(new Jo("not",[new Jo("is_null",this.expr.params)])).evaluate(e,t)}}class tc{constructor(e){this.expr=e}evaluate(e,t){return je(1===this.expr.params.length,5228),"ERROR"===Il(this.expr.params[0]).evaluate(e,t).type?kl.newValue(Kn):kl.newValue(Qn)}}class nc{constructor(e){this.expr=e}evaluate(e,t){switch(je(1===this.expr.params.length,6877),Il(this.expr.params[0]).evaluate(e,t).type){case"ERROR":return kl.vr();case"UNSET":return kl.newValue(Qn);default:return kl.newValue(Kn)}}}class rc{constructor(e){this.expr=e}evaluate(e,t){var n;je(3===this.expr.params.length,11706);const r=Il(this.expr.params[0]).evaluate(e,t);switch(r.type){case"BOOLEAN":return null!==(n=r.value)&&void 0!==n&&n.booleanValue?Il(this.expr.params[1]).evaluate(e,t):Il(this.expr.params[2]).evaluate(e,t);case"NULL":return Il(this.expr.params[2]).evaluate(e,t);default:return kl.vr()}}}class ic{constructor(e){this.expr=e}evaluate(e,t){const n=this.expr.params.map(n=>Il(n).evaluate(e,t));let r;for(const i of n)switch(i.type){case"ERROR":case"UNSET":case"NULL":continue;default:r=void 0===r||Jn(i.value,r.value)>0?i:r}return void 0===r?kl.Dr():r}}class sc{constructor(e){this.expr=e}evaluate(e,t){const n=this.expr.params.map(n=>Il(n).evaluate(e,t));let r;for(const i of n)switch(i.type){case"ERROR":case"UNSET":case"NULL":continue;default:r=void 0===r||Jn(i.value,r.value)<0?i:r}return void 0===r?kl.Dr():r}}class ac{constructor(e){this.expr=e}evaluate(e,t){je(2===this.expr.params.length,31033,"".concat(this.expr.name,"() function should have exactly 2 params"));const n=Il(this.expr.params[0]).evaluate(e,t);switch(n.type){case"ERROR":case"UNSET":return kl.vr()}const r=Il(this.expr.params[1]).evaluate(e,t);switch(r.type){case"ERROR":case"UNSET":return kl.vr()}return this.Ur(n,r)}}class oc extends ac{constructor(e){super(e),this.expr=e}Ur(e,t){if(e.Fr()&&t.Fr())return kl.newValue(Kn);if(e.Fr()||t.Fr())return kl.newValue(Qn);if(ur(e.value)||ur(t.value))return kl.newValue(Qn);if(Yn(e.value)!==Yn(t.value))return kl.newValue(Qn);switch(Fl(e.value,t.value)){case"EQ":return kl.newValue(Kn);case"NOT_EQ":return kl.newValue(Qn);case"NULL":return kl.Dr();default:Ve(44615,{left:e,right:t})}}}class lc extends ac{constructor(e){super(e),this.expr=e}Ur(e,t){switch(Fl(e.value,t.value)){case"EQ":return kl.newValue(Qn);case"NOT_EQ":case"TYPE_MISMATCH":return kl.newValue(Kn);case"NULL":return kl.Dr();default:Ve(44614,{left:e,right:t})}}}class cc extends ac{constructor(e){super(e),this.expr=e}Ur(e,t){return Yn(e.value)!==Yn(t.value)||ur(e.value)||ur(t.value)?kl.newValue(Qn):kl.newValue({booleanValue:Jn(e.value,t.value)<0})}}class uc extends ac{constructor(e){super(e),this.expr=e}Ur(e,t){return Yn(e.value)!==Yn(t.value)||ur(e.value)||ur(t.value)?kl.newValue(Qn):"EQ"===Fl(e.value,t.value)?kl.newValue(Kn):kl.newValue({booleanValue:Jn(e.value,t.value)<0})}}class hc extends ac{constructor(e){super(e),this.expr=e}Ur(e,t){return Yn(e.value)!==Yn(t.value)||ur(e.value)||ur(t.value)?kl.newValue(Qn):kl.newValue({booleanValue:Jn(e.value,t.value)>0})}}class dc extends ac{constructor(e){super(e),this.expr=e}Ur(e,t){return Yn(e.value)!==Yn(t.value)||ur(e.value)||ur(t.value)?kl.newValue(Qn):"EQ"===Fl(e.value,t.value)?kl.newValue(Kn):kl.newValue({booleanValue:Jn(e.value,t.value)>0})}}class fc{constructor(e){this.expr=e}evaluate(e,t){throw new Error("Unimplemented")}}class pc{constructor(e){this.expr=e}evaluate(e,t){je(1===this.expr.params.length,216);const n=Il(this.expr.params[0]).evaluate(e,t);switch(n.type){case"NULL":return kl.Dr();case"ARRAY":{var r,i;const e=null!==(r=null===(i=n.value.arrayValue)||void 0===i?void 0:i.values)&&void 0!==r?r:[];return kl.newValue({arrayValue:{values:[...e].reverse()}})}default:return kl.vr()}}}class mc{constructor(e){this.expr=e}evaluate(e,t){return je(2===this.expr.params.length,52884),new Yl(new Jo("eq_any",[this.expr.params[1],this.expr.params[0]])).evaluate(e,t)}}class gc{constructor(e){this.expr=e}evaluate(e,t){var n,r,i,s;je(2===this.expr.params.length,1392);let a=!1;const o=Il(this.expr.params[0]).evaluate(e,t);switch(o.type){case"ARRAY":break;case"NULL":a=!0;break;default:return kl.vr()}const l=Il(this.expr.params[1]).evaluate(e,t);switch(l.type){case"ARRAY":break;case"NULL":a=!0;break;default:return kl.vr()}if(a)return kl.Dr();const c=null!==(n=null===(r=l.value)||void 0===r||null===(r=r.arrayValue)||void 0===r?void 0:r.values)&&void 0!==n?n:[],u=null!==(i=null===(s=o.value)||void 0===s||null===(s=s.arrayValue)||void 0===s?void 0:s.values)&&void 0!==i?i:[];for(const h of c){let e=!1;a=!1;for(const t of u){switch(cr(h)&&cr(t)?"EQ":Fl(h,t)){case"EQ":e=!0;break;case"NOT_EQ":case"TYPE_MISMATCH":break;case"NULL":a=!0;break;default:Ve(44613,{value:t,search:h})}if(e)break}if(!e)return kl.newValue(Qn)}return kl.newValue(Kn)}}class vc{constructor(e){this.expr=e}evaluate(e,t){var n,r,i,s;je(2===this.expr.params.length,2680);let a=!1;const o=Il(this.expr.params[0]).evaluate(e,t);switch(o.type){case"ARRAY":break;case"NULL":a=!0;break;default:return kl.vr()}const l=Il(this.expr.params[1]).evaluate(e,t);switch(l.type){case"ARRAY":break;case"NULL":a=!0;break;default:return kl.vr()}if(a)return kl.Dr();const c=null!==(n=null===(r=l.value)||void 0===r||null===(r=r.arrayValue)||void 0===r?void 0:r.values)&&void 0!==n?n:[],u=null!==(i=null===(s=o.value)||void 0===s||null===(s=s.arrayValue)||void 0===s?void 0:s.values)&&void 0!==i?i:[];for(const h of u)for(const e of c)switch(cr(h)&&cr(e)?"EQ":Fl(h,e)){case"EQ":return kl.newValue(Kn);case"NOT_EQ":case"TYPE_MISMATCH":break;case"NULL":a=!0;break;default:Ve(44608,{value:h,search:e})}return a?kl.Dr():kl.newValue(Qn)}}class yc{constructor(e){this.expr=e}evaluate(e,t){var n,r;je(1===this.expr.params.length,38605);const i=Il(this.expr.params[0]).evaluate(e,t);switch(i.type){case"NULL":return kl.Dr();case"ARRAY":return kl.newValue({integerValue:"".concat(null!==(n=null===(r=i.value)||void 0===r||null===(r=r.arrayValue)||void 0===r||null===(r=r.values)||void 0===r?void 0:r.length)&&void 0!==n?n:0)});default:return kl.vr()}}}class wc{constructor(e){this.expr=e}evaluate(e,t){throw new Error("Unimplemented")}}class bc{constructor(e){this.expr=e}evaluate(e,t){je(1===this.expr.params.length,1508);const n=Il(this.expr.params[0]).evaluate(e,t);switch(n.type){case"NULL":return kl.Dr();case"BYTES":{var r;const e=null===(r=n.value)||void 0===r?void 0:r.bytesValue;if("string"==typeof e){const t=Tn.fromBase64String(e).toUint8Array();return t.reverse(),kl.newValue({bytesValue:Tn.fromUint8Array(t).toBase64()})}return kl.newValue({bytesValue:new Uint8Array(e).reverse()})}case"STRING":{var i;const e=null===(i=n.value)||void 0===i?void 0:i.stringValue,t=new Intl.__PRIVATE_Segmenter(void 0,{granularity:"grapheme"}).segment(e),r=Array.from(t,e=>e.segment).reverse();return kl.newValue({stringValue:r.join("")})}default:return kl.vr()}}}class Ec{constructor(e){this.expr=e}evaluate(e,t){throw new Error("Unimplemented")}}class _c{constructor(e){this.expr=e}evaluate(e,t){throw new Error("Unimplemented")}}class Ac{constructor(e){this.expr=e}evaluate(e,t){je(1===this.expr.params.length,19400);const n=Il(this.expr.params[0]).evaluate(e,t);switch(n.type){case"NULL":return kl.Dr();case"STRING":{const e=function(e){let t=0;for(let n=0;n<e.length;n++){const r=e.codePointAt(n);if(void 0===r)return;if(r<=65535)if(r>=55296&&r<=57343)if(r<=56319){const r=e.codePointAt(n+1);void 0!==r&&r>=56320&&r<=57343?(t+=1,n++):t+=1}else t+=1;else t+=1;else{if(!(r<=1114111))return;t+=1,n++}}return t}(n.value.stringValue);return void 0===e?kl.vr():kl.newValue({integerValue:e})}default:return kl.vr()}}}class Sc{constructor(e){this.expr=e}evaluate(e,t){je(1===this.expr.params.length,8486);const n=Il(this.expr.params[0]).evaluate(e,t);switch(n.type){case"BYTES":{var r;const e=null===(r=n.value)||void 0===r?void 0:r.bytesValue;return"string"==typeof e?kl.newValue({integerValue:Tn.fromBase64String(e).toUint8Array().length}):kl.newValue({integerValue:new Uint8Array(e).length})}case"STRING":{var i;const e=function(e){let t=0;for(let n=0;n<e.length;n++){const r=e.codePointAt(n);if(void 0===r)return;if(r>=55296&&r<=57343){if(!(r<=56319))return;{const r=e.codePointAt(n+1);if(void 0===r||!(r>=56320&&r<=57343))return;t+=4,n++}}else if(r<=127)t+=1;else if(r<=2047)t+=2;else if(r<=65535)t+=3;else{if(!(r<=1114111))return;t+=4,n++}}return t}(null===(i=n.value)||void 0===i?void 0:i.stringValue);return void 0===e?kl.vr():kl.newValue({integerValue:e})}case"NULL":return kl.Dr();default:return kl.vr()}}}class Cc{constructor(e){this.expr=e}evaluate(e,t){var n,r;je(2===this.expr.params.length,39773,"".concat(this.expr.name,"() function should have exactly two parameters"));let i=!1;const s=Il(this.expr.params[0]).evaluate(e,t);switch(s.type){case"STRING":break;case"NULL":i=!0;break;default:return kl.vr()}const a=Il(this.expr.params[1]).evaluate(e,t);switch(a.type){case"STRING":break;case"NULL":i=!0;break;default:return kl.vr()}return i?kl.Dr():this.kr(null===(n=s.value)||void 0===n?void 0:n.stringValue,null===(r=a.value)||void 0===r?void 0:r.stringValue)}}class Tc extends Cc{kr(e,t){try{const n=function(e){let t="";for(let n=0;n<e.length;n++){const r=e.charAt(n);switch(r){case"_":t+=".";break;case"%":t+=".*";break;case"\\":case".":case"*":case"?":case"+":case"^":case"$":case"|":case"(":case")":case"[":case"]":case"{":case"}":t+="\\"+r;break;default:t+=r}}return"^"+t+"$"}(t),r=xe.compile(n);return kl.newValue({booleanValue:r.matches(e)})}catch(e){return Me("Invalid LIKE pattern converted to regex: ".concat(t,", returning error. Error: ").concat(e)),kl.vr()}}}class kc extends Cc{kr(e,t){try{const n=xe.compile(t);return kl.newValue({booleanValue:n.matcher(e).find()})}catch(e){return Me("Invalid regex pattern found in regex_contains: ".concat(t,", returning error")),kl.vr()}}}class xc extends Cc{kr(e,t){try{return kl.newValue({booleanValue:xe.compile(t).matches(e)})}catch(e){return Me("Invalid regex pattern found in regex_match: ".concat(t,", returning error")),kl.vr()}}}class Nc extends Cc{kr(e,t){return kl.newValue({booleanValue:e.includes(t)})}}class Ic extends Cc{kr(e,t){return kl.newValue({booleanValue:e.startsWith(t)})}}class Oc extends Cc{kr(e,t){return kl.newValue({booleanValue:e.endsWith(t)})}}class Rc{constructor(e){this.expr=e}evaluate(e,t){var n;je(1===this.expr.params.length,29079);const r=Il(this.expr.params[0]).evaluate(e,t);switch(r.type){case"STRING":return kl.newValue({stringValue:null===(n=r.value)||void 0===n||null===(n=n.stringValue)||void 0===n?void 0:n.toLowerCase()});case"NULL":return kl.Dr();default:return kl.vr()}}}class Pc{constructor(e){this.expr=e}evaluate(e,t){var n;je(1===this.expr.params.length,60487);const r=Il(this.expr.params[0]).evaluate(e,t);switch(r.type){case"STRING":return kl.newValue({stringValue:null===(n=r.value)||void 0===n||null===(n=n.stringValue)||void 0===n?void 0:n.toUpperCase()});case"NULL":return kl.Dr();default:return kl.vr()}}}class Dc{constructor(e){this.expr=e}evaluate(e,t){var n;je(1===this.expr.params.length,28544);const r=Il(this.expr.params[0]).evaluate(e,t);switch(r.type){case"STRING":return kl.newValue({stringValue:null===(n=r.value)||void 0===n||null===(n=n.stringValue)||void 0===n?void 0:n.trim()});case"NULL":return kl.Dr();default:return kl.vr()}}}class Lc{constructor(e){this.expr=e}evaluate(e,t){const n=this.expr.params.map(n=>Il(n).evaluate(e,t));let r="",i=!1;for(const s of n)switch(s.type){case"STRING":r+=s.value.stringValue;break;case"NULL":i=!0;break;default:return kl.vr()}return i?kl.Dr():kl.newValue({stringValue:r})}}class Mc{constructor(e){this.expr=e}evaluate(e,t){var n,r;je(2===this.expr.params.length,4483);const i=Il(this.expr.params[0]).evaluate(e,t);switch(i.type){case"UNSET":return kl.Sr();case"MAP":break;default:return kl.vr()}const s=Il(this.expr.params[1]).evaluate(e,t);if("STRING"!==s.type)return kl.vr();const a=null===(n=i.value)||void 0===n||null===(n=n.mapValue)||void 0===n||null===(n=n.fields)||void 0===n?void 0:n[null===(r=s.value)||void 0===r?void 0:r.stringValue];return void 0===a?kl.Sr():kl.newValue(a)}}class Uc{constructor(e){this.expr=e}evaluate(e,t){var n,r;je(2===this.expr.params.length,25231,"".concat(this.expr.name,"() function should have exactly 2 params"));let i=!1;const s=Il(this.expr.params[0]).evaluate(e,t);switch(s.type){case"VECTOR":break;case"NULL":i=!0;break;default:return kl.vr()}const a=Il(this.expr.params[1]).evaluate(e,t);switch(a.type){case"VECTOR":break;case"NULL":i=!0;break;default:return kl.vr()}if(i)return kl.Dr();const o=fr(s.value),l=fr(a.value);if(void 0===o||void 0===l||(null===(n=o.values)||void 0===n?void 0:n.length)!==(null===(r=l.values)||void 0===r?void 0:r.length))return kl.vr();const c=this.qr(o,l);return void 0===c||isNaN(c)?kl.vr():kl.newValue({doubleValue:c})}}class Vc extends Uc{qr(e,t){var n,r;const i=null!==(n=null===e||void 0===e?void 0:e.values)&&void 0!==n?n:[],s=null!==(r=null===t||void 0===t?void 0:t.values)&&void 0!==r?r:[];if(0===i.length)return;let a=0,o=0,l=0;for(let u=0;u<i.length;u++){if(!or(i[u])||!or(s[u]))return;const e=Dl(i[u]),t=Dl(s[u]);a+=e*t,o+=e*e,l+=t*t}const c=Math.sqrt(o)*Math.sqrt(l);return 0!==c?1-Math.max(-1,Math.min(1,a/c)):void 0}}class Fc extends Uc{qr(e,t){var n,r;const i=null!==(n=null===e||void 0===e?void 0:e.values)&&void 0!==n?n:[],s=null!==(r=null===t||void 0===t?void 0:t.values)&&void 0!==r?r:[];if(0===i.length)return 0;let a=0;for(let o=0;o<i.length;o++){if(!or(i[o])||!or(s[o]))return;a+=Dl(i[o])*Dl(s[o])}return a}}class jc extends Uc{qr(e,t){var n,r;const i=null!==(n=null===e||void 0===e?void 0:e.values)&&void 0!==n?n:[],s=null!==(r=null===t||void 0===t?void 0:t.values)&&void 0!==r?r:[];if(0===i.length)return 0;let a=0;for(let o=0;o<i.length;o++){if(!or(i[o])||!or(s[o]))return;const e=Dl(i[o]),t=Dl(s[o]);a+=Math.pow(e-t,2)}return Math.sqrt(a)}}class zc{constructor(e){this.expr=e}evaluate(e,t){je(1===this.expr.params.length,39044);const n=Il(this.expr.params[0]).evaluate(e,t);switch(n.type){case"VECTOR":{var r,i;const e=fr(n.value);return kl.newValue({integerValue:null!==(r=null===e||void 0===e||null===(i=e.values)||void 0===i?void 0:i.length)&&void 0!==r?r:0})}case"NULL":return kl.Dr();default:return kl.vr()}}}const Bc=BigInt(-62135596800),Hc=BigInt(253402300799),qc=BigInt(1e3),Gc=BigInt(1e6),Wc=Bc*qc,Kc=Hc*qc+BigInt(999),Qc=Bc*Gc,Yc=Hc*Gc+BigInt(999999);function $c(e){return e>=Qc&&e<=Yc}function Xc(e){return e>=Bc&&e<=Hc}function Jc(e,t){const n=BigInt(e);return!(n<Bc||n>Hc)&&!(t<0||t>=1e9)&&(n!==Bc||0===t)&&!(n===Hc&&t>999999999)}function Zc(e,t){return t<0?{seconds:e-1,nanos:t+1e9}:{seconds:e,nanos:t}}function eu(e){return BigInt(e.seconds)*Gc+BigInt(Math.trunc(e.nanoseconds/1e3))}class tu{constructor(e){this.expr=e}evaluate(e,t){je(1===this.expr.params.length,49262,"".concat(this.expr.name,"() function should have exactly one parameter"));const n=Il(this.expr.params[0]).evaluate(e,t);switch(n.type){case"INT":return this.toTimestamp(BigInt(n.value.integerValue));case"NULL":return kl.Dr();default:return kl.vr()}}}class nu extends tu{toTimestamp(e){if(!$c(e))return kl.vr();let t=Number(e/Gc),n=Number(e%Gc*BigInt(1e3));const r=Zc(t,n);return t=r.seconds,n=r.nanos,Jc(t,n)?kl.newValue({timestampValue:{seconds:t,nanos:n}}):kl.vr()}}class ru extends tu{toTimestamp(e){if(!function(e){return e>=Wc&&e<=Kc}(e))return kl.vr();let t=Number(e/qc),n=Number(e%qc*BigInt(1e6));const r=Zc(t,n);return t=r.seconds,n=r.nanos,Jc(t,n)?kl.newValue({timestampValue:{seconds:t,nanos:n}}):kl.vr()}}class iu extends tu{toTimestamp(e){if(!Xc(e))return kl.vr();const t=Number(e);return kl.newValue({timestampValue:{seconds:t,nanos:0}})}}class su{constructor(e){this.expr=e}evaluate(e,t){je(1===this.expr.params.length,1265,"".concat(this.expr.name,"() function should have exactly one parameter"));const n=Il(this.expr.params[0]).evaluate(e,t);switch(n.type){case"TIMESTAMP":break;case"NULL":return kl.Dr();default:return kl.vr()}const r=Ps(n.value.timestampValue);return Jc(r.seconds,r.nanoseconds)?this.$r(r):kl.vr()}}class au extends su{$r(e){const t=eu(e);return $c(t)?kl.newValue({integerValue:"".concat(t.toString())}):kl.vr()}}class ou extends su{$r(e){const t=eu(e),n=t/BigInt(1e3),r=t%BigInt(1e3);return n>BigInt(0)||r===BigInt(0)?kl.newValue({integerValue:n.toString()}):kl.newValue({integerValue:(n-BigInt(1)).toString()})}}class lu extends su{$r(e){const t=BigInt(e.seconds);return Xc(t)?kl.newValue({integerValue:t.toString()}):kl.vr()}}class cu{constructor(e){this.expr=e}evaluate(e,t){je(3===this.expr.params.length,2775,"".concat(this.expr.name,"() function should have exactly 3 parameters"));let n=!1;const r=Il(this.expr.params[0]).evaluate(e,t);switch(r.type){case"TIMESTAMP":break;case"NULL":n=!0;break;default:return kl.vr()}const i=Il(this.expr.params[1]).evaluate(e,t);let s;switch(i.type){case"STRING":if(s=function(e){switch(e){case"microsecond":return"microsecond";case"millisecond":return"millisecond";case"second":return"second";case"minute":return"minute";case"hour":return"hour";case"day":return"day";default:return}}(i.value.stringValue),void 0===s)return kl.vr();break;case"NULL":n=!0;break;default:return kl.vr()}const a=Il(this.expr.params[2]).evaluate(e,t);switch(a.type){case"INT":break;case"NULL":n=!0;break;default:return kl.vr()}if(n)return kl.Dr();const o=BigInt(a.value.integerValue);let l;try{switch(s){case"microsecond":l=o;break;case"millisecond":l=o*BigInt(1e3);break;case"second":l=o*BigInt(1e6);break;case"minute":l=o*BigInt(6e7);break;case"hour":l=o*BigInt(36e8);break;case"day":l=o*BigInt(864e8);break;default:return kl.vr()}if("microsecond"!==s&&o!==BigInt(0)&&l/o!==BigInt(this.Kr(s)))return kl.vr()}catch(e){return Me("Error during timestamp arithmetic: ".concat(e)),kl.vr()}const c=Ps(r.value.timestampValue);if(!Jc(c.seconds,c.nanoseconds))return kl.vr();const u=eu(c),h=this.Wr(u,l);if(!$c(h))return kl.vr();const d=Number(h/Gc),f=h%Gc,p=Number((f<0?f+Gc:f)*BigInt(1e3)),m=f<0?d-1:d;return Jc(m,p)?kl.newValue({timestampValue:{seconds:m,nanos:p}}):kl.vr()}Kr(e){switch(e){case"millisecond":return 1e3;case"second":return 1e6;case"minute":return 6e7;case"hour":return 36e8;case"day":return 864e8;default:return 1}}}class uu extends cu{Wr(e,t){return e+t}}class hu extends cu{Wr(e,t){return e-t}}function du(e){if((e=Nl(e))instanceof Ko)return"fld(".concat(e.fieldName,")");if(e instanceof Yo)return"cst(".concat(function(e){return null===e?"null":"number"==typeof e?e.toString():"string"==typeof e?'"'.concat(e,'"'):e instanceof to?"ref(".concat(e.path,")"):e instanceof so?"vec(".concat(JSON.stringify(e),")"):JSON.stringify(e)}(e.value),")");if(e instanceof Jo)return"fn(".concat(e.name,",[").concat(e.params.map(du).join(","),"])");if("ListOfExpressions"===e.expressionType)return"list([".concat(e.Rr.map(du).join(","),"])");throw new Error("Unrecognized expr ".concat(JSON.stringify(e,null,2)))}function fu(e){return"".concat(Array.from(e.entries()).sort().map(e=>{let t=(0,c.A)(e,2),n=t[0],r=t[1];return"".concat(n,"=").concat(du(r))}).join(","))}function pu(e){return e.stages.map(e=>function(e){if(e instanceof al)return"".concat(e._name,"(").concat(fu(e.fields),")");if(e instanceof ol){let t="".concat(e._name,"(").concat(fu(e.accumulators),")");return e.groups.size>0&&(t+="grouping(".concat(fu(e.groups),")")),t}if(e instanceof ll)return"".concat(e._name,"(").concat(fu(e.groups),")");if(e instanceof cl)return"".concat(e._name,"(").concat(e.Vr,")");if(e instanceof ul)return"".concat(e._name,"(").concat(e.collectionId,")");if(e instanceof hl)return"".concat(e._name,"()");if(e instanceof dl)return"".concat(e._name,"(").concat(e.dr.sort(),")");if(e instanceof fl)return"".concat(e._name,"(").concat(du(e.condition),")");if(e instanceof pl)return"".concat(e._name,"(").concat(e.limit,")");if(e instanceof vl)return"".concat(e._name,"(").concat(function(e){return e.map(e=>"".concat(du(e.expr)).concat(e.direction)).join(",")}(e.orderings),")");throw new Error("Unrecognized stage ".concat(e._name))}(e)).join("|")}function mu(e,t){return pu(e)===pu(t)}function gu(e){return e instanceof bl}function vu(e){return gu(e)?pu(e):zi(e)}function yu(e){return gu(e)?pu(e):function(e){return"".concat(Ci(Mi(e)),"|lt:").concat(e.limitType)}(e)}function wu(e,t){return e instanceof bl&&t instanceof bl?mu(e,t):!(e instanceof bl&&!(t instanceof bl)||!(e instanceof bl)&&t instanceof bl)&&ji(e,t)}function bu(e){return ki(e)?pu(e):Ci(e)}function Eu(e,t){return e instanceof bl&&t instanceof bl?mu(e,t):!(e instanceof bl&&!(t instanceof bl)||!(e instanceof bl)&&t instanceof bl)&&Ti(e,t)}class _u{constructor(e,t,n,r){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=r}applyToRemoteDocument(e,t){const n=t.mutationResults;for(let r=0;r<this.mutations.length;r++){const t=this.mutations[r];t.key.isEqual(e.key)&&Hr(t,e,n[r])}}applyToLocalView(e,t){for(const n of this.baseMutations)n.key.isEqual(e.key)&&(t=qr(n,e,t,this.localWriteTime));for(const n of this.mutations)n.key.isEqual(e.key)&&(t=qr(n,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){const n=rs();return this.mutations.forEach(r=>{const i=e.get(r.key),s=i.overlayedDocument;let a=this.applyToLocalView(s,i.mutatedFields);a=t.has(r.key)?null:a;const o=Br(s,a);null!==o&&n.set(r.key,o),s.isValidDocument()||s.convertToNoDocument(_t.min())}),n}keys(){return this.mutations.reduce((e,t)=>e.add(t.key),os())}isEqual(e){return this.batchId===e.batchId&&it(this.mutations,e.mutations,(e,t)=>Wr(e,t))&&it(this.baseMutations,e.baseMutations,(e,t)=>Wr(e,t))}}class Au{constructor(e,t,n,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=r}static from(e,t,n){je(e.mutations.length===n.length,58842,{Qr:e.mutations.length,Gr:n.length});let r=ss;const i=e.mutations;for(let s=0;s<i.length;s++)r=r.insert(i[s].key,n[s].version);return new Au(e,t,n,r)}}class Su{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return"Overlay{\n      largestBatchId: ".concat(this.largestBatchId,",\n      mutation: ").concat(this.mutation.toString(),"\n    }")}}class Cu{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:_t.min(),s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:_t.min(),a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Tn.EMPTY_BYTE_STRING,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=s,this.resumeToken=a,this.expectedCount=o}withSequenceNumber(e){return new Cu(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new Cu(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new Cu(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new Cu(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}class Tu{constructor(e){this.zr=e}}function ku(e){const t=$s({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?Fi(t,t.limit,"L"):t}class xu{constructor(){}Yr(e,t){this.Zr(e,t),t.Xr()}Zr(e,t){if("nullValue"in e)this.ei(t,5);else if("booleanValue"in e)this.ei(t,10),t.ti(e.booleanValue?1:0);else if("integerValue"in e)this.ei(t,15),t.ti(Nn(e.integerValue));else if("doubleValue"in e){const n=Nn(e.doubleValue);isNaN(n)?this.ei(t,13):(this.ei(t,15),Vt(n)?t.ti(0):t.ti(n))}else if("timestampValue"in e){let n=e.timestampValue;this.ei(t,20),"string"==typeof n&&(n=xn(n)),t.ni("".concat(n.seconds||"")),t.ti(n.nanos||0)}else if("stringValue"in e)this.ri(e.stringValue,t),this.ii(t);else if("bytesValue"in e)this.ei(t,30),t.si(In(e.bytesValue)),this.ii(t);else if("referenceValue"in e)this._i(e.referenceValue,t);else if("geoPointValue"in e){const n=e.geoPointValue;this.ei(t,45),t.ti(n.latitude||0),t.ti(n.longitude||0)}else"mapValue"in e?mr(e)?this.ei(t,Number.MAX_SAFE_INTEGER):dr(e)?this.oi(e.mapValue,t):(this.ai(e.mapValue,t),this.ii(t)):"arrayValue"in e?(this.ui(e.arrayValue,t),this.ii(t)):Ve(19022,{ci:e})}ri(e,t){this.ei(t,25),this.li(e,t)}li(e,t){t.ni(e)}ai(e,t){const n=e.fields||{};this.ei(t,55);for(const r of Object.keys(n))this.ri(r,t),this.Zr(n[r],t)}oi(e,t){var n;const r=e.fields||{};this.ei(t,53);const i=Gn,s=(null===(n=r[i].arrayValue)||void 0===n||null===(n=n.values)||void 0===n?void 0:n.length)||0;this.ei(t,15),t.ti(Nn(s)),this.ri(i,t),this.Zr(r[i],t)}ui(e,t){const n=e.values||[];this.ei(t,50);for(const r of n)this.Zr(r,t)}_i(e,t){this.ei(t,37),ut.fromName(e).path.forEach(e=>{this.ei(t,60),this.li(e,t)})}ei(e,t){e.ti(t)}ii(e){e.ti(2)}}xu.Ei=new xu;class Nu{constructor(){this.Hi=new Iu}addToCollectionParentIndex(e,t){return this.Hi.add(t),Rt.resolve()}getCollectionParents(e,t){return Rt.resolve(this.Hi.getEntries(t))}addFieldIndex(e,t){return Rt.resolve()}deleteFieldIndex(e,t){return Rt.resolve()}deleteAllFieldIndexes(e){return Rt.resolve()}createTargetIndexes(e,t){return Rt.resolve()}getDocumentsMatchingTarget(e,t){return Rt.resolve(null)}getIndexType(e,t){return Rt.resolve(0)}getFieldIndexes(e,t){return Rt.resolve([])}getNextCollectionGroupToUpdate(e){return Rt.resolve(null)}getMinOffset(e,t){return Rt.resolve(kt.min())}getMinOffsetFromCollectionGroup(e,t){return Rt.resolve(kt.min())}updateCollectionGroup(e,t,n){return Rt.resolve()}updateIndexEntries(e,t){return Rt.resolve()}}class Iu{constructor(){this.index={}}add(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new yn(ot.comparator),i=!r.has(n);return this.index[t]=r.add(n),i}has(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)}getEntries(e){return(this.index[e]||new yn(ot.comparator)).toArray()}}new Uint8Array(0);class Ou{constructor(e){this.Ds=e}next(){return this.Ds+=2,this.Ds}static xs(){return new Ou(0)}static Cs(){return new Ou(-1)}}function Ru(e,t){let n=t;for(const i of e.stages){var r;n=Lu({serializer:e.serializer,serverTimestampBehavior:null===(r=e.listenOptions)||void 0===r?void 0:r.serverTimestampBehavior},i,n)}return n}function Pu(e,t){return Ru(e,[t]).length>0}function Du(e,t){return gu(e)?Pu(e,t):Bi(e,t)}function Lu(e,t,n){if(t instanceof cl)return function(e,t,n){return n.filter(e=>e.isFoundDocument()&&"/".concat(e.key.getCollectionPath().canonicalString())===t.Vr)}(0,t,n);if(t instanceof fl)return function(e,t,n){return n.filter(n=>{const r=xl(Il(t.condition).evaluate(e,n));return void 0!==r&&$n(r,Kn)})}(e,t,n);if(t instanceof ul)return function(e,t,n){return n.filter(e=>e.isFoundDocument()&&e.key.getCollectionPath().lastSegment()===t.collectionId)}(0,t,n);if(t instanceof hl)return function(e,t,n){return n.filter(e=>e.isFoundDocument())}(0,0,n);if(t instanceof dl)return function(e,t,n){return n.filter(e=>e.isFoundDocument()&&t.mr.has(e.key.path.toStringWithLeadingSlash()))}(0,t,n);if(t instanceof pl)return function(e,t,n){return n.slice(0,t.limit)}(0,t,n);if(t instanceof vl)return function(e,t,n){const r=t.orderings.map(e=>({ks:Il(e.expr),direction:e.direction}));return[...n].sort((t,n)=>{for(const i of r){const r=i.ks,s=i.direction;{const i=xl(r.evaluate(e,t)),a=xl(r.evaluate(e,n)),o=Jn(null!==i&&void 0!==i?i:Wn,null!==a&&void 0!==a?a:Wn);if(0!==o)return"ascending"===s?o:-o}}return 0})}(e,t,n);throw new Error("Unknown stage: ".concat(t._name))}function Mu(e){const t=function(e){for(let t=e.stages.length-1;t>=0;t--){const n=e.stages[t];if(n instanceof vl)return n.orderings}throw new Error("Pipeline must contain at least one Sort stage")}(e);return(n,r)=>{for(const i of t){const t=xl(Il(i.expr).evaluate({serializer:e.serializer},n)),s=xl(Il(i.expr).evaluate({serializer:e.serializer},r)),a=Jn(t||Wn,s||Wn);if(0!==a)return"ascending"===i.direction?a:-a}return 0}}function Uu(e){for(let t=e.stages.length-1;t>=0;t--){const n=e.stages[t];if(n instanceof pl)return{limit:n.limit}}}class Vu{constructor(){this.changes=new $i(e=>e.toString(),(e,t)=>e.isEqual(t)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,_i.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();const n=this.changes.get(t);return void 0!==n?Rt.resolve(n):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}class Fu{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}class ju{constructor(e,t,n,r){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=n,this.indexManager=r}getDocument(e,t){let n=null;return this.documentOverlayCache.getOverlay(e,t).next(r=>(n=r,this.remoteDocumentCache.getEntry(e,t))).next(e=>(null!==n&&qr(n.mutation,e,bn.empty(),Et.now()),e))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.getLocalViewOfDocuments(e,t,os()).next(()=>t))}getLocalViewOfDocuments(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:os();const r=ns();return this.populateOverlays(e,r,t).next(()=>this.computeViews(e,t,r,n).next(e=>{let t=es();return e.forEach((e,n)=>{t=t.insert(e,n.overlayedDocument)}),t}))}getOverlayedDocuments(e,t){const n=ns();return this.populateOverlays(e,n,t).next(()=>this.computeViews(e,t,n,os()))}populateOverlays(e,t,n){const r=[];return n.forEach(e=>{t.has(e)||r.push(e)}),this.documentOverlayCache.getOverlays(e,r).next(e=>{e.forEach((e,n)=>{t.set(e,n)})})}computeViews(e,t,n,r){let i=Ji();const s=is(),a=is();return t.forEach((e,t)=>{const a=n.get(t.key);r.has(t.key)&&(void 0===a||a.mutation instanceof Qr)?i=i.insert(t.key,t):void 0!==a?(s.set(t.key,a.mutation.getFieldMask()),qr(a.mutation,t,a.mutation.getFieldMask(),Et.now())):s.set(t.key,bn.empty())}),this.recalculateAndSaveOverlays(e,i).next(e=>(e.forEach((e,t)=>s.set(e,t)),t.forEach((e,t)=>{var n;return a.set(e,new Fu(t,null!==(n=s.get(e))&&void 0!==n?n:null))}),a))}recalculateAndSaveOverlays(e,t){const n=is();let r=new mn((e,t)=>e-t),i=os();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next(e=>{for(const i of e)i.keys().forEach(e=>{const s=t.get(e);if(null===s)return;let a=n.get(e)||bn.empty();a=i.applyToLocalView(s,a),n.set(e,a);const o=(r.get(i.batchId)||os()).add(e);r=r.insert(i.batchId,o)})}).next(()=>{const s=[],a=r.getReverseIterator();for(;a.hasNext();){const r=a.getNext(),o=r.key,l=r.value,c=rs();l.forEach(e=>{if(!i.has(e)){const r=Br(t.get(e),n.get(e));null!==r&&c.set(e,r),i=i.add(e)}}),s.push(this.documentOverlayCache.saveOverlays(e,o,c))}return Rt.waitFor(s)}).next(()=>n)}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.recalculateAndSaveOverlays(e,t))}getDocumentsMatchingQuery(e,t,n,r){return gu(t)?this.getDocumentsMatchingPipeline(e,t,n,r):Pi(t)?this.getDocumentsMatchingDocumentQuery(e,t.path):Di(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,n,r):this.getDocumentsMatchingCollectionQuery(e,t,n,r)}getNextDocuments(e,t,n,r){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,n,r).next(i=>{const s=r-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,n.largestBatchId,r-i.size):Rt.resolve(ns());let a=At,o=i;return s.next(t=>Rt.forEach(t,(t,n)=>(a<n.largestBatchId&&(a=n.largestBatchId),i.get(t)?Rt.resolve():this.remoteDocumentCache.getEntry(e,t).next(e=>{o=o.insert(t,e)}))).next(()=>this.populateOverlays(e,t,i)).next(()=>this.computeViews(e,o,t,os())).next(e=>({batchId:a,changes:ts(e)})))})}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new ut(t)).next(e=>{let t=es();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t})}getDocumentsMatchingCollectionGroupQuery(e,t,n,r){const i=t.collectionGroup;let s=es();return this.indexManager.getCollectionParents(e,i).next(a=>Rt.forEach(a,a=>{const o=function(e,t){return new Ni(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(t,a.child(i));return this.getDocumentsMatchingCollectionQuery(e,o,n,r).next(e=>{e.forEach((e,t)=>{s=s.insert(e,t)})})}).next(()=>s))}getDocumentsMatchingCollectionQuery(e,t,n,r){let i;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,n.largestBatchId).next(s=>(i=s,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,n,i,r))).next(e=>this.retrieveMatchingLocalDocuments(i,e,e=>Bi(t,e)))}getDocumentsMatchingPipeline(e,t,n,r){if("collection_group"===El(t)){const i=Al(t);let s=es();return this.indexManager.getCollectionParents(e,i).next(a=>Rt.forEach(a,a=>{const o=function(e,t){const n=e.stages.map(e=>e instanceof ul?new cl(t.canonicalString(),{}):e);return new bl(e.serializer,n)}(t,a.child(i));return this.getDocumentsMatchingPipeline(e,o,n,r).next(e=>{e.forEach((e,t)=>{s=s.insert(e,t)})})}).next(()=>s))}{let i;return this.getOverlaysForPipeline(e,t,n.largestBatchId).next(s=>{switch(i=s,El(t)){case"collection":return this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,n,i,r);case"documents":let s=os();for(const e of Cl(t))s=s.add(ut.fromPath(e));return this.remoteDocumentCache.getEntries(e,s);case"database":return this.remoteDocumentCache.getAllEntries(e);default:throw new He("invalid-argument","Invalid pipeline source to execute offline: ".concat(pu(t)))}}).next(e=>this.retrieveMatchingLocalDocuments(i,e,e=>Pu(t,e)))}}retrieveMatchingLocalDocuments(e,t,n){e.forEach((e,n)=>{const r=n.getKey();null===t.get(r)&&(t=t.insert(r,_i.newInvalidDocument(r)))});let r=es();return t.forEach((t,i)=>{const s=e.get(t);void 0!==s&&qr(s.mutation,i,bn.empty(),Et.now()),n(i)&&(r=r.insert(t,i))}),r}getOverlaysForPipeline(e,t,n){switch(El(t)){case"collection":return this.documentOverlayCache.getOverlaysForCollection(e,ot.fromString(_l(t)),n);case"collection_group":throw new He("invalid-argument","Unexpected collection group pipeline: ".concat(pu(t)));case"documents":return this.documentOverlayCache.getOverlays(e,Cl(t).map(e=>ut.fromPath(e)));case"database":return this.documentOverlayCache.getAllOverlays(e,n);default:throw new He("invalid-argument","Failed to get overlays for pipeline: ".concat(pu(t)))}}}class zu{constructor(e){this.serializer=e,this.Hs=new Map,this.Js=new Map}getBundleMetadata(e,t){return Rt.resolve(this.Hs.get(t))}saveBundleMetadata(e,t){return this.Hs.set(t.id,function(e){return{id:e.id,version:e.version,createTime:Ms(e.createTime)}}(t)),Rt.resolve()}getNamedQuery(e,t){return Rt.resolve(this.Js.get(t))}saveNamedQuery(e,t){return this.Js.set(t.name,function(e){return{name:e.name,query:ku(e.bundledQuery),readTime:Ms(e.readTime)}}(t)),Rt.resolve()}}class Bu{constructor(){this.overlays=new mn(ut.comparator),this.Ys=new Map}getOverlay(e,t){return Rt.resolve(this.overlays.get(t))}getOverlays(e,t){const n=ns();return Rt.forEach(t,t=>this.getOverlay(e,t).next(e=>{null!==e&&n.set(t,e)})).next(()=>n)}getAllOverlays(e,t){const n=ns();return this.overlays.forEach((e,r)=>{r.largestBatchId>t&&n.set(e,r)}),Rt.resolve(n)}saveOverlays(e,t,n){return n.forEach((n,r)=>{this.Hr(e,t,r)}),Rt.resolve()}removeOverlaysForBatchId(e,t,n){const r=this.Ys.get(n);return void 0!==r&&(r.forEach(e=>this.overlays=this.overlays.remove(e)),this.Ys.delete(n)),Rt.resolve()}getOverlaysForCollection(e,t,n){const r=ns(),i=t.length+1,s=new ut(t.child("")),a=this.overlays.getIteratorFrom(s);for(;a.hasNext();){const e=a.getNext().value,s=e.getKey();if(!t.isPrefixOf(s.path))break;s.path.length===i&&e.largestBatchId>n&&r.set(e.getKey(),e)}return Rt.resolve(r)}getOverlaysForCollectionGroup(e,t,n,r){let i=new mn((e,t)=>e-t);const s=this.overlays.getIterator();for(;s.hasNext();){const e=s.getNext().value;if(e.getKey().getCollectionGroup()===t&&e.largestBatchId>n){let t=i.get(e.largestBatchId);null===t&&(t=ns(),i=i.insert(e.largestBatchId,t)),t.set(e.getKey(),e)}}const a=ns(),o=i.getIterator();for(;o.hasNext()&&(o.getNext().value.forEach((e,t)=>a.set(e,t)),!(a.size()>=r)););return Rt.resolve(a)}Hr(e,t,n){const r=this.overlays.get(n.key);if(null!==r){const e=this.Ys.get(r.largestBatchId).delete(n.key);this.Ys.set(r.largestBatchId,e)}this.overlays=this.overlays.insert(n.key,new Su(t,n));let i=this.Ys.get(t);void 0===i&&(i=os(),this.Ys.set(t,i)),this.Ys.set(t,i.add(n.key))}}class Hu{constructor(){this.sessionToken=Tn.EMPTY_BYTE_STRING}getSessionToken(e){return Rt.resolve(this.sessionToken)}setSessionToken(e,t){return this.sessionToken=t,Rt.resolve()}}class qu{constructor(){this.Zs=new yn(Gu.Xs),this.e_=new yn(Gu.t_)}isEmpty(){return this.Zs.isEmpty()}addReference(e,t){const n=new Gu(e,t);this.Zs=this.Zs.add(n),this.e_=this.e_.add(n)}n_(e,t){e.forEach(e=>this.addReference(e,t))}removeReference(e,t){this.r_(new Gu(e,t))}i_(e,t){e.forEach(e=>this.removeReference(e,t))}s_(e){const t=new ut(new ot([])),n=new Gu(t,e),r=new Gu(t,e+1),i=[];return this.e_.forEachInRange([n,r],e=>{this.r_(e),i.push(e.key)}),i}__(){this.Zs.forEach(e=>this.r_(e))}r_(e){this.Zs=this.Zs.delete(e),this.e_=this.e_.delete(e)}o_(e){const t=new ut(new ot([])),n=new Gu(t,e),r=new Gu(t,e+1);let i=os();return this.e_.forEachInRange([n,r],e=>{i=i.add(e.key)}),i}containsKey(e){const t=new Gu(e,0),n=this.Zs.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)}}class Gu{constructor(e,t){this.key=e,this.a_=t}static Xs(e,t){return ut.comparator(e.key,t.key)||tt(e.a_,t.a_)}static t_(e,t){return tt(e.a_,t.a_)||ut.comparator(e.key,t.key)}}class Wu{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.gs=1,this.u_=new yn(Gu.Xs)}checkEmpty(e){return Rt.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,n,r){const i=this.gs;this.gs++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const s=new _u(i,t,n,r);this.mutationQueue.push(s);for(const a of r)this.u_=this.u_.add(new Gu(a.key,i)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return Rt.resolve(s)}lookupMutationBatch(e,t){return Rt.resolve(this.c_(t))}getNextMutationBatchAfterBatchId(e,t){const n=t+1,r=this.l_(n),i=r<0?0:r;return Rt.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}getHighestUnacknowledgedBatchId(){return Rt.resolve(0===this.mutationQueue.length?Mt:this.gs-1)}getAllMutationBatches(e){return Rt.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){const n=new Gu(t,0),r=new Gu(t,Number.POSITIVE_INFINITY),i=[];return this.u_.forEachInRange([n,r],e=>{const t=this.c_(e.a_);i.push(t)}),Rt.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new yn(tt);return t.forEach(e=>{const t=new Gu(e,0),r=new Gu(e,Number.POSITIVE_INFINITY);this.u_.forEachInRange([t,r],e=>{n=n.add(e.a_)})}),Rt.resolve(this.E_(n))}getAllMutationBatchesAffectingQuery(e,t){const n=t.path,r=n.length+1;let i=n;ut.isDocumentKey(i)||(i=i.child(""));const s=new Gu(new ut(i),0);let a=new yn(tt);return this.u_.forEachWhile(e=>{const t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(a=a.add(e.a_)),!0)},s),Rt.resolve(this.E_(a))}E_(e){const t=[];return e.forEach(e=>{const n=this.c_(e);null!==n&&t.push(n)}),t}removeMutationBatch(e,t){je(0===this.h_(t.batchId,"removed"),55003),this.mutationQueue.shift();let n=this.u_;return Rt.forEach(t.mutations,r=>{const i=new Gu(r.key,t.batchId);return n=n.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,r.key)}).next(()=>{this.u_=n})}bs(e){}containsKey(e,t){const n=new Gu(t,0),r=this.u_.firstAfterOrEqual(n);return Rt.resolve(t.isEqual(r&&r.key))}performConsistencyCheck(e){return this.mutationQueue.length,Rt.resolve()}h_(e,t){return this.l_(e)}l_(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}c_(e){const t=this.l_(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}class Ku{constructor(e){this.T_=e,this.docs=new mn(ut.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){const n=t.key,r=this.docs.get(n),i=r?r.size:0,s=this.T_(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:s}),this.size+=s-i,this.indexManager.addToCollectionParentIndex(e,n.path.popLast())}removeEntry(e){const t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){const n=this.docs.get(t);return Rt.resolve(n?n.document.mutableCopy():_i.newInvalidDocument(t))}getEntries(e,t){let n=Ji();return t.forEach(e=>{const t=this.docs.get(e);n=n.insert(e,t?t.document.mutableCopy():_i.newInvalidDocument(e))}),Rt.resolve(n)}getAllEntries(e){let t=Ji();return this.docs.forEach((e,n)=>{t=t.insert(e,n.document)}),Rt.resolve(t)}getDocumentsMatchingQuery(e,t,n,r){let i,s;gu(t)?(i=ot.fromString(_l(t)),s=e=>Pu(t,e)):(i=t.path,s=e=>Bi(t,e));let a=Ji();const o=new ut(i.child("__id-9223372036854775808__")),l=this.docs.getIteratorFrom(o);for(;l.hasNext();){const e=l.getNext(),t=e.key,o=e.value.document;if(!i.isPrefixOf(t.path))break;t.path.length>i.length+1||xt(Tt(o),n)<=0||(r.has(o.key)||s(o))&&(a=a.insert(o.key,o.mutableCopy()))}return Rt.resolve(a)}getAllFromCollectionGroup(e,t,n,r){Ve(9500)}P_(e,t){return Rt.forEach(this.docs,e=>t(e))}newChangeBuffer(e){return new Qu(this)}getSize(e){return Rt.resolve(this.size)}}class Qu extends Vu{constructor(e){super(),this.zs=e}applyChanges(e){const t=[];return this.changes.forEach((n,r)=>{r.isValidDocument()?t.push(this.zs.addEntry(e,r)):this.zs.removeEntry(n)}),Rt.waitFor(t)}getFromCache(e,t){return this.zs.getEntry(e,t)}getAllFromCache(e,t){return this.zs.getEntries(e,t)}}class Yu{constructor(e){this.persistence=e,this.R_=new $i(e=>bu(e),Eu),this.lastRemoteSnapshotVersion=_t.min(),this.highestTargetId=0,this.I_=0,this.A_=new qu,this.targetCount=0,this.V_=Ou.xs()}forEachTarget(e,t){return this.R_.forEach((e,n)=>t(n)),Rt.resolve()}getLastRemoteSnapshotVersion(e){return Rt.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return Rt.resolve(this.I_)}allocateTargetId(e){return this.highestTargetId=this.V_.next(),Rt.resolve(this.highestTargetId)}setTargetsMetadata(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.I_&&(this.I_=t),Rt.resolve()}Ms(e){this.R_.set(e.target,e);const t=e.targetId;t>this.highestTargetId&&(this.V_=new Ou(t),this.highestTargetId=t),e.sequenceNumber>this.I_&&(this.I_=e.sequenceNumber)}addTargetData(e,t){return this.Ms(t),this.targetCount+=1,Rt.resolve()}updateTargetData(e,t){return this.Ms(t),Rt.resolve()}removeTargetData(e,t){return this.R_.delete(t.target),this.A_.s_(t.targetId),this.targetCount-=1,Rt.resolve()}removeTargets(e,t,n){let r=0;const i=[];return this.R_.forEach((s,a)=>{a.sequenceNumber<=t&&null===n.get(a.targetId)&&(this.R_.delete(s),i.push(this.removeMatchingKeysForTargetId(e,a.targetId)),r++)}),Rt.waitFor(i).next(()=>r)}getTargetCount(e){return Rt.resolve(this.targetCount)}getTargetData(e,t){const n=this.R_.get(t)||null;return Rt.resolve(n)}addMatchingKeys(e,t,n){return this.A_.n_(t,n),Rt.resolve()}removeMatchingKeys(e,t,n){this.A_.i_(t,n);const r=this.persistence.referenceDelegate,i=[];return r&&t.forEach(t=>{i.push(r.markPotentiallyOrphaned(e,t))}),Rt.waitFor(i)}removeMatchingKeysForTargetId(e,t){return this.A_.s_(t),Rt.resolve()}getMatchingKeysForTargetId(e,t){const n=this.A_.o_(t);return Rt.resolve(n)}containsKey(e,t){return Rt.resolve(this.A_.containsKey(t))}}class $u{constructor(e,t){this.d_={},this.overlays={},this.f_=new Lt(0),this.m_=!1,this.m_=!0,this.p_=new Hu,this.referenceDelegate=e(this),this.g_=new Yu(this),this.indexManager=new Nu,this.remoteDocumentCache=function(e){return new Ku(e)}(e=>this.referenceDelegate.y_(e)),this.serializer=new Tu(t),this.w_=new zu(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.m_=!1,Promise.resolve()}get started(){return this.m_}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new Bu,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let n=this.d_[e.toKey()];return n||(n=new Wu(t,this.referenceDelegate),this.d_[e.toKey()]=n),n}getGlobalsCache(){return this.p_}getTargetCache(){return this.g_}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.w_}runTransaction(e,t,n){De("MemoryPersistence","Starting transaction:",e);const r=new Xu(this.f_.next());return this.referenceDelegate.b_(),n(r).next(e=>this.referenceDelegate.v_(r).next(()=>e)).toPromise().then(e=>(r.raiseOnCommittedEvent(),e))}S_(e,t){return Rt.or(Object.values(this.d_).map(n=>()=>n.containsKey(e,t)))}}class Xu extends It{constructor(e){super(),this.currentSequenceNumber=e}}class Ju{constructor(e){this.persistence=e,this.D_=new qu,this.x_=null}static C_(e){return new Ju(e)}get F_(){if(this.x_)return this.x_;throw Ve(60996)}addReference(e,t,n){return this.D_.addReference(n,t),this.F_.delete(n.toString()),Rt.resolve()}removeReference(e,t,n){return this.D_.removeReference(n,t),this.F_.add(n.toString()),Rt.resolve()}markPotentiallyOrphaned(e,t){return this.F_.add(t.toString()),Rt.resolve()}removeTarget(e,t){this.D_.s_(t.targetId).forEach(e=>this.F_.add(e.toString()));const n=this.persistence.getTargetCache();return n.getMatchingKeysForTargetId(e,t.targetId).next(e=>{e.forEach(e=>this.F_.add(e.toString()))}).next(()=>n.removeTargetData(e,t))}b_(){this.x_=new Set}v_(e){const t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return Rt.forEach(this.F_,n=>{const r=ut.fromPath(n);return this.O_(e,r).next(e=>{e||t.removeEntry(r,_t.min())})}).next(()=>(this.x_=null,t.apply(e)))}updateLimboDocument(e,t){return this.O_(e,t).next(e=>{e?this.F_.delete(t.toString()):this.F_.add(t.toString())})}y_(e){return 0}O_(e,t){return Rt.or([()=>Rt.resolve(this.D_.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.S_(e,t)])}}class Zu{constructor(e,t){this.persistence=e,this.M_=new $i(e=>Bt(e.path),(e,t)=>e.isEqual(t)),this.garbageCollector=Ya(this,t)}static C_(e,t){return new Zu(e,t)}b_(){}v_(e){return Rt.resolve()}forEachTarget(e,t){return this.persistence.getTargetCache().forEachTarget(e,t)}lr(e){const t=this.Ls(e);return this.persistence.getTargetCache().getTargetCount(e).next(e=>t.next(t=>e+t))}Ls(e){let t=0;return this.Er(e,e=>{t++}).next(()=>t)}Er(e,t){return Rt.forEach(this.M_,(n,r)=>this.Us(e,n,r).next(e=>e?Rt.resolve():t(r)))}removeTargets(e,t,n){return this.persistence.getTargetCache().removeTargets(e,t,n)}removeOrphanedDocuments(e,t){let n=0;const r=this.persistence.getRemoteDocumentCache(),i=r.newChangeBuffer();return r.P_(e,r=>this.Us(e,r,t).next(e=>{e||(n++,i.removeEntry(r,_t.min()))})).next(()=>i.apply(e)).next(()=>n)}markPotentiallyOrphaned(e,t){return this.M_.set(t,e.currentSequenceNumber),Rt.resolve()}removeTarget(e,t){const n=t.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,n)}addReference(e,t,n){return this.M_.set(n,e.currentSequenceNumber),Rt.resolve()}removeReference(e,t,n){return this.M_.set(n,e.currentSequenceNumber),Rt.resolve()}updateLimboDocument(e,t){return this.M_.set(t,e.currentSequenceNumber),Rt.resolve()}y_(e){let t=e.key.toString().length;return e.isFoundDocument()&&(t+=rr(e.data.value)),t}Us(e,t,n){return Rt.or([()=>this.persistence.S_(e,t),()=>this.persistence.getTargetCache().containsKey(e,t),()=>{const e=this.M_.get(t);return Rt.resolve(void 0!==e&&e>n)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}class eh{constructor(e,t,n,r){this.targetId=e,this.fromCache=t,this.wo=n,this.bo=r}static vo(e,t){let n=os(),r=os();for(const i of t.docChanges)switch(i.type){case 0:n=n.add(i.doc.key);break;case 1:r=r.add(i.doc.key)}return new eh(e,t.fromCache,n,r)}}function th(e,t){return ut.comparator(e.key,t.key)}class nh{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}class rh{constructor(){this.So=!1,this.Do=!1,this.xo=100,this.Co=(0,u.nr)()?8:Pt((0,u.ZQ)())>0?6:4}initialize(e,t){this.Fo=e,this.indexManager=t,this.So=!0}getDocumentsMatchingQuery(e,t,n,r){const i={result:null};return this.Oo(e,t).next(e=>{i.result=e}).next(()=>{if(!i.result)return this.Mo(e,t,r,n).next(e=>{i.result=e})}).next(()=>{if(i.result)return;const n=new nh;return this.No(e,t,n).next(r=>{if(i.result=r,this.Do)return this.Lo(e,t,n,r.size)})}).next(()=>i.result)}Lo(e,t,n,r){return gu(t)?Rt.resolve():n.documentReadCount<this.xo?(Pe()<=E.$b.DEBUG&&De("QueryEngine","SDK will not create cache indexes for query:",zi(t),"since it only creates cache indexes for collection contains","more than or equal to",this.xo,"documents"),Rt.resolve()):(Pe()<=E.$b.DEBUG&&De("QueryEngine","Query:",zi(t),"scans",n.documentReadCount,"local documents and returns",r,"documents as results."),n.documentReadCount>this.Co*r?(Pe()<=E.$b.DEBUG&&De("QueryEngine","The SDK decides to create cache indexes for query:",zi(t),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,Mi(t))):Rt.resolve())}Oo(e,t){if(gu(t))return Rt.resolve(null);let n=t;if(Ri(n))return Rt.resolve(null);let r=Mi(n);return this.indexManager.getIndexType(e,r).next(t=>0===t?null:(null!==n.limit&&1===t&&(n=Fi(n,null,"F"),r=Mi(n)),this.indexManager.getDocumentsMatchingTarget(e,r).next(t=>{const i=os(...t);return this.Fo.getDocuments(e,i).next(t=>this.indexManager.getMinOffset(e,r).next(r=>{const s=this.Bo(n,t);return this.Uo(n,s,i,r.readTime)?this.Oo(e,Fi(n,null,"F")):this.ko(e,s,n,r)}))})))}Mo(e,t,n,r){return(gu(t)?function(e){for(const t of e.stages){if(t instanceof pl||t instanceof ml)return!1;if(t instanceof fl){if(t.condition instanceof el&&"exists"===t.condition._expr.name&&t.condition._expr.params[0]instanceof Ko&&t.condition._expr.params[0].fieldName===st)continue;return!1}}return!0}(t):Ri(t))||r.isEqual(_t.min())?Rt.resolve(null):this.Fo.getDocuments(e,n).next(i=>{const s=this.Bo(t,i);return this.Uo(t,s,n,r)?Rt.resolve(null):(Pe()<=E.$b.DEBUG&&De("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),vu(t)),this.ko(e,s,t,Ct(r,At)).next(e=>e))})}Bo(e,t){let n,r;return gu(e)?(n=new yn(th),r=t=>Pu(e,t)):(n=new yn(Hi(e)),r=t=>Bi(e,t)),t.forEach((e,t)=>{r(t)&&(n=n.add(t))}),n}Uo(e,t,n,r){if(gu(e))return function(e){return e.stages.some(e=>e instanceof pl||e instanceof ml)}(e);if(null===e.limit)return!1;if(n.size!==t.size)return!0;const i="F"===e.limitType?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(r)>0)}No(e,t,n){return Pe()<=E.$b.DEBUG&&De("QueryEngine","Using full collection scan to execute query:",vu(t)),this.Fo.getDocumentsMatchingQuery(e,t,kt.min(),n)}ko(e,t,n,r){return this.Fo.getDocumentsMatchingQuery(e,n,r).next(e=>(t.forEach(t=>{e=e.insert(t.key,t)}),e))}}const ih="LocalStore";class sh{constructor(e,t,n,r){this.persistence=e,this.qo=t,this.serializer=r,this.$o=new mn(tt),this.Ko=new $i(e=>bu(e),Eu),this.Wo=new Map,this.Qo=e.getRemoteDocumentCache(),this.g_=e.getTargetCache(),this.w_=e.getBundleCache(),this.Go(n)}Go(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new ju(this.Qo,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Qo.setIndexManager(this.indexManager),this.qo.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",t=>e.collect(t,this.$o))}}function ah(e,t,n,r){return new sh(e,t,n,r)}async function oh(e,t){const n=ze(e);return await n.persistence.runTransaction("Handle user change","readonly",e=>{let r;return n.mutationQueue.getAllMutationBatches(e).next(i=>(r=i,n.Go(t),n.mutationQueue.getAllMutationBatches(e))).next(t=>{const i=[],s=[];let a=os();for(const e of r){i.push(e.batchId);for(const t of e.mutations)a=a.add(t.key)}for(const e of t){s.push(e.batchId);for(const t of e.mutations)a=a.add(t.key)}return n.localDocuments.getDocuments(e,a).next(e=>({zo:e,removedBatchIds:i,addedBatchIds:s}))})})}function lh(e){const t=ze(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",e=>t.g_.getLastRemoteSnapshotVersion(e))}function ch(e,t,n){let r=os(),i=os();return n.forEach(e=>r=r.add(e)),t.getEntries(e,r).next(e=>{let r=Ji();return n.forEach((n,s)=>{const a=e.get(n);s.isFoundDocument()!==a.isFoundDocument()&&(i=i.add(n)),s.isNoDocument()&&s.version.isEqual(_t.min())?(t.removeEntry(n,s.readTime),r=r.insert(n,s)):!a.isValidDocument()||s.version.compareTo(a.version)>0||0===s.version.compareTo(a.version)&&a.hasPendingWrites?(t.addEntry(s),r=r.insert(n,s)):De(ih,"Ignoring outdated watch update for ",n,". Current version:",a.version," Watch version:",s.version)}),{jo:r,Ho:i}})}function uh(e,t){const n=ze(e);return n.persistence.runTransaction("Get next mutation batch","readonly",e=>(void 0===t&&(t=Mt),n.mutationQueue.getNextMutationBatchAfterBatchId(e,t)))}function hh(e,t){const n=ze(e);return n.persistence.runTransaction("Allocate target","readwrite",e=>{let r;return n.g_.getTargetData(e,t).next(i=>i?(r=i,Rt.resolve(r)):n.g_.allocateTargetId(e).next(i=>(r=new Cu(t,i,"TargetPurposeListen",e.currentSequenceNumber),n.g_.addTargetData(e,r).next(()=>r))))}).then(e=>{const r=n.$o.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.$o=n.$o.insert(e.targetId,e),n.Ko.set(t,e.targetId)),e})}async function dh(e,t,n){const r=ze(e),i=r.$o.get(t),s=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",s,e=>r.persistence.referenceDelegate.removeTarget(e,i))}catch(e){if(!Dt(e))throw e;De(ih,"Failed to update sequence numbers for target ".concat(t,": ").concat(e))}r.$o=r.$o.remove(t),r.Ko.delete(i.target)}function fh(e,t,n){const r=ze(e);let i=_t.min(),s=os();return r.persistence.runTransaction("Execute query","readwrite",e=>function(e,t,n){const r=ze(e),i=r.Ko.get(n);return void 0!==i?Rt.resolve(r.$o.get(i)):r.g_.getTargetData(t,n)}(r,e,gu(t)?t:Mi(t)).next(t=>{if(t)return i=t.lastLimboFreeSnapshotVersion,r.g_.getMatchingKeysForTargetId(e,t.targetId).next(e=>{s=e})}).next(()=>r.qo.getDocumentsMatchingQuery(e,t,n?i:_t.min(),n?s:os())).next(e=>(ph(r,e),{documents:e,Jo:s})))}function ph(e,t){t.forEach((t,n)=>{const r=n.key.getCollectionGroup(),i=e.Wo.get(r)||_t.min();n.readTime.compareTo(i)>0&&e.Wo.set(r,n.readTime)})}class mh{constructor(){this.activeTargetIds=cs()}na(e){this.activeTargetIds=this.activeTargetIds.add(e)}ra(e){this.activeTargetIds=this.activeTargetIds.delete(e)}ta(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class gh{constructor(){this.Ua=new mh,this.ka={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,n){}addLocalQueryTarget(e){return(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&this.Ua.na(e),this.ka[e]||"not-current"}updateQueryState(e,t,n){this.ka[e]=t}removeLocalQueryTarget(e){this.Ua.ra(e)}isLocalQueryTarget(e){return this.Ua.activeTargetIds.has(e)}clearQueryState(e){delete this.ka[e]}getAllActiveQueryTargets(){return this.Ua.activeTargetIds}isActiveQueryTarget(e){return this.Ua.activeTargetIds.has(e)}start(){return this.Ua=new mh,Promise.resolve()}handleUserChange(e,t,n){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}function vh(){return"undefined"!=typeof document?document:null}class yh{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.qa=0,this.$a=null,this.Ka=!0}Wa(){0===this.qa&&(this.Qa("Unknown"),this.$a=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.$a=null,this.Ga("Backend didn't respond within 10 seconds."),this.Qa("Offline"),Promise.resolve())))}za(e){"Online"===this.state?this.Qa("Unknown"):(this.qa++,this.qa>=1&&(this.ja(),this.Ga("Connection failed 1 times. Most recent error: ".concat(e.toString())),this.Qa("Offline")))}set(e){this.ja(),this.qa=0,"Online"===e&&(this.Ka=!1),this.Qa(e)}Qa(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}Ga(e){const t="Could not reach Cloud Firestore backend. ".concat(e,"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.");this.Ka?(Le(t),this.Ka=!1):De("OnlineStateTracker",t)}ja(){null!==this.$a&&(this.$a.cancel(),this.$a=null)}}const wh="RemoteStore";class bh{constructor(e,t,n,r,i){this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.Ha=[],this.Ja=new Map,this.Ya=new Map,this.Za=new Map,this.Xa=new Ou(1e3),this.eu=new Ou(1001),this.tu=new Set,this.nu=[],this.ru=i,this.ru.bt(e=>{n.enqueueAndForget(async()=>{Ih(this)&&(De(wh,"Restarting streams for network reachability change."),await async function(e){const t=ze(e);t.tu.add(4),await _h(t),t.iu.set("Unknown"),t.tu.delete(4),await Eh(t)}(this))})}),this.iu=new yh(n,r)}}async function Eh(e){if(Ih(e))for(const t of e.nu)await t(!0)}async function _h(e){for(const t of e.nu)await t(!1)}function Ah(e,t){return e.Ya.get(t)||void 0}function Sh(e,t){const n=ze(e),r=Ah(n,t.targetId);if(void 0!==r&&n.Ja.has(r))return;const i=function(e,t){const n=Ah(e,t);void 0!==n&&e.Za.delete(n);const r=function(e,t){return t%2!=0?e.eu.next():e.Xa.next()}(e,t);return e.Ya.set(t,r),e.Za.set(r,t),r}(n,t.targetId);De(wh,"remoteStoreListen mapping SDK target ID to remote",t.targetId,i);const s=new Cu(t.target,i,t.purpose,t.sequenceNumber,t.snapshotVersion,t.lastLimboFreeSnapshotVersion,t.resumeToken);n.Ja.set(i,s),Nh(n)?xh(n):Yh(n).Fn()&&Th(n,s)}function Ch(e,t){const n=ze(e),r=Yh(n),i=Ah(n,t);De(wh,"remoteStoreUnlisten removing mapping of SDK target ID to remote",t,i),n.Ja.delete(i),n.Ya.delete(t),n.Za.delete(i),r.Fn()&&kh(n,i),0===n.Ja.size&&(r.Fn()?r.Nn():Ih(n)&&n.iu.set("Unknown"))}function Th(e,t){if(e.su.We(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo(_t.min())>0){const n=e.Za.get(t.targetId);if(void 0===n)return void De(wh,"SDK target ID not found for remote ID: "+t.targetId);const r=e.remoteSyncer.getRemoteKeysForTarget(n).size;t=t.withExpectedCount(r)}Yh(e).jn(t)}function kh(e,t){e.su.We(t),Yh(e).Hn(t)}function xh(e){e.su=new Ss({getRemoteKeysForTarget:t=>{const n=e.Za.get(t);return void 0!==n?e.remoteSyncer.getRemoteKeysForTarget(n):os()},dt:t=>e.Ja.get(t)||null,Tt:()=>e.datastore.serializer.databaseId}),Yh(e).start(),e.iu.Wa()}function Nh(e){return Ih(e)&&!Yh(e).Cn()&&e.Ja.size>0}function Ih(e){return 0===ze(e).tu.size}function Oh(e){e.su=void 0}async function Rh(e){e.iu.set("Online")}async function Ph(e){e.Ja.forEach((t,n)=>{Th(e,t)})}async function Dh(e,t){Oh(e),Nh(e)?(e.iu.za(t),xh(e)):e.iu.set("Unknown")}async function Lh(e,t,n){if(e.iu.set("Online"),t instanceof Es&&2===t.state&&t.cause)try{await async function(e,t){const n=t.cause;for(const r of t.targetIds){if(e.Ja.has(r)){const t=e.Za.get(r);void 0!==t&&(await e.remoteSyncer.rejectListen(t,n),e.Ya.delete(t),e.Za.delete(r)),e.Ja.delete(r)}e.su.removeTarget(r)}}(e,t)}catch(n){De(wh,"Failed to remove targets %s: %s ",t.targetIds.join(","),n),await Mh(e,n)}else if(t instanceof ws?e.su.et(t):t instanceof bs?e.su.ot(t):e.su.rt(t),!n.isEqual(_t.min()))try{const t=await lh(e.localStore);n.compareTo(t)>=0&&await function(e,t){const n=e.su.Rt(t);n.targetChanges.forEach((n,r)=>{if(n.resumeToken.approximateByteSize()>0){const i=e.Ja.get(r);i&&e.Ja.set(r,i.withResumeToken(n.resumeToken,t))}}),n.targetMismatches.forEach((t,n)=>{const r=e.Ja.get(t);if(!r)return;e.Ja.set(t,r.withResumeToken(Tn.EMPTY_BYTE_STRING,r.snapshotVersion)),kh(e,t);const i=new Cu(r.target,t,n,r.sequenceNumber);Th(e,i)});const r=function(e,t){const n=new Map;t.targetChanges.forEach((t,r)=>{const i=e.Za.get(r);void 0!==i&&n.set(i,t)});let r=new mn(tt);return t.targetMismatches.forEach((t,n)=>{const i=e.Za.get(t);void 0!==i&&(r=r.insert(i,n))}),new vs(t.snapshotVersion,n,r,t.documentUpdates,t.augmentedDocumentUpdates,t.resolvedLimboDocuments)}(e,n);return e.remoteSyncer.applyRemoteEvent(r)}(e,n)}catch(t){De(wh,"Failed to raise snapshot:",t),await Mh(e,t)}}async function Mh(e,t,n){if(!Dt(t))throw t;e.tu.add(1),await _h(e),e.iu.set("Offline"),n||(n=()=>lh(e.localStore)),e.asyncQueue.enqueueRetryable(async()=>{De(wh,"Retrying IndexedDB access"),await n(),e.tu.delete(1),await Eh(e)})}function Uh(e,t){return t().catch(n=>Mh(e,n,t))}async function Vh(e){const t=ze(e),n=$h(t);let r=t.Ha.length>0?t.Ha[t.Ha.length-1].batchId:Mt;for(;Fh(t);)try{const e=await uh(t.localStore,r);if(null===e){0===t.Ha.length&&n.Nn();break}r=e.batchId,jh(t,e)}catch(e){await Mh(t,e)}zh(t)&&Bh(t)}function Fh(e){return Ih(e)&&e.Ha.length<10}function jh(e,t){e.Ha.push(t);const n=$h(e);n.Fn()&&n.Jn&&n.Yn(t.mutations)}function zh(e){return Ih(e)&&!$h(e).Cn()&&e.Ha.length>0}function Bh(e){$h(e).start()}async function Hh(e){$h(e).er()}async function qh(e){const t=$h(e);for(const n of e.Ha)t.Yn(n.mutations)}async function Gh(e,t,n){const r=e.Ha.shift(),i=Au.from(r,t,n);await Uh(e,()=>e.remoteSyncer.applySuccessfulWrite(i)),await Vh(e)}async function Wh(e,t){t&&$h(e).Jn&&await async function(e,t){if(function(e){return Qi(e)&&e!==Be.ABORTED}(t.code)){const n=e.Ha.shift();$h(e).Mn(),await Uh(e,()=>e.remoteSyncer.rejectFailedWrite(n.batchId,t)),await Vh(e)}}(e,t),zh(e)&&Bh(e)}async function Kh(e,t){const n=ze(e);n.asyncQueue.verifyOperationInProgress(),De(wh,"RemoteStore received new credentials");const r=Ih(n);n.tu.add(3),await _h(n),r&&n.iu.set("Unknown"),await n.remoteSyncer.handleCredentialChange(t),n.tu.delete(3),await Eh(n)}async function Qh(e,t){const n=ze(e);t?(n.tu.delete(2),await Eh(n)):t||(n.tu.add(2),await _h(n),n.iu.set("Unknown"))}function Yh(e){return e._u||(e._u=function(e,t,n){const r=ze(e);return r.nr(),new Ra(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{Qt:Rh.bind(null,e),zt:Ph.bind(null,e),Ht:Dh.bind(null,e),zn:Lh.bind(null,e)}),e.nu.push(async t=>{t?(e._u.Mn(),Nh(e)?xh(e):e.iu.set("Unknown")):(await e._u.stop(),Oh(e))})),e._u}function $h(e){return e.ou||(e.ou=function(e,t,n){const r=ze(e);return r.nr(),new Pa(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{Qt:()=>Promise.resolve(),zt:Hh.bind(null,e),Ht:Wh.bind(null,e),Zn:qh.bind(null,e),Xn:Gh.bind(null,e)}),e.nu.push(async t=>{t?(e.ou.Mn(),await Vh(e)):(await e.ou.stop(),e.Ha.length>0&&(De(wh,"Stopping write stream with ".concat(e.Ha.length," pending writes")),e.Ha=[]))})),e.ou}class Xh{constructor(e,t,n,r,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new qe,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(e=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,t,n,r,i){const s=Date.now()+n,a=new Xh(e,t,s,r,i);return a.start(n),a}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new He(Be.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Jh(e,t){if(Le("AsyncQueue","".concat(t,": ").concat(e)),Dt(e))return new He(Be.UNAVAILABLE,"".concat(t,": ").concat(e));throw e}class Zh{static emptySet(e){return new Zh(e.comparator)}constructor(e){this.comparator=e?(t,n)=>e(t,n)||ut.comparator(t.key,n.key):(e,t)=>ut.comparator(e.key,t.key),this.keyedMap=es(),this.sortedSet=new mn(this.comparator)}has(e){return null!=this.keyedMap.get(e)}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((t,n)=>(e(t),!1))}add(e){const t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){const t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof Zh))return!1;if(this.size!==e.size)return!1;const t=this.sortedSet.getIterator(),n=e.sortedSet.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(!e.isEqual(r))return!1}return!0}toString(){const e=[];return this.forEach(t=>{e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"}copy(e,t){const n=new Zh;return n.comparator=this.comparator,n.keyedMap=e,n.sortedSet=t,n}}class ed{constructor(){this.au=new mn(ut.comparator)}track(e){const t=e.doc.key,n=this.au.get(t);n?0!==e.type&&3===n.type?this.au=this.au.insert(t,e):3===e.type&&1!==n.type?this.au=this.au.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.au=this.au.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.au=this.au.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.au=this.au.remove(t):1===e.type&&2===n.type?this.au=this.au.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.au=this.au.insert(t,{type:2,doc:e.doc}):Ve(63341,{ft:e,uu:n}):this.au=this.au.insert(t,e)}cu(){const e=[];return this.au.inorderTraversal((t,n)=>{e.push(n)}),e}}class td{constructor(e,t,n,r,i,s,a,o,l){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=s,this.syncStateChanged=a,this.excludesMetadataChanges=o,this.hasCachedResults=l}static fromInitialDocuments(e,t,n,r,i){const s=[];return t.forEach(e=>{s.push({type:0,doc:e})}),new td(e,t,Zh.emptySet(t),s,n,r,!0,!1,i)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&wu(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0}}class nd{constructor(){this.lu=void 0,this.Eu=[]}hu(){return this.Eu.some(e=>e.Tu())}}class rd{constructor(){this.queries=id(),this.onlineState="Unknown",this.Pu=new Set}terminate(){!function(e,t){const n=ze(e),r=n.queries;n.queries=id(),r.forEach((e,n)=>{for(const r of n.Eu)r.onError(t)})}(this,new He(Be.ABORTED,"Firestore shutting down"))}}function id(){return new $i(e=>yu(e),wu)}async function sd(e,t){const n=ze(e);let r=3;const i=t.query;let s=n.queries.get(i);s?!s.hu()&&t.Tu()&&(r=2):(s=new nd,r=t.Tu()?0:1);try{switch(r){case 0:s.lu=await n.onListen(i,!0);break;case 1:s.lu=await n.onListen(i,!1);break;case 2:await n.onFirstRemoteStoreListen(i)}}catch(e){const n=Jh(e,"Initialization of query '".concat(gu(t.query)?pu(t.query):zi(t.query),"' failed"));return void t.onError(n)}n.queries.set(i,s),s.Eu.push(t),t.Ru(n.onlineState),s.lu&&t.Iu(s.lu)&&cd(n)}async function ad(e,t){const n=ze(e),r=t.query;let i=3;const s=n.queries.get(r);if(s){const e=s.Eu.indexOf(t);e>=0&&(s.Eu.splice(e,1),0===s.Eu.length?i=t.Tu()?0:1:!s.hu()&&t.Tu()&&(i=2))}switch(i){case 0:return n.queries.delete(r),n.onUnlisten(r,!0);case 1:return n.queries.delete(r),n.onUnlisten(r,!1);case 2:return n.onLastRemoteStoreUnlisten(r);default:return}}function od(e,t){const n=ze(e);let r=!1;for(const i of t){const e=i.query,t=n.queries.get(e);if(t){for(const e of t.Eu)e.Iu(i)&&(r=!0);t.lu=i}}r&&cd(n)}function ld(e,t,n){const r=ze(e),i=r.queries.get(t);if(i)for(const s of i.Eu)s.onError(n);r.queries.delete(t)}function cd(e){e.Pu.forEach(e=>{e.next()})}var ud,hd;(hd=ud||(ud={})).Default="default",hd.Cache="cache";class dd{constructor(e,t,n){this.query=e,this.Au=t,this.Vu=!1,this.du=null,this.onlineState="Unknown",this.options=n||{}}Iu(e){if(!this.options.includeMetadataChanges){const t=[];for(const n of e.docChanges)3!==n.type&&t.push(n);e=new td(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.Vu?this.fu(e)&&(this.Au.next(e),t=!0):this.mu(e,this.onlineState)&&(this.pu(e),t=!0),this.du=e,t}onError(e){this.Au.error(e)}Ru(e){this.onlineState=e;let t=!1;return this.du&&!this.Vu&&this.mu(this.du,e)&&(this.pu(this.du),t=!0),t}mu(e,t){if(!e.fromCache)return!0;if(!this.Tu())return!0;const n="Offline"!==t;return(!this.options.waitForSyncWhenOnline||!n)&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}fu(e){if(e.docChanges.length>0)return!0;const t=this.du&&this.du.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}pu(e){e=td.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Vu=!0,this.Au.next(e)}Tu(){return this.options.source!==ud.Cache}}class fd{constructor(e){this.key=e}}class pd{constructor(e){this.key=e}}class md{constructor(e,t){this.query=e,this.Ou=t,this.Mu=null,this.hasCachedResults=!1,this.current=!1,this.Nu=os(),this.mutatedKeys=os(),this.Lu=gu(e)?Mu(e):Hi(e),this.Bu=new Zh(this.Lu)}get Uu(){return this.Ou}ku(e,t){const n=t?t.qu:new ed,r=t?t.Bu:this.Bu;let i=t?t.mutatedKeys:this.mutatedKeys,s=r,a=!1;const o=this.$u(this.query,r),l=(0,c.A)(o,2),u=l[0],h=l[1];e.inorderTraversal((e,t)=>{const o=r.get(e),l=Du(this.query,t)?t:null,c=!!o&&this.mutatedKeys.has(o.key),d=!!l&&(l.hasLocalMutations||this.mutatedKeys.has(l.key)&&l.hasCommittedMutations);let f=!1;o&&l?o.data.isEqual(l.data)?c!==d&&(n.track({type:3,doc:l}),f=!0):this.Ku(o,l)||(n.track({type:2,doc:l}),f=!0,(u&&this.Lu(l,u)>0||h&&this.Lu(l,h)<0)&&(a=!0)):!o&&l?(n.track({type:0,doc:l}),f=!0):o&&!l&&(n.track({type:1,doc:o}),f=!0,(u||h)&&(a=!0)),f&&(l?(s=s.add(l),i=d?i.add(e):i.delete(e)):(s=s.delete(e),i=i.delete(e)))});const d=this.Wu(this.query);if(d)if(gu(this.query)){const e=[];s.forEach(t=>e.push(t));const t=Ru(this.query,e);let r=new Zh(Mu(this.query));for(const n of t)r=r.add(n);s.forEach(e=>{r.has(e.key)||(i=i.delete(e.key),n.track({type:1,doc:e}))}),s=r}else{const e=this.Qu(this.query);for(;s.size>d;){const t="F"===e?s.last():s.first();s=s.delete(t.key),i=i.delete(t.key),n.track({type:1,doc:t})}}return{Bu:s,qu:n,Uo:a,mutatedKeys:i}}Wu(e){var t;return gu(e)?null===(t=Uu(e))||void 0===t?void 0:t.limit:e.limit||void 0}Qu(e){if(gu(e)){const t=Uu(e);return t&&t.limit<0?"L":"F"}return e.limitType}$u(e,t){if(gu(e)){var n;const r=null===(n=Uu(e))||void 0===n?void 0:n.limit;return[t.size===r?t.last():null,null]}return["F"===e.limitType&&t.size===this.Wu(this.query)?t.last():null,"L"===e.limitType&&t.size===this.Wu(this.query)?t.first():null]}Ku(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,n,r){const i=this.Bu;this.Bu=e.Bu,this.mutatedKeys=e.mutatedKeys;const s=e.qu.cu();s.sort((e,t)=>function(e,t){const n=e=>{switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Ve(20277,{ft:e})}};return n(e)-n(t)}(e.type,t.type)||this.Lu(e.doc,t.doc)),this.Gu(n),r=null!==r&&void 0!==r&&r;const a=t&&!r?this.zu():[],o=0===this.Nu.size&&this.current&&!r?1:0,l=o!==this.Mu;return this.Mu=o,0!==s.length||l?{snapshot:new td(this.query,e.Bu,i,s,e.mutatedKeys,0===o,l,!1,!!n&&n.resumeToken.approximateByteSize()>0),ju:a}:{ju:a}}Ru(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({Bu:this.Bu,qu:new ed,mutatedKeys:this.mutatedKeys,Uo:!1},!1)):{ju:[]}}Hu(e){return!this.Ou.has(e)&&!!this.Bu.has(e)&&!this.Bu.get(e).hasLocalMutations}Gu(e){e&&(e.addedDocuments.forEach(e=>this.Ou=this.Ou.add(e)),e.modifiedDocuments.forEach(e=>{}),e.removedDocuments.forEach(e=>this.Ou=this.Ou.delete(e)),this.current=e.current)}zu(){if(!this.current)return[];const e=this.Nu;this.Nu=os(),this.Bu.forEach(e=>{this.Hu(e.key)&&(this.Nu=this.Nu.add(e.key))});const t=[];return e.forEach(e=>{this.Nu.has(e)||t.push(new pd(e))}),this.Nu.forEach(n=>{e.has(n)||t.push(new fd(n))}),t}Ju(e){this.Ou=e.Jo,this.Nu=os();const t=this.ku(e.documents);return this.applyChanges(t,!0)}Yu(){return td.fromInitialDocuments(this.query,this.Bu,this.mutatedKeys,0===this.Mu,this.hasCachedResults)}}const gd="SyncEngine";class vd{constructor(e,t,n){this.query=e,this.targetId=t,this.view=n}}class yd{constructor(e){this.key=e,this.Zu=!1}}class wd{constructor(e,t,n,r,i,s){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedClientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=s,this.Xu={},this.ec=new $i(e=>yu(e),wu),this.tc=new Map,this.nc=new Set,this.rc=new mn(ut.comparator),this.sc=new Map,this._c=new qu,this.oc={},this.ac=new Map,this.uc=Ou.Cs(),this.onlineState="Unknown",this.cc=void 0}get isPrimaryClient(){return!0===this.cc}}async function bd(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=zd(e);let i;const s=r.ec.get(t);return s?(r.sharedClientState.addLocalQueryTarget(s.targetId),i=s.view.Yu()):i=await _d(r,t,n,!0),i}async function Ed(e,t){const n=zd(e);await _d(n,t,!0,!1)}async function _d(e,t,n,r){const i=await hh(e.localStore,gu(t)?t:Mi(t)),s=i.targetId,a=e.sharedClientState.addLocalQueryTarget(s,n);let o;return r&&(o=await Ad(e,t,s,"current"===a,i.resumeToken)),e.isPrimaryClient&&n&&Sh(e.remoteStore,i),o}async function Ad(e,t,n,r,i){e.lc=(t,n,r)=>async function(e,t,n,r){let i=t.view.ku(n);i.Uo&&(i=await fh(e.localStore,t.query,!1).then(e=>{let n=e.documents;return t.view.ku(n,i)}));const s=r&&r.targetChanges.get(t.targetId),a=r&&null!=r.targetMismatches.get(t.targetId),o=t.view.applyChanges(i,e.isPrimaryClient,s,a);return Ld(e,t.targetId,o.ju),o.snapshot}(e,t,n,r);const s=await fh(e.localStore,t,!0),a=new md(t,s.Jo),o=a.ku(s.documents),l=ys.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==e.onlineState,i),c=a.applyChanges(o,e.isPrimaryClient,l);Ld(e,n,c.ju);const u=new vd(t,n,a);return e.ec.set(t,u),e.tc.has(n)?e.tc.get(n).push(t):e.tc.set(n,[t]),c.snapshot}async function Sd(e,t,n){const r=ze(e),i=r.ec.get(t),s=r.tc.get(i.targetId);if(s.length>1)return r.tc.set(i.targetId,s.filter(e=>!wu(e,t))),void r.ec.delete(t);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(i.targetId),r.sharedClientState.isActiveQueryTarget(i.targetId)||await dh(r.localStore,i.targetId,!1).then(()=>{r.sharedClientState.clearQueryState(i.targetId),n&&Ch(r.remoteStore,i.targetId),Pd(r,i.targetId)}).catch(Ot)):(Pd(r,i.targetId),await dh(r.localStore,i.targetId,!0))}async function Cd(e,t){const n=ze(e),r=n.ec.get(t),i=n.tc.get(r.targetId);n.isPrimaryClient&&1===i.length&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),Ch(n.remoteStore,r.targetId))}async function Td(e,t){const n=ze(e);try{const e=await function(e,t){const n=ze(e),r=t.snapshotVersion;let i=n.$o;return n.persistence.runTransaction("Apply remote event","readwrite-primary",e=>{const s=n.Qo.newChangeBuffer({trackRemovals:!0});i=n.$o;const a=[];t.targetChanges.forEach((s,o)=>{const l=i.get(o);if(!l)return;a.push(n.g_.removeMatchingKeys(e,s.removedDocuments,o).next(()=>n.g_.addMatchingKeys(e,s.addedDocuments,o)));let c=l.withSequenceNumber(e.currentSequenceNumber);null!==t.targetMismatches.get(o)?c=c.withResumeToken(Tn.EMPTY_BYTE_STRING,_t.min()).withLastLimboFreeSnapshotVersion(_t.min()):s.resumeToken.approximateByteSize()>0&&(c=c.withResumeToken(s.resumeToken,r)),i=i.insert(o,c),function(e,t,n){return 0===e.resumeToken.approximateByteSize()||(t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0)}(l,c,s)&&a.push(n.g_.updateTargetData(e,c))});let o=Ji(),l=os();if(t.documentUpdates.forEach(r=>{t.resolvedLimboDocuments.has(r)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))}),a.push(ch(e,s,t.documentUpdates).next(e=>{o=e.jo,l=e.Ho})),!r.isEqual(_t.min())){const t=n.g_.getLastRemoteSnapshotVersion(e).next(t=>n.g_.setTargetsMetadata(e,e.currentSequenceNumber,r));a.push(t)}return Rt.waitFor(a).next(()=>s.apply(e)).next(()=>n.localDocuments.getLocalViewOfDocuments(e,o,l)).next(()=>o)}).then(e=>(n.$o=i,e))}(n.localStore,t);t.targetChanges.forEach((e,t)=>{const r=n.sc.get(t);r&&(je(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1,22616),e.addedDocuments.size>0?r.Zu=!0:e.modifiedDocuments.size>0?je(r.Zu,14607):e.removedDocuments.size>0&&(je(r.Zu,42227),r.Zu=!1))}),await Vd(n,e,t)}catch(e){await Ot(e)}}function kd(e,t,n){const r=ze(e);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){const e=[];r.ec.forEach((n,r)=>{const i=r.view.Ru(t);i.snapshot&&e.push(i.snapshot)}),function(e,t){const n=ze(e);n.onlineState=t;let r=!1;n.queries.forEach((e,n)=>{for(const i of n.Eu)i.Ru(t)&&(r=!0)}),r&&cd(n)}(r.eventManager,t),e.length&&r.Xu.zn(e),r.onlineState=t,r.isPrimaryClient&&r.sharedClientState.setOnlineState(t)}}async function xd(e,t,n){const r=ze(e);r.sharedClientState.updateQueryState(t,"rejected",n);const i=r.sc.get(t),s=i&&i.key;if(s){let e=new mn(ut.comparator);e=e.insert(s,_i.newNoDocument(s,_t.min()));const n=os().add(s),i=new vs(_t.min(),new Map,new mn(tt),e,Ji(),n);await Td(r,i),r.rc=r.rc.remove(s),r.sc.delete(t),Ud(r)}else await dh(r.localStore,t,!1).then(()=>Pd(r,t,n)).catch(Ot)}async function Nd(e,t){const n=ze(e),r=t.batch.batchId;try{const e=await function(e,t){const n=ze(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",e=>{const r=t.batch.keys(),i=n.Qo.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){const i=n.batch,s=i.keys();let a=Rt.resolve();return s.forEach(e=>{a=a.next(()=>r.getEntry(t,e)).next(t=>{const s=n.docVersions.get(e);je(null!==s,48541),t.version.compareTo(s)<0&&(i.applyToRemoteDocument(t,n),t.isValidDocument()&&(t.setReadTime(n.commitVersion),r.addEntry(t)))})}),a.next(()=>e.mutationQueue.removeMutationBatch(t,i))}(n,e,t,i).next(()=>i.apply(e)).next(()=>n.mutationQueue.performConsistencyCheck(e)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,function(e){let t=os();for(let n=0;n<e.mutationResults.length;++n)e.mutationResults[n].transformResults.length>0&&(t=t.add(e.batch.mutations[n].key));return t}(t))).next(()=>n.localDocuments.getDocuments(e,r))})}(n.localStore,t);Rd(n,r,null),Od(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await Vd(n,e)}catch(e){await Ot(e)}}async function Id(e,t,n){const r=ze(e);try{const e=await function(e,t){const n=ze(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",e=>{let r;return n.mutationQueue.lookupMutationBatch(e,t).next(t=>(je(null!==t,37113),r=t.keys(),n.mutationQueue.removeMutationBatch(e,t))).next(()=>n.mutationQueue.performConsistencyCheck(e)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,r)).next(()=>n.localDocuments.getDocuments(e,r))})}(r.localStore,t);Rd(r,t,n),Od(r,t),r.sharedClientState.updateMutationState(t,"rejected",n),await Vd(r,e)}catch(n){await Ot(n)}}function Od(e,t){(e.ac.get(t)||[]).forEach(e=>{e.resolve()}),e.ac.delete(t)}function Rd(e,t,n){const r=ze(e);let i=r.oc[r.currentUser.toKey()];if(i){const e=i.get(t);e&&(n?e.reject(n):e.resolve(),i=i.remove(t)),r.oc[r.currentUser.toKey()]=i}}function Pd(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.sharedClientState.removeLocalQueryTarget(t);for(const r of e.tc.get(t))e.ec.delete(r),n&&e.Xu.Ec(r,n);e.tc.delete(t),e.isPrimaryClient&&e._c.s_(t).forEach(t=>{e._c.containsKey(t)||Dd(e,t)})}function Dd(e,t){e.nc.delete(t.path.canonicalString());const n=e.rc.get(t);null!==n&&(Ch(e.remoteStore,n),e.rc=e.rc.remove(t),e.sc.delete(n),Ud(e))}function Ld(e,t,n){for(const r of n)r instanceof fd?(e._c.addReference(r.key,t),Md(e,r)):r instanceof pd?(De(gd,"Document no longer in limbo: "+r.key),e._c.removeReference(r.key,t),e._c.containsKey(r.key)||Dd(e,r.key)):Ve(19791,{hc:r})}function Md(e,t){const n=t.key,r=n.path.canonicalString();e.rc.get(n)||e.nc.has(r)||(De(gd,"New document in limbo: "+n),e.nc.add(r),Ud(e))}function Ud(e){for(;e.nc.size>0&&e.rc.size<e.maxConcurrentLimboResolutions;){const t=e.nc.values().next().value;e.nc.delete(t);const n=new ut(ot.fromString(t)),r=e.uc.next();e.sc.set(r,new yd(n)),e.rc=e.rc.insert(n,r),Sh(e.remoteStore,new Cu(Mi(Oi(n.path)),r,"TargetPurposeLimboResolution",Lt.ce))}}async function Vd(e,t,n){const r=ze(e),i=[],s=[],a=[];r.ec.isEmpty()||(r.ec.forEach((e,o)=>{a.push(r.lc(o,t,n).then(e=>{if((e||n)&&r.isPrimaryClient){var t;const i=e?!e.fromCache:null===n||void 0===n||null===(t=n.targetChanges.get(o.targetId))||void 0===t?void 0:t.current;r.sharedClientState.updateQueryState(o.targetId,i?"current":"not-current")}if(e){i.push(e);const t=eh.vo(o.targetId,e);s.push(t)}}))}),await Promise.all(a),r.Xu.zn(i),await async function(e,t){const n=ze(e);try{await n.persistence.runTransaction("notifyLocalViewChanges","readwrite",e=>Rt.forEach(t,t=>Rt.forEach(t.wo,r=>n.persistence.referenceDelegate.addReference(e,t.targetId,r)).next(()=>Rt.forEach(t.bo,r=>n.persistence.referenceDelegate.removeReference(e,t.targetId,r)))))}catch(e){if(!Dt(e))throw e;De(ih,"Failed to update sequence numbers: "+e)}for(const r of t){const e=r.targetId;if(!r.fromCache){const t=n.$o.get(e),r=t.snapshotVersion,i=t.withLastLimboFreeSnapshotVersion(r);n.$o=n.$o.insert(e,i)}}}(r.localStore,s))}async function Fd(e,t){const n=ze(e);if(!n.currentUser.isEqual(t)){De(gd,"User change. New user:",t.toKey());const e=await oh(n.localStore,t);n.currentUser=t,function(e,t){e.ac.forEach(e=>{e.forEach(e=>{e.reject(new He(Be.CANCELLED,t))})}),e.ac.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(t,e.removedBatchIds,e.addedBatchIds),await Vd(n,e.zo)}}function jd(e,t){const n=ze(e),r=n.sc.get(t);if(r&&r.Zu)return os().add(r.key);{let e=os();const r=n.tc.get(t);if(!r)return e;for(const t of null!==r&&void 0!==r?r:[]){const r=n.ec.get(t);e=e.unionWith(r.view.Uu)}return e}}function zd(e){const t=ze(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=Td.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=jd.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=xd.bind(null,t),t.Xu.zn=od.bind(null,t.eventManager),t.Xu.Ec=ld.bind(null,t.eventManager),t}function Bd(e){const t=ze(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=Nd.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=Id.bind(null,t),t}class Hd{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=ua(e.databaseInfo.databaseId),this.sharedClientState=this.Rc(e),this.persistence=this.Ic(e),await this.persistence.start(),this.localStore=this.Ac(e),this.gcScheduler=this.Vc(e,this.localStore),this.indexBackfillerScheduler=this.dc(e,this.localStore)}Vc(e,t){return null}dc(e,t){return null}Ac(e){return ah(this.persistence,new rh,e.initialUser,this.serializer)}Ic(e){return new $u(Ju.C_,this.serializer)}Rc(e){return new gh}async terminate(){var e,t;null!==(e=this.gcScheduler)&&void 0!==e&&e.stop(),null!==(t=this.indexBackfillerScheduler)&&void 0!==t&&t.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}Hd.provider={build:()=>new Hd};class qd extends Hd{constructor(e){super(),this.cacheSizeBytes=e}Vc(e,t){je(this.persistence.referenceDelegate instanceof Zu,46915);const n=this.persistence.referenceDelegate.garbageCollector;return new Ka(n,e.asyncQueue,t)}Ic(e){const t=void 0!==this.cacheSizeBytes?Ba.withCacheSize(this.cacheSizeBytes):Ba.DEFAULT;return new $u(e=>Zu.C_(e,t),this.serializer)}}class Gd{async initialize(e,t){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(t),this.remoteStore=this.createRemoteStore(t),this.eventManager=this.createEventManager(t),this.syncEngine=this.createSyncEngine(t,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=e=>kd(this.syncEngine,e,1),this.remoteStore.remoteSyncer.handleCredentialChange=Fd.bind(null,this.syncEngine),await Qh(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return new rd}createDatastore(e){const t=ua(e.databaseInfo.databaseId),n=xa(e.databaseInfo);return Ma(e.authCredentials,e.appCheckCredentials,n,t)}createRemoteStore(e){return function(e,t,n,r,i){return new bh(e,t,n,r,i)}(this.localStore,this.datastore,e.asyncQueue,e=>kd(this.syncEngine,e,0),ya.C()?new ya:new ga)}createSyncEngine(e,t){return function(e,t,n,r,i,s,a){const o=new wd(e,t,n,r,i,s);return a&&(o.cc=!0),o}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}async terminate(){var e,t;await async function(e){const t=ze(e);De(wh,"RemoteStore shutting down."),t.tu.add(5),await _h(t),t.ru.shutdown(),t.iu.set("Unknown")}(this.remoteStore),null!==(e=this.datastore)&&void 0!==e&&e.terminate(),null===(t=this.eventManager)||void 0===t||t.terminate()}}Gd.provider={build:()=>new Gd};class Wd{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.mc(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.mc(this.observer.error,e):Le("Uncaught Error in snapshot listener:",e.toString()))}gc(){this.muted=!0}mc(e,t){setTimeout(()=>{this.muted||e(t)},0)}}const Kd="FirestoreClient";class Qd{constructor(e,t,n,r,i){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=n,this._databaseInfo=r,this.user=Ie.UNAUTHENTICATED,this.clientId=et.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=i,this.authCredentials.start(n,async e=>{De(Kd,"Received user=",e.uid),await this.authCredentialListener(e),this.user=e}),this.appCheckCredentials.start(n,e=>(De(Kd,"Received new app check token=",e),this.appCheckCredentialListener(e,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this._databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}terminate(){this.asyncQueue.enterRestrictedMode();const e=new qe;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(t){const n=Jh(t,"Failed to shutdown persistence");e.reject(n)}}),e.promise}}async function Yd(e,t){e.asyncQueue.verifyOperationInProgress(),De(Kd,"Initializing OfflineComponentProvider");const n=e.configuration;await t.initialize(n);let r=n.initialUser;e.setCredentialChangeListener(async e=>{r.isEqual(e)||(await oh(t.localStore,e),r=e)}),t.persistence.setDatabaseDeletedListener(()=>e.terminate()),e._offlineComponents=t}async function $d(e,t){e.asyncQueue.verifyOperationInProgress();const n=await Xd(e);De(Kd,"Initializing OnlineComponentProvider"),await t.initialize(n,e.configuration),e.setCredentialChangeListener(e=>Kh(t.remoteStore,e)),e.setAppCheckTokenChangeListener((e,n)=>Kh(t.remoteStore,n)),e._onlineComponents=t}async function Xd(e){if(!e._offlineComponents)if(e._uninitializedComponentsProvider){De(Kd,"Using user provided OfflineComponentProvider");try{await Yd(e,e._uninitializedComponentsProvider._offline)}catch(t){const n=t;if(!function(e){return"FirebaseError"===e.name?e.code===Be.FAILED_PRECONDITION||e.code===Be.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code}(n))throw n;Me("Error using user provided cache. Falling back to memory cache: "+n),await Yd(e,new Hd)}}else De(Kd,"Using default OfflineComponentProvider"),await Yd(e,new qd(void 0));return e._offlineComponents}async function Jd(e){return e._onlineComponents||(e._uninitializedComponentsProvider?(De(Kd,"Using user provided OnlineComponentProvider"),await $d(e,e._uninitializedComponentsProvider._online)):(De(Kd,"Using default OnlineComponentProvider"),await $d(e,new Gd))),e._onlineComponents}function Zd(e){return Jd(e).then(e=>e.syncEngine)}async function ef(e){const t=await Jd(e),n=t.eventManager;return n.onListen=bd.bind(null,t.syncEngine),n.onUnlisten=Sd.bind(null,t.syncEngine),n.onFirstRemoteStoreListen=Ed.bind(null,t.syncEngine),n.onLastRemoteStoreUnlisten=Cd.bind(null,t.syncEngine),n}function tf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new qe;return e.asyncQueue.enqueueAndForget(async()=>function(e,t,n,r,i){const s=new Wd({next:n=>{s.gc(),t.enqueueAndForget(()=>ad(e,a)),n.fromCache&&"server"===r.source?i.reject(new He(Be.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:e=>i.reject(e)}),a=new dd(n instanceof Tl?function(e,t){const n=function(e){let t=!1;const n=[];for(const r of e)if(r instanceof vl)if(t=!0,r.orderings.some(e=>e.expr instanceof Ko&&e.expr.fieldName===st))n.push(r);else{const e=r.orderings.map(e=>e);e.push(Qo(st).ascending()),n.push(new vl(e,{}))}else r instanceof pl?(t||(n.push(new vl([Qo(st).ascending()],{})),t=!0),n.push(r)):n.push(r);return t||n.push(new vl([Qo(st).ascending()],{})),n}(e.stages);if(e.userDataReader){const t=e.userDataReader.createContext(3,"toCorePipeline");n.forEach(e=>e._readUserData(t))}return new bl(e.userDataReader.serializer,n,t)}(n):n,s,{includeMetadataChanges:!0,waitForSyncWhenOnline:!0});return sd(e,a)}(await ef(e),e.asyncQueue,t,n,r)),r.promise}function nf(e,t){const n=new qe;return e.asyncQueue.enqueueAndForget(async()=>async function(e,t,n){const r=Bd(e);try{const e=await function(e,t){const n=ze(e),r=Et.now(),i=t.reduce((e,t)=>e.add(t.key),os());let s,a;return n.persistence.runTransaction("Locally write mutations","readwrite",e=>{let o=Ji(),l=os();return n.Qo.getEntries(e,i).next(e=>{o=e,o.forEach((e,t)=>{t.isValidDocument()||(l=l.add(e))})}).next(()=>n.localDocuments.getOverlayedDocuments(e,o)).next(i=>{s=i;const a=[];for(const e of t){const t=Gr(e,s.get(e.key).overlayedDocument);null!=t&&a.push(new Qr(e.key,t,vr(t.value.mapValue),Fr.exists(!0)))}return n.mutationQueue.addMutationBatch(e,r,a,t)}).next(t=>{a=t;const r=t.applyToLocalDocumentSet(s,l);return n.documentOverlayCache.saveOverlays(e,t.batchId,r)})}).then(()=>({batchId:a.batchId,changes:ts(s)}))}(r.localStore,t);r.sharedClientState.addPendingMutation(e.batchId),function(e,t,n){let r=e.oc[e.currentUser.toKey()];r||(r=new mn(tt)),r=r.insert(t,n),e.oc[e.currentUser.toKey()]=r}(r,e.batchId,n),await Vd(r,e.changes),await Vh(r.remoteStore)}catch(e){const t=Jh(e,"Failed to persist write");n.reject(t)}}(await Zd(e),t,n)),n.promise}const rf="AsyncQueue";class sf{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Promise.resolve();this.qc=[],this.$c=!1,this.Kc=[],this.Wc=null,this.Qc=!1,this.Gc=!1,this.zc=[],this.xn=new Na(this,"async_queue_retry"),this.jc=()=>{const e=vh();e&&De(rf,"Visibility state changed to "+e.visibilityState),this.xn.gn()},this.Hc=e;const t=vh();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this.jc)}get isShuttingDown(){return this.$c}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Jc(),this.Yc(e)}enterRestrictedMode(e){if(!this.$c){this.$c=!0,this.Gc=e||!1;const t=vh();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.jc)}}enqueue(e){if(this.Jc(),this.$c)return new Promise(()=>{});const t=new qe;return this.Yc(()=>this.$c&&this.Gc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.qc.push(e),this.Zc()))}async Zc(){if(0!==this.qc.length){try{await this.qc[0](),this.qc.shift(),this.xn.reset()}catch(hd){if(!Dt(hd))throw hd;De(rf,"Operation failed with retryable error: "+hd)}this.qc.length>0&&this.xn.mn(()=>this.Zc())}}Yc(e){const t=this.Hc.then(()=>(this.Qc=!0,e().catch(e=>{throw this.Wc=e,this.Qc=!1,Le("INTERNAL UNHANDLED ERROR: ",af(e)),e}).then(e=>(this.Qc=!1,e))));return this.Hc=t,t}enqueueAfterDelay(e,t,n){this.Jc(),this.zc.indexOf(e)>-1&&(t=0);const r=Xh.createAndSchedule(this,e,t,n,e=>this.Xc(e));return this.Kc.push(r),r}Jc(){this.Wc&&Ve(47125,{el:af(this.Wc)})}verifyOperationInProgress(){}async tl(){let e;do{e=this.Hc,await e}while(e!==this.Hc)}nl(e){for(const t of this.Kc)if(t.timerId===e)return!0;return!1}rl(e){return this.tl().then(()=>{this.Kc.sort((e,t)=>e.targetTimeMs-t.targetTimeMs);for(const t of this.Kc)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.tl()})}il(e){this.zc.push(e)}Xc(e){const t=this.Kc.indexOf(e);this.Kc.splice(t,1)}}function af(e){let t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}class of extends Za{constructor(e,t,n,r){super(e,t,n,r),this.type="firestore",this._queue=new sf,this._persistenceKey=(null===r||void 0===r?void 0:r.name)||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new sf(e),this._firestoreClient=void 0,await e}}}function lf(e,t){const n="object"==typeof e?e:(0,a.Sx)(),r="string"==typeof e?e:t||Fn,i=(0,a.j6)(n,"firestore").getImmediate({identifier:r});if(!i._initialized){const e=(0,u.yU)("firestore");e&&function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=gt(e,Za);const i=(0,u.zJ)(t),a=e._getSettings(),o=(0,s.A)((0,s.A)({},a),{},{emulatorOptions:e._getEmulatorOptions()}),l="".concat(t,":").concat(n);i&&(0,u.gE)("https://".concat(l)),a.host!==$a&&a.host!==l&&Me("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");const c=(0,s.A)((0,s.A)({},a),{},{host:l,ssl:i,emulatorOptions:r});if(!(0,u.bD)(c,o)&&(e._setSettings(c),r.mockUserToken)){let t,n;if("string"==typeof r.mockUserToken)t=r.mockUserToken,n=Ie.MOCK_USER;else{var h;t=(0,u.Fy)(r.mockUserToken,null===(h=e._app)||void 0===h?void 0:h.options.projectId);const i=r.mockUserToken.sub||r.mockUserToken.user_id;if(!i)throw new He(Be.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");n=new Ie(i)}e._authCredentials=new Ke(new Ge(t,n))}}(i,...e)}return i}function cf(e){if(e._terminated)throw new He(Be.FAILED_PRECONDITION,"The client has already been terminated.");return e._firestoreClient||uf(e),e._firestoreClient}function uf(e){var t,n,r,i;const s=e._freezeSettings(),a=Fa(e._databaseId,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,null===(n=e._app)||void 0===n?void 0:n.options.apiKey,s);e._componentsProvider||null!==(r=s.localCache)&&void 0!==r&&r._offlineComponentProvider&&null!==(i=s.localCache)&&void 0!==i&&i._onlineComponentProvider&&(e._componentsProvider={_offline:s.localCache._offlineComponentProvider,_online:s.localCache._onlineComponentProvider}),e._firestoreClient=new Qd(e._authCredentials,e._appCheckCredentials,e._queue,a,e._componentsProvider&&function(e){const t=null===e||void 0===e?void 0:e._online.build();return{_offline:null===e||void 0===e?void 0:e._offline.build(t),_online:t}}(e._componentsProvider))}class hf{convertValue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";switch(Yn(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Nn(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(In(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 11:return this.convertObject(e.mapValue,t);case 10:return this.convertVectorValue(e.mapValue);default:throw Ve(62114,{value:e})}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";const n={};return _n(e,(e,r)=>{n[e]=this.convertValue(r,t)}),n}convertVectorValue(e){var t;const n=null===(t=e.fields)||void 0===t||null===(t=t[Gn].arrayValue)||void 0===t||null===(t=t.values)||void 0===t?void 0:t.map(e=>Nn(e.doubleValue));return new so(n)}convertGeoPoint(e){return new pa(Nn(e.latitude),Nn(e.longitude))}convertArray(e,t){return(e.values||[]).map(e=>this.convertValue(e,t))}convertServerTimestamp(e,t){switch(t){case"previous":const n=Mn(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(Un(e));default:return null}}convertTimestamp(e){const t=xn(e);return new Et(t.seconds,t.nanos)}convertDocumentKey(e,t){const n=ot.fromString(e);je(aa(n),9688,{name:e});const r=new jn(n.get(1),n.get(3)),i=new ut(n.popFirst(5));return r.isEqual(t)||Le("Document ".concat(i," contains a document reference within a different database (").concat(r.projectId,"/").concat(r.database,") which is not supported. It will be treated as a reference in the current database (").concat(t.projectId,"/").concat(t.database,") instead.")),i}}class df extends hf{constructor(e){super(),this.firestore=e}convertBytes(e){return new ha(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new to(this.firestore,null,t)}}const ff="@firebase/firestore",pf="4.16.0";class mf{constructor(e,t,n,r,i){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new to(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new gf(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}_fieldsProto(){var e,t;return null!==(e=null===(t=this._document)||void 0===t?void 0:t.data.clone().value.mapValue.fields)&&void 0!==e?e:void 0}get(e){if(this._document){const t=this._document.data.field(xo("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class gf extends mf{data(){return super.data()}}function vf(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new He(Be.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class yf{}class wf extends yf{}function bf(e,t){let n=[];for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];t instanceof yf&&n.push(t),n=n.concat(i),function(e){const t=e.filter(e=>e instanceof Af).length,n=e.filter(e=>e instanceof Ef).length;if(t>1||t>0&&n>0)throw new He(Be.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(n);for(const a of n)e=a._apply(e);return e}class Ef extends wf{constructor(e,t,n){super(),this._field=e,this._op=t,this._value=n,this.type="where"}static _create(e,t,n){return new Ef(e,t,n)}_apply(e){const t=this._parse(e);return Pf(e._query,t),new eo(e.firestore,e.converter,Vi(e._query,t))}_parse(e){const t=fo(e.firestore),n=function(e,t,n,r,i,s,a){let o;if(i.isKeyField()){if("array-contains"===s||"array-contains-any"===s)throw new He(Be.INVALID_ARGUMENT,"Invalid Query. You can't perform '".concat(s,"' queries on documentId()."));if("in"===s||"not-in"===s){Rf(a,s);const t=[];for(const n of a)t.push(Of(r,e,n));o={arrayValue:{values:t}}}else o=Of(r,e,a)}else"in"!==s&&"not-in"!==s&&"array-contains-any"!==s||Rf(a,s),o=Ao(n,t,a,"in"===s||"not-in"===s);return ii.create(i,s,o)}(e._query,"where",t,e.firestore._databaseId,this._field,this._op,this._value);return n}}function _f(e,t,n){const r=t,i=xo("where",e);return Ef._create(i,r,n)}class Af extends yf{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(e,t){return new Af(e,t)}_parse(e){const t=this._queryConstraints.map(t=>t._parse(e)).filter(e=>e.getFilters().length>0);return 1===t.length?t[0]:si.create(t,this._getOperator())}_apply(e){const t=this._parse(e);return 0===t.getFilters().length?e:(function(e,t){let n=e;const r=t.getFlattenedFilters();for(const i of r)Pf(n,i),n=Vi(n,i)}(e._query,t),new eo(e.firestore,e.converter,Vi(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class Sf extends wf{constructor(e,t){super(),this._field=e,this._direction=t,this.type="orderBy"}static _create(e,t){return new Sf(e,t)}_apply(e){const t=function(e,t,n){if(null!==e.startAt)throw new He(Be.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new He(Be.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new bi(t,n)}(e._query,this._field,this._direction);return new eo(e.firestore,e.converter,function(e,t){const n=e.explicitOrderBy.concat([t]);return new Ni(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(e._query,t))}}function Cf(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc",n=xo("orderBy",e);return Sf._create(n,t)}class Tf extends wf{constructor(e,t,n){super(),this.type=e,this._limit=t,this._limitType=n}static _create(e,t,n){return new Tf(e,t,n)}_apply(e){return new eo(e.firestore,e.converter,Fi(e._query,this._limit,this._limitType))}}function kf(e){return function(e,t){if(t<=0)throw new He(Be.INVALID_ARGUMENT,"Function ".concat(e,"() requires a positive number, but it was: ").concat(t,"."))}("limit",e),Tf._create("limit",e,"F")}class xf extends wf{constructor(e,t,n){super(),this.type=e,this._docOrFields=t,this._inclusive=n}static _create(e,t,n){return new xf(e,t,n)}_apply(e){const t=If(e,this.type,this._docOrFields,this._inclusive);return new eo(e.firestore,e.converter,function(e,t){return new Ni(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,t,e.endAt)}(e._query,t))}}function Nf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xf._create("startAfter",t,!1)}function If(e,t,n,r){if(n[0]=(0,u.Ku)(n[0]),n[0]instanceof mf)return function(e,t,n,r,i){if(!r)throw new He(Be.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for ".concat(n,"()."));const s=[];for(const a of Li(e))if(a.field.isKeyField())s.push(ir(t,r.key));else{const e=r.data.field(a.field);if(Ln(e))throw new He(Be.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+a.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===e){const e=a.field.canonicalString();throw new He(Be.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '".concat(e,"' (used as the orderBy) does not exist."))}s.push(e)}return new ei(s,i)}(e._query,e.firestore._databaseId,t,n[0]._document,r);{const i=fo(e.firestore);return function(e,t,n,r,i,s){const a=e.explicitOrderBy;if(i.length>a.length)throw new He(Be.INVALID_ARGUMENT,"Too many arguments provided to ".concat(r,"(). The number of arguments must be less than or equal to the number of orderBy() clauses"));const o=[];for(let l=0;l<i.length;l++){const s=i[l];if(a[l].field.isKeyField()){if("string"!=typeof s)throw new He(Be.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in ".concat(r,"(), but got a ").concat(typeof s));if(!Di(e)&&-1!==s.indexOf("/"))throw new He(Be.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by documentId(), the value passed to ".concat(r,"() must be a plain document ID, but '").concat(s,"' contains a slash."));const n=e.path.child(ot.fromString(s));if(!ut.isDocumentKey(n))throw new He(Be.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by documentId(), the value passed to ".concat(r,"() must result in a valid document path, but '").concat(n,"' is not because it contains an odd number of segments."));const i=new ut(n);o.push(ir(t,i))}else{const e=Ao(n,r,s);o.push(e)}}return new ei(o,s)}(e._query,e.firestore._databaseId,i,t,n,r)}}function Of(e,t,n){if("string"==typeof(n=(0,u.Ku)(n))){if(""===n)throw new He(Be.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!Di(t)&&-1!==n.indexOf("/"))throw new He(Be.INVALID_ARGUMENT,"Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '".concat(n,"' contains a '/' character."));const r=t.path.child(ot.fromString(n));if(!ut.isDocumentKey(r))throw new He(Be.INVALID_ARGUMENT,"Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '".concat(r,"' is not because it has an odd number of segments (").concat(r.length,")."));return ir(e,new ut(r))}if(n instanceof to)return ir(e,n._key);throw new He(Be.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ".concat(mt(n),"."))}function Rf(e,t){if(!Array.isArray(e)||0===e.length)throw new He(Be.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '".concat(t.toString(),"' filters."))}function Pf(e,t){const n=function(e,t){for(const n of e)for(const e of n.getFlattenedFilters())if(t.indexOf(e.op)>=0)return e.op;return null}(e.filters,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==n)throw n===t.op?new He(Be.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '".concat(t.op.toString(),"' filter.")):new He(Be.INVALID_ARGUMENT,"Invalid query. You cannot use '".concat(t.op.toString(),"' filters with '").concat(n.toString(),"' filters."))}function Df(e,t,n){let r;return r=e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t,r}class Lf{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class Mf extends mf{constructor(e,t,n,r,i,s){super(e,t,n,r,s),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._document){if(this._converter){const t=new Uf(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._document){const n=this._document.data.field(xo("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new He(Be.FAILED_PRECONDITION,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e=this._document,t={};return t.type=Mf._jsonSchemaVersion,t.bundle="",t.bundleSource="DocumentSnapshot",t.bundleName=this._key.toString(),e&&e.isValidDocument()&&e.isFoundDocument()?(this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields,"previous"),t.bundle=(this._firestore,this.ref.path,"NOT SUPPORTED"),t):t}}Mf._jsonSchemaVersion="firestore/documentSnapshot/1.0",Mf._jsonSchema={type:vt("string",Mf._jsonSchemaVersion),bundleSource:vt("string","DocumentSnapshot"),bundleName:vt("string"),bundle:vt("string")};class Uf extends Mf{data(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.data(e)}}class Vf{constructor(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new Lf(r.hasPendingWrites,r.fromCache),this.query=n}get docs(){const e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(n=>{e.call(t,new Uf(this._firestore,this._userDataWriter,n.key,n,new Lf(this._snapshot.mutatedKeys.has(n.key),this._snapshot.fromCache),this.query.converter))})}docChanges(){const e=!!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).includeMetadataChanges;if(e&&this._snapshot.excludesMetadataChanges)throw new He(Be.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map(n=>{gu(e._snapshot.query)?Mu(e._snapshot.query):Hi(e.query._query);const r=new Uf(e._firestore,e._userDataWriter,n.doc.key,n.doc,new Lf(e._snapshot.mutatedKeys.has(n.doc.key),e._snapshot.fromCache),e.query.converter);return n.doc,{type:"added",doc:r,oldIndex:-1,newIndex:t++}})}{let n=e._snapshot.oldDocs;return e._snapshot.docChanges.filter(e=>t||3!==e.type).map(t=>{const r=new Uf(e._firestore,e._userDataWriter,t.doc.key,t.doc,new Lf(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter);let i=-1,s=-1;return 0!==t.type&&(i=n.indexOf(t.doc.key),n=n.delete(t.doc.key)),1!==t.type&&(n=n.add(t.doc),s=n.indexOf(t.doc.key)),{type:Ff(t.type),doc:r,oldIndex:i,newIndex:s}})}}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new He(Be.FAILED_PRECONDITION,"QuerySnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e={};e.type=Vf._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=et.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;const t=[],n=[],r=[];return this.docs.forEach(e=>{null!==e._document&&(t.push(e._document),n.push(this._userDataWriter.convertObjectMap(e._document.data.value.mapValue.fields,"previous")),r.push(e.ref.path))}),e.bundle=(this._firestore,this.query._query,e.bundleName,"NOT SUPPORTED"),e}}function Ff(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Ve(61501,{type:e})}}Vf._jsonSchemaVersion="firestore/querySnapshot/1.0",Vf._jsonSchema={type:vt("string",Vf._jsonSchemaVersion),bundleSource:vt("string","QuerySnapshot"),bundleName:vt("string"),bundle:vt("string")};class jf{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=fo(e)}set(e,t,n){this._verifyNotCommitted();const r=zf(e,this._firestore),i=Df(r.converter,t,n),s=po(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(s.toMutation(r._key,Fr.none())),this}update(e,t,n){this._verifyNotCommitted();const r=zf(e,this._firestore);let i;for(var s=arguments.length,a=new Array(s>3?s-3:0),o=3;o<s;o++)a[o-3]=arguments[o];return i="string"==typeof(t=(0,u.Ku)(t))||t instanceof da?_o(this._dataReader,"WriteBatch.update",r._key,t,n,a):Eo(this._dataReader,"WriteBatch.update",r._key,t),this._mutations.push(i.toMutation(r._key,Fr.exists(!0))),this}delete(e){this._verifyNotCommitted();const t=zf(e,this._firestore);return this._mutations=this._mutations.concat(new Jr(t._key,Fr.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new He(Be.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function zf(e,t){if((e=(0,u.Ku)(e)).firestore!==t)throw new He(Be.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}function Bf(e){e=gt(e,to);const t=gt(e.firestore,of);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new qe;return e.asyncQueue.enqueueAndForget(async()=>function(e,t,n,r,i){const s=new Wd({next:o=>{s.gc(),t.enqueueAndForget(()=>ad(e,a));const l=o.docs.has(n);!l&&o.fromCache?i.reject(new He(Be.UNAVAILABLE,"Failed to get document because the client is offline.")):l&&o.fromCache&&r&&"server"===r.source?i.reject(new He(Be.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(o)},error:e=>i.reject(e)}),a=new dd(Oi(n.path),s,{includeMetadataChanges:!0,waitForSyncWhenOnline:!0});return sd(e,a)}(await ef(e),e.asyncQueue,t,n,r)),r.promise}(cf(t),e._key).then(n=>Yf(t,e,n))}function Hf(e){e=gt(e,eo);const t=gt(e.firestore,of),n=cf(t),r=new df(t);return vf(e._query),tf(n,e._query).then(n=>new Vf(t,r,e,n))}function qf(e,t,n){e=gt(e,to);const r=gt(e.firestore,of),i=Df(e.converter,t,n);return Qf(r,[po(fo(r),"setDoc",e._key,i,null!==e.converter,n).toMutation(e._key,Fr.none())])}function Gf(e,t,n){e=gt(e,to);const r=gt(e.firestore,of),i=fo(r);let s;for(var a=arguments.length,o=new Array(a>3?a-3:0),l=3;l<a;l++)o[l-3]=arguments[l];return s="string"==typeof(t=(0,u.Ku)(t))||t instanceof da?_o(i,"updateDoc",e._key,t,n,o):Eo(i,"updateDoc",e._key,t),Qf(r,[s.toMutation(e._key,Fr.exists(!0))])}function Wf(e){return Qf(gt(e.firestore,of),[new Jr(e._key,Fr.none())])}function Kf(e,t){const n=gt(e.firestore,of),r=io(e),i=Df(e.converter,t);return Qf(n,[po(fo(e.firestore),"addDoc",r._key,i,null!==e.converter,{}).toMutation(r._key,Fr.exists(!1))]).then(()=>r)}function Qf(e,t){return nf(cf(e),t)}function Yf(e,t,n){const r=n.docs.get(t._key),i=new df(e);return new Mf(e,i,t._key,r,new Lf(n.hasPendingWrites,n.fromCache),t.converter)}function $f(e){return cf(e=gt(e,of)),new jf(e,t=>Qf(e,t))}new WeakMap;!function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(function(e){Oe=e})(a.MF),(0,a.om)(new o.uA("firestore",(e,n)=>{let r=n.instanceIdentifier,i=n.options;const a=e.getProvider("app").getImmediate(),o=new of(new Qe(e.getProvider("auth-internal")),new Je(a,e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new He(Be.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new jn(e.options.projectId,t)}(a,r),a);return i=(0,s.A)({useFetchStreams:t},i),o._setSettings(i),o},"PUBLIC").setMultipleInstances(!0)),(0,a.KO)(ff,pf,e),(0,a.KO)(ff,pf,"esm2020")}()},184(e,t,n){"use strict";n.d(t,{BHn:()=>w,CMH:()=>C,DSS:()=>h,EQc:()=>_,KSO:()=>v,NBi:()=>f,PSO:()=>N,QEs:()=>c,Rqy:()=>k,ScZ:()=>u,U2A:()=>x,V4G:()=>T,Vk6:()=>i,__w:()=>b,f35:()=>E,gQx:()=>s,gb0:()=>m,gt3:()=>g,hL4:()=>d,ivP:()=>o,maD:()=>A,qbC:()=>p,rMV:()=>a,teh:()=>l,uO9:()=>S,w1Z:()=>y});var r=n(4479);function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},child:[]}]})(e)}function s(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M508.52,249.75,486.7,236.24c-.17-2-.34-3.93-.55-5.88l18.72-17.5a7.35,7.35,0,0,0-2.44-12.25l-24-9c-.54-1.88-1.08-3.78-1.67-5.64l15-20.83a7.35,7.35,0,0,0-4.79-11.54l-25.42-4.15c-.9-1.73-1.79-3.45-2.73-5.15l10.68-23.42a7.35,7.35,0,0,0-6.95-10.39l-25.82.91q-1.79-2.22-3.61-4.4L439,81.84A7.36,7.36,0,0,0,430.16,73L405,78.93q-2.17-1.83-4.4-3.61l.91-25.82a7.35,7.35,0,0,0-10.39-7L367.7,53.23c-1.7-.94-3.43-1.84-5.15-2.73L358.4,25.08a7.35,7.35,0,0,0-11.54-4.79L326,35.26c-1.86-.59-3.75-1.13-5.64-1.67l-9-24a7.35,7.35,0,0,0-12.25-2.44l-17.5,18.72c-1.95-.21-3.91-.38-5.88-.55L262.25,3.48a7.35,7.35,0,0,0-12.5,0L236.24,25.3c-2,.17-3.93.34-5.88.55L212.86,7.13a7.35,7.35,0,0,0-12.25,2.44l-9,24c-1.89.55-3.79,1.08-5.66,1.68l-20.82-15a7.35,7.35,0,0,0-11.54,4.79l-4.15,25.41c-1.73.9-3.45,1.79-5.16,2.73L120.88,42.55a7.35,7.35,0,0,0-10.39,7l.92,25.81c-1.49,1.19-3,2.39-4.42,3.61L81.84,73A7.36,7.36,0,0,0,73,81.84L78.93,107c-1.23,1.45-2.43,2.93-3.62,4.41l-25.81-.91a7.42,7.42,0,0,0-6.37,3.26,7.35,7.35,0,0,0-.57,7.13l10.66,23.41c-.94,1.7-1.83,3.43-2.73,5.16L25.08,153.6a7.35,7.35,0,0,0-4.79,11.54l15,20.82c-.59,1.87-1.13,3.77-1.68,5.66l-24,9a7.35,7.35,0,0,0-2.44,12.25l18.72,17.5c-.21,1.95-.38,3.91-.55,5.88L3.48,249.75a7.35,7.35,0,0,0,0,12.5L25.3,275.76c.17,2,.34,3.92.55,5.87L7.13,299.13a7.35,7.35,0,0,0,2.44,12.25l24,9c.55,1.89,1.08,3.78,1.68,5.65l-15,20.83a7.35,7.35,0,0,0,4.79,11.54l25.42,4.15c.9,1.72,1.79,3.45,2.73,5.14L42.56,391.12a7.35,7.35,0,0,0,.57,7.13,7.13,7.13,0,0,0,6.37,3.26l25.83-.91q1.77,2.22,3.6,4.4L73,430.16A7.36,7.36,0,0,0,81.84,439L107,433.07q2.18,1.83,4.41,3.61l-.92,25.82a7.35,7.35,0,0,0,10.39,6.95l23.43-10.68c1.69.94,3.42,1.83,5.14,2.73l4.15,25.42a7.34,7.34,0,0,0,11.54,4.78l20.83-15c1.86.6,3.76,1.13,5.65,1.68l9,24a7.36,7.36,0,0,0,12.25,2.44l17.5-18.72c1.95.21,3.92.38,5.88.55l13.51,21.82a7.35,7.35,0,0,0,12.5,0l13.51-21.82c2-.17,3.93-.34,5.88-.56l17.5,18.73a7.36,7.36,0,0,0,12.25-2.44l9-24c1.89-.55,3.78-1.08,5.65-1.68l20.82,15a7.34,7.34,0,0,0,11.54-4.78l4.15-25.42c1.72-.9,3.45-1.79,5.15-2.73l23.42,10.68a7.35,7.35,0,0,0,10.39-6.95l-.91-25.82q2.22-1.79,4.4-3.61L430.16,439a7.36,7.36,0,0,0,8.84-8.84L433.07,405q1.83-2.17,3.61-4.4l25.82.91a7.23,7.23,0,0,0,6.37-3.26,7.35,7.35,0,0,0,.58-7.13L458.77,367.7c.94-1.7,1.83-3.43,2.73-5.15l25.42-4.15a7.35,7.35,0,0,0,4.79-11.54l-15-20.83c.59-1.87,1.13-3.76,1.67-5.65l24-9a7.35,7.35,0,0,0,2.44-12.25l-18.72-17.5c.21-1.95.38-3.91.55-5.87l21.82-13.51a7.35,7.35,0,0,0,0-12.5Zm-151,129.08A13.91,13.91,0,0,0,341,389.51l-7.64,35.67A187.51,187.51,0,0,1,177,424.44l-7.64-35.66a13.87,13.87,0,0,0-16.46-10.68l-31.51,6.76a187.38,187.38,0,0,1-16.26-19.21H258.3c1.72,0,2.89-.29,2.89-1.91V309.55c0-1.57-1.17-1.91-2.89-1.91H213.47l.05-34.35H262c4.41,0,23.66,1.28,29.79,25.87,1.91,7.55,6.17,32.14,9.06,40,2.89,8.82,14.6,26.46,27.1,26.46H407a187.3,187.3,0,0,1-17.34,20.09Zm25.77,34.49A15.24,15.24,0,1,1,368,398.08h.44A15.23,15.23,0,0,1,383.24,413.32Zm-225.62-.68a15.24,15.24,0,1,1-15.25-15.25h.45A15.25,15.25,0,0,1,157.62,412.64ZM69.57,234.15l32.83-14.6a13.88,13.88,0,0,0,7.06-18.33L102.69,186h26.56V305.73H75.65A187.65,187.65,0,0,1,69.57,234.15ZM58.31,198.09a15.24,15.24,0,0,1,15.23-15.25H74a15.24,15.24,0,1,1-15.67,15.24Zm155.16,24.49.05-35.32h63.26c3.28,0,23.07,3.77,23.07,18.62,0,12.29-15.19,16.7-27.68,16.7ZM399,306.71c-9.8,1.13-20.63-4.12-22-10.09-5.78-32.49-15.39-39.4-30.57-51.4,18.86-11.95,38.46-29.64,38.46-53.26,0-25.52-17.49-41.59-29.4-49.48-16.76-11-35.28-13.23-40.27-13.23H116.32A187.49,187.49,0,0,1,221.21,70.06l23.47,24.6a13.82,13.82,0,0,0,19.6.44l26.26-25a187.51,187.51,0,0,1,128.37,91.43l-18,40.57A14,14,0,0,0,408,220.43l34.59,15.33a187.12,187.12,0,0,1,.4,32.54H423.71c-1.91,0-2.69,1.27-2.69,3.13v8.82C421,301,409.31,305.58,399,306.71ZM240,60.21A15.24,15.24,0,0,1,255.21,45h.45A15.24,15.24,0,1,1,240,60.21ZM436.84,214a15.24,15.24,0,1,1,0-30.48h.44a15.24,15.24,0,0,1-.44,30.48Z"},child:[]}]})(e)}function a(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M418.2 177.2c-5.4-1.8-10.8-3.5-16.2-5.1.9-3.7 1.7-7.4 2.5-11.1 12.3-59.6 4.2-107.5-23.1-123.3-26.3-15.1-69.2.6-112.6 38.4-4.3 3.7-8.5 7.6-12.5 11.5-2.7-2.6-5.5-5.2-8.3-7.7-45.5-40.4-91.1-57.4-118.4-41.5-26.2 15.2-34 60.3-23 116.7 1.1 5.6 2.3 11.1 3.7 16.7-6.4 1.8-12.7 3.8-18.6 5.9C38.3 196.2 0 225.4 0 255.6c0 31.2 40.8 62.5 96.3 81.5 4.5 1.5 9 3 13.6 4.3-1.5 6-2.8 11.9-4 18-10.5 55.5-2.3 99.5 23.9 114.6 27 15.6 72.4-.4 116.6-39.1 3.5-3.1 7-6.3 10.5-9.7 4.4 4.3 9 8.4 13.6 12.4 42.8 36.8 85.1 51.7 111.2 36.6 27-15.6 35.8-62.9 24.4-120.5-.9-4.4-1.9-8.9-3-13.5 3.2-.9 6.3-1.9 9.4-2.9 57.7-19.1 99.5-50 99.5-81.7 0-30.3-39.4-59.7-93.8-78.4zM282.9 92.3c37.2-32.4 71.9-45.1 87.7-36 16.9 9.7 23.4 48.9 12.8 100.4-.7 3.4-1.4 6.7-2.3 10-22.2-5-44.7-8.6-67.3-10.6-13-18.6-27.2-36.4-42.6-53.1 3.9-3.7 7.7-7.2 11.7-10.7zM167.2 307.5c5.1 8.7 10.3 17.4 15.8 25.9-15.6-1.7-31.1-4.2-46.4-7.5 4.4-14.4 9.9-29.3 16.3-44.5 4.6 8.8 9.3 17.5 14.3 26.1zm-30.3-120.3c14.4-3.2 29.7-5.8 45.6-7.8-5.3 8.3-10.5 16.8-15.4 25.4-4.9 8.5-9.7 17.2-14.2 26-6.3-14.9-11.6-29.5-16-43.6zm27.4 68.9c6.6-13.8 13.8-27.3 21.4-40.6s15.8-26.2 24.4-38.9c15-1.1 30.3-1.7 45.9-1.7s31 .6 45.9 1.7c8.5 12.6 16.6 25.5 24.3 38.7s14.9 26.7 21.7 40.4c-6.7 13.8-13.9 27.4-21.6 40.8-7.6 13.3-15.7 26.2-24.2 39-14.9 1.1-30.4 1.6-46.1 1.6s-30.9-.5-45.6-1.4c-8.7-12.7-16.9-25.7-24.6-39s-14.8-26.8-21.5-40.6zm180.6 51.2c5.1-8.8 9.9-17.7 14.6-26.7 6.4 14.5 12 29.2 16.9 44.3-15.5 3.5-31.2 6.2-47 8 5.4-8.4 10.5-17 15.5-25.6zm14.4-76.5c-4.7-8.8-9.5-17.6-14.5-26.2-4.9-8.5-10-16.9-15.3-25.2 16.1 2 31.5 4.7 45.9 8-4.6 14.8-10 29.2-16.1 43.4zM256.2 118.3c10.5 11.4 20.4 23.4 29.6 35.8-19.8-.9-39.7-.9-59.5 0 9.8-12.9 19.9-24.9 29.9-35.8zM140.2 57c16.8-9.8 54.1 4.2 93.4 39 2.5 2.2 5 4.6 7.6 7-15.5 16.7-29.8 34.5-42.9 53.1-22.6 2-45 5.5-67.2 10.4-1.3-5.1-2.4-10.3-3.5-15.5-9.4-48.4-3.2-84.9 12.6-94zm-24.5 263.6c-4.2-1.2-8.3-2.5-12.4-3.9-21.3-6.7-45.5-17.3-63-31.2-10.1-7-16.9-17.8-18.8-29.9 0-18.3 31.6-41.7 77.2-57.6 5.7-2 11.5-3.8 17.3-5.5 6.8 21.7 15 43 24.5 63.6-9.6 20.9-17.9 42.5-24.8 64.5zm116.6 98c-16.5 15.1-35.6 27.1-56.4 35.3-11.1 5.3-23.9 5.8-35.3 1.3-15.9-9.2-22.5-44.5-13.5-92 1.1-5.6 2.3-11.2 3.7-16.7 22.4 4.8 45 8.1 67.9 9.8 13.2 18.7 27.7 36.6 43.2 53.4-3.2 3.1-6.4 6.1-9.6 8.9zm24.5-24.3c-10.2-11-20.4-23.2-30.3-36.3 9.6.4 19.5.6 29.5.6 10.3 0 20.4-.2 30.4-.7-9.2 12.7-19.1 24.8-29.6 36.4zm130.7 30c-.9 12.2-6.9 23.6-16.5 31.3-15.9 9.2-49.8-2.8-86.4-34.2-4.2-3.6-8.4-7.5-12.7-11.5 15.3-16.9 29.4-34.8 42.2-53.6 22.9-1.9 45.7-5.4 68.2-10.5 1 4.1 1.9 8.2 2.7 12.2 4.9 21.6 5.7 44.1 2.5 66.3zm18.2-107.5c-2.8.9-5.6 1.8-8.5 2.6-7-21.8-15.6-43.1-25.5-63.8 9.6-20.4 17.7-41.4 24.5-62.9 5.2 1.5 10.2 3.1 15 4.7 46.6 16 79.3 39.8 79.3 58 0 19.6-34.9 44.9-84.8 61.4zm-149.7-15c25.3 0 45.8-20.5 45.8-45.8s-20.5-45.8-45.8-45.8c-25.3 0-45.8 20.5-45.8 45.8s20.5 45.8 45.8 45.8z"},child:[]}]})(e)}function o(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z"},child:[]}]})(e)}function l(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M593.8 59.1H46.2C20.7 59.1 0 79.8 0 105.2v301.5c0 25.5 20.7 46.2 46.2 46.2h547.7c25.5 0 46.2-20.7 46.1-46.1V105.2c0-25.4-20.7-46.1-46.2-46.1zM338.5 360.6H277v-120l-61.5 76.9-61.5-76.9v120H92.3V151.4h61.5l61.5 76.9 61.5-76.9h61.5v209.2zm135.3 3.1L381.5 256H443V151.4h61.5V256H566z"},child:[]}]})(e)}function c(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(e)}function u(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M277.74 312.9c9.8-6.7 23.4-12.5 23.4-12.5s-38.7 7-77.2 10.2c-47.1 3.9-97.7 4.7-123.1 1.3-60.1-8 33-30.1 33-30.1s-36.1-2.4-80.6 19c-52.5 25.4 130 37 224.5 12.1zm-85.4-32.1c-19-42.7-83.1-80.2 0-145.8C296 53.2 242.84 0 242.84 0c21.5 84.5-75.6 110.1-110.7 162.6-23.9 35.9 11.7 74.4 60.2 118.2zm114.6-176.2c.1 0-175.2 43.8-91.5 140.2 24.7 28.4-6.5 54-6.5 54s62.7-32.4 33.9-72.9c-26.9-37.8-47.5-56.6 64.1-121.3zm-6.1 270.5a12.19 12.19 0 0 1-2 2.6c128.3-33.7 81.1-118.9 19.8-97.3a17.33 17.33 0 0 0-8.2 6.3 70.45 70.45 0 0 1 11-3c31-6.5 75.5 41.5-20.6 91.4zM348 437.4s14.5 11.9-15.9 21.2c-57.9 17.5-240.8 22.8-291.6.7-18.3-7.9 16-19 26.8-21.3 11.2-2.4 17.7-2 17.7-2-20.3-14.3-131.3 28.1-56.4 40.2C232.84 509.4 401 461.3 348 437.4zM124.44 396c-78.7 22 47.9 67.4 148.1 24.5a185.89 185.89 0 0 1-28.2-13.8c-44.7 8.5-65.4 9.1-106 4.5-33.5-3.8-13.9-15.2-13.9-15.2zm179.8 97.2c-78.7 14.8-175.8 13.1-233.3 3.6 0-.1 11.8 9.7 72.4 13.6 92.2 5.9 233.8-3.3 237.1-46.9 0 0-6.4 16.5-76.2 29.7zM260.64 353c-59.2 11.4-93.5 11.1-136.8 6.6-33.5-3.5-11.6-19.7-11.6-19.7-86.8 28.8 48.2 61.4 169.5 25.9a60.37 60.37 0 0 1-21.1-12.8z"},child:[]}]})(e)}function h(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 488 512"},child:[{tag:"path",attr:{d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"},child:[]}]})(e)}function d(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(e)}function f(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"},child:[]}]})(e)}function p(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"},child:[]}]})(e)}function m(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"},child:[]}]})(e)}function g(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},child:[]}]})(e)}function v(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function y(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M8.309 189.836L184.313 37.851C199.719 24.546 224 35.347 224 56.015v80.053c160.629 1.839 288 34.032 288 186.258 0 61.441-39.581 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 45.344-145.012-21.507-183.51-176.59-185.742V360c0 20.7-24.3 31.453-39.687 18.164l-176.004-152c-11.071-9.562-11.086-26.753 0-36.328z"},child:[]}]})(e)}function w(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M470.38 1.51L150.41 96A32 32 0 0 0 128 126.51v261.41A139 139 0 0 0 96 384c-53 0-96 28.66-96 64s43 64 96 64 96-28.66 96-64V214.32l256-75v184.61a138.4 138.4 0 0 0-32-3.93c-53 0-96 28.66-96 64s43 64 96 64 96-28.65 96-64V32a32 32 0 0 0-41.62-30.49z"},child:[]}]})(e)}function b(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},child:[]}]})(e)}function E(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"},child:[]}]})(e)}function _(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"},child:[]}]})(e)}function A(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(e)}function S(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"},child:[]}]})(e)}function C(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(e)}function T(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 384c-28.02 0-31.26-32-74.5-32-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218 32-74.5 32-28.148 0-31.202-32-74.75-32-43.547 0-46.653 32-74.75 32v-80c0-26.5 21.5-48 48-48h16V112h64v144h64V112h64v144h64V112h64v144h16c26.5 0 48 21.5 48 48v80zm0 128H0v-96c43.356 0 46.767-32 74.75-32 27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32 28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 27.488 0 31.252 32 74.5 32v96zM96 96c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40z"},child:[]}]})(e)}function k(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"},child:[]}]})(e)}function x(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M466.27 286.69C475.04 271.84 480 256 480 236.85c0-44.015-37.218-85.58-85.82-85.58H357.7c4.92-12.81 8.85-28.13 8.85-46.54C366.55 31.936 328.86 0 271.28 0c-61.607 0-58.093 94.933-71.76 108.6-22.747 22.747-49.615 66.447-68.76 83.4H32c-17.673 0-32 14.327-32 32v240c0 17.673 14.327 32 32 32h64c14.893 0 27.408-10.174 30.978-23.95 44.509 1.001 75.06 39.94 177.802 39.94 7.22 0 15.22.01 22.22.01 77.117 0 111.986-39.423 112.94-95.33 13.319-18.425 20.299-43.122 17.34-66.99 9.854-18.452 13.664-40.343 8.99-62.99zm-61.75 53.83c12.56 21.13 1.26 49.41-13.94 57.57 7.7 48.78-17.608 65.9-53.12 65.9h-37.82c-71.639 0-118.029-37.82-171.64-37.82V240h10.92c28.36 0 67.98-70.89 94.54-97.46 28.36-28.36 18.91-75.63 37.82-94.54 47.27 0 47.27 32.98 47.27 56.73 0 39.17-28.36 56.72-28.36 94.54h103.99c21.11 0 37.73 18.91 37.82 37.82.09 18.9-12.82 37.81-22.27 37.81 13.489 14.555 16.371 45.236-5.21 65.62zM88 432c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"},child:[]}]})(e)}function N(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 448c-110.532 0-200-89.451-200-200 0-110.531 89.451-200 200-200 110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200zm107.351-101.064c-9.614 9.712-45.53 41.396-104.065 41.396-82.43 0-140.484-61.425-140.484-141.567 0-79.152 60.275-139.401 139.762-139.401 55.531 0 88.738 26.62 97.593 34.779a11.965 11.965 0 0 1 1.936 15.322l-18.155 28.113c-3.841 5.95-11.966 7.282-17.499 2.921-8.595-6.776-31.814-22.538-61.708-22.538-48.303 0-77.916 35.33-77.916 80.082 0 41.589 26.888 83.692 78.277 83.692 32.657 0 56.843-19.039 65.726-27.225 5.27-4.857 13.596-4.039 17.82 1.738l19.865 27.17a11.947 11.947 0 0 1-1.152 15.518z"},child:[]}]})(e)}},4479(e,t,n){"use strict";n.d(t,{k5:()=>d,Vx:()=>s});var r=n(5043),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s=r.createContext&&r.createContext(i),a=["attr","size","title"];function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(null,arguments)}function l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return e&&e.map((e,t)=>r.createElement(e.tag,c({key:t},e.attr),h(e.child)))}function d(e){return t=>r.createElement(f,o({attr:c({},e.attr)},t),h(e.child))}function f(e){var t=t=>{var n,i=e.attr,s=e.size,l=e.title,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a),h=s||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,u,{className:n,style:c(c({color:e.color||t.color},t.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==s?r.createElement(s.Consumer,null,e=>t(e)):t(i)}},7196(e,t,n){"use strict";n.d(t,{YDm:()=>i});var r=n(4479);function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2 5.5V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V19H20V7.3L12 14.5L2 5.5ZM0 10H5V12H0V10ZM0 15H8V17H0V15Z"},child:[]}]})(e)}},6322(e,t,n){"use strict";var r;n.d(t,{BV:()=>We,C5:()=>He,Kd:()=>kt,N_:()=>Nt,Zp:()=>_e,g:()=>Ae,ok:()=>Dt,qh:()=>qe,zy:()=>we});var i=n(45),s=n(3145),a=n(5763),o=n(5544),l=n(9379),c=n(5043);const u=["sri"],h=["page"],d=["page","matches"],f=["page","matches"],p=["onClick","discover","prefetch","relative","reloadDocument","replace","mask","state","target","to","preventScrollReset","viewTransition","defaultShouldRevalidate"],m=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],g=["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition","defaultShouldRevalidate"];var v="popstate";function y(e){return"object"===typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function w(){return T(function(e,t){var n;let r=null===(n=t.state)||void 0===n?void 0:n.masked,i=r||e.location;return A("",{pathname:i.pathname,search:i.search,hash:i.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default",r?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,t){return"string"===typeof t?t:S(t)},null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function b(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function E(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function _(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function A(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return(0,l.A)((0,l.A)({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?C(t):t),{},{state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),mask:i})}function S(e){let t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,s=e.hash,a=void 0===s?"":s;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function C(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function T(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.window,s=void 0===i?document.defaultView:i,a=r.v5Compat,o=void 0!==a&&a,c=s.history,u="POP",h=null,d=f();function f(){return(c.state||{idx:null}).idx}function p(){u="POP";let e=f(),t=null==e?null:e-d;d=e,h&&h({action:u,location:g.location,delta:t})}function m(e){return k(s,e)}null==d&&(d=0,c.replaceState((0,l.A)((0,l.A)({},c.state),{},{idx:d}),""));let g={get action(){return u},get location(){return e(s,c)},listen(e){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(v,p),h=e,()=>{s.removeEventListener(v,p),h=null}},createHref:e=>t(s,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){u="PUSH";let r=y(e)?e:A(g.location,e,t);n&&n(r,e),d=f()+1;let i=_(r,d),a=g.createHref(r.mask||r);try{c.pushState(i,"",a)}catch(l){if(l instanceof DOMException&&"DataCloneError"===l.name)throw l;s.location.assign(a)}o&&h&&h({action:u,location:g.location,delta:1})},replace:function(e,t){u="REPLACE";let r=y(e)?e:A(g.location,e,t);n&&n(r,e),d=f();let i=_(r,d),s=g.createHref(r.mask||r);c.replaceState(i,"",s),o&&h&&h({action:u,location:g.location,delta:0})},go:e=>c.go(e)};return g}function k(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="http://localhost";e&&(r="null"!==e.location.origin?e.location.origin:e.location.href),b(r,"No window.location.(origin|href) available to create URL");let i="string"===typeof t?t:S(t);return i=i.replace(/ $/,"%20"),!n&&i.startsWith("//")&&(i=r+i),new URL(i,r)}new WeakMap;function x(e,t){return N(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",!1)}function N(e,t,n,r,i){let s=j(("string"===typeof t?C(t):t).pathname||"/",n);if(null==s)return null;let a=null!==i&&void 0!==i?i:I(e),o=null,l=F(s);for(let c=0;null==o&&c<a.length;++c)o=M(a[c],l,r);return o}function I(e){let t=O(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=function(e,s){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,o=arguments.length>3?arguments[3]:void 0,l={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:s,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&a)return;b(l.relativePath.startsWith(r),'Absolute route path "'.concat(l.relativePath,'" nested under path "').concat(r,'" is not valid. An absolute child route path must start with the combined path of all its parent routes.')),l.relativePath=l.relativePath.slice(r.length)}let c=Q([r,l.relativePath]),u=n.concat(l);e.children&&e.children.length>0&&(b(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'.concat(c,'".')),O(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:L(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!==(n=e.path)&&void 0!==n&&n.includes("?"))for(let r of R(e.path))s(e,t,!0,r);else s(e,t)}),t}function R(e){let t=e.split("/");if(0===t.length)return[];let n=(0,a.A)(t),r=n[0],i=(0,s.A)(n).slice(1),o=r.endsWith("?"),l=r.replace(/\?$/,"");if(0===i.length)return o?[l,""]:[l];let c=R(i.join("/")),u=[];return u.push(...c.map(e=>""===e?l:[l,e].join("/"))),o&&u.push(...c),u.map(t=>e.startsWith("/")&&""===t?"/":t)}var P=/^:[\w-]+$/,D=e=>"*"===e;function L(e,t){let n=e.split("/"),r=n.length;return n.some(D)&&(r+=-2),t&&(r+=2),n.filter(e=>!D(e)).reduce((e,t)=>e+(P.test(t)?3:""===t?1:10),r)}function M(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.routesMeta,i={},s="/",a=[];for(let o=0;o<r.length;++o){let e=r[o],l=o===r.length-1,c="/"===s?t:t.slice(s.length)||"/",u=U({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),h=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=U({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),a.push({params:i,pathname:Q([s,u.pathname]),pathnameBase:$(Q([s,u.pathnameBase])),route:h}),"/"!==u.pathnameBase&&(s=Q([s,u.pathnameBase]))}return a}function U(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let n=V(e.path,e.caseSensitive,e.end),r=(0,o.A)(n,2),i=r[0],s=r[1],a=t.match(i);if(!a)return null;let l=a[0],c=l.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:s.reduce((e,t,n)=>{let r=t.paramName,i=t.isOptional;if("*"===r){let e=u[n]||"";c=l.slice(0,l.length-e.length).replace(/(.)\/+$/,"$1")}const s=u[n];return e[r]=i&&!s?void 0:(s||"").replace(/%2F/g,"/"),e},{}),pathname:l,pathnameBase:c,pattern:e}}function V(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];E("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'.concat(e,'" will be treated as if it were "').concat(e.replace(/\*$/,"/*"),'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "').concat(e.replace(/\*$/,"/*"),'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,s)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=s.charAt(i+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function F(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return E(!1,'The URL path "'.concat(e,'" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (').concat(t,").")),e}}function j(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var z=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function B(e,t){let n=Y(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function H(e,t,n,r){return"Cannot include a '".concat(e,"' character in a manually specified `to.").concat(t,"` field [").concat(JSON.stringify(r),"].  Please separate it out to the `to.").concat(n,'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.')}function q(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function G(e){let t=q(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function W(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"===typeof e?r=C(e):(r=(0,l.A)({},e),b(!r.pathname||!r.pathname.includes("?"),H("?","pathname","search",r)),b(!r.pathname||!r.pathname.includes("#"),H("#","pathname","hash",r)),b(!r.search||!r.search.includes("#"),H("#","search","hash",r)));let s,a=""===e||""===r.pathname,o=a?"/":r.pathname;if(null==o)s=n;else{let e=t.length-1;if(!i&&o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}s=e>=0?t[e]:"/"}let c=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",r="string"===typeof e?C(e):e,i=r.pathname,s=r.search,a=void 0===s?"":s,o=r.hash,l=void 0===o?"":o;return i?(i=K(i),t=i.startsWith("/")?B(i.substring(1),"/"):B(i,n)):t=n,{pathname:t,search:X(a),hash:J(l)}}(r,s),u=o&&"/"!==o&&o.endsWith("/"),h=(a||"."===o)&&n.endsWith("/");return c.pathname.endsWith("/")||!u&&!h||(c.pathname+="/"),c}var K=e=>e.replace(/\/\/+/g,"/"),Q=e=>K(e.join("/")),Y=e=>e.replace(/\/+$/,""),$=e=>Y(e).replace(/^\/*/,"/"),X=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",J=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var Z=class{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function ee(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}function te(e){let t=e.map(e=>e.route.path).filter(Boolean);return Q(t)||"/"}var ne="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function re(e,t){let n=e;if("string"!==typeof n||!z.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(ne)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),s=j(r.pathname,t);r.origin===e.origin&&null!=s?n=s+r.search+r.hash:i=!0}catch(s){E(!1,'<Link to="'.concat(n,'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.'))}return{absoluteURL:r,isExternal:i,to:n}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ie=["POST","PUT","PATCH","DELETE"],se=(new Set(ie),["GET",...ie]);new Set(se),Symbol("ResetLoaderData");new WeakMap,new WeakMap,new WeakMap,new WeakMap;var ae=c.createContext(null);ae.displayName="DataRouter";var oe=c.createContext(null);oe.displayName="DataRouterState";var le=c.createContext(!1);function ce(){return c.useContext(le)}var ue=c.createContext({isTransitioning:!1});ue.displayName="ViewTransition";var he=c.createContext(new Map);he.displayName="Fetchers";var de=c.createContext(null);de.displayName="Await";var fe=c.createContext(null);fe.displayName="Navigation";var pe=c.createContext(null);pe.displayName="Location";var me=c.createContext({outlet:null,matches:[],isDataRoute:!1});me.displayName="Route";var ge=c.createContext(null);ge.displayName="RouteError";var ve="REACT_ROUTER_ERROR";function ye(){return null!=c.useContext(pe)}function we(){return b(ye(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(pe).location}var be="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ee(e){c.useContext(fe).static||c.useLayoutEffect(e)}function _e(){return c.useContext(me).isDataRoute?function(){let e=De("useNavigate").router,t=Me("useNavigate"),n=c.useRef(!1);Ee(()=>{n.current=!0});let r=c.useCallback(async function(r){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};E(n.current,be),n.current&&("number"===typeof r?await e.navigate(r):await e.navigate(r,(0,l.A)({fromRouteId:t},i)))},[e,t]);return r}():function(){b(ye(),"useNavigate() may be used only in the context of a <Router> component.");let e=c.useContext(ae),t=c.useContext(fe),n=t.basename,r=t.navigator,i=c.useContext(me).matches,s=we().pathname,a=JSON.stringify(G(i)),o=c.useRef(!1);Ee(()=>{o.current=!0});let l=c.useCallback(function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(E(o.current,be),!o.current)return;if("number"===typeof t)return void r.go(t);let l=W(t,JSON.parse(a),s,"path"===i.relative);null==e&&"/"!==n&&(l.pathname="/"===l.pathname?n:Q([n,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)},[n,r,a,s,e]);return l}()}c.createContext(null);function Ae(){var e;let t=c.useContext(me).matches,n=t[t.length-1];return null!==(e=null===n||void 0===n?void 0:n.params)&&void 0!==e?e:{}}function Se(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).relative,n=c.useContext(me).matches,r=we().pathname,i=JSON.stringify(G(n));return c.useMemo(()=>W(e,JSON.parse(i),r,"path"===t),[e,i,r,t])}function Ce(e,t,n){b(ye(),"useRoutes() may be used only in the context of a <Router> component.");let r=c.useContext(fe).navigator,i=c.useContext(me).matches,s=i[i.length-1],a=s?s.params:{},o=s?s.pathname:"/",u=s?s.pathnameBase:"/",h=s&&s.route;{let e=h&&h.path||"";Fe(o,!h||e.endsWith("*")||e.endsWith("*?"),'You rendered descendant <Routes> (or called `useRoutes()`) at "'.concat(o,'" (under <Route path="').concat(e,'">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won\'t match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="').concat(e,'"> to <Route path="').concat("/"===e?"*":"".concat(e,"/*"),'">.'))}let d,f=we();if(t){var p;let e="string"===typeof t?C(t):t;b("/"===u||(null===(p=e.pathname)||void 0===p?void 0:p.startsWith(u)),'When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "'.concat(u,'" but pathname "').concat(e.pathname,'" was given in the `location` prop.')),d=e}else d=f;let m=d.pathname||"/",g=m;if("/"!==u){let e=u.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):x(e,{pathname:g});E(h||null!=v,'No routes matched location "'.concat(d.pathname).concat(d.search).concat(d.hash,'" ')),E(null==v||void 0!==v[v.length-1].route.element||void 0!==v[v.length-1].route.Component||void 0!==v[v.length-1].route.lazy,'Matched leaf route at location "'.concat(d.pathname).concat(d.search).concat(d.hash,'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let y=Re(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:Q([u,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:Q([u,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),i,n);return t&&y?c.createElement(pe.Provider,{value:{location:(0,l.A)({pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0},d),navigationType:"POP"}},y):y}function Te(){let e=Ue(),t=ee(e)?"".concat(e.status," ").concat(e.statusText):e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=c.createElement(c.Fragment,null,c.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:s},"ErrorBoundary")," or"," ",c.createElement("code",{style:s},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:i},n):null,a)}var ke=c.createElement(Te,null),xe=class extends c.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"===typeof e&&e&&"digest"in e&&"string"===typeof e.digest){const t=function(e){if(e.startsWith("".concat(ve,":").concat("ROUTE_ERROR_RESPONSE",":{")))try{let t=JSON.parse(e.slice(40));if("object"===typeof t&&t&&"number"===typeof t.status&&"string"===typeof t.statusText)return new Z(t.status,t.statusText,t.data)}catch(t){}}(e.digest);t&&(e=t)}let t=void 0!==e?c.createElement(me.Provider,{value:this.props.routeContext},c.createElement(ge.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?c.createElement(Ie,{error:e},t):t}};xe.contextType=le;var Ne=new WeakMap;function Ie(e){let t=e.children,n=e.error,r=c.useContext(fe).basename;if("object"===typeof n&&n&&"digest"in n&&"string"===typeof n.digest){let e=function(e){if(e.startsWith("".concat(ve,":").concat("REDIRECT",":{")))try{let t=JSON.parse(e.slice(28));if("object"===typeof t&&t&&"number"===typeof t.status&&"string"===typeof t.statusText&&"string"===typeof t.location&&"boolean"===typeof t.reloadDocument&&"boolean"===typeof t.replace)return t}catch(t){}}(n.digest);if(e){let t=Ne.get(n);if(t)throw t;let i=re(e.location,r);if(ne&&!Ne.get(n)){if(!i.isExternal&&!e.reloadDocument){const t=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw Ne.set(n,t),t}window.location.href=i.absoluteURL||i.to}return c.createElement("meta",{httpEquiv:"refresh",content:"0;url=".concat(i.absoluteURL||i.to)})}}return t}function Oe(e){let t=e.routeContext,n=e.match,r=e.children,i=c.useContext(ae);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement(me.Provider,{value:t},r)}function Re(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=null===n||void 0===n?void 0:n.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,s=null===r||void 0===r?void 0:r.errors;if(null!=s){let e=i.findIndex(e=>e.route.id&&void 0!==(null===s||void 0===s?void 0:s[e.route.id]));b(e>=0,"Could not find a matching route for errors on route IDs: ".concat(Object.keys(s).join(","))),i=i.slice(0,Math.min(i.length,e+1))}let a=!1,o=-1;if(n&&r){a=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(o=e),t.route.id){let e=r.loaderData,s=r.errors,l=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!s||void 0===s[t.route.id]);if(t.route.lazy||l){n.isStatic&&(a=!0),i=o>=0?i.slice(0,o+1):[i[0]];break}}}}let l=null===n||void 0===n?void 0:n.onError,u=r&&l?(e,t)=>{var n,i;l(e,{location:r.location,params:null!==(n=null===(i=r.matches)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.params)&&void 0!==n?n:{},pattern:te(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,l)=>{let h,d=!1,f=null,p=null;r&&(h=s&&n.route.id?s[n.route.id]:void 0,f=n.route.errorElement||ke,a&&(o<0&&0===l?(Fe("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):o===l&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,l+1)),g=()=>{let t;return t=h?f:d?p:n.route.Component?c.createElement(n.route.Component,null):n.route.element?n.route.element:e,c.createElement(Oe,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===l)?c.createElement(xe,{location:r.location,revalidation:r.revalidation,component:f,error:h,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):g()},null)}function Pe(e){return"".concat(e," must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.")}function De(e){let t=c.useContext(ae);return b(t,Pe(e)),t}function Le(e){let t=c.useContext(oe);return b(t,Pe(e)),t}function Me(e){let t=function(e){let t=c.useContext(me);return b(t,Pe(e)),t}(e),n=t.matches[t.matches.length-1];return b(n.route.id,"".concat(e,' can only be used on routes that contain a unique "id"')),n.route.id}function Ue(){var e;let t=c.useContext(ge),n=Le("useRouteError"),r=Me("useRouteError");return void 0!==t?t:null===(e=n.errors)||void 0===e?void 0:e[r]}var Ve={};function Fe(e,t,n){t||Ve[e]||(Ve[e]=!0,E(!1,n))}var je={};function ze(e,t){e||je[t]||(je[t]=!0,console.warn(t))}(r||(r=n.t(c,2))).useOptimistic;c.memo(Be);function Be(e){let t=e.routes,n=e.manifest,r=e.future;return Ce(t,void 0,{manifest:n,state:e.state,isStatic:e.isStatic,onError:e.onError,future:r})}function He(e){let t=e.to,n=e.replace,r=e.state,i=e.relative;b(ye(),"<Navigate> may be used only in the context of a <Router> component."),E(!c.useContext(fe).static,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let s=c.useContext(me).matches,a=we().pathname,o=_e(),l=W(t,G(s),a,"path"===i),u=JSON.stringify(l);return c.useEffect(()=>{o(JSON.parse(u),{replace:n,state:r,relative:i})},[o,u,i,n,r]),null}function qe(e){b(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ge(e){let t=e.basename,n=void 0===t?"/":t,r=e.children,i=void 0===r?null:r,s=e.location,a=e.navigationType,o=void 0===a?"POP":a,l=e.navigator,u=e.static,h=void 0!==u&&u,d=e.useTransitions;b(!ye(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=n.replace(/^\/*/,"/"),p=c.useMemo(()=>({basename:f,navigator:l,static:h,useTransitions:d,future:{}}),[f,l,h,d]);"string"===typeof s&&(s=C(s));let m=s,g=m.pathname,v=void 0===g?"/":g,y=m.search,w=void 0===y?"":y,_=m.hash,A=void 0===_?"":_,S=m.state,T=void 0===S?null:S,k=m.key,x=void 0===k?"default":k,N=m.mask,I=c.useMemo(()=>{let e=j(v,f);return null==e?null:{location:{pathname:e,search:w,hash:A,state:T,key:x,mask:N},navigationType:o}},[f,v,w,A,T,x,o,N]);return E(null!=I,'<Router basename="'.concat(f,'"> is not able to match the URL "').concat(v).concat(w).concat(A,"\" because it does not start with the basename, so the <Router> won't render anything.")),null==I?null:c.createElement(fe.Provider,{value:p},c.createElement(pe.Provider,{children:i,value:I}))}function We(e){let t=e.children,n=e.location;return Ce(Ke(t),n)}c.Component;function Ke(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];return c.Children.forEach(e,(e,r)=>{if(!c.isValidElement(e))return;let i=[...t,r];if(e.type===c.Fragment)return void n.push.apply(n,Ke(e.props.children,i));b(e.type===qe,"[".concat("string"===typeof e.type?e.type:e.type.name,"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>")),b(!e.props.index||!e.props.children,"An index route cannot have child routes.");let s={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=Ke(e.props.children,i)),n.push(s)}),n}var Qe="get",Ye="application/x-www-form-urlencoded";function $e(e){return"undefined"!==typeof HTMLElement&&e instanceof HTMLElement}function Xe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}var Je=null;var Ze=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function et(e){return null==e||Ze.has(e)?e:(E(!1,'"'.concat(e,'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` and will default to "').concat(Ye,'"')),null)}function tt(e,t){let n,r,i,s,a;if($e(o=e)&&"form"===o.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?j(a,t):null,n=e.getAttribute("method")||Qe,i=et(e.getAttribute("enctype"))||Ye,s=new FormData(e)}else if(function(e){return $e(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return $e(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let o=e.getAttribute("formaction")||a.getAttribute("action");if(r=o?j(o,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Qe,i=et(e.getAttribute("formenctype"))||et(a.getAttribute("enctype"))||Ye,s=new FormData(a,e),!function(){if(null===Je)try{new FormData(document.createElement("form"),0),Je=!1}catch(e){Je=!0}return Je}()){let t=e.name,n=e.type,r=e.value;if("image"===n){let e=t?"".concat(t,"."):"";s.append("".concat(e,"x"),"0"),s.append("".concat(e,"y"),"0")}else t&&s.append(t,r)}}else{if($e(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qe,r=null,i=Ye,a=e}var o;return s&&"text/plain"===i&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function nt(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}Symbol("SingleFetchRedirect");function rt(e,t,n,r){let i="string"===typeof e?new URL(e,"undefined"===typeof window?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname="".concat(i.pathname,"_.").concat(r):i.pathname="".concat(i.pathname,".").concat(r):"/"===i.pathname?i.pathname="_root.".concat(r):t&&"/"===j(i.pathname,t)?i.pathname="".concat(Y(t),"/_root.").concat(r):i.pathname="".concat(Y(i.pathname),".").concat(r),i}async function it(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error("Error loading route module `".concat(e.module,"`, reloading page...")),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function st(e){return null!=e&&"string"===typeof e.page}function at(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"===typeof e.imageSrcSet&&"string"===typeof e.imageSizes:"string"===typeof e.rel&&"string"===typeof e.href)}function ot(e,t,n,r,i,s){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,o=(e,t)=>{var r;return n[t].pathname!==e.pathname||(null===(r=n[t].route.path)||void 0===r?void 0:r.endsWith("*"))&&n[t].params["*"]!==e.params["*"]};return"assets"===s?t.filter((e,t)=>a(e,t)||o(e,t)):"data"===s?t.filter((t,s)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,s)||o(t,s))return!0;if(t.route.shouldRevalidate){var c;let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:(null===(c=n[0])||void 0===c?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"===typeof r)return r}return!0}):[]}function lt(e,t){let n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).includeHydrateFallback;return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1),[...new Set(r)];var r}function ct(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!st(i)&&"script"===i.as&&i.href&&r.has(i.href))return e;let s=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(i));return n.has(s)||(n.add(s),e.push({key:s,link:i})),e},[])}function ut(e,t){return"lazy"===e.mode&&!0===t}function ht(){let e=c.useContext(ae);return nt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function dt(){let e=c.useContext(oe);return nt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ft=c.createContext(void 0);function pt(){let e=c.useContext(ft);return nt(e,"You must render this element inside a <HydratedRouter> element"),e}function mt(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function gt(e,t,n){if(n&&!Et)return[e[0]];if(t){let n=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,n+1)}return e}ft.displayName="FrameworkContext";function vt(e){let t=e.page,n=(0,i.A)(e,h),r=ce(),s=ht().router,a=c.useMemo(()=>x(s.routes,t,s.basename),[s.routes,t,s.basename]);return a?r?c.createElement(wt,(0,l.A)({page:t,matches:a},n)):c.createElement(bt,(0,l.A)({page:t,matches:a},n)):null}function yt(e){let t=pt(),n=t.manifest,r=t.routeModules,i=c.useState([]),s=(0,o.A)(i,2),a=s[0],u=s[1];return c.useEffect(()=>{let t=!1;return async function(e,t,n){return ct((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await it(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(at).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?(0,l.A)((0,l.A)({},e),{},{rel:"prefetch",as:"style"}):(0,l.A)((0,l.A)({},e),{},{rel:"prefetch"})))}(e,n,r).then(e=>{t||u(e)}),()=>{t=!0}},[e,n,r]),a}function wt(e){let t=e.page,n=e.matches,r=(0,i.A)(e,d),s=we(),a=pt().future,o=ht().basename,u=c.useMemo(()=>{if(t===s.pathname+s.search+s.hash)return[];let e=rt(t,o,a.v8_trailingSlashAwareDataRequests,"rsc"),r=!1,i=[];for(let t of n)"function"===typeof t.route.shouldRevalidate?r=!0:i.push(t.route.id);return r&&i.length>0&&e.searchParams.set("_routes",i.join(",")),[e.pathname+e.search]},[o,a.v8_trailingSlashAwareDataRequests,t,s,n]);return c.createElement(c.Fragment,null,u.map(e=>c.createElement("link",(0,l.A)({key:e,rel:"prefetch",as:"fetch",href:e},r))))}function bt(e){let t=e.page,n=e.matches,r=(0,i.A)(e,f),s=we(),a=pt(),o=a.future,u=a.manifest,h=a.routeModules,d=ht().basename,p=dt(),m=p.loaderData,g=p.matches,v=c.useMemo(()=>ot(t,n,g,u,s,"data"),[t,n,g,u,s]),y=c.useMemo(()=>ot(t,n,g,u,s,"assets"),[t,n,g,u,s]),w=c.useMemo(()=>{if(t===s.pathname+s.search+s.hash)return[];let e=new Set,r=!1;if(n.forEach(t=>{var n;let i=u.routes[t.route.id];i&&i.hasLoader&&(!v.some(e=>e.route.id===t.route.id)&&t.route.id in m&&null!==(n=h[t.route.id])&&void 0!==n&&n.shouldRevalidate||i.hasClientLoader?r=!0:e.add(t.route.id))}),0===e.size)return[];let i=rt(t,d,o.v8_trailingSlashAwareDataRequests,"data");return r&&e.size>0&&i.searchParams.set("_routes",n.filter(t=>e.has(t.route.id)).map(e=>e.route.id).join(",")),[i.pathname+i.search]},[d,o.v8_trailingSlashAwareDataRequests,m,s,u,v,n,t,h]),b=c.useMemo(()=>lt(y,u),[y,u]),E=yt(y);return c.createElement(c.Fragment,null,w.map(e=>c.createElement("link",(0,l.A)({key:e,rel:"prefetch",as:"fetch",href:e},r))),b.map(e=>c.createElement("link",(0,l.A)({key:e,rel:"modulepreload",href:e},r))),E.map(e=>{var t;let n=e.key,i=e.link;return c.createElement("link",(0,l.A)((0,l.A)({key:n,nonce:r.nonce},i),{},{crossOrigin:null!==(t=i.crossOrigin)&&void 0!==t?t:r.crossOrigin}))}))}var Et=!1;function _t(e){let t=pt(),n=t.manifest,r=t.serverHandoffString,s=t.isSpaMode,a=t.renderMeta,o=t.routeDiscovery,h=t.ssr,d=ht(),f=d.router,p=d.static,m=d.staticContext,g=dt().matches,v=ce(),y=ut(o,h);a&&(a.didRenderScripts=!0);let w=gt(g,null,s);c.useEffect(()=>{Et=!0},[]);let b=c.useMemo(()=>{var t;if(v)return null;let s=m?"window.__reactRouterContext = ".concat(r,";").concat("window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());"):" ",a=p?"".concat(null!==(t=n.hmr)&&void 0!==t&&t.runtime?"import ".concat(JSON.stringify(n.hmr.runtime),";"):"").concat(y?"":"import ".concat(JSON.stringify(n.url)),";\n").concat(w.map((e,t)=>{let r="route".concat(t),i=n.routes[e.route.id];nt(i,"Route ".concat(e.route.id," not found in manifest"));let s=i.clientActionModule,a=i.clientLoaderModule,o=i.clientMiddlewareModule,l=i.hydrateFallbackModule,c=i.module,u=[...s?[{module:s,varName:"".concat(r,"_clientAction")}]:[],...a?[{module:a,varName:"".concat(r,"_clientLoader")}]:[],...o?[{module:o,varName:"".concat(r,"_clientMiddleware")}]:[],...l?[{module:l,varName:"".concat(r,"_HydrateFallback")}]:[],{module:c,varName:"".concat(r,"_main")}];return 1===u.length?"import * as ".concat(r," from ").concat(JSON.stringify(c),";"):[u.map(e=>"import * as ".concat(e.varName,' from "').concat(e.module,'";')).join("\n"),"const ".concat(r," = {").concat(u.map(e=>"...".concat(e.varName)).join(","),"};")].join("\n")}).join("\n"),"\n  ").concat(y?"window.__reactRouterManifest = ".concat(JSON.stringify(function(e,t){let n=e.sri,r=(0,i.A)(e,u),s=new Set(t.state.matches.map(e=>e.route.id)),a=t.state.location.pathname.split("/").filter(Boolean),o=["/"];for(a.pop();a.length>0;)o.push("/".concat(a.join("/"))),a.pop();o.forEach(e=>{let n=N(t.routes,e,t.basename||"/",!1,t.branches);n&&n.forEach(e=>s.add(e.route.id))});let c=[...s].reduce((e,t)=>Object.assign(e,{[t]:r.routes[t]}),{});return(0,l.A)((0,l.A)({},r),{},{routes:c,sri:!!n||void 0})}(n,f),null,2),";"):"","\n  window.__reactRouterRouteModules = {").concat(w.map((e,t)=>"".concat(JSON.stringify(e.route.id),":route").concat(t)).join(","),"};\n\nimport(").concat(JSON.stringify(n.entry.module),");"):" ";return c.createElement(c.Fragment,null,c.createElement("script",(0,l.A)((0,l.A)({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:s},type:void 0})),c.createElement("script",(0,l.A)((0,l.A)({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:a},type:"module",async:!0})))},[]),E=Et||v?[]:[...new Set(n.entry.imports.concat(lt(w,n,{includeHydrateFallback:!0})))],_="object"===typeof n.sri?n.sri:{};return ze(!v,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Et||v?null:c.createElement(c.Fragment,null,"object"===typeof n.sri?c.createElement("script",(0,l.A)((0,l.A)({},e),{},{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:_})}})):null,y?null:c.createElement("link",{rel:"modulepreload",href:n.url,crossOrigin:e.crossOrigin,integrity:_[n.url],nonce:e.nonce,suppressHydrationWarning:!0}),c.createElement("link",{rel:"modulepreload",href:n.entry.module,crossOrigin:e.crossOrigin,integrity:_[n.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),E.map(t=>c.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:_[t],nonce:e.nonce,suppressHydrationWarning:!0})),b)}function At(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{"function"===typeof t?t(e):null!=t&&(t.current=e)})}}c.Component;function St(e){let t=e.error,n=e.isOutsideRemixApp;console.error(t);let r,i=c.createElement("script",{dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "\ud83d\udcbf Hey developer \ud83d\udc4b. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if(ee(t))return c.createElement(Ct,{title:"Unhandled Thrown Response!"},c.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),i);if(t instanceof Error)r=t;else{let e=null==t?"Unknown Error":"object"===typeof t&&"toString"in t?t.toString():JSON.stringify(t);r=new Error(e)}return c.createElement(Ct,{title:"Application Error!",isOutsideRemixApp:n},c.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),c.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),i)}function Ct(e){var t;let n=e.title,r=e.renderScripts,i=e.isOutsideRemixApp,s=e.children;return null!==(t=pt().routeModules.root)&&void 0!==t&&t.Layout&&!i?s:c.createElement("html",{lang:"en"},c.createElement("head",null,c.createElement("meta",{charSet:"utf-8"}),c.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),c.createElement("title",null,n)),c.createElement("body",null,c.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},s,r?c.createElement(_t,null):null)))}var Tt="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;try{Tt&&(window.__reactRouterVersion="7.17.0")}catch(Ut){}function kt(e){let t=e.basename,n=e.children,r=e.useTransitions,i=e.window,s=c.useRef();null==s.current&&(s.current=w({window:i,v5Compat:!0}));let a=s.current,l=c.useState({action:a.action,location:a.location}),u=(0,o.A)(l,2),h=u[0],d=u[1],f=c.useCallback(e=>{!1===r?d(e):c.startTransition(()=>d(e))},[r]);return c.useLayoutEffect(()=>a.listen(f),[a,f]),c.createElement(Ge,{basename:t,children:n,location:h.location,navigationType:h.action,navigator:a,useTransitions:r})}var xt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nt=c.forwardRef(function(e,t){let n=e.onClick,r=e.discover,s=void 0===r?"render":r,a=e.prefetch,u=void 0===a?"none":a,h=e.relative,d=e.reloadDocument,f=e.replace,m=e.mask,g=e.state,v=e.target,y=e.to,w=e.preventScrollReset,E=e.viewTransition,_=e.defaultShouldRevalidate,A=(0,i.A)(e,p),C=c.useContext(fe),T=C.basename,k=C.navigator,x=C.useTransitions,N="string"===typeof y&&xt.test(y),I=re(y,T);y=I.to;let O=function(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).relative;b(ye(),"useHref() may be used only in the context of a <Router> component.");let n=c.useContext(fe),r=n.basename,i=n.navigator,s=Se(e,{relative:t}),a=s.hash,o=s.pathname,l=s.search,u=o;return"/"!==r&&(u="/"===o?r:Q([r,o])),i.createHref({pathname:u,search:l,hash:a})}(y,{relative:h}),R=we(),P=null;if(m){let e=W(m,[],R.mask?R.mask.pathname:"/",!0);"/"!==T&&(e.pathname="/"===e.pathname?T:Q([T,e.pathname])),P=k.createHref(e)}let D=function(e,t){let n=c.useContext(ft),r=c.useState(!1),i=(0,o.A)(r,2),s=i[0],a=i[1],l=c.useState(!1),u=(0,o.A)(l,2),h=u[0],d=u[1],f=t.onFocus,p=t.onBlur,m=t.onMouseEnter,g=t.onMouseLeave,v=t.onTouchStart,y=c.useRef(null);c.useEffect(()=>{if("render"===e&&d(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{d(e.isIntersecting)})},{threshold:.5});return y.current&&e.observe(y.current),()=>{e.disconnect()}}},[e]),c.useEffect(()=>{if(s){let e=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(e)}}},[s]);let w=()=>{a(!0)},b=()=>{a(!1),d(!1)};return n?"intent"!==e?[h,y,{}]:[h,y,{onFocus:mt(f,w),onBlur:mt(p,b),onMouseEnter:mt(m,w),onMouseLeave:mt(g,b),onTouchStart:mt(v,w)}]:[!1,y,{}]}(u,A),L=(0,o.A)(D,3),M=L[0],U=L[1],V=L[2],F=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.target,r=t.replace,i=t.mask,s=t.state,a=t.preventScrollReset,o=t.relative,l=t.viewTransition,u=t.defaultShouldRevalidate,h=t.useTransitions,d=_e(),f=we(),p=Se(e,{relative:o});return c.useCallback(t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:S(f)===S(p),m=()=>d(e,{replace:n,mask:i,state:s,preventScrollReset:a,relative:o,viewTransition:l,defaultShouldRevalidate:u});h?c.startTransition(()=>m()):m()}},[f,d,p,r,i,s,n,e,a,o,l,u,h])}(y,{replace:f,mask:m,state:g,target:v,preventScrollReset:w,relative:h,viewTransition:E,defaultShouldRevalidate:_,useTransitions:x});let j=!(I.isExternal||d),z=c.createElement("a",(0,l.A)((0,l.A)((0,l.A)({},A),V),{},{href:(j?P:void 0)||I.absoluteURL||O,onClick:j?function(e){n&&n(e),e.defaultPrevented||F(e)}:n,ref:At(t,U),target:v,"data-discover":N||"render"!==s?void 0:"true"}));return M&&!N?c.createElement(c.Fragment,null,z,c.createElement(vt,{page:O})):z});Nt.displayName="Link";var It=c.forwardRef(function(e,t){let n=e["aria-current"],r=void 0===n?"page":n,s=e.caseSensitive,a=void 0!==s&&s,o=e.className,u=void 0===o?"":o,h=e.end,d=void 0!==h&&h,f=e.style,p=e.to,g=e.viewTransition,v=e.children,y=(0,i.A)(e,m),w=Se(p,{relative:y.relative}),E=we(),_=c.useContext(oe),A=c.useContext(fe),S=A.navigator,C=A.basename,T=null!=_&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relative,r=c.useContext(ue);b(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let i=Pt("useViewTransitionState").basename,s=Se(e,{relative:n});if(!r.isTransitioning)return!1;let a=j(r.currentLocation.pathname,i)||r.currentLocation.pathname,o=j(r.nextLocation.pathname,i)||r.nextLocation.pathname;return null!=U(s.pathname,o)||null!=U(s.pathname,a)}(w)&&!0===g,k=S.encodeLocation?S.encodeLocation(w).pathname:w.pathname,x=E.pathname,N=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;a||(x=x.toLowerCase(),N=N?N.toLowerCase():null,k=k.toLowerCase()),N&&C&&(N=j(N,C)||N);const I="/"!==k&&k.endsWith("/")?k.length-1:k.length;let O,R=x===k||!d&&x.startsWith(k)&&"/"===x.charAt(I),P=null!=N&&(N===k||!d&&N.startsWith(k)&&"/"===N.charAt(k.length)),D={isActive:R,isPending:P,isTransitioning:T},L=R?r:void 0;O="function"===typeof u?u(D):[u,R?"active":null,P?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let M="function"===typeof f?f(D):f;return c.createElement(Nt,(0,l.A)((0,l.A)({},y),{},{"aria-current":L,className:O,ref:t,style:M,to:p,viewTransition:g}),"function"===typeof v?v(D):v)});It.displayName="NavLink";var Ot=c.forwardRef((e,t)=>{let n=e.discover,r=void 0===n?"render":n,s=e.fetcherKey,a=e.navigate,u=e.reloadDocument,h=e.replace,d=e.state,f=e.method,p=void 0===f?Qe:f,m=e.action,v=e.onSubmit,y=e.relative,w=e.preventScrollReset,E=e.viewTransition,_=e.defaultShouldRevalidate,A=(0,i.A)(e,g),C=c.useContext(fe).useTransitions,T=Mt(),k=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relative,r=c.useContext(fe).basename,i=c.useContext(me);b(i,"useFormAction must be used inside a RouteContext");let s=i.matches.slice(-1),a=(0,o.A)(s,1)[0],u=(0,l.A)({},Se(e||".",{relative:n})),h=we();if(null==e){u.search=h.search;let e=new URLSearchParams(u.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();u.search=n?"?".concat(n):""}}e&&"."!==e||!a.route.index||(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index");"/"!==r&&(u.pathname="/"===u.pathname?r:Q([r,u.pathname]));return S(u)}(m,{relative:y}),x="get"===p.toLowerCase()?"get":"post",N="string"===typeof m&&xt.test(m);return c.createElement("form",(0,l.A)((0,l.A)({ref:t,method:x,action:k,onSubmit:u?v:e=>{if(v&&v(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(null===t||void 0===t?void 0:t.getAttribute("formmethod"))||p,r=()=>T(t||e.currentTarget,{fetcherKey:s,method:n,navigate:a,replace:h,state:d,relative:y,preventScrollReset:w,viewTransition:E,defaultShouldRevalidate:_});C&&!1!==a?c.startTransition(()=>r()):r()}},A),{},{"data-discover":N||"render"!==r?void 0:"true"}))});function Rt(e){return"".concat(e," must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.")}function Pt(e){let t=c.useContext(ae);return b(t,Rt(e)),t}function Dt(e){E("undefined"!==typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=c.useRef(Xe(e)),n=c.useRef(!1),r=we(),i=c.useMemo(()=>function(e,t){let n=Xe(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(r.search,n.current?null:t.current),[r.search]),s=_e(),a=c.useCallback((e,t)=>{const r=Xe("function"===typeof e?e(new URLSearchParams(i)):e);n.current=!0,s("?"+r,t)},[s,i]);return[i,a]}Ot.displayName="Form";var Lt=0;function Mt(){let e=Pt("useSubmit").router,t=c.useContext(fe).basename,n=Me("useRouteId"),r=e.fetch,i=e.navigate;return c.useCallback(async function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=tt(e,t),o=a.action,l=a.method,c=a.encType,u=a.formData,h=a.body;if(!1===s.navigate){let e=s.fetcherKey||"__".concat(String(++Lt),"__");await r(e,n,s.action||o,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:h,formMethod:s.method||l,formEncType:s.encType||c,flushSync:s.flushSync})}else await i(s.action||o,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:h,formMethod:s.method||l,formEncType:s.encType||c,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,i,t,n])}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r].call(s.exports,s,s.exports,n),s.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var s=Object.create(null);n.r(s);var a={};e=e||[null,t({}),t([]),t(t)];for(var o=2&i&&r;("object"==typeof o||"function"==typeof o)&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,n.d(s,a),s}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,r)=>(n.f[r](e,t),t),[])),n.u=e=>"static/js/"+e+"."+{79:"59144f2c",91:"2ba986da",147:"42941a24",181:"e8c5933d",199:"9afd75e2",273:"7bfed940",291:"944f3763",296:"8d9e2590",345:"f497b968",380:"f744a77f",431:"0d8a0a94",443:"8db39b1a",444:"bad99514",451:"39577ad3",576:"57b9a3f0",584:"26e83798",595:"73e54cc9",647:"0516915a",670:"482a912b",701:"5b92b508",705:"fc9a8e2a",738:"fe6568b1",770:"e0443eb3",832:"6e8ba9e6",907:"cc74a08d",994:"81b9e03e"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{147:"bb83b48f",994:"c08d4578"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="new_site:";n.l=(r,i,s,a)=>{if(e[r])e[r].push(i);else{var o,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var h=c[u];if(h.getAttribute("src")==r||h.getAttribute("data-webpack")==t+s){o=h;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",n.nc&&o.setAttribute("nonce",n.nc),o.setAttribute("data-webpack",t+s),o.src=r),e[r]=[i];var d=(t,n)=>{o.onerror=o.onload=null,clearTimeout(f);var i=e[r];if(delete e[r],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach(e=>e(n)),t)return t(n)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),l&&document.head.appendChild(o)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},n.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise((t,r)=>{var i=n.miniCssF(e),s=n.p+i;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var s=document.getElementsByTagName("style");for(r=0;r<s.length;r++){var a;if((i=(a=s[r]).getAttribute("data-href"))===e||i===t)return a}})(i,s))return t();((e,t,r,i,s)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)i();else{var r=n&&n.type,o=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+o+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=o,a.parentNode&&a.parentNode.removeChild(a),s(l)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,s,null,t,r)}),t={792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{147:1,994:1}[n]&&r.push(t[n]=e(n).then(()=>{t[n]=0},e=>{throw delete t[n],e}))}}})(),(()=>{var e={792:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var s=new Promise((n,r)=>i=e[t]=[n,r]);r.push(i[2]=s);var a=n.p+n.u(t),o=new Error;n.l(a,r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var s=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;o.message="Loading chunk "+t+" failed.\n("+s+": "+a+")",o.name="ChunkLoadError",o.type=s,o.request=a,i[1](o)}},"chunk-"+t,t)}};var t=(t,r)=>{var i,s,[a,o,l]=r,c=0;if(a.some(t=>0!==e[t])){for(i in o)n.o(o,i)&&(n.m[i]=o[i]);if(l)l(n)}for(t&&t(r);c<a.length;c++)s=a[c],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0},r=self.webpackChunknew_site=self.webpackChunknew_site||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(5043),t=n(4391);var r=n(5544);var i=n(6322),s=n(3519),a=n(1719),o=n(7417),l=n(5016),c=n(579);const u=e.lazy(()=>n.e(738).then(n.bind(n,4738))),h=e.lazy(()=>Promise.all([n.e(595),n.e(444),n.e(994),n.e(907),n.e(443)]).then(n.bind(n,6443))),d=e.lazy(()=>Promise.all([n.e(595),n.e(444),n.e(994),n.e(701)]).then(n.bind(n,6701))),f=e.lazy(()=>Promise.all([n.e(770),n.e(91)]).then(n.bind(n,3091))),p=e.lazy(()=>Promise.all([n.e(770),n.e(595),n.e(444),n.e(994),n.e(451),n.e(181)]).then(n.bind(n,1760))),m=e.lazy(()=>n.e(79).then(n.bind(n,9079))),g=e.lazy(()=>Promise.all([n.e(770),n.e(451),n.e(647)]).then(n.bind(n,1749))),v=e.lazy(()=>Promise.all([n.e(770),n.e(595),n.e(670),n.e(451),n.e(705)]).then(n.bind(n,8705))),y=e.lazy(()=>Promise.all([n.e(770),n.e(345),n.e(584)]).then(n.bind(n,7584))),w=e.lazy(()=>n.e(273).then(n.bind(n,3273))),b=e.lazy(()=>Promise.all([n.e(770),n.e(291)]).then(n.bind(n,8048))),E=e.lazy(()=>n.e(296).then(n.bind(n,2296))),_=e.lazy(()=>Promise.all([n.e(770),n.e(380)]).then(n.bind(n,9380))),A=e.lazy(()=>Promise.all([n.e(770),n.e(431)]).then(n.bind(n,6508)));function S(e){let t=e.children;const n=(0,l.A)(),r=n.user,s=n.loading,a=(0,i.zy)();return s?null:r?t:(0,c.jsx)(i.C5,{to:"/login?redirect="+encodeURIComponent(a.pathname)})}function C(e){let t=e.children;const n=(0,l.A)(),r=n.user,o=n.loading,u=(0,i.zy)();return o?null:r?r.emailVerified?t:(0,c.jsx)(s.A,{className:"py-5 text-center",style:{maxWidth:500},children:(0,c.jsxs)(a.A,{variant:"warning",children:[(0,c.jsx)(a.A.Heading,{children:"Email not verified"}),(0,c.jsx)("p",{className:"mb-0 small",children:"Please verify your email before accessing the score editor. Check your inbox for a verification link."})]})}):(0,c.jsx)(i.C5,{to:"/login?redirect="+encodeURIComponent(u.pathname)})}function T(e){let t=e.children;const n=(0,l.A)(),r=n.user,s=n.profile,a=n.loading,o=(0,i.zy)();return a?null:r?"moderator"!==(null===s||void 0===s?void 0:s.role)?(0,c.jsx)(i.C5,{to:"/"}):t:(0,c.jsx)(i.C5,{to:"/login?redirect="+encodeURIComponent(o.pathname)})}function k(){return(0,c.jsx)(s.A,{className:"text-center py-5",children:(0,c.jsx)(o.A,{animation:"border",variant:"light"})})}function x(){return(0,c.jsx)(s.A,{fluid:!0,className:(window.findProp("pages.home.secondaryStyle")||"")+" m-1",children:(0,c.jsx)(e.Suspense,{fallback:(0,c.jsx)(k,{}),children:(0,c.jsxs)(i.BV,{children:[(0,c.jsx)(i.qh,{path:"/",element:(0,c.jsx)(u,{})}),(0,c.jsx)(i.qh,{path:"/contents",element:(0,c.jsx)(f,{})}),(0,c.jsx)(i.qh,{path:"/contents/:type",element:(0,c.jsx)(f,{})}),(0,c.jsx)(i.qh,{path:"/content/:username/:instrument/:titleSlug",element:(0,c.jsx)(p,{})}),(0,c.jsx)(i.qh,{path:"/content/:contentId",element:(0,c.jsx)(p,{})}),(0,c.jsx)(i.qh,{path:"/projects",element:(0,c.jsx)(h,{})}),(0,c.jsx)(i.qh,{path:"/tab-demo",element:(0,c.jsx)(g,{})}),(0,c.jsx)(i.qh,{path:"/tab-parser",element:(0,c.jsx)(C,{children:(0,c.jsx)(v,{})})}),(0,c.jsx)(i.qh,{path:"/component/:componentId",element:(0,c.jsx)(m,{})}),(0,c.jsx)(i.qh,{path:"/analytics",element:(0,c.jsx)(w,{})}),(0,c.jsx)(i.qh,{path:"/about",element:(0,c.jsx)(d,{})}),(0,c.jsx)(i.qh,{path:"/login",element:(0,c.jsx)(y,{})}),(0,c.jsx)(i.qh,{path:"/setup-username",element:(0,c.jsx)(S,{children:(0,c.jsx)(b,{})})}),(0,c.jsx)(i.qh,{path:"/profile/:identifier",element:(0,c.jsx)(E,{})}),(0,c.jsx)(i.qh,{path:"/profile/edit",element:(0,c.jsx)(S,{children:(0,c.jsx)(_,{})})}),(0,c.jsx)(i.qh,{path:"/moderate",element:(0,c.jsx)(T,{children:(0,c.jsx)(A,{})})})]})})})}var N=n(9379),I=n(45),O=n(8139),R=n.n(O);const P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null!=e?String(e):t||null},D=e.createContext(null);var L=n(1969),M=n(7852);const U=["bsPrefix","className","as"],V=e.forwardRef((e,t)=>{let n=e.bsPrefix,r=e.className,i=e.as,s=(0,I.A)(e,U);n=(0,M.oU)(n,"navbar-brand");const a=i||(s.href?"a":"span");return(0,c.jsx)(a,(0,N.A)((0,N.A)({},s),{},{ref:t,className:R()(r,n)}))});V.displayName="NavbarBrand";const F=V;var j=n(8747),z=n(8062),B=n(9791),H=n(3492);const q=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(e=>null!=e).reduce((e,t)=>{if("function"!==typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}},null)};var G=n(2643),W=n(865);const K=["onEnter","onEntering","onEntered","onExit","onExiting","className","children","dimension","in","timeout","mountOnEnter","unmountOnExit","appear","getDimensionValue"],Q={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Y(e,t){const n=t["offset".concat(e[0].toUpperCase()).concat(e.slice(1))],r=Q[e];return n+parseInt((0,j.A)(t,r[0]),10)+parseInt((0,j.A)(t,r[1]),10)}const $={[z.kp]:"collapse",[z.ze]:"collapsing",[z.ns]:"collapsing",[z._K]:"collapse show"},X=e.forwardRef((t,n)=>{let r=t.onEnter,i=t.onEntering,s=t.onEntered,a=t.onExit,o=t.onExiting,l=t.className,u=t.children,h=t.dimension,d=void 0===h?"height":h,f=t.in,p=void 0!==f&&f,m=t.timeout,g=void 0===m?300:m,v=t.mountOnEnter,y=void 0!==v&&v,w=t.unmountOnExit,b=void 0!==w&&w,E=t.appear,_=void 0!==E&&E,A=t.getDimensionValue,S=void 0===A?Y:A,C=(0,I.A)(t,K);const T="function"===typeof d?d():d,k=(0,e.useMemo)(()=>q(e=>{e.style[T]="0"},r),[T,r]),x=(0,e.useMemo)(()=>q(e=>{const t="scroll".concat(T[0].toUpperCase()).concat(T.slice(1));e.style[T]="".concat(e[t],"px")},i),[T,i]),O=(0,e.useMemo)(()=>q(e=>{e.style[T]=null},s),[T,s]),P=(0,e.useMemo)(()=>q(e=>{e.style[T]="".concat(S(T,e),"px"),(0,G.A)(e)},a),[a,S,T]),D=(0,e.useMemo)(()=>q(e=>{e.style[T]=null},o),[T,o]);return(0,c.jsx)(W.A,(0,N.A)((0,N.A)({ref:n,addEndListener:H.A},C),{},{"aria-expanded":C.role?p:null,onEnter:k,onEntering:x,onEntered:O,onExit:P,onExiting:D,childRef:(0,B.am)(u),in:p,timeout:g,mountOnEnter:y,unmountOnExit:b,appear:_,children:(t,n)=>e.cloneElement(u,(0,N.A)((0,N.A)({},n),{},{className:R()(l,u.props.className,$[t],"width"===T&&"collapse-horizontal")}))}))});X.displayName="Collapse";const J=X,Z=e.createContext(null);Z.displayName="NavbarContext";const ee=Z,te=["children","bsPrefix"],ne=e.forwardRef((t,n)=>{let r=t.children,i=t.bsPrefix,s=(0,I.A)(t,te);i=(0,M.oU)(i,"navbar-collapse");const a=(0,e.useContext)(ee);return(0,c.jsx)(J,(0,N.A)((0,N.A)({in:!(!a||!a.expanded)},s),{},{children:(0,c.jsx)("div",{ref:n,className:i,children:r})}))});ne.displayName="NavbarCollapse";const re=ne;var ie=n(6618);const se=["bsPrefix","className","children","label","as","onClick"],ae=e.forwardRef((t,n)=>{let r=t.bsPrefix,i=t.className,s=t.children,a=t.label,o=void 0===a?"Toggle navigation":a,l=t.as,u=void 0===l?"button":l,h=t.onClick,d=(0,I.A)(t,se);r=(0,M.oU)(r,"navbar-toggler");const f=(0,e.useContext)(ee)||{},p=f.onToggle,m=f.expanded,g=(0,ie.A)(e=>{h&&h(e),p&&p()});return"button"===u&&(d.type="button"),(0,c.jsx)(u,(0,N.A)((0,N.A)({},d),{},{ref:n,onClick:g,"aria-label":o,className:R()(i,r,!m&&"collapsed"),children:s||(0,c.jsx)("span",{className:"".concat(r,"-icon")})}))});ae.displayName="NavbarToggle";const oe=ae,le="undefined"!==typeof n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,ce="undefined"!==typeof document||le?e.useLayoutEffect:e.useEffect,ue=new WeakMap,he=(e,t)=>{if(!e||!t)return;const n=ue.get(t)||new Map;ue.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function de(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"undefined"===typeof window?void 0:window;const i=he(t,n),s=(0,e.useState)(()=>!!i&&i.matches),a=(0,r.A)(s,2),o=a[0],l=a[1];return ce(()=>{let e=he(t,n);if(!e)return l(!1);let r=ue.get(n);const i=()=>{l(e.matches)};return e.refCount++,e.addListener(i),i(),()=>{e.removeListener(i),e.refCount--,e.refCount<=0&&(null==r||r.delete(e.media)),e=void 0}},[t]),o}const fe=function(t){const n=Object.keys(t);function i(e,t){return e===t?t:e?"".concat(e," and ").concat(t):t}function s(e){const r=function(e){return n[Math.min(n.indexOf(e)+1,n.length-1)]}(e);let i=t[r];return i="number"===typeof i?"".concat(i-.2,"px"):"calc(".concat(i," - 0.2px)"),"(max-width: ".concat(i,")")}return function(n,a,o){let l;return"object"===typeof n?(l=n,o=a,a=!0):(a=a||!0,l={[n]:a}),de((0,e.useMemo)(()=>Object.entries(l).reduce((e,n)=>{let a=(0,r.A)(n,2),o=a[0],l=a[1];return"up"!==l&&!0!==l||(e=i(e,function(e){let n=t[e];return"number"===typeof n&&(n="".concat(n,"px")),"(min-width: ".concat(n,")")}(o))),"down"!==l&&!0!==l||(e=i(e,s(o))),e},""),[JSON.stringify(l)]),o)}}({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400});var pe=n(3655),me=n(8072);const ge=["className","bsPrefix","as"],ve=e.forwardRef((e,t)=>{let n=e.className,r=e.bsPrefix,i=e.as,s=void 0===i?"div":i,a=(0,I.A)(e,ge);return r=(0,M.oU)(r,"offcanvas-body"),(0,c.jsx)(s,(0,N.A)({ref:t,className:R()(n,r)},a))});ve.displayName="OffcanvasBody";const ye=ve,we=["bsPrefix","className","children","in","mountOnEnter","unmountOnExit","appear"],be={[z.ns]:"show",[z._K]:"show"},Ee=e.forwardRef((t,n)=>{let r=t.bsPrefix,i=t.className,s=t.children,a=t.in,o=void 0!==a&&a,l=t.mountOnEnter,u=void 0!==l&&l,h=t.unmountOnExit,d=void 0!==h&&h,f=t.appear,p=void 0!==f&&f,m=(0,I.A)(t,we);return r=(0,M.oU)(r,"offcanvas"),(0,c.jsx)(W.A,(0,N.A)((0,N.A)({ref:n,addEndListener:H.A,in:o,mountOnEnter:u,unmountOnExit:d,appear:p},m),{},{childRef:(0,B.am)(s),children:(t,n)=>e.cloneElement(s,(0,N.A)((0,N.A)({},n),{},{className:R()(i,s.props.className,(t===z.ns||t===z.ze)&&"".concat(r,"-toggling"),be[t])}))}))});Ee.displayName="OffcanvasToggling";const _e=Ee;var Ae=n(1602),Se=n(2258);const Ce=["bsPrefix","className","closeLabel","closeButton"],Te=e.forwardRef((e,t)=>{let n=e.bsPrefix,r=e.className,i=e.closeLabel,s=void 0===i?"Close":i,a=e.closeButton,o=void 0!==a&&a,l=(0,I.A)(e,Ce);return n=(0,M.oU)(n,"offcanvas-header"),(0,c.jsx)(Se.A,(0,N.A)((0,N.A)({ref:t},l),{},{className:R()(r,n),closeLabel:s,closeButton:o}))});Te.displayName="OffcanvasHeader";const ke=Te;var xe=n(4488);const Ne=["className","bsPrefix","as"],Ie=(0,xe.A)("h5"),Oe=e.forwardRef((e,t)=>{let n=e.className,r=e.bsPrefix,i=e.as,s=void 0===i?Ie:i,a=(0,I.A)(e,Ne);return r=(0,M.oU)(r,"offcanvas-title"),(0,c.jsx)(s,(0,N.A)({ref:t,className:R()(n,r)},a))});Oe.displayName="OffcanvasTitle";const Re=Oe;var Pe=n(5675);const De=["bsPrefix","className","children","aria-labelledby","placement","responsive","show","backdrop","keyboard","scroll","onEscapeKeyDown","onShow","onHide","container","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","onEntered","onExit","onExiting","onEnter","onEntering","onExited","backdropClassName","manager","renderStaticNode"];function Le(e){return(0,c.jsx)(_e,(0,N.A)({},e))}function Me(e){return(0,c.jsx)(me.A,(0,N.A)({},e))}const Ue=e.forwardRef((t,n)=>{let i=t.bsPrefix,s=t.className,a=t.children,o=t["aria-labelledby"],l=t.placement,u=void 0===l?"start":l,h=t.responsive,d=t.show,f=void 0!==d&&d,p=t.backdrop,m=void 0===p||p,g=t.keyboard,v=void 0===g||g,y=t.scroll,w=void 0!==y&&y,b=t.onEscapeKeyDown,E=t.onShow,_=t.onHide,A=t.container,S=t.autoFocus,C=void 0===S||S,T=t.enforceFocus,k=void 0===T||T,x=t.restoreFocus,O=void 0===x||x,P=t.restoreFocusOptions,D=t.onEntered,L=t.onExit,U=t.onExiting,V=t.onEnter,F=t.onEntering,j=t.onExited,z=t.backdropClassName,B=t.manager,H=t.renderStaticNode,q=void 0!==H&&H,G=(0,I.A)(t,De);const W=(0,e.useRef)();i=(0,M.oU)(i,"offcanvas");const K=(0,e.useState)(!1),Q=(0,r.A)(K,2),Y=Q[0],$=Q[1],X=(0,ie.A)(_),J=fe(h||"xs","up");(0,e.useEffect)(()=>{$(h?f&&!J:f)},[f,h,J]);const Z=(0,e.useMemo)(()=>({onHide:X}),[X]);const ee=(0,e.useCallback)(e=>(0,c.jsx)("div",(0,N.A)((0,N.A)({},e),{},{className:R()("".concat(i,"-backdrop"),z)})),[z,i]),te=e=>(0,c.jsx)("div",(0,N.A)((0,N.A)((0,N.A)({},e),G),{},{className:R()(s,h?"".concat(i,"-").concat(h):i,"".concat(i,"-").concat(u)),"aria-labelledby":o,children:a}));return(0,c.jsxs)(c.Fragment,{children:[!Y&&(h||q)&&te({}),(0,c.jsx)(Ae.A.Provider,{value:Z,children:(0,c.jsx)(pe.A,{show:Y,ref:n,backdrop:m,container:A,keyboard:v,autoFocus:C,enforceFocus:k&&!w,restoreFocus:O,restoreFocusOptions:P,onEscapeKeyDown:b,onShow:E,onHide:X,onEnter:function(e){e&&(e.style.visibility="visible");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];null==V||V(e,...n)},onEntering:F,onEntered:D,onExit:L,onExiting:U,onExited:function(e){e&&(e.style.visibility="");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];null==j||j(...n)},manager:B||(w?(W.current||(W.current=new Pe.A({handleContainerOverflow:!1})),W.current):(0,Pe.R)()),transition:Le,backdropTransition:Me,renderBackdrop:ee,renderDialog:te})})]})});Ue.displayName="Offcanvas";const Ve=Object.assign(Ue,{Body:ye,Header:ke,Title:Re}),Fe=["onHide"],je=e.forwardRef((t,n)=>{let r=t.onHide,i=(0,I.A)(t,Fe);const s=(0,e.useContext)(ee),a=(0,ie.A)(()=>{null==s||null==s.onToggle||s.onToggle(),null==r||r()});return(0,c.jsx)(Ve,(0,N.A)((0,N.A)({ref:n,show:!(null==s||!s.expanded)},i),{},{renderStaticNode:!0,onHide:a}))});je.displayName="NavbarOffcanvas";const ze=je,Be=["className","bsPrefix","as"],He=e.forwardRef((e,t)=>{let n=e.className,r=e.bsPrefix,i=e.as,s=void 0===i?"span":i,a=(0,I.A)(e,Be);return r=(0,M.oU)(r,"navbar-text"),(0,c.jsx)(s,(0,N.A)({ref:t,className:R()(n,r)},a))});He.displayName="NavbarText";const qe=He,Ge=["bsPrefix","expand","variant","bg","fixed","sticky","className","as","expanded","onToggle","onSelect","collapseOnSelect"],We=e.forwardRef((t,n)=>{const r=(0,L.Zw)(t,{expanded:"onToggle"}),i=r.bsPrefix,s=r.expand,a=void 0===s||s,o=r.variant,l=void 0===o?"light":o,u=r.bg,h=r.fixed,d=r.sticky,f=r.className,p=r.as,m=void 0===p?"nav":p,g=r.expanded,v=r.onToggle,y=r.onSelect,w=r.collapseOnSelect,b=void 0!==w&&w,E=(0,I.A)(r,Ge),_=(0,M.oU)(i,"navbar"),A=(0,e.useCallback)(function(){null==y||y(...arguments),b&&g&&(null==v||v(!1))},[y,b,g,v]);void 0===E.role&&"nav"!==m&&(E.role="navigation");let S="".concat(_,"-expand");"string"===typeof a&&(S="".concat(S,"-").concat(a));const C=(0,e.useMemo)(()=>({onToggle:()=>null==v?void 0:v(!g),bsPrefix:_,expanded:!!g,expand:a}),[_,g,a,v]);return(0,c.jsx)(ee.Provider,{value:C,children:(0,c.jsx)(D.Provider,{value:A,children:(0,c.jsx)(m,(0,N.A)((0,N.A)({ref:n},E),{},{className:R()(f,_,a&&S,l&&"".concat(_,"-").concat(l),u&&"bg-".concat(u),d&&"sticky-".concat(d),h&&"fixed-".concat(h))}))})})});We.displayName="Navbar";const Ke=Object.assign(We,{Brand:F,Collapse:re,Offcanvas:ze,Text:qe,Toggle:oe});var Qe=n(3818);function Ye(){const t=(0,e.useReducer)(e=>e+1,0);return(0,r.A)(t,2)[1]}var $e=n(3539);const Xe=e.createContext(null);Xe.displayName="NavContext";const Je=Xe,Ze=e.createContext(null);var et=n(5425),tt=n(8894),nt=n(4140);const rt=["as","active","eventKey"];function it(t){let n=t.key,r=t.onClick,i=t.active,s=t.id,a=t.role,o=t.disabled;const l=(0,e.useContext)(D),c=(0,e.useContext)(Je),u=(0,e.useContext)(Ze);let h=i;const d={role:a};if(c){a||"tablist"!==c.role||(d.role="tab");const e=c.getControllerId(null!=n?n:null),t=c.getControlledId(null!=n?n:null);d[(0,et.sE)("event-key")]=n,d.id=e||s,h=null==i&&null!=n?c.activeKey===n:i,!h&&(null!=u&&u.unmountOnExit||null!=u&&u.mountOnEnter)||(d["aria-controls"]=t)}return"tab"===d.role&&(d["aria-selected"]=h,h||(d.tabIndex=-1),o&&(d.tabIndex=-1,d["aria-disabled"]=!0)),d.onClick=(0,tt.A)(e=>{o||(null==r||r(e),null!=n&&l&&!e.isPropagationStopped()&&l(n,e))}),[d,{isActive:h}]}const st=e.forwardRef((e,t)=>{let n=e.as,i=void 0===n?nt.Ay:n,s=e.active,a=e.eventKey,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,rt);const l=it(Object.assign({key:P(a,o.href),active:s},o)),u=(0,r.A)(l,2),h=u[0],d=u[1];return h[(0,et.sE)("active")]=d.isActive,(0,c.jsx)(i,Object.assign({},o,h,{ref:t}))});st.displayName="NavItem";const at=st,ot=["as","onSelect","activeKey","role","onKeyDown"];const lt=()=>{},ct=(0,et.sE)("event-key"),ut=e.forwardRef((t,n)=>{let r=t.as,i=void 0===r?"div":r,s=t.onSelect,a=t.activeKey,o=t.role,l=t.onKeyDown,u=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(t,ot);const h=Ye(),d=(0,e.useRef)(!1),f=(0,e.useContext)(D),p=(0,e.useContext)(Ze);let m,g;p&&(o=o||"tablist",a=p.activeKey,m=p.getControlledId,g=p.getControllerId);const v=(0,e.useRef)(null),y=e=>{const t=v.current;if(!t)return null;const n=(0,Qe.A)(t,"[".concat(ct,"]:not([aria-disabled=true])")),r=t.querySelector("[aria-selected=true]");if(!r||r!==document.activeElement)return null;const i=n.indexOf(r);if(-1===i)return null;let s=i+e;return s>=n.length&&(s=0),s<0&&(s=n.length-1),n[s]},w=(e,t)=>{null!=e&&(null==s||s(e,t),null==f||f(e,t))};(0,e.useEffect)(()=>{if(v.current&&d.current){const e=v.current.querySelector("[".concat(ct,"][aria-selected=true]"));null==e||e.focus()}d.current=!1});const b=(0,$e.A)(n,v);return(0,c.jsx)(D.Provider,{value:w,children:(0,c.jsx)(Je.Provider,{value:{role:o,activeKey:P(a),getControlledId:m||lt,getControllerId:g||lt},children:(0,c.jsx)(i,Object.assign({},u,{onKeyDown:e=>{if(null==l||l(e),!p)return;let t;switch(e.key){case"ArrowLeft":case"ArrowUp":t=y(-1);break;case"ArrowRight":case"ArrowDown":t=y(1);break;default:return}t&&(e.preventDefault(),w(t.dataset[(0,et.y)("EventKey")]||null,e),d.current=!0,h())},ref:b,role:o}))})})});ut.displayName="Nav";const ht=Object.assign(ut,{Item:at});var dt=n(1778);const ft=["className","bsPrefix","as"],pt=e.forwardRef((e,t)=>{let n=e.className,r=e.bsPrefix,i=e.as,s=void 0===i?"div":i,a=(0,I.A)(e,ft);return r=(0,M.oU)(r,"nav-item"),(0,c.jsx)(s,(0,N.A)({ref:t,className:R()(n,r)},a))});pt.displayName="NavItem";const mt=pt;var gt=n(7071);const vt=["bsPrefix","className","as","active","eventKey","disabled"],yt=e.forwardRef((e,t)=>{let n=e.bsPrefix,i=e.className,s=e.as,a=void 0===s?gt.A:s,o=e.active,l=e.eventKey,u=e.disabled,h=void 0!==u&&u,d=(0,I.A)(e,vt);n=(0,M.oU)(n,"nav-link");const f=it((0,N.A)({key:P(l,d.href),active:o,disabled:h},d)),p=(0,r.A)(f,2),m=p[0],g=p[1];return(0,c.jsx)(a,(0,N.A)((0,N.A)((0,N.A)({},d),m),{},{ref:t,disabled:h,className:R()(i,n,h&&"disabled",g.isActive&&"active")}))});yt.displayName="NavLink";const wt=yt,bt=["as","bsPrefix","variant","fill","justify","navbar","navbarScroll","className","activeKey"],Et=e.forwardRef((t,n)=>{const r=(0,L.Zw)(t,{activeKey:"onSelect"}),i=r.as,s=void 0===i?"div":i,a=r.bsPrefix,o=r.variant,l=r.fill,u=void 0!==l&&l,h=r.justify,d=void 0!==h&&h,f=r.navbar,p=r.navbarScroll,m=r.className,g=r.activeKey,v=(0,I.A)(r,bt),y=(0,M.oU)(a,"nav");let w,b,E=!1;const _=(0,e.useContext)(ee),A=(0,e.useContext)(dt.A);return _?(w=_.bsPrefix,E=null==f||f):A&&(b=A.cardHeaderBsPrefix),(0,c.jsx)(ht,(0,N.A)({as:s,ref:n,activeKey:g,className:R()(m,{[y]:!E,["".concat(w,"-nav")]:E,["".concat(w,"-nav-scroll")]:E&&p,["".concat(b,"-").concat(o)]:!!b,["".concat(y,"-").concat(o)]:!!o,["".concat(y,"-fill")]:u,["".concat(y,"-justified")]:d})},v))});Et.displayName="Nav";const _t=Object.assign(Et,{Item:mt,Link:wt});var At=n(3043),St=n(3145);function Ct(t,n,i){const s=(0,e.useRef)(void 0!==t),a=(0,e.useState)(n),o=(0,r.A)(a,2),l=o[0],c=o[1],u=void 0!==t,h=s.current;return s.current=u,!u&&h&&l!==n&&c(n),[u?t:l,(0,e.useCallback)(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t[0],s=(0,St.A)(t).slice(1);let a=null==i?void 0:i(r,...s);return c(r),a},[i])]}var Tt=n(4696),kt=n(9753);const xt=e.createContext(null);var Nt=n(8457),It=Object.prototype.hasOwnProperty;function Ot(e,t,n){for(n of e.keys())if(Rt(n,t))return n}function Rt(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Rt(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((i=r)&&"object"===typeof i&&!(i=Ot(t,i)))return!1;if(!t.has(i))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((i=r[0])&&"object"===typeof i&&!(i=Ot(t,i)))return!1;if(!Rt(r[1],t.get(i)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"===typeof e){for(n in r=0,e){if(It.call(e,n)&&++r&&!It.call(t,n))return!1;if(!(n in t)||!Rt(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!==e&&t!==t}var Pt=n(2665);const Dt=function(t){const n=(0,Pt.A)();return[t[0],(0,e.useCallback)(e=>{if(n())return t[1](e)},[n,t[1]])]};function Lt(e){return e.split("-")[0]}function Mt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ut(e){return e instanceof Mt(e).Element||e instanceof Element}function Vt(e){return e instanceof Mt(e).HTMLElement||e instanceof HTMLElement}function Ft(e){return"undefined"!==typeof ShadowRoot&&(e instanceof Mt(e).ShadowRoot||e instanceof ShadowRoot)}var jt=Math.max,zt=Math.min,Bt=Math.round;function Ht(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qt(){return!/^((?!chrome|android).)*safari/i.test(Ht())}function Gt(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&Vt(e)&&(i=e.offsetWidth>0&&Bt(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Bt(r.height)/e.offsetHeight||1);var a=(Ut(e)?Mt(e):window).visualViewport,o=!qt()&&n,l=(r.left+(o&&a?a.offsetLeft:0))/i,c=(r.top+(o&&a?a.offsetTop:0))/s,u=r.width/i,h=r.height/s;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l,x:l,y:c}}function Wt(e){var t=Gt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Kt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ft(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qt(e){return e?(e.nodeName||"").toLowerCase():null}function Yt(e){return Mt(e).getComputedStyle(e)}function $t(e){return["table","td","th"].indexOf(Qt(e))>=0}function Xt(e){return((Ut(e)?e.ownerDocument:e.document)||window.document).documentElement}function Jt(e){return"html"===Qt(e)?e:e.assignedSlot||e.parentNode||(Ft(e)?e.host:null)||Xt(e)}function Zt(e){return Vt(e)&&"fixed"!==Yt(e).position?e.offsetParent:null}function en(e){for(var t=Mt(e),n=Zt(e);n&&$t(n)&&"static"===Yt(n).position;)n=Zt(n);return n&&("html"===Qt(n)||"body"===Qt(n)&&"static"===Yt(n).position)?t:n||function(e){var t=/firefox/i.test(Ht());if(/Trident/i.test(Ht())&&Vt(e)&&"fixed"===Yt(e).position)return null;var n=Jt(e);for(Ft(n)&&(n=n.host);Vt(n)&&["html","body"].indexOf(Qt(n))<0;){var r=Yt(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function tn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nn(e,t,n){return jt(e,zt(t,n))}function rn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function sn(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var an="top",on="bottom",ln="right",cn="left",un="auto",hn=[an,on,ln,cn],dn="start",fn="end",pn="viewport",mn="popper",gn=hn.reduce(function(e,t){return e.concat([t+"-"+dn,t+"-"+fn])},[]),vn=[].concat(hn,[un]).reduce(function(e,t){return e.concat([t,t+"-"+dn,t+"-"+fn])},[]),yn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const wn={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,o=Lt(n.placement),l=tn(o),c=[cn,ln].indexOf(o)>=0?"height":"width";if(s&&a){var u=function(e,t){return rn("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:sn(e,hn))}(i.padding,n),h=Wt(s),d="y"===l?an:cn,f="y"===l?on:ln,p=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=en(s),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2,w=u[d],b=v-h[c]-u[f],E=v/2-h[c]/2+y,_=nn(w,E,b),A=l;n.modifiersData[r]=((t={})[A]=_,t.centerOffset=_-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&Kt(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bn(e){return e.split("-")[1]}var En={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _n(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,o=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,h=e.isFixed,d=a.x,f=void 0===d?0:d,p=a.y,m=void 0===p?0:p,g="function"===typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),w=cn,b=an,E=window;if(c){var _=en(n),A="clientHeight",S="clientWidth";if(_===Mt(n)&&"static"!==Yt(_=Xt(n)).position&&"absolute"===o&&(A="scrollHeight",S="scrollWidth"),i===an||(i===cn||i===ln)&&s===fn)b=on,m-=(h&&_===E&&E.visualViewport?E.visualViewport.height:_[A])-r.height,m*=l?1:-1;if(i===cn||(i===an||i===on)&&s===fn)w=ln,f-=(h&&_===E&&E.visualViewport?E.visualViewport.width:_[S])-r.width,f*=l?1:-1}var C,T=Object.assign({position:o},c&&En),k=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Bt(n*i)/i||0,y:Bt(r*i)/i||0}}({x:f,y:m},Mt(n)):{x:f,y:m};return f=k.x,m=k.y,l?Object.assign({},T,((C={})[b]=y?"0":"",C[w]=v?"0":"",C.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},T,((t={})[b]=y?m+"px":"",t[w]=v?f+"px":"",t.transform="",t))}var An={passive:!0};var Sn={left:"right",right:"left",bottom:"top",top:"bottom"};function Cn(e){return e.replace(/left|right|bottom|top/g,function(e){return Sn[e]})}var Tn={start:"end",end:"start"};function kn(e){return e.replace(/start|end/g,function(e){return Tn[e]})}function xn(e){var t=Mt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Nn(e){return Gt(Xt(e)).left+xn(e).scrollLeft}function In(e){var t=Yt(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function On(e){return["html","body","#document"].indexOf(Qt(e))>=0?e.ownerDocument.body:Vt(e)&&In(e)?e:On(Jt(e))}function Rn(e,t){var n;void 0===t&&(t=[]);var r=On(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),s=Mt(r),a=i?[s].concat(s.visualViewport||[],In(r)?r:[]):r,o=t.concat(a);return i?o:o.concat(Rn(Jt(a)))}function Pn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Dn(e,t,n){return t===pn?Pn(function(e,t){var n=Mt(e),r=Xt(e),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,o=0,l=0;if(i){s=i.width,a=i.height;var c=qt();(c||!c&&"fixed"===t)&&(o=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:o+Nn(e),y:l}}(e,n)):Ut(t)?function(e,t){var n=Gt(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Pn(function(e){var t,n=Xt(e),r=xn(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=jt(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=jt(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+Nn(e),l=-r.scrollTop;return"rtl"===Yt(i||n).direction&&(o+=jt(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:o,y:l}}(Xt(e)))}function Ln(e,t,n,r){var i="clippingParents"===t?function(e){var t=Rn(Jt(e)),n=["absolute","fixed"].indexOf(Yt(e).position)>=0&&Vt(e)?en(e):e;return Ut(n)?t.filter(function(e){return Ut(e)&&Kt(e,n)&&"body"!==Qt(e)}):[]}(e):[].concat(t),s=[].concat(i,[n]),a=s[0],o=s.reduce(function(t,n){var i=Dn(e,n,r);return t.top=jt(i.top,t.top),t.right=zt(i.right,t.right),t.bottom=zt(i.bottom,t.bottom),t.left=jt(i.left,t.left),t},Dn(e,a,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Mn(e){var t,n=e.reference,r=e.element,i=e.placement,s=i?Lt(i):null,a=i?bn(i):null,o=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(s){case an:t={x:o,y:n.y-r.height};break;case on:t={x:o,y:n.y+n.height};break;case ln:t={x:n.x+n.width,y:l};break;case cn:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?tn(s):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case dn:t[c]=t[c]-(n[u]/2-r[u]/2);break;case fn:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Un(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,s=n.strategy,a=void 0===s?e.strategy:s,o=n.boundary,l=void 0===o?"clippingParents":o,c=n.rootBoundary,u=void 0===c?pn:c,h=n.elementContext,d=void 0===h?mn:h,f=n.altBoundary,p=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=rn("number"!==typeof g?g:sn(g,hn)),y=d===mn?"reference":mn,w=e.rects.popper,b=e.elements[p?y:d],E=Ln(Ut(b)?b:b.contextElement||Xt(e.elements.popper),l,u,a),_=Gt(e.elements.reference),A=Mn({reference:_,element:w,strategy:"absolute",placement:i}),S=Pn(Object.assign({},w,A)),C=d===mn?S:_,T={top:E.top-C.top+v.top,bottom:C.bottom-E.bottom+v.bottom,left:E.left-C.left+v.left,right:C.right-E.right+v.right},k=e.modifiersData.offset;if(d===mn&&k){var x=k[i];Object.keys(T).forEach(function(e){var t=[ln,on].indexOf(e)>=0?1:-1,n=[an,on].indexOf(e)>=0?"y":"x";T[e]+=x[n]*t})}return T}function Vn(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Fn(e){return[an,ln,on,cn].some(function(t){return e[t]>=0})}const jn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=void 0===i?[0,0]:i,a=vn.reduce(function(e,n){return e[n]=function(e,t,n){var r=Lt(e),i=[cn,an].indexOf(r)>=0?-1:1,s="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=s[0],o=s[1];return a=a||0,o=(o||0)*i,[cn,ln].indexOf(r)>=0?{x:o,y:a}:{x:a,y:o}}(n,t.rects,s),e},{}),o=a[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};const zn={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=void 0===i||i,a=n.altAxis,o=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,h=n.padding,d=n.tether,f=void 0===d||d,p=n.tetherOffset,m=void 0===p?0:p,g=Un(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),v=Lt(t.placement),y=bn(t.placement),w=!y,b=tn(v),E="x"===b?"y":"x",_=t.modifiersData.popperOffsets,A=t.rects.reference,S=t.rects.popper,C="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T="number"===typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,x={x:0,y:0};if(_){if(s){var N,I="y"===b?an:cn,O="y"===b?on:ln,R="y"===b?"height":"width",P=_[b],D=P+g[I],L=P-g[O],M=f?-S[R]/2:0,U=y===dn?A[R]:S[R],V=y===dn?-S[R]:-A[R],F=t.elements.arrow,j=f&&F?Wt(F):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=z[I],H=z[O],q=nn(0,A[R],j[R]),G=w?A[R]/2-M-q-B-T.mainAxis:U-q-B-T.mainAxis,W=w?-A[R]/2+M+q+H+T.mainAxis:V+q+H+T.mainAxis,K=t.elements.arrow&&en(t.elements.arrow),Q=K?"y"===b?K.clientTop||0:K.clientLeft||0:0,Y=null!=(N=null==k?void 0:k[b])?N:0,$=P+W-Y,X=nn(f?zt(D,P+G-Y-Q):D,P,f?jt(L,$):L);_[b]=X,x[b]=X-P}if(o){var J,Z="x"===b?an:cn,ee="x"===b?on:ln,te=_[E],ne="y"===E?"height":"width",re=te+g[Z],ie=te-g[ee],se=-1!==[an,cn].indexOf(v),ae=null!=(J=null==k?void 0:k[E])?J:0,oe=se?re:te-A[ne]-S[ne]-ae+T.altAxis,le=se?te+A[ne]+S[ne]-ae-T.altAxis:ie,ce=f&&se?function(e,t,n){var r=nn(e,t,n);return r>n?n:r}(oe,te,le):nn(f?oe:re,te,f?le:ie);_[E]=ce,x[E]=ce-te}t.modifiersData[r]=x}},requiresIfExists:["offset"]};function Bn(e,t,n){void 0===n&&(n=!1);var r=Vt(t),i=Vt(t)&&function(e){var t=e.getBoundingClientRect(),n=Bt(t.width)/e.offsetWidth||1,r=Bt(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=Xt(t),a=Gt(e,i,n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Qt(t)||In(s))&&(o=function(e){return e!==Mt(e)&&Vt(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:xn(e);var t}(t)),Vt(t)?((l=Gt(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Nn(s))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function Hn(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}function qn(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var Gn={placement:"bottom",modifiers:[],strategy:"absolute"};function Wn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"===typeof e.getBoundingClientRect)})}function Kn(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,s=void 0===i?Gn:i;return function(e,t,n){void 0===n&&(n=s);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gn,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],o=!1,l={state:i,setOptions:function(n){var o="function"===typeof n?n(i.options):n;c(),i.options=Object.assign({},s,i.options,o),i.scrollParents={reference:Ut(e)?Rn(e):e.contextElement?Rn(e.contextElement):[],popper:Rn(t)};var u=function(e){var t=Hn(e);return yn.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}(function(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(r,i.options.modifiers)));return i.orderedModifiers=u.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,s=e.effect;if("function"===typeof s){var o=s({state:i,name:t,instance:l,options:r}),c=function(){};a.push(o||c)}}),l.update()},forceUpdate:function(){if(!o){var e=i.elements,t=e.reference,n=e.popper;if(Wn(t,n)){i.rects={reference:Bn(t,en(n),"fixed"===i.options.strategy),popper:Wt(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var s=i.orderedModifiers[r],a=s.fn,c=s.options,u=void 0===c?{}:c,h=s.name;"function"===typeof a&&(i=a({state:i,options:u,name:h,instance:l})||i)}else i.reset=!1,r=-1}}},update:qn(function(){return new Promise(function(e){l.forceUpdate(),e(i)})}),destroy:function(){c(),o=!0}};if(!Wn(e,t))return l;function c(){a.forEach(function(e){return e()}),a=[]}return l.setOptions(n).then(function(e){!o&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}const Qn=Kn({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=Un(t,{elementContext:"reference"}),o=Un(t,{altBoundary:!0}),l=Vn(a,r),c=Vn(o,i,s),u=Fn(l),h=Fn(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Mn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,s=n.adaptive,a=void 0===s||s,o=n.roundOffsets,l=void 0===o||o,c={placement:Lt(t.placement),variation:bn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_n(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_n(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=void 0===i||i,a=r.resize,o=void 0===a||a,l=Mt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(e){e.addEventListener("scroll",n.update,An)}),o&&l.addEventListener("resize",n.update,An),function(){s&&c.forEach(function(e){e.removeEventListener("scroll",n.update,An)}),o&&l.removeEventListener("resize",n.update,An)}},data:{}},jn,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=void 0===i||i,a=n.altAxis,o=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,p=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=Lt(g),y=l||(v===g||!p?[Cn(g)]:function(e){if(Lt(e)===un)return[];var t=Cn(e);return[kn(e),t,kn(t)]}(g)),w=[g].concat(y).reduce(function(e,n){return e.concat(Lt(n)===un?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?vn:l,u=bn(r),h=u?o?gn:gn.filter(function(e){return bn(e)===u}):hn,d=h.filter(function(e){return c.indexOf(e)>=0});0===d.length&&(d=h);var f=d.reduce(function(t,n){return t[n]=Un(e,{placement:n,boundary:i,rootBoundary:s,padding:a})[Lt(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:n,boundary:u,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)},[]),b=t.rects.reference,E=t.rects.popper,_=new Map,A=!0,S=w[0],C=0;C<w.length;C++){var T=w[C],k=Lt(T),x=bn(T)===dn,N=[an,on].indexOf(k)>=0,I=N?"width":"height",O=Un(t,{placement:T,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),R=N?x?ln:cn:x?on:an;b[I]>E[I]&&(R=Cn(R));var P=Cn(R),D=[];if(s&&D.push(O[k]<=0),o&&D.push(O[R]<=0,O[P]<=0),D.every(function(e){return e})){S=T,A=!1;break}_.set(T,D)}if(A)for(var L=function(e){var t=w.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},M=p?3:1;M>0;M--){if("break"===L(M))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},zn,wn]}),Yn=["enabled","placement","strategy","modifiers"];const $n={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Xn={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:e=>{let t=e.state;return()=>{const e=t.elements,n=e.reference,r=e.popper;if("removeAttribute"in n){const e=(n.getAttribute("aria-describedby")||"").split(",").filter(e=>e.trim()!==r.id);e.length?n.setAttribute("aria-describedby",e.join(",")):n.removeAttribute("aria-describedby")}}},fn:e=>{var t;const n=e.state.elements,r=n.popper,i=n.reference,s=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===s&&"setAttribute"in i){const e=i.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(r.id))return;i.setAttribute("aria-describedby",e?"".concat(e,",").concat(r.id):r.id)}}},Jn=[];const Zn=function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i.enabled,a=void 0===s||s,o=i.placement,l=void 0===o?"bottom":o,c=i.strategy,u=void 0===c?"absolute":c,h=i.modifiers,d=void 0===h?Jn:h,f=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(i,Yn);const p=(0,e.useRef)(d),m=(0,e.useRef)(),g=(0,e.useCallback)(()=>{var e;null==(e=m.current)||e.update()},[]),v=(0,e.useCallback)(()=>{var e;null==(e=m.current)||e.forceUpdate()},[]),y=Dt((0,e.useState)({placement:l,update:g,forceUpdate:v,attributes:{},styles:{popper:{},arrow:{}}})),w=(0,r.A)(y,2),b=w[0],E=w[1],_=(0,e.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:e=>{let t=e.state;const n={},r={};Object.keys(t.elements).forEach(e=>{n[e]=t.styles[e],r[e]=t.attributes[e]}),E({state:t,styles:n,attributes:r,update:g,forceUpdate:v,placement:t.placement})}}),[g,v,E]),A=(0,e.useMemo)(()=>(Rt(p.current,d)||(p.current=d),p.current),[d]);return(0,e.useEffect)(()=>{m.current&&a&&m.current.setOptions({placement:l,strategy:u,modifiers:[...A,_,$n]})},[u,l,_,a,A]),(0,e.useEffect)(()=>{if(a&&null!=t&&null!=n)return m.current=Qn(t,n,Object.assign({},f,{placement:l,strategy:u,modifiers:[...A,Xn,_]})),()=>{null!=m.current&&(m.current.destroy(),m.current=void 0,E(e=>Object.assign({},e,{attributes:{},styles:{popper:{}}})))}},[a,t,n]),b};var er=n(2631),tr=n(753),nr=n(182),rr=n(6440),ir=n.n(rr);const sr=()=>{};const ar=e=>e&&("current"in e?e.current:e),or={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};const lr=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sr,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.disabled,s=r.clickTrigger,a=void 0===s?"click":s;const o=(0,e.useRef)(!1),l=(0,e.useRef)(!1),c=(0,e.useCallback)(e=>{const n=ar(t);var r;ir()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!n||!!((r=e).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(e)||!!(0,er.A)(n,e.target)||l.current,l.current=!1},[t]),u=(0,tt.A)(e=>{const n=ar(t);n&&(0,er.A)(n,e.target)?l.current=!0:l.current=!1}),h=(0,tt.A)(e=>{o.current||n(e)});(0,e.useEffect)(()=>{var e,n;if(i||null==t)return;const r=(0,nr.A)(ar(t)),s=r.defaultView||window;let o=null!=(e=s.event)?e:null==(n=s.parent)?void 0:n.event,l=null;or[a]&&(l=(0,tr.A)(r,or[a],u,!0));const d=(0,tr.A)(r,a,c,!0),f=(0,tr.A)(r,a,e=>{e!==o?h(e):o=void 0});let p=[];return"ontouchstart"in r.documentElement&&(p=[].slice.call(r.body.children).map(e=>(0,tr.A)(e,"mousemove",sr))),()=>{null==l||l(),d(),f(),p.forEach(e=>e())}},[t,i,a,c,u,h])};function cr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function ur(e){let t=e.enabled,n=e.enableEvents,r=e.placement,i=e.flip,s=e.offset,a=e.fixed,o=e.containerPadding,l=e.arrowElement,c=e.popperConfig,u=void 0===c?{}:c;var h,d,f,p,m;const g=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach(e=>{t[e.name]=e}),t):e||t}(u.modifiers);return Object.assign({},u,{placement:r,enabled:t,strategy:a?"fixed":u.strategy,modifiers:cr(Object.assign({},g,{eventListeners:{enabled:n,options:null==(h=g.eventListeners)?void 0:h.options},preventOverflow:Object.assign({},g.preventOverflow,{options:o?Object.assign({padding:o},null==(d=g.preventOverflow)?void 0:d.options):null==(f=g.preventOverflow)?void 0:f.options}),offset:{options:Object.assign({offset:s},null==(p=g.offset)?void 0:p.options)},arrow:Object.assign({},g.arrow,{enabled:!!l,options:Object.assign({},null==(m=g.arrow)?void 0:m.options,{element:l})}),flip:Object.assign({enabled:!!i},g.flip)}))})}const hr=["children","usePopper"];const dr=()=>{};function fr(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=(0,e.useContext)(xt),i=(0,Nt.A)(),s=(0,r.A)(i,2),a=s[0],o=s[1],l=(0,e.useRef)(!1),c=t.flip,u=t.offset,h=t.rootCloseEvent,d=t.fixed,f=void 0!==d&&d,p=t.placement,m=t.popperConfig,g=void 0===m?{}:m,v=t.enableEventListeners,y=void 0===v||v,w=t.usePopper,b=void 0===w?!!n:w,E=null==(null==n?void 0:n.show)?!!t.show:n.show;E&&!l.current&&(l.current=!0);const _=n||{},A=_.placement,S=_.setMenu,C=_.menuElement,T=_.toggleElement,k=Zn(T,C,ur({placement:p||A||"bottom-start",enabled:b,enableEvents:null==y?E:y,offset:u,flip:c,fixed:f,arrowElement:a,popperConfig:g})),x=Object.assign({ref:S||dr,"aria-labelledby":null==T?void 0:T.id},k.attributes.popper,{style:k.styles.popper}),N={show:E,placement:A,hasShown:l.current,toggle:null==n?void 0:n.toggle,popper:b?k:null,arrowProps:b?Object.assign({ref:o},k.attributes.arrow,{style:k.styles.arrow}):{}};return lr(C,e=>{null==n||n.toggle(!1,e)},{clickTrigger:h,disabled:!E}),[x,N]}function pr(e){let t=e.children,n=e.usePopper,i=void 0===n||n,s=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,hr);const a=fr(Object.assign({},s,{usePopper:i})),o=(0,r.A)(a,2),l=o[0],u=o[1];return(0,c.jsx)(c.Fragment,{children:t(l,u)})}pr.displayName="DropdownMenu";const mr=pr;const gr={prefix:String(Math.round(1e10*Math.random())),current:0},vr=e.createContext(gr),yr=e.createContext(!1);Boolean("undefined"!==typeof window&&window.document&&window.document.createElement);let wr=new WeakMap;function br(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=(0,e.useContext)(vr),r=(0,e.useRef)(null);if(null===r.current&&!t){var i;let t=null===(i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i||null===(i=i.ReactCurrentOwner)||void 0===i?void 0:i.current;if(t){let e=wr.get(t);null==e?wr.set(t,{id:n.current,state:t.memoizedState}):t.memoizedState!==e.state&&(n.current=e.id,wr.delete(t))}r.current=++n.current}return r.current}const Er="function"===typeof e.useId?function(t){let n=e.useId(),i=(0,e.useState)("function"===typeof e.useSyncExternalStore?e.useSyncExternalStore(Sr,_r,Ar):(0,e.useContext)(yr)),s=(0,r.A)(i,1)[0]?"react-aria":"react-aria".concat(gr.prefix);return t||"".concat(s,"-").concat(n)}:function(t){let n=(0,e.useContext)(vr),r=br(!!t),i="react-aria".concat(n.prefix);return t||"".concat(i,"-").concat(r)};function _r(){return!1}function Ar(){return!0}function Sr(e){return()=>{}}const Cr=e=>{var t;return"menu"===(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())},Tr=()=>{};function kr(){const t=Er(),n=(0,e.useContext)(xt)||{},r=n.show,i=void 0!==r&&r,s=n.toggle,a=void 0===s?Tr:s,o=n.setToggle,l=n.menuElement,c=(0,e.useCallback)(e=>{a(!i,e)},[i,a]),u={id:t,ref:o||Tr,onClick:c,"aria-expanded":!!i};return l&&Cr(l)&&(u["aria-haspopup"]=!0),[u,{show:i,toggle:a}]}function xr(e){let t=e.children;const n=kr(),i=(0,r.A)(n,2),s=i[0],a=i[1];return(0,c.jsx)(c.Fragment,{children:t(s,a)})}xr.displayName="DropdownToggle";const Nr=xr,Ir=["eventKey","disabled","onClick","active","as"];function Or(t){let n=t.key,r=t.href,i=t.active,s=t.disabled,a=t.onClick;const o=(0,e.useContext)(D),l=((0,e.useContext)(Je)||{}).activeKey,c=P(n,r),u=null==i&&null!=n?P(l)===c:i;return[{onClick:(0,tt.A)(e=>{s||(null==a||a(e),o&&!e.isPropagationStopped()&&o(c,e))}),"aria-disabled":s||void 0,"aria-selected":u,[(0,et.sE)("dropdown-item")]:""},{isActive:u}]}const Rr=e.forwardRef((e,t)=>{let n=e.eventKey,i=e.disabled,s=e.onClick,a=e.active,o=e.as,l=void 0===o?nt.Ay:o,u=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,Ir);const h=Or({key:n,href:u.href,disabled:i,onClick:s,active:a}),d=(0,r.A)(h,1)[0];return(0,c.jsx)(l,Object.assign({},u,{ref:t},d))});Rr.displayName="DropdownItem";const Pr=Rr;var Dr=n(1701);function Lr(){const t=Ye(),n=(0,e.useRef)(null),r=(0,e.useCallback)(e=>{n.current=e,t()},[t]);return[n,r]}function Mr(t){let n=t.defaultShow,i=t.show,s=t.onSelect,a=t.onToggle,o=t.itemSelector,l=void 0===o?"* [".concat((0,et.sE)("dropdown-item"),"]"):o,u=t.focusFirstItemOnShow,h=t.placement,d=void 0===h?"bottom-start":h,f=t.children;const p=(0,Dr.A)(),m=Ct(i,n,a),g=(0,r.A)(m,2),v=g[0],y=g[1],w=Lr(),b=(0,r.A)(w,2),E=b[0],_=b[1],A=E.current,S=Lr(),C=(0,r.A)(S,2),T=C[0],k=C[1],x=T.current,N=(0,Tt.A)(v),I=(0,e.useRef)(null),O=(0,e.useRef)(!1),R=(0,e.useContext)(D),P=(0,e.useCallback)(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null==t?void 0:t.type;y(e,{originalEvent:t,source:n})},[y]),L=(0,tt.A)((e,t)=>{null==s||s(e,t),P(!1,t,"select"),t.isPropagationStopped()||null==R||R(e,t)}),M=(0,e.useMemo)(()=>({toggle:P,placement:d,show:v,menuElement:A,toggleElement:x,setMenu:_,setToggle:k}),[P,d,v,A,x,_,k]);A&&N&&!v&&(O.current=A.contains(A.ownerDocument.activeElement));const U=(0,tt.A)(()=>{x&&x.focus&&x.focus()}),V=(0,tt.A)(()=>{const e=I.current;let t=u;if(null==t&&(t=!(!E.current||!Cr(E.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;const n=(0,Qe.A)(E.current,l)[0];n&&n.focus&&n.focus()});(0,e.useEffect)(()=>{v?V():O.current&&(O.current=!1,U())},[v,O,U,V]),(0,e.useEffect)(()=>{I.current=null});const F=(e,t)=>{if(!E.current)return null;const n=(0,Qe.A)(E.current,l);let r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return(0,kt.A)((0,e.useCallback)(()=>p.document,[p]),"keydown",e=>{var t,n;const r=e.key,i=e.target,s=null==(t=E.current)?void 0:t.contains(i),a=null==(n=T.current)?void 0:n.contains(i);if(/input|textarea/i.test(i.tagName)&&(" "===r||"Escape"!==r&&s||"Escape"===r&&"search"===i.type))return;if(!s&&!a)return;if("Tab"===r&&(!E.current||!v))return;I.current=e.type;const o={originalEvent:e,source:e.type};switch(r){case"ArrowUp":{const t=F(i,-1);return t&&t.focus&&t.focus(),void e.preventDefault()}case"ArrowDown":if(e.preventDefault(),v){const e=F(i,1);e&&e.focus&&e.focus()}else y(!0,o);return;case"Tab":(0,At.Ay)(i.ownerDocument,"keyup",e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=E.current)&&t.contains(e.target)||y(!1,o)},{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),y(!1,o)}}),(0,c.jsx)(D.Provider,{value:L,children:(0,c.jsx)(xt.Provider,{value:M,children:f})})}Mr.displayName="Dropdown",Mr.Menu=mr,Mr.Toggle=Nr,Mr.Item=Pr;const Ur=Mr,Vr=e.createContext({});Vr.displayName="DropdownContext";const Fr=Vr,jr=["className","bsPrefix","as","role"],zr=e.forwardRef((e,t)=>{let n=e.className,r=e.bsPrefix,i=e.as,s=void 0===i?"hr":i,a=e.role,o=void 0===a?"separator":a,l=(0,I.A)(e,jr);return r=(0,M.oU)(r,"dropdown-divider"),(0,c.jsx)(s,(0,N.A)({ref:t,className:R()(n,r),role:o},l))});zr.displayName="DropdownDivider";const Br=zr,Hr=["className","bsPrefix","as","role"],qr=e.forwardRef((e,t)=>{let n=e.className,r=e.bsPrefix,i=e.as,s=void 0===i?"div":i,a=e.role,o=void 0===a?"heading":a,l=(0,I.A)(e,Hr);return r=(0,M.oU)(r,"dropdown-header"),(0,c.jsx)(s,(0,N.A)({ref:t,className:R()(n,r),role:o},l))});qr.displayName="DropdownHeader";const Gr=qr,Wr=["bsPrefix","className","eventKey","disabled","onClick","active","as"],Kr=e.forwardRef((e,t)=>{let n=e.bsPrefix,i=e.className,s=e.eventKey,a=e.disabled,o=void 0!==a&&a,l=e.onClick,u=e.active,h=e.as,d=void 0===h?gt.A:h,f=(0,I.A)(e,Wr);const p=(0,M.oU)(n,"dropdown-item"),m=Or({key:s,href:f.href,disabled:o,onClick:l,active:u}),g=(0,r.A)(m,2),v=g[0],y=g[1];return(0,c.jsx)(d,(0,N.A)((0,N.A)((0,N.A)({},f),v),{},{ref:t,className:R()(i,p,y.isActive&&"active",o&&"disabled")}))});Kr.displayName="DropdownItem";const Qr=Kr,Yr=["className","bsPrefix","as"],$r=e.forwardRef((e,t)=>{let n=e.className,r=e.bsPrefix,i=e.as,s=void 0===i?"span":i,a=(0,I.A)(e,Yr);return r=(0,M.oU)(r,"dropdown-item-text"),(0,c.jsx)(s,(0,N.A)({ref:t,className:R()(n,r)},a))});$r.displayName="DropdownItemText";const Xr=$r;var Jr=n(8293),Zr=n(9334);n(2740);function ei(e,t){return e}const ti=["bsPrefix","className","align","rootCloseEvent","flip","show","renderOnMount","as","popperConfig","variant"];function ni(e,t,n){let r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}const ri=e.forwardRef((t,n)=>{let i=t.bsPrefix,s=t.className,a=t.align,o=t.rootCloseEvent,l=t.flip,u=void 0===l||l,h=t.show,d=t.renderOnMount,f=t.as,p=void 0===f?"div":f,m=t.popperConfig,g=t.variant,v=(0,I.A)(t,ti),y=!1;const w=(0,e.useContext)(ee),b=(0,M.oU)(i,"dropdown-menu"),E=(0,e.useContext)(Fr),_=E.align,A=E.drop,S=E.isRTL;a=a||_;const C=(0,e.useContext)(Zr.A),T=[];if(a)if("object"===typeof a){const e=Object.keys(a);if(e.length){const t=e[0],n=a[t];y="start"===n,T.push("".concat(b,"-").concat(t,"-").concat(n))}}else"end"===a&&(y=!0);const k=ni(y,A,S),x=fr({flip:u,rootCloseEvent:o,show:h,usePopper:!w&&0===T.length,offset:[0,2],popperConfig:m,placement:k}),O=(0,r.A)(x,2),P=O[0],D=O[1],L=D.hasShown,U=D.popper,V=D.show,F=D.toggle;if(P.ref=(0,Jr.A)(ei(n),P.ref),ce(()=>{V&&(null==U||U.update())},[V]),!L&&!d&&!C)return null;"string"!==typeof p&&(P.show=V,P.close=()=>null==F?void 0:F(!1),P.align=a);let j=v.style;return null!=U&&U.placement&&(j=(0,N.A)((0,N.A)({},v.style),P.style),v["x-placement"]=U.placement),(0,c.jsx)(p,(0,N.A)((0,N.A)((0,N.A)((0,N.A)({},v),P),{},{style:j},(T.length||w)&&{"data-bs-popper":"static"}),{},{className:R()(s,b,V&&"show",y&&"".concat(b,"-end"),g&&"".concat(b,"-").concat(g),...T)}))});ri.displayName="DropdownMenu";const ii=ri;var si=n(4282);const ai=["bsPrefix","split","className","childBsPrefix","as"],oi=e.forwardRef((t,n)=>{let i=t.bsPrefix,s=t.split,a=t.className,o=t.childBsPrefix,l=t.as,u=void 0===l?si.A:l,h=(0,I.A)(t,ai);const d=(0,M.oU)(i,"dropdown-toggle"),f=(0,e.useContext)(xt);void 0!==o&&(h.bsPrefix=o);const p=kr(),m=(0,r.A)(p,1)[0];return m.ref=(0,Jr.A)(m.ref,ei(n)),(0,c.jsx)(u,(0,N.A)((0,N.A)({className:R()(a,d,s&&"".concat(d,"-split"),(null==f?void 0:f.show)&&"show")},m),h))});oi.displayName="DropdownToggle";const li=oi,ci=["bsPrefix","drop","show","className","align","onSelect","onToggle","focusFirstItemOnShow","as","navbar","autoClose"],ui=e.forwardRef((t,n)=>{const r=(0,L.Zw)(t,{show:"onToggle"}),i=r.bsPrefix,s=r.drop,a=void 0===s?"down":s,o=r.show,l=r.className,u=r.align,h=void 0===u?"start":u,d=r.onSelect,f=r.onToggle,p=r.focusFirstItemOnShow,m=r.as,g=void 0===m?"div":m,v=(r.navbar,r.autoClose),y=void 0===v||v,w=(0,I.A)(r,ci),b=(0,e.useContext)(Zr.A),E=(0,M.oU)(i,"dropdown"),_=(0,M.Wz)(),A=(0,ie.A)((e,t)=>{var n;var r;(null==(n=t.originalEvent)||null==(n=n.target)?void 0:n.classList.contains("dropdown-toggle"))&&"mousedown"===t.source||(t.originalEvent.currentTarget!==document||"keydown"===t.source&&"Escape"!==t.originalEvent.key||(t.source="rootClose"),r=t.source,(!1===y?"click"===r:"inside"===y?"rootClose"!==r:"outside"!==y||"select"!==r)&&(null==f||f(e,t)))}),S=ni("end"===h,a,_),C=(0,e.useMemo)(()=>({align:h,drop:a,isRTL:_}),[h,a,_]),T={down:E,"down-centered":"".concat(E,"-center"),up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return(0,c.jsx)(Fr.Provider,{value:C,children:(0,c.jsx)(Ur,{placement:S,show:o,onSelect:d,onToggle:A,focusFirstItemOnShow:p,itemSelector:".".concat(E,"-item:not(.disabled):not(:disabled)"),children:b?w.children:(0,c.jsx)(g,(0,N.A)((0,N.A)({},w),{},{ref:n,className:R()(l,o&&"show",T[a])}))})})});ui.displayName="Dropdown";const hi=Object.assign(ui,{Toggle:li,Menu:ii,Item:Qr,ItemText:Xr,Divider:Br,Header:Gr}),di=["id","title","children","bsPrefix","className","rootCloseEvent","menuRole","disabled","active","renderMenuOnMount","menuVariant"],fi=e.forwardRef((e,t)=>{let n=e.id,r=e.title,i=e.children,s=e.bsPrefix,a=e.className,o=e.rootCloseEvent,l=e.menuRole,u=e.disabled,h=e.active,d=e.renderMenuOnMount,f=e.menuVariant,p=(0,I.A)(e,di);const m=(0,M.oU)(void 0,"nav-item");return(0,c.jsxs)(hi,(0,N.A)((0,N.A)({ref:t},p),{},{className:R()(a,m),children:[(0,c.jsx)(hi.Toggle,{id:n,eventKey:null,active:h,disabled:u,childBsPrefix:s,as:wt,children:r}),(0,c.jsx)(hi.Menu,{role:l,renderOnMount:d,rootCloseEvent:o,variant:f,children:i})]}))});fi.displayName="NavDropdown";const pi=Object.assign(fi,{Item:hi.Item,ItemText:hi.ItemText,Divider:hi.Divider,Header:hi.Header});var mi=n(184),gi=n(7196),vi=n(4705);const yi=["eventCategory","eventAction","eventLabel","eventValue","hitType"],wi=["title","location"],bi=["page","hitType"],Ei=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function _i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e||"";return(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(n=e.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(e,t,n)=>t>0&&t+e.length!==n.length&&e.search(Ei)>-1&&":"!==n.charAt(t-2)&&("-"!==n.charAt(t+e.length)||"-"===n.charAt(t-1))&&n.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1))),t&&(n=function(e){return"string"===typeof(t=e)&&-1!==t.indexOf("@")?(console.warn("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e;var t}(n)),n}var Ai=class{constructor(){var e=this;(0,vi.A)(this,"isInitialized",void 0),(0,vi.A)(this,"_testMode",void 0),(0,vi.A)(this,"_currentMeasurementId",void 0),(0,vi.A)(this,"_hasLoadedGA",void 0),(0,vi.A)(this,"_isQueuing",void 0),(0,vi.A)(this,"_queueGtag",void 0),(0,vi.A)(this,"reset",()=>{this.isInitialized=!1,this._testMode=!1,this._currentMeasurementId="",this._hasLoadedGA=!1,this._isQueuing=!1,this._queueGtag=[]}),(0,vi.A)(this,"_gtag",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e._testMode||e._isQueuing?e._queueGtag.push(n):function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"undefined"!==typeof window&&("undefined"===typeof window.gtag&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),window.gtag(...t))}(...n)}),(0,vi.A)(this,"_loadGA",function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://www.googletagmanager.com/gtag/js";if("undefined"!==typeof window&&"undefined"!==typeof document&&!e._hasLoadedGA){const i=document.createElement("script");i.async=!0,i.src="".concat(r,"?id=").concat(t),n&&i.setAttribute("nonce",n),document.body.appendChild(i),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},e._hasLoadedGA=!0}}),(0,vi.A)(this,"_toGtagOptions",e=>{if(!e)return;const t={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(e).reduce((e,n)=>{let i=(0,r.A)(n,2),s=i[0],a=i[1];return t[s]?e[t[s]]=a:e[s]=a,e},{})}),(0,vi.A)(this,"initialize",function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Require GA_MEASUREMENT_ID");const r="string"===typeof t?[{trackingId:t}]:t;e._currentMeasurementId=r[0].trackingId;const i=n.gaOptions,s=n.gtagOptions,a=n.nonce,o=n.testMode,l=void 0!==o&&o,c=n.gtagUrl;if(e._testMode=l,l||e._loadGA(e._currentMeasurementId,a,c),e.isInitialized||(e._gtag("js",new Date),r.forEach(t=>{const n=(0,N.A)((0,N.A)((0,N.A)({},e._toGtagOptions((0,N.A)((0,N.A)({},i),t.gaOptions))),s),t.gtagOptions);Object.keys(n).length?e._gtag("config",t.trackingId,n):e._gtag("config",t.trackingId)})),e.isInitialized=!0,!l){const t=[...e._queueGtag];for(e._queueGtag=[],e._isQueuing=!1;t.length;){const n=t.shift();e._gtag(...n),"get"===n[0]&&(e._isQueuing=!0)}}}),(0,vi.A)(this,"set",e=>{e?"object"===typeof e?(0===Object.keys(e).length&&console.warn("empty `fieldsObject` given to .set()"),this._gaCommand("set",e)):console.warn("Expected `fieldsObject` arg to be an Object"):console.warn("`fieldsObject` is required in .set()")}),(0,vi.A)(this,"_gaCommandSendEvent",(e,t,n,r,i)=>{this._gtag("event",t,(0,N.A)((0,N.A)({event_category:e,event_label:n,value:r},i&&{non_interaction:i.nonInteraction}),this._toGtagOptions(i)))}),(0,vi.A)(this,"_gaCommandSendEventParameters",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if("string"===typeof n[0])e._gaCommandSendEvent(...n.slice(1));else{const t=n[0],r=t.eventCategory,i=t.eventAction,s=t.eventLabel,a=t.eventValue,o=(t.hitType,(0,I.A)(t,yi));e._gaCommandSendEvent(r,i,s,a,o)}}),(0,vi.A)(this,"_gaCommandSendTiming",(e,t,n,r)=>{this._gtag("event","timing_complete",{name:t,value:n,event_category:e,event_label:r})}),(0,vi.A)(this,"_gaCommandSendPageview",(e,t)=>{if(t&&Object.keys(t).length){const n=this._toGtagOptions(t)||{},r=n.title,i=n.location,s=(0,I.A)(n,wi);this._gtag("event","page_view",(0,N.A)((0,N.A)((0,N.A)((0,N.A)({},e&&{page_path:e}),r&&{page_title:r}),i&&{page_location:i}),s))}else e?this._gtag("event","page_view",{page_path:e}):this._gtag("event","page_view")}),(0,vi.A)(this,"_gaCommandSendPageviewParameters",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if("string"===typeof n[0])e._gaCommandSendPageview(...n.slice(1));else{const t=n[0],r=t.page,i=(t.hitType,(0,I.A)(t,bi));e._gaCommandSendPageview(r,i)}}),(0,vi.A)(this,"_gaCommandSend",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="string"===typeof n[0]?n[0]:n[0].hitType;switch(i){case"event":e._gaCommandSendEventParameters(...n);break;case"pageview":e._gaCommandSendPageviewParameters(...n);break;case"timing":e._gaCommandSendTiming(...n.slice(1));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(i));break;default:console.warn("Send command doesn't exist: ".concat(i))}}),(0,vi.A)(this,"_gaCommandSet",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"===typeof n[0]&&(n[0]={[n[0]]:n[1]}),e._gtag("set",e._toGtagOptions(n[0]))}),(0,vi.A)(this,"_gaCommand",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];switch(t){case"send":e._gaCommandSend(...r);break;case"set":e._gaCommandSet(...r);break;default:console.warn("Command doesn't exist: ".concat(t))}}),(0,vi.A)(this,"ga",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if("string"===typeof n[0])e._gaCommand(...n);else{const t=n[0];e._gtag("get",e._currentMeasurementId,"client_id",n=>{e._isQueuing=!1;const r=e._queueGtag;for(t({get:t=>"clientId"===t?n:"trackingId"===t?e._currentMeasurementId:"apiVersion"===t?"1":void 0});r.length;){const t=r.shift();e._gtag(...t)}}),e._isQueuing=!0}return e.ga}),(0,vi.A)(this,"event",(e,t)=>{if("string"===typeof e)this._gtag("event",e,this._toGtagOptions(t));else{const t=e.action,n=e.category,r=e.label,i=e.value,s=e.nonInteraction,a=e.transport;if(!n||!t)return void console.warn("args.category AND args.action are required in event()");const o={hitType:"event",eventCategory:_i(n),eventAction:_i(t)};r&&(o.eventLabel=_i(r)),"undefined"!==typeof i&&("number"!==typeof i?console.warn("Expected `args.value` arg to be a Number."):o.eventValue=i),"undefined"!==typeof s&&("boolean"!==typeof s?console.warn("`args.nonInteraction` must be a boolean."):o.nonInteraction=s),"undefined"!==typeof a&&("string"!==typeof a?console.warn("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(a)&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),o.transport=a)),this._gaCommand("send",o)}}),(0,vi.A)(this,"send",e=>{this._gaCommand("send",e)}),this.reset()}gtag(){this._gtag(...arguments)}};var Si=new Ai,Ci=n(3604),Ti=n(791),ki=n(1800);function xi(){const t=(0,i.zy)(),n=(0,l.A)().user,r=(0,e.useRef)(n);r.current=n;const s=t.pathname+t.search;(0,e.useEffect)(()=>{if(!window.location.hostname.endsWith("palashkantikundu.in"))return;if(s.startsWith("/analytics"))return;const e=btoa(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");const t=Intl.DateTimeFormat().resolvedOptions().timeZone||"Unknown",n=r.current,i=!!n||!!localStorage.getItem("tracker_id");!function(e){if(e)return"u_"+e.uid;let t=localStorage.getItem("tracker_id");t||(t="a_"+crypto.randomUUID(),localStorage.setItem("tracker_id",t))}(n),(0,Ci.BN)((0,Ci.H9)(Ti.db,(0,ki.n)("page_stats"),e),{path:s,views:(0,Ci.GV)(1),newUsers:(0,Ci.GV)(i?0:1),returningUsers:(0,Ci.GV)(i?1:0),["tz.".concat(t)]:(0,Ci.GV)(1),lastViewed:(0,Ci.O5)()},{merge:!0})},[s])}var Ni=n(266);const Ii=window.location.hostname.endsWith("palashkantikundu.in");function Oi(){const t=(0,i.zy)();return e.useEffect(()=>{Ii&&Si.send({hitType:"pageview",page:t.pathname+t.search})},[t]),xi(),null}function Ri(t){let n=t.siteName,a=t.navLinks;const o=e.useState(!1),u=(0,r.A)(o,2),h=u[0],d=u[1],f=(0,i.Zp)(),p=(0,i.zy)(),m=(0,l.A)(),g=m.user,v=m.profile,y=m.loading,w=m.logout,b=null!==v&&void 0!==v&&v.username?"/profile/@".concat(v.username):g?"/profile/".concat(g.uid):"",E=(null===v||void 0===v?void 0:v.displayName)||(null===g||void 0===g?void 0:g.displayName)||(null===g||void 0===g?void 0:g.email)||"";return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(Ke,{expanded:h,onToggle:e=>d(e),expand:"lg",bg:"dark",className:"border-bottom border-light border-opacity-10 py-1",sticky:"top",children:(0,c.jsxs)(s.A,{fluid:!0,children:[(0,c.jsx)(Ke.Brand,{href:"/",onClick:()=>d(!1),children:n}),(0,c.jsx)(Ke.Toggle,{"aria-controls":"basic-navbar-nav"}),(0,c.jsxs)(Ke.Collapse,{id:"basic-navbar-nav",children:[(0,c.jsxs)(_t,{className:"justify-content-lg-end flex-grow-1 pe-6",children:[(a||[]).map(e=>(0,c.jsx)(_t.Link,{href:e.link,onClick:()=>d(!1),children:e.label},e.link)),g&&(0,c.jsx)(_t.Link,{onClick:()=>{d(!1),f("/contents/scores")},children:"All Scores"})]}),(0,c.jsx)(_t,{className:"align-items-lg-center",children:y?null:g?(0,c.jsxs)(pi,{align:"end",title:(0,c.jsxs)("span",{className:"d-flex align-items-center gap-2",children:[(0,c.jsx)(mi.NBi,{size:18}),(0,c.jsx)("span",{className:"small text-light",children:E})]}),id:"user-dropdown",menuVariant:"dark",children:[(0,c.jsx)(pi.Item,{onClick:()=>{d(!1),f(b)},children:"Profile"}),(0,c.jsx)(pi.Item,{onClick:()=>{d(!1),f("/contents/scores")},children:"My Scores"}),"moderator"===(null===v||void 0===v?void 0:v.role)&&(0,c.jsx)(pi.Item,{onClick:()=>{d(!1),f("/moderate")},children:"Moderate"}),(0,c.jsx)(pi.Divider,{}),(0,c.jsx)(pi.Item,{onClick:()=>{d(!1),w();const e=window.location.pathname;(e.startsWith("/contents/")||"/setup-username"===e)&&f("/")},children:"Logout"})]}):(0,c.jsx)(_t.Link,{onClick:()=>{d(!1),f("/login?redirect="+encodeURIComponent(p.pathname))},children:"Login"})})]})]})})})}function Pi(e){let t=e.siteName;return(0,c.jsxs)(Ke,{className:"site-footer border-top border-light border-opacity-10 flex-column",sticky:"bottom",children:[(0,c.jsxs)(s.A,{fluid:!0,className:"justify-content-center footer-socials",children:[(0,c.jsx)("a",{href:"https://github.com/palash90",target:"_blank",rel:"noreferrer",children:(0,c.jsx)(mi.hL4,{})}),(0,c.jsx)("a",{href:"https://linkedin.com/in/palash90",target:"_blank",rel:"noreferrer",children:(0,c.jsx)(mi.QEs,{})}),(0,c.jsx)("a",{href:"https://www.youtube.com/@GuitaleleTutorials",target:"_blank",rel:"noreferrer",children:(0,c.jsx)(mi.Vk6,{})}),(0,c.jsx)("a",{href:"mailto:connect@palashkantikundu.in",target:"_blank",rel:"noreferrer",children:(0,c.jsx)(gi.YDm,{})})]}),(0,c.jsx)(s.A,{fluid:!0,className:"justify-content-center",children:(0,c.jsxs)(Ke.Text,{style:{fontSize:"11px",lineHeight:"1"},children:[(0,c.jsx)(mi.PSO,{size:10})," ",(t||"Site")+" "+(new Date).getFullYear()]})})]})}function Di(){var e,t;const n=(0,Ni.UK)().config,r=(null===n||void 0===n?void 0:n.name)||"Site",i=(null===n||void 0===n?void 0:n.navLinks)||[],s=(null===n||void 0===n||null===(e=n.pages)||void 0===e||null===(t=e.home)||void 0===t?void 0:t.mainStyle)||"";return(0,c.jsxs)("div",{className:s,children:[(0,c.jsx)(Ri,{siteName:r,navLinks:i}),(0,c.jsx)(x,{}),(0,c.jsx)(Pi,{siteName:r})]})}Ii&&Si.initialize("G-R0XE0Q4Z0Q");const Li=function(){return(0,c.jsx)(l.O,{children:(0,c.jsxs)(i.Kd,{children:[(0,c.jsx)(Oi,{}),(0,c.jsx)(Ni.sG,{children:(0,c.jsx)(Di,{})})]})})};var Mi=n(4479);window.findProp=Ni.r8;t.createRoot(document.getElementById("root")).render((0,c.jsx)(e.StrictMode,{children:(0,c.jsx)(Mi.Vx.Provider,{value:{size:"2em"},children:(0,c.jsx)(Li,{})})}))})()})();
//# sourceMappingURL=main.714a03ca.js.map